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.
| Param | Description |
|---|---|
OptionalCartAdjustmentBasis | Provides the changed adjustment basis |
Get the changed CartAdjustmentBasis
| Type | Description |
|---|---|
OptionalCartAdjustmentBasis | OptionalCartAdjustmentBasis |
Checks whether a coupon has been added
| Type | Description |
|---|---|
Boolean | Boolean |
Checks whether a coupon has been removed
| Type | Description |
|---|---|
Boolean | Boolean |
Builds an instance of CouponChange. This should only be used for Apex unit testing.