aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgsxws.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gsxws.py b/gsxws.py
index 7800e24..a768af0 100755
--- a/gsxws.py
+++ b/gsxws.py
@@ -598,13 +598,14 @@ class Returns(GsxObject):
"""
pass
- def register_parts(self):
+ def register_parts(self, parts):
"""
The Register Parts for Bulk Return API creates a bulk return for
the registered parts.
The API returns the Bulk Return Id with the packing list.
"""
dt = self._make_type('ns1:registerPartsForBulkReturnRequestType')
+ self.data['bulkReturnOrder'] = parts
dt.bulkPartsRegistrationRequest = self.data
return self.submit('RegisterPartsForBulkReturn', dt, 'bulkPartsRegistrationResponse')