Skip to main content
Skip to main content

LineItem

admin/collections.internal.LineItem

Base abstract entity for all entities

Properties

adjustmentsLineItemAdjustment[]Required
allow_discountsbooleanRequired
beforeInsertanyRequired
cartCartRequired
cart_idstringRequired
claim_orderClaimOrderRequired
claim_order_idstringRequired
created_atDateRequired
descriptionnull | stringRequired
discount_totalnull | number
fulfilled_quantitynull | numberRequired
gift_card_totalnull | number
has_shippingnull | booleanRequired
idstringRequired
includes_taxbooleanRequired
is_giftcardbooleanRequired
is_returnbooleanRequired
metadataRecord<string, unknown>Required
orderOrderRequired
order_editnull | OrderEdit
order_edit_idnull | string
order_idnull | stringRequired
original_item_idnull | string
original_tax_totalnull | number
original_totalnull | number
product_idnull | stringRequired
quantitynumberRequired
raw_discount_totalnull | number
refundablenull | number
returned_quantitynull | numberRequired
shipped_quantitynull | numberRequired
should_mergebooleanRequired
subtotalnull | number
swapSwapRequired
swap_idstringRequired
tax_linesLineItemTaxLine[]Required
tax_totalnull | number
thumbnailnull | stringRequired
titlestringRequired
totalnull | number
unit_pricenumberRequired
updated_atDateRequired
variantProductVariantRequired
variant_idnull | stringRequired

Methods

afterUpdateOrLoad

afterUpdateOrLoad(): void

Returns

void

voidvoid

beforeUpdate

beforeUpdate(): void

Returns

void

voidvoid
Was this section helpful?