/
LineItem.ts
36 lines (35 loc) · 1.28 KB
/
LineItem.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { LineItemProduct } from './LineItemProduct';
import { LineItemVariant } from './LineItemVariant';
import { Address } from './Address';
import { LineItemSpec } from './LineItemSpec';
export interface LineItem<TLineItemXp = any, TProductXp = any, TVariantXp = any, TShippingAddressXp = any, TShipFromAddressXp = any> {
ID?: string
ProductID: string
Quantity?: number
readonly BundleItemID?: string
readonly IsBundle?: boolean
readonly DateAdded?: string
readonly QuantityShipped?: number
UnitPrice?: number
readonly PromotionDiscount?: number
readonly LineTotal?: number
readonly LineSubtotal?: number
CostCenter?: string
DateNeeded?: string
ShippingAccount?: string
ShippingAddressID?: string
ShipFromAddressID?: string
readonly Product?: LineItemProduct<TProductXp>
readonly Variant?: LineItemVariant<TVariantXp>
readonly ShippingAddress?: Address<TShippingAddressXp>
readonly ShipFromAddress?: Address<TShipFromAddressXp>
readonly SupplierID?: string
InventoryRecordID?: string
readonly PriceScheduleID?: string
readonly IsOnSale?: boolean
readonly PriceOverridden?: boolean
Specs?: LineItemSpec[]
readonly IncomingOrderID?: string
readonly OutgoingOrderID?: string
xp?: TLineItemXp
}