Interface CartFreezeCartAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
Changes the CartState from Active
to Frozen
. Results in a Frozen Cart. Fails with InvalidOperation error when the Cart is empty.
Example to create an instance using the builder pattern
CartFreezeCartAction cartFreezeCartAction = CartFreezeCartAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartFreezeCartAction -
Method Summary
Modifier and TypeMethodDescriptionstatic CartFreezeCartActionBuilder
builder()
builder factory method for CartFreezeCartActionstatic CartFreezeCartActionBuilder
builder
(CartFreezeCartAction template) create builder for CartFreezeCartAction instancestatic CartFreezeCartAction
deepCopy
(CartFreezeCartAction template) factory method to create a deep copy of CartFreezeCartActionstatic CartFreezeCartAction
of()
factory methodstatic CartFreezeCartAction
of
(CartFreezeCartAction template) factory method to create a shallow copy CartFreezeCartActionstatic com.fasterxml.jackson.core.type.TypeReference<CartFreezeCartAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCartFreezeCartAction
(Function<CartFreezeCartAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
FREEZE_CART
discriminator value for CartFreezeCartAction- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of CartFreezeCartAction
-
of
factory method to create a shallow copy CartFreezeCartAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CartFreezeCartAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartFreezeCartAction- Returns:
- builder
-
builder
create builder for CartFreezeCartAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartFreezeCartAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-