diff options
author | Filipp Lepalaan <f@230.to> | 2013-05-23 09:40:02 +0300 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2013-05-23 09:40:02 +0300 |
commit | 3b949a256d96283e2efeb8d62f9400dd383e8456 (patch) | |
tree | 11d18fe6afeb2b804aca61190a244d64443d3cf5 /gsxws/returns.py | |
parent | 0204409161d9cc94b5d081833669d2d05a1242c4 (diff) | |
download | py-gsxws-3b949a256d96283e2efeb8d62f9400dd383e8456.tar.gz py-gsxws-3b949a256d96283e2efeb8d62f9400dd383e8456.tar.bz2 py-gsxws-3b949a256d96283e2efeb8d62f9400dd383e8456.zip |
Fixed activation check
Diffstat (limited to 'gsxws/returns.py')
-rw-r--r-- | gsxws/returns.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gsxws/returns.py b/gsxws/returns.py index e929f1d..f46690e 100644 --- a/gsxws/returns.py +++ b/gsxws/returns.py @@ -102,8 +102,10 @@ class Return(GsxObject): >>> Return(shipToCode=123456).register_parts([ServicePart('661-5852')]) """ self.bulkReturnOrder = parts - self._submit("bulkPartsRegistrationRequest", "RegisterPartsForBulkReturn", + self._submit("bulkPartsRegistrationRequest", + "RegisterPartsForBulkReturn", "bulkPartsRegistrationData") + return self._req.objects[0] def update_parts(self, confirmation, parts): @@ -118,14 +120,12 @@ class Return(GsxObject): 'comptiaModifier': 'A',\ 'returnType': 2}]) """ - dt = self._make_type("ns1:partsReturnUpdateRequestType") - repairData = { - 'repairConfirmationNumber': confirmation, - 'orderLines': parts - } - dt.repairData = repairData - result = self.submit("PartsReturnUpdate", dt) - return result + rd = GsxObject(repairConfirmationNumber=confirmation) + rd.orderLines = parts + self.repairData = rd + self._submit("repairData", "UpdateCarryIn", "repairConfirmation") + return self._req.objects[0] + if __name__ == '__main__': import sys |