{ "type": "object", "required": ["id", "status", "items", "total"], "properties": { "id": { "type": "string", "pattern": "^ORD-[0-9]{8}$" }, "status": { "type": "string", "enum": ["pending", "processing", "shipped", "delivered", "cancelled"] }, "items": { "type": "array", "items": { "$ref": "./order-item-schema.json" } }, "total": { "$ref": "./price-schema.json" }, "shippingAddress": { "$ref": "./address-schema.json" }, "billingAddress": { "$ref": "./address-schema.json" }, "paymentMethod": { "$ref": "./payment-method-schema.json" }, "trackingNumber": { "type": "string", "pattern": "^[A-Z0-9]{10,20}$" }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" } } }