type: object
description: |
    A line item belonging to a `BigOrder`. Mirrors `FabricatorSchemas.BigLineItem` —
    one row per Shopify line item, enriched with shipping group + product type for
    fabricator routing.
required: [id, ownerBigscreenAccountId, bigOrderId, shopifyOrderId, shopifyOrderLineItemId, type]
properties:
    id: { type: string }
    createdAt: { type: string, format: date-time }
    ownerBigscreenAccountId: { type: string, description: Customer account that owns the line item. }
    creatorBigscreenAccountId: { type: string, description: Account that created the row. }
    bigOrderId: { type: string }
    shopifyOrderId: { type: string }
    shopifyOrderLineItemId: { type: string }
    shopifyOrderLineItemSnapshot:
        type: object
        additionalProperties: true
        description: Snapshot of the Shopify line-item payload at creation time.
    shopifyProductId:
        type: integer
        format: int64
    shopifySku:
        type: object
        additionalProperties: true
        description: "Parsed Bigscreen SKU descriptor — `FabricatorSchemas.ShopifySku`."
    type:
        description: Product taxonomy.
        $ref: "../../admin-api.yaml#/components/schemas/BigProductType"
    version: { type: string, example: V3 }
    shipmentPackageType:
        type: string
        description: Packaging slot — `FabricatorSchemas.BigShipmentPackageType`.
        example: Default
    shipmentGroupId:
        type: string
        description: Groups items that ship together; empty for un-grouped items.
    metaData:
        type: object
        additionalProperties: true
