Interface CartDiscountValue


public interface CartDiscountValue
CartDiscountValue
Example to create an instance using the builder pattern

     CartDiscountValue cartDiscountValue = CartDiscountValue.builder()
             .type("{type}")
             .build()
 
  • Method Details

    • getType

      @NotNull @NotNull String getType()
      Returns:
      type
    • setType

      void setType(String type)
      set type
      Parameters:
      type - value to be set
    • of

      static CartDiscountValue of()
      factory method
      Returns:
      instance of CartDiscountValue
    • of

      static CartDiscountValue of(CartDiscountValue template)
      factory method to create a shallow copy CartDiscountValue
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • copyDeep

      CartDiscountValue copyDeep()
    • deepCopy

      @Nullable static CartDiscountValue deepCopy(@Nullable CartDiscountValue template)
      factory method to create a deep copy of CartDiscountValue
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static CartDiscountValueBuilder builder()
      builder factory method for CartDiscountValue
      Returns:
      builder
    • builder

      static CartDiscountValueBuilder builder(CartDiscountValue template)
      create builder for CartDiscountValue instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartDiscountValue

      default <T> T withCartDiscountValue(Function<CartDiscountValue,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<CartDiscountValue> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference