Interface ExternalTaxRateDraft

All Superinterfaces:
Draft<ExternalTaxRateDraft>

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

     ExternalTaxRateDraft externalTaxRateDraft = ExternalTaxRateDraft.builder()
             .name("{name}")
             .country("{country}")
             .build()
 
  • Method Details

    • getName

      @NotNull @NotNull String getName()
      Returns:
      name
    • getAmount

      Double getAmount()
      Returns:
      amount
    • getCountry

      @NotNull @NotNull String getCountry()
      Returns:
      country
    • getState

      String getState()
      Returns:
      state
    • getSubRates

      @Valid @Valid List<SubRate> getSubRates()
      Returns:
      subRates
    • getIncludedInPrice

      Boolean getIncludedInPrice()
      Returns:
      includedInPrice
    • setName

      void setName(String name)
      set name
      Parameters:
      name - value to be set
    • setAmount

      void setAmount(Double amount)
      set amount
      Parameters:
      amount - value to be set
    • setCountry

      void setCountry(String country)
      set country
      Parameters:
      country - value to be set
    • setState

      void setState(String state)
      set state
      Parameters:
      state - value to be set
    • setSubRates

      void setSubRates(SubRate... subRates)
      set subRates
      Parameters:
      subRates - values to be set
    • setSubRates

      void setSubRates(List<SubRate> subRates)
      set subRates
      Parameters:
      subRates - values to be set
    • setIncludedInPrice

      void setIncludedInPrice(Boolean includedInPrice)
      set includedInPrice
      Parameters:
      includedInPrice - value to be set
    • of

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

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

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

      static ExternalTaxRateDraftBuilder builder()
      builder factory method for ExternalTaxRateDraft
      Returns:
      builder
    • builder

      create builder for ExternalTaxRateDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withExternalTaxRateDraft

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