CartExtension.CartItemChange

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.

ParamDescription
OptionalCartItemProvides the changed item

Get the changed Cart Item

TypeDescription
OptionalCartItemOptionalCartItem

Checks if the Cart Item was added

TypeDescription
Booleans Boolean

Checks if the Cart Item was removed

TypeDescription
Booleans Boolean

Checks if the Cart Item quantity increased

TypeDescription
Booleans Boolean

Checks if the Cart Item quantity decreased

TypeDescription
Booleans Boolean

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