com.global.api.gateways.bill_pay.responses.ReversalResponse 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.gateways.bill_pay.responses;
import com.global.api.entities.Transaction;
import com.global.api.utils.Element;
public class ReversalResponse extends BillPayResponseBase {
public Transaction map() {
Element authorizationElement = response.get("a:ReversalTransactionWithReversalAuthorizations");
Transaction result = new Transaction();
result.setResponseCode(response.getString("a:ResponseCode"));
result.setResponseMessage(getFirstResponseMessage(response));
result.setClientTransactionId(authorizationElement.getString("a:MerchantTransactionID"));
result.setTimestamp(authorizationElement.getString("a:TransactionDate"));
result.setTransactionId(authorizationElement.getString("a:TransactionID"));
result.setReferenceNumber(authorizationElement.getString("a:ReferenceTransactionID"));
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy