Molybden API
Loading...
Searching...
No Matches
credit_card.hpp
1// Copyright (c) 2000-2023 TeamDev Ltd. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOLYBDEN_CREDIT_CARD_HPP
6#define MOLYBDEN_CREDIT_CARD_HPP
7
8#include <string>
9
10namespace molybden {
11
15enum class CreditCardNetwork {
16 kUnspecified,
17 kAmericanExpress,
18 kDiners,
19 kDiscover,
20 kElo,
21 kGeneric,
22
26 kJcb,
27
28 kMasterCard,
29 kMir,
30 kTroy,
31 kUnionPay,
32 kVisa
33};
34
38struct CreditCard {
42 std::string holder;
43
47 std::string number;
48
53 std::string guid;
54
59
64
68 CreditCardNetwork network;
69};
70
71} // namespace molybden
72
73#endif // MOLYBDEN_CREDIT_CARD_HPP
The credit card information persisted in the credit card store.
Definition credit_card.hpp:38
uint32_t expiration_month
The expiration month of the credit card.
Definition credit_card.hpp:58
uint32_t expiration_year
The expiration year of the credit card.
Definition credit_card.hpp:63
std::string number
The card number.
Definition credit_card.hpp:47
CreditCardNetwork network
The network issuer of the card.
Definition credit_card.hpp:68
std::string guid
An internal field used for identifying a credit card by Chromium.
Definition credit_card.hpp:53
std::string holder
The name of the cardholder entered by the user.
Definition credit_card.hpp:42