Faker Elixir (octopus) v1.0.2 FakerElixir.Bank

Generate fake date related to the Bank domain

Summary

Functions

Generate a credit card CVV

Return a credit card expiration date (more chances to be a valid one)

Return a valid or invalid credit card expiration date

Return a credit card number

Return a credit card type

Generate a credit card with details

Return the name of a bank

Functions

credit_card_cvv()

Generate a credit card CVV

Examples

iex> FakerElixir.Bank.credit_card_cvv
"914"
credit_card_expiration_date()

Return a credit card expiration date (more chances to be a valid one)

Examples

iex> FakerElixir.Bank.credit_card_expiration_date
"08/2017"
credit_card_expiration_date(atom)

Return a valid or invalid credit card expiration date

Examples

iex> FakerElixir.Bank.credit_card_expiration_date(:valid)
"06/2023"
iex> FakerElixir.Bank.credit_card_expiration_date(:invalid)
"03/2009"
credit_card_number()

Return a credit card number

Examples

iex> FakerElixir.Bank.credit_card_number
"34521702751096"
credit_card_type()

Return a credit card type

Examples

iex> FakerElixir.Bank.credit_card_type
"MasterCard"
make_credit_card()

Generate a credit card with details

Examples

iex> FakerElixir.Bank.make_credit_card
%{cvv: "188", expiration_date: "12/2006", name: "LLEWELLYN WEBER", number: "601141761193874", type: "Discover Card"}
name()

Return the name of a bank

Examples

iex> FakerElixir.Bank.name
"Goldman Sachs Group"