utilityGetBillerWithHttpInfo method

Future<Response> utilityGetBillerWithHttpInfo(
  1. String id, {
  2. String? currency,
  3. Future<void>? abortTrigger,
})

Get a biller

Returns one biller with its offers, in the item shape that search returns. An unknown or unparseable ID, an offer's publicId, or a biller without an orderable offer gives 404 / 10004.

Note: This method returns the HTTP Response.

Parameters:

  • String id (required): The biller's opaque id from search or the catalog, for example utility_3jx4….

  • String currency: Price currency, three letters in either case; the API key's currency when omitted. An unsupported code gives 404 / 10004.

Implementation

Future<Response> utilityGetBillerWithHttpInfo(String id, { String? currency, Future<void>? abortTrigger, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/b2b/utility/billers/{id}'
    .replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (currency != null) {
    queryParams.addAll(_queryParams('', 'currency', currency));
  }

  const contentTypes = <String>[];


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