aboutsummaryrefslogtreecommitdiff
path: root/lib/finance.js
AgeCommit message (Collapse)AuthorFilesLines
2022-01-14chore: remove ts-generated source filesShinigami921-387/+0
2022-01-11chore: format lib without locales (#66)Shinigami1-148/+183
2022-01-09fix(tests): fix failing tests (#12)Mateus Dadalto1-2/+2
Co-authored-by: Shinigami <[email protected]>
2021-08-18spelling: abcdefghijklmnopqrstuvwxyzJosh Soref1-2/+2
Signed-off-by: Josh Soref <[email protected]>
2021-04-07Avoid ES6 syntax for nowBrock Fanning1-1/+1
2021-03-03Issue 1114: New datatype moduleLBuerstmayr1-12/+11
Current status: - moved number(), float(), hexaDecimal(), boolean(), uuid() from random to datatype - moved respective test from random.unit to datatype.unit - tests of moved methods in random now check if DeprecationWarning is printed and respective method in datatype module is called - adapted all lib files that use moved methods (mostly number) - adapted tests of respective files to spy on the correct method - adapted README in order to promote usage of method that logs a DeprecationWarning
2021-02-28perf: ⚡️ Optimize finance transaction description methodOgnjen Jevremovic1-5/+6
Remove the multiple calls to `createTransaction` method from within the `finance.transactionDescription` and instead call the method once and reference the properties from the returned transaction object. ✅ Closes: #1108
2021-02-11Merge pull request #1015 from strobelt/autoFormatFlagOnFinanceAmountMarak1-4/+11
Add autoFormat flag on finance amount
2021-02-04Merge pull request #989 from rebuy-de/patch-iban-countryMarak1-2/+17
Add optional country code parameter for iban method
2020-10-01Add auto formatting to finance.amountLuiz Strobelt1-4/+11
2020-09-07Use if construct instead of conditional assignmentMartin Parsiegla1-2/+8
2020-09-06Fix return of finance.amount to stringLukazovic1-1/+1
2020-09-01Add optional country code parameter for iban methodMartin Parsiegla1-2/+11
2020-08-24Merge pull request #824 from ashishra0/add-transaction-descriptionMarak1-0/+16
add transaction description method on finance module
2020-08-23Merge pull request #566 from r3nya/patch-1Marak1-1/+1
update finance.js
2020-06-10Merge pull request #597 from johnmaia/feature/lite-coinMarak1-0/+16
Add litecoinAddress generator
2020-03-11Fix return of finance.amountEduardo Moreira1-1/+2
2019-09-12add transaction description method on finance moduleAshish Rao1-0/+16
2019-04-03fix: lowercase eth addressesA.J. May1-1/+1
Ethereum addresses should be all lowercase. Uppercase chars in ethereum addresses are a sort of optional checksum. If a program is validating ethereum addresses, random capital letters in the hex string will cause the checksum to fail.
2018-03-01Fix bitcoinAddress generatorJohn Maia1-2/+2
2018-01-13Add litecoinAddress generatorJohn Maia1-0/+16
2017-10-27Update finance.jsAndrew M1-1/+1
Change docs
2017-10-11Merge pull request #423 from uphold-forks/feature/add-finance-routing-numberMarak1-0/+21
Add ABA routing number generator
2017-09-08Merge branch 'creditCard' of https://github.com/zpiman/faker.jsMarak1-0/+46
2017-06-19Generate an ethereum addressGokulnath Reddy1-0/+11
2017-02-26Merge branch 'Mark/origin' into creditCardJakub Mandula1-20/+84
2017-02-11Merge branch 'master' into patch-1alexpts1-5/+71
# Conflicts: # lib/finance.js
2017-02-11Fix aomount and price argument dec for case = 0. Add unit tests. Minor ↵alexpts1-14/+12
codestyle fix.
2017-02-09Merge remote-tracking branch 'codemanx/master'Marak1-5/+71
2017-01-15Fix dec for amountAlexpts1-1/+1
Now: amount(10, 10, 0); // => 10.00 Expected: amount(10, 10, 0); // => 10
2016-10-17Add ABA routing numberJoão Fonseca1-0/+21
2016-07-11Adds precision value to faker.random.number call.Johnny Reina1-2/+2
2016-06-13add credit card function + helpersJakub Mandula1-1/+47
2016-04-07Add IBAN and BIC generator functionsCoDEmanX1-0/+66
2016-04-07Correct spellingCoDEmanX1-5/+5
2016-03-20* Use faker.random.numberashmothership1-0/+15
* Range was incorrect. Was 27-36. Should be 27-34.
2016-03-19[fix] [revert] finance.bitcoinAddressMarak1-14/+0
* Causing tests to fail * Not using `faker.random.number` !
2016-03-17Bitcoin supportashmothership1-0/+15
2016-03-03remove Math.random() calls to utilize faker.seed()Ben Southgate1-2/+3
Conflicts: lib/internet.js lib/random.js
2016-03-03Install jsdoc and add doclet stubs for all methodsTobias Witt1-0/+52
Descriptions are taken from existing comments if available. The address module already has some new sample descriptions.
2015-07-08[api] [refactor] Rename `array_element` and `object_element` to camelCase. ↵Marak1-3/+3
Set default max random number to 99999. Added default arguments to some methods.
2015-07-08[refactor] [major] Adds incremental browser builds. Switch to using ↵Marak1-60/+59
prototype for internal API. Previous usage of `module.parent` is not acceptable. Locale information is now passed into Faker constructor. Closes #125
2015-07-07[refactor] [dist] Allow for node to require individual locales ( to avoid ↵Marak1-1/+1
the default behavior of requiring all locale data. #125 #167
2014-09-17[feature] - add faker for currencyMQuy1-2/+19
2014-09-15[api] [refactor] Removed definitions.js file. All data definitions are now ↵Marak1-4/+4
loaded from localized data sets, en is default locale. #116
2013-08-03I forgot how much of stinker zero is in Javascript. Looping tests on finance ↵Josef Salyer1-4/+5
should no longer fail
2013-08-03fixed linting issues in lib/finance. TODO: automate this as part of the tests?Josef Salyer1-63/+61
2013-07-28added tests and cleaned up at 100% in istanbul (not constantinople)Josef Salyer1-9/+6
2013-07-28added a bunch of test, changed format of many files to match the newer styleJosef Salyer1-59/+65
2012-11-04added to node lib. all tests passJosef Salyer1-0/+68