Interface CartDiscountTarget


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

     CartDiscountTarget cartDiscountTarget = CartDiscountTarget.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 CartDiscountTarget of()
      factory method
      Returns:
      instance of CartDiscountTarget
    • of

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

      CartDiscountTarget copyDeep()
    • deepCopy

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

      static CartDiscountTargetBuilder builder()
      builder factory method for CartDiscountTarget
      Returns:
      builder
    • builder

      static CartDiscountTargetBuilder builder(CartDiscountTarget template)
      create builder for CartDiscountTarget instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartDiscountTarget

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