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.

ParameterTypeRequiredDefaultDescription
catalogObjectTypeStringYes-Type name for the catalog object
catalogObjectIdStringYes-Unique identifier for the catalog object
quantityIntYes-Number of items in this line item
priceDouble?NonullPrice of the catalog object
currencyString?NonullCurrency code for the price
attributesMap<String, Any>NomapOf()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).