LineItem
Package: com.salesforce.marketingcloud.sfmcsdk.components.events
Version: 11.0.0
A data class representing line items for Cart and Order events in the Salesforce Marketing Cloud Unified SDK. Line items describe purchasable catalog objects with quantity, pricing, and additional attributes.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
catalogObjectType | String | Yes | - | Type name for the catalog object |
catalogObjectId | String | Yes | - | Unique identifier for the catalog object |
quantity | Int | Yes | - | Number of items in this line item |
price | Double? | No | null | Price of the catalog object |
currency | String? | No | null | Currency code for the price |
attributes | Map<String, Any> | No | mapOf() | User-supplied attribute values |
A type name representing the referenced catalog object.
A unique identifier for the catalog object.
The count of catalog objects in this line item.
The price of the referenced catalog object (mutable, nullable).
The currency code for the price field (mutable, nullable).
A map of custom user-supplied values (mutable).