-
Notifications
You must be signed in to change notification settings - Fork 354
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 Subscription and Invoice params #400
Add Subscription and Invoice params #400
Conversation
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.
Awesome work! Just a few comments and we can get it in!
@@ -73,6 +79,7 @@ defmodule Stripe.Subscription do | |||
:customer => Stripe.id() | Stripe.Customer.t(), | |||
optional(:application_fee_percent) => integer, | |||
optional(:billing) => String.t(), | |||
optional(:billing_cycle_anchor) => Stripe.timestamp(), |
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.
Would you mind adding all 3 to the update
spec as well?
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.
No problem! It's ready for another look.
@@ -19,12 +19,15 @@ defmodule Stripe.Subscription do | |||
id: Stripe.id(), | |||
object: String.t(), | |||
application_fee_percent: float | nil, | |||
billing: String.t(), | |||
billing_cycle_anchor: Stripe.timestamp(), |
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.
| nil
@@ -19,12 +19,15 @@ defmodule Stripe.Subscription do | |||
id: Stripe.id(), | |||
object: String.t(), | |||
application_fee_percent: float | nil, | |||
billing: String.t(), |
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.
| nil
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.
very nice! 🙇
Thanks, and thank you for the awesome library! |
:billing
,:billing_cycle_anchor
, and:days_until_due
(Closes Subscription Struct does not support billing, billing_cycle_anchor, and days_until_due #396):amount_paid
,:amount_remaining
,:auto_advance
,:billing_reason
,:hosted_invoice_url
,:invoice_pdf
,:number