Enum DocumentType
- All Implemented Interfaces:
Serializable,Comparable<DocumentType>,java.lang.constant.Constable
Represents the different types of transactions that AvaTax can process.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNot a real document type.Represents a VAT "Customs Invoice".Represents a VAT "Customs Order".Represents a movement of inventory from one jurisdiction to another that has been finalized.Represents a proposed movement of inventory from one jurisdiction to another.Represents a proposed movement of inventory from one jurisdiction to another.Represents a proposed movement of inventory from one jurisdiction to another.Represents a sale that has been finalized.Represents an estimate, or a purchase order, or a quote.Represents an refund that has been finalized.Represents an estimate of tax to be refunded if a refund or return is processed.Represents a VAT "Reverse Charge" mechanism transaction as defined in the European Union.Represents a VAT "Reverse Charge" mechanism transaction as defined in the European Union.Represents a sale that has been finalized.Represents an estimate, or a sales order, or a quote. -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()static DocumentTypevalueOf(int intValue) Returns the enum constant of this type with the specified name.static DocumentTypeReturns the enum constant of this type with the specified name.static DocumentType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SalesOrder
Represents an estimate, or a sales order, or a quote. This document type is used before a sale has occurred to estimate the final amount of tax to be paid when the sale is completed. For a sales order, the `companyCode` of the transaction refers to the seller and the `customerVendorCode` refers to the buyer. This is a temporary document type and is not saved in tax history. -
SalesInvoice
Represents a sale that has been finalized. This document type is used to record a final transaction and calculate the final tax amount with all necessary information. For a sales invoice, the `companyCode` of the transaction refers to the seller and the `customerVendorCode` refers to the buyer. This is a permanent document and is recorded in AvaTax. -
PurchaseOrder
Represents an estimate, or a purchase order, or a quote. This document type is used before a sale has occurred to estimate the final amount of tax to be paid when the sale is completed. For a purchase order, the `companyCode` of the transaction refers to the buyer and the `customerVendorCode` refers to the seller. This is a temporary document type and is not saved in tax history. -
PurchaseInvoice
Represents a sale that has been finalized. This document type is used to record a final transaction and calculate the final tax amount with all necessary information. For a purchase invoice, the `companyCode` of the transaction refers to the buyer and the `customerVendorCode` refers to the seller. This is a permanent document and is recorded in AvaTax. -
ReturnOrder
Represents an estimate of tax to be refunded if a refund or return is processed. This document type is used before a customer chooses to request a refund for a previous sale, and it estimates the final amount of tax to be refunded when the refund is completed. For a return order, the `companyCode` of the transaction refers to the seller who is giving the refund and the `customerVendorCode` refers to the buyer who is requesting the refund. This is a temporary document type and is not saved in tax history. -
ReturnInvoice
Represents an refund that has been finalized. This document type is used when a customer chooses to request a refund for a previous sale, and it records the final amount of tax that has been refunded when the refund is completed. For a return invoice, the `companyCode` of the transaction refers to the seller who is giving the refund and the `customerVendorCode` refers to the buyer who is requesting the refund. This is a permanent document and is recorded in AvaTax. Please note that many jurisdictions around the United States have special rules about how to report refunds on a sales tax filing, and some refund transactions may be unable to file immediately due to credit netting rules. -
InventoryTransferOrder
Represents a proposed movement of inventory from one jurisdiction to another. This document type is used when physical goods are shipped from one jurisdiction to another, and it may cause updates in the tax liability for various jurisdictions. For an inventory transfer invoice, the `companyCode` of the transaction refers to the owner of the inventory that will be moved from one location to another. This is a temporary document type and is not saved in tax history. -
InventoryTransferInvoice
Represents a movement of inventory from one jurisdiction to another that has been finalized. This document type is used when physical goods are shipped from one jurisdiction to another, and it may cause updates in the tax liability for various jurisdictions. For an inventory transfer invoice, the `companyCode` of the transaction refers to the owner of the inventory that will be moved from one location to another. This is a permanent document and is recorded in AvaTax. -
ReverseChargeOrder
Represents a VAT "Reverse Charge" mechanism transaction as defined in the European Union. A Reverse Charge transaction moves the responsibility for VAT reporting from the seller to the buyer, and is intended to allow simplification of commerce and reduce the reporting requirements for sellers that deliver goods and services into the single market. This is a temporary document type and is not saved in tax history. -
ReverseChargeInvoice
Represents a VAT "Reverse Charge" mechanism transaction as defined in the European Union. A Reverse Charge transaction moves the responsibility for VAT reporting from the seller to the buyer, and is intended to allow simplification of commerce and reduce the reporting requirements for sellers that deliver goods and services into the single market. This is a permanent document and is recorded in AvaTax. -
CustomsInvoice
Represents a VAT "Customs Invoice". The user will enter this DocType with a TaxOverride when the VAT and ImportDuty are calculated by Customs at the border, and then these documents are entered later into AvaTax in order to create the balancing entries for VAT and Import Duty. This is a permanent document and is recorded in AvaTax. -
CustomsOrder
Represents a VAT "Customs Order". The user will enter this DocType with a TaxOverride when the VAT and ImportDuty are calculated by Customs at the border, and then these documents are entered later into AvaTax in order to create the balancing entries for VAT and Import Duty. This is a temporary document type and is not saved in tax history. -
InventoryTransferOutboundInvoice
Represents a proposed movement of inventory from one jurisdiction to another. This document type is used when physical goods are shipped from one jurisdiction to another, and it may cause updates in the tax liability for various jurisdictions. For an inventory transfer invoice, the `companyCode` of the transaction refers to the owner of the inventory that will be moved from one location to another. This is a permanent document and is recorded in AvaTax. -
InventoryTransferOutboundOrder
Represents a proposed movement of inventory from one jurisdiction to another. This document type is used when physical goods are shipped from one jurisdiction to another, and it may cause updates in the tax liability for various jurisdictions. For an inventory transfer invoice, the `companyCode` of the transaction refers to the owner of the inventory that will be moved from one location to another. This is a temporary document type and is not saved in tax history. -
Any
Not a real document type. This value is used when querying for documents. You can specify the type `Any` in some cases to permit the system to find any document matching other criteria.
-
-
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()
-