Class: LineItem
Hierarchy
BaseEntity
↳
LineItem
Constructors
constructor
• new LineItem()
Inherited from
BaseEntity.constructor
Properties
adjustments
• adjustments: LineItemAdjustment
[]
Defined in
allow_discounts
• allow_discounts: boolean
Defined in
cart
• cart: Cart
Defined in
cart_id
• cart_id: string
Defined in
claim_order
• claim_order: ClaimOrder
Defined in
claim_order_id
• claim_order_id: string
Defined in
created_at
• created_at: Date
Inherited from
BaseEntity.created_at
Defined in
interfaces/models/base-entity.ts:16
description
• description: string
Defined in
discount_total
• Optional
discount_total: null
| number
Defined in
fulfilled_quantity
• fulfilled_quantity: number
Defined in
gift_card_total
• Optional
gift_card_total: null
| number
Defined in
has_shipping
• has_shipping: boolean
Defined in
id
• id: string
Inherited from
BaseEntity.id
Defined in
interfaces/models/base-entity.ts:13
includes_tax
• includes_tax: boolean
Defined in
is_giftcard
• is_giftcard: boolean
Defined in
is_return
• is_return: boolean
Defined in
metadata
• metadata: Record
<string
, unknown
>
Defined in
order
• order: Order
Defined in
order_edit
• Optional
order_edit: null
| OrderEdit
Defined in
order_edit_id
• Optional
order_edit_id: null
| string
Defined in
order_id
• order_id: null
| string
Defined in
original_item_id
• Optional
original_item_id: null
| string
Defined in
original_tax_total
• Optional
original_tax_total: null
| number
Defined in
original_total
• Optional
original_total: null
| number
Defined in
quantity
• quantity: number
Defined in
refundable
• Optional
refundable: null
| number
Defined in
returned_quantity
• returned_quantity: number
Defined in
shipped_quantity
• shipped_quantity: number
Defined in
should_merge
• should_merge: boolean
Defined in
subtotal
• Optional
subtotal: null
| number
Defined in
swap
• swap: Swap
Defined in
swap_id
• swap_id: string
Defined in
tax_lines
• tax_lines: LineItemTaxLine
[]
Defined in
tax_total
• Optional
tax_total: null
| number
Defined in
thumbnail
• thumbnail: null
| string
Defined in
title
• title: string
Defined in
total
• Optional
total: null
| number
Defined in
unit_price
• unit_price: number
Defined in
updated_at
• updated_at: Date
Inherited from
BaseEntity.updated_at
Defined in
interfaces/models/base-entity.ts:19
variant
• variant: ProductVariant
Defined in
variant_id
• variant_id: string
Defined in
Methods
beforeInsert
▸ Private
beforeInsert(): void
Returns
void