Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cards cannot charge/hold themselves #19

Open
mjallday opened this issue Nov 13, 2012 · 2 comments
Open

Cards cannot charge/hold themselves #19

mjallday opened this issue Nov 13, 2012 · 2 comments

Comments

@mjallday
Copy link
Contributor

It's creating a hold / debit against account.holds_uri, not against the card itself. Same for BankAccounts

https://github.com/balanced/balanced-python/blob/master/balanced/resources.py#L912

def hold(self, amount, meta=None, description=None):
    """
    Creates a Hold of funds from this Card to your Marketplace.

    :rtype: Hold
    """
    meta = meta or {}
    return Hold(
        uri=self.account.holds_uri,
        amount=amount,
        meta=meta,
        description=description
    ).save()
@mjallday
Copy link
Contributor Author

According to the spec, these methods should pass in the source_uri or destination_uri respectively.

@mahmoudimus
Copy link
Contributor

oh...

@remear remear added the 1.0 label Apr 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants