{ "name": "Order", "type": "object", "properties": { "order_number": { "type": "string", "description": "Order Number format ORD-#### (auto-generated)", "pattern": "^ORD-[0-9]{4,6}$" }, "partner_id": { "type": "string", "description": "Partner/Client ID" }, "partner_name": { "type": "string", "description": "Partner/Client name" }, "site_id": { "type": "string", "description": "Site/location ID" }, "site_name": { "type": "string", "description": "Site/location name" }, "site_address": { "type": "string", "description": "Event/site address" }, "sector_id": { "type": "string", "description": "Sector ID" }, "enterprise_id": { "type": "string", "description": "Enterprise ID" }, "order_type": { "type": "string", "enum": [ "Standard", "Last Minute", "Emergency", "Recurring" ], "default": "Standard", "description": "Type of order" }, "cost_center": { "type": "string", "description": "Cost center" }, "po_number": { "type": "string", "description": "Purchase order number" }, "roles_requested": { "type": "array", "description": "Roles and headcount requested", "items": { "type": "object", "properties": { "role": { "type": "string" }, "department": { "type": "string" }, "headcount": { "type": "number" }, "start_date_time": { "type": "string", "format": "date-time" }, "end_date_time": { "type": "string", "format": "date-time" }, "pay_rate": { "type": "number" }, "bill_rate": { "type": "number" }, "uniform_required": { "type": "string" }, "special_requirements": { "type": "string" } } } }, "tags": { "type": "array", "description": "Order tags/labels", "items": { "type": "string" } }, "point_of_contact": { "type": "object", "description": "On-site contact", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "phone": { "type": "string" } } }, "sla_targets": { "type": "object", "description": "Service Level Agreement targets", "properties": { "response_time_hours": { "type": "number" }, "fill_rate_percentage": { "type": "number" }, "on_time_arrival": { "type": "boolean" } } }, "order_status": { "type": "string", "enum": [ "Draft", "Submitted", "Confirmed", "In Progress", "Completed", "Cancelled" ], "default": "Draft", "description": "Order status" }, "submitted_date": { "type": "string", "format": "date-time", "description": "When order was submitted" }, "confirmed_date": { "type": "string", "format": "date-time", "description": "When order was confirmed" }, "special_instructions": { "type": "string", "description": "Special instructions" }, "total_estimated_cost": { "type": "number", "description": "Estimated total cost" } }, "required": [ "order_number", "partner_id", "roles_requested" ] }