aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2014-02-08 22:53:05 +0200
committerFilipp Lepalaan <f@230.to>2014-02-08 22:53:05 +0200
commitd525aa09517356762b09acd286615c1027fcb2a7 (patch)
treef5060b456dca63e51e8fe10df07d456eb0d599d9 /gsxws
parentd54b9fbaefb042c3c5610c42664bbfe3bade11dc (diff)
downloadpy-gsxws-d525aa09517356762b09acd286615c1027fcb2a7.tar.gz
py-gsxws-d525aa09517356762b09acd286615c1027fcb2a7.tar.bz2
py-gsxws-d525aa09517356762b09acd286615c1027fcb2a7.zip
Added check for valid Apple device
Diffstat (limited to 'gsxws')
-rw-r--r--gsxws/products.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gsxws/products.py b/gsxws/products.py
index 38a0b7a..db2d7da 100644
--- a/gsxws/products.py
+++ b/gsxws/products.py
@@ -182,6 +182,10 @@ class Product(object):
return self.is_iphone or self.is_ipad
@property
+ def is_valid(self):
+ return self.is_iphone or self.is_ipad or self.is_mac
+
+ @property
def has_warranty(self):
return self.warrantyDetails.limitedWarranty