diff options
author | Filipp Lepalaan <f@230.to> | 2014-02-11 14:00:39 +0200 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2014-02-11 14:00:39 +0200 |
commit | 187735f29c43e5356b8d153f7db82e05d2440d60 (patch) | |
tree | 0d850700aa083028a1cb0edb4f35e1661e09e06e | |
parent | a43abda459976fa996028f29bbb28a731567d2c6 (diff) | |
download | py-gsxws-187735f29c43e5356b8d153f7db82e05d2440d60.tar.gz py-gsxws-187735f29c43e5356b8d153f7db82e05d2440d60.tar.bz2 py-gsxws-187735f29c43e5356b8d153f7db82e05d2440d60.zip |
Added unitReceivedDate to Product.warranty()
-rw-r--r-- | gsxws/products.py | 5 |
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 |