---
schema_version: "1"
id: d2f51ed8aea858efa4392c5dd03a6fb4f780acb8b8e3b1ceb3bc976a8747edef
title: Refund Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_RichMessaging_Refund.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Refund.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 61a90024b096d41b923cf465d8757b9f3630dce1abb59b2bf0d2c979d659f5a8
description: Represents a refund for a payment transaction.The unique identifier of the refund.The amount of the refund.The status of the refund.The reason for the refund.The date and time when the refund was processed.The reference identifier from the payment gateway for the refund.
---
# Refund Class

Represents a refund for a payment transaction.

## Namespace

[RichMessaging](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_RichMessaging.htm "Provides objects and methods for handling content in enhanced Messaging channels.")

- **[Refund Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Refund.htm#apex_RichMessaging_Refund_properties)**

## Refund Properties

The following are properties for Refund.

- **[refundId](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Refund.htm#apex_RichMessaging_Refund_refundId)**  
    The unique identifier of the refund.
- **[amount](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Refund.htm#apex_RichMessaging_Refund_amount)**  
    The amount of the refund.
- **[status](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Refund.htm#apex_RichMessaging_Refund_status)**  
    The status of the refund.
- **[reason](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Refund.htm#apex_RichMessaging_Refund_reason)**  
    The reason for the refund.
- **[timestamp](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Refund.htm#apex_RichMessaging_Refund_timestamp)**  
    The date and time when the refund was processed.
- **[gatewayReference](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Refund.htm#apex_RichMessaging_Refund_gatewayReference)**  
    The reference identifier from the payment gateway for the refund.

### refundId

The unique identifier of the refund.

#### Signature

public String refundId {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### amount

The amount of the refund.

#### Signature

public RichMessaging.CurrencyAmount amount {get; set;}

#### Property Value

Type: [RichMessaging.CurrencyAmount](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_CurrencyAmount.htm#apex_class_RichMessaging_CurrencyAmount "Represents a monetary amount in a specific currency.")

### status

The status of the refund.

#### Signature

public RichMessaging.PaymentTransactionStatus status {get; set;}

#### Property Value

Type: [RichMessaging.PaymentTransactionStatus](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_PaymentTransactionStatus.htm "Represents the status of a payment transaction.")

### reason

The reason for the refund.

#### Signature

public String reason {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### timestamp

The date and time when the refund was processed.

#### Signature

public Datetime timestamp {get; set;}

#### Property Value

Type: [Datetime](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_datetime.htm#apex_methods_system_datetime "Contains methods for the Datetime primitive data type.")

### gatewayReference

The reference identifier from the payment gateway for the refund.

#### Signature

public String gatewayReference {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")