hotelsGetAmenityCatalogWithHttpInfo method

Future<Response> hotelsGetAmenityCatalogWithHttpInfo({
  1. Future<void>? abortTrigger,
})

List hotel amenities

Returns the amenity catalog: every amenity code and group with its display label. Use it to label the amenityGroups codes in hotel content and to build an amenity filter; send codes back in search filters.amenityCodes. notesLabel is the heading for a hotel's uncoded amenityNotes. Labels follow the request language, as Accept-Language sets it; the route takes no query parameters.

Note: This method returns the HTTP Response.

Implementation

Future<Response> hotelsGetAmenityCatalogWithHttpInfo({ Future<void>? abortTrigger, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/b2b/hotels/amenities/catalog';

  // 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,
  );
}