aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@0x00.co>2013-04-05 19:09:55 +0300
committerFilipp Lepalaan <f@0x00.co>2013-04-05 19:09:55 +0300
commit07991543c2acd25a2187964941510492432d4d37 (patch)
treecc885b0ba89881681019909c8e41f92b01df84f7 /gsxws.py
parent12d6382bd77fe1773d6b87a1fea0b73f16f91c20 (diff)
downloadpy-gsxws-07991543c2acd25a2187964941510492432d4d37.tar.gz
py-gsxws-07991543c2acd25a2187964941510492432d4d37.tar.bz2
py-gsxws-07991543c2acd25a2187964941510492432d4d37.zip
Add parts arg to register_parts
Diffstat (limited to 'gsxws.py')
-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')