class TaxRate extends VendureEntity implements HasCustomFields { constructor(input?: DeepPartial<TaxRate>) @Column() name: string; @Column() enabled: boolean; @Column({ type: 'decimal', precision: 5, scale: 2, transformer: new DecimalTransformer() }) value: number; @Index() @ManyToOne(type => TaxCategory, taxCategory => taxCategory.taxRates) category: TaxCategory; @EntityId({ nullable: true }) categoryId: ID; @Index() @ManyToOne(type => Zone, zone => zone.taxRates) zone: Zone; @EntityId({ nullable: true }) zoneId: ID; @Index() @ManyToOne(type => CustomerGroup, customerGroup => customerGroup.taxRates, { nullable: true }) customerGroup?: CustomerGroup; @Column(type => CustomTaxRateFields) customFields: CustomTaxRateFields; taxComponentOf(grossPrice: number) => number; netPriceOf(grossPrice: number) => number; taxPayableOn(netPrice: number) => number; grossPriceOf(netPrice: number) => number; apply(price: number) => TaxLine; test(zone: Zone | ID, taxCategory: TaxCategory | ID) => boolean;}