aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2018-04-02 15:30:11 +0300
committerFilipp Lepalaan <filipp@mac.com>2018-04-02 15:30:11 +0300
commit6a85a5436da262b807e895832347e1e888c3f12a (patch)
tree18ebc2baf0d2c288a6a6e01907e42a80a23383df /gsxws
parente9c225e5c227ef89a53c2a04619a4d044d6a9791 (diff)
parent06b95338b1f675b69d1c82ffe463fb30a9aea15b (diff)
downloadpy-gsxws-6a85a5436da262b807e895832347e1e888c3f12a.tar.gz
py-gsxws-6a85a5436da262b807e895832347e1e888c3f12a.tar.bz2
py-gsxws-6a85a5436da262b807e895832347e1e888c3f12a.zip
Merge branch 'master' of github.com:filipp/py-gsxws
Diffstat (limited to 'gsxws')
-rw-r--r--gsxws/repairs.py29
1 files changed, 20 insertions, 9 deletions
diff --git a/gsxws/repairs.py b/gsxws/repairs.py
index 0252a0a..10da94c 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