CartItem
This Apex object represents an in-memory CartItem
record and its relationships with other records. All formula and roll-up summary standard fields are updated at runtime.
Loading and saving this object is not possible in Apex but is done by Salesforce.
See Object Reference: CartItem
Constructor for CartItem
object. All arguments are required.
Param | Description |
---|---|
salesItemType | Initial value for CartItem.Type . |
cartDeliveryGroup | Initial CartDeliveryGroup object related to this object. Its ID will be saved in CartItem.CartDeliveryGroupId . |
name | Initial value for CartItem.Name . |
Get CartItem.Id
.
Type
ID
Description
Get the CartDeliveryGroup object whose ID was saved in CartItem.Id
.
Type
CartDeliveryGroup
Description
Set the related CartDeliveryGroup object whose ID is stored in CartItem.Id
on save.
Type
void
Description
Get CartItem.Type
.
Type
SalesItemTypeEnum
Description
Get CartItem.Name
.
Type
String
Description
Set CartItem.Name
.
Type
void
Description
Get CartItem.Product2Id
.
Type
ID
Description
Set CartItem.Product2Id
.
Type
void
Description
Get CartItem.Sku
.
Type
String
Description
Set CartItem.Sku
.
Type
void
Description
Get CartItem.Quantity
.
Type
Decimal
Description
Set CartItem.Quantity
.
Type
void
Description
Get CartItem.ListPrice
.
Type
Decimal
Description
Get CartItem.ListPrice
.
Type
void
Description
Get CartItem.SalesPrice
.
Type
Decimal
Description
Set CartItem.SalesPrice
.
Type
void
Description
Set CartItem.TotalListPrice
.
Type
void
Description
Get CartItem.TotalListPrice
.
Type
Decimal
Description
Get CartItem.TotalPrice
.
Type
Decimal
Description
Set CartItem.TotalPrice
.
Type
void
Description
Get CartItem.NetUnitPrice
.
Type
Decimal
Description
Set CartItem.NetUnitPrice
.
Type
void
Description
Get CartItem.GrossUnitPrice
.
Type
Decimal
Description
Set CartItem.GrossUnitPrice
.
Type
void
Description
Get CartItem.TotalLineTaxAmount
.
Type
Decimal
Description
Get CartItem.ItemizedAdjustmentAmount
.
Type
Decimal
Description
Get CartItem.DistributedAdjustmentAmount
.
Type
Decimal
Description
Get CartItem.AdjustmentAmount
.
Type
Decimal
Description
Set CartItem.AdjustmentAmount
.
Type
void
Description
Set CartItem.TotalPromoAdjustmentAmount
.
Type
void
Description
Get CartItem.TotalPromoAdjustmentAmount
.
Type
Decimal
Description
Get CartItem.TotalTaxAmount
.
Type
Decimal
Description
Get CartItem.TotalAmount
.
Type
Decimal
Description
Get CartItem.ItemizedAdjustmentTaxAmount
.
Type
Decimal
Description
Get CartItem.DistributedAdjustmentTaxAmount
.
Type
Decimal
Description
Get CartItem.AdjustmentTaxAmount
.
Type
Decimal
Description
Set CartItem.AdjustmentTaxAmount
.
Type
void
Description
Get CartItem.TotalPriceAfterAllAdjustments
.
Type
Decimal
Description
Get all related CartItemPriceAdjustment objects.
Type
CartItemPriceAdjustmentCollection
Description
CartItemPriceAdjustmentCollection
Get all related CartTax objects.
Type
CartTaxCollection
Description
Get CartItem.TotalLineNetAmount
.
Type
Decimal
Description
Get CartItem.TotalLineGrossAmount
.
Type
Decimal
Description