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
Constructors
global CartItem(SalesItemTypeEnum salesItemType, CartDeliveryGroup cartDeliveryGroup, String name)
Constructor for CartItem object. All arguments are required.
Parameters
Param Description salesItemTypeInitial value for CartItem.Type. cartDeliveryGroupInitial CartExtension.CartDeliveryGroup object related to this object. Its ID will be saved in CartItem.CartDeliveryGroupId. nameInitial value for CartItem.Name.
Methods
global CartDeliveryGroup getCartDeliveryGroup()
Get the CartExtension.CartDeliveryGroup object whose ID was saved in CartItem.Id.
Returns
global void setCartDeliveryGroup(CartDeliveryGroup cartDeliveryGroup)
Set the related CartExtension.CartDeliveryGroup object whose ID is stored in CartItem.Id on save.
Returns
global SalesItemTypeEnum getType()
Get CartItem.Type.
Returns
global String getName()
Get CartItem.Name.
Returns
global void setName(String name)
Set CartItem.Name.
Returns
global ID getProduct2Id()
Get CartItem.Product2Id.
Returns
global void setProduct2Id(ID productId)
Set CartItem.Product2Id.
Returns
global String getSku()
Get CartItem.Sku.
Returns
global void setSku(String sku)
Set CartItem.Sku.
Returns
global Decimal getQuantity()
Get CartItem.Quantity.
Returns
global void setQuantity(Decimal quantity)
Set CartItem.Quantity.
Returns
global Decimal getListPrice()
Get CartItem.ListPrice.
Returns
global void setListPrice(Decimal listPrice)
Get CartItem.ListPrice.
Returns
global Decimal getSalesPrice()
Get CartItem.SalesPrice.
Returns
global void setSalesPrice(Decimal salesPrice)
Set CartItem.SalesPrice.
Returns
global Decimal getUnitAdjustedPrice()
Get CartItem.UnitAdjustedPrice.
Returns
global void setUnitAdjustedPrice(Decimal unitAdjustedPrice)
Set CartItem.UnitAdjustedPrice.
Returns
global void setUnitItemAdjustmentAmount(Decimal unitItemAdjustmentAmount)
Set CartItem.UnitItemAdjustmentAmount.
Returns
global Decimal getUnitItemAdjustmentAmount()
Get CartItem.UnitItemAdjustmentAmount.
Returns
global void setUnitAdjustedPriceWithItemAdj(Decimal unitAdjustedPriceWithItemAdj)
Set CartItem.UnitAdjustedPriceWithItemAdj.
Returns
global Decimal getUnitAdjustedPriceWithItemAdj()
Get CartItem.UnitAdjustedPriceWithItemAdj.
Returns
global void setTotalListPrice(Decimal totalListPrice)
Set CartItem.TotalListPrice.
Returns
global Decimal getTotalListPrice()
Get CartItem.TotalListPrice.
Returns
global Decimal getTotalPrice()
Get CartItem.TotalPrice.
Returns
global void setTotalPrice(Decimal totalPrice)
Set CartItem.TotalPrice.
Returns
global Decimal getNetUnitPrice()
Get CartItem.NetUnitPrice.
Returns
global void setNetUnitPrice(Decimal netUnitPrice)
Set CartItem.NetUnitPrice.
Returns
global Decimal getGrossUnitPrice()
Get CartItem.GrossUnitPrice.
Returns
global void setGrossUnitPrice(Decimal grossUnitPrice)
Set CartItem.GrossUnitPrice.
Returns
global Decimal getTotalLineTaxAmount()
Get CartItem.TotalLineTaxAmount.
Returns
global Decimal getItemizedAdjustmentAmount()
Get CartItem.ItemizedAdjustmentAmount.
Returns
global Decimal getDistributedAdjustmentAmount()
Get CartItem.DistributedAdjustmentAmount.
Returns
global Decimal getAdjustmentAmount()
Get CartItem.AdjustmentAmount.
Returns
global void setAdjustmentAmount(Decimal adjustmentAmount)
Set CartItem.AdjustmentAmount.
Returns
global void setTotalPromoAdjustmentAmount(Decimal totalPromoAdjustmentAmount)
Set CartItem.TotalPromoAdjustmentAmount.
Returns
global Decimal getTotalPromoAdjustmentAmount()
Get CartItem.TotalPromoAdjustmentAmount.
Returns
global Decimal getTotalTaxAmount()
Get CartItem.TotalTaxAmount.
Returns
global Decimal getTotalLineAmount()
Get CartItem.TotalLineAmount.
Returns
global void setTotalLineAmount(Decimal totalLineAmount)
Set CartItem.TotalLineAmount.
Returns
global Decimal getTotalAmount()
Get CartItem.TotalAmount.
Returns
global Decimal getItemizedAdjustmentTaxAmount()
Get CartItem.ItemizedAdjustmentTaxAmount.
Returns
global Decimal getDistributedAdjustmentTaxAmount()
Get CartItem.DistributedAdjustmentTaxAmount.
Returns
global Decimal getAdjustmentTaxAmount()
Get CartItem.AdjustmentTaxAmount.
Returns
global void setAdjustmentTaxAmount(Decimal adjustmentTaxAmount)
Set CartItem.AdjustmentTaxAmount.
Returns
global Decimal getTotalPriceAfterAllAdjustments()
Get CartItem.TotalPriceAfterAllAdjustments.
Returns
global void setTotalPriceAfterAllAdjustments(Decimal totalPriceAfterAllAdjustments)
Set CartItem.TotalPriceAfterAllAdjustments.
Returns
global Decimal getUnitAdjustmentAmount()
Get CartItem.UnitAdjustmentAmount.
Returns
global void setUnitAdjustmentAmount(Decimal unitAdjustmentAmount)
Set CartItem.UnitAdjustmentAmount.
Returns
global Decimal getTotalAdjustmentAmount()
Get CartItem.TotalAdjustmentAmount.
Returns
global void setTotalAdjustmentAmount(Decimal totalAdjustmentAmount)
Set CartItem.TotalAdjustmentAmount.
Returns
global CartItemPriceAdjustmentList getCartItemPriceAdjustments()
Get all related CartExtension.CartItemPriceAdjustment objects.
Returns
global CartTaxList getCartTaxes()
Get all related CartExtension.CartTax objects.
Returns
global Decimal getTotalLineNetAmount()
Get CartItem.TotalLineNetAmount.
Returns
global Decimal getTotalLineGrossAmount()
Get CartItem.TotalLineGrossAmount.
Returns
global ID getProductSellingModelId()
Get CartItem.ProductSellingModelId.
Returns
global Integer getSubscriptionTerm()
Get CartItem.SubscriptionTerm.
Returns
global BillingFrequencyEnum getBillingFrequency()
Get CartItem.BillingFrequency.
Returns
global void setBillingFrequency(BillingFrequencyEnum billingFrequency)
Set CartItem.BillingFrequency.
Returns
global Decimal getPricingTermCount()
Get CartItem.PricingTermCount.
Returns
global void setPricingTermCount(Decimal pricingTermCount)
Set CartItem.PricingTermCount.
Returns
global ID getPricebookEntryId()
Get CartItem.PricebookEntryId.
Returns
global void setPricebookEntryId(ID pricebookEntryId)
Set CartItem.PricebookEntryId.
Returns
global ID getProrationPolicyId()
Get CartItem.ProrationPolicyId.
Returns
global void setProrationPolicyId(ID prorationPolicyId)
Set CartItem.ProrationPolicyId.
Returns
global SellingModelType getSellingModelType()
Get CartItem.SellingModelType.
Returns
global void setSellingModelType(SellingModelType sellingModelType)
Set CartItem.SellingModelType.
Returns
global Decimal getUnitPriceAfterAdjustments()
Get CartItem.UnitPriceAfterAdjustments.
Returns
global void setUnitPriceAfterAdjustments(Decimal unitPriceAfterAdjustments)
Set CartItem.UnitPriceAfterAdjustments.
Returns
global Decimal getNetUnitPriceAfterAdjustments()
Get CartItem.NetUnitPriceAfterAdjustments.
Returns
global void setNetUnitPriceAfterAdjustments(Decimal netUnitPriceAfterAdjustments)
Set CartItem.NetUnitPriceAfterAdjustments.
Returns
global Decimal getFirstPymtPriceAfterAdjustments()
Get CartItem.FirstPymtPriceAfterAdjustments.
Returns
global void setFirstPymtPriceAfterAdjustments(Decimal firstPymtPriceAfterAdjustments)
Set CartItem.FirstPymtPriceAfterAdjustments.
Returns
global Decimal getFirstPymtTax()
Get CartItem.FirstPymtTax.
Returns
global void setFirstPymtTax(Decimal firstPymtTax)
Set CartItem.FirstPymtTax.
Returns
global ID getId()
Inherited
Get Id.
Returns
global Datetime getCreatedDate()
Inherited
Get System Field CreatedDate.
Returns
global Datetime getLastModifiedDate()
Inherited
Get System Field LastModifiedDate.
Returns
global ID getCreatedById()
Inherited
Get System Field CreatedById.
Returns
global ID getLastModifiedById()
Inherited
Get System Field LastModifiedById.
Returns
global Object getCustomField(String fieldName)
Inherited
Get value of the given custom field (needs to be api name)
Returns
global void setCustomField(String fieldName, Object fieldValue)
Inherited
Set the value of the given custom field (needs to be api name)
Returns
public Boolean equals(Object obj)
Inherited
public Integer hashCode()
Inherited