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

Subscription :items is required #555

Merged
merged 4 commits into from
Dec 6, 2019
Merged

Subscription :items is required #555

merged 4 commits into from
Dec 6, 2019

Conversation

snewcomer
Copy link
Collaborator

@coveralls
Copy link

coveralls commented Oct 25, 2019

Coverage Status

Coverage remained the same at 88.186% when pulling 14e0ce9 on sn/sub-items-required into 5cd3128 on master.

@@ -108,10 +108,13 @@ defmodule Stripe.Subscription do
optional(:collection_method) => String.t(),
optional(:coupon) => Stripe.id() | Stripe.Coupon.t(),
optional(:days_until_due) => non_neg_integer,
optional(:items) => [
:items => [
Copy link
Member

Choose a reason for hiding this comment

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

Should there be a pattern match on the presence of :items in the Subscription.create/2 call just like it's done for :customer?
(and possible a guard on whether the value passed to :items is a list).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh great idea!

@snewcomer snewcomer merged commit 636da22 into master Dec 6, 2019
@snewcomer snewcomer deleted the sn/sub-items-required branch December 6, 2019 02:48
jalexander pushed a commit to Frameio/stripity_stripe that referenced this pull request Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants