Interface DiscountGroupSetSortOrderAction
- All Superinterfaces:
DiscountGroupUpdateAction
Setting the sort order generates the DiscountGroupSortOrderSet Message.
Example to create an instance using the builder pattern
DiscountGroupSetSortOrderAction discountGroupSetSortOrderAction = DiscountGroupSetSortOrderAction.builder()
.sortOrder("{sortOrder}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for DiscountGroupSetSortOrderAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DiscountGroupSetSortOrderActionbuilder
(DiscountGroupSetSortOrderAction template) create builder for DiscountGroupSetSortOrderAction instancecopyDeep()
deepCopy
(DiscountGroupSetSortOrderAction template) factory method to create a deep copy of DiscountGroupSetSortOrderAction@NotNull String
New value to set (between0
and1
).of()
factory methodof
(DiscountGroupSetSortOrderAction template) factory method to create a shallow copy DiscountGroupSetSortOrderActionvoid
setSortOrder
(String sortOrder) New value to set (between0
and1
).static com.fasterxml.jackson.core.type.TypeReference<DiscountGroupSetSortOrderAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.discount_group.DiscountGroupUpdateAction
getAction, withDiscountGroupUpdateAction
-
Field Details
-
SET_SORT_ORDER
discriminator value for DiscountGroupSetSortOrderAction- See Also:
-
-
Method Details
-
getSortOrder
New value to set (between
0
and1
). A CartDiscount with a higher value will be prioritized.The sort order must be unique among all DiscountGroups and CartDiscounts.
- Returns:
- sortOrder
-
setSortOrder
New value to set (between
0
and1
). A CartDiscount with a higher value will be prioritized.The sort order must be unique among all DiscountGroups and CartDiscounts.
- Parameters:
sortOrder
- value to be set
-
of
factory method- Returns:
- instance of DiscountGroupSetSortOrderAction
-
of
factory method to create a shallow copy DiscountGroupSetSortOrderAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
DiscountGroupSetSortOrderAction copyDeep()- Specified by:
copyDeep
in interfaceDiscountGroupUpdateAction
-
deepCopy
@Nullable static DiscountGroupSetSortOrderAction deepCopy(@Nullable DiscountGroupSetSortOrderAction template) factory method to create a deep copy of DiscountGroupSetSortOrderAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountGroupSetSortOrderAction- Returns:
- builder
-
builder
create builder for DiscountGroupSetSortOrderAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountGroupSetSortOrderAction
default <T> T withDiscountGroupSetSortOrderAction(Function<DiscountGroupSetSortOrderAction, 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<DiscountGroupSetSortOrderAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-