TaxRate
A Tax Rate can be used to define a custom rate to charge on specified products, product types, and shipping options within a given region.
Constructors
constructor
**new TaxRate**()
A Tax Rate can be used to define a custom rate to charge on specified products, product types, and shipping options within a given region.
Properties
codenull | stringRequiredA code to identify the tax type by
created_atDateRequiredThe date with timezone at which the resource was created.
idstringRequiredThe tax rate's ID
metadataRecord<string, unknown>RequiredAn optional key-value map with additional details
namestringRequiredA human friendly name for the tax
product_countnumberThe count of products
product_type_countnumberThe count of product types
The details of the product types that belong to this tax rate.
The details of the products that belong to this tax rate.
ratenull | numberRequiredThe numeric rate to charge
The details of the region that the rate belongs to.
region_idstringRequiredThe ID of the region that the rate belongs to.
shipping_option_countnumberThe count of shipping options
The details of the shipping options that belong to this tax rate.
updated_atDateRequiredThe date with timezone at which the resource was updated.
Methods
beforeInsert
Private **beforeInsert**(): void
Returns
void
voidvoidWas this section helpful?