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

Methods 

global String getName() 

Get WebCart.Name.

Returns 

TypeDescription
String

global void setName(String name) 

Set WebCart.Name.

Returns 

TypeDescription
void

global ID getWebStoreId() 

Get WebCart.WebStoreId.

Returns 

TypeDescription
ID

global ID getAccountId() 

Get WebCart.AccountId.

Returns 

TypeDescription
ID

global ID getOwnerId() 

Get WebCart.OwnerId.

Returns 

TypeDescription
ID

global CartStatusEnum getStatus() 

Get WebCart.Status.

Returns 

TypeDescription
CartStatusEnumCartExtension.CartStatusEnum

global String getCurrencyIsoCode() 

Get WebCart.CurrencyIsoCode.

Returns 

TypeDescription
String

global Decimal getTotalListAmount() 

Get WebCart.TotalListAmount.

Returns 

TypeDescription
Decimal

global Decimal getTotalProductAmount() 

Get WebCart.TotalProductAmount.

Returns 

TypeDescription
Decimal

global Decimal getTotalChargeAmount() 

Get WebCart.TotalChargeAmount.

Returns 

TypeDescription
Decimal

global Decimal getTotalCartLevelAdjAmount() 

Get WebCart.TotalCartLevelAdjAmount.

Returns 

TypeDescription
Decimal

global Decimal getTotalProductItemAdjAmount() 

Get WebCart.TotalProductItemAdjAmount.

Returns 

TypeDescription
Decimal

global Decimal getTotalChargeItemAdjAmount() 

Get WebCart.TotalChargeItemAdjAmount.

Returns 

TypeDescription
Decimal

global String getOrderReferenceNumber() 

Get WebCart.OrderReferenceNumber.

Returns 

TypeDescription
String

global String getGuestEmailAddress() 

Get WebCart.GuestEmailAddress.

Returns 

TypeDescription
String

global void setGuestEmailAddress(String guestEmailAddress) 

Set WebCart.GuestEmailAddress.

Returns 

TypeDescription
void

global String getGuestPhoneNumber() 

Get WebCart.GuestPhoneNumer.

Returns 

TypeDescription
String

global void setGuestPhoneNumber(String guestPhoneNumber) 

Set WebCart.GuestPhoneNumer.

Returns 

TypeDescription
void

global String getGuestFirstName() 

Get WebCart.GuestFirstName.

Returns 

TypeDescription
String

global void setGuestFirstName(String guestFirstName) 

Set WebCart.GuestFirstName.

Returns 

TypeDescription
void

global String getGuestLastName() 

Get WebCart.GuestLastName.

Returns 

TypeDescription
String

global void setGuestLastName(String guestLastName) 

Set WebCart.GuestLastName.

Returns 

TypeDescription
void

global String getGuestSecondName() 

Get WebCart.GuestSecondName.

Returns 

TypeDescription
String

global void setGuestSecondName(String guestSecondName) 

Set WebCart.GuestSecondName.

Returns 

TypeDescription
void

global String getPoNumber() 

Get WebCart.PoNumber.

Returns 

TypeDescription
String

global void setPoNumber(String poNumber) 

Set WebCart.PoNumber.

Returns 

TypeDescription
void

global ID getPaymentMethodId() 

Get WebCart.PaymentMethodId.

Returns 

TypeDescription
ID

global void setPaymentMethodId(ID paymentMethodId) 

Set WebCart.PaymentMethodId.

Returns 

TypeDescription
void

global ID getPaymentGroupId() 

Get WebCart.PaymentGroupId.

Returns 

TypeDescription
ID

global void setPaymentGroupId(ID paymentGroupId) 

Set WebCart.PaymentGroupId.

Returns 

TypeDescription
void

global Decimal getTotalAmountAfterAllAdjustments() 

Get WebCart.TotalAmountAfterAllAdjustments.

Returns 

TypeDescription
Decimal

global Decimal getTotalProductCount() 

Get WebCart.TotalProductCount.

Returns 

TypeDescription
Decimal

global Decimal getTotalTaxAmount() 

Get WebCart.TotalTaxAmount.

Returns 

TypeDescription
Decimal

global Decimal getTotalPromoAdjustmentAmount() 

Get WebCart.TotalPromoAdjustmentAmount.

Returns 

TypeDescription
Decimal

