{
  "additionalProperties": false,
  "properties": {
    "fulfilled_at": {
      "maxLength": 40,
      "minLength": 20,
      "type": "string"
    },
    "line_items": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "quantity": {
            "minimum": 0,
            "type": "integer"
          },
          "sku": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "title": {
            "maxLength": 512,
            "minLength": 1,
            "type": "string"
          },
          "unit_price": {
            "additionalProperties": false,
            "properties": {
              "amount": {
                "type": "number"
              },
              "amount_decimal": {
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              },
              "currency": {
                "maxLength": 8,
                "minLength": 3,
                "type": "string"
              }
            },
            "required": [
              "amount",
              "amount_decimal",
              "currency"
            ],
            "type": "object"
          }
        },
        "required": [
          "sku",
          "title",
          "quantity",
          "unit_price"
        ],
        "type": "object"
      },
      "maxItems": 128,
      "type": "array"
    },
    "order_id": {
      "maxLength": 256,
      "minLength": 1,
      "type": "string"
    },
    "placed_at": {
      "maxLength": 40,
      "minLength": 20,
      "type": "string"
    },
    "status": {
      "enum": [
        "pending",
        "paid",
        "fulfilled",
        "cancelled",
        "refunded"
      ],
      "type": "string"
    }
  },
  "required": [
    "order_id",
    "status",
    "placed_at",
    "line_items"
  ],
  "type": "object"
}
