aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/products.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-08-16 23:18:41 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-08-16 23:18:41 +0300
commit67b970b86dd259e5fed2846fc30d8bb29648adfe (patch)
tree9cd2693b1414e5a529e0b5687d9f739759fd5328 /gsxws/products.py
parentca518df1ac4c08a8d352871fc9aa207443fc5fab (diff)
downloadpy-gsxws-67b970b86dd259e5fed2846fc30d8bb29648adfe.tar.gz
py-gsxws-67b970b86dd259e5fed2846fc30d8bb29648adfe.tar.bz2
py-gsxws-67b970b86dd259e5fed2846fc30d8bb29648adfe.zip
Unset alternateDeviceId in warranty()
Diffstat (limited to 'gsxws/products.py')
-rw-r--r--gsxws/products.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gsxws/products.py b/gsxws/products.py
index d7ef569..d1b5b01 100644
--- a/gsxws/products.py
+++ b/gsxws/products.py
@@ -73,8 +73,9 @@ class Product(object):
"""
if self.should_check_activation:
ad = self.activation()
+ self._gsx.serialNumber = ad.serialNumber
# "Please enter either a serial number or an IMEI number but not both."
- return Product(ad.serialNumber).warranty()
+ self._gsx.unset('alternateDeviceId')
if ship_to is not None:
self._gsx.shipTo = ship_to
@@ -91,6 +92,7 @@ class Product(object):
self._gsx.unitReceivedDate = date_received
self._gsx._submit("unitDetail", "WarrantyStatus", "warrantyDetailInfo")
+
self.warrantyDetails = self._gsx._req.objects
self.imageURL = self.warrantyDetails.imageURL
self.productDescription = self.warrantyDetails.productDescription