virtual CartExtension.BuyerActions

This Apex object exposes information about the buyer interactions that have happened with the CartExtension.Cart since the last calculation run. It allows custom orchestration implementation, based on CartCalculate, to use getBuyerActions() from the CartExtension.CartCalculateOrchestratorRequest object to choose which calculators to run.
To write Apex tests, use CartExtension.BuyerActionsMock.

Methods 

global virtual Boolean isCheckoutStarted() 

Returns true if the buyer has started checkout, false otherwise.

Returns 

TypeDescription
Boolean

global virtual Boolean isDeliveryMethodSelected() 

Returns true if the buyer has selected a delivery method, false otherwise.

Returns 

TypeDescription
Boolean

global virtual Boolean isDeliveryGroupChanged() 

Returns true if the buyer has created, updated, or deleted a delivery group, false otherwise.

Returns 

TypeDescription
Boolean

global virtual Boolean isCartItemChanged() 

Returns true if the buyer has created, updated, or deleted a cart item, false otherwise.

Returns 

TypeDescription
Boolean

global virtual Boolean isCouponChanged() 

Returns true if the buyer has created, updated, or deleted a coupon, false otherwise.

Returns 

TypeDescription
Boolean

global virtual Boolean isRecalculationRequested() 

Returns true if the buyer has requested all calculations to be performed on the cart,false otherwise.

Returns 

TypeDescription
Boolean

global virtual Boolean isEvaluateShippingRequested() 

Returns true if the buyer has requested shipping evaluations to be performed on the cart,false otherwise.

Returns 

TypeDescription
Boolean

global virtual Boolean isEvaluateTaxesRequested() 

Returns true if the buyer has requested tax evaluations to be performed on the cart,false otherwise.

Returns 

TypeDescription
Boolean

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!