{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Order",
  "title": "Order",
  "type": "object",
  "properties": {
    "orderId": {
      "type": "string"
    },
    "accountNumber": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "Pending",
        "Confirmed",
        "Processing",
        "Shipped",
        "Delivered",
        "Cancelled"
      ]
    },
    "orderDate": {
      "type": "string",
      "format": "date-time"
    },
    "expectedDeliveryDate": {
      "type": "string",
      "format": "date"
    },
    "deliveryAddress": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "street": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "postalCode": {
          "type": "string"
        },
        "country": {
          "type": "string"
        }
      }
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/OrderItem"
      }
    },
    "totalAmount": {
      "type": "number",
      "format": "float"
    },
    "currency": {
      "type": "string"
    },
    "tracking": {
      "type": "object"
    }
  }
}