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

Support for negative amounts #17

Open
mwoodbri opened this issue Oct 12, 2015 · 3 comments
Open

Support for negative amounts #17

mwoodbri opened this issue Oct 12, 2015 · 3 comments

Comments

@mwoodbri
Copy link

Finding stripe-cli really useful. Have just been trying to add adjustments to invoices using invoice_items with negative amounts e.g:

stripe invoice_items create --key=... --customer=... --amount=-6.29 --currency=eur --description=...

This returns:

Expected numeric value for '--amount'; got "-6.29"

Is there an alternative way to do this? At the moment I'm creating them as positive amounts and then altering via the Stripe UI.

@OutlawAndy
Copy link
Member

Hi there,

Thank you for bringing this up and please forgive my super late response!

This is a bug in Thor, which is the CLI framework that Stripe-Cli is built on top of. I did some digging and the bug was actually patched some time ago, unfortunately there has not yet been a gem release that includes the fix.

I have opened a new issue over there, asking when they plan to do that: rails/thor#506

I'll update this thread when I get a response.

Thank you!

@mwoodbri
Copy link
Author

mwoodbri commented Nov 8, 2015

Awesome. Thanks! I did some digging but didn't get as far as Thor internals, so really appreciate you looking into it. Will stay tuned.

@stephenyeargin
Copy link

Looks like 0.19.4 shipped last November.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants