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;
  readonly @Column() readonly unitPrice: number;
  @Column() unitPriceIncludesTax: boolean;
  @Column() taxRate: number;
  @Column('simple-json') pendingAdjustments: Adjustment[];
  unitPriceWithTax: number
  adjustments: Adjustment[]
  unitPriceWithPromotionsAndTax: number
  unitTax: number
  promotionAdjustmentsTotal: number
  unitPriceWithPromotions: number
  clearAdjustments(type?: AdjustmentType) => ;
}

Members

constructor

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

line

property
type:
OrderLine

unitPrice

readonly property
type:
number

unitPriceIncludesTax

property
type:
boolean

taxRate

property
type:
number

pendingAdjustments

property
type:
Adjustment[]

unitPriceWithTax

property
type:
number

adjustments

property
type:
Adjustment[]

unitPriceWithPromotionsAndTax

property
type:
number

unitTax

property
type:
number

promotionAdjustmentsTotal

property
type:
number

unitPriceWithPromotions

property
type:
number

clearAdjustments

method
type:
(type?: AdjustmentType) =>