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
Return a credit card expiration date (more chances to be a valid one)
Examples
iex> FakerElixir.Bank.credit_card_expiration_date
"08/2017"
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"
Return a credit card number
Examples
iex> FakerElixir.Bank.credit_card_number
"34521702751096"
Return a credit card type
Examples
iex> FakerElixir.Bank.credit_card_type
"MasterCard"
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"}