---
schema_version: "1"
id: 2ba9596d4ff50ca3995127c9234330c719e927b33b345b1a11f6e74b97919605
title: OrderBeneficiary Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_RichMessaging_OrderBeneficiary.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderBeneficiary.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3bcf3acd09d9c0fbb71785f3dd42a6adb3d16090755d80dbc9d4759555522d0a
description: Represents the beneficiary of an order.The legal name of the beneficiary.The legal name variable of the beneficiary.The type of tax identifier of the beneficiary.The tax identifier type variable of the beneficiary.The tax identifier value of the beneficiary.The tax identifier value variable of the beneficiary.
---
# OrderBeneficiary Class

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

- **[OrderBeneficiary Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderBeneficiary.htm#apex_RichMessaging_OrderBeneficiary_properties)**

## OrderBeneficiary Properties

The following are properties for OrderBeneficiary.

- **[legalName](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderBeneficiary.htm#apex_RichMessaging_OrderBeneficiary_legalName)**  
    The legal name of the beneficiary.
- **[legalNameValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderBeneficiary.htm#apex_RichMessaging_OrderBeneficiary_legalNameValue)**  
    The legal name variable of the beneficiary.
- **[taxIdentifierType](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderBeneficiary.htm#apex_RichMessaging_OrderBeneficiary_taxIdentifierType)**  
    The type of tax identifier of the beneficiary.
- **[taxIdentifierTypeValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderBeneficiary.htm#apex_RichMessaging_OrderBeneficiary_taxIdentifierTypeValue)**  
    The tax identifier type variable of the beneficiary.
- **[taxIdentifierValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderBeneficiary.htm#apex_RichMessaging_OrderBeneficiary_taxIdentifierValue)**  
    The tax identifier value of the beneficiary.
- **[taxIdentifierValueValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_OrderBeneficiary.htm#apex_RichMessaging_OrderBeneficiary_taxIdentifierValueValue)**  
    The tax identifier value variable of the beneficiary.

### legalName

The legal name of the beneficiary.

#### Signature

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

### legalNameValue

The legal name variable of the beneficiary.

#### Signature

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

### taxIdentifierType

The type of tax identifier of the beneficiary.

#### Signature

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

### taxIdentifierTypeValue

The tax identifier type variable of the beneficiary.

#### Signature

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

### taxIdentifierValue

The tax identifier value of the beneficiary.

#### Signature

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

### taxIdentifierValueValue

The tax identifier value variable of the beneficiary.

#### Signature

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