aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/returns.py
diff options
context:
space:
mode:
Diffstat (limited to 'gsxws/returns.py')
-rw-r--r--gsxws/returns.py18
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