faker.providers.credit_card.ru_RU
¶
Package Contents¶
Classes¶
Implement default credit card provider for Faker. |
|
Implement credit card provider for |
Functions¶
|
Attributes¶
- faker.providers.credit_card.ru_RU.CardType¶
- class faker.providers.credit_card.ru_RU.CreditCard(name: str, prefixes: List[str], length: int = 16, security_code: str = 'CVC', security_code_length: int = 3)¶
- class faker.providers.credit_card.ru_RU.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 isNone
. 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',...¶
- 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_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
andend
arguments work in the same way here as it would in that method. For the actual formatting of the expiry date, |strftime| is used anddate_format
is simply passed to that method.
- 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.
- class faker.providers.credit_card.ru_RU.Provider(generator: Any)¶
Bases:
faker.providers.credit_card.Provider
Implement credit card provider for
ru_RU
locale.For all methods that take
card_type
as an argument, a random card type will be used if the supplied value isNone
. The list of valid card types includes'amex'
,'maestro'
,'mastercard'
,'mir'
,'unionpay'
, and'visa'
.Sources:
- prefix_visa = ['4']¶
- prefix_mastercard = ['51', '52', '53', '54', '55', '222%', '223', '224', '225', '226', '227', '228', '229', '23',...¶
- prefix_mir = ['2200', '2201', '2202', '2203', '2204']¶
- prefix_maestro = ['50', '56', '57', '58', '59', '60', '61', '62', '63', '64', '65', '66', '67', '68', '69']¶
- prefix_amex = ['34', '37']¶
- prefix_unionpay = ['62', '81']¶
- credit_card_types¶