aboutsummaryrefslogtreecommitdiff
path: root/lib/commerce.js
AgeCommit message (Collapse)AuthorFilesLines
2022-01-14chore: remove ts-generated source filesShinigami921-145/+0
2022-01-11chore: format lib without locales (#66)Shinigami1-17/+34
2021-03-22Fixes linting for commerce.jsMarak1-16/+16
2021-03-03Issue 1114: New datatype moduleLBuerstmayr1-1/+1
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
2019-09-11add random product description generatorAshish Rao1-0/+9
2017-09-08Merge pull request #446 from dugoh/price-fixMarak1-1/+1
[api] Price should default minimum to 1
2017-02-11Fix aomount and price argument dec for case = 0. Add unit tests. Minor ↵alexpts1-3/+5
codestyle fix.
2017-01-01Set default minimum price to 1Jacob Goense1-1/+1
According to the test the minimum amount should be greater than 0 when not passing arguments. This failed about 1 in 1000 times.
2016-04-15Clean up faker.commerce.department methodKonstantin Tarkus1-3/+1
Remove "max" and "fixedAmount" arguments from the faker.commerce.department method
2016-03-03remove Math.random() calls to utilize faker.seed()Ben Southgate1-19/+4
Conflicts: lib/internet.js lib/random.js
2016-03-03Install jsdoc and add doclet stubs for all methodsTobias Witt1-0/+45
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-6/+6
Set default max random number to 99999. Added default arguments to some methods.
2015-07-08[fix] Comment out a few methods sections of commerce section. Needs some ↵Marak1-0/+8
work. #183
2015-07-08[fix] [api] Add back commerce methods.Marak1-60/+60
2015-07-07[refactor] [dist] Allow for node to require individual locales ( to avoid ↵Marak1-2/+4
the default behavior of requiring all locale data. #125 #167
2015-03-12removes a console.log when generating a pricerob.scott1-2/+0
2015-03-10Add Commerce functions from https://github.com/stympy/faker into javascriptrob.scott1-0/+81