walletsGetAllWithHttpInfo method

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

List wallets

Lists all of the partner's wallets. Returns the whole list as an array, without paging. Each wallet has its id, label, balance, whether it isSelected (the wallet that pays for orders) and its currency.

Note: This method returns the HTTP Response.

Implementation

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

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