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 CartTestUtil.
See Object Reference: WebCart

Get WebCart.Id.

Type

ID

Description

Get WebCart.Name.

Type

String

Description

Set WebCart.Name.

Type

void

Description

Get WebCart.WebStoreId.

Type

ID

Description

Get WebCart.AccountId.

Type

ID

Description

Get WebCart.OwnerId.

Type

ID

Description

Get WebCart.Status.

Type

CartStatusEnum

Description

CartStatusEnum

Get WebCart.CurrencyIsoCode.

Type

String

Description

Get WebCart.TotalListAmount.

Type

Decimal

Description

Get WebCart.TotalProductAmount.

Type

Decimal

Description

Get WebCart.TotalChargeAmount.

Type

Decimal

Description

Get WebCart.GuestEmailAddress.

Type

String

Description

Set WebCart.GuestEmailAddress.

Type

void

Description

Get WebCart.GuestPhoneNumer.

Type

String

Description

Set WebCart.GuestPhoneNumer.

Type

void

Description

Get WebCart.GuestFirstName.

Type

String

Description

Set WebCart.GuestFirstName.

Type

void

Description

Get WebCart.GuestLastName.

Type

String

Description

Set WebCart.GuestLastName.

Type

void

Description

Get WebCart.GuestSecondName.

Type

String

Description

Set WebCart.GuestSecondName.

Type

void

Description

Get WebCart.TotalAmountAfterAllAdjustments.

Type

Decimal

Description

Get WebCart.TotalProductCount.

Type

Decimal

Description

Get WebCart.TotalTaxAmount.

Type

Decimal

Description

Get WebCart.TotalPromoAdjustmentAmount.

Type

Decimal

Description

Get WebCart.GrandTotalAmount.

Type

Decimal

Description

Get WebCart.BillingAddress.

Type

Address

Description

Get all the related CartItem objects.

Type

CartItemCollection

Description

CartItemCollection

Get all the related CartValidationOutput objects.

Type

CartValidationOutputCollection

Description

CartValidationOutputCollection

Get all the related CartAdjustmentGroup objects.

Type

CartAdjustmentGroupCollection

Description

CartAdjustmentGroupCollection

Get all the related CartAdjustmentBasis objects.

Type

CartAdjustmentBasisCollection

Description

CartAdjustmentBasisCollection

Get all the related CartDeliveryGroup objects.

Type

CartDeliveryGroupCollection

Description

CartDeliveryGroupCollection

Get WebCart.TaxType.

Type

TaxLocaleType

Description

TaxLocaleType

Get WebCart.IsSecondary.

Type

Boolean

Description

Get WebCart.ShipToPhoneNumber.

Type

String

Description

Set WebCart.ShipToPhoneNumber.

Type

void

Description

Get WebCart.CompanyName.

Type

String

Description

Set WebCart.CompanyName.

Type

void

Description