---
schema_version: "1"
id: ec0d30bf37243fe160e4fa346d3e281deb25821abcb6e6f3c05970214c60ef31
title: hlthcrbilling Namespace
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/health_cloud_object_reference/apex_namespace_hlcrbilling.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_namespace_hlcrbilling.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 68fdea3f2705cd4e707e306fb2ea762a44a9ac988116f6f1dbb689eb0dd217ac
description: The hlthcrbilling namespace provides classes used to capture billing information for products in Salesforce Health Cloud. Contains the billing details for one or more products being ordered, including the account, price book, work type, order date, and shipping address. The following are properties for ProductBillingDetails. The ID of the Account for which the products are being billed.The date the order is placed.The ID of the Pricebook2 record used to price the products in the order.The list of products to be billed. Each item describes a single line in the order.The shipping address to which the ordered products are delivered.The ID of the Work Type record associated with the order. Represents a single product line item, including the product ID, price book entry, quantity, unit price, and applicable pricing attributes. The following are properties for ProductDetails.The ID of the PricebookEntry record that defines the price for this product in the active price book.The list of pricing attributes that apply to this product line item.The ID of the Product2 record being billed.The quantity of the product being ordered.The unit price of the product.
---
# hlthcrbilling Namespace

The hlthcrbilling namespace provides classes used to capture billing information for products in Salesforce Health Cloud.

Use the classes in this namespace to manage detailed billing data for healthcare-related product line items This includes capturing product IDs, price book entries, and specific pricing attributes required for accurate billing within the Health Cloud ecosystem

These classes allow for the organization of billing details for one or more products being ordered, integrating essential data points such as the associated account, work type, order date, and shipping address.

The following are the classes in the hlthcrbilling namespace.

- **[ProductBillingDetails Class](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_namespace_hlcrbilling.htm#apex_class_hlthcrbilling_ProductBillingDetails)**  
    Contains the billing details for one or more products being ordered, including the account, price book, work type, order date, and shipping address.
- **[ProductDetails Class](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_namespace_hlcrbilling.htm#apex_class_hlthcrbilling_ProductDetails)**  
    Represents a single product line item, including the product ID, price book entry, quantity, unit price, and applicable pricing attributes.

## ProductBillingDetails Class

Contains the billing details for one or more products being ordered, including the account, price book, work type, order date, and shipping address.

### Namespace

[hlthcrbilling](#apex_namespace_hlcrbilling "The hlthcrbilling namespace provides classes used to capture billing information for products in Salesforce Health Cloud.")

- **[ProductBillingDetails Properties](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_namespace_hlcrbilling.htm#apex_hlthcrbilling_ProductBillingDetails)**  
    The following are properties for ProductBillingDetails.

### ProductBillingDetails Properties

The following are properties for ProductBillingDetails.

The following are properties for ProductBillingDetails.

- **[accountId](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_namespace_hlcrbilling.htm#apex_hlthcrbilling_ProductBillingDetails_accountId)**  
    The ID of the Account for which the products are being billed.
- **[orderDate](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_namespace_hlcrbilling.htm#apex_hlthcrbilling_ProductBillingDetails_orderDate)**  
    The date the order is placed.
- **[priceBookId](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_namespace_hlcrbilling.htm#apex_hlthcrbilling_ProductBillingDetails_priceBookId)**  
    The ID of the Pricebook2 record used to price the products in the order.
- **[productDetails](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_namespace_hlcrbilling.htm#apex_hlthcrbilling_ProductBillingDetails_productDetails)**  
    The list of products to be billed. Each item describes a single line in the order.
- **[shippingAddress](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_namespace_hlcrbilling.htm#apex_hlthcrbilling_ProductBillingDetails_shippingAddress)**  
    The shipping address to which the ordered products are delivered.
- **[workTypeId](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_namespace_hlcrbilling.htm#apex_hlthcrbilling_ProductBillingDetails_workTypeId)**  
    The ID of the Work Type record associated with the order.

#### accountId

The ID of the Account for which the products are being billed.

##### Signature

public String accountId {get; set;}

##### Property Value

Type: String

#### orderDate

The date the order is placed.

##### Signature

public Date orderDate {get; set;}

##### Property Value

Type: Date

#### priceBookId

The ID of the Pricebook2 record used to price the products in the order.

##### Signature

public String priceBookId {get; set;}

##### Property Value

Type: String

#### productDetails

The list of products to be billed. Each item describes a single line in the order.

##### Signature

public List<hlthcrbilling.ProductDetails> productDetails {get; set;}

##### Property Value

Type: List<hlthcrbilling.ProductDetails>

#### shippingAddress

The shipping address to which the ordered products are delivered.

##### Signature

public healthcloudext.GroupVisitAddress shippingAddress {get; set;}

##### Property Value

Type: healthcloudext.GroupVisitAddress

#### workTypeId

The ID of the Work Type record associated with the order.

##### Signature

public String workTypeId {get; set;}

##### Property Value

Type: String

## ProductDetails Class

Represents a single product line item, including the product ID, price book entry, quantity, unit price, and applicable pricing attributes.

### Namespace

[hlthcrbilling](#apex_namespace_hlcrbilling "The hlthcrbilling namespace provides classes used to capture billing information for products in Salesforce Health Cloud.")

- **[ProductDetails Properties](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_namespace_hlcrbilling.htm#apex_hlthcrbilling_ProductDetails)**  
    The following are properties for ProductDetails.

### ProductDetails Properties

The following are properties for ProductDetails.

The following are properties for ProductDetails.

- **[priceBookEntryId](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_namespace_hlcrbilling.htm#apex_hlthcrbilling_ProductDetails_priceBookEntryId)**  
    The ID of the PricebookEntry record that defines the price for this product in the active price book.
- **[pricingAttributeList](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_namespace_hlcrbilling.htm#apex_hlthcrbilling_ProductDetails_pricingAttributeList)**  
    The list of pricing attributes that apply to this product line item.
- **[productId](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_namespace_hlcrbilling.htm#apex_hlthcrbilling_ProductDetails_productId)**  
    The ID of the Product2 record being billed.
- **[quantity](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_namespace_hlcrbilling.htm#apex_hlthcrbilling_ProductDetails_quantity)**  
    The quantity of the product being ordered.
- **[unitPrice](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_namespace_hlcrbilling.htm#apex_hlthcrbilling_ProductDetails_unitPrice)**  
    The unit price of the product.

#### priceBookEntryId

The ID of the PricebookEntry record that defines the price for this product in the active price book.

##### Signature

public String priceBookEntryId {get; set;}

##### Property Value

Type: String

#### pricingAttributeList

The list of pricing attributes that apply to this product line item.

##### Signature

public List<healthcloudext.PricingAttribute> pricingAttributeList {get; set;}

##### Property Value

Type: List<healthcloudext.PricingAttribute>

#### productId

The ID of the Product2 record being billed.

##### Signature

public String productId {get; set;}

##### Property Value

Type: String

#### quantity

The quantity of the product being ordered.

##### Signature

public Decimal quantity {get; set;}

##### Property Value

Type: Decimal

#### unitPrice

The unit price of the product.

##### Signature

public Decimal unitPrice {get; set;}

##### Property Value

Type: Decimal