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 promotion codes #641

Merged
merged 6 commits into from Jan 15, 2021
Merged

Conversation

ascandella
Copy link
Contributor

Also update API spec to include the /v1/promotion_codes endpoints, which required updating some unrelated tests

@coveralls
Copy link

coveralls commented Jan 4, 2021

Coverage Status

Coverage increased (+0.08%) to 90.231% when pulling fa824cb on ascandella:add-promo-codes into 05a11f0 on code-corps:master.

@ascandella ascandella marked this pull request as ready for review January 4, 2021 18:56
Copy link
Collaborator

@snewcomer snewcomer left a comment

Choose a reason for hiding this comment

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

Thanks for the great addition! Only a few comments.

lib/stripe/subscriptions/promotion_code.ex Show resolved Hide resolved
when params:
%{
optional(:metadata) => Stripe.Types.metadata(),
optional(:active) => boolean
Copy link
Collaborator

Choose a reason for hiding this comment

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

https://stripe.com/docs/api/promotion_codes/update

Is metadata possible to pass here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It appears to be, yes, which is why I added it on line 100. I'm not sure I understand your comment.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh my. my eyes failed me!

@snewcomer snewcomer merged commit 2e12c36 into beam-community:master Jan 15, 2021
@bducharme
Copy link

expires_at is missing?

@ascandella
Copy link
Contributor Author

expires_at is missing?

Whoops, indeed it is. Not sure how I missed that. Should be a very simple change to add

@ascandella
Copy link
Contributor Author

#675

@ascandella ascandella deleted the add-promo-codes branch June 11, 2021 15:12
@sezaru
Copy link

sezaru commented Jun 19, 2021

I think the customer field is missing too.

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

5 participants