Interface TaxCategoryAddTaxRateAction

All Superinterfaces:
ResourceUpdateAction<TaxCategoryUpdateAction>, TaxCategoryUpdateAction

public interface TaxCategoryAddTaxRateAction extends TaxCategoryUpdateAction
TaxCategoryAddTaxRateAction
Example to create an instance using the builder pattern

     TaxCategoryAddTaxRateAction taxCategoryAddTaxRateAction = TaxCategoryAddTaxRateAction.builder()
             .taxRate(taxRateBuilder -> taxRateBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getTaxRate

      @NotNull @Valid @NotNull @Valid TaxRateDraft getTaxRate()

      Value to append to the rates array.

      Returns:
      taxRate
    • setTaxRate

      void setTaxRate(TaxRateDraft taxRate)

      Value to append to the rates array.

      Parameters:
      taxRate - value to be set
    • of

      factory method
      Returns:
      instance of TaxCategoryAddTaxRateAction
    • of

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

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

      builder factory method for TaxCategoryAddTaxRateAction
      Returns:
      builder
    • builder

      create builder for TaxCategoryAddTaxRateAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withTaxCategoryAddTaxRateAction

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