ReferencedRefundResponse Class
The payment gateway adapter sends this response for the ReferencedRefund request type.
The constructor of this class takes no arguments. For example:
CommercePayments.ReferencedRefundResponse refr = new CommercePayments.ReferencedRefundResponse();
The following are methods for ReferencedRefundResponse.
-
Sets the transaction amount. The value must be a postive number.
-
Sets whether the payment capture or authorization is asynchronous (
True) or synchronous (False). IfTrue, then the payment refund record created has a status ofPending. -
setGatewayAvsCode(gatewayAvsCode)
Sets the payment gateway’s address verification system (AVS) code.
-
Sets the payment gateway’s date.
-
setGatewayMessage(gatewayMessage)
Sets information or messages that the gateway returned.
-
setGatewayReferenceDetails(gatewayReferenceDetails)
Sets the payment gateway’s reference details.
-
setGatewayReferenceNumber(gatewayReferenceNumber)
Sets the payment gateway’s reference number.
-
setGatewayResultCode(gatewayResultCode)
Sets the payment gateway’s result code.
-
setGatewayResultCodeDescription(gatewayResultCodeDescription)
Sets the payment gateway’s result code description.
-
setSalesforceResultCodeInfo(salesforceResultCodeInfo)
Set the Salesforce result code info.
Sets the transaction amount. The value must be a postive number.
global void setAmount(Double amount)
- amount: Type: Double The amount to be debited or captured.
Type: void
Sets whether the payment capture or authorization is asynchronous (True) or synchronous (False). If True, then the payment refund record created has a status of Pending.
public void setAsync(Boolean async)
- async: Type: Boolean
Type: void
Sets the payment gateway’s address verification system (AVS) code.
global void setGatewayAvsCode(String gatewayAvsCode)
- gatewayAvsCode: Type: String Code sent by gateways that use an address verification system.
Type: void
Sets the payment gateway’s date.
global void setGatewayDate(Datetime gatewayDate)
- gatewayDate: Type: Datetime Date and time of the gateway communication.
Type: void
Sets information or messages that the gateway returned.
global void setGatewayMessage(String gatewayMessage)
- gatewayMessage: Type: String Information or error messages returned by the gateway.
Type: void
Sets the payment gateway’s reference details.
global void setGatewayReferenceDetails(String gatewayReferenceDetails)
- gatewayReferenceDetails: Type: String Information about the gateway communication.
Type: void
Sets the payment gateway’s reference number.
global void setGatewayReferenceNumber(String gatewayReferenceNumber)
- gatewayReferenceNumber: Type: String Unique transaction ID created by the payment gateway.
Type: void
Sets the payment gateway’s result code.
global void setGatewayResultCode(String gatewayResultCode)
- gatewayResultCode: Type: String The gateway result code. Must be mapped to a Salesforce result code.
Type: void
Sets the payment gateway’s result code description.
global void setGatewayResultCodeDescription(String gatewayResultCodeDescription)
- gatewayResultCodeDescription: Type: String Description of the
GatewayResultCode. Provides more information about the result code returned by the gateway.
Type: void
Set the Salesforce result code info.
global void setSalesforceResultCodeInfo(commercepayments.SalesforceResultCodeInfo salesforceResultCodeInfo)
- salesforceResultCodeInfo: Type: commercepayments.SalesforceResultCodeInfo Describes the Salesforce result code value.
Type: void