Interface CartDiscountChangeSortOrderAction
- All Superinterfaces:
CartDiscountUpdateAction
,ResourceUpdateAction<CartDiscountUpdateAction>
CartDiscountChangeSortOrderAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartDiscountChangeSortOrderAction cartDiscountChangeSortOrderAction = CartDiscountChangeSortOrderAction.builder()
.sortOrder("{sortOrder}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartDiscountChangeSortOrderAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartDiscountChangeSortOrderActionbuilder
(CartDiscountChangeSortOrderAction template) create builder for CartDiscountChangeSortOrderAction instancedeepCopy
(CartDiscountChangeSortOrderAction template) factory method to create a deep copy of CartDiscountChangeSortOrderAction@NotNull String
New value to set (between0
and1
).of()
factory methodof
(CartDiscountChangeSortOrderAction template) factory method to create a shallow copy CartDiscountChangeSortOrderActionvoid
setSortOrder
(String sortOrder) New value to set (between0
and1
).static com.fasterxml.jackson.core.type.TypeReference<CartDiscountChangeSortOrderAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountUpdateAction
getAction, withCartDiscountUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_SORT_ORDER
discriminator value for CartDiscountChangeSortOrderAction- See Also:
-
-
Method Details
-
getSortOrder
New value to set (between
0
and1
). A Discount with a higher sortOrder is prioritized.- Returns:
- sortOrder
-
setSortOrder
New value to set (between
0
and1
). A Discount with a higher sortOrder is prioritized.- Parameters:
sortOrder
- value to be set
-
of
factory method- Returns:
- instance of CartDiscountChangeSortOrderAction
-
of
factory method to create a shallow copy CartDiscountChangeSortOrderAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartDiscountChangeSortOrderAction deepCopy(@Nullable CartDiscountChangeSortOrderAction template) factory method to create a deep copy of CartDiscountChangeSortOrderAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartDiscountChangeSortOrderAction- Returns:
- builder
-
builder
create builder for CartDiscountChangeSortOrderAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartDiscountChangeSortOrderAction
default <T> T withCartDiscountChangeSortOrderAction(Function<CartDiscountChangeSortOrderAction, 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<CartDiscountChangeSortOrderAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-