{
    "success": true,
    "api_version": "JOY-PRINT-AGENT-PAYLOAD-1",
    "preview_version": "JOY-PRINT-PREVIEW-V2-R5.33.9-LINE-CLOUD-T1",
    "generated_at": "2026-12-04T15:51:57+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": 225,
        "order_no": "OC261116195438154",
        "customer": "鴨腿阿伯",
        "phone": "",
        "is_delivery": false,
        "source_key": "phone_pickup",
        "source_title": "電話自取",
        "pickup_date": "2026-11-17",
        "pickup_time": "17:00",
        "bag_count": 1,
        "item_count": 1,
        "total_amount": 85
    },
    "documents": [
        {
            "document_style": "production_work",
            "title": "電話自取工作單",
            "subtitle": "",
            "scope": "production",
            "bags": [
                {
                    "no": 1,
                    "name": "本次訂單",
                    "item_count": 1,
                    "items": [
                        {
                            "id": 1785,
                            "name": "鴨腿單點",
                            "quantity": 1,
                            "display": "1 x 鴨腿單點",
                            "note": "",
                            "unit_price": 85,
                            "subtotal": 85,
                            "bag_no": 1,
                            "bag_name": "本次訂單"
                        }
                    ]
                }
            ],
            "order_no": "OC261116195438154",
            "source_title": "電話自取",
            "source_time_label": "取餐",
            "pickup_date": "2026-11-17",
            "pickup_time": "17:00",
            "created_at": "2026-11-16 19:54:38",
            "print_time": "2026-12-04 15:51",
            "customer": "鴨腿阿伯",
            "masked_customer": "鴨*伯",
            "phone": "",
            "address": "",
            "order_note": "本人預訂",
            "is_delivery": false,
            "is_queue": false,
            "queue_number": "",
            "pickup_code": "",
            "display_code": "",
            "item_count": 1,
            "bag_count": 1,
            "total_amount": 85,
            "payment_display": "",
            "alert_text": "",
            "v2_document_id": "production_work_phone_pickup",
            "cloud_template_url": "https://order.joysiumei.com/print_preview_v2_ts.php?order_id=225&agent_render=1&agent_template_contract=1&_joy_agent=1796370717869&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": []
    }
}