getAccountPaymentMethods function

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

GET /api/v4/accounts/{account_id}/payment_methods - the account's payment methods.

Implementation

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