Skip to content

feat(flights): add FlightStop structure#1

Merged
0x9ef merged 1 commit into
mainfrom
feat/add-flight-stops
Aug 22, 2023
Merged

feat(flights): add FlightStop structure#1
0x9ef merged 1 commit into
mainfrom
feat/add-flight-stops

Conversation

@0x9ef
Copy link
Copy Markdown

@0x9ef 0x9ef commented Aug 22, 2023

Duffel has "stops" (can be nullable) field (list) in Flight segment with the next Duffel's description:

Additional segment-specific information about the stops, if any, included in the segment

Has the next body:

  "stops": [
    {
      "id": "sto_00009htYpSCXrwaB9Dn456",
      "duration": "PT02H26M",
      "departing_at": "2020-06-13T16:38:02",
      "airport": {
        "type": "airport",
        "time_zone": "Europe/London",
        "name": "Heathrow",
        "longitude": -141.951519,
        "latitude": 64.068865,
        "id": "arp_lhr_gb",
        "icao_code": "EGLL",
        "iata_country_code": "GB",
        "iata_code": "LHR",
        "iata_city_code": "LON",
        "city_name": "London",
        "city": {
          "name": "London",
          "id": "cit_lon_gb",
          "iata_country_code": "GB",
          "iata_code": "LON"
        },
        "airports": [
          {
            "time_zone": "Europe/London",
            "name": "Heathrow",
            "longitude": -141.951519,
            "latitude": 64.068865,
            "id": "arp_lhr_gb",
            "icao_code": "EGLL",
            "iata_country_code": "GB",
            "iata_code": "LHR",
            "iata_city_code": "LON",
            "city_name": "London",
            "city": {
              "name": "London",
              "id": "cit_lon_gb",
              "iata_country_code": "GB",
              "iata_code": "LON"
            }
          }
        ]
      }
    }
  ]

@0x9ef 0x9ef merged commit 164838d into main Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant