flightsGetSeatMapWithHttpInfo method
Get a flight seat map
Returns the seat map of a flight offer, with the seats each passenger can take and their prices. The seat map is read from the airline on each call, so availability can change between calls; prices are in the API key's currency. isSupported is false when the airline offers no seat selection for the offer. Segments are named by sliceIndex and segmentIndex, their 1-based position in the offer; a segment without a seat map is left out. A seat can be booked only for the passengers in its availableFor. Send chosen seats in the order's inputs.passengers[].selectedSeats, one per passenger per segment. An unknown, expired or another partner's publicId returns 400 / 11004.
Note: This method returns the HTTP Response.
Parameters:
- String publicId (required):
An offer or fare option
publicIdfrom search or quote.
Implementation
Future<Response> flightsGetSeatMapWithHttpInfo(String publicId, { Future<void>? abortTrigger, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/b2b/flights/offers/{publicId}/seat-map'
.replaceAll('{publicId}', publicId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
abortTrigger: abortTrigger,
);
}