From 2e8cef4bddba9213495fa8f9fcd4938311ac606f Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Thu, 27 Mar 2014 00:12:58 +0200 Subject: Adding RepairOrReplace support --- gsxws/repairs.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'gsxws/repairs.py') diff --git a/gsxws/repairs.py b/gsxws/repairs.py index 502b9d6..dd9afd3 100644 --- a/gsxws/repairs.py +++ b/gsxws/repairs.py @@ -297,6 +297,26 @@ class IndirectOnsiteRepair(Repair): "repairConfirmation") +class RepairOrReplace(Repair): + """ + The Create Repair or Replace API allows users to submit Repair-Or-Replace information to GSX. + The submissions creates a GSX RoR Repair in the system. + """ + COVERAGE_OPTIONS = ( + ('N', 'No Damage'), + ('A1', 'Battery Service'), + ('A2', 'Returnable Damage'), + ('A3', 'Non-returnable Damage'), + ('X', 'Non-returnable damage covered by AppleCare+'), + ('RPL', 'Replace'), + ('Z', 'Override to Out of Warranty when part is covered by Variable Warranty') + ) + + def create(self): + self._namespace = "asp:" + return self._submit("repairData", "CreateRepairOrReplace", "repairConfirmation") + + class WholeUnitExchange(Repair): """ The Create Whole Unit Exchange API allows the service providers to send -- cgit v1.2.3