Faker C++
|
#include <string>
#include <string_view>
#include "faker-cxx/export.h"
#include "faker-cxx/types/locale.h"
#include "types/precision.h"
Go to the source code of this file.
Classes | |
struct | faker::finance::Currency |
Namespaces | |
namespace | faker |
namespace | faker::finance |
Enumerations | |
enum class | faker::finance::CreditCardType { faker::finance::AmericanExpress , faker::finance::Discover , faker::finance::MasterCard , faker::finance::Visa } |
Functions | |
FAKER_CXX_EXPORT Currency | faker::finance::currency () |
Returns a random currency. | |
FAKER_CXX_EXPORT std::string_view | faker::finance::currencyName () |
Returns a random currency name. | |
FAKER_CXX_EXPORT std::string_view | faker::finance::currencyCode () |
Returns a random currency code. | |
FAKER_CXX_EXPORT std::string_view | faker::finance::currencySymbol () |
Returns a random currency symbol. | |
FAKER_CXX_EXPORT std::string_view | faker::finance::accountType () |
Returns a random account type. | |
FAKER_CXX_EXPORT std::string | faker::finance::amount (double min=0, double max=1000, Precision precision=Precision::TwoDp, const std::string &symbol="") |
Generates a random amount between the given bounds (inclusive). | |
FAKER_CXX_EXPORT std::string | faker::finance::iban (Locale locale=Locale::de_DE) |
Generates a random IBAN. | |
FAKER_CXX_EXPORT std::string_view | faker::finance::bic (Locale locale=Locale::en_US) |
Generates a random BIC. | |
FAKER_CXX_EXPORT std::string | faker::finance::accountNumber (unsigned length=8) |
Generates a random account number. | |
FAKER_CXX_EXPORT std::string | faker::finance::pin (unsigned length=4) |
Generates a random PIN number. | |
FAKER_CXX_EXPORT std::string | faker::finance::routingNumber () |
Generates a random routing number. | |
FAKER_CXX_EXPORT std::string | faker::finance::creditCardNumber (CreditCardType creditCardType=CreditCardType::Visa) |
Generates a random credit card number. | |
FAKER_CXX_EXPORT std::string | faker::finance::creditCardCvv () |
Generates a random credit card CVV. | |
FAKER_CXX_EXPORT std::string | faker::finance::bitcoinAddress () |
Generates a random bitcoin address. | |
FAKER_CXX_EXPORT std::string | faker::finance::litecoinAddress () |
Generates a random litecoin address. | |
FAKER_CXX_EXPORT std::string | faker::finance::ethereumAddress () |
Generates a random ethereum address. | |
FAKER_CXX_EXPORT std::string | faker::finance::creditCardExpirationDate () |
Generates a random expiration date. | |
FAKER_CXX_EXPORT std::string_view | faker::finance::creditCardType () |
Generates a random credit card type. | |