Interface CartRemoveDiscountCodeAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
CartRemoveDiscountCodeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartRemoveDiscountCodeAction cartRemoveDiscountCodeAction = CartRemoveDiscountCodeAction.builder()
.discountCode(discountCodeBuilder -> discountCodeBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartRemoveDiscountCodeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartRemoveDiscountCodeActionbuilder
(CartRemoveDiscountCodeAction template) create builder for CartRemoveDiscountCodeAction instancestatic CartRemoveDiscountCodeAction
deepCopy
(CartRemoveDiscountCodeAction template) factory method to create a deep copy of CartRemoveDiscountCodeAction@NotNull @Valid DiscountCodeReference
Discount Code to remove from the Cart.static CartRemoveDiscountCodeAction
of()
factory methodstatic CartRemoveDiscountCodeAction
of
(CartRemoveDiscountCodeAction template) factory method to create a shallow copy CartRemoveDiscountCodeActionvoid
setDiscountCode
(DiscountCodeReference discountCode) Discount Code to remove from the Cart.static com.fasterxml.jackson.core.type.TypeReference<CartRemoveDiscountCodeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
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
-
REMOVE_DISCOUNT_CODE
discriminator value for CartRemoveDiscountCodeAction- See Also:
-
-
Method Details
-
getDiscountCode
Discount Code to remove from the Cart.
- Returns:
- discountCode
-
setDiscountCode
Discount Code to remove from the Cart.
- Parameters:
discountCode
- value to be set
-
of
factory method- Returns:
- instance of CartRemoveDiscountCodeAction
-
of
factory method to create a shallow copy CartRemoveDiscountCodeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartRemoveDiscountCodeAction deepCopy(@Nullable CartRemoveDiscountCodeAction template) factory method to create a deep copy of CartRemoveDiscountCodeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartRemoveDiscountCodeAction- Returns:
- builder
-
builder
create builder for CartRemoveDiscountCodeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartRemoveDiscountCodeAction
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
-