Beispiel #1
0
 def __init__(self,
              customer_name='',
              phone_number='',
              shipping_address='',
              billing_address='',
              delivery_date='',
              payment_method='',
              payment_date='',
              shipping_fee='',
              tax_rate='',
              items='',
              customer_id=''):
     self.order_id = Common.generate_id()
     self.transaction_date = Common.set_date(Date.today())
     self.customer_name = customer_name
     self.phone_number = phone_number
     self.shipping_address = shipping_address
     self.billing_address = billing_address
     self.tracking_id = Common.generate_tracking_number()
     self.delivery_status = "Pending"
     self.delivery_date = delivery_date
     self.payment_date = payment_date
     self.payment_status = "Pending"
     self.payment_method = payment_method
     self.shipping_fee = shipping_fee
     self.tax_rate = tax_rate
     self.items = items
     self.customer_id = customer_id
     self.sub_total = 0.00
     self.number_of_items = 0
Beispiel #2
0
 def __init__(self,
              email='',
              password='',
              first_name='',
              middle_name='',
              last_name='',
              phone_number='',
              billing_address='',
              shipping_address=''):
     self.customer_id = Common.generate_id()
     self.email = email
     self.password = password
     self.first_name = first_name
     self.middle_name = middle_name
     self.last_name = last_name
     self.phone_number = phone_number
     self.billing_address = billing_address
     self.shipping_address = shipping_address
     self.middle_initial = ''
     self.full_name = ''