Interface TaxedItemPrice


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

     TaxedItemPrice taxedItemPrice = TaxedItemPrice.builder()
             .totalNet(totalNetBuilder -> totalNetBuilder)
             .totalGross(totalGrossBuilder -> totalGrossBuilder)
             .build()
 
  • Method Details

    • getTotalNet

      @NotNull @Valid @NotNull @Valid Money getTotalNet()
      Returns:
      totalNet
    • getTotalGross

      @NotNull @Valid @NotNull @Valid Money getTotalGross()
      Returns:
      totalGross
    • setTotalNet

      void setTotalNet(Money totalNet)
      set totalNet
      Parameters:
      totalNet - value to be set
    • setTotalGross

      void setTotalGross(Money totalGross)
      set totalGross
      Parameters:
      totalGross - value to be set
    • of

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

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

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

      static TaxedItemPriceBuilder builder()
      builder factory method for TaxedItemPrice
      Returns:
      builder
    • builder

      static TaxedItemPriceBuilder builder(TaxedItemPrice template)
      create builder for TaxedItemPrice instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withTaxedItemPrice

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