getWalletWithHttpInfo method
Returns the caller org's wallets, newest first, optionally NARROWED within the org by project, agent or account.
Returns the caller org's wallets, newest first, optionally NARROWED within the org by project, agent or account. The org is always the bound isolation boundary — the filters only ever narrow inside it, so a caller can never widen past its own org.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> getWalletWithHttpInfo({ String? project, String? agent, String? account, }) async {
// ignore: prefer_const_declarations
final path = r'/v1/wallet';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (project != null) {
queryParams.addAll(_queryParams('', 'project', project));
}
if (agent != null) {
queryParams.addAll(_queryParams('', 'agent', agent));
}
if (account != null) {
queryParams.addAll(_queryParams('', 'account', account));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}