deleteAccountPaymentMethod function

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

DELETE /api/v4/accounts/{account_id}/payment_methods/{payment_method_id} - delete one method.

Implementation

Future<ApiResponse<Object?>> deleteAccountPaymentMethod(
  ExsitedClient client,
  Object accountId,
  Object paymentMethodId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendDeleteRequest(AccountsUrls.accountPaymentMethod,
        pathParams: {
          'account_id': accountId,
          'payment_method_id': paymentMethodId
        },
        raiseOnError: raiseOnError,
        responseFormat: responseFormat);