-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAmazon.h
More file actions
48 lines (35 loc) · 801 Bytes
/
Copy pathAmazon.h
File metadata and controls
48 lines (35 loc) · 801 Bytes
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
#ifndef AMAZON_H
#define AMAZON_H
#include <vector>
#include <string>
using namespace std;
#include "include/DBSchema.h"
#include "include/File.h"
#include "include/DBFile.h"
#include "include/Coordinator.h"
class Amazon
{
private:
string branch_name;
File *customer_db;
DBSchema *customer_db_schema;
File *payment_db;
DBSchema *payment_db_schema;
File *shipping_db;
DBSchema *shipping_db_schema;
Coordinator *coord;
int userCount;
int paymentCount;
int shippingCount;
public:
Amazon(string branch_name);
~Amazon();
int registerUser();
vector <string> getUserDetails(string id);
vector <string> getTransactionDetails(string id);
void printAllTransactions();
int updateUserDetails();
int makePayment();
void testCase();
};
#endif