esimsGetDestinationsWithHttpInfo method
List eSIM destinations
Lists every destination with an orderable plan, as summaries without plans. Returns the complete list { items }, ordered by name, without paging or prices. Read a destination's plans with destinations/{id}.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> esimsGetDestinationsWithHttpInfo({ String? category, String? region, Future<void>? abortTrigger, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/b2b/esims/destinations';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (category != null) {
queryParams.addAll(_queryParams('', 'category', category));
}
if (region != null) {
queryParams.addAll(_queryParams('', 'region', region));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
abortTrigger: abortTrigger,
);
}