Skip to content

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

@ginter

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

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