-
Notifications
You must be signed in to change notification settings - Fork 460
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
Add Quantity
and UnitAmount
to InvoiceItemParams
#620
Conversation
Subscription *string `form:"subscription"` | ||
UnitAmount *int64 `form:"unit_amount"` | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you want to add them to the InvoiceItem
struct too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes ... that would make sense. I just pushed that change (only UnitAmount
was missing).
Both these parameters were missing from the params struct, but are documented in the API [1]. This patch adds them in. Fixes #619. [1] https://stripe.com/docs/api/php#create_invoiceitem
5815f81
to
455343d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Asked internally whether this should also be on the LineItem resource but for now it's not.
Thanks Remi. |
* added KMS * made rubocop happy * fixed typing * rubocop fix * hidden rbi * ran sorbet autocorrect * more sorbet fixes * last sorbet fixes * fixed migration typo * Cleanup migration file * Generate kms fields * sorbet fixes * Remove pry * Removing weird reline sorbet stuff * Fix migration syntax * Fix migrations on ci * Try exponential backoff with bash * changed env var * Rename migration folder * More backoff, some ci config cleanup * Fix rubocop * Fix kms test * bundle * fixed two tests * fixed nonsensical test * rubocop Co-authored-by: Mike Bianco <[email protected]>
Both these parameters were missing from the params struct, but are
documented in the API [1]. This patch adds them in.
Fixes #619.
[1] https://stripe.com/docs/api/php#create_invoiceitem
r? @remi-stripe
cc @stripe/api-libraries