fragment RouteStopFragment on RouteStop {
  time {
    utc
    local
  }
}

fragment SectorFragment on Sector {
  duration
}

{
  customerBookings {
    edges {
      node {
        id
        status
        arrival {
          ...RouteStopFragment
        }
        departure {
          ...RouteStopFragment
        }
        destinationImageUrl
        passengerCount

        ... on BookingOneWay {
          sector {
            ...SectorFragment
          }
        }
        ... on BookingReturn {
          inbound {
            ...SectorFragment
          }
          outbound {
            ...SectorFragment
          }
        }
        ... on BookingMulticity {
          sectors {
            ...SectorFragment
          }
        }
      }
    }
  }
}
