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 unit_label and active fields for creating/updating Products #1364

Merged
merged 2 commits into from
Oct 31, 2018

Conversation

karlr-stripe
Copy link
Contributor

r? @remi-stripe
cc @stripe/api-libraries

Attempts to fix #1363. It's quite likely I haven't understood the PlanProductCreateOptions versus ProductSharedOptions distinction though, so let me know if I should do this in a different way.

@remi-stripe remi-stripe self-assigned this Oct 31, 2018
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.

AFAICT this is correct since you can either create a Product via https://stripe.com/docs/api#create_product but also when creating a plan and passing inline product details.

Since you're fixing this, would you mind adding active since it's also documented in https://stripe.com/docs/api/plans/create#create_plan-product-active but not supported? Can you also re-order properties alphabetically?

@karlr-stripe karlr-stripe changed the title Add unit_label field for creating/updating Products Add unit_label and active fields for creating/updating Products Oct 31, 2018
@karlr-stripe
Copy link
Contributor Author

ptal @remi-stripe

@remi-stripe remi-stripe merged commit 2668d6b into master Oct 31, 2018
@remi-stripe remi-stripe deleted the karlr-unitlabel branch October 31, 2018 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unit_label missing from ProductCreateOptions
2 participants