{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aisa-one/json-schema/aisa-one-published-responses-previous-response-duffel-offer-request-schema.json",
  "title": "PublishedResponses_PreviousResponseDuffel_OfferRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aisa-one-duffel-api-openapi.yml#/components/schemas/PublishedResponses_PreviousResponseDuffel_OfferRequest",
  "properties": {
    "cabin_class": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "live_mode": {
      "type": "boolean"
    },
    "offers": {
      "items": {
        "$ref": "#/$defs/PublishedResponses_PreviousResponseDuffel_Offer"
      },
      "type": "array"
    },
    "passengers": {
      "items": {
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "slices": {
      "items": {
        "$ref": "#/$defs/PublishedResponses_PreviousResponseDuffel_SliceInput"
      },
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "PublishedResponses_PreviousResponseDuffel_Airport": {
      "properties": {
        "city_name": {
          "type": "string"
        },
        "iata_code": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "PublishedResponses_PreviousResponseDuffel_Offer": {
      "properties": {
        "expires_at": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "passenger_ids": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "slices": {
          "items": {
            "properties": {
              "id": {
                "type": "string"
              },
              "segments": {
                "items": {
                  "$ref": "#/$defs/PublishedResponses_PreviousResponseDuffel_Segment"
                },
                "type": "array"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "total_amount": {
          "description": "Decimal string, e.g. 70.48",
          "type": "string"
        },
        "total_currency": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "PublishedResponses_PreviousResponseDuffel_Segment": {
      "properties": {
        "arriving_at": {
          "format": "date-time",
          "type": "string"
        },
        "departing_at": {
          "format": "date-time",
          "type": "string"
        },
        "destination": {
          "$ref": "#/$defs/PublishedResponses_PreviousResponseDuffel_Airport"
        },
        "flight_number": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "operating_carrier": {
          "properties": {
            "iata_code": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "origin": {
          "$ref": "#/$defs/PublishedResponses_PreviousResponseDuffel_Airport"
        }
      },
      "type": "object"
    },
    "PublishedResponses_PreviousResponseDuffel_SliceInput": {
      "properties": {
        "departure_date": {
          "description": "YYYY-MM-DD",
          "format": "date",
          "type": "string"
        },
        "destination": {
          "description": "IATA airport code (ATL) or city code",
          "type": "string"
        },
        "origin": {
          "description": "IATA airport code (JFK) or city code (NYC)",
          "type": "string"
        }
      },
      "required": [
        "origin",
        "destination",
        "departure_date"
      ],
      "type": "object"
    }
  }
}