Interface TaxedItemPriceDraft

All Superinterfaces:
Draft<TaxedItemPriceDraft>

public interface TaxedItemPriceDraft extends Draft<TaxedItemPriceDraft>
TaxedItemPriceDraft
Example to create an instance using the builder pattern

     TaxedItemPriceDraft taxedItemPriceDraft = TaxedItemPriceDraft.builder()
             .totalNet(totalNetBuilder -> totalNetBuilder)
             .totalGross(totalGrossBuilder -> totalGrossBuilder)
             .build()
 
  • Method Details

    • getTotalNet

      @NotNull @Valid @NotNull @Valid Money getTotalNet()

      Draft object to store money in cent amounts for a specific currency.

      Returns:
      totalNet
    • getTotalGross

      @NotNull @Valid @NotNull @Valid Money getTotalGross()

      Draft object to store money in cent amounts for a specific currency.

      Returns:
      totalGross
    • setTotalNet

      void setTotalNet(Money totalNet)

      Draft object to store money in cent amounts for a specific currency.

      Parameters:
      totalNet - value to be set
    • setTotalGross

      void setTotalGross(Money totalGross)

      Draft object to store money in cent amounts for a specific currency.

      Parameters:
      totalGross - value to be set
    • of

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

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

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

      static TaxedItemPriceDraftBuilder builder()
      builder factory method for TaxedItemPriceDraft
      Returns:
      builder
    • builder

      create builder for TaxedItemPriceDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withTaxedItemPriceDraft

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