Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

RefundRequest Class

Sends data related to a refund to the payment gateway adapter.

Namespace

CommercePayments

Usage

The constructor of this class takes no arguments. For example:

CommercePayments.RefundRequest rrq = new CommercePayments.RefundRequest();

Example

1commercepayments.ReferencedRefundRequest refundRequest = new commercepayments.ReferencedRefundRequest(80, pmt.id);

RefundRequest Methods

The following are methods for RefundRequest.

equals(obj)

Maintains the integrity of lists of type RefundRequest by determining the equality of external objects in a list. This method is dynamic and is based on the equals method in Java.

Signature

global Boolean equals(Object obj)

Parameters

  • obj:

    Type: Object

Return Value

Type: Boolean

hashCode()

Maintains the integrity of lists of type RefundRequest by determining the uniqueness of the external object records in a list.

Signature

global Integer hashCode()

Return Value

Type: Integer