OrderItem

OrderItem

An individual item of an OrderLine.

Signature

class OrderItem extends VendureEntity {
  constructor(input: DeepPartial<OrderItem>)
  @ManyToOne(type => OrderLine, line => line.items, { onDelete: 'CASCADE' })
    line: OrderLine;
  @Column() readonly unitPrice: number;
  @Column() unitPriceIncludesTax: boolean;
  @Column() taxRate: number;
  @Column('simple-json') pendingAdjustments: Adjustment[];
  clearAdjustments(type: AdjustmentType) => ;
}

Members

constructor

method
type:
(input: DeepPartial<OrderItem>) => OrderItem

line

property
type:
OrderLine

unitPrice

property
type:
number

unitPriceIncludesTax

property
type:
boolean

taxRate

property
type:
number

pendingAdjustments

property
type:
Adjustment[]

clearAdjustments

method
type:
(type: AdjustmentType) =>
alpha