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
Corrected types and params for coupon.ex in subscriptions as a small … #333
Corrected types and params for coupon.ex in subscriptions as a small … #333
Conversation
…POC fo the work. If this is acceptable, will do the same patterns for the remaining files
1 similar comment
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.
I'm ok with the change, but there's a minor matter of formatting.
lib/stripe/subscriptions/coupon.ex
Outdated
percent_off: pos_integer | nil, | ||
redeem_by: Stripe.timestamp() | nil, | ||
times_redeemed: non_neg_integer, | ||
valid: boolean |
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.
In elixir 1.6 all functions/types will be formatted with parentheses, so it will be Stripe.id()
, String.t()
, etc.
I'm not sure if that's final, but it's in RC, so going back on it here probably means more work later. Mind reverting to parentheses?
@begedin Done. I should have run mix format before I committed and did not. |
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.
Looks good to me 👍
…POC fo the work. If this is acceptable, will do the same patterns for the remaining files
Progress on #266, #263