getWalletWithHttpInfo method

Future<Response> getWalletWithHttpInfo({
  1. String? project,
  2. String? agent,
  3. String? account,
})

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:

  • String project: Project narrows to wallets scoped to one project. Must be a url-safe segment.

  • String agent: Agent narrows to wallets scoped to one agent. Must be a url-safe segment.

  • String account: Account narrows to wallets under one account id. Must be a url-safe segment.

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