Skip to main content

TaxCategory

TaxCategory

A TaxCategory defines what type of taxes to apply to a ProductVariant.

Signature
class TaxCategory extends VendureEntity implements HasCustomFields {
constructor(input?: DeepPartial<TaxCategory>)
@Column() name: string;
@Column({ default: false }) isDefault: boolean;
@Column(type => CustomTaxCategoryFields)
customFields: CustomTaxCategoryFields;
@OneToMany(type => ProductVariant, productVariant => productVariant.taxCategory)
productVariants: ProductVariant[];
@OneToMany(type => TaxRate, taxRate => taxRate.category)
taxRates: TaxRate[];
}

constructor

method
(input?: DeepPartial<TaxCategory>) => TaxCategory

name

property
string

isDefault

property
boolean

customFields

property
CustomTaxCategoryFields

productVariants

property

taxRates

property