esimsGetUsageDetailsWithHttpInfo method
Get eSIM usage by day
Returns the current usage of an eSIM with a per-day breakdown. Returns the same summary as usage plus usages, the per-day consumption entries { date, usage, location } with the data used in MB. usages is empty when the eSIM's plan does not report a per-day breakdown or it cannot be read.
Note: This method returns the HTTP Response.
Parameters:
- String iccid (required):
The eSIM's ICCID, from the order item's
fulfillment.result.details.iccid.
Implementation
Future<Response> esimsGetUsageDetailsWithHttpInfo(String iccid, { Future<void>? abortTrigger, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/b2b/esims/{iccid}/usage/details'
.replaceAll('{iccid}', iccid);
// 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,
);
}