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 ProductId parameter to StripePlanListOptions #1135

Merged
merged 1 commit into from
Mar 15, 2018
Merged

Conversation

ob-stripe
Copy link
Contributor

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

Adds support for the product field when listing plans: https://stripe.com/docs/api/dotnet#list_plans-product.

I didn't add any tests because this is fairly trivial and a well-established pattern through the library (e.g. here or here).

Fixes #1134.

/// Only return plans for the given product.
/// </summary>
[JsonProperty("product")]
public string ProductId { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Nice catch!

@remi-stripe
Copy link
Contributor

LGTM if you want to go ahead though I mentioned a small addition

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

thanks for the quick change!

@ob-stripe ob-stripe merged commit 91406a2 into master Mar 15, 2018
@ob-stripe ob-stripe deleted the ob-fix-1134 branch March 15, 2018 13:20
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