currenciesGetAllWithHttpInfo method

Future<Response> currenciesGetAllWithHttpInfo({
  1. Future<void>? abortTrigger,
})

List currencies

Lists every supported currency with its current rate to USD. Returns { currencies }, the whole list without paging. Use a currency's code wherever a request takes a currency, and its id as currencyId when creating a wallet. rateToUsd is the USD value of one unit of the currency, as of rateDate.

Note: This method returns the HTTP Response.

Implementation

Future<Response> currenciesGetAllWithHttpInfo({ Future<void>? abortTrigger, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/b2b/currencies';

  // 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,
  );
}