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

issuerfraudrecord: add issuerfraudrecord package #552

Merged
merged 2 commits into from
May 9, 2018

Conversation

matt-stripe
Copy link
Contributor

r? @brandur-stripe
cc @fay-stripe

This is the analogous Go update for stripe/stripe-ruby#645. Note that it's pending an update to stripe-mock (depends on OpenAPI spec rev).

MadeWithLostCard FraudType = "made_with_lost_card"
MadeWithStolenCard FraudType = "made_with_stolen_card"
Misc FraudType = "misc"
UnauthorizedUseOfCard FraudType = "unauthorized_use_of_card"
Copy link
Contributor

Choose a reason for hiding this comment

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

Would you mind prefixing all of these with FraudType? The reason is that this file is in the top-level package and we want to minimize collisions (a constant like Misc has a decent likelihood of reappearing somewhere else).

Copy link
Contributor

Choose a reason for hiding this comment

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

Should we go with IssuerFraudTypeXXX?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, good point. That's even better. Maybe change the type definition FraudType to IssuerFraudType as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, definitely, done!

Copy link
Contributor

@brandur-stripe brandur-stripe left a comment

Choose a reason for hiding this comment

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

Left a minor comment, but looking good! Thank you.

@brandur-stripe
Copy link
Contributor

Thanks Matt! Can you try upgrading stripe-mock (see instructions at the very bottom of api/_docs/guides/releasing_stripe_mock.md in pay-server)? After that, I think we're good to go.

@matt-stripe
Copy link
Contributor Author

@brandur-stripe I think this is ready to go!

@brandur-stripe
Copy link
Contributor

LGTM.

@brandur-stripe brandur-stripe merged commit 1f592fc into stripe:master May 9, 2018
@brandur-stripe
Copy link
Contributor

Released as 30.7.0.

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.

3 participants