Interface TaxCategoryRemoveTaxRateAction

All Superinterfaces:
ResourceUpdateAction<TaxCategoryUpdateAction>, TaxCategoryUpdateAction

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

     TaxCategoryRemoveTaxRateAction taxCategoryRemoveTaxRateAction = TaxCategoryRemoveTaxRateAction.builder()
             .build()
 
  • Field Details

    • REMOVE_TAX_RATE

      static final String REMOVE_TAX_RATE
      discriminator value for TaxCategoryRemoveTaxRateAction
      See Also:
  • Method Details

    • getTaxRateId

      String getTaxRateId()

      ID of the TaxRate to remove. Either taxRateId or taxRateKey must be provided.

      If the referenced TaxRate does not exist within the TaxCategory, an InvalidOperation error is returned.

      Returns:
      taxRateId
    • getTaxRateKey

      String getTaxRateKey()

      Key of the TaxRate to remove. Either taxRateId or taxRateKey must be provided.

      If the referenced TaxRate does not exist within the TaxCategory, an InvalidOperation error is returned.

      Returns:
      taxRateKey
    • setTaxRateId

      void setTaxRateId(String taxRateId)

      ID of the TaxRate to remove. Either taxRateId or taxRateKey must be provided.

      If the referenced TaxRate does not exist within the TaxCategory, an InvalidOperation error is returned.

      Parameters:
      taxRateId - value to be set
    • setTaxRateKey

      void setTaxRateKey(String taxRateKey)

      Key of the TaxRate to remove. Either taxRateId or taxRateKey must be provided.

      If the referenced TaxRate does not exist within the TaxCategory, an InvalidOperation error is returned.

      Parameters:
      taxRateKey - value to be set
    • of

      factory method
      Returns:
      instance of TaxCategoryRemoveTaxRateAction
    • of

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

      Specified by:
      copyDeep in interface TaxCategoryUpdateAction
    • deepCopy

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

      builder factory method for TaxCategoryRemoveTaxRateAction
      Returns:
      builder
    • builder

      create builder for TaxCategoryRemoveTaxRateAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withTaxCategoryRemoveTaxRateAction

      default <T> T withTaxCategoryRemoveTaxRateAction(Function<TaxCategoryRemoveTaxRateAction,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static tools.jackson.core.type.TypeReference<TaxCategoryRemoveTaxRateAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference