aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhusakivskyi <v.s.gusakovskiy@icloud.com>2017-03-02 18:41:26 +0100
committerhusakivskyi <v.s.gusakovskiy@icloud.com>2017-03-02 18:41:26 +0100
commit84e5e1a2437706973254943a22f325c3660c0a32 (patch)
tree323f427d4948709015230726e5c4b767bef225a8
parenta81bbb8faca8fdcac3c31a9a09c7e18a20912a13 (diff)
downloadpy-gsxws-84e5e1a2437706973254943a22f325c3660c0a32.tar.gz
py-gsxws-84e5e1a2437706973254943a22f325c3660c0a32.tar.bz2
py-gsxws-84e5e1a2437706973254943a22f325c3660c0a32.zip
Add depotShipperLabel. Update coverage options.
-rw-r--r--gsxws/repairs.py29
1 files changed, 20 insertions, 9 deletions
diff --git a/gsxws/repairs.py b/gsxws/repairs.py
index 0bea2bd..16a9add 100644
--- a/gsxws/repairs.py
+++ b/gsxws/repairs.py
@@ -349,13 +349,14 @@ class RepairOrReplace(Repair):
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'),
+ ('N', 'No Damage'),
+ ('A1', 'Battery Service'),
+ ('A2', 'Returnable Damage'),
+ ('A3', 'Non-returnable Damage'),
+ ('X', 'Non-returnable damage covered by AppleCare+'),
+ ('RPL', 'Replace'),
+ ('CL', 'Valid Consumer Law Claim'),
+ ('A7', 'Display Only Service'),
)
def create(self):
@@ -380,12 +381,22 @@ class WholeUnitExchange(Repair):
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.
+ resulting in the creation of a GSX Mail-In Repair.
"""
def create(self):
self._namespace = "asp:"
return self._submit("repairData", "CreateMailInRepair", "repairConfirmation")
-
+
+class DepotShipperLabel(GsxObject):
+ """
+ The Depot Shipper Label API allows ASP to Print Depot Shipper Label for
+ RepairOrReplace (whole unit mail-in) repairs.
+ """
+
+ def get_depot_shipper(self):
+ self._namespace = "asp:"
+ self._submit("depotShipperLabelRequest", "depotShipperLabelRequest", "depotShipperLabelResponse")
+ return self._req.objects
if __name__ == '__main__':
import doctest