CartExtension.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 CartExtension.CartDeliveryGroup object related to this object. Its ID will be saved in CartItem.CartDeliveryGroupId . |
name | Initial value for CartItem.Name . |
Get the CartExtension.CartDeliveryGroup object whose ID was saved in CartItem.Id
.
Type | Description |
---|---|
CartDeliveryGroup | CartExtension.CartDeliveryGroup |
Set the related CartExtension.CartDeliveryGroup object whose ID is stored in CartItem.Id
on save.
Type | Description |
---|---|
void | CartExtension.CartDeliveryGroup |
Get CartItem.Type
.
Type | Description |
---|---|
SalesItemTypeEnum | CartExtension.SalesItemTypeEnum |
Get CartItem.Name
.
Type | Description |
---|---|
String |
Set CartItem.Name
.
Type | Description |
---|---|
void |
Get CartItem.Product2Id
.
Type | Description |
---|---|
ID |
Set CartItem.Product2Id
.
Type | Description |
---|---|
void |
Get CartItem.Sku
.
Type | Description |
---|---|
String |
Set CartItem.Sku
.
Type | Description |
---|---|
void |
Get CartItem.Quantity
.
Type | Description |
---|---|
Decimal |
Set CartItem.Quantity
.
Type | Description |
---|---|
void |
Get CartItem.ListPrice
.
Type | Description |
---|---|
Decimal |
Get CartItem.ListPrice
.
Type | Description |
---|---|
void |
Get CartItem.SalesPrice
.
Type | Description |
---|---|
Decimal |
Set CartItem.SalesPrice
.
Type | Description |
---|---|
void |
Get CartItem.UnitAdjustedPrice
.
Type | Description |
---|---|
Decimal |
Set CartItem.UnitAdjustedPrice
.
Type | Description |
---|---|
void |
Set CartItem.UnitItemAdjustmentAmount
.
Type | Description |
---|---|
void |
Get CartItem.UnitItemAdjustmentAmount
.
Type | Description |
---|---|
Decimal |
Set CartItem.UnitAdjustedPriceWithItemAdj
.
Type | Description |
---|---|
void |
Get CartItem.UnitAdjustedPriceWithItemAdj
.
Type | Description |
---|---|
Decimal |
Set CartItem.TotalListPrice
.
Type | Description |
---|---|
void |
Get CartItem.TotalListPrice
.
Type | Description |
---|---|
Decimal |
Get CartItem.TotalPrice
.
Type | Description |
---|---|
Decimal |
Set CartItem.TotalPrice
.
Type | Description |
---|---|
void |
Get CartItem.NetUnitPrice
.
Type | Description |
---|---|
Decimal |
Set CartItem.NetUnitPrice
.
Type | Description |
---|---|
void |
Get CartItem.GrossUnitPrice
.
Type | Description |
---|---|
Decimal |
Set CartItem.GrossUnitPrice
.
Type | Description |
---|---|
void |
Get CartItem.TotalLineTaxAmount
.
Type | Description |
---|---|
Decimal |
Get CartItem.ItemizedAdjustmentAmount
.
Type | Description |
---|---|
Decimal |
Get CartItem.DistributedAdjustmentAmount
.
Type | Description |
---|---|
Decimal |
Get CartItem.AdjustmentAmount
.
Type | Description |
---|---|
Decimal |
Set CartItem.AdjustmentAmount
.
Type | Description |
---|---|
void |
Set CartItem.TotalPromoAdjustmentAmount
.
Type | Description |
---|---|
void |
Get CartItem.TotalPromoAdjustmentAmount
.
Type | Description |
---|---|
Decimal |
Get CartItem.TotalTaxAmount
.
Type | Description |
---|---|
Decimal |
Get CartItem.TotalLineAmount
.
Type | Description |
---|---|
Decimal |
Set CartItem.TotalLineAmount
.
Type | Description |
---|---|
void |
Get CartItem.TotalAmount
.
Type | Description |
---|---|
Decimal |
Get CartItem.ItemizedAdjustmentTaxAmount
.
Type | Description |
---|---|
Decimal |
Get CartItem.DistributedAdjustmentTaxAmount
.
Type | Description |
---|---|
Decimal |
Get CartItem.AdjustmentTaxAmount
.
Type | Description |
---|---|
Decimal |
Set CartItem.AdjustmentTaxAmount
.
Type | Description |
---|---|
void |
Get CartItem.TotalPriceAfterAllAdjustments
.
Type | Description |
---|---|
Decimal |
Set CartItem.TotalPriceAfterAllAdjustments
.
Type | Description |
---|---|
void |
Get CartItem.UnitAdjustmentAmount
.
Type | Description |
---|---|
Decimal |
Set CartItem.UnitAdjustmentAmount
.
Type | Description |
---|---|
void |
Get CartItem.TotalAdjustmentAmount
.
Type | Description |
---|---|
Decimal |
Set CartItem.TotalAdjustmentAmount
.
Type | Description |
---|---|
void |
Get all related CartExtension.CartItemPriceAdjustment objects.
Type | Description |
---|---|
CartItemPriceAdjustmentList | CartExtension.CartItemPriceAdjustmentList |
Get all related CartExtension.CartTax objects.
Type | Description |
---|---|
CartTaxList | CartExtension.CartTaxList |
Get CartItem.TotalLineNetAmount
.
Type | Description |
---|---|
Decimal |
Get CartItem.TotalLineGrossAmount
.
Type | Description |
---|---|
Decimal |
Get CartItem.ProductSellingModelId
.
Type | Description |
---|---|
ID |
Get CartItem.SubscriptionTerm
.
Type | Description |
---|---|
Integer |
Get CartItem.BillingFrequency
.
Type | Description |
---|---|
BillingFrequencyEnum | CartExtension.BillingFrequencyEnum |
Set CartItem.BillingFrequency
.
Type | Description |
---|---|
void |
Get CartItem.PricingTermCount
.
Type | Description |
---|---|
Decimal |
Set CartItem.PricingTermCount
.
Type | Description |
---|---|
void |
Get CartItem.PricebookEntryId
.
Type | Description |
---|---|
ID |
Set CartItem.PricebookEntryId
.
Type | Description |
---|---|
void |
Get CartItem.ProrationPolicyId
.
Type | Description |
---|---|
ID |
Set CartItem.ProrationPolicyId
.
Type | Description |
---|---|
void |
Get CartItem.SellingModelType
.
Type | Description |
---|---|
SellingModelType | CartExtension.SellingModelType |
Set CartItem.SellingModelType
.
Type | Description |
---|---|
void |
Get CartItem.UnitPriceAfterAdjustments
.
Type | Description |
---|---|
Decimal |
Set CartItem.UnitPriceAfterAdjustments
.
Type | Description |
---|---|
void |
Get CartItem.NetUnitPriceAfterAdjustments
.
Type | Description |
---|---|
Decimal |
Set CartItem.NetUnitPriceAfterAdjustments
.
Type | Description |
---|---|
void |
Get CartItem.FirstPymtPriceAfterAdjustments
.
Type | Description |
---|---|
Decimal |
Set CartItem.FirstPymtPriceAfterAdjustments
.
Type | Description |
---|---|
void |
Get CartItem.FirstPymtTax
.
Type | Description |
---|---|
Decimal |
Set CartItem.FirstPymtTax
.
Type | Description |
---|---|
void |
Inherited
Get Id
.
Type | Description |
---|---|
ID |
Inherited
Get System Field CreatedDate
.
Type | Description |
---|---|
Datetime |
Inherited
Get System Field LastModifiedDate
.
Type | Description |
---|---|
Datetime |
Inherited
Get System Field CreatedById
.
Type | Description |
---|---|
ID |
Inherited
Get System Field LastModifiedById
.
Type | Description |
---|---|
ID |
Inherited
Get value of the given custom field (needs to be api name)
Type | Description |
---|---|
Object |
Inherited
Set the value of the given custom field (needs to be api name)
Type | Description |
---|---|
void |
Inherited
Inherited