Interface DiscountCodeChangeCartDiscountsAction
- All Superinterfaces:
DiscountCodeUpdateAction
,ResourceUpdateAction<DiscountCodeUpdateAction>
DiscountCodeChangeCartDiscountsAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountCodeChangeCartDiscountsAction discountCodeChangeCartDiscountsAction = DiscountCodeChangeCartDiscountsAction.builder()
.plusCartDiscounts(cartDiscountsBuilder -> cartDiscountsBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for DiscountCodeChangeCartDiscountsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DiscountCodeChangeCartDiscountsActionbuilder
(DiscountCodeChangeCartDiscountsAction template) create builder for DiscountCodeChangeCartDiscountsAction instancefactory method to create a deep copy of DiscountCodeChangeCartDiscountsAction@NotNull @Valid List<CartDiscountResourceIdentifier>
New value to set.of()
factory methodof
(DiscountCodeChangeCartDiscountsAction template) factory method to create a shallow copy DiscountCodeChangeCartDiscountsActionvoid
setCartDiscounts
(CartDiscountResourceIdentifier... cartDiscounts) New value to set.void
setCartDiscounts
(List<CartDiscountResourceIdentifier> cartDiscounts) New value to set.static com.fasterxml.jackson.core.type.TypeReference<DiscountCodeChangeCartDiscountsAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.discount_code.DiscountCodeUpdateAction
getAction, withDiscountCodeUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_CART_DISCOUNTS
discriminator value for DiscountCodeChangeCartDiscountsAction- See Also:
-
-
Method Details
-
getCartDiscounts
New value to set.
- Returns:
- cartDiscounts
-
setCartDiscounts
New value to set.
- Parameters:
cartDiscounts
- values to be set
-
setCartDiscounts
New value to set.
- Parameters:
cartDiscounts
- values to be set
-
of
factory method- Returns:
- instance of DiscountCodeChangeCartDiscountsAction
-
of
factory method to create a shallow copy DiscountCodeChangeCartDiscountsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static DiscountCodeChangeCartDiscountsAction deepCopy(@Nullable DiscountCodeChangeCartDiscountsAction template) factory method to create a deep copy of DiscountCodeChangeCartDiscountsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountCodeChangeCartDiscountsAction- Returns:
- builder
-
builder
static DiscountCodeChangeCartDiscountsActionBuilder builder(DiscountCodeChangeCartDiscountsAction template) create builder for DiscountCodeChangeCartDiscountsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountCodeChangeCartDiscountsAction
default <T> T withDiscountCodeChangeCartDiscountsAction(Function<DiscountCodeChangeCartDiscountsAction, T> helper) 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<DiscountCodeChangeCartDiscountsAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-