From 1813cbdc753d74477dcc9f2aad43cbb9a0119e9e Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 14 Aug 2015 11:06:44 +0300 Subject: Added Mail-in repair support --- gsxws/repairs.py | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'gsxws') 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 -- cgit v1.2.3