-
Notifications
You must be signed in to change notification settings - Fork 461
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
Adds PendingUpdate to Subscription #1012
Conversation
b56456e
to
9539f6a
Compare
9539f6a
to
60fea63
Compare
60fea63
to
1ff06ac
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.
One nitpick
@@ -119,6 +119,7 @@ type InvoiceParams struct { | |||
SubscriptionItems []*SubscriptionItemsParams `form:"subscription_items"` | |||
SubscriptionPlan *string `form:"subscription_plan"` | |||
SubscriptionProrate *bool `form:"subscription_prorate"` | |||
SubscriptionProrationBehavior *string `form:"subscription_proration_behavior"` |
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.
You're missing a list of constants for all those values. In go, we define them even if it's just used as a parameter and we pass *string
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.
Thanks, I couldn't remember that rule.
Added ptal @remi-stripe |
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 forgot the change on upcoming invoice
Hmm. Maybe I'm missing something. I thought the upcoming invoice params were controlled by InvoiceParams? Did I miss it somewhere else? |
Ah my bad I always forget that we mix them. All good then. Merging |
Think I should re-use the existing SubscriptionItem for subscription_items like this? or create a whole new
SubscriptionPendingUpdateSubscriptionItem
etc.r? @remi-stripe
cc @stripe/api-libraries