aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/repairs.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-05-13 18:44:29 +0300
committerFilipp Lepalaan <f@230.to>2013-05-13 18:44:29 +0300
commit5f6da8bfcfd2ad8380815b6b5f309c9985873eb1 (patch)
tree66372fdce3cc2f7092c2ea7b11411a4f095fe97a /gsxws/repairs.py
parent59d7edde59e4bc3b4064a1fb3f36eb20393ff646 (diff)
downloadpy-gsxws-5f6da8bfcfd2ad8380815b6b5f309c9985873eb1.tar.gz
py-gsxws-5f6da8bfcfd2ad8380815b6b5f309c9985873eb1.tar.bz2
py-gsxws-5f6da8bfcfd2ad8380815b6b5f309c9985873eb1.zip
More to_xml nesting fixes!
Diffstat (limited to 'gsxws/repairs.py')
-rw-r--r--gsxws/repairs.py33
1 files changed, 10 insertions, 23 deletions
diff --git a/gsxws/repairs.py b/gsxws/repairs.py
index 2a17144..c411174 100644
--- a/gsxws/repairs.py
+++ b/gsxws/repairs.py
@@ -6,6 +6,15 @@ import logging
from core import GsxObject
from lookups import Lookup
+REPAIR_TYPES = (
+ ('CA', "Carry-In/Non-Replinished"),
+ ('NE', "Return Before Replace"),
+ ('NT', "No Trouble Found"),
+ ('ON', "Onsite (Indirect/Direct)"),
+ ('RR', "Repair Or Replace/Whole Unit Mail-In"),
+ ('WH', "Mail-In"),
+)
+
class Customer(GsxObject):
"""
@@ -35,30 +44,8 @@ class RepairOrderLine(GsxObject):
class Repair(GsxObject):
"Base class for the different GSX Repair types"
- notes = ""
- symptom = ""
- diagnosis = ""
- serialNumber = ""
- referenceNumber = ""
- unitReceivedDate = ""
- unitReceivedTime = ""
- requestReview = False
- customerAddress = None
- purchaseOrderNumber = ""
-
- orderLines = []
-
_namespace = "asp:"
- TYPES = (
- ('CA', "Carry-In/Non-Replinished"),
- ('NE', "Return Before Replace"),
- ('NT', "No Trouble Found"),
- ('ON', "Onsite (Indirect/Direct)"),
- ('RR', "Repair Or Replace/Whole Unit Mail-In"),
- ('WH', "Mail-In"),
- )
-
def __init__(self, number=None, **kwargs):
super(Repair, self).__init__(**kwargs)
@@ -143,7 +130,7 @@ class Repair(GsxObject):
for the submitted repair confirmation number(s).
>>> Repair('G135773004').status().repairStatus
- 'Closed and Completed'
+ u'Closed and Completed'
"""
self.repairConfirmationNumbers = self.dispatchId
status = self._submit("RepairStatusRequest", "RepairStatus", "repairStatus")[0]