aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/returns.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-05-20 16:39:40 +0300
committerFilipp Lepalaan <f@230.to>2013-05-20 16:39:40 +0300
commit65b27c4083e2ef6cdd2a88b89cd25e587bdcec04 (patch)
treed14976905869b78a84b40c27e6b32442dd31d6e3 /gsxws/returns.py
parent79bc915381e981836d1807b5e1081324b2a09e4a (diff)
downloadpy-gsxws-65b27c4083e2ef6cdd2a88b89cd25e587bdcec04.tar.gz
py-gsxws-65b27c4083e2ef6cdd2a88b89cd25e587bdcec04.tar.bz2
py-gsxws-65b27c4083e2ef6cdd2a88b89cd25e587bdcec04.zip
Fixing bulk returns
Diffstat (limited to 'gsxws/returns.py')
-rw-r--r--gsxws/returns.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/gsxws/returns.py b/gsxws/returns.py
index 977a4cb..e929f1d 100644
--- a/gsxws/returns.py
+++ b/gsxws/returns.py
@@ -1,6 +1,5 @@
-import base64
-
from core import GsxObject, validate
+from repairs import ServicePart
RETURN_TYPES = (
(1, "Dead On Arrival"),
@@ -99,9 +98,11 @@ class Return(GsxObject):
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.
+
+ >>> Return(shipToCode=123456).register_parts([ServicePart('661-5852')])
"""
self.bulkReturnOrder = parts
- self._submit("RegisterPartsForBulkReturnRequest", "RegisterPartsForBulkReturn",
+ self._submit("bulkPartsRegistrationRequest", "RegisterPartsForBulkReturn",
"bulkPartsRegistrationData")
return self._req.objects[0]