Interface CartUnlockCartAction
- All Superinterfaces:
CartUpdateAction,ResourceUpdateAction<CartUpdateAction>
Unlocks a Cart, removing all update restrictions that are in place while a Cart is locked. This action requires an additional OAuth 2.0 Scope manage_locked_carts.
Example to create an instance using the builder pattern
CartUnlockCartAction cartUnlockCartAction = CartUnlockCartAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartUnlockCartAction -
Method Summary
Modifier and TypeMethodDescriptionstatic CartUnlockCartActionBuilderbuilder()builder factory method for CartUnlockCartActionstatic CartUnlockCartActionBuilderbuilder(CartUnlockCartAction template) create builder for CartUnlockCartAction instancecopyDeep()static CartUnlockCartActiondeepCopy(CartUnlockCartAction template) factory method to create a deep copy of CartUnlockCartActionstatic CartUnlockCartActionof()factory methodstatic CartUnlockCartActionof(CartUnlockCartAction template) factory method to create a shallow copy CartUnlockCartActionstatic com.fasterxml.jackson.core.type.TypeReference<CartUnlockCartAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCartUnlockCartAction(Function<CartUnlockCartAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
UNLOCK_CART
discriminator value for CartUnlockCartAction- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of CartUnlockCartAction
-
of
factory method to create a shallow copy CartUnlockCartAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartUnlockCartAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
deepCopy
factory method to create a deep copy of CartUnlockCartAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartUnlockCartAction- Returns:
- builder
-
builder
create builder for CartUnlockCartAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartUnlockCartAction
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
-