Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Merchandiser:
- def __init__(self, name):
- self.name = name
- class Client:
- def __init__(self, name, email, phone, country, city, address):
- self.name = name
- self.email = email
- self.phone = phone
- self.country = country
- self.city = city
- self.address = address
- class Product:
- def __init__(self, name, price, size, color):
- self.name = name
- self.price = price
- self.size = size
- self.color = color
- class Order:
- def __init__(self, status, client, payment_type, payment_status):
- self.status = status
- self.client = client
- self.payment_type = payment_type
- self.payment_status = payment_status
- self.products = []
- def add_product(self, product, quantity):
- self.products.append({"product": product, "quantity": quantity, "amount": product.price * quantity})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement