Enum TaxRuleTypeId
- All Implemented Interfaces:
Serializable,Comparable<TaxRuleTypeId>,java.lang.constant.Constable
Specifies the type of custom tax rule you have created.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies a rule that changes the tax base of a specific product.Indicates that a particular product is exempt from tax due to an exempt usage reason.FeeRuleReserved for Avalara internal usage.OtherRuleSpecifies a rule that changes whether a product is taxable or not.RateCapRuleSpecifies a rule that changes the rate of tax for a specified set of criteria.Reserved for Avalara internal usage.TaxOverrideRule -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()static TaxRuleTypeIdvalueOf(int intValue) Returns the enum constant of this type with the specified name.static TaxRuleTypeIdReturns the enum constant of this type with the specified name.static TaxRuleTypeId[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RateRule
Reserved for Avalara internal usage. -
RateOverrideRule
Specifies a rule that changes the rate of tax for a specified set of criteria. This rule can apply to one specific type of product (identified by `TaxCode`) or all products (identified by a null `TaxCode`). -
BaseRule
Specifies a rule that changes the tax base of a specific product. This rule can apply to one specific type of product (identified by `TaxCode`) or all products (identified by a null `TaxCode`). -
ExemptEntityRule
Indicates that a particular product is exempt from tax due to an exempt usage reason. Amounts exempted by this rule are stored in the `exemptAmount` field on the transaction. -
ProductTaxabilityRule
Specifies a rule that changes whether a product is taxable or not. This rule must be applied to a specific type of product. If you attempt to create a product taxability rule while leaving the `TaxCode` and `TaxCodeId` fields empty, you will get an error. A `value` field of `1` means that this tax code is taxable; `0` means it is nontaxable. Amounts that are considered not taxable according to this rule are stored in the `nonTaxableAmount` column in a transaction. This type of rule can also determine the rate type for a product or to apply a cap or threshold. -
NexusRule
Reserved for Avalara internal usage. -
RateCapRule
RateCapRule -
TaxOverrideRule
TaxOverrideRule -
FeeRule
FeeRule -
OtherRule
OtherRule
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
intValue- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()
-