import { SpeakeasyBase } from "../../../internal/utils"; import { Metadata } from "./metadata"; import { SupplementalData } from "./supplementaldata"; import { TaxRateComponent } from "./taxratecomponent"; import { TaxRateStatus } from "./taxratestatus"; import { ValidDataTypeLinks } from "./validdatatypelinks"; /** * > View the coverage for tax rates in the Data coverage explorer. * * @remarks * * ## Overview * * Accounting systems typically store a set of taxes and associated rates within the accounting package. This means that users don't have to look up or remember the rates for each type of tax. For example, applying the tax "UK sales VAT" to line items of an invoice adds the correct rate of 20%. * * ### Tax components * * In some cases, a tax is made up of multiple sub taxes, often called _components_ of the tax. For example, you may have an item that is charged a tax rate called "City import tax (8%)" that has two components: * * - A city tax of 5% * - An import tax of 3% * * > **Effective tax rates** * > - Where there are multiple components of a tax, each component may be calculated on the original amount and added together. Alternatively, one tax may be calculated on the sub-total of the original amount plus another tax, which is referred to as _compounding_. When there is compounding, the effective tax rate is the rate that, if applied to the original amount, would result in the total amount of tax with compounding. * > * > **Example:** * > A tax has two components. Both components have a rate of 10%, and one component is compound. In this case, there is a total tax rate of 20% but an effective tax rate of 21%. * > * > - For QuickBooks Online, Codat doesn't use compound rates. Instead, the calculated effective tax rate for each component is shown. This means that the effective and total rates are the same because the total tax rate is a sum of the component rates. */ export declare class TaxRate extends SpeakeasyBase { /** * Code for the tax rate from the accounting platform. */ code?: string; components?: TaxRateComponent[]; /** * See Effective tax rates description. */ effectiveTaxRate?: number; /** * Identifier for the tax rate, unique for the company in the accounting platform. */ id?: string; metadata?: Metadata; modifiedDate?: string; /** * Codat-augmented name of the tax rate in the accounting platform. */ name?: string; sourceModifiedDate?: string; /** * Status of the tax rate in the accounting platform. * * @remarks * - `Active` - An active tax rate in use by a company. * - `Archived` - A tax rate that has been archived or is inactive in the accounting platform. * - `Unknown` - Where the status of the tax rate cannot be determined from the underlying platform. */ status?: TaxRateStatus; /** * Supplemental data is additional data you can include in our standard data types. * * @remarks * * It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. */ supplementalData?: SupplementalData; /** * Total (not compounded) sum of the components of a tax rate. */ totalTaxRate?: number; validDatatypeLinks?: ValidDataTypeLinks[]; }