CartExtension.CartItemPriceAdjustment

This Apex object represents an in-memory CartItemPriceAdjustment 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: CartItemPriceAdjustment

Constructor for CartItemPriceAdjustment object. All arguments are required.

ParamDescription
cartAdjustmentTargetTypeEnumInitial value for CartItemPriceAdjustment.AdjustmentTargetType.
totalAmountInitial value for CartItemPriceAdjustment.TotalAmount.
adjustmentSourceInitial value for CartItemPriceAdjustment.AdjustmentSource.
adjustmentTypeInitial value for CartItemPriceAdjustment.AdjustmentType.
adjustmentValueInitial value for CartItemPriceAdjustment.AdjustmentValue.
priceAdjustmentCauseIdInitial value for CartItemPriceAdjustment.PriceAdjustmentCauseId (type Promotion).

Get CartItemPriceAdjustment.Priority.

TypeDescription
Integer

Set CartItemPriceAdjustment.Priority.

TypeDescription
void

Get CartItemPriceAdjustment.Description.

TypeDescription
String

Set CartItemPriceAdjustment.Description.

TypeDescription
void

Get CartItemPriceAdjustment.AdjustmentValue.

TypeDescription
Decimal

Set CartItemPriceAdjustment.AdjustmentValue.

TypeDescription
void

Get CartItemPriceAdjustment.TotalAmount.

TypeDescription
Decimal

Set CartItemPriceAdjustment.TotalAmount.

TypeDescription
void

Get CartItemPriceAdjustment.AdjustmentType.

TypeDescription
AdjustmentTypeEnumCartExtension.AdjustmentTypeEnum

Get CartItemPriceAdjustment.AdjustmentTargetType.

TypeDescription
CartAdjustmentTargetTypeEnumCartExtension.CartAdjustmentTargetTypeEnum

Get CartItemPriceAdjustment.AdjustmentAmountScope.

TypeDescription
AdjustmentAmountScopeEnumCartExtension.AdjustmentAmountScopeEnum

Set CartItemPriceAdjustment.AdjustmentAmountScope.

TypeDescription
void

Get the CartExtension.CartAdjustmentGroup object whose ID was saved in CartItemPriceAdjustment.WebCartAdjustmentGroupId.

TypeDescription
CartAdjustmentGroupCartExtension.CartAdjustmentGroup

Set the related CartExtension.CartAdjustmentGroup object whose ID is stored in CartItemPriceAdjustment.WebCartAdjustmentGroupId on save.

TypeDescription
void

Get CartItemPriceAdjustment.PriceAdjustmentCauseId.

TypeDescription
ID

Get CartItemPriceAdjustment.AdjustmentBasisReferenceId.

TypeDescription
ID

Set CartItemPriceAdjustment.AdjustmentBasisReferenceId.

TypeDescription
void

Get all the related CartExtension.CartTax objects.

TypeDescription
CartTaxListCartExtension.CartTaxList

Get CartItemPriceAdjustment.AdjustmentSource.

TypeDescription
PriceAdjustmentSourceEnumCartExtension.PriceAdjustmentSourceEnum

Get CartItemPriceAdjustment.TotalTax.

TypeDescription
Decimal

Get CartItemPriceAdjustment.TotalGrossAmount.

TypeDescription
Decimal

Get CartItemPriceAdjustment.TotalNetAmount.

TypeDescription
Decimal

Get Id.

TypeDescription
ID

Get value of the given custom field (needs to be api name)

TypeDescription
Object

Set the value of the given custom field (needs to be api name)

TypeDescription
void