-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathOrder.py
98 lines (76 loc) · 2.15 KB
/
Order.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
class Order:
def __init__(self, order_num = "", ordered_date="", from_suburb="",from_state="", from_pcode ="", to_suburb="" , to_state="", to_pcode="", item_qty="", weight="", volume=""):
self._orderNum = order_num
self._orderedDate = ordered_date
self._fromSuburb = from_suburb
self._fromState = from_state
self._fromPCode = from_pcode
self._toSuburb = to_suburb
self._toState = to_state
self._toPCode = to_pcode
self._itemQty = item_qty
self._volume = volume
self._weight = weight
@property
def order_num(self):
return self._orderNum
@property
def ordered_date(self):
return self._orderedDate
@ordered_date.setter
def ordered_date(self, value):
self._orderedDate = value
@property
def from_suburb(self):
return self._fromSuburb
@from_suburb.setter
def from_suburb(self, value):
self._fromSuburb = value
@property
def from_state(self):
return self._fromState
@from_state.setter
def from_state(self, value):
self._fromState = value
@property
def from_pcode(self):
return self._fromPCode
@from_pcode.setter
def from_pcode(self, value):
self._fromPcode = value
@property
def to_suburb(self):
return self.toSuburb
@to_suburb.setter
def to_suburb(self, value):
self._toSuburb = value
@property
def to_state(self):
return self.toState
@to_state.setter
def to_state(self, value):
self._toState = value
@property
def to_pcode(self):
return self._toPCode
@to_pcode.setter
def to_pcode(self, value):
self._toPCode = value
@property
def item_qty(self):
return self._itemQty
@item_qty.setter
def item_qty(self, value):
self._itemQty = value
@property
def volume(self):
return self._volume
@volume.setter
def volume(self, value):
self._volume = value
@property
def weight(self):
return self._weight
@weight.setter
def weight(self, value):
self._weight = value