commonGetCountriesWithHttpInfo method
List countries
Lists every country and territory with its codes, English name, calling code and flag. Returns { items }, the whole list ordered by countryCode, without paging. countryCode is the ISO 3166-1 alpha-2 code every service filters and reports by. The endpoint takes no query parameters; an unknown parameter returns 400 with code 10001.
Note: This method returns the HTTP Response.
Implementation
Future<Response> commonGetCountriesWithHttpInfo({ Future<void>? abortTrigger, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/b2b/common/countries';
// 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,
);
}