Molybden API
Loading...
Searching...
No Matches
credit_cards.hpp
1// Copyright (c) 2000-2024 TeamDev. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOLYBDEN_CREDIT_CARDS_HPP
6#define MOLYBDEN_CREDIT_CARDS_HPP
7
8#include <vector>
9
10namespace molybden {
11
12class Profile;
13struct CreditCard;
14
19 public:
20 virtual ~CreditCards() = default;
21
28 virtual std::vector<CreditCard> list() = 0;
29
37 virtual void remove(const CreditCard& credit_card) = 0;
38
42 virtual void clear() = 0;
43
47 virtual std::shared_ptr<Profile> profile() = 0;
48};
49
50} // namespace molybden
51
52#endif // MOLYBDEN_CREDIT_CARDS_HPP
The credit card store.
Definition credit_cards.hpp:18
virtual void clear()=0
Clears all records in the store.
virtual void remove(const CreditCard &credit_card)=0
Removes the credit card from the store.
virtual std::vector< CreditCard > list()=0
Returns all saved credit cards in this store.
virtual std::shared_ptr< Profile > profile()=0
The profile of this credit card store.
The credit card information persisted in the credit card store.
Definition credit_card.hpp:38