CartExtension.CartAdjustmentGroup

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

Constructors 

global CartAdjustmentGroup(CartAdjustmentTargetTypeEnum cartAdjustmentTargetTypeEnum, PriceAdjustmentSourceEnum adjustmentSource, AdjustmentTypeEnum adjustmentType, Decimal adjustmentValue, ID priceAdjustmentCauseId) 

Constructor for CartAdjustmentGroup object. All arguments are required.

Parameters 

ParamDescription
cartAdjustmentTargetTypeEnumInitial value for CartAdjustmentGroup.AdjustmentTargetType.
adjustmentSourceInitial value for CartAdjustmentGroup.AdjustmentSource.
adjustmentTypeInitial value for CartAdjustmentGroup.AdjustmentType.
adjustmentValueInitial value for CartAdjustmentGroup.AdjustmentValue.
priceAdjustmentCauseIdInitial value for CartAdjustmentGroup.PriceAdjustmentCauseId (type Coupon).

Methods 

global Integer getPriority() 

Get WebCartAdjustmentGroup.Priority.

Returns 

TypeDescription
Integer

global void setPriority(Integer priority) 

Set WebCartAdjustmentGroup.Priority.

Returns 

TypeDescription
void

global String getDescription() 

Get WebCartAdjustmentGroup.Description.

Returns 

TypeDescription
String

global void setDescription(String description) 

Set WebCartAdjustmentGroup.Description.

Returns 

TypeDescription
void

global Decimal getAdjustmentValue() 

Get WebCartAdjustmentGroup.AdjustmentValue.

Returns 

TypeDescription
Decimal

global void setAdjustmentValue(Decimal adjustmentValue) 

Set WebCartAdjustmentGroup.AdjustmentValue.

Returns 

TypeDescription
void

global Decimal getTotalAmount() 

Get WebCartAdjustmentGroup.TotalAmount.

Returns 

TypeDescription
Decimal

global void setTotalAmount(Decimal totalAmount) 

Set WebCartAdjustmentGroup.TotalAmount.

Returns 

TypeDescription
void

global AdjustmentTypeEnum getAdjustmentType() 

Get WebCartAdjustmentGroup.AdjustmentType.

Returns 

TypeDescription
AdjustmentTypeEnumCartExtension.AdjustmentTypeEnum

global ID getPriceAdjustmentCauseId() 

Get WebCartAdjustmentGroup.PriceAdjustmentCauseId.

Returns 

TypeDescription
ID

global void setPriceAdjustmentCauseId(ID priceAdjustmentCauseId) 

Set WebCartAdjustmentGroup.PriceAdjustmentCauseId.

Returns 

TypeDescription
void

global ID getAdjustmentBasisReferenceId() 

Get WebCartAdjustmentGroup.AdjustmentBasisReferenceId.

Returns 

TypeDescription
ID

global void setAdjustmentBasisReferenceId(ID adjustmentBasisReferenceId) 

Set WebCartAdjustmentGroup.AdjustmentBasisReferenceId.

Returns 

TypeDescription
void

global PriceAdjustmentSourceEnum getAdjustmentSource() 

Get WebCartAdjustmentGroup.AdjustmentSource.

Returns 

TypeDescription
PriceAdjustmentSourceEnumCartExtension.PriceAdjustmentSourceEnum

global CartAdjustmentTargetTypeEnum getAdjustmentTargetType() 

Get WebCartAdjustmentGroup.AdjustmentTargetType.

Returns 

TypeDescription
CartAdjustmentTargetTypeEnumCartExtension.CartAdjustmentTargetTypeEnum

global ID getId() 

Get Id.

Returns 

TypeDescription
ID

global Datetime getCreatedDate() 

Get System Field CreatedDate.

Returns 

TypeDescription
Datetime

global Datetime getLastModifiedDate() 

Get System Field LastModifiedDate.

Returns 

TypeDescription
Datetime

global ID getCreatedById() 

Get System Field CreatedById.

Returns 

TypeDescription
ID

global ID getLastModifiedById() 

Get System Field LastModifiedById.

Returns 

TypeDescription
ID

global Object getCustomField(String fieldName) 

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

Returns 

TypeDescription
Object

global void setCustomField(String fieldName, Object fieldValue) 

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

Returns 

TypeDescription
void

public Boolean equals(Object obj) 

public Integer hashCode() 


Newer Version Available

This content describes an older version of this product. View Latest

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!