Interface DiscountGroupSetSortOrderAction

All Superinterfaces:
DiscountGroupUpdateAction

public interface DiscountGroupSetSortOrderAction extends 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 Details

    • SET_SORT_ORDER

      static final String SET_SORT_ORDER
      discriminator value for DiscountGroupSetSortOrderAction
      See Also:
  • Method Details

    • getSortOrder

      @NotNull @NotNull String getSortOrder()

      New value to set (between 0 and 1). A CartDiscount with a higher value will be prioritized.

      The sort order must be unique among all DiscountGroups and CartDiscounts.

      Returns:
      sortOrder
    • setSortOrder

      void setSortOrder(String sortOrder)

      New value to set (between 0 and 1). 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

      Specified by:
      copyDeep in interface DiscountGroupUpdateAction
    • 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