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.Name.

TypeDescription
String

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

Set CartItemPriceAdjustment.PriceAdjustmentCauseId.

TypeDescription
void

Get CartItemPriceAdjustment.AdjustmentBasisReferenceId.

TypeDescription
ID

Set CartItemPriceAdjustment.AdjustmentBasisReferenceId.

TypeDescription
void

Get all CartExtension.CartTax objects associated with the current CartItemPriceAdjustment. Specifically, fetch CartTax instances where the CartTax.CartItemPriceAdjustmentId matches the ID of the current CartItemPriceAdjustment.

TypeDescription
CartTaxListCartExtension.CartTaxList

Get CartItemPriceAdjustment.AdjustmentSource.

TypeDescription
PriceAdjustmentSourceEnumCartExtension.PriceAdjustmentSourceEnum

Get CartItemPriceAdjustment.TotalTax.

TypeDescription
Decimal

Get CartItemPriceAdjustment.TotalGrossAmount.

TypeDescription
Decimal

Get CartItemPriceAdjustment.TotalNetAmount.

TypeDescription
Decimal

Inherited

Get Id.

TypeDescription
ID

Inherited

Get System Field CreatedDate.

TypeDescription
Datetime

Inherited

Get System Field LastModifiedDate.

TypeDescription
Datetime

Inherited

Get System Field CreatedById.

TypeDescription
ID

Inherited

Get System Field LastModifiedById.

TypeDescription
ID

Inherited

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

TypeDescription
Object

Inherited

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

TypeDescription
void

Inherited

Inherited