Interface ExternalLineItemTotalPrice


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

     ExternalLineItemTotalPrice externalLineItemTotalPrice = ExternalLineItemTotalPrice.builder()
             .price(priceBuilder -> priceBuilder)
             .totalPrice(totalPriceBuilder -> totalPriceBuilder)
             .build()
 
  • Method Details

    • getPrice

      @NotNull @Valid @NotNull @Valid Money getPrice()

      Price of the Line Item.

      Returns:
      price
    • getTotalPrice

      @NotNull @Valid @NotNull @Valid Money getTotalPrice()

      Total price of the Line Item.

      Returns:
      totalPrice
    • setPrice

      void setPrice(Money price)

      Price of the Line Item.

      Parameters:
      price - value to be set
    • setTotalPrice

      void setTotalPrice(Money totalPrice)

      Total price of the Line Item.

      Parameters:
      totalPrice - value to be set
    • of

      factory method
      Returns:
      instance of ExternalLineItemTotalPrice
    • of

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

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

      builder factory method for ExternalLineItemTotalPrice
      Returns:
      builder
    • builder

      create builder for ExternalLineItemTotalPrice instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withExternalLineItemTotalPrice

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