{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dumpstercontrols-io/json-schema/dumpstercontrols-io-order-schema.json",
  "title": "Order",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dumpstercontrols-io-openapi.json#/components/schemas/Order",
  "type": "object",
  "properties": {
    "order_number": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "placed",
        "confirmed",
        "scheduled",
        "out_for_delivery",
        "delivered",
        "waiting_pickup",
        "picked_up",
        "completed",
        "canceled",
        "waiting_delivery",
        "waiting_landfill"
      ]
    },
    "payment_status": {
      "type": [
        "string",
        "null"
      ]
    },
    "delivery_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "pickup_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "rental_days": {
      "type": [
        "integer",
        "null"
      ]
    },
    "address": {
      "type": "object",
      "properties": {
        "line1": {
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "type": [
            "string",
            "null"
          ]
        },
        "zip": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "size": {
      "type": [
        "string",
        "null"
      ]
    },
    "debris_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "total_price": {
      "type": [
        "number",
        "null"
      ],
      "description": "US dollars"
    },
    "base_price": {
      "type": [
        "number",
        "null"
      ]
    },
    "landfill_cost": {
      "type": [
        "number",
        "null"
      ]
    },
    "net_weight_tons": {
      "type": [
        "number",
        "null"
      ]
    },
    "customer_ref": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}