global Decimal getGrandTotalAmount() 

Get WebCart.GrandTotalAmount.

Returns 

TypeDescription
Decimal

global Address getBillingAddress() 

Get WebCart.BillingAddress.

Returns 

TypeDescription
Address

global CartItemList getCartItems() 

Get all the related CartExtension.CartItem objects.

Returns 

TypeDescription
CartItemListCartExtension.CartItemList

global CartItemList getCartItems(Boolean includeChildren) 

Get all the related CartExtension.CartItem objects.

Returns 

TypeDescription
CartItemListCartExtension.CartItemList

global CartValidationOutputList getCartValidationOutputs() 

Get all the related CartExtension.CartValidationOutput objects.

Returns 

TypeDescription
CartValidationOutputListCartExtension.CartValidationOutputList

global CartAdjustmentGroupList getCartAdjustmentGroups() 

Get all the related CartExtension.CartAdjustmentGroup objects.

Returns 

TypeDescription
CartAdjustmentGroupListCartExtension.CartAdjustmentGroupList

global CartAdjustmentBasisList getCartAdjustmentBases() 

Get all the related CartExtension.CartAdjustmentBasis objects.

Returns 

TypeDescription
CartAdjustmentBasisListCartExtension.CartAdjustmentBasisList

global CartDeliveryGroupList getCartDeliveryGroups() 

Get all the related CartExtension.CartDeliveryGroup objects.

Returns 

TypeDescription
CartDeliveryGroupListCartExtension.CartDeliveryGroupList

global TaxLocaleTypeEnum getTaxType() 

Get WebCart.TaxType.

Returns 

TypeDescription
TaxLocaleTypeEnumCartExtension.TaxLocaleTypeEnum

global Boolean isSecondary() 

Get WebCart.IsSecondary.

Returns 

TypeDescription
Boolean

global String getGuestCompanyName() 

Get WebCart.GuestCompanyName.

Returns 

TypeDescription
String

global void setGuestCompanyName(String guestCompanyName) 

Set WebCart.GuestCompanyName.

Returns 

TypeDescription
void

global Decimal getTotalProductListAmount() 

Get WebCart.TotalProductListAmount.

Returns 

TypeDescription
Decimal

global Decimal getTotalSubProductCount() 

Get WebCart.TotalSubProductCount.

Returns 

TypeDescription
Decimal

global Decimal getFirstPymtGrandTotalAmount() 

Get WebCart.FirstPymtGrandTotalAmount.

Returns 

TypeDescription
Decimal

global Decimal getFirstPymtTotalTaxAmount() 

Get WebCart.FirstPymtTotalTaxAmount.

Returns 

TypeDescription
Decimal

global String getInventoryReservationIdentifier() 

Get WebCart.InventoryReservationIdentifier.

Returns 

TypeDescription
String

global Decimal getTotalProductFirstPymtTaxAmount() 

Get WebCart.TotalProductFirstPymtTaxAmount.

Returns 

TypeDescription
Decimal

global Decimal getTotalChargeFirstPymtTaxAmount() 

Get WebCart.TotalChargeFirstPymtTaxAmount.

Returns 

TypeDescription
Decimal

global Decimal getTotalProductFirstPymtAmount() 

Get WebCart.TotalProductFirstPymtAmount.

Returns 

TypeDescription
Decimal

global Decimal getTotalProductFirstPymtAmountWithTax() 

Get WebCart.TotalProductFirstPymtAmountWithTax.

Returns 

TypeDescription
Decimal

global Decimal getTotalChargeFirstPymtAmount() 

Get WebCart.TotalChargeFirstPymtAmount.

Returns 

TypeDescription
Decimal

global Decimal getTotalChargeFirstPymtAmountWithTax() 

Get WebCart.TotalChargeFirstPymtAmountWithTax.

Returns 

TypeDescription
Decimal

global Decimal getTotalFirstPymtAmount() 

Get WebCart.TotalFirstPymtAmount.

Returns 

TypeDescription
Decimal

global Decimal getTotalFirstPymtListAmount() 

Get WebCart.TotalFirstPymtListAmount.

Returns 

TypeDescription
Decimal

global void setInventoryReservationIdentifier(String inventoryReservationIdentifier) 

Set WebCart.InventoryReservationIdentifier.

Returns 

TypeDescription
void

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