Skip to main content

finance

account​

Description​

Method that generate random account number

Parameters​

NameTypeDescription
length<Number>What length of account number will be generated. Default value is locale format

Returns​

  • <String>

Usage​

  1. Without passing parameters

    1. code
    console.log(pure.finance.account());
    1. result
    '44941618'
  2. Describing that i want an account with 10 numbers

    1. code
    console.log(pure.finance.account(10));
    1. result
    '5584477073'

accountName​

Description​

Method that generate random account name

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.finance.accountName());
    1. result
    'Money Market Account'

routingNumber​

Description​

Method that generate random routing number

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.finance.routingNumber());
    1. result
    '484765369'

mask​

Description​

Method that generate random mask number

Parameters​

NameTypeDescription
options<Object>You can pass parameters as this object properties
options.length<Number>Length of mask number. Default value is 4
options.parens<Boolean>Format result with parentesis. Default value is false
options.ellipsis<Boolean>Format result with ellipsis. Default value is false

Returns​

  • <String>

Usage​

  1. Without passing parameters

    1. code
    console.log(pure.finance.mask());
    1. result
    '5877'
  2. Describing that i want an mask number with length 6 and formatted with ellipsis

    1. code
    console.log(pure.finance.mask({ length: 6, parens: false, ellipsis: true }));
    1. result
    '...296528'

amount​

Description​

Method that generate a random amount value

Parameters​

NameTypeDescription
options<Object>You can pass parameters as this object properties
options.min<Number>Min number to be generated. Default value is 0
options.max<Number>Max number to be generated. Default value is 1000
options.dec<Number>Floating point precision to be used, if value is 0 then no floating point is generated. Default value is 2
options.symbol<String>What symbol to use when generating number. Default value is empty

Returns​

  • <String>

Usage​

  1. Without passing parameters

    1. code
    console.log(pure.finance.amount());
    1. result
    '618.48'
  2. Describing that i want an random amount between 5 and 10 and i wish the result with precision of 4 numbers after floating point and use the Azerbaijanian Manat currency symbol ΠΌΠ°Π½

    1. code
    console.log(pure.finance.amount({ min: 5, max: 10, dec: 4, symbol: 'ΠΌΠ°Π½' }));
    1. result
    'ΠΌΠ°Π½6.2894'

transactionType​

Description​

Method that generate random transaction type

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.finance.transactionType());
    1. result
    'invoice'

currencyCode​

Description​

Method that generate random currency code

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.finance.currencyCode());
    1. result
    'EGP'

currencyName​

Description​

Method that generate random currency name

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.finance.currencyName());
    1. result
    'US Dollar'

currencySymbol​

Description​

Method that generate random currency symbol

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.finance.currencySymbol());
    1. result
    'β‚‘'

bitcoinAddress​

Description​

Method that generate random bitcoin address

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.finance.bitcoinAddress());
    1. result
    '3pqJ9Qq1kN3trBQWt5oti5A2ULMxDZnT'

litecoinAddress​

Description​

Method that generate random litecoin address

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.finance.litecoinAddress());
    1. result
    '3jiLj9MZrdXGkBPcmEfX4ka1Yrgm9WQ'

creditCardNumber​

Description​

Method that generate random credit card number

Parameters​

NameTypeDescription
provider<String>Provider to generate from schema, it respects format declared in locale. Default value is empty

Returns​

  • <String>

Usage​

  1. Without passing parameters

    1. code
    console.log(pure.finance.creditCardNumber());
    1. result
    '6767-4787-8355-5427-030'
  2. Describing that i want an credit card respecting maestro template

    1. code
    console.log(pure.finance.creditCardNumber('maestro'));
    1. result
    '5018-7171-7413-6719'

creditCardCVV​

Description​

Method that generate random litecoin address

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.finance.creditCardCVV());
    1. result
    '841'

ethereumAddress​

Description​

Method that generate random ethereum address

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.finance.ethereumAddress());
    1. result
    '0x520772c47f57b934de18977ad31ca3f2dbcf42a4'

iban​

Description​

Method that generate a random International Bank Account Number

Parameters​

NameTypeDescription
options<Object>You can pass parameters as this object properties
options.formatted<Boolean>Format output or not. Default value is 0
options.country<String>What country will be used to generate, alpha-2 country code. Default value is random

Returns​

  • <String>

Usage​

  1. Without passing parameters

    1. code
    console.log(pure.finance.iban());
    1. result
    'MC6661044700616M827O760L128'
  2. Describing that i want an random IBAN formatted from Bosnia and Herzegovina

    1. code
    console.log(pure.finance.iban({ formatted: true, country: 'BA' }));
    1. result
    'BA81 9167 2671 3670 8538'

bic​

Description​

Method that generate random Bank Identifier Code

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.finance.bic());
    1. result
    'KCJUNIM1'