CartExtension.CouponChange

Object that may contain data about a changed coupon (CartAdjustmentBasis), that can be used to optimize the business logic in custom calculators.

Constructor for CouponChange object to be used only in Apex unit test. All arguments are required.

ParamDescription
OptionalCartAdjustmentBasisProvides the changed adjustment basis

Get the changed CartAdjustmentBasis

TypeDescription
OptionalCartAdjustmentBasisOptionalCartAdjustmentBasis

Checks whether a coupon has been added

TypeDescription
BooleanBoolean

Checks whether a coupon has been removed

TypeDescription
BooleanBoolean

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