---
schema_version: "1"
id: 583b99c4c20bc309eac2fc4ed1acce85dccf6de325eb8a93c7f0adc7ed07eaab
title: OrderExpiration Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_RichMessaging_OrderExpiration.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderExpiration.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: cc4eb2d2993117fdcd9b8df6c90945f3d5d8df1b03b2ca5fd35526ef34e7d0f2
description: Represents the expiration information of an order.The expiration date and time of the order.The expiration date and time variable of the order.The duration after creation when the order expires (in seconds).The duration from creation variable of the order expiration.
---
# OrderExpiration Class

Represents the expiration 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.")

- **[OrderExpiration Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderExpiration.htm#apex_RichMessaging_OrderExpiration_properties)**

## OrderExpiration Properties

The following are properties for OrderExpiration.

- **[expirationDateTime](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderExpiration.htm#apex_RichMessaging_OrderExpiration_expirationDateTime)**  
    The expiration date and time of the order.
- **[expirationDateTimeValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderExpiration.htm#apex_RichMessaging_OrderExpiration_expirationDateTimeValue)**  
    The expiration date and time variable of the order.
- **[durationFromCreation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderExpiration.htm#apex_RichMessaging_OrderExpiration_durationFromCreation)**  
    The duration after creation when the order expires (in seconds).
- **[durationFromCreationValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderExpiration.htm#apex_RichMessaging_OrderExpiration_durationFromCreationValue)**  
    The duration from creation variable of the order expiration.

### expirationDateTime

The expiration date and time of the order.

#### Signature

public Datetime expirationDateTime {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.")

### expirationDateTimeValue

The expiration date and time variable of the order.

#### Signature

public Datetime expirationDateTimeValue {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.")

### durationFromCreation

The duration after creation when the order expires (in seconds).

#### Signature

public Long durationFromCreation {get; set;}

#### Property Value

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

### durationFromCreationValue

The duration from creation variable of the order expiration.

#### Signature

public Long durationFromCreationValue {get; set;}

#### Property Value

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