Developer Preview
Newer Version Available
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
Object that may contain data about a changed CartItem, that can be used to optimize the business logic in custom calculators.
Constructor for `CartItemChange’ object to be used only in Apex unit test. All arguments are required.
| Param | Description |
|---|---|
OptionalCartItem | Provides the changed item |
Get the changed Cart Item
| Type | Description |
|---|---|
OptionalCartItem | OptionalCartItem |
Checks if the Cart Item was added
| Type | Description |
|---|---|
Boolean | s Boolean |
Checks if the Cart Item was removed
| Type | Description |
|---|---|
Boolean | s Boolean |
Checks if the Cart Item quantity increased
| Type | Description |
|---|---|
Boolean | s Boolean |
Checks if the Cart Item quantity decreased
| Type | Description |
|---|---|
Boolean | s Boolean |
Builds an instance of CartItemChange. This should only be used for Apex unit testing.
Developer Preview
Newer Version Available