---
schema_version: "1"
id: 763b00cce87db710a35e8c352da2ac1b2700d2b1618b9b5564531bd40b540c4d
title: OrderContext Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_RichMessaging_OrderContext.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderContext.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2c7adbd8c4c6c4b568d0b19bfa42b80e580bad115f03f7716dcd950bf98e3033
description: Represents the context information of an order.The type of the order.The order type variable of the order.The checkout behavior for the payment.The payment checkout behavior variable of the order.The expiration information for the order.The order expiration variable for the order.The list of payment method hints for the order.The payment method hints variable for the order.The beneficiary information of the order.The order beneficiary variable for the order.The payment initiation information for the order.The payment initiation variable for the order.
---
# OrderContext Class

Represents the context information of an order.

## 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.")

- **[OrderContext Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderContext.htm#apex_RichMessaging_OrderContext_properties)**

## OrderContext Properties

The following are properties for OrderContext.

- **[orderType](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderContext.htm#apex_RichMessaging_OrderContext_orderType)**  
    The type of the order.
- **[orderTypeValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderContext.htm#apex_RichMessaging_OrderContext_orderTypeValue)**  
    The order type variable of the order.
- **[paymentCheckoutBehavior](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderContext.htm#apex_RichMessaging_OrderContext_paymentCheckoutBehavior)**  
    The checkout behavior for the payment.
- **[paymentCheckoutBehaviorValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderContext.htm#apex_RichMessaging_OrderContext_paymentCheckoutBehaviorValue)**  
    The payment checkout behavior variable of the order.
- **[orderExpiration](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderContext.htm#apex_RichMessaging_OrderContext_orderExpiration)**  
    The expiration information for the order.
- **[orderExpirationValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderContext.htm#apex_RichMessaging_OrderContext_orderExpirationValue)**  
    The order expiration variable for the order.
- **[paymentMethodHints](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderContext.htm#apex_RichMessaging_OrderContext_paymentMethodHints)**  
    The list of payment method hints for the order.
- **[paymentMethodHintsValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderContext.htm#apex_RichMessaging_OrderContext_paymentMethodHintsValue)**  
    The payment method hints variable for the order.
- **[orderBeneficiary](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderContext.htm#apex_RichMessaging_OrderContext_orderBeneficiary)**  
    The beneficiary information of the order.
- **[orderBeneficiaryValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderContext.htm#apex_RichMessaging_OrderContext_orderBeneficiaryValue)**  
    The order beneficiary variable for the order.
- **[paymentInitiation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderContext.htm#apex_RichMessaging_OrderContext_paymentInitiation)**  
    The payment initiation information for the order.
- **[paymentInitiationValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderContext.htm#apex_RichMessaging_OrderContext_paymentInitiationValue)**  
    The payment initiation variable for the order.

### orderType

The type of the order.

#### Signature

public String orderType {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.")

### orderTypeValue

The order type variable of the order.

#### Signature

public RichMessaging.OrderType orderTypeValue {get; set;}

#### Property Value

Type: [RichMessaging.OrderType](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_OrderType.htm "Represents the type of an order.")

### paymentCheckoutBehavior

The checkout behavior for the payment.

#### Signature

public String paymentCheckoutBehavior {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.")

### paymentCheckoutBehaviorValue

The payment checkout behavior variable of the order.

#### Signature

public RichMessaging.PaymentCheckoutBehavior paymentCheckoutBehaviorValue {get; set;}

#### Property Value

Type: [RichMessaging.PaymentCheckoutBehavior](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_PaymentCheckoutBehavior.htm "Represents the checkout behavior of a payment.")

### orderExpiration

The expiration information for the order.

#### Signature

public RichMessaging.OrderExpiration orderExpiration {get; set;}

#### Property Value

Type: [RichMessaging.OrderExpiration](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.")

### orderExpirationValue

The order expiration variable for the order.

#### Signature

public RichMessaging.OrderExpiration orderExpirationValue {get; set;}

#### Property Value

Type: [RichMessaging.OrderExpiration](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.")

### paymentMethodHints

The list of payment method hints for the order.

#### Signature

public List<String> paymentMethodHints {get; set;}

#### Property Value

Type: List<String>

### paymentMethodHintsValue

The payment method hints variable for the order.

#### Signature

public List<RichMessaging.PaymentMethodHint> paymentMethodHintsValue {get; set;}

#### Property Value

Type: List<[RichMessaging.PaymentMethodHint](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.")\>

### orderBeneficiary

The beneficiary information of the order.

#### Signature

public RichMessaging.OrderBeneficiary orderBeneficiary {get; set;}

#### Property Value

Type: [RichMessaging.OrderBeneficiary](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.")

### orderBeneficiaryValue

The order beneficiary variable for the order.

#### Signature

public RichMessaging.OrderBeneficiary orderBeneficiaryValue {get; set;}

#### Property Value

Type: [RichMessaging.OrderBeneficiary](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.")

### paymentInitiation

The payment initiation information for the order.

#### Signature

public RichMessaging.PaymentInitiation paymentInitiation {get; set;}

#### Property Value

Type: [RichMessaging.PaymentInitiation](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.")

### paymentInitiationValue

The payment initiation variable for the order.

#### Signature

public RichMessaging.PaymentInitiation paymentInitiationValue {get; set;}

#### Property Value

Type: [RichMessaging.PaymentInitiation](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.")