From 187735f29c43e5356b8d153f7db82e05d2440d60 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 11 Feb 2014 14:00:39 +0200 Subject: Added unitReceivedDate to Product.warranty() --- gsxws/products.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3