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

♻️ refactor the validate_brand method & add new types #56

Merged
merged 3 commits into from
Jan 8, 2024

Conversation

yezz123
Copy link
Collaborator

@yezz123 yezz123 commented Jun 5, 2023

Selected Reviewer: @Kludex

@yezz123
Copy link
Collaborator Author

yezz123 commented Jun 5, 2023

please review

@yezz123 yezz123 linked an issue Jun 5, 2023 that may be closed by this pull request
8 tasks
@Kludex
Copy link
Member

Kludex commented Jun 6, 2023

Hmmm... Should we think of a more elegant way to register new brands?

@yezz123
Copy link
Collaborator Author

yezz123 commented Jun 6, 2023

Hmmm... Should we think of a more elegant way to register new brands?

I really tried to think about something that can be used In that case, but this is the best way to refactor it!

what do you think about make in it like external types? or create secondary package support just for types quit like pycountry

@Kludex
Copy link
Member

Kludex commented Jun 7, 2023

Hmmm... Should we think of a more elegant way to register new brands?

I really tried to think about something that can be used In that case, but this is the best way to refactor it!

what do you think about make in it like external types? or create secondary package support just for types quit like pycountry

Unless there's already a package that handles it, I don't think we should create a separate one for it now. But... Doesn't a package already exist for this?

@yezz123
Copy link
Collaborator Author

yezz123 commented Jun 7, 2023

@Kludex what do you think shall we support this one: https://github.com/orokusaki/pycard

@hirotasoshu
Copy link
Contributor

hirotasoshu commented Jun 7, 2023

@Kludex what do you think shall we support this one: https://github.com/orokusaki/pycard

@yezz123 This package does not appear to be actively updated (last commit in 2017, opened pull request from 2019) and does not support all proposed card brands

Copy link

codecov bot commented Jan 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5ebc5bb) 100.00% compared to head (177d866) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #56   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines          688       707   +19     
  Branches       176       179    +3     
=========================================
+ Hits           688       707   +19     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yezz123 yezz123 merged commit 0705e6d into main Jan 8, 2024
20 checks passed
@yezz123 yezz123 deleted the payment-type branch January 8, 2024 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add more card brands to PaymentCardNumber
4 participants