Regalamiunsorriso/decompiled-libs/www/acxent-bank-1.0.1/it/acxent/gtbill/GTBillReq.java

134 lines
3.8 KiB
Java

package it.acxent.gtbill;
import it.acxent.bank._BankAdapter;
import it.acxent.common.Parm;
import it.acxent.db.ApplParmFull;
public class GTBillReq extends _BankAdapter {
public static final String P_GTBILL_MERCHANT_ID = "GTBILL_MERCHANT_ID";
public static final String P_GTBILL_SITE_ID = "GTBILL_SITE_ID";
public static final String P_GTBILL_RETURN_URL = "GTBILL_RETURN_URL";
public static final String DIV_CODE_EURO = "EUR";
public static final String DIV_CODE_DOLLARI = "USD";
public static final String DIV_CODE_STERLINE = "GBP";
public static final String DIV_CODE_CAN = "CAD";
public static final String DIV_CODE_REAL = "234";
private String mycurrencyid;
private String myamounttotal;
private String myamountshipping;
private String myitemname;
private String myitemquantity;
private String myitemamount;
private String myitemdesc;
public static final String FORM_URL_POST = "https://sale.GTBill.com/quickpay.aspx";
public static final String PROG_LANG_URL_POST = "https://sale.GTBill.com/quickpay2.aspx";
public static final String PROG_LANG_URL_POST_REDIRECT = "https://sale.GTBill.com/quickpay.aspx?refid=";
public static void initApplicationParms(ApplParmFull ap) {
if (ap != null) {
Parm bean = new Parm(ap);
String l_tipoParm = "GTBILL";
bean.findByCodice("GTBILL_MERCHANT_ID");
bean.setFlgAdmin(1L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("GTBILL_MERCHANT_ID");
bean.setDescrizione("GTBILL_MERCHANT_ID");
bean.setFlgTipo(0L);
bean.setNota("MERCHANT ID ASSEGNATO DALLA BANCA");
bean.save();
bean.findByCodice("GTBILL_SITE_ID");
bean.setFlgAdmin(1L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("GTBILL_SITE_ID");
bean.setDescrizione("GTBILL_SITE_ID");
bean.setFlgTipo(0L);
bean.setNota("SITE ID ASSEGNATO DALLA BANCA");
bean.save();
bean.findByCodice("GTBILL_RETURN_URL");
bean.setFlgAdmin(1L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("GTBILL_RETURN_URL");
bean.setDescrizione("GTBILL_RETURN_URL");
bean.setFlgTipo(0L);
bean.setNota("URL AL QUALE SI DEVE RITORNARE DOPO IL PAGAMENTO");
bean.save();
}
}
public String getMyamounttotal() {
return (this.myamounttotal == null) ? "" :
this.myamounttotal.replace(".", ",").replace(",", ".");
}
public void setMyamounttotal(String myamount) {
this.myamounttotal = myamount;
}
public String getMycurrencyid() {
return (this.mycurrencyid == null) ? "" : this.mycurrencyid;
}
public void setMycurrencyid(String mycurrency) {
this.mycurrencyid = mycurrency;
}
public String getMyamountshipping() {
return (this.myamountshipping == null) ? "" :
this.myamountshipping;
}
public void setMyamountshipping(String myamountshipping) {
this.myamountshipping = myamountshipping;
}
public String getMyitemname() {
return (this.myitemname == null) ? "" : this.myitemname;
}
public void setMyitemname(String myitemname) {
this.myitemname = myitemname;
}
public String getMyitemquantity() {
return (this.myitemquantity == null) ? "" :
this.myitemquantity;
}
public void setMyitemquantity(String myitemquantity) {
this.myitemquantity = myitemquantity;
}
public String getMyitemamount() {
return (this.myitemamount == null) ? "" :
this.myitemamount.replace(".", ",").replace(",", ".");
}
public void setMyitemamount(String myitemamount) {
this.myitemamount = myitemamount;
}
public String getMyitemdesc() {
return (this.myitemdesc == null) ? "" : this.myitemdesc;
}
public void setMyitemdesc(String myitemdesc) {
this.myitemdesc = myitemdesc;
}
}