esimsQuoteWithHttpInfo method

Future<Response> esimsQuoteWithHttpInfo({
  1. EsimOrderRequest? esimOrderRequest,
  2. Future<void>? abortTrigger,
})

Quote eSIMs

Prices the order body with current prices, without placing an order. Takes the same body as order and, as the order does, checks each item completely (its inputs, its publicId and its price) before the next one, in request order. The first failure aborts the quote, and an item error is named at items[i], for example 409 / 11002 at items[i].inputs.maxPrice when the current price is above it. An eSIM has no monetary value, so inputs.value is an unknown member (400 / 10001). An unknown or foreign inputs.iccid gives 404 / 10004. A quote reserves nothing and does not expire.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> esimsQuoteWithHttpInfo({ EsimOrderRequest? esimOrderRequest, Future<void>? abortTrigger, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/b2b/esims/quote';

  // ignore: prefer_final_locals
  Object? postBody = esimOrderRequest;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json', 'text/json', 'application/*+json'];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
    abortTrigger: abortTrigger,
  );
}