-
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
Flexible billing primitives #538
Conversation
plan_test.go
Outdated
{"tiers[0][amount]", &PlanParams{Tiers: tiers}, strconv.FormatUint(123, 10)}, | ||
{"tiers[0][up_to]", &PlanParams{Tiers: tiers}, strconv.FormatUint(321, 10)}, | ||
{"tiers[1][amount]", &PlanParams{Tiers: tiers}, strconv.FormatUint(123, 10)}, | ||
{"tiers[1][up_to]", &PlanParams{Tiers: tiers}, "inf"}, |
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.
Sorry for the nit, but would you mind just alphabetizing these test cases by their leading string?
usagerecord/client_test.go
Outdated
Quantity: 123, | ||
Timestamp: now, | ||
Action: stripe.UsageRecordParamsActionIncrement, | ||
SubscriptionItem: "si_abc123", |
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.
Just per convention, mind just changing this to si_123
?
Added two minor asks, but otherwise LGTM. Would you also mind just rebasing this into one commit with a good title/description? We've been trying to improve our commit hygiene more recently. Thanks! |
e20dba5
to
4fdc1ee
Compare
Thanks for taking a look! Done. |
Nice! Thanks for the quick fixes. |
Released as 30.3.0. |
* Extract subscription term from quote * Updating test to not use custom price field * Adjusting tests to pass on missing term on the order item level
PR ported from internal internal GHE.
Adds flexible billing primitives to the SDK for beta functionality.