hotelsGetCatalogFilesWithHttpInfo method

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

Get hotel catalog files

Returns download links for the current hotel catalog files. Returns { generatedAt, hotelCount, files: [{ variant, url, sizeBytes }] }, one zip per variant. Each zip holds hotels.jsonl: one hotel per line, in the item shape that search and properties/{id} return, with offers empty. withoutImages carries each hotel's main image as logoUrl and an empty details.imageUrls; withImages also lists every gallery image there. generatedAt is null and files empty before the first catalog is built, and after a release that changes the line format until the first build in the new format: the route never links a file whose lines have another format. The route takes no query parameters.

Note: This method returns the HTTP Response.

Implementation

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

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