walletsGetByIdWithHttpInfo method
Get a wallet
Gets one wallet with its totals. Adds lowBalanceThreshold, createdAt, updatedAt and totals of completed transactions to the list fields. An unknown wallet, or one of another partner, returns 404 with code 10004.
Note: This method returns the HTTP Response.
Parameters:
- String id (required): Wallet id.
Implementation
Future<Response> walletsGetByIdWithHttpInfo(String id, { Future<void>? abortTrigger, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/b2b/wallets/{id}'
.replaceAll('{id}', id);
// 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,
);
}