faker.providers.credit_card.fa_IR

Package Contents

Classes

CreditCard

CreditCardProvider

Implement default credit card provider for Faker.

Provider

Implement credit card provider for fa_IR locale.

class faker.providers.credit_card.fa_IR.CreditCard(name: str, prefixes: List[str], length: int = 16, security_code: str = 'CVC', security_code_length: int = 3)
class faker.providers.credit_card.fa_IR.CreditCardProvider(generator: Any)

Bases: faker.providers.BaseProvider

Implement default credit card provider for Faker.

For all methods that take card_type as an argument, a random card type will be used if the supplied value is None. The list of valid card types includes 'amex', 'diners', 'discover', 'jcb', 'jcb15', 'jcb16', 'maestro', 'mastercard', 'visa', 'visa13', 'visa16', and 'visa19'.

Sources:

prefix_maestro: List[str] = ['5018', '5020', '5038', '56##', '57##', '58##', '6304', '6759', '6761', '6762', '6763', '0604', '6390']
prefix_mastercard: List[str] = ['51', '52', '53', '54', '55', '222%', '223', '224', '225', '226', '227', '228', '229', '23',...
prefix_visa: List[str] = ['4']
prefix_amex: List[str] = ['34', '37']
prefix_discover: List[str] = ['6011', '65']
prefix_diners: List[str] = ['300', '301', '302', '303', '304', '305', '36', '38']
prefix_jcb16: List[str] = ['35']
prefix_jcb15: List[str] = ['2131', '1800']
credit_card_types: Dict[str, CreditCard]
luhn_lookup
credit_card_provider(card_type: Optional[CardType] = None) str

Generate a credit card provider name.

credit_card_number(card_type: Optional[CardType] = None) str

Generate a valid credit card number.

credit_card_expire(start: faker.typing.DateParseType = 'now', end: faker.typing.DateParseType = '+10y', date_format: str = '%m/%y') str

Generate a credit card expiry date.

This method uses |date_time_between| under the hood to generate the expiry date, so the start and end arguments work in the same way here as it would in that method. For the actual formatting of the expiry date, |strftime| is used and date_format is simply passed to that method.

credit_card_full(card_type: Optional[CardType] = None) str

Generate a set of credit card details.

credit_card_security_code(card_type: Optional[CardType] = None) str

Generate a credit card security code.

_credit_card_type(card_type: Optional[CardType] = None) CreditCard

Generate a random CreditCard instance of the specified card type.

_generate_number(prefix: str, length: int) str

Generate a credit card number.

The prefix argument is the start of the CC number as a string which

may contain any number of digits. The length argument is the length of the CC number to generate which is typically 13 or 16.

class faker.providers.credit_card.fa_IR.Provider(generator: Any)

Bases: faker.providers.credit_card.Provider

Implement credit card provider for fa_IR locale.

For all methods that take card_type as an argument, a random card type will be used if the supplied value is None. The list of valid card types includes 'ansar', 'bim', 'day', 'eghtesad_novin', 'ghavamin', 'hekmat', 'iran_zamin', 'kar_afarin', 'keshavarzi', 'kosar', 'maskan', 'mehre_ghtesad', 'meli', 'mellal', 'mellat', 'parsian', 'pasargad', 'post_bank', 'refah', 'saderat', 'saman', 'sarmayeh', 'sepah', 'shahr', 'sina', 'tat', 'tejarat', 'tose', and 'tourism_bank'.

Sources:

prefix_ansar = ['627381']
prefix_iran_zamin = ['505785']
prefix_hekmat = ['636949']
prefix_keshavarzi = ['603770']
prefix_shahr = ['502806']
prefix_mehr_eghtesad = ['606373']
prefix_sarmayeh = ['639607']
prefix_post_bank = ['627760']
prefix_tose = ['628157']
prefix_eghtesad_novin = ['627412']
prefix_meli = ['603799']
prefix_pasargad = ['502229']
prefix_tourism_bank = ['505416']
prefix_ghavamin = ['639599']
prefix_day = ['502938']
prefix_mellat = ['610433']
prefix_tejarat = ['585983']
prefix_moasse_mellal = ['606256']
prefix_saman_bank = ['621986']
prefix_kosar = ['505801']
prefix_refah = ['589463']
prefix_saderat = ['603761']
prefix_tat = ['621986']
prefix_sina = ['639346']
prefix_kar_afarin = ['627488']
prefix_sepah = ['589210']
prefix_maskan = ['628023']
prefix_parsian = ['622106']
prefix_bim = ['627961']
credit_card_types