![JAR search and dependency download from the Maven repository](/logo.png)
com.hps.integrator.terminals.pax.subgroups.AmountRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of secure-submit Show documentation
Show all versions of secure-submit Show documentation
The SecureSubmit Java SDK simplifies processing of credit card transactions using Heartland Payment Systems' Portico Payment Gateway
package com.hps.integrator.terminals.pax.subgroups;
import com.hps.integrator.abstractions.IRequestSubGroup;
import com.hps.integrator.infrastructure.emums.ControlCodes;
import com.hps.integrator.infrastructure.utils.HpsStringUtils;
public class AmountRequest implements IRequestSubGroup {
String transactionAmount;
String tipAmount;
String cashBackAmount;
String merchantFee;
String taxAmount;
String fuelAmount;
public String getTransactionAmount() {
return transactionAmount;
}
public void setTransactionAmount(String transactionAmount) {
this.transactionAmount = transactionAmount;
}
public String getTipAmount() {
return tipAmount;
}
public void setTipAmount(String tipAmount) {
this.tipAmount = tipAmount;
}
public String getCashBackAmount() {
return cashBackAmount;
}
public void setCashBackAmount(String cashBackAmount) {
this.cashBackAmount = cashBackAmount;
}
public String getMerchantFee() {
return merchantFee;
}
public void setMerchantFee(String merchantFee) {
this.merchantFee = merchantFee;
}
public String getTaxAmount() {
return taxAmount;
}
public void setTaxAmount(String taxAmount) {
this.taxAmount = taxAmount;
}
public String getFuelAmount() {
return fuelAmount;
}
public void setFuelAmount(String fuelAmount) {
this.fuelAmount = fuelAmount;
}
public String getElementString() {
StringBuilder sb = new StringBuilder();
sb.append(transactionAmount);
sb.append((char)ControlCodes.US.getByte());
sb.append(tipAmount);
sb.append((char)ControlCodes.US.getByte());
sb.append(cashBackAmount);
sb.append((char)ControlCodes.US.getByte());
sb.append(merchantFee);
sb.append((char)ControlCodes.US.getByte());
sb.append(taxAmount);
sb.append((char)ControlCodes.US.getByte());
sb.append(fuelAmount);
return HpsStringUtils.trimEnd(sb.toString(), ControlCodes.US);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy