CartExtension.Cart
This Apex object represents an in-memory WebCart
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.
To write Apex tests, use CartExtension.CartTestUtil.
See Object Reference: WebCart
Get WebCart.Name
.
Type | Description |
---|---|
String |
Set WebCart.Name
.
Type | Description |
---|---|
void |
Get WebCart.WebStoreId
.
Type | Description |
---|---|
ID |
Get WebCart.AccountId
.
Type | Description |
---|---|
ID |
Get WebCart.OwnerId
.
Type | Description |
---|---|
ID |
Get WebCart.Status
.
Type | Description |
---|---|
CartStatusEnum | CartExtension.CartStatusEnum |
Get WebCart.CurrencyIsoCode
.
Type | Description |
---|---|
String |
Get WebCart.TotalListAmount
.
Type | Description |
---|---|
Decimal |
Get WebCart.TotalProductAmount
.
Type | Description |
---|---|
Decimal |
Get WebCart.TotalChargeAmount
.
Type | Description |
---|---|
Decimal |
Get WebCart.TotalCartLevelAdjAmount
.
Type | Description |
---|---|
Decimal |
Get WebCart.TotalProductItemAdjAmount
.
Type | Description |
---|---|
Decimal |
Get WebCart.TotalChargeItemAdjAmount
.
Type | Description |
---|---|
Decimal |
Get WebCart.OrderReferenceNumber
.
Type | Description |
---|---|
String |
Get WebCart.GuestEmailAddress
.
Type | Description |
---|---|
String |
Set WebCart.GuestEmailAddress
.
Type | Description |
---|---|
void |
Get WebCart.GuestPhoneNumer
.
Type | Description |
---|---|
String |
Set WebCart.GuestPhoneNumer
.
Type | Description |
---|---|
void |
Get WebCart.GuestFirstName
.
Type | Description |
---|---|
String |
Set WebCart.GuestFirstName
.
Type | Description |
---|---|
void |
Get WebCart.GuestLastName
.
Type | Description |
---|---|
String |
Set WebCart.GuestLastName
.
Type | Description |
---|---|
void |
Get WebCart.GuestSecondName
.
Type | Description |
---|---|
String |
Set WebCart.GuestSecondName
.
Type | Description |
---|---|
void |
Get WebCart.PoNumber
.
Type | Description |
---|---|
String |
Set WebCart.PoNumber
.
Type | Description |
---|---|
void |
Get WebCart.PaymentMethodId
.
Type | Description |
---|---|
ID |
Set WebCart.PaymentMethodId
.
Type | Description |
---|---|
void |
Get WebCart.PaymentGroupId
.
Type | Description |
---|---|
ID |
Set WebCart.PaymentGroupId
.
Type | Description |
---|---|
void |
Get WebCart.TotalAmountAfterAllAdjustments
.
Type | Description |
---|---|
Decimal |
Get WebCart.TotalProductCount
.
Type | Description |
---|---|
Decimal |
Get WebCart.TotalTaxAmount
.
Type | Description |
---|---|
Decimal |
Get WebCart.TotalPromoAdjustmentAmount
.
Type | Description |
---|---|
Decimal |
Get WebCart.GrandTotalAmount
.
Type | Description |
---|---|
Decimal |
Get WebCart.BillingAddress
.
Type | Description |
---|---|
Address |
Get all the related CartExtension.CartItem objects.
Type | Description |
---|---|
CartItemList | CartExtension.CartItemList |
Get all the related CartExtension.CartItem objects.
Type | Description |
---|---|
CartItemList | CartExtension.CartItemList |
Get all the related CartExtension.CartValidationOutput objects.
Type | Description |
---|---|
CartValidationOutputList | CartExtension.CartValidationOutputList |
Get all the related CartExtension.CartAdjustmentGroup objects.
Type | Description |
---|---|
CartAdjustmentGroupList | CartExtension.CartAdjustmentGroupList |
Get all the related CartExtension.CartAdjustmentBasis objects.
Type | Description |
---|---|
CartAdjustmentBasisList | CartExtension.CartAdjustmentBasisList |
Get all the related CartExtension.CartDeliveryGroup objects.
Type | Description |
---|---|
CartDeliveryGroupList | CartExtension.CartDeliveryGroupList |
Get WebCart.TaxType
.
Type | Description |
---|---|
TaxLocaleTypeEnum | CartExtension.TaxLocaleTypeEnum |
Get WebCart.IsSecondary
.
Type | Description |
---|---|
Boolean |
Get WebCart.GuestCompanyName
.
Type | Description |
---|---|
String |
Set WebCart.GuestCompanyName
.
Type | Description |
---|---|
void |
Get WebCart.TotalProductListAmount
.
Type | Description |
---|---|
Decimal |
Get WebCart.TotalSubProductCount
.
Type | Description |
---|---|
Decimal |
Get WebCart.FirstPymtGrandTotalAmount
.
Type | Description |
---|---|
Decimal |
Get WebCart.FirstPymtTotalTaxAmount
.
Type | Description |
---|---|
Decimal |
Get WebCart.InventoryReservationIdentifier
.
Type | Description |
---|---|
String |
Get WebCart.TotalProductFirstPymtTaxAmount
.
Type | Description |
---|---|
Decimal |
Get WebCart.TotalChargeFirstPymtTaxAmount
.
Type | Description |
---|---|
Decimal |
Get WebCart.TotalProductFirstPymtAmount
.
Type | Description |
---|---|
Decimal |
Get WebCart.TotalProductFirstPymtAmountWithTax
.
Type | Description |
---|---|
Decimal |
Get WebCart.TotalChargeFirstPymtAmount
.
Type | Description |
---|---|
Decimal |
Get WebCart.TotalChargeFirstPymtAmountWithTax
.
Type | Description |
---|---|
Decimal |
Get WebCart.TotalFirstPymtAmount
.
Type | Description |
---|---|
Decimal |
Get WebCart.TotalFirstPymtListAmount
.
Type | Description |
---|---|
Decimal |
Set WebCart.InventoryReservationIdentifier
.
Type | Description |
---|---|
void |
Get Id
.
Type | Description |
---|---|
ID |
Get System Field CreatedDate
.
Type | Description |
---|---|
Datetime |
Get System Field LastModifiedDate
.
Type | Description |
---|---|
Datetime |
Get System Field CreatedById
.
Type | Description |
---|---|
ID |
Get System Field LastModifiedById
.
Type | Description |
---|---|
ID |
Get value of the given custom field (needs to be api name)
Type | Description |
---|---|
Object |
Set the value of the given custom field (needs to be api name)
Type | Description |
---|---|
void |