diff options
author | Filipp Lepalaan <f@0x00.co> | 2013-03-22 16:09:50 +0200 |
---|---|---|
committer | Filipp Lepalaan <f@0x00.co> | 2013-03-22 16:09:50 +0200 |
commit | eaeca995a5e8f92888411f325c5ecab81108a34e (patch) | |
tree | 30e99377bd4bb0f99cadcf37757cedc847d1bc9f /gsxws.py | |
parent | 22fb95be1f2c702f035dec7b733fc2e2157769bc (diff) | |
download | py-gsxws-eaeca995a5e8f92888411f325c5ecab81108a34e.tar.gz py-gsxws-eaeca995a5e8f92888411f325c5ecab81108a34e.tar.bz2 py-gsxws-eaeca995a5e8f92888411f325c5ecab81108a34e.zip |
Added UpdateSerialNumber
Diffstat (limited to 'gsxws.py')
-rwxr-xr-x | gsxws.py | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -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: |