Regalamiunsorriso/decompiled-libs/www/acxent-bank-1.0.1/it/acxent/bank/sellaPCredit/SellaPCreditReq.java

369 lines
10 KiB
Java

package it.acxent.bank.sellaPCredit;
import it.acxent.common.Parm;
import it.acxent.common.StatusMsg;
import it.acxent.db.ApplParmFull;
import it.acxent.db.DBAdapter;
public class SellaPCreditReq {
public static final String P_COD_TIPO_PRODOTTO_SELLA_P_CREDIT = "COD_TIPO_PRODOTTO_SELLA_P_CREDIT";
private String tipoesec;
private String tabellaFinanziaria;
private String cognome;
private String nome;
private String indirizzo;
private String cellulare;
private String pref_num;
private String data_nascita;
private String indirizzo_mail;
private ApplParmFull ap;
private String ordine;
private String descrizioneBene;
private String anticipoS;
private String codiceMerce;
private String codiceProdotto;
private String codiceConvenzionato;
private String importoDaFinanziare;
public static final String SELLA_P_CREDIT_TAB_FIN_90 = "WIP";
private double anticipo;
private String impspe;
private String codiceFiscale;
private String numeroTelefono;
private String commissioni;
public static final String P_SELLA_P_CREDIT_IMPORTO_MINIMO = "SELLA_P_CREDIT_IMPORTO_MINIMO";
public static final String P_SELLA_P_CREDIT_TEST = "SELLA_P_CREDIT_TEST";
public static final String P_SELLA_P_CREDIT_OK_PAGE = "SELLA_P_CREDIT_OK_PAGE";
public static final String SELLA_P_CREDIT_TAB_FIN_TASSO_0 = "MPF";
public static final String SELLA_P_CREDIT_TAB_FIN_30 = "WIN";
public static final String REQUEST_SERVER = "https://secure.sellapersonalcredit.it/econsel/public/entry/pf";
public static final String REQUEST_SERVER_TEST = "https://sandbox.sellapersonalcredit.it/econsel/public/entry/pf";
public static final String P_COD_TIPO_MERCE_SELLA_P_CREDIT = "COD_TIPO_MERCE_SELLA_P_CREDIT";
public static final String P_COD_CONVENZIONE_SELLA_P_CREDIT = "COD_CONVENZIONE_SELLA_P_CREDIT";
public static final String P_SELLA_P_CREDIT_ERROR_PAGE = "SELLA_P_CREDIT_ERROR_PAGE";
public static final String P_SELLA_P_CREDIT_RATA0 = "SELLA_P_CREDIT_RATA0";
public SellaPCreditReq(ApplParmFull l_ap) {
setAp(l_ap);
}
public SellaPCreditReq() {}
public String getTipoesec() {
return "T";
}
public void setTipoesec(String tipoesec) {
this.tipoesec = tipoesec;
}
public String getTabellaFinanziaria() {
if (isTest())
return "WIN";
return (this.tabellaFinanziaria == null) ? "" : this.tabellaFinanziaria.trim();
}
public void setTabellaFinanziaria(String tabfin) {
this.tabellaFinanziaria = tabfin;
}
public String getCognome() {
return (this.cognome == null) ? "" : this.cognome.trim();
}
public void setCognome(String cognome) {
this.cognome = cognome;
}
public String getNome() {
return (this.nome == null) ? "" : this.nome.trim();
}
public void setNome(String nome) {
this.nome = nome;
}
public String getIndirizzo() {
return (this.indirizzo == null) ? "" : this.indirizzo.trim();
}
public void setIndirizzo(String indirizzo) {
this.indirizzo = indirizzo;
}
public String getNumeroTelefono() {
return (this.numeroTelefono == null) ? "" : this.numeroTelefono.trim();
}
public void setNumeroTelefono(String tel_num) {
this.numeroTelefono = tel_num;
}
public String getPref_num() {
return (this.pref_num == null) ? "" : this.pref_num.trim();
}
public void setPref_num(String pref_num) {
this.pref_num = pref_num;
}
public String getData_nascita() {
return (this.data_nascita == null) ? "" : this.data_nascita.trim();
}
public void setData_nascita(String data_nascita) {
this.data_nascita = data_nascita;
}
public String getIndirizzo_mail() {
return (this.indirizzo_mail == null) ? "" : this.indirizzo_mail.trim();
}
public void setIndirizzo_mail(String testomail) {
this.indirizzo_mail = testomail;
}
public String getCodiceFiscale() {
return (this.codiceFiscale == null) ? "" : this.codiceFiscale.trim();
}
public void setCodiceFiscale(String codfisc) {
this.codiceFiscale = codfisc;
}
public String getOrdine() {
return (this.ordine == null) ? "" : this.ordine.trim();
}
public void setOrdine(String ordine) {
this.ordine = ordine;
}
public String getDescrizioneBene() {
return (this.descrizioneBene == null) ? "" : this.descrizioneBene.trim();
}
public void setDescrizioneBene(String descri1) {
this.descrizioneBene = descri1;
}
public String getAnticipoS() {
return (this.anticipoS == null) ? "" : this.anticipoS;
}
public void setAnticipoS(String parz1) {
this.anticipoS = parz1;
}
public String getCodiceMerce() {
if (isTest())
return "HT";
if (this.codiceMerce == null)
this.codiceMerce = getApFull().getParm("COD_TIPO_MERCE_SELLA_P_CREDIT").getTesto();
return this.codiceMerce;
}
public boolean isTest() {
return getApFull().getParm("SELLA_P_CREDIT_TEST").isTrue();
}
public void setCodiceMerce(String h_merce) {
this.codiceMerce = h_merce;
}
public String getCodiceProdotto() {
if (isTest())
return "50";
if (this.codiceProdotto == null)
this.codiceProdotto = getApFull().getParm("COD_TIPO_PRODOTTO_SELLA_P_CREDIT").getTesto();
return this.codiceProdotto;
}
public void setCodiceProdotto(String h_prod) {
this.codiceProdotto = h_prod;
}
public String getCodiceConvenzionato() {
if (isTest())
return "0049613";
if (this.codiceConvenzionato == null)
this.codiceConvenzionato = getApFull().getParm("COD_CONVENZIONE_SELLA_P_CREDIT").getTesto().trim();
return this.codiceConvenzionato;
}
public void setCodiceConvenzionato(String convenz) {
this.codiceConvenzionato = convenz;
}
public String getImportoDaFinanziare() {
return (this.importoDaFinanziare == null) ? "" : this.importoDaFinanziare;
}
public void setImportoDaFinanziare(String impdafin) {
this.importoDaFinanziare = impdafin;
}
public double getAnticipo() {
return this.anticipo;
}
public String getRequestServer() {
if (isTest())
return "https://sandbox.sellapersonalcredit.it/econsel/public/entry/pf";
return "https://secure.sellapersonalcredit.it/econsel/public/entry/pf";
}
public void setAnticipo(double anticipo) {
this.anticipo = anticipo;
}
public static void initApplicationParms(ApplParmFull ap) {
if (ap != null) {
DBAdapter.logDebug(true, "SELLA_P_CREDIT chechout initParms: start");
String l_tipoParm = "";
Parm bean = new Parm(ap);
l_tipoParm = "SELLA_P_CREDIT";
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
bean.findByCodice("COD_CONVENZIONE_SELLA_P_CREDIT");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("COD_CONVENZIONE_SELLA_P_CREDIT");
bean.setDescrizione("COD_CONVENZIONE_SELLA_P_CREDIT");
bean.setFlgTipo(0L);
if (bean.getTesto().equals(""))
bean.setTesto("0026321");
bean.setNota("CODICE CONVENZIONE SELLA_P_CREDIT");
bean.save();
bean.findByCodice("COD_TIPO_MERCE_SELLA_P_CREDIT");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("COD_TIPO_MERCE_SELLA_P_CREDIT");
bean.setDescrizione("COD_TIPO_MERCE_SELLA_P_CREDIT");
bean.setFlgTipo(0L);
if (bean.getTesto().equals(""))
bean.setTesto("HT");
bean.setNota("CODICE INDICATIVO MERCE FINANZIATA ");
bean.save();
bean.findByCodice("COD_TIPO_PRODOTTO_SELLA_P_CREDIT");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("COD_TIPO_PRODOTTO_SELLA_P_CREDIT");
bean.setDescrizione("COD_TIPO_PRODOTTO_SELLA_P_CREDIT");
bean.setFlgTipo(0L);
if (bean.getTesto().equals(""))
bean.setTesto("50");
bean.setNota("CODICE INDICATIVO PRODOTTO FINANZIATO");
bean.save();
bean.findByCodice("SELLA_P_CREDIT_ERROR_PAGE");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("SELLA_P_CREDIT_ERROR_PAGE");
bean.setDescrizione("SELLA_P_CREDIT_ERROR_PAGE");
bean.setFlgTipo(0L);
if (bean.getTesto().equals(""))
bean.setTesto("sellaPCreditRes.jsp");
bean.setNota("SELLA_P_CREDIT_ERROR_PAGE");
bean.save();
bean.findByCodice("SELLA_P_CREDIT_OK_PAGE");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("SELLA_P_CREDIT_OK_PAGE");
bean.setDescrizione("SELLA_P_CREDIT_OK_PAGE");
bean.setFlgTipo(0L);
if (bean.getTesto().equals(""))
bean.setTesto("sellaPCreditRes.jsp");
bean.setNota("SELLA_P_CREDIT_OK_PAGE");
bean.save();
bean.findByCodice("SELLA_P_CREDIT_TEST");
bean.setFlgAdmin(1L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("SELLA_P_CREDIT_TEST");
bean.setDescrizione("SELLA_P_CREDIT_TEST");
bean.setFlgTipo(5L);
bean.setNota("0-->NO 1-->SI");
bean.save();
bean.findByCodice("SELLA_P_CREDIT_IMPORTO_MINIMO");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("SELLA_P_CREDIT_IMPORTO_MINIMO");
bean.setDescrizione("SELLA_P_CREDIT_IMPORTO_MINIMO");
bean.setFlgTipo(1L);
bean.setNota("SELLA_P_CREDIT_IMPORTO_MINIMO");
bean.save();
bean.findByCodice("SELLA_P_CREDIT_RATA0");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("SELLA_P_CREDIT_RATA0");
bean.setDescrizione("SELLA_P_CREDIT_RATA0");
bean.setFlgTipo(5L);
bean.setNota(" ATTIVA ANCHE RATA 0 SOPRA L'IMPORTO DEFINITO DA SELLA_P_CREDIT_IMPORTO_MINIMO<BR>0: RATA 0 NON ATTIVA<br>1: RATA 0 ATTIVA");
bean.save();
DBAdapter.logDebug(true, "SELLA_P_CREDIT chechout initParms: stop");
}
}
public String getImpspe() {
return (this.impspe == null) ? "" : this.impspe;
}
public void setImpspe(String impspe) {
this.impspe = impspe;
}
public ApplParmFull getApFull() {
return this.ap;
}
public void setAp(ApplParmFull ap) {
this.ap = ap;
}
public String getCellulare() {
return (this.cellulare == null) ? "" : this.cellulare.trim();
}
public void setCellulare(String cellulare) {
this.cellulare = cellulare;
}
public String getCommissioni() {
return (this.commissioni == null) ? "" : this.commissioni.trim();
}
public void setCommissioni(String commissioni) {
this.commissioni = commissioni;
}
}