aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2014-02-11 14:00:39 +0200
committerFilipp Lepalaan <f@230.to>2014-02-11 14:00:39 +0200
commit187735f29c43e5356b8d153f7db82e05d2440d60 (patch)
tree0d850700aa083028a1cb0edb4f35e1661e09e06e /gsxws
parenta43abda459976fa996028f29bbb28a731567d2c6 (diff)
downloadpy-gsxws-187735f29c43e5356b8d153f7db82e05d2440d60.tar.gz
py-gsxws-187735f29c43e5356b8d153f7db82e05d2440d60.tar.bz2
py-gsxws-187735f29c43e5356b8d153f7db82e05d2440d60.zip
Added unitReceivedDate to Product.warranty()
Diffstat (limited to 'gsxws')
-rw-r--r--gsxws/products.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gsxws/products.py b/gsxws/products.py
index db2d7da..a9073d6 100644
--- a/gsxws/products.py
+++ b/gsxws/products.py
@@ -49,7 +49,7 @@ class Product(object):
self.configCode = result.configCode
return result
- def warranty(self, parts=[]):
+ def warranty(self, parts=[], date_received=None):
"""
The Warranty Status API retrieves the same warranty details
displayed on the GSX Coverage screen.
@@ -79,6 +79,9 @@ class Product(object):
except Exception:
pass
+ if date_received:
+ self._gsx.unitReceivedDate = date_received
+
self._gsx._submit("unitDetail", "WarrantyStatus", "warrantyDetailInfo")
self.warrantyDetails = self._gsx._req.objects
self.imageURL = self.warrantyDetails.imageURL