-
Notifications
You must be signed in to change notification settings - Fork 549
/
Copy path13_homework_03.cpp
68 lines (57 loc) · 1.07 KB
/
13_homework_03.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#include <bits/stdc++.h>
using namespace std;
// PayPalCreditCard and PayPalOnlinePaymentAPI are NOT our code. They are Paypal API.
// We have to use them to be able to call PayPal service
class PayPalCreditCard {
public:
string name;
string address;
string id;
string expire_date;
int ccv;
};
class PayPalOnlinePaymentAPI {
public:
void SetCardInfo(const PayPalCreditCard* const card) {
}
bool MakePayment(double money) {
return true;
}
};
class StripeUserInfo {
public:
string name;
string address;
};
class StripeCardInfo {
public:
string id;
string expire_date;
};
class StripePaymentAPI {
public:
bool static WithDrawMoney(StripeUserInfo user,
StripeCardInfo card,
double money) {
return true;
}
};
class TransactionInfo {
public:
double required_money_amount;
string name;
string address;
string id;
string expire_date;
int ccv;
};
class Craigslist {
public:
bool Pay(TransactionInfo) {
//TODO: generic (no nothing about Paypal)
}
};
int main()
{
return 0;
}