@@ 104,7 104,8 @@ class Order(KunakiRequest):
"""
self.products.append(product)
- def get_order_id(self):
+ @property
+ def order_id(self):
""" Returns the order id from the Kunaki Order response.
"""
assert self.response is not None
@@ 129,19 130,22 @@ class OrderStatus(KunakiRequest):
ET.SubElement(order_status, 'OrderId').text = unicode(self.order_id)
return order_status
- def get_status(self):
+ @property
+ def status(self):
""" Returns the status from the Order Status response.
"""
assert self.response is not None
return self.response.find('OrderStatus').text
- def get_tracking_type(self):
+ @property
+ def tracking_type(self):
""" Returns the tracking type from the Order Status response.
"""
assert self.response is not None
return self.response.find('TrackingType').text
- def get_tracking_id(self):
+ @property
+ def tracking_id(self):
""" Returns the tracking id from the Order Status response.
"""
assert self.response is not None