Skip to content

Update CreditCard formats in Finance provider#1637

Merged
asolntsev merged 6 commits intodatafaker-net:mainfrom
Fishbowler:finance
Sep 4, 2025
Merged

Update CreditCard formats in Finance provider#1637
asolntsev merged 6 commits intodatafaker-net:mainfrom
Fishbowler:finance

Conversation

@Fishbowler
Copy link
Copy Markdown
Contributor

Fix random data generation of credit cards

  • Removes deprecated card types (Switch, Solo)
  • Removes an invalid Mastercard range
  • Updates JCB and UnionPay card formats

I've put the citation of sources in the commits for anyone who's interested.

@asolntsev
Copy link
Copy Markdown
Collaborator

@Fishbowler Thank you for the PR, looks good!
Now need to fix few tests...

19:42:04.733 [ERROR]   FinanceTest.unionpayCard:104 
Expecting actual:
  "6441241451881464"
to start with:
  "62"

@asolntsev asolntsev added this to the 2.4.5 milestone Sep 4, 2025
@asolntsev asolntsev self-assigned this Sep 4, 2025
@asolntsev asolntsev added the enhancement New feature or request label Sep 4, 2025
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 4, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.41%. Comparing base (565ab92) to head (50132ff).
⚠️ Report is 31 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1637      +/-   ##
============================================
- Coverage     92.41%   92.41%   -0.01%     
  Complexity     3383     3383              
============================================
  Files           333      333              
  Lines          6670     6668       -2     
  Branches        664      664              
============================================
- Hits           6164     6162       -2     
  Misses          348      348              
  Partials        158      158              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@asolntsev asolntsev merged commit 5191987 into datafaker-net:main Sep 4, 2025
13 checks passed
@Fishbowler Fishbowler deleted the finance branch September 4, 2025 21:09
@kingthorin
Copy link
Copy Markdown
Collaborator

Thanks!

@Fishbowler
Copy link
Copy Markdown
Contributor Author

The invalid Mastercard range is causing me some grief in a project. Any chance that v2.4.5 is imminent?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants