-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel.py
48 lines (38 loc) · 973 Bytes
/
model.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import json
class Product:
def __init__(self):
self.id = 0
self.productId = ''
self.title = ''
self.price = 0
self.cost = 0
self.netPrice = 0
self.compare_at_price = 0
self.quantity = 0
self.description = ''
self.status = ''
self.pictures = []
self.brandName = ''
self.gallery = ''
self.category = ''
self.country = ''
self.site = ''
self.shipping = ''
self.weight = 0
self.category_id = 0
self.sku = ''
self.barcode = ''
def __str__(self):
return f"Id: {self.id}, title: {self.title}"
class ShopifyProductDTO:
def __init__(self):
self.id = 0
self.sku = ''
def __str__(self):
return f"Id : {self.id}, sku : {self.sku}"
class ShopifyCategory:
id = 0
name = ''
def __init__(self, id, name):
self.id = id
self.name = name