OrderLine
OrderLine
A single line on an Order which contains one or more OrderItems.
Signature
class OrderLine extends VendureEntity implements HasCustomFields {
constructor(input?: DeepPartial<OrderLine>)
@ManyToOne(type => ProductVariant)
productVariant: ProductVariant;
@ManyToOne(type => TaxCategory)
taxCategory: TaxCategory;
@ManyToOne(type => Asset)
featuredAsset: Asset;
@OneToMany(type => OrderItem, item => item.line)
items: OrderItem[];
@ManyToOne(type => Order, order => order.lines, { onDelete: 'CASCADE' })
order: Order;
@Column(type => CustomOrderLineFields)
customFields: CustomOrderLineFields;
unitPrice: number
unitPriceWithTax: number
discountedUnitPrice: number
discountedUnitPriceWithTax: number
proratedUnitPrice: number
proratedUnitPriceWithTax: number
quantity: number
adjustments: Adjustment[]
taxLines: TaxLine[]
taxRate: number
linePrice: number
linePriceWithTax: number
discountedLinePrice: number
discountedLinePriceWithTax: number
discounts: Adjustment[]
lineTax: number
proratedLinePrice: number
proratedLinePriceWithTax: number
proratedLineTax: number
activeItems: OrderItem[]
clearAdjustments(type?: AdjustmentType) => ;
}
Extends
Implements
- HasCustomFields
Members
constructor
method
type:
(input?: DeepPartial<OrderLine>) => OrderLine
productVariant
property
type:
ProductVariant
taxCategory
property
type:
TaxCategory
featuredAsset
property
type:
Asset
items
property
type:
OrderItem[]
order
property
type:
Order
customFields
property
type:
CustomOrderLineFields
unitPrice
property
type:
number
unitPriceWithTax
property
type:
number
discountedUnitPrice
property
type:
number
discountedUnitPriceWithTax
property
type:
number
proratedUnitPrice
property
type:
number
proratedUnitPriceWithTax
property
type:
number
quantity
property
type:
number
adjustments
property
type:
Adjustment[]
taxLines
property
type:
TaxLine[]
taxRate
property
type:
number
linePrice
property
type:
number
linePriceWithTax
property
type:
number
discountedLinePrice
property
type:
number
discountedLinePriceWithTax
property
type:
number
discounts
property
type:
Adjustment[]
lineTax
property
type:
number
proratedLinePrice
property
type:
number
proratedLinePriceWithTax
property
type:
number
proratedLineTax
property
type:
number
activeItems
property
type:
OrderItem[]
clearAdjustments
method
type:
(type?: AdjustmentType) =>