Interface DiscountedLineItemPortion


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

     DiscountedLineItemPortion discountedLineItemPortion = DiscountedLineItemPortion.builder()
             .discount(discountBuilder -> discountBuilder)
             .discountedAmount(discountedAmountBuilder -> discountedAmountBuilder)
             .build()
 
  • Method Details

    • getDiscount

      @NotNull @Valid @NotNull @Valid Reference getDiscount()
      Returns:
      discount
    • getDiscountedAmount

      @NotNull @Valid @NotNull @Valid Money getDiscountedAmount()
      Returns:
      discountedAmount
    • setDiscount

      void setDiscount(Reference discount)
      set discount
      Parameters:
      discount - value to be set
    • setDiscountedAmount

      void setDiscountedAmount(Money discountedAmount)
      set discountedAmount
      Parameters:
      discountedAmount - value to be set
    • of

      factory method
      Returns:
      instance of DiscountedLineItemPortion
    • of

      factory method to create a shallow copy DiscountedLineItemPortion
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of DiscountedLineItemPortion
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for DiscountedLineItemPortion
      Returns:
      builder
    • builder

      create builder for DiscountedLineItemPortion instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withDiscountedLineItemPortion

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