Skip to content

Balanced::BankAccount#debit undefined method `account' #137

Description

@ginter

I get an undefined method account when trying to debit a bank account.

From looking through the library, BankAccount#debit forwards to account.debit, but the API doesn't seem to include an account resource in the response, only a customer resource, so the method is never dynamically created.

The card resource, on the other hand, does include both an account and a customer resource, so that works fine.

The docs mirror this as well -
https://docs.balancedpayments.com/current/api.html?language=ruby#retrieve-a-bank-account
https://docs.balancedpayments.com/current/api.html?language=ruby#retrieve-a-card

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions