com.global.api.terminals.TerminalResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of globalpayments-sdk Show documentation
Show all versions of globalpayments-sdk Show documentation
API for processing payments through Global Payments
package com.global.api.terminals;
import com.global.api.entities.enums.ApplicationCryptogramType;
import com.global.api.entities.enums.CardType;
import com.global.api.terminals.abstractions.IDeviceResponse;
import lombok.Getter;
import lombok.Setter;
import java.math.BigDecimal;
public abstract class TerminalResponse implements IDeviceResponse {
// Internal
protected String status;
protected String command;
protected String version;
// Functional
protected String deviceResponseCode;
protected String deviceResponseText;
protected String responseCode;
protected String responseText;
protected String transactionId;
protected String terminalRefNumber;
protected String token;
protected String signatureStatus;
protected byte[] signatureData;
@Getter
@Setter
protected String qpsQualified;
@Getter
@Setter
protected String storeAndForward;
// Transactional
protected String transactionType;
protected String maskedCardNumber;
protected String entryMethod;
protected String authorizationCode;
protected String approvalCode;
protected BigDecimal transactionAmount;
@Getter
@Setter
protected BigDecimal authorizedAmount;
protected BigDecimal amountDue;
protected BigDecimal balanceAmount;
protected String cardHolderName;
protected String cardBIN;
protected boolean cardPresent;
protected CardType cardType;
protected String expirationDate;
protected BigDecimal tipAmount;
protected BigDecimal cashBackAmount;
protected String avsResponseCode;
protected String avsResponseText;
protected String cvvResponseCode;
protected String cvvResponseText;
@Getter
@Setter
protected String avsResultCode;
@Getter
@Setter
protected String avsResultText;
@Getter
@Setter
protected String cvvResultCode;
@Getter
@Setter
protected String cvvResultText;
protected boolean taxExempt;
protected String taxExemptId;
protected String ticketNumber;
protected String paymentType;
protected BigDecimal merchantFee;
protected String cardBrandTransactionId;
@Getter
@Setter
protected String expiryDate;
@Getter
@Setter
protected BigDecimal serviceCode;
@Getter
@Setter
protected String cpcInd;
// EMV
protected String applicationPreferredName;
protected String applicationLabel;
protected String applicationId;
protected ApplicationCryptogramType applicationCryptogramType;
protected String applicationCryptogram;
protected String customerVerificationMethod;
protected String terminalVerificationResults;
@Getter @Setter
protected String errorCode;
protected String unmaskedCardNumber;
@Getter
@Setter
protected String applicationIdentifier;
@Getter
@Setter
protected String transactionCurrencyCode;
@Getter
@Setter
protected String sequenceNo;
@Getter
@Setter
protected String applicationInterchangeProfile;
@Getter
@Setter
protected String dedicatedFileName;
@Getter
@Setter
protected String authorizedResponse;
@Getter
@Setter
protected String terminalVerificationResult;
@Getter
@Setter
protected String transactionPin;
@Getter
@Setter
protected String transactionDate;
@Getter
@Setter
protected String transactionStatusInfo;
@Getter
@Setter
protected String emvTransactionType;
/**
* This method does not work with PAX S300 device
*/
@Getter
@Setter
protected String amountAuthorized;
@Getter
@Setter
protected String otherAmount;
@Getter
@Setter
protected String applicationVersionNumber;
@Getter
@Setter
protected String issuerActionCode;
@Getter
@Setter
protected String iacDenial;
@Getter
@Setter
protected String iacOnline;
@Getter
@Setter
protected String issuerApplicationData;
@Getter
@Setter
protected String countryCode;
@Getter
@Setter
protected String serialNo;
@Getter
@Setter
protected Integer cryptogramInfoData;
@Getter
@Setter
protected String terminalCapabilities;
@Getter
@Setter
protected String cvmResult;
@Getter
@Setter
protected String terminalType;
@Getter
@Setter
protected String applicationTransactionCounter;
@Getter
@Setter
protected String unpredictableNumber;
@Getter
@Setter
protected String additionalTerminalCapabilities;
@Getter
@Setter
protected String transactionSequenceCounter;
@Getter
@Setter
protected String tacDefault;
@Getter
@Setter
protected String tacDenial;
@Getter
@Setter
protected String tacOnline;
//Host
@Getter
@Setter
protected String responsesId;
@Getter
@Setter
protected String responseDateTime;
@Getter
@Setter
protected Integer gatewayResponsCode;
@Getter
@Setter
protected String gatewayResponseMessage;
@Getter
@Setter
protected BigDecimal authorizeAmount;
@Getter
@Setter
protected String transactionDescriptor;
@Getter
@Setter
protected String recurringDataCode;
@Getter
@Setter
protected String cavvResultCode;
@Getter
@Setter
protected Integer traceNo;
@Getter
@Setter
protected String tokenResponsCode;
protected String traceNumber;
@Getter
@Setter
protected String tokenResponseMessage;
@Getter
@Setter
protected String customHash;
//DCC
@Getter
@Setter
protected BigDecimal exchangeRate;
@Getter
@Setter
protected BigDecimal markUp;
@Getter
@Setter
protected String transactionCurrency;
@Getter @Setter
protected String deviceSerialNum;
@Getter @Setter
protected String appVersion;
@Getter @Setter
protected String osVersion;
@Getter @Setter
protected String emvSdkVersion;
@Getter @Setter
protected String ctlsSdkVersion;
@Getter @Setter
protected String requestId;
@Getter @Setter
protected String originalTransactionType;
//fallback
@Getter
@Setter
protected Integer fallback;
@Getter
@Setter
protected String pinVerified;
@Getter
@Setter
protected String accountType;
@Getter
@Setter
protected String issuerResponseCode;
@Getter
@Setter
protected String isoResponseCode;
@Getter
@Setter
protected String bankResponseCode;
@Getter
@Setter
protected String applicationName;
@Getter
@Setter
protected String cardHolderLanguage;
@Getter
@Setter
protected String terminalStatusIndicator;
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getCommand() {
return command;
}
public void setCommand(String command) {
this.command = command;
}
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public String getDeviceResponseCode() {
return deviceResponseCode;
}
public void setDeviceResponseCode(String deviceResponseCode) {
this.deviceResponseCode = deviceResponseCode;
}
public String getDeviceResponseText() {
return deviceResponseText;
}
public void setDeviceResponseText(String deviceResponseText) {
this.deviceResponseText = deviceResponseText;
}
public String getResponseCode() {
return responseCode;
}
public void setResponseCode(String responseCode) {
this.responseCode = responseCode;
}
public String getResponseText() {
return responseText;
}
public void setResponseText(String responseText) {
this.responseText = responseText;
}
public String getTransactionId() {
return transactionId;
}
public void setTransactionId(String transactionId) {
this.transactionId = transactionId;
}
public String getTerminalRefNumber() {
return terminalRefNumber;
}
public void setTerminalRefNumber(String terminalRefNumber) {
this.terminalRefNumber = terminalRefNumber;
}
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
public String getSignatureStatus() {
return signatureStatus;
}
public void setSignatureStatus(String signatureStatus) {
this.signatureStatus = signatureStatus;
}
public byte[] getSignatureData() {
return signatureData;
}
public void setSignatureData(byte[] signatureData) {
this.signatureData = signatureData;
}
public String getTransactionType() {
return transactionType;
}
public void setTransactionType(String transactionType) {
this.transactionType = transactionType;
}
public String getMaskedCardNumber() {
return maskedCardNumber;
}
public void setMaskedCardNumber(String maskedCardNumber) {
this.maskedCardNumber = maskedCardNumber;
}
public String getEntryMethod() {
return entryMethod;
}
public void setEntryMethod(String entryMethod) {
this.entryMethod = entryMethod;
}
public String getApprovalCode() {
return approvalCode;
}
public void setApprovalCode(String approvalCode) {
this.approvalCode = approvalCode;
}
public BigDecimal getTransactionAmount() {
return transactionAmount;
}
public void setTransactionAmount(BigDecimal transactionAmount) {
this.transactionAmount = transactionAmount;
}
public BigDecimal getAmountDue() {
return amountDue;
}
public void setAmountDue(BigDecimal amountDue) {
this.amountDue = amountDue;
}
public String getCardHolderName() {
return cardHolderName;
}
public void setCardHolderName(String cardHolderName) {
this.cardHolderName = cardHolderName;
}
public String getCardBIN() {
return cardBIN;
}
public void setCardBIN(String cardBIN) {
this.cardBIN = cardBIN;
}
public boolean isCardPresent() {
return cardPresent;
}
public void setCardPresent(boolean cardPresent) {
this.cardPresent = cardPresent;
}
public String getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(String expirationDate) {
this.expirationDate = expirationDate;
}
public BigDecimal getTipAmount() {
return tipAmount;
}
public void setTipAmount(BigDecimal tipAmount) {
this.tipAmount = tipAmount;
}
public BigDecimal getCashBackAmount() {
return cashBackAmount;
}
public void setCashBackAmount(BigDecimal cashBackAmount) {
this.cashBackAmount = cashBackAmount;
}
public String getAvsResponseCode() {
return avsResponseCode;
}
public void setAvsResponseCode(String avsResponseCode) {
this.avsResponseCode = avsResponseCode;
}
public String getAvsResponseText() {
return avsResponseText;
}
public void setAvsResponseText(String avsResponseText) {
this.avsResponseText = avsResponseText;
}
public String getCvvResponseCode() {
return cvvResponseCode;
}
public void setCvvResponseCode(String cvvResponseCode) {
this.cvvResponseCode = cvvResponseCode;
}
public String getCvvResponseText() {
return cvvResponseText;
}
public void setCvvResponseText(String cvvResponseText) {
this.cvvResponseText = cvvResponseText;
}
public boolean isTaxExempt() {
return taxExempt;
}
public void setTaxExempt(boolean taxExempt) {
this.taxExempt = taxExempt;
}
public String getTaxExemptId() {
return taxExemptId;
}
public void setTaxExemptId(String taxExemptId) {
this.taxExemptId = taxExemptId;
}
public String getTicketNumber() {
return ticketNumber;
}
public void setTicketNumber(String ticketNumber) {
this.ticketNumber = ticketNumber;
}
public String getPaymentType() {
return paymentType;
}
public void setPaymentType(String paymentType) {
this.paymentType = paymentType;
}
public BigDecimal getMerchantFee() {
return merchantFee;
}
public void setMerchantFee(BigDecimal merchantFee) {
this.merchantFee = merchantFee;
}
public String getApplicationPreferredName() {
return applicationPreferredName;
}
public void setApplicationPreferredName(String applicationPreferredName) {
this.applicationPreferredName = applicationPreferredName;
}
public String getApplicationLabel() {
return applicationLabel;
}
public void setApplicationLabel(String applicationLabel) {
this.applicationLabel = applicationLabel;
}
public String getApplicationId() {
return applicationId;
}
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
public ApplicationCryptogramType getApplicationCryptogramType() {
return applicationCryptogramType;
}
public void setApplicationCryptogramType(ApplicationCryptogramType applicationCryptogramType) {
this.applicationCryptogramType = applicationCryptogramType;
}
public String getApplicationCryptogram() {
return applicationCryptogram;
}
public void setApplicationCryptogram(String applicationCryptogram) {
this.applicationCryptogram = applicationCryptogram;
}
public String getCustomerVerificationMethod() {
return customerVerificationMethod;
}
public void setCustomerVerificationMethod(String customerVerificationMethod) {
this.customerVerificationMethod = customerVerificationMethod;
}
public String getTerminalVerificationResults() {
return terminalVerificationResults;
}
public void setTerminalVerificationResults(String terminalVerificationResults) {
this.terminalVerificationResults = terminalVerificationResults;
}
public String getAuthorizationCode() {
return authorizationCode;
}
public void setAuthorizationCode(String authorizationCode) {
this.authorizationCode = authorizationCode;
}
public BigDecimal getBalanceAmount() {
return balanceAmount;
}
public void setBalanceAmount(BigDecimal balanceAmount) {
this.balanceAmount = balanceAmount;
}
public CardType getCardType() {
return cardType;
}
public void setCardType(CardType value) {
this.cardType = value;
}
public String getCardBrandTransactionId() {
return cardBrandTransactionId;
}
public void setCardBrandTransactionId(String value) {
this.cardBrandTransactionId = value;
}
public String getUnmaskedCardNumber() {
return unmaskedCardNumber;
}
public String getAppVersion() { return appVersion; }
public void setAppVersion(String appVersion) { this.appVersion = appVersion; }
public String getOsVersion() { return osVersion; }
public void setOsVersion(String osVersion) {
this.osVersion = osVersion;
}
public String getEmvSdkVersion() {
return emvSdkVersion;
}
public void setEmvSdkVersion(String emvSdkVersion) { this.emvSdkVersion = emvSdkVersion; }
public String getCtlsSdkVersion() {
return ctlsSdkVersion;
}
public void setCtlsSdkVersion(String ctlsSdkVersion) {
this.ctlsSdkVersion = ctlsSdkVersion;
}
}