getAccountPaymentMethods function
Future<ApiResponse<Account> >
getAccountPaymentMethods(
- ExsitedClient client,
- Object accountId, {
- bool? raiseOnError,
- 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);