Interface TaxCategoryDraft

All Superinterfaces:
Draft<TaxCategoryDraft>, WithKey

public interface TaxCategoryDraft extends WithKey, Draft<TaxCategoryDraft>
TaxCategoryDraft
Example to create an instance using the builder pattern

     TaxCategoryDraft taxCategoryDraft = TaxCategoryDraft.builder()
             .name("{name}")
             .build()
 
  • Method Details

    • getName

      @NotNull @NotNull String getName()

      Name of the TaxCategory.

      Returns:
      name
    • getDescription

      String getDescription()

      Description of the TaxCategory.

      Returns:
      description
    • getRates

      @Valid @Valid List<TaxRateDraft> getRates()

      Tax rates and subrates of states and countries.

      Returns:
      rates
    • getKey

      String getKey()

      User-defined unique identifier for the TaxCategory.

      Specified by:
      getKey in interface WithKey
      Returns:
      key
    • setName

      void setName(String name)

      Name of the TaxCategory.

      Parameters:
      name - value to be set
    • setDescription

      void setDescription(String description)

      Description of the TaxCategory.

      Parameters:
      description - value to be set
    • setRates

      void setRates(TaxRateDraft... rates)

      Tax rates and subrates of states and countries.

      Parameters:
      rates - values to be set
    • setRates

      void setRates(List<TaxRateDraft> rates)

      Tax rates and subrates of states and countries.

      Parameters:
      rates - values to be set
    • setKey

      void setKey(String key)

      User-defined unique identifier for the TaxCategory.

      Parameters:
      key - value to be set
    • of

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

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

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

      static TaxCategoryDraftBuilder builder()
      builder factory method for TaxCategoryDraft
      Returns:
      builder
    • builder

      static TaxCategoryDraftBuilder builder(TaxCategoryDraft template)
      create builder for TaxCategoryDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withTaxCategoryDraft

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