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

feat(finance): add ISO 4217 numerical codes to Currency object #3404

Merged
merged 25 commits into from
Mar 6, 2025

Conversation

Nfloc
Copy link
Contributor

@Nfloc Nfloc commented Feb 17, 2025

Address issue #2289

added numericCode parameter to currency object in all languages (put zero for all non ISO currency (cypto currency)).

added currencyNumericCode to finance definition.

added currencyNumericCode testing to finance.spec.ts

changed descriptions to match new parameter.

added random currencyNumericCode method.

added numID parameter to currency object in all languages (put zero for all non ISO currency (cypto currency)).

added currencyNumID to finance definition.

added currencyNumID testing to finance.spec.ts

changed descriptions to match new parameter.

added random currencyNumID method
@Nfloc Nfloc requested a review from a team as a code owner February 17, 2025 03:31
Copy link

netlify bot commented Feb 17, 2025

Deploy Preview for fakerjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit facfe98
🔍 Latest deploy log https://app.netlify.com/sites/fakerjs/deploys/67b2ad8255827200083ff7a3
😎 Deploy Preview https://deploy-preview-3404.fakerjs.dev
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

This comment was marked as duplicate.

Copy link

codecov bot commented Feb 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.97%. Comparing base (57d39d7) to head (afc1fc0).
Report is 1 commits behind head on next.

Additional details and impacted files
@@           Coverage Diff            @@
##             next    #3404    +/-   ##
========================================
  Coverage   99.97%   99.97%            
========================================
  Files        2811     2811            
  Lines      216972   217398   +426     
  Branches      945      945            
========================================
+ Hits       216917   217345   +428     
+ Misses         55       53     -2     
Files with missing lines Coverage Δ
src/definitions/finance.ts 100.00% <ø> (ø)
src/locales/el/finance/currency.ts 100.00% <100.00%> (ø)
src/locales/en/finance/currency.ts 100.00% <100.00%> (ø)
src/locales/fa/finance/currency.ts 100.00% <100.00%> (ø)
src/locales/fr/finance/currency.ts 100.00% <100.00%> (ø)
src/locales/zh_CN/finance/currency.ts 100.00% <100.00%> (ø)
src/modules/finance/index.ts 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

🚀 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.

@ST-DDT ST-DDT added c: feature Request for new feature p: 1-normal Nothing urgent m: finance Something is referring to the finance module labels Feb 17, 2025
@ST-DDT ST-DDT linked an issue Feb 17, 2025 that may be closed by this pull request
@ST-DDT ST-DDT added this to the vAnytime milestone Feb 17, 2025
Nfloc added 10 commits February 17, 2025 13:49
Changed previous parameter numID --> numericCode.
Changed comments to reflect change and newest release.
Changed parameter numID --> numericCode
Changed parameter numID --> numericCode
Changed parameter numID --> numericCode.
Removed comment dev artifacts.
Changed parameter numID --> numericCode.
Removed dev artifact comments
Changed parameter numID --> numericCode.
Removed dev artifact comments.
Changed comment from numID to numericCode
Updated to new numericCode naming (numID previous)
Changed parameter numID --> numericCode
Changed method currencyNumID --> currencyNumericCode
Changed method currencyNumID --> currencyNumericCode
@ST-DDT ST-DDT changed the title feat(finance): Added ISO 4217 numerical codes to Currency object feat(finance): add ISO 4217 numerical codes to Currency object Feb 17, 2025
chore(deps): lock file maintenance (faker-js#3403)
finance object parameter numericCode has been updated to a string.
numericCode has been given significant zeros. (e.g. '8' -> '008')
fix: test before using Buffers (faker-js#3400)
@Nfloc
Copy link
Contributor Author

Nfloc commented Feb 19, 2025

Should I update my original pull request description to fit the new parameter names?

Nfloc and others added 4 commits February 19, 2025 22:27
add grave markers around numerical code description.

Co-authored-by: ST-DDT <[email protected]>
change numerical ID to numeric code in description.

Co-authored-by: ST-DDT <[email protected]>
change number ID to numeric code in description.

Co-authored-by: ST-DDT <[email protected]>
fa language file was overridden by zh_CHN langauge file, changes reverted back to original.
add test case to ensure that currencyNumericCode method returns a string exactly 3 digits long.
ST-DDT
ST-DDT previously approved these changes Feb 21, 2025
@ST-DDT ST-DDT requested review from matthewmayer, Shinigami92 and a team February 21, 2025 22:51
matthewmayer
matthewmayer previously approved these changes Feb 21, 2025
update grammar in currency object descriptor.
@Nfloc Nfloc dismissed stale reviews from matthewmayer and ST-DDT via 4a65bee February 22, 2025 16:16
update grammar and syntax in currencyNumericCode(); descriptor
@ST-DDT
Copy link
Member

ST-DDT commented Mar 6, 2025

Thanks for your contribution ❤️

@ST-DDT ST-DDT enabled auto-merge (squash) March 6, 2025 17:08
@ST-DDT ST-DDT merged commit ae9aec6 into faker-js:next Mar 6, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: feature Request for new feature m: finance Something is referring to the finance module p: 1-normal Nothing urgent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add numeric currency code by ISO 4217 standard
5 participants