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

Add Quantity and UnitAmount to InvoiceItemParams #620

Merged
merged 1 commit into from
Jul 6, 2018

Conversation

brandur
Copy link
Contributor

@brandur brandur commented Jul 5, 2018

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

Subscription *string `form:"subscription"`
UnitAmount *int64 `form:"unit_amount"`
}
Copy link
Contributor

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

Copy link
Contributor

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
@brandur-stripe brandur-stripe force-pushed the brandur-missing-invoice-item-params branch from 5815f81 to 455343d Compare July 5, 2018 23:53
Copy link
Contributor

@remi-stripe remi-stripe left a 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.

@brandur-stripe
Copy link
Contributor

Thanks Remi.

@brandur-stripe brandur-stripe merged commit 0961207 into master Jul 6, 2018
@brandur-stripe brandur-stripe deleted the brandur-missing-invoice-item-params branch July 6, 2018 00:03
nadaismail-stripe pushed a commit that referenced this pull request Oct 18, 2024
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants