CartExtension.BuyerActionsMock

ISTEST

This Apex object is a mocked version of CartExtension.BuyerActions to be used in Apex tests.

BuyerActionsMock

Constructors 

global BuyerActionsMock(Cart cart) 

For test context only


Methods 

Getters and setters for each action defined in BuyerActions. 

global override Boolean isCheckoutStarted() 

global void setCheckoutStarted(Boolean value) 

global override Boolean isDeliveryMethodSelected() 

global void setDeliveryMethodSelected(Boolean value) 

global override Boolean isDeliveryGroupChanged() 

global void setDeliveryGroupChanged(Boolean value) 

global override Boolean isCartItemChanged() 

global void setCartItemChanged(Boolean value) 

global override Boolean isCouponChanged() 

global void setCouponChanged(Boolean value) 

global override Boolean isRecalculationRequested() 

global void setRecalculationRequested(Boolean value) 

global override Boolean isEvaluateShippingRequested() 

global void setEvaluateShippingRequested(Boolean value) 

global override Boolean isEvaluateTaxesRequested() 

global void setEvaluateTaxesRequested(Boolean value) 


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!