Package net.datafaker.providers.base
Class Finance
- Since:
- 0.8.0
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class net.datafaker.providers.base.AbstractProvider
faker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbic()Generates a random Business Identifier CodeGenerate a random credit card number of a random type.creditCard(Finance.CreditCardType creditCardType) Generates a random credit card number of the specified type.iban()Generates a random IBAN (International Bank Account Number).Generates an IBAN for the given country code.Get the set of country codes supported for IBAN generationDeprecated, for removal: This API element is subject to removal in a future version.since 2.2.0.Deprecated, for removal: This API element is subject to removal in a future version.since 2.2.0.Deprecated, for removal: This API element is subject to removal in a future version.since 2.2.0.Generates a random US bank routing number of 9 characters.Methods inherited from class net.datafaker.providers.base.AbstractProvider
equals, getFaker, hashCode, loadGenerators, resolve, resolve, toString
-
Field Details
-
A_CODE
-
-
Constructor Details
-
Finance
-
-
Method Details
-
nasdaqTicker
Deprecated, for removal: This API element is subject to removal in a future version.since 2.2.0. For removal in 3.0.0 version. UseStock.nsdqSymbol()instead. -
nyseTicker
Deprecated, for removal: This API element is subject to removal in a future version.since 2.2.0. For removal in 3.0.0 version. UseStock.nyseSymbol()instead. -
stockMarket
Deprecated, for removal: This API element is subject to removal in a future version.since 2.2.0. For removal in 3.0.0 version. UseStock.exchanges()instead. -
ibanSupportedCountries
Get the set of country codes supported for IBAN generation -
creditCard
Generates a random credit card number of the specified type. The number will pass the LUHN check.- Parameters:
creditCardType- the type of credit card to generate (seeFinance.CreditCardTypefor options)- Returns:
- a valid credit card number of the specified type
-
creditCard
Generate a random credit card number of a random type. The number will pass the LUHN check.- Returns:
- a valid credit card number of a random type. Likely 16 digits, but could be 14-19.
-
bic
Generates a random Business Identifier Code -
iban
Generates a random IBAN (International Bank Account Number). The country code is chosen randomly from the supported countries. The generated IBAN will pass the checksum test.- Returns:
- a valid IBAN
-
iban
Generates an IBAN for the given country code. The generated IBAN will pass the checksum test.- Parameters:
countryCode- the 2-letter country code for the IBAN.- Returns:
- a valid IBAN
-
usRoutingNumber
Generates a random US bank routing number of 9 characters. The number will pass the checksum test.- Returns:
- a valid US bank routing number
-