---
schema_version: "1"
id: a69cf7fce173ddbf04c62a2ef4c668afdc6a4126b253122d34cea28df5384f5a
title: RefundRequest Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_commercepayments_RefundRequest.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercepayments_RefundRequest.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4a298c99441725f97bfeae42cf4340859d4061acc9c0689e5acdb389348e68c2
description: Sends data related to a refund to the payment gateway adapter.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.Maintains the integrity of lists of type RefundRequest by determining the uniqueness of the external object records in a list.
---
# RefundRequest Class

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

## Namespace

[CommercePayments](#apex_class_commercepayments_RefundRequest "Sends data related to a refund to the payment gateway adapter.")

## Usage

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

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

## Example

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

- **[RefundRequest Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercepayments_RefundRequest.htm#apex_commercepayments_RefundRequest_methods)**

## RefundRequest Methods

The following are methods for RefundRequest.

- **[equals(obj)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercepayments_RefundRequest.htm#apex_commercepayments_RefundRequest_equals)**  
    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.
- **[hashCode()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercepayments_RefundRequest.htm#apex_commercepayments_RefundRequest_hashCode)**  
    Maintains the integrity of lists of type RefundRequest by determining the uniqueness of the external object records in a list.

### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_integer.htm#apex_methods_system_integer "Contains methods for the Integer primitive data type.")