2023-12-31 16:27:39 +00:00
|
|
|
from datetime import datetime
|
|
|
|
|
2024-01-21 22:06:06 +00:00
|
|
|
|
2023-12-31 16:27:39 +00:00
|
|
|
class Order:
|
|
|
|
'''
|
|
|
|
Constructor for an order object
|
|
|
|
'''
|
2024-01-21 22:06:06 +00:00
|
|
|
|
2023-12-31 16:27:39 +00:00
|
|
|
def __init__(self):
|
|
|
|
self.id = 0
|
|
|
|
self.sellerID = 0
|
|
|
|
self.customerID = 0
|
|
|
|
self.products = list()
|
|
|
|
self.totalCost = 0.0
|
2024-01-21 22:06:06 +00:00
|
|
|
self.orderDate = datetime.now()
|