WMGZON/models/order.py

16 lines
300 B
Python
Raw Normal View History

from datetime import datetime
2024-01-21 22:06:06 +00:00
class Order:
'''
Constructor for an order object
'''
2024-01-21 22:06:06 +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()