Package com.commercetools.api.models.me
Interface MyCartRemoveDiscountCodeAction
- All Superinterfaces:
MyCartUpdateAction
,ResourceUpdateAction<MyCartUpdateAction>
MyCartRemoveDiscountCodeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyCartRemoveDiscountCodeAction myCartRemoveDiscountCodeAction = MyCartRemoveDiscountCodeAction.builder()
.discountCode(discountCodeBuilder -> discountCodeBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyCartRemoveDiscountCodeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyCartRemoveDiscountCodeActionbuilder
(MyCartRemoveDiscountCodeAction template) create builder for MyCartRemoveDiscountCodeAction instancedeepCopy
(MyCartRemoveDiscountCodeAction template) factory method to create a deep copy of MyCartRemoveDiscountCodeAction@NotNull @Valid DiscountCodeReference
Discount Code to remove from the Cart.of()
factory methodof
(MyCartRemoveDiscountCodeAction template) factory method to create a shallow copy MyCartRemoveDiscountCodeActionvoid
setDiscountCode
(DiscountCodeReference discountCode) Discount Code to remove from the Cart.static com.fasterxml.jackson.core.type.TypeReference<MyCartRemoveDiscountCodeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
getAction, withMyCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
REMOVE_DISCOUNT_CODE
discriminator value for MyCartRemoveDiscountCodeAction- 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 MyCartRemoveDiscountCodeAction
-
of
factory method to create a shallow copy MyCartRemoveDiscountCodeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyCartRemoveDiscountCodeAction deepCopy(@Nullable MyCartRemoveDiscountCodeAction template) factory method to create a deep copy of MyCartRemoveDiscountCodeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCartRemoveDiscountCodeAction- Returns:
- builder
-
builder
create builder for MyCartRemoveDiscountCodeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyCartRemoveDiscountCodeAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<MyCartRemoveDiscountCodeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-