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.

TypeDescription
String

Set WebCart.Name.

TypeDescription
void

Get WebCart.WebStoreId.

TypeDescription
ID

Get WebCart.AccountId.

TypeDescription
ID

Get WebCart.OwnerId.

TypeDescription
ID

Get WebCart.Status.

TypeDescription
CartStatusEnumCartExtension.CartStatusEnum

Get WebCart.CurrencyIsoCode.

TypeDescription
String

Get WebCart.TotalListAmount.

TypeDescription
Decimal

Get WebCart.TotalProductAmount.

TypeDescription
Decimal

Get WebCart.TotalChargeAmount.

TypeDescription
Decimal

Get WebCart.GuestEmailAddress.

TypeDescription
String

Set WebCart.GuestEmailAddress.

TypeDescription
void

Get WebCart.GuestPhoneNumer.

TypeDescription
String

Set WebCart.GuestPhoneNumer.

TypeDescription
void

Get WebCart.GuestFirstName.

TypeDescription
String

Set WebCart.GuestFirstName.

TypeDescription
void

Get WebCart.GuestLastName.

TypeDescription
String

Set WebCart.GuestLastName.

TypeDescription
void

Get WebCart.GuestSecondName.

TypeDescription
String

Set WebCart.GuestSecondName.

TypeDescription
void

Get WebCart.TotalAmountAfterAllAdjustments.

TypeDescription
Decimal

Get WebCart.TotalProductCount.

TypeDescription
Decimal

Get WebCart.TotalTaxAmount.

TypeDescription
Decimal

Get WebCart.TotalPromoAdjustmentAmount.

TypeDescription
Decimal

Get WebCart.GrandTotalAmount.

TypeDescription
Decimal

Get WebCart.BillingAddress.

TypeDescription
Address

Get all the related CartExtension.CartItem objects.

TypeDescription
CartItemListCartExtension.CartItemList

Get all the related CartExtension.CartValidationOutput objects.

TypeDescription
CartValidationOutputListCartExtension.CartValidationOutputList

Get all the related CartExtension.CartAdjustmentGroup objects.

TypeDescription
CartAdjustmentGroupListCartExtension.CartAdjustmentGroupList

Get all the related CartExtension.CartAdjustmentBasis objects.

TypeDescription
CartAdjustmentBasisListCartExtension.CartAdjustmentBasisList

Get all the related CartExtension.CartDeliveryGroup objects.

TypeDescription
CartDeliveryGroupListCartExtension.CartDeliveryGroupList

Get WebCart.TaxType.

TypeDescription
TaxLocaleTypeEnumCartExtension.TaxLocaleTypeEnum

Get WebCart.IsSecondary.

TypeDescription
Boolean

Get WebCart.GuestCompanyName.

TypeDescription
String

Set WebCart.GuestCompanyName.

TypeDescription
void

Get WebCart.TotalProductListAmount.

TypeDescription
Decimal

Get WebCart.TotalSubProductCount.

TypeDescription
Decimal

Get WebCart.FirstPymtGrandTotalAmount.

TypeDescription
Decimal

Get WebCart.FirstPymtTotalTaxAmount.

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