diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-08-14 11:06:44 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-08-14 11:06:44 +0300 |
commit | 1813cbdc753d74477dcc9f2aad43cbb9a0119e9e (patch) | |
tree | 69975c736e88c2ef53f268fbd92a6fda05332c39 | |
parent | 873282c158faa9bbd4716dab5280bf537543ce48 (diff) | |
download | py-gsxws-1813cbdc753d74477dcc9f2aad43cbb9a0119e9e.tar.gz py-gsxws-1813cbdc753d74477dcc9f2aad43cbb9a0119e9e.tar.bz2 py-gsxws-1813cbdc753d74477dcc9f2aad43cbb9a0119e9e.zip |
Added Mail-in repair support
-rw-r--r-- | gsxws/repairs.py | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/gsxws/repairs.py b/gsxws/repairs.py index 52945b7..b7716ae 100644 --- a/gsxws/repairs.py +++ b/gsxws/repairs.py @@ -54,11 +54,21 @@ class SymptomIssue(GsxObject): _namespace = "asp:" def fetch(self): - self._submit("requestData", "ReportedSymptomIssueRequest", + self._submit("requestData", "ReportedSymptomIssue", "ReportedSymptomIssueResponse") return self._req.objects.reportedSymptomIssueResponse +class CompTiaCode(GsxObject): + """ + Data type used to provide comptia codes + """ + comptiaCode = "" + comptiaModifier = "" + comptiaGroup = "" + technicianNote = "" + + class Customer(GsxObject): """ Customer address for GSX @@ -347,6 +357,16 @@ class WholeUnitExchange(Repair): return self._submit("repairData", "CreateWholeUnitExchange", "repairConfirmation") +class MailInRepair(Repair): + """ + This API allows the submission of Mail-In Repair information into GSX, + resulting in the creation of a GSX Mail-In Repair. + """ + def create(self): + self._namespace = "asp:" + return self._submit("repairData", "CreateMailInRepair", "repairConfirmation") + + if __name__ == '__main__': import doctest from core import connect |