Interface CartLockCartAction
- All Superinterfaces:
CartUpdateAction,ResourceUpdateAction<CartUpdateAction>
Locks a Cart, preventing all updates from API Clients without an elevated OAuth 2.0 Scope. This action sets the Cart's lock field which identifies the API Client that locked the Cart and when the lock was applied. This action requires an additional OAuth 2.0 Scope manage_locked_carts.
Example to create an instance using the builder pattern
CartLockCartAction cartLockCartAction = CartLockCartAction.builder()
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CartLockCartActionBuilderbuilder()builder factory method for CartLockCartActionstatic CartLockCartActionBuilderbuilder(CartLockCartAction template) create builder for CartLockCartAction instancecopyDeep()static CartLockCartActiondeepCopy(CartLockCartAction template) factory method to create a deep copy of CartLockCartActionstatic CartLockCartActionof()factory methodstatic CartLockCartActionof(CartLockCartAction template) factory method to create a shallow copy CartLockCartActionstatic com.fasterxml.jackson.core.type.TypeReference<CartLockCartAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCartLockCartAction(Function<CartLockCartAction, 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
-
LOCK_CART
discriminator value for CartLockCartAction- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of CartLockCartAction
-
of
factory method to create a shallow copy CartLockCartAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartLockCartAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
deepCopy
factory method to create a deep copy of CartLockCartAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartLockCartAction- Returns:
- builder
-
builder
create builder for CartLockCartAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartLockCartAction
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
-