TaxRate
A TaxRate defines the rate of tax to apply to a ProductVariant based on three factors:
- the ProductVariant's TaxCategory
- the applicable Zone ("applicable" being defined by the configured TaxZoneStrategy)
- the CustomerGroup of the current Customer
-
Extends:
VendureEntity -
Implements: HasCustomFields
constructor
method
(input?: DeepPartial<TaxRate>) => TaxRatename
property
stringenabled
property
booleanvalue
property
numbercategory
property
TaxCategorycategoryId
property
IDzone
property
ZonezoneId
property
IDcustomerGroup
property
CustomerGroupcustomFields
property
CustomTaxRateFieldstaxComponentOf
method
(grossPrice: number) => numbernetPriceOf
method
(grossPrice: number) => numbertaxPayableOn
method
(netPrice: number) => numbergrossPriceOf
method
(netPrice: number) => numberapply
method
(price: number) => TaxLinetest
method
(zone: Zone | ID, taxCategory: TaxCategory | ID) => booleanWas this chapter helpful?