@@ -15,23 +15,23 @@ class BookingStatus(Enum):
15
15
16
16
class Account :
17
17
def __init__ (self , id , password , status ):
18
- self .id = id
19
- self .password = password
20
- self .status = status
18
+ self .__id = id
19
+ self .__password = password
20
+ self .__status = status
21
21
22
- def resetPassword (self ):
22
+ def changePassword (self ):
23
23
pass
24
24
25
25
26
26
class Person :
27
- def __init__ (self , full_name , address , phone_number , email , birth_date , emergency_contact , emergency_contact_phone_number ):
28
- self .full_name = full_name
29
- self .address = address
30
- self .phone_number = phone_number
31
- self .email = email
32
- self .birth_date = birth_date
33
- self .emergency_contact = emergency_contact
34
- self .emergency_contact_phone_number = emergency_contact_phone_number
27
+ def __init__ (self , fullname , email , phone_number , address , birth_date , emergency_contact_fullname , emergency_contact_phone_number ):
28
+ self .__fullname = fullname
29
+ self .__email = email
30
+ self .__phone_number = phone_number
31
+ self .__address = address
32
+ self .__birth_date = birth_date
33
+ self .__emergency_contact_fullname = emergency_contact_fullname
34
+ self .__emergency_contact_phone_number = emergency_contact_phone_number
35
35
36
36
def makeBooking (self ):
37
37
pass
@@ -40,96 +40,110 @@ def getBooking(self):
40
40
pass
41
41
42
42
43
- class Admin (Person ):
44
- def __init__ (self , full_name , address , phone_number , email , birth_date , emergency_contact , emergency_contact_phone_number ):
45
- super ().__init__ (full_name , address , phone_number , email ,
46
- birth_date , emergency_contact , emergency_contact_phone_number )
47
-
48
- def addField (self ):
49
- pass
43
+ class FrontDesk (Person ):
44
+ def __init__ (self , fullname , email , phone_number , address , birth_date , emergency_contact_fullname , emergency_contact_phone_number ):
45
+ super ().__init__ (fullname , email , phone_number , address , birth_date ,
46
+ emergency_contact_fullname , emergency_contact_phone_number )
50
47
51
48
def addBooking (self ):
52
49
pass
53
50
54
- def addNews (self ):
51
+ def addSlot (self ):
55
52
pass
56
53
57
- def addSlot (self ):
54
+ def approveBooking (self ):
58
55
pass
59
56
60
57
61
58
class Customer (Person ):
62
- def __init__ (self , full_name , address , phone_number , email , birth_date , emergency_contact , emergency_contact_phone_number ):
63
- super ().__init__ (full_name , address , phone_number , email ,
64
- birth_date , emergency_contact , emergency_contact_phone_number )
59
+ def __init__ (self , fullname , email , phone_number , address , birth_date , emergency_contact_fullname , emergency_contact_phone_number ):
60
+ super ().__init__ (fullname , email , phone_number , address , birth_date ,
61
+ emergency_contact_fullname , emergency_contact_phone_number )
65
62
66
63
67
- class Guest :
68
- def __init__ (self ):
64
+ class Admin (Person ):
65
+ def __init__ (self , fullname , email , phone_number , address , birth_date , emergency_contact_fullname , emergency_contact_phone_number ):
66
+ super ().__init__ (fullname , email , phone_number , address , birth_date ,
67
+ emergency_contact_fullname , emergency_contact_phone_number )
68
+
69
+ def addField (self ):
69
70
pass
70
71
71
- def registerAccount (self ):
72
+ def editField (self ):
72
73
pass
73
74
75
+ def deleteField (self ):
76
+ pass
74
77
75
- class Booking :
76
- def __init__ (self , booking_id , status , created_on , description ):
77
- self .booking_id = booking_id
78
- self .status = status
79
- self .created_on = created_on
80
- self .description = description
78
+ def addBooking (self ):
79
+ pass
81
80
82
- def cancel (self ):
81
+ def approveBooking (self ):
83
82
pass
84
83
85
- def approve (self ):
84
+ def addNews (self ):
86
85
pass
87
86
87
+ def editNews (self ):
88
+ pass
88
89
89
- class Slot :
90
- def __init__ (self , created_on , start_time , end_time ):
91
- self .created_on = created_on
92
- self .start_time = start_time
93
- self .end_time = end_time
90
+ def deleteNews (self ):
91
+ pass
94
92
93
+ def addSlot (self ):
94
+ pass
95
95
96
- class SlotDate (Slot ):
97
- def __init__ (self , created_on , start_time , end_time , date ):
98
- super ().__init__ (created_on , start_time , end_time )
99
- self .date = date
96
+ def editSlot (self ):
97
+ pass
100
98
99
+ def deleteSlot (self ):
100
+ pass
101
101
102
- class Field :
103
- def __init__ (self , name , description , price_by_slot , category , type ):
104
- self .name = name
105
- self .description = description
106
- self .price_by_slot = price_by_slot
107
- self .category = category
108
- self .type = type
102
+ def blockUser (self ):
103
+ pass
109
104
110
- def getSlot (self ):
105
+
106
+ class Guest :
107
+ def __init__ (self ):
111
108
pass
112
109
110
+ def registerAccount (self ):
111
+ pass
113
112
114
- class Category :
115
- def __init__ (self , field_category ):
116
- self .field_category = field_category
113
+ def loginAccount (self ):
114
+ pass
117
115
118
116
119
117
class News :
120
118
def __init__ (self , title , content , image_url , created_on , status ):
121
- self .title = title
122
- self .content = content
123
- self .image_url = image_url
124
- self .created_on = created_on
125
- self .status = status
119
+ self .__title = title
120
+ self .__content = content
121
+ self .__image_url = image_url
122
+ self .__created_on = created_on
123
+ self .__status = status
124
+
125
+
126
+ class Booking :
127
+ def __init__ (self , booking_id , status , created_on , description ):
128
+ self .__booking_id = booking_id
129
+ self .__status = status
130
+ self .__created_on = created_on
131
+ self .__description = description
132
+
133
+ def cancel (self ):
134
+ pass
135
+
136
+
137
+ class BookingHistory :
138
+ def __init__ (self , booking ):
139
+ self .__booking = booking
126
140
127
141
128
142
class Equipment :
129
143
def __init__ (self , name , price , item ):
130
- self .name = name
131
- self .price = price
132
- self .item = item
144
+ self .__name = name
145
+ self .__price = price
146
+ self .__item = item
133
147
134
148
135
149
class Vest (Equipment ):
@@ -142,18 +156,54 @@ def __init__(self, name, price, item):
142
156
super ().__init__ (name , price , item )
143
157
144
158
159
+ class Slot :
160
+ def __init__ (self , created_on , start_time , end_time ):
161
+ self .__created_on = created_on
162
+ self .__start_time = start_time
163
+ self .__end_time = end_time
164
+
165
+
166
+ class SlotDate (Slot ):
167
+ def __init__ (self , created_on , start_time , end_time , date ):
168
+ super ().__init__ (created_on , start_time , end_time )
169
+ self .__date = date
170
+
171
+
172
+ class Field :
173
+ def __init__ (self , name , description , price_by_slot , category , type ):
174
+ self .__name = name
175
+ self .__description = description
176
+ self .__price_by_slot = price_by_slot
177
+ self .__category = category
178
+ self .__type = type
179
+
180
+ def getSlot (self ):
181
+ pass
182
+
183
+
184
+ class Category :
185
+ def __init__ (self , fields ):
186
+ self .__field_category = fields
187
+
188
+ def search_by_category (self ):
189
+ pass
190
+
191
+ def search_by_date (self ):
192
+ pass
193
+
194
+
145
195
class Payment :
146
196
def __init__ (self , amount , created_on , payment_status , transaction_id ):
147
- self .amount = amount
148
- self .created_on = created_on
149
- self .payment_status = payment_status
150
- self .transaction_id = transaction_id
197
+ self .__amount = amount
198
+ self .__created_on = created_on
199
+ self .__payment_status = payment_status
200
+ self .__transaction_id = transaction_id
151
201
152
202
153
203
class QRCodeTransaction (Payment ):
154
- def __init__ (self , amount , created_on , payment_status , transaction_id , qrcode_url ):
204
+ def __init__ (self , amount , created_on , payment_status , transaction_id , qr_code ):
155
205
super ().__init__ (amount , created_on , payment_status , transaction_id )
156
- self .qrcode_url = qrcode_url
206
+ self .__qr_code = qr_code
157
207
158
208
159
209
class CashTransaction (Payment ):
0 commit comments