Surcharge
Surcharge
A Surcharge represents an arbitrary extra item on an Order which is not a ProductVariant. It can be used to e.g. represent payment-related surcharges.
Signature
class Surcharge extends VendureEntity {
constructor(input?: DeepPartial<Surcharge>)
@Column()
description: string;
@Column()
listPrice: number;
@Column()
listPriceIncludesTax: boolean;
@Column()
sku: string;
@Column('simple-json')
taxLines: TaxLine[];
@ManyToOne(type => Order, order => order.surcharges, { onDelete: 'CASCADE' })
order: Order;
@ManyToOne(type => OrderModification, orderModification => orderModification.surcharges)
orderModification: OrderModification;
price: number
priceWithTax: number
taxRate: number
}
Extends
Members
constructor
(input?: DeepPartial<Surcharge>) => Surcharge
description
string
listPrice
number
listPriceIncludesTax
boolean
sku
string
taxLines
TaxLine[]
order
Order
orderModification
OrderModification
price
number
priceWithTax
number
taxRate
number