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

Adds PendingUpdate to Subscription #1012

Merged
merged 2 commits into from
Jan 15, 2020
Merged

Conversation

cjavilla-stripe
Copy link
Contributor

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

@cjavilla-stripe cjavilla-stripe force-pushed the cjavilla/add-pending-update branch from 60fea63 to 1ff06ac Compare January 10, 2020 23:09
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.

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"`
Copy link
Contributor

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

Copy link
Contributor Author

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.

@cjavilla-stripe cjavilla-stripe changed the title [wip] Adds PendingUpdate to Subscription Adds PendingUpdate to Subscription Jan 13, 2020
@cjavilla-stripe
Copy link
Contributor Author

Added SubscriptionProrationBehavior to sub.go

ptal @remi-stripe

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.

I think you forgot the change on upcoming invoice

@cjavilla-stripe
Copy link
Contributor Author

Hmm. Maybe I'm missing something. I thought the upcoming invoice params were controlled by InvoiceParams? Did I miss it somewhere else?

@remi-stripe
Copy link
Contributor

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

@remi-stripe remi-stripe merged commit 65b7737 into master Jan 15, 2020
@remi-stripe remi-stripe deleted the cjavilla/add-pending-update branch January 15, 2020 17:19
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.

2 participants