Interface CartDiscountRemoveStoreAction
- All Superinterfaces:
CartDiscountUpdateAction,ResourceUpdateAction<CartDiscountUpdateAction>
If a referenced Store does not exist, a ReferencedResourceNotFound error is returned.
This action generates a CartDiscountStoreRemoved Message.
Example to create an instance using the builder pattern
CartDiscountRemoveStoreAction cartDiscountRemoveStoreAction = CartDiscountRemoveStoreAction.builder()
.store(storeBuilder -> storeBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartDiscountRemoveStoreAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartDiscountRemoveStoreActionbuilder(CartDiscountRemoveStoreAction template) create builder for CartDiscountRemoveStoreAction instancecopyDeep()deepCopy(CartDiscountRemoveStoreAction template) factory method to create a deep copy of CartDiscountRemoveStoreAction@NotNull @Valid StoreResourceIdentifiergetStore()Store to remove.of()factory methodof(CartDiscountRemoveStoreAction template) factory method to create a shallow copy CartDiscountRemoveStoreActionvoidsetStore(StoreResourceIdentifier store) Store to remove.static com.fasterxml.jackson.core.type.TypeReference<CartDiscountRemoveStoreAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountUpdateAction
getAction, withCartDiscountUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
REMOVE_STORE
discriminator value for CartDiscountRemoveStoreAction- See Also:
-
-
Method Details
-
getStore
Store to remove.
- Returns:
- store
-
setStore
Store to remove.
- Parameters:
store- value to be set
-
of
factory method- Returns:
- instance of CartDiscountRemoveStoreAction
-
of
factory method to create a shallow copy CartDiscountRemoveStoreAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartDiscountRemoveStoreAction copyDeep()- Specified by:
copyDeepin interfaceCartDiscountUpdateAction
-
deepCopy
@Nullable static CartDiscountRemoveStoreAction deepCopy(@Nullable CartDiscountRemoveStoreAction template) factory method to create a deep copy of CartDiscountRemoveStoreAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartDiscountRemoveStoreAction- Returns:
- builder
-
builder
create builder for CartDiscountRemoveStoreAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartDiscountRemoveStoreAction
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
-