Regalamiunsorriso/decompiled-libs/www/acxent-bank-1.0.1/it/acxent/bank/sella/SellaResp.java

185 lines
4.6 KiB
Java

package it.acxent.bank.sella;
import it.acxent.bank._BankAdapter;
public class SellaResp extends _BankAdapter {
private String myshoplogin;
private int mycurrency;
private float myamount;
private String myshoptrxID;
private String mybuyername;
private String mybuyeremail;
private String mytrxresult;
private String myauthcode;
private String myerrorcode;
private String myerrordescription;
private String myerrorbanktrxid;
private long id_ordine;
private String myalertcode;
private String myalertdescription;
private String mycustominfo;
public SellaResp() {}
public SellaResp(GestPayCrypt bean) {
fillResponse(bean);
}
public String getMyalertcode() {
return (this.myalertcode == null) ? "" : this.myalertcode;
}
public void fillResponse(GestPayCrypt bean) {
setMyshoplogin(bean.getShopLogin().trim());
if (!bean.getCurrency().isEmpty())
setMycurrency(Integer.parseInt(bean.getCurrency()));
if (!bean.getAmount().isEmpty())
setMyamount(Float.parseFloat(bean.getAmount()));
setMyshoptrxID(bean.getShopTransactionID().trim());
setMybuyername(bean.getBuyerName().trim());
setMybuyeremail(bean.getBuyerEmail().trim());
setMytrxresult(bean.getTransactionResult().trim());
setMyauthcode(bean.getAuthorizationCode());
setMyerrorcode(bean.getErrorCode());
setMyerrordescription(bean.getErrorDescription().trim());
setMyerrorbanktrxid(bean.getBankTransactionID().trim());
setMyalertcode(bean.getAlertCode().trim());
setMyalertdescription(bean.getAlertDescription().trim());
setMycustominfo(bean.getCustomInfo().trim());
if (!bean.getShopTransactionID().isEmpty())
setId_ordine(Long.parseLong(bean.getShopTransactionID()));
}
public void setMyalertcode(String myalertcode) {
this.myalertcode = myalertcode;
}
public String getMyalertdescription() {
return (this.myalertdescription == null) ? "" :
this.myalertdescription;
}
public void setMyalertdescription(String myalertdescription) {
this.myalertdescription = myalertdescription;
}
public float getMyamount() {
return this.myamount;
}
public void setMyamount(float myamount) {
this.myamount = myamount;
}
public String getMyauthcode() {
return (this.myauthcode == null) ? "" : this.myauthcode;
}
public void setMyauthcode(String myauthcode) {
this.myauthcode = myauthcode;
}
public String getMybuyeremail() {
return (this.mybuyeremail == null) ? "" : this.mybuyeremail;
}
public void setMybuyeremail(String mybuyeremail) {
this.mybuyeremail = mybuyeremail;
}
public String getMybuyername() {
return (this.mybuyername == null) ? "" : this.mybuyername;
}
public void setMybuyername(String mybuyername) {
this.mybuyername = mybuyername;
}
public int getMycurrency() {
return this.mycurrency;
}
public void setMycurrency(int mycurrency) {
this.mycurrency = mycurrency;
}
public String getMycustominfo() {
return (this.mycustominfo == null) ? "" : this.mycustominfo;
}
public void setMycustominfo(String mycustominfo) {
this.mycustominfo = mycustominfo;
}
public String getMyerrorbanktrxid() {
return (this.myerrorbanktrxid == null) ? "" :
this.myerrorbanktrxid;
}
public void setMyerrorbanktrxid(String myerrorbanktrxid) {
this.myerrorbanktrxid = myerrorbanktrxid;
}
public String getMyerrorcode() {
return (this.myerrorcode == null) ? "" : this.myerrorcode;
}
public void setMyerrorcode(String myerrorcode) {
this.myerrorcode = myerrorcode;
}
public String getMyerrordescription() {
return (this.myerrordescription == null) ? "" :
this.myerrordescription;
}
public void setMyerrordescription(String myerrordescription) {
this.myerrordescription = myerrordescription;
}
public String getMyshoplogin() {
return (this.myshoplogin == null) ? "" : this.myshoplogin;
}
public void setMyshoplogin(String myshoplogin) {
this.myshoplogin = myshoplogin;
}
public String getMyshoptrxID() {
return (this.myshoptrxID == null) ? "" : this.myshoptrxID;
}
public void setMyshoptrxID(String myshoptrxID) {
this.myshoptrxID = myshoptrxID;
}
public String getMytrxresult() {
return (this.mytrxresult == null) ? "" : this.mytrxresult;
}
public void setMytrxresult(String mytrxresult) {
this.mytrxresult = mytrxresult;
}
public long getId_ordine() {
return this.id_ordine;
}
public void setId_ordine(long id_ordine) {
this.id_ordine = id_ordine;
}
}