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;
    @Money()
    listPrice: number;
    @Column()
    listPriceIncludesTax: boolean;
    @Column()
    sku: string;
    @Column('simple-json')
    taxLines: TaxLine[];
    @Index()
    @ManyToOne(type => Order, order => order.surcharges, { onDelete: 'CASCADE' })
    order: Order;
    @Index()
    @ManyToOne(type => OrderModification, orderModification => orderModification.surcharges)
    orderModification: OrderModification;
    price: number
    priceWithTax: number
    taxRate: number
}
- Extends: VendureEntity
constructor
method
(input?: DeepPartial<Surcharge>) => Surchargedescription
property
stringlistPrice
property
numberlistPriceIncludesTax
property
booleansku
property
stringtaxLines
property
TaxLine[]order
property
orderModification
property
price
property
numberpriceWithTax
property
numbertaxRate
property
number