Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

ConnectApi.AbstractCartItem

A cart item.

This class is abstract.

Superclass of:

Property Name Type Description Available Version
billingFrequency ConnectApi.​BillingFrequency Reserved for future use. 59.0
cartDeliveryGroupId String ID of the cart delivery group. 60.0
cartId String ID of the cart. 49.0
cartItemId String ID of the item. 49.0
childProduct​Count Integer Number of child products in the cart that are associated with the item. A cart item can have child products if the productClass of the item is Bundle. For nested bundles, which include a child product that's also a bundle, childProductCount includes all child products. 62.0
customFields List<SObject> Array of sObjects and viewable custom fields for the sObjects. Standard fields are ignored. Currently, only the CartItem sObject is supported. Field-level security rules from the shopper profile are applied to the custom fields. The rules are applied for registered shoppers and for the guest shopper profile. 61.0
isShipping​ChargeNot​Applicable Boolean Specifies whether the shipping charge for the cart item is waived (true) or not (false). If the value is true, the cart item is classified as a digital product. 64.0
messagesSummary ConnectApi.​CartMessagesSummary Messages summary for the item. 49.0
name String Name of the item. 49.0
parentCart​ItemId String ID of the item’s parent cart item. The value is empty if the item is a top-level cart item. 62.0
productDetails ConnectApi.​CartItemProduct Summary of the product details. 49.0
productId String ID of the product. 49.0
productSelling​ModelId String Reserved for future use. 59.0
promotion​DisplayName String Promotion display name for a bonus product. 64.0
quantity String Quantity of the item. 49.0
sellingModelType ConnectApi.​SellingModelType Reserved for future use. 60.0
subType ConnectApi.​CartItemSubType Subtype of item in a cart. Values are:
  • Bonus—A bonus product.
  • Gift—A gift product.
64.0
subscriptionTerm Integer Reserved for future use. 59.0
type ConnectApi.​CartItemType Type of item in a cart. Values are:
  • DeliveryCharge
  • Product
49.0