diff options
author | Erik Tobiassen <erik@vivalto.no> | 2016-03-30 23:12:52 +0200 |
---|---|---|
committer | Erik Tobiassen <erik@vivalto.no> | 2016-03-30 23:12:52 +0200 |
commit | f405dc504b62e5b8157429fe36a1f96d83c97b61 (patch) | |
tree | b47632a1f12057c6941626434e9fe706ed425d38 /gsxlib.php | |
parent | 68d471d690a4d83e7a30507ec205afebffc0572b (diff) | |
download | gsxlib-f405dc504b62e5b8157429fe36a1f96d83c97b61.tar.gz gsxlib-f405dc504b62e5b8157429fe36a1f96d83c97b61.tar.bz2 gsxlib-f405dc504b62e5b8157429fe36a1f96d83c97b61.zip |
warrantyStatus method updated for May upgrade
- Added shipTo to the $serialNumber array.
- Added warranty status example.
Diffstat (limited to 'gsxlib.php')
-rw-r--r-- | gsxlib.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -478,11 +478,12 @@ class GsxLib /** * A shortcut for checking warranty status of device + * UPDATE: Now includes shipTo as per GSX update May 2016. */ - public function warrantyStatus($serialNumber) + public function warrantyStatus($serialNumber, $ship_to) { if(!is_array($serialNumber)) { - $serialNumber = array('serialNumber' => $serialNumber); + $serialNumber = array('serialNumber' => $serialNumber, 'shipTo' => $ship_to); } if(array_key_exists('alternateDeviceId', $serialNumber)) { |