From 09ef2e20882af372ccdc71923c9f15a8f16f8443 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sat, 16 Aug 2014 14:20:54 +0300 Subject: Added ShipTo argument to warranty check --- gsxws/products.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gsxws/products.py') diff --git a/gsxws/products.py b/gsxws/products.py index b1bd5a7..f0bab00 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=[], date_received=None): + def warranty(self, parts=[], date_received=None, ship_to=None): """ The Warranty Status API retrieves the same warranty details displayed on the GSX Coverage screen. @@ -71,6 +71,9 @@ class Product(object): if self.should_check_activation: self.activation() + if ship_to: + self._gsx.shipTo = ship_to + try: self._gsx.partNumbers = [] for k, v in parts: -- cgit v1.2.3