Interface TaxCategoryReplaceTaxRateAction

All Superinterfaces:
ResourceUpdateAction<TaxCategoryUpdateAction>, TaxCategoryUpdateAction

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

     TaxCategoryReplaceTaxRateAction taxCategoryReplaceTaxRateAction = TaxCategoryReplaceTaxRateAction.builder()
             .taxRate(taxRateBuilder -> taxRateBuilder)
             .build()
 
  • Field Details

    • REPLACE_TAX_RATE

      static final String REPLACE_TAX_RATE
      discriminator value for TaxCategoryReplaceTaxRateAction
      See Also:
  • Method Details

    • getTaxRateId

      String getTaxRateId()

      ID of the TaxRate to replace. Either taxRateId or taxRateKey is required for this update action.

      Returns:
      taxRateId
    • getTaxRateKey

      String getTaxRateKey()

      Key of the TaxRate to replace. Either taxRateId or taxRateKey is required for this update action.

      Returns:
      taxRateKey
    • getTaxRate

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

      New TaxRate to replace with.

      Returns:
      taxRate
    • setTaxRateId

      void setTaxRateId(String taxRateId)

      ID of the TaxRate to replace. Either taxRateId or taxRateKey is required for this update action.

      Parameters:
      taxRateId - value to be set
    • setTaxRateKey

      void setTaxRateKey(String taxRateKey)

      Key of the TaxRate to replace. Either taxRateId or taxRateKey is required for this update action.

      Parameters:
      taxRateKey - value to be set
    • setTaxRate

      void setTaxRate(TaxRateDraft taxRate)

      New TaxRate to replace with.

      Parameters:
      taxRate - value to be set
    • of

      factory method
      Returns:
      instance of TaxCategoryReplaceTaxRateAction
    • of

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

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

      builder factory method for TaxCategoryReplaceTaxRateAction
      Returns:
      builder
    • builder

      create builder for TaxCategoryReplaceTaxRateAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withTaxCategoryReplaceTaxRateAction

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