getAccountAddresses function

Future<ApiResponse<Account>> getAccountAddresses(
  1. ExsitedClient client,
  2. Object accountId, {
  3. bool? raiseOnError,
  4. String? responseFormat,
})

GET /api/v4/accounts/{account_id}/addresses - the account's addresses.

The account envelope with an addresses list on it.

Implementation

Future<ApiResponse<Account>> getAccountAddresses(
  ExsitedClient client,
  Object accountId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(AccountsUrls.accountAddresses,
        pathParams: {'account_id': accountId},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: Account.fromMap);