CartExtension.BuyerActionDetails

This Apex object exposes details about the buyer interactions that have happened within the CartExtension.Cart since the last CartExtension.CartCalculate run. It provides information that can be used to optimize the business logic in custom calculators.

Methods 

global Boolean isCheckoutStarted() 

Indicates whether Checkout has started

Returns 

TypeDescription
Booleans Boolean

global List<CartDeliveryGroupChange> getDeliveryGroupChanges() 

Get the list of changed Delivery Groups with detailed info about the changes

Returns 

TypeDescription
List<CartDeliveryGroupChange>s List

global List<CartItemChange> getCartItemChanges() 

Get the list of changed Cart Items with detailed info about the changes

Returns 

TypeDescription
List<CartItemChange>s List

global List<CouponChange> getCouponChanges() 

Get the list of changed Coupons with detailed info about the changes

Returns 

TypeDescription
List<CouponChange>s List

Classes 

Builder 

Builds an instance of BuyerActionDetails. This should only be used for Apex unit testing.

Constructors 

global Builder() 


Methods 

global Builder withCheckoutStarted(boolean isCheckoutStarted) 

global Builder withDeliveryGroupChanges(List<CartDeliveryGroupChange> deliveryGroupChanges) 

global Builder withCartItemChanges(List<CartItemChange> cartItemChanges) 

global Builder withCouponChanges(List<CouponChange> couponChanges) 

global BuyerActionDetails build() 



Developer Preview

This release is in preview. Features described in this document don't become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can't guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!