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
global void setName(String name)
Set WebCart.Name.
Returns
global ID getWebStoreId()
Get WebCart.WebStoreId.
Returns
global ID getAccountId()
Get WebCart.AccountId.
Returns
global ID getOwnerId()
Get WebCart.OwnerId.
Returns
global CartStatusEnum getStatus()
Get WebCart.Status.
Returns
global String getCurrencyIsoCode()
Get WebCart.CurrencyIsoCode.
Returns
global Decimal getTotalListAmount()
Get WebCart.TotalListAmount.
Returns
global Decimal getTotalProductAmount()
Get WebCart.TotalProductAmount.
Returns
global Decimal getTotalChargeAmount()
Get WebCart.TotalChargeAmount.
Returns
global Decimal getTotalCartLevelAdjAmount()
Get WebCart.TotalCartLevelAdjAmount.
Returns
global Decimal getTotalProductItemAdjAmount()
Get WebCart.TotalProductItemAdjAmount.
Returns
global String getOrderReferenceNumber()
Get WebCart.OrderReferenceNumber.
Returns
global String getGuestEmailAddress()
Get WebCart.GuestEmailAddress.
Returns
global void setGuestEmailAddress(String guestEmailAddress)
Set WebCart.GuestEmailAddress.
Returns
global String getGuestPhoneNumber()
Get WebCart.GuestPhoneNumer.
Returns
global void setGuestPhoneNumber(String guestPhoneNumber)
Set WebCart.GuestPhoneNumer.
Returns
global String getGuestFirstName()
Get WebCart.GuestFirstName.
Returns
global void setGuestFirstName(String guestFirstName)
Set WebCart.GuestFirstName.
Returns
global String getGuestLastName()
Get WebCart.GuestLastName.
Returns
global void setGuestLastName(String guestLastName)
Set WebCart.GuestLastName.
Returns
global String getGuestSecondName()
Get WebCart.GuestSecondName.
Returns
global void setGuestSecondName(String guestSecondName)
Set WebCart.GuestSecondName.
Returns
global String getPoNumber()
Get WebCart.PoNumber.
Returns
global void setPoNumber(String poNumber)
Set WebCart.PoNumber.
Returns
global ID getPaymentMethodId()
Get WebCart.PaymentMethodId.
Returns
global void setPaymentMethodId(ID paymentMethodId)
Set WebCart.PaymentMethodId.
Returns
global ID getPaymentGroupId()
Get WebCart.PaymentGroupId.
Returns
global void setPaymentGroupId(ID paymentGroupId)
Set WebCart.PaymentGroupId.
Returns
global Decimal getTotalAmountAfterAllAdjustments()
Get WebCart.TotalAmountAfterAllAdjustments.
Returns
global Decimal getTotalProductCount()
Get WebCart.TotalProductCount.
Returns
global Decimal getTotalTaxAmount()
Get WebCart.TotalTaxAmount.
Returns
global Decimal getTotalPromoAdjustmentAmount()
Get WebCart.TotalPromoAdjustmentAmount.
Returns
global Decimal getGrandTotalAmount()
Get WebCart.GrandTotalAmount.
Returns
global Address getBillingAddress()
Get WebCart.BillingAddress.
Returns
global CartItemList getCartItems()
Get all the related CartExtension.CartItem objects.
Returns
global CartValidationOutputList getCartValidationOutputs()
Get all the related CartExtension.CartValidationOutput objects.
Returns
global CartAdjustmentGroupList getCartAdjustmentGroups()
Get all the related CartExtension.CartAdjustmentGroup objects.
Returns
global CartAdjustmentBasisList getCartAdjustmentBases()
Get all the related CartExtension.CartAdjustmentBasis objects.
Returns
global CartDeliveryGroupList getCartDeliveryGroups()
Get all the related CartExtension.CartDeliveryGroup objects.
Returns
global TaxLocaleTypeEnum getTaxType()
Get WebCart.TaxType.
Returns
global Boolean isSecondary()
Get WebCart.IsSecondary.
Returns
global String getGuestCompanyName()
Get WebCart.GuestCompanyName.
Returns
global void setGuestCompanyName(String guestCompanyName)
Set WebCart.GuestCompanyName.
Returns
global Decimal getTotalProductListAmount()
Get WebCart.TotalProductListAmount.
Returns
global Decimal getTotalSubProductCount()
Get WebCart.TotalSubProductCount.
Returns
global Decimal getFirstPymtGrandTotalAmount()
Get WebCart.FirstPymtGrandTotalAmount.
Returns
global Decimal getFirstPymtTotalTaxAmount()
Get WebCart.FirstPymtTotalTaxAmount.
Returns
global String getInventoryReservationIdentifier()
Get WebCart.InventoryReservationIdentifier.
Returns
global void setInventoryReservationIdentifier(String inventoryReservationIdentifier)
Set WebCart.InventoryReservationIdentifier.
Returns
global ID getId()
Inherited
Get Id.
Returns
global Datetime getCreatedDate()
Inherited
Get System Field CreatedDate.
Returns
global Datetime getLastModifiedDate()
Inherited
Get System Field LastModifiedDate.
Returns
global ID getCreatedById()
Inherited
Get System Field CreatedById.
Returns
global ID getLastModifiedById()
Inherited
Get System Field LastModifiedById.
Returns
global Object getCustomField(String fieldName)
Inherited
Get value of the given custom field (needs to be api name)
Returns
global void setCustomField(String fieldName, Object fieldValue)
Inherited
Set the value of the given custom field (needs to be api name)
Returns
public Boolean equals(Object obj)
Inherited
public Integer hashCode()
Inherited