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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartDiscountChangeSortOrderAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartDiscountChangeSortOrderActionbuilder(CartDiscountChangeSortOrderAction template) create builder for CartDiscountChangeSortOrderAction instancecopyDeep()deepCopy(CartDiscountChangeSortOrderAction template) factory method to create a deep copy of CartDiscountChangeSortOrderAction@NotNull StringNew value to set (between0and1).of()factory methodof(CartDiscountChangeSortOrderAction template) factory method to create a shallow copy CartDiscountChangeSortOrderActionvoidsetSortOrder(String sortOrder) New value to set (between0and1).static com.fasterxml.jackson.core.type.TypeReference<CartDiscountChangeSortOrderAction>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
-
CHANGE_SORT_ORDER
discriminator value for CartDiscountChangeSortOrderAction- See Also:
-
-
Method Details
-
getSortOrder
New value to set (between
0and1). A Discount with a higher sortOrder is prioritized.- Returns:
- sortOrder
-
setSortOrder
New value to set (between
0and1). 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
-
copyDeep
CartDiscountChangeSortOrderAction copyDeep()- Specified by:
copyDeepin interfaceCartDiscountUpdateAction
-
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
-