From eaeca995a5e8f92888411f325c5ecab81108a34e Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 22 Mar 2013 16:09:50 +0200 Subject: Added UpdateSerialNumber --- gsxws.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'gsxws.py') diff --git a/gsxws.py b/gsxws.py index a87e892..4b9683b 100755 --- a/gsxws.py +++ b/gsxws.py @@ -361,7 +361,8 @@ class Lookup(GsxObject): """ The Repair Lookup API mimics the front-end repair search functionality. It fetches up to 2500 repairs in a given criteria. - Subsequently, the extended Repair Status API can be used to retrieve more details of the repair. + Subsequently, the extended Repair Status API can be used + to retrieve more details of the repair. """ dt = CLIENT.factory.create('ns6:repairLookupInfoType') request = CLIENT.factory.create('ns1:repairLookupRequestType') @@ -593,6 +594,21 @@ class Repair(GsxObject): return self.submit('CarryInRepairUpdate', dt, 'repairConfirmation') + def update_sn(self, parts): + """ + Description + The Update Serial Number API allows the service providers to + update the module serial numbers. + Context: + The API is not applicable for whole unit replacement + serial number entry (see KGB serial update). + """ + dt = self._make_type('ns1:updateSerialNumberRequestType') + self.data['partInfo'] = parts + dt.repairData = self.data + + return self.submit('UpdateSerialNumber', dt, 'repairConfirmation') + def update_kgb_sn(self, sn): """ Description: -- cgit v1.2.3