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

Corrected types and params for coupon.ex in subscriptions as a small … #333

Merged

Conversation

kcraybould
Copy link
Contributor

@kcraybould kcraybould commented Jan 2, 2018

…POC fo the work. If this is acceptable, will do the same patterns for the remaining files

Progress on #266, #263

…POC fo the work. If this is acceptable, will do the same patterns for the remaining files
@coveralls
Copy link

Coverage Status

Coverage remained the same at 79.319% when pulling 70c9465 on kcraybould:2.0-beta-fix-coupon-type into 1493e42 on code-corps:2.0-beta.

1 similar comment
@coveralls
Copy link

coveralls commented Jan 2, 2018

Coverage Status

Coverage remained the same at 79.319% when pulling 70c9465 on kcraybould:2.0-beta-fix-coupon-type into 1493e42 on code-corps:2.0-beta.

Copy link
Contributor

@begedin begedin left a 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.

percent_off: pos_integer | nil,
redeem_by: Stripe.timestamp() | nil,
times_redeemed: non_neg_integer,
valid: boolean
Copy link
Contributor

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?

@kcraybould
Copy link
Contributor Author

@begedin Done. I should have run mix format before I committed and did not.

@coveralls
Copy link

coveralls commented Jan 4, 2018

Coverage Status

Coverage remained the same at 79.319% when pulling d1389c3 on kcraybould:2.0-beta-fix-coupon-type into 1493e42 on code-corps:2.0-beta.

Copy link
Contributor

@begedin begedin left a 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 👍

@begedin begedin merged commit ec5d74b into beam-community:2.0-beta Jan 5, 2018
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.

None yet

3 participants