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() 



Newer Version Available

This content describes an older version of this product. View Latest

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