Skip to main content

Class: LineItem

internal.LineItem

Base abstract entity for all entities

Hierarchy

Properties

adjustments

adjustments: LineItemAdjustment[]

Defined in

medusa/dist/models/line-item.d.ts:20


allow_discounts

allow_discounts: boolean

Defined in

medusa/dist/models/line-item.d.ts:30


beforeInsert

Private beforeInsert: any

Defined in

medusa/dist/models/line-item.d.ts:49


cart

cart: Cart

Defined in

medusa/dist/models/line-item.d.ts:12


cart_id

cart_id: string

Defined in

medusa/dist/models/line-item.d.ts:11


claim_order

claim_order: ClaimOrder

Defined in

medusa/dist/models/line-item.d.ts:18


claim_order_id

claim_order_id: string

Defined in

medusa/dist/models/line-item.d.ts:17


created_at

created_at: Date

Inherited from

BaseEntity.created_at

Defined in

medusa/dist/interfaces/models/base-entity.d.ts:6


description

description: string

Defined in

medusa/dist/models/line-item.d.ts:25


discount_total

Optional discount_total: null | number

Defined in

medusa/dist/models/line-item.d.ts:47


fulfilled_quantity

fulfilled_quantity: number

Defined in

medusa/dist/models/line-item.d.ts:36


gift_card_total

Optional gift_card_total: null | number

Defined in

medusa/dist/models/line-item.d.ts:48


has_shipping

has_shipping: boolean

Defined in

medusa/dist/models/line-item.d.ts:31


id

id: string

Inherited from

BaseEntity.id

Defined in

medusa/dist/interfaces/models/base-entity.d.ts:5


includes_tax

includes_tax: boolean

Defined in

medusa/dist/models/line-item.d.ts:40


is_giftcard

is_giftcard: boolean

Defined in

medusa/dist/models/line-item.d.ts:28


is_return

is_return: boolean

Defined in

medusa/dist/models/line-item.d.ts:27


metadata

metadata: Record<string, unknown>

Defined in

medusa/dist/models/line-item.d.ts:39


order

order: Order

Defined in

medusa/dist/models/line-item.d.ts:14


order_edit

Optional order_edit: null | OrderEdit

Defined in

medusa/dist/models/line-item.d.ts:23


order_edit_id

Optional order_edit_id: null | string

Defined in

medusa/dist/models/line-item.d.ts:22


order_id

order_id: null | string

Defined in

medusa/dist/models/line-item.d.ts:13


original_item_id

Optional original_item_id: null | string

Defined in

medusa/dist/models/line-item.d.ts:21


original_tax_total

Optional original_tax_total: null | number

Defined in

medusa/dist/models/line-item.d.ts:46


original_total

Optional original_total: null | number

Defined in

medusa/dist/models/line-item.d.ts:45


quantity

quantity: number

Defined in

medusa/dist/models/line-item.d.ts:35


refundable

Optional refundable: null | number

Defined in

medusa/dist/models/line-item.d.ts:41


returned_quantity

returned_quantity: number

Defined in

medusa/dist/models/line-item.d.ts:37


shipped_quantity

shipped_quantity: number

Defined in

medusa/dist/models/line-item.d.ts:38


should_merge

should_merge: boolean

Defined in

medusa/dist/models/line-item.d.ts:29


subtotal

Optional subtotal: null | number

Defined in

medusa/dist/models/line-item.d.ts:42


swap

swap: Swap

Defined in

medusa/dist/models/line-item.d.ts:16


swap_id

swap_id: string

Defined in

medusa/dist/models/line-item.d.ts:15


tax_lines

tax_lines: LineItemTaxLine[]

Defined in

medusa/dist/models/line-item.d.ts:19


tax_total

Optional tax_total: null | number

Defined in

medusa/dist/models/line-item.d.ts:43


thumbnail

thumbnail: null | string

Defined in

medusa/dist/models/line-item.d.ts:26


title

title: string

Defined in

medusa/dist/models/line-item.d.ts:24


total

Optional total: null | number

Defined in

medusa/dist/models/line-item.d.ts:44


unit_price

unit_price: number

Defined in

medusa/dist/models/line-item.d.ts:32


updated_at

updated_at: Date

Inherited from

BaseEntity.updated_at

Defined in

medusa/dist/interfaces/models/base-entity.d.ts:7


variant

variant: ProductVariant

Defined in

medusa/dist/models/line-item.d.ts:34


variant_id

variant_id: string

Defined in

medusa/dist/models/line-item.d.ts:33