{
    "success": true,
    "api_version": "JOY-PRINT-AGENT-PAYLOAD-1",
    "preview_version": "JOY-PRINT-PREVIEW-V2-R5.33.7-REPORT-PRINT-T1",
    "generated_at": "2026-12-04T13:06:20+08:00",
    "settings_version": "6ae41b10f9e5e044ffcca65654abec1dd4bbd0ae9c2a79d5da39627a3f450085",
    "effective_settings_version": "b0abd3369e95ad01318cc3c0a354b5491e5f371f10670aff7c7614bcd3218080",
    "settings_updated_at": "2026-12-04T10:38:41+08:00",
    "settings_source": "print_settings_data_v2.json",
    "settings_fallback": false,
    "settings_warning": "",
    "agent_channel": "compatible",
    "intent_validation": "compatible_fallback",
    "settings_contract": {
        "contract_version": "P76-R6.1-CLOUD-PARAMS-2-WHITE-CONTRACT",
        "agent_version": "V0.2.7-P7.6-R6-FIX5CH",
        "renderer": "Windows GDI → 1-bit raster → RAW ESC/POS",
        "dpi": 203,
        "geometry": {
            "paper_width_mm": 80,
            "content_width_mm": 72,
            "margin_left_mm": 4,
            "content_width_dots": 576,
            "margin_left_dots": 32,
            "price_column_mm": 34,
            "price_column_dots": 272,
            "no_price_right_column_mm": 0
        },
        "translated_keys": [
            "font_choice",
            "font_family",
            "packing_title_font_px",
            "receipt_title_font_px",
            "bag_title_font_px",
            "pickup_number_title_font_px",
            "pickup_number_number_font_px",
            "pickup_number_content_font_px",
            "packing_item_font_px",
            "packing_item_note_font_px",
            "receipt_item_font_px",
            "receipt_item_note_font_px",
            "pickup_number_item_font_px",
            "pickup_number_item_note_font_px",
            "service_label_gap_before_mm",
            "item_row_gap_mm",
            "white_item_separator_style",
            "white_item_list_end_separator_style",
            "white_bag_separator_style",
            "white_section_separator_style",
            "white_header_info_mode"
        ],
        "ignored_keys": [
            "_v2_alert_label_fallback",
            "_v2_alert_label_source",
            "_v2_bag_label_fallback",
            "_v2_bag_label_source",
            "_v2_mode_label_fallback",
            "_v2_mode_label_source",
            "alert_label_style",
            "bag_label_style",
            "mode_label_style",
            "print_background_graphics"
        ]
    },
    "settings": {
        "_v2_alert_label_fallback": "0",
        "_v2_alert_label_source": "text_box",
        "_v2_bag_label_fallback": "0",
        "_v2_bag_label_source": "text_box",
        "_v2_mode_label_fallback": "0",
        "_v2_mode_label_source": "outline",
        "alert_font_px": "20",
        "alert_label_style": "frame",
        "bag_label_style": "frame",
        "content_width_mm": "72",
        "created_time_font_px": "20",
        "customer_info_font_px": "20",
        "font_choice": "Microsoft JhengHei",
        "font_custom": "",
        "font_family": "Microsoft JhengHei",
        "label_style_mode": "web_frame",
        "large_order_threshold": "30",
        "margin_left_mm": "4",
        "mode_badge_font_px": "22",
        "mode_label_style": "frame",
        "order_note_font_px": "20",
        "paper_width_mm": "80",
        "print_background_graphics": "0",
        "production_item_count_font_px": "20",
        "production_item_font_px": "26",
        "production_item_name_qty_order": "qty_name",
        "production_item_note_font_px": "20",
        "production_show_address": "0",
        "production_show_created_time": "0",
        "production_show_customer": "1",
        "production_show_field_label": "1",
        "production_show_item_count": "1",
        "production_show_item_separator": "1",
        "production_show_note": "1",
        "production_show_phone": "1",
        "production_title": "電話自取工作單",
        "production_title_font_px": "24",
        "packing_title_font_px": "18",
        "receipt_title_font_px": "18",
        "bag_title_font_px": "18",
        "pickup_number_title_font_px": "22",
        "pickup_number_number_font_px": "64",
        "pickup_number_content_font_px": "15",
        "packing_item_font_px": "24",
        "packing_item_note_font_px": "15",
        "receipt_item_font_px": "20",
        "receipt_item_note_font_px": "14",
        "pickup_number_item_font_px": "16",
        "pickup_number_item_note_font_px": "12",
        "service_label_gap_before_mm": "0.5",
        "item_row_gap_mm": "0",
        "white_item_separator_style": "fine_dashed",
        "white_item_list_end_separator_style": "thick_solid",
        "white_bag_separator_style": "thick_solid",
        "white_section_separator_style": "fine_dashed",
        "white_header_info_mode": "inline_label_value"
    },
    "order": {
        "id": 197,
        "order_no": "OC261031104117293",
        "customer": "",
        "phone": "245",
        "is_delivery": false,
        "source_key": "phone_pickup",
        "source_title": "電話自取",
        "pickup_date": "2026-10-31",
        "pickup_time": "11:30",
        "bag_count": 2,
        "item_count": 20,
        "total_amount": 2120
    },
    "documents": [
        {
            "document_style": "production_work",
            "title": "電話自取工作單",
            "subtitle": "",
            "scope": "production",
            "bags": [
                {
                    "no": 1,
                    "name": "第一袋",
                    "item_count": 14,
                    "items": [
                        {
                            "id": 1587,
                            "name": "油雞飯",
                            "quantity": 10,
                            "display": "10 x 油雞飯",
                            "note": "",
                            "unit_price": 100,
                            "subtotal": 1000,
                            "bag_no": 1,
                            "bag_name": "第一袋"
                        },
                        {
                            "id": 1588,
                            "name": "三寶飯",
                            "quantity": 4,
                            "display": "4 x 三寶飯",
                            "note": "",
                            "unit_price": 115,
                            "subtotal": 460,
                            "bag_no": 1,
                            "bag_name": "第一袋"
                        }
                    ]
                },
                {
                    "no": 2,
                    "name": "第二袋",
                    "item_count": 6,
                    "items": [
                        {
                            "id": 1589,
                            "name": "脆雞飯",
                            "quantity": 1,
                            "display": "1 x 脆雞飯",
                            "note": "",
                            "unit_price": 105,
                            "subtotal": 105,
                            "bag_no": 2,
                            "bag_name": "第二袋"
                        },
                        {
                            "id": 1590,
                            "name": "三寶飯",
                            "quantity": 1,
                            "display": "1 x 三寶飯",
                            "note": "",
                            "unit_price": 115,
                            "subtotal": 115,
                            "bag_no": 2,
                            "bag_name": "第二袋"
                        },
                        {
                            "id": 1591,
                            "name": "大油雞腿飯",
                            "quantity": 2,
                            "display": "2 x 大油雞腿飯",
                            "note": "",
                            "unit_price": 120,
                            "subtotal": 240,
                            "bag_no": 2,
                            "bag_name": "第二袋"
                        },
                        {
                            "id": 1592,
                            "name": "油雞飯",
                            "quantity": 2,
                            "display": "2 x 油雞飯",
                            "note": "",
                            "unit_price": 100,
                            "subtotal": 200,
                            "bag_no": 2,
                            "bag_name": "第二袋"
                        }
                    ]
                }
            ],
            "order_no": "OC261031104117293",
            "source_title": "電話自取",
            "source_time_label": "取餐",
            "pickup_date": "2026-10-31",
            "pickup_time": "11:30",
            "created_at": "2026-10-31 10:41:17",
            "print_time": "2026-12-04 13:06",
            "customer": "",
            "masked_customer": "",
            "phone": "245",
            "address": "",
            "order_note": "",
            "is_delivery": false,
            "is_queue": false,
            "queue_number": "",
            "pickup_code": "245",
            "display_code": "245",
            "item_count": 20,
            "bag_count": 2,
            "total_amount": 2120,
            "payment_display": "",
            "alert_text": "",
            "v2_document_id": "production_work_phone_pickup",
            "cloud_template_url": "https://www.order.joysiumei.com/print_preview_v2.php?order_id=197&agent_render=1&agent_template_contract=1&_joy_agent=1796360780855&document_style=production_work&document_id=production_work_phone_pickup"
        }
    ],
    "v2_bridge": {
        "version": "JOY-PRINT-AGENT-BRIDGE-V2-R5.33.1-GENERAL-DOC-T1",
        "mapping_diagnostics": {
            "translator_version": "JOY-PRINT-AGENT-BRIDGE-V2-R5.33.1-GENERAL-DOC-T1",
            "mapped_keys": [
                "paper_width_mm",
                "content_width_mm",
                "margin_left_mm",
                "font_family",
                "font_choice",
                "bag_label_style",
                "mode_label_style",
                "alert_label_style",
                "print_background_graphics",
                "mode_badge_font_px",
                "alert_font_px"
            ],
            "fallback_keys": [],
            "unsupported_keys": [
                "dynamic_price_column_mm",
                "line_gap_before_mm",
                "line_gap_after_mm",
                "badge_padding_mm",
                "badge_border_width_mm",
                "font_quality",
                "gdi_antialias_mode"
            ],
            "resolved_documents": [
                "production_work"
            ],
            "legacy_contract": "JOY-PRINT-AGENT-PAYLOAD-1",
            "formal_profile_reference": "728樣式_20260728",
            "effective_label_contract": {
                "bag_label_style": "frame",
                "mode_label_style": "frame",
                "alert_label_style": "frame",
                "label_style_mode": "web_frame",
                "print_background_graphics": "0"
            },
            "v2_label_sources": {
                "bag": "text_box",
                "mode": "outline",
                "alert": "text_box"
            }
        },
        "print_model_version": "JOY-PRINT-MODEL-V2-R5.14.1",
        "renderer_version": "JOY-PRINT-RENDERER-V2-R5.18.9-REPORT-AMOUNTS-T1",
        "settings_schema": "5.5",
        "requested_document_style": "all",
        "resolved_document_ids": {
            "production_work": "production_work_phone_pickup"
        },
        "warnings": []
    }
}