---
schema_version: "1"
id: eae0edec4429c27a90d44e4b2787eb2dcf27c023857b91b3d0ee7bd46360b8af
title: RichMessaging Namespace
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_namespace_RichMessaging.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_RichMessaging.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3d1791618cfd1aa9b1de45d3a98cfbed374ae335c41608dc97fd8d4ec3c18584
description: Provides objects and methods for handling content in enhanced Messaging channels.
---
# RichMessaging Namespace

Provides objects and methods for handling content in enhanced Messaging channels.

The following are the classes in the RichMessaging namespace.

- **[AbstractTiming Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_AbstractTiming.htm#apex_class_RichMessaging_AbstractTiming)**  
    Parent class for other RichMessaging timing classes.
- **[Address Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Address.htm#apex_class_RichMessaging_Address)**  
    Represents a postal address.
- **[AddressableContact Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_AddressableContact.htm#apex_class_RichMessaging_AddressableContact)**  
    Represents an addressable contact.
- **[AuthRequestHandler Interface](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_interface_RichMessaging_AuthRequestHandler.htm#apex_interface_RichMessaging_AuthRequestHandler)**  
    Use this interface to handle authorization request responses.
- **[AuthRequestResponse Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_AuthRequestResponse.htm#apex_class_RichMessaging_AuthRequestResponse)**  
    This class contains authorization request response data.
- **[AuthRequestResult Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_AuthRequestResult.htm#apex_class_RichMessaging_AuthRequestResult)**  
    This class contains the result from handling the authorization request response.
- **[AuthRequestResultStatus Enum](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_AuthRequestResultStatus.htm)**  
    This enum describes the authentication result status.
- **[CurrencyAmount Class](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.
- **[DeferredTiming Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_DeferredTiming.htm#apex_class_RichMessaging_DeferredTiming)**  
    Represents timing for a transaction that occurs in the future.
- **[MessageDefinitionInputParameter Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_MessageDefinitionInputParameter.htm#apex_class_RichMessaging_MessageDefinitionInputParameter)**  
    Represents a messaging component parameter value. This class is used to provide parameter payloads that can be translated to structured content payloads in rich content messages.
- **[OrderBeneficiary Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderBeneficiary.htm#apex_class_RichMessaging_OrderBeneficiary)**  
    Represents the beneficiary of an order.
- **[OrderContext Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderContext.htm#apex_class_RichMessaging_OrderContext)**  
    Represents the context information of an order.
- **[OrderExpiration Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderExpiration.htm#apex_class_RichMessaging_OrderExpiration)**  
    Represents the expiration information of an order.
- **[OrderItemCategory Enum](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_OrderItemCategory.htm)**  
    Represents the category of an order item.
- **[OrderItemCommerceAttributes Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderItemCommerceAttributes.htm#apex_class_RichMessaging_OrderItemCommerceAttributes)**  
    Represents the commerce attributes of an order item.
- **[OrderItemImporter Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderItemImporter.htm#apex_class_RichMessaging_OrderItemImporter)**  
    Represents the importer information for an order item.
- **[OrderType Enum](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_OrderType.htm)**  
    Represents the type of an order.
- **[PaymentCheckoutBehavior Enum](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_PaymentCheckoutBehavior.htm)**  
    Represents the checkout behavior of a payment.
- **[PaymentError Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_PaymentError.htm#apex_class_RichMessaging_PaymentError)**  
    Represents an error that occurred during a payment transaction.
- **[PaymentGatewayProperties Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_PaymentGatewayProperties.htm#apex_class_RichMessaging_PaymentGatewayProperties)**  
    Represents gateway-specific properties for a payment.
- **[PaymentInitiation Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_PaymentInitiation.htm#apex_class_RichMessaging_PaymentInitiation)**  
    Represents the payment initiation information for an order.
- **[PaymentInitiationBoleto Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_PaymentInitiationBoleto.htm#apex_class_RichMessaging_PaymentInitiationBoleto)**  
    Represents Boleto-specific payment initiation details.
- **[PaymentInitiationGateway Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_PaymentInitiationGateway.htm#apex_class_RichMessaging_PaymentInitiationGateway)**  
    Represents gateway-specific payment initiation details.
- **[PaymentInitiationMode Enum](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_PaymentInitiationMode.htm)**  
    Represents the mode used to initiate a payment.
- **[PaymentInitiationPix Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_PaymentInitiationPix.htm#apex_class_RichMessaging_PaymentInitiationPix)**  
    Represents PIX-specific payment initiation details.
- **[PaymentInitiationPixKeyType Enum](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_PaymentInitiationPixKeyType.htm)**  
    Represents the type of PIX key used for a payment.
- **[PaymentItemStatus Enum](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_PaymentItemStatus.htm)**  
    Represents the status of a payment item in payment requests sent in enhanced Messaging channels.
- **[PaymentLineItem Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_PaymentLineItem.htm#apex_class_RichMessaging_PaymentLineItem)**  
    Represents a payment line item in payment requests sent in enhanced Messaging channels.
- **[PaymentMethod Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_PaymentMethod.htm#apex_class_RichMessaging_PaymentMethod)**  
    Represents a payment method.
- **[PaymentMethodHint Enum](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_PaymentMethodHint.htm)**  
    Represents a hint for the payment method to be used.
- **[PaymentTransaction Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_PaymentTransaction.htm#apex_class_RichMessaging_PaymentTransaction)**  
    Represents a payment transaction.
- **[PaymentTransactionStatus Enum](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_PaymentTransactionStatus.htm)**  
    Represents the status of a payment transaction.
- **[PaymentTransactionType Enum](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_PaymentTransactionType.htm)**  
    Represents the type of payment transaction.
- **[PostalAddress Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_PostalAddress.htm#apex_class_RichMessaging_PostalAddress)**  
    Represents the postal address.
- **[ProcessFormHandler Interface](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_interface_RichMessaging_ProcessFormHandler.htm#apex_interface_RichMessaging_ProcessFormHandler)**  
    Apex interface that processes the responses to forms submitted in a messaging session.
- **[ProcessPaymentHandler Interface](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_interface_RichMessaging_ProcessPaymentHandler.htm#apex_interface_RichMessaging_ProcessPaymentHandler)**  
    Interface used to process payment requests.
- **[ProcessPaymentRequest Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_ProcessPaymentRequest.htm#apex_class_RichMessaging_ProcessPaymentRequest)**  
    Represents a request to process a payment.
- **[ProcessPaymentResult Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_ProcessPaymentResult.htm#apex_class_RichMessaging_ProcessPaymentResult)**  
    Represents the result of a payment processing operation.
- **[ProcessPaymentResultStatus Enum](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_ProcessPaymentResultStatus.htm)**  
    Represents the status of a payment processing result.
- **[ProcessPaymentStatusHandler Interface](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_interface_RichMessaging_ProcessPaymentStatusHandler.htm#apex_interface_RichMessaging_ProcessPaymentStatusHandler)**  
    Interface used to process payment status updates.
- **[ProcessPaymentStatusRequest Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_ProcessPaymentStatusRequest.htm#apex_class_RichMessaging_ProcessPaymentStatusRequest)**  
    Represents a request to process a payment status update.
- **[ProcessPaymentStatusResult Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_ProcessPaymentStatusResult.htm#apex_class_RichMessaging_ProcessPaymentStatusResult)**  
    Represents the result of processing a payment status update.
- **[RecurringTiming Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_RecurringTiming.htm#apex_class_RichMessaging_RecurringTiming)**  
    Represents a payment that occurs on a regular basis.
- **[Refund Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Refund.htm#apex_class_RichMessaging_Refund)**  
    Represents a refund for a payment transaction.
- **[ShippingMethod Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_ShippingMethod.htm#apex_class_RichMessaging_ShippingMethod)**  
    Represents a shipping method listed in payment requests sent in enhanced Messaging channels.
- **[TimeSlotOption Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_TimeSlotOption.htm#apex_class_RichMessaging_TimeSlotOption)**  
    Represents a complex time slot option type. This class is used to provide time option payloads that can be translated to structured content payloads in rich content messages.
- **[TimingIntervalUnit Enum](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_TimingIntervalUnit.htm)**  
    Represents an enumerated type that describes the timing interval.
- **[TimingType Enum](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_TimingType.htm)**  
    Represents an enumerated type that describes the type of timing.