| 2821 |
chandransh |
1 |
#
|
| 3431 |
rajveer |
2 |
# Autogenerated by Thrift Compiler (0.7.0)
|
| 2821 |
chandransh |
3 |
#
|
|
|
4 |
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
#
|
|
|
6 |
|
|
|
7 |
from thrift.Thrift import *
|
| 3376 |
rajveer |
8 |
import shop2020.thriftpy.generic.GenericService
|
| 2821 |
chandransh |
9 |
from ttypes import *
|
|
|
10 |
from thrift.Thrift import TProcessor
|
|
|
11 |
from thrift.transport import TTransport
|
| 3431 |
rajveer |
12 |
from thrift.protocol import TBinaryProtocol, TProtocol
|
| 2821 |
chandransh |
13 |
try:
|
|
|
14 |
from thrift.protocol import fastbinary
|
|
|
15 |
except:
|
|
|
16 |
fastbinary = None
|
|
|
17 |
|
|
|
18 |
|
| 3376 |
rajveer |
19 |
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
|
| 4847 |
mandeep.dh |
20 |
def createSerializedInventoryItem(self, itemId, itemNumber, serialNumber, purchaseId):
|
| 2821 |
chandransh |
21 |
"""
|
| 4501 |
mandeep.dh |
22 |
Creating inventory for a serialized item
|
| 3431 |
rajveer |
23 |
|
| 2821 |
chandransh |
24 |
Parameters:
|
| 4501 |
mandeep.dh |
25 |
- itemId
|
| 4847 |
mandeep.dh |
26 |
- itemNumber
|
| 4501 |
mandeep.dh |
27 |
- serialNumber
|
|
|
28 |
- purchaseId
|
| 2821 |
chandransh |
29 |
"""
|
|
|
30 |
pass
|
|
|
31 |
|
| 4501 |
mandeep.dh |
32 |
def createSerializedInventoryItemFromItemNumber(self, itemNumber, serialNumber, purchaseId):
|
| 2821 |
chandransh |
33 |
"""
|
| 4501 |
mandeep.dh |
34 |
Creating inventory for a serialized item using item number
|
| 3431 |
rajveer |
35 |
|
| 2821 |
chandransh |
36 |
Parameters:
|
| 4501 |
mandeep.dh |
37 |
- itemNumber
|
|
|
38 |
- serialNumber
|
|
|
39 |
- purchaseId
|
| 2821 |
chandransh |
40 |
"""
|
|
|
41 |
pass
|
|
|
42 |
|
| 4501 |
mandeep.dh |
43 |
def createInventoryItem(self, itemId, quantity, purchaseId):
|
| 3383 |
chandransh |
44 |
"""
|
| 4501 |
mandeep.dh |
45 |
Creates inventory for an unserailized item
|
| 3431 |
rajveer |
46 |
|
| 3383 |
chandransh |
47 |
Parameters:
|
| 4501 |
mandeep.dh |
48 |
- itemId
|
|
|
49 |
- quantity
|
|
|
50 |
- purchaseId
|
| 3383 |
chandransh |
51 |
"""
|
|
|
52 |
pass
|
|
|
53 |
|
| 4501 |
mandeep.dh |
54 |
def getInventoryItem(self, serialNumber):
|
| 2832 |
chandransh |
55 |
"""
|
| 4501 |
mandeep.dh |
56 |
Retrieves serialized inventory item given a serial number
|
| 3431 |
rajveer |
57 |
|
| 2832 |
chandransh |
58 |
Parameters:
|
| 4501 |
mandeep.dh |
59 |
- serialNumber
|
| 2832 |
chandransh |
60 |
"""
|
|
|
61 |
pass
|
|
|
62 |
|
| 5361 |
mandeep.dh |
63 |
def getNonSeralizedInventoryItem(self, itemId, warehouseId):
|
| 2821 |
chandransh |
64 |
"""
|
| 5361 |
mandeep.dh |
65 |
Retrieves non-serialized inventory item from a given supplier
|
| 3431 |
rajveer |
66 |
|
| 2821 |
chandransh |
67 |
Parameters:
|
| 4501 |
mandeep.dh |
68 |
- itemId
|
| 5361 |
mandeep.dh |
69 |
- warehouseId
|
| 2821 |
chandransh |
70 |
"""
|
|
|
71 |
pass
|
|
|
72 |
|
| 5361 |
mandeep.dh |
73 |
def scanSerializedItem(self, inventoryItem, type, billingWarehouseId):
|
| 2821 |
chandransh |
74 |
"""
|
| 4501 |
mandeep.dh |
75 |
Scan serialized items.
|
|
|
76 |
|
|
|
77 |
Parameters:
|
| 5110 |
mandeep.dh |
78 |
- inventoryItem
|
| 2821 |
chandransh |
79 |
- type
|
| 5361 |
mandeep.dh |
80 |
- billingWarehouseId
|
| 2821 |
chandransh |
81 |
"""
|
|
|
82 |
pass
|
|
|
83 |
|
| 5361 |
mandeep.dh |
84 |
def scan(self, inventoryItem, type, quantity, billingWarehouseId):
|
| 2821 |
chandransh |
85 |
"""
|
| 4501 |
mandeep.dh |
86 |
Scan non-serialized items.
|
| 3431 |
rajveer |
87 |
|
| 2821 |
chandransh |
88 |
Parameters:
|
| 5361 |
mandeep.dh |
89 |
- inventoryItem
|
| 2821 |
chandransh |
90 |
- type
|
| 4501 |
mandeep.dh |
91 |
- quantity
|
| 5361 |
mandeep.dh |
92 |
- billingWarehouseId
|
| 2821 |
chandransh |
93 |
"""
|
|
|
94 |
pass
|
|
|
95 |
|
| 5110 |
mandeep.dh |
96 |
def scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
|
| 4501 |
mandeep.dh |
97 |
"""
|
|
|
98 |
Scan serialized items linked with an order. Returns its price.
|
| 2821 |
chandransh |
99 |
|
| 4501 |
mandeep.dh |
100 |
Parameters:
|
| 4555 |
mandeep.dh |
101 |
- serialNumber
|
| 4501 |
mandeep.dh |
102 |
- type
|
|
|
103 |
- orderId
|
| 5110 |
mandeep.dh |
104 |
- fulfilmentWarehouseId
|
|
|
105 |
- quantity
|
|
|
106 |
- billingWarehouseId
|
| 4501 |
mandeep.dh |
107 |
"""
|
|
|
108 |
pass
|
|
|
109 |
|
| 5361 |
mandeep.dh |
110 |
def scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
|
| 4501 |
mandeep.dh |
111 |
"""
|
|
|
112 |
Scan non-serialized items linked with an order.
|
|
|
113 |
|
|
|
114 |
Parameters:
|
| 5361 |
mandeep.dh |
115 |
- inventoryItem
|
| 4501 |
mandeep.dh |
116 |
- type
|
|
|
117 |
- quantity
|
|
|
118 |
- orderId
|
| 5110 |
mandeep.dh |
119 |
- fulfilmentWarehouseId
|
| 5361 |
mandeep.dh |
120 |
- billingWarehouseId
|
| 4501 |
mandeep.dh |
121 |
"""
|
|
|
122 |
pass
|
|
|
123 |
|
|
|
124 |
def createItemNumberMapping(self, itemNumber, itemId):
|
|
|
125 |
"""
|
|
|
126 |
Created item number to item id mapping
|
|
|
127 |
|
|
|
128 |
Parameters:
|
|
|
129 |
- itemNumber
|
|
|
130 |
- itemId
|
|
|
131 |
"""
|
|
|
132 |
pass
|
|
|
133 |
|
| 4620 |
amit.gupta |
134 |
def getItemNumbers(self, itemId):
|
|
|
135 |
"""
|
|
|
136 |
Get itemNumber mappings for itemId
|
| 4501 |
mandeep.dh |
137 |
|
| 4620 |
amit.gupta |
138 |
Parameters:
|
|
|
139 |
- itemId
|
|
|
140 |
"""
|
|
|
141 |
pass
|
|
|
142 |
|
| 5110 |
mandeep.dh |
143 |
def getItemIds(self, itemNumber):
|
|
|
144 |
"""
|
|
|
145 |
Gets item ids for a given item number
|
| 4620 |
amit.gupta |
146 |
|
| 5110 |
mandeep.dh |
147 |
Parameters:
|
|
|
148 |
- itemNumber
|
|
|
149 |
"""
|
|
|
150 |
pass
|
|
|
151 |
|
| 5185 |
mandeep.dh |
152 |
def getInventoryItemsFromLastScanType(self, lastScanType):
|
|
|
153 |
"""
|
|
|
154 |
Retrieves all inventory items given a last scan type
|
| 5110 |
mandeep.dh |
155 |
|
| 5185 |
mandeep.dh |
156 |
Parameters:
|
|
|
157 |
- lastScanType
|
|
|
158 |
"""
|
|
|
159 |
pass
|
|
|
160 |
|
|
|
161 |
def getInventoryItemFromId(self, inventoryItemId):
|
|
|
162 |
"""
|
|
|
163 |
Retrieves inventory item given a inventoryItem id
|
|
|
164 |
|
|
|
165 |
Parameters:
|
|
|
166 |
- inventoryItemId
|
|
|
167 |
"""
|
|
|
168 |
pass
|
|
|
169 |
|
|
|
170 |
|
| 3376 |
rajveer |
171 |
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
|
| 2821 |
chandransh |
172 |
def __init__(self, iprot, oprot=None):
|
| 3376 |
rajveer |
173 |
shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
|
| 2821 |
chandransh |
174 |
|
| 4847 |
mandeep.dh |
175 |
def createSerializedInventoryItem(self, itemId, itemNumber, serialNumber, purchaseId):
|
| 2821 |
chandransh |
176 |
"""
|
| 4501 |
mandeep.dh |
177 |
Creating inventory for a serialized item
|
| 3431 |
rajveer |
178 |
|
| 2821 |
chandransh |
179 |
Parameters:
|
| 4501 |
mandeep.dh |
180 |
- itemId
|
| 4847 |
mandeep.dh |
181 |
- itemNumber
|
| 4501 |
mandeep.dh |
182 |
- serialNumber
|
|
|
183 |
- purchaseId
|
| 2821 |
chandransh |
184 |
"""
|
| 4847 |
mandeep.dh |
185 |
self.send_createSerializedInventoryItem(itemId, itemNumber, serialNumber, purchaseId)
|
| 4501 |
mandeep.dh |
186 |
return self.recv_createSerializedInventoryItem()
|
| 2821 |
chandransh |
187 |
|
| 4847 |
mandeep.dh |
188 |
def send_createSerializedInventoryItem(self, itemId, itemNumber, serialNumber, purchaseId):
|
| 4501 |
mandeep.dh |
189 |
self._oprot.writeMessageBegin('createSerializedInventoryItem', TMessageType.CALL, self._seqid)
|
|
|
190 |
args = createSerializedInventoryItem_args()
|
|
|
191 |
args.itemId = itemId
|
| 4847 |
mandeep.dh |
192 |
args.itemNumber = itemNumber
|
| 4501 |
mandeep.dh |
193 |
args.serialNumber = serialNumber
|
|
|
194 |
args.purchaseId = purchaseId
|
| 2821 |
chandransh |
195 |
args.write(self._oprot)
|
|
|
196 |
self._oprot.writeMessageEnd()
|
|
|
197 |
self._oprot.trans.flush()
|
|
|
198 |
|
| 4501 |
mandeep.dh |
199 |
def recv_createSerializedInventoryItem(self, ):
|
| 2821 |
chandransh |
200 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
201 |
if mtype == TMessageType.EXCEPTION:
|
|
|
202 |
x = TApplicationException()
|
|
|
203 |
x.read(self._iprot)
|
|
|
204 |
self._iprot.readMessageEnd()
|
|
|
205 |
raise x
|
| 4501 |
mandeep.dh |
206 |
result = createSerializedInventoryItem_result()
|
| 2821 |
chandransh |
207 |
result.read(self._iprot)
|
|
|
208 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
209 |
if result.success is not None:
|
| 2821 |
chandransh |
210 |
return result.success
|
| 3431 |
rajveer |
211 |
if result.wex is not None:
|
| 2821 |
chandransh |
212 |
raise result.wex
|
| 4501 |
mandeep.dh |
213 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "createSerializedInventoryItem failed: unknown result");
|
| 2821 |
chandransh |
214 |
|
| 4501 |
mandeep.dh |
215 |
def createSerializedInventoryItemFromItemNumber(self, itemNumber, serialNumber, purchaseId):
|
| 2821 |
chandransh |
216 |
"""
|
| 4501 |
mandeep.dh |
217 |
Creating inventory for a serialized item using item number
|
| 3431 |
rajveer |
218 |
|
| 2821 |
chandransh |
219 |
Parameters:
|
| 4501 |
mandeep.dh |
220 |
- itemNumber
|
|
|
221 |
- serialNumber
|
|
|
222 |
- purchaseId
|
| 2821 |
chandransh |
223 |
"""
|
| 4501 |
mandeep.dh |
224 |
self.send_createSerializedInventoryItemFromItemNumber(itemNumber, serialNumber, purchaseId)
|
|
|
225 |
return self.recv_createSerializedInventoryItemFromItemNumber()
|
| 2821 |
chandransh |
226 |
|
| 4501 |
mandeep.dh |
227 |
def send_createSerializedInventoryItemFromItemNumber(self, itemNumber, serialNumber, purchaseId):
|
|
|
228 |
self._oprot.writeMessageBegin('createSerializedInventoryItemFromItemNumber', TMessageType.CALL, self._seqid)
|
|
|
229 |
args = createSerializedInventoryItemFromItemNumber_args()
|
|
|
230 |
args.itemNumber = itemNumber
|
|
|
231 |
args.serialNumber = serialNumber
|
|
|
232 |
args.purchaseId = purchaseId
|
| 2821 |
chandransh |
233 |
args.write(self._oprot)
|
|
|
234 |
self._oprot.writeMessageEnd()
|
|
|
235 |
self._oprot.trans.flush()
|
|
|
236 |
|
| 4501 |
mandeep.dh |
237 |
def recv_createSerializedInventoryItemFromItemNumber(self, ):
|
| 2821 |
chandransh |
238 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
239 |
if mtype == TMessageType.EXCEPTION:
|
|
|
240 |
x = TApplicationException()
|
|
|
241 |
x.read(self._iprot)
|
|
|
242 |
self._iprot.readMessageEnd()
|
|
|
243 |
raise x
|
| 4501 |
mandeep.dh |
244 |
result = createSerializedInventoryItemFromItemNumber_result()
|
| 2821 |
chandransh |
245 |
result.read(self._iprot)
|
|
|
246 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
247 |
if result.success is not None:
|
| 2821 |
chandransh |
248 |
return result.success
|
| 3431 |
rajveer |
249 |
if result.wex is not None:
|
| 2821 |
chandransh |
250 |
raise result.wex
|
| 4501 |
mandeep.dh |
251 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "createSerializedInventoryItemFromItemNumber failed: unknown result");
|
| 2821 |
chandransh |
252 |
|
| 4501 |
mandeep.dh |
253 |
def createInventoryItem(self, itemId, quantity, purchaseId):
|
| 3383 |
chandransh |
254 |
"""
|
| 4501 |
mandeep.dh |
255 |
Creates inventory for an unserailized item
|
| 3431 |
rajveer |
256 |
|
| 3383 |
chandransh |
257 |
Parameters:
|
| 4501 |
mandeep.dh |
258 |
- itemId
|
|
|
259 |
- quantity
|
|
|
260 |
- purchaseId
|
| 3383 |
chandransh |
261 |
"""
|
| 4501 |
mandeep.dh |
262 |
self.send_createInventoryItem(itemId, quantity, purchaseId)
|
|
|
263 |
return self.recv_createInventoryItem()
|
| 3383 |
chandransh |
264 |
|
| 4501 |
mandeep.dh |
265 |
def send_createInventoryItem(self, itemId, quantity, purchaseId):
|
|
|
266 |
self._oprot.writeMessageBegin('createInventoryItem', TMessageType.CALL, self._seqid)
|
|
|
267 |
args = createInventoryItem_args()
|
|
|
268 |
args.itemId = itemId
|
|
|
269 |
args.quantity = quantity
|
|
|
270 |
args.purchaseId = purchaseId
|
| 3383 |
chandransh |
271 |
args.write(self._oprot)
|
|
|
272 |
self._oprot.writeMessageEnd()
|
|
|
273 |
self._oprot.trans.flush()
|
|
|
274 |
|
| 4501 |
mandeep.dh |
275 |
def recv_createInventoryItem(self, ):
|
| 3383 |
chandransh |
276 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
277 |
if mtype == TMessageType.EXCEPTION:
|
|
|
278 |
x = TApplicationException()
|
|
|
279 |
x.read(self._iprot)
|
|
|
280 |
self._iprot.readMessageEnd()
|
|
|
281 |
raise x
|
| 4501 |
mandeep.dh |
282 |
result = createInventoryItem_result()
|
| 3383 |
chandransh |
283 |
result.read(self._iprot)
|
|
|
284 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
285 |
if result.success is not None:
|
| 3383 |
chandransh |
286 |
return result.success
|
| 3431 |
rajveer |
287 |
if result.wex is not None:
|
| 3383 |
chandransh |
288 |
raise result.wex
|
| 4501 |
mandeep.dh |
289 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "createInventoryItem failed: unknown result");
|
| 3383 |
chandransh |
290 |
|
| 4501 |
mandeep.dh |
291 |
def getInventoryItem(self, serialNumber):
|
| 2832 |
chandransh |
292 |
"""
|
| 4501 |
mandeep.dh |
293 |
Retrieves serialized inventory item given a serial number
|
| 3431 |
rajveer |
294 |
|
| 2832 |
chandransh |
295 |
Parameters:
|
| 4501 |
mandeep.dh |
296 |
- serialNumber
|
| 2832 |
chandransh |
297 |
"""
|
| 4501 |
mandeep.dh |
298 |
self.send_getInventoryItem(serialNumber)
|
|
|
299 |
return self.recv_getInventoryItem()
|
| 2832 |
chandransh |
300 |
|
| 4501 |
mandeep.dh |
301 |
def send_getInventoryItem(self, serialNumber):
|
|
|
302 |
self._oprot.writeMessageBegin('getInventoryItem', TMessageType.CALL, self._seqid)
|
|
|
303 |
args = getInventoryItem_args()
|
|
|
304 |
args.serialNumber = serialNumber
|
| 2832 |
chandransh |
305 |
args.write(self._oprot)
|
|
|
306 |
self._oprot.writeMessageEnd()
|
|
|
307 |
self._oprot.trans.flush()
|
|
|
308 |
|
| 4501 |
mandeep.dh |
309 |
def recv_getInventoryItem(self, ):
|
| 2832 |
chandransh |
310 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
311 |
if mtype == TMessageType.EXCEPTION:
|
|
|
312 |
x = TApplicationException()
|
|
|
313 |
x.read(self._iprot)
|
|
|
314 |
self._iprot.readMessageEnd()
|
|
|
315 |
raise x
|
| 4501 |
mandeep.dh |
316 |
result = getInventoryItem_result()
|
| 2832 |
chandransh |
317 |
result.read(self._iprot)
|
|
|
318 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
319 |
if result.success is not None:
|
| 2832 |
chandransh |
320 |
return result.success
|
| 4541 |
mandeep.dh |
321 |
if result.wex is not None:
|
|
|
322 |
raise result.wex
|
| 4501 |
mandeep.dh |
323 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
|
| 2832 |
chandransh |
324 |
|
| 5361 |
mandeep.dh |
325 |
def getNonSeralizedInventoryItem(self, itemId, warehouseId):
|
| 2821 |
chandransh |
326 |
"""
|
| 5361 |
mandeep.dh |
327 |
Retrieves non-serialized inventory item from a given supplier
|
| 3431 |
rajveer |
328 |
|
| 2821 |
chandransh |
329 |
Parameters:
|
| 4501 |
mandeep.dh |
330 |
- itemId
|
| 5361 |
mandeep.dh |
331 |
- warehouseId
|
| 2821 |
chandransh |
332 |
"""
|
| 5361 |
mandeep.dh |
333 |
self.send_getNonSeralizedInventoryItem(itemId, warehouseId)
|
|
|
334 |
return self.recv_getNonSeralizedInventoryItem()
|
| 2821 |
chandransh |
335 |
|
| 5361 |
mandeep.dh |
336 |
def send_getNonSeralizedInventoryItem(self, itemId, warehouseId):
|
|
|
337 |
self._oprot.writeMessageBegin('getNonSeralizedInventoryItem', TMessageType.CALL, self._seqid)
|
|
|
338 |
args = getNonSeralizedInventoryItem_args()
|
| 4501 |
mandeep.dh |
339 |
args.itemId = itemId
|
| 5361 |
mandeep.dh |
340 |
args.warehouseId = warehouseId
|
| 2821 |
chandransh |
341 |
args.write(self._oprot)
|
|
|
342 |
self._oprot.writeMessageEnd()
|
|
|
343 |
self._oprot.trans.flush()
|
|
|
344 |
|
| 5361 |
mandeep.dh |
345 |
def recv_getNonSeralizedInventoryItem(self, ):
|
| 2821 |
chandransh |
346 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
347 |
if mtype == TMessageType.EXCEPTION:
|
|
|
348 |
x = TApplicationException()
|
|
|
349 |
x.read(self._iprot)
|
|
|
350 |
self._iprot.readMessageEnd()
|
|
|
351 |
raise x
|
| 5361 |
mandeep.dh |
352 |
result = getNonSeralizedInventoryItem_result()
|
| 2821 |
chandransh |
353 |
result.read(self._iprot)
|
|
|
354 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
355 |
if result.success is not None:
|
| 2821 |
chandransh |
356 |
return result.success
|
| 5361 |
mandeep.dh |
357 |
if result.wex is not None:
|
|
|
358 |
raise result.wex
|
|
|
359 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
|
| 2821 |
chandransh |
360 |
|
| 5361 |
mandeep.dh |
361 |
def scanSerializedItem(self, inventoryItem, type, billingWarehouseId):
|
| 2821 |
chandransh |
362 |
"""
|
| 4501 |
mandeep.dh |
363 |
Scan serialized items.
|
|
|
364 |
|
|
|
365 |
Parameters:
|
| 5110 |
mandeep.dh |
366 |
- inventoryItem
|
| 4501 |
mandeep.dh |
367 |
- type
|
| 5361 |
mandeep.dh |
368 |
- billingWarehouseId
|
| 4501 |
mandeep.dh |
369 |
"""
|
| 5361 |
mandeep.dh |
370 |
self.send_scanSerializedItem(inventoryItem, type, billingWarehouseId)
|
| 4501 |
mandeep.dh |
371 |
self.recv_scanSerializedItem()
|
|
|
372 |
|
| 5361 |
mandeep.dh |
373 |
def send_scanSerializedItem(self, inventoryItem, type, billingWarehouseId):
|
| 4501 |
mandeep.dh |
374 |
self._oprot.writeMessageBegin('scanSerializedItem', TMessageType.CALL, self._seqid)
|
|
|
375 |
args = scanSerializedItem_args()
|
| 5110 |
mandeep.dh |
376 |
args.inventoryItem = inventoryItem
|
| 4501 |
mandeep.dh |
377 |
args.type = type
|
| 5361 |
mandeep.dh |
378 |
args.billingWarehouseId = billingWarehouseId
|
| 4501 |
mandeep.dh |
379 |
args.write(self._oprot)
|
|
|
380 |
self._oprot.writeMessageEnd()
|
|
|
381 |
self._oprot.trans.flush()
|
|
|
382 |
|
|
|
383 |
def recv_scanSerializedItem(self, ):
|
|
|
384 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
385 |
if mtype == TMessageType.EXCEPTION:
|
|
|
386 |
x = TApplicationException()
|
|
|
387 |
x.read(self._iprot)
|
|
|
388 |
self._iprot.readMessageEnd()
|
|
|
389 |
raise x
|
|
|
390 |
result = scanSerializedItem_result()
|
|
|
391 |
result.read(self._iprot)
|
|
|
392 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
393 |
if result.wex is not None:
|
| 3383 |
chandransh |
394 |
raise result.wex
|
| 4501 |
mandeep.dh |
395 |
return
|
| 3383 |
chandransh |
396 |
|
| 5361 |
mandeep.dh |
397 |
def scan(self, inventoryItem, type, quantity, billingWarehouseId):
|
| 3383 |
chandransh |
398 |
"""
|
| 4501 |
mandeep.dh |
399 |
Scan non-serialized items.
|
| 3431 |
rajveer |
400 |
|
| 2821 |
chandransh |
401 |
Parameters:
|
| 5361 |
mandeep.dh |
402 |
- inventoryItem
|
| 2821 |
chandransh |
403 |
- type
|
| 4501 |
mandeep.dh |
404 |
- quantity
|
| 5361 |
mandeep.dh |
405 |
- billingWarehouseId
|
| 2821 |
chandransh |
406 |
"""
|
| 5361 |
mandeep.dh |
407 |
self.send_scan(inventoryItem, type, quantity, billingWarehouseId)
|
| 4501 |
mandeep.dh |
408 |
self.recv_scan()
|
| 2821 |
chandransh |
409 |
|
| 5361 |
mandeep.dh |
410 |
def send_scan(self, inventoryItem, type, quantity, billingWarehouseId):
|
| 4501 |
mandeep.dh |
411 |
self._oprot.writeMessageBegin('scan', TMessageType.CALL, self._seqid)
|
|
|
412 |
args = scan_args()
|
| 5361 |
mandeep.dh |
413 |
args.inventoryItem = inventoryItem
|
| 2821 |
chandransh |
414 |
args.type = type
|
| 4501 |
mandeep.dh |
415 |
args.quantity = quantity
|
| 5361 |
mandeep.dh |
416 |
args.billingWarehouseId = billingWarehouseId
|
| 2821 |
chandransh |
417 |
args.write(self._oprot)
|
|
|
418 |
self._oprot.writeMessageEnd()
|
|
|
419 |
self._oprot.trans.flush()
|
|
|
420 |
|
| 4501 |
mandeep.dh |
421 |
def recv_scan(self, ):
|
| 2821 |
chandransh |
422 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
423 |
if mtype == TMessageType.EXCEPTION:
|
|
|
424 |
x = TApplicationException()
|
|
|
425 |
x.read(self._iprot)
|
|
|
426 |
self._iprot.readMessageEnd()
|
|
|
427 |
raise x
|
| 4501 |
mandeep.dh |
428 |
result = scan_result()
|
| 2821 |
chandransh |
429 |
result.read(self._iprot)
|
|
|
430 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
431 |
if result.wex is not None:
|
| 2821 |
chandransh |
432 |
raise result.wex
|
|
|
433 |
return
|
|
|
434 |
|
| 5110 |
mandeep.dh |
435 |
def scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
|
| 2821 |
chandransh |
436 |
"""
|
| 4501 |
mandeep.dh |
437 |
Scan serialized items linked with an order. Returns its price.
|
| 3431 |
rajveer |
438 |
|
| 2821 |
chandransh |
439 |
Parameters:
|
| 4555 |
mandeep.dh |
440 |
- serialNumber
|
| 2821 |
chandransh |
441 |
- type
|
| 4501 |
mandeep.dh |
442 |
- orderId
|
| 5110 |
mandeep.dh |
443 |
- fulfilmentWarehouseId
|
|
|
444 |
- quantity
|
|
|
445 |
- billingWarehouseId
|
| 2821 |
chandransh |
446 |
"""
|
| 5110 |
mandeep.dh |
447 |
self.send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId)
|
| 4501 |
mandeep.dh |
448 |
return self.recv_scanSerializedItemForOrder()
|
| 2821 |
chandransh |
449 |
|
| 5110 |
mandeep.dh |
450 |
def send_scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
|
| 4501 |
mandeep.dh |
451 |
self._oprot.writeMessageBegin('scanSerializedItemForOrder', TMessageType.CALL, self._seqid)
|
|
|
452 |
args = scanSerializedItemForOrder_args()
|
| 4555 |
mandeep.dh |
453 |
args.serialNumber = serialNumber
|
| 2821 |
chandransh |
454 |
args.type = type
|
| 4501 |
mandeep.dh |
455 |
args.orderId = orderId
|
| 5110 |
mandeep.dh |
456 |
args.fulfilmentWarehouseId = fulfilmentWarehouseId
|
|
|
457 |
args.quantity = quantity
|
|
|
458 |
args.billingWarehouseId = billingWarehouseId
|
| 2821 |
chandransh |
459 |
args.write(self._oprot)
|
|
|
460 |
self._oprot.writeMessageEnd()
|
|
|
461 |
self._oprot.trans.flush()
|
|
|
462 |
|
| 4501 |
mandeep.dh |
463 |
def recv_scanSerializedItemForOrder(self, ):
|
| 2821 |
chandransh |
464 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
465 |
if mtype == TMessageType.EXCEPTION:
|
|
|
466 |
x = TApplicationException()
|
|
|
467 |
x.read(self._iprot)
|
|
|
468 |
self._iprot.readMessageEnd()
|
|
|
469 |
raise x
|
| 4501 |
mandeep.dh |
470 |
result = scanSerializedItemForOrder_result()
|
| 2821 |
chandransh |
471 |
result.read(self._iprot)
|
|
|
472 |
self._iprot.readMessageEnd()
|
| 4501 |
mandeep.dh |
473 |
if result.success is not None:
|
|
|
474 |
return result.success
|
| 3431 |
rajveer |
475 |
if result.wex is not None:
|
| 2821 |
chandransh |
476 |
raise result.wex
|
| 4501 |
mandeep.dh |
477 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
|
|
|
478 |
|
| 5361 |
mandeep.dh |
479 |
def scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
|
| 4501 |
mandeep.dh |
480 |
"""
|
|
|
481 |
Scan non-serialized items linked with an order.
|
|
|
482 |
|
|
|
483 |
Parameters:
|
| 5361 |
mandeep.dh |
484 |
- inventoryItem
|
| 4501 |
mandeep.dh |
485 |
- type
|
|
|
486 |
- quantity
|
|
|
487 |
- orderId
|
| 5110 |
mandeep.dh |
488 |
- fulfilmentWarehouseId
|
| 5361 |
mandeep.dh |
489 |
- billingWarehouseId
|
| 4501 |
mandeep.dh |
490 |
"""
|
| 5361 |
mandeep.dh |
491 |
self.send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId)
|
|
|
492 |
return self.recv_scanForOrder()
|
| 4501 |
mandeep.dh |
493 |
|
| 5361 |
mandeep.dh |
494 |
def send_scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
|
| 4501 |
mandeep.dh |
495 |
self._oprot.writeMessageBegin('scanForOrder', TMessageType.CALL, self._seqid)
|
|
|
496 |
args = scanForOrder_args()
|
| 5361 |
mandeep.dh |
497 |
args.inventoryItem = inventoryItem
|
| 4501 |
mandeep.dh |
498 |
args.type = type
|
|
|
499 |
args.quantity = quantity
|
|
|
500 |
args.orderId = orderId
|
| 5110 |
mandeep.dh |
501 |
args.fulfilmentWarehouseId = fulfilmentWarehouseId
|
| 5361 |
mandeep.dh |
502 |
args.billingWarehouseId = billingWarehouseId
|
| 4501 |
mandeep.dh |
503 |
args.write(self._oprot)
|
|
|
504 |
self._oprot.writeMessageEnd()
|
|
|
505 |
self._oprot.trans.flush()
|
|
|
506 |
|
|
|
507 |
def recv_scanForOrder(self, ):
|
|
|
508 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
509 |
if mtype == TMessageType.EXCEPTION:
|
|
|
510 |
x = TApplicationException()
|
|
|
511 |
x.read(self._iprot)
|
|
|
512 |
self._iprot.readMessageEnd()
|
|
|
513 |
raise x
|
|
|
514 |
result = scanForOrder_result()
|
|
|
515 |
result.read(self._iprot)
|
|
|
516 |
self._iprot.readMessageEnd()
|
| 5361 |
mandeep.dh |
517 |
if result.success is not None:
|
|
|
518 |
return result.success
|
| 4501 |
mandeep.dh |
519 |
if result.wex is not None:
|
|
|
520 |
raise result.wex
|
| 5361 |
mandeep.dh |
521 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");
|
| 2821 |
chandransh |
522 |
|
| 4501 |
mandeep.dh |
523 |
def createItemNumberMapping(self, itemNumber, itemId):
|
|
|
524 |
"""
|
|
|
525 |
Created item number to item id mapping
|
| 2821 |
chandransh |
526 |
|
| 4501 |
mandeep.dh |
527 |
Parameters:
|
|
|
528 |
- itemNumber
|
|
|
529 |
- itemId
|
|
|
530 |
"""
|
|
|
531 |
self.send_createItemNumberMapping(itemNumber, itemId)
|
|
|
532 |
self.recv_createItemNumberMapping()
|
|
|
533 |
|
|
|
534 |
def send_createItemNumberMapping(self, itemNumber, itemId):
|
|
|
535 |
self._oprot.writeMessageBegin('createItemNumberMapping', TMessageType.CALL, self._seqid)
|
|
|
536 |
args = createItemNumberMapping_args()
|
|
|
537 |
args.itemNumber = itemNumber
|
|
|
538 |
args.itemId = itemId
|
|
|
539 |
args.write(self._oprot)
|
|
|
540 |
self._oprot.writeMessageEnd()
|
|
|
541 |
self._oprot.trans.flush()
|
|
|
542 |
|
|
|
543 |
def recv_createItemNumberMapping(self, ):
|
|
|
544 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
545 |
if mtype == TMessageType.EXCEPTION:
|
|
|
546 |
x = TApplicationException()
|
|
|
547 |
x.read(self._iprot)
|
|
|
548 |
self._iprot.readMessageEnd()
|
|
|
549 |
raise x
|
|
|
550 |
result = createItemNumberMapping_result()
|
|
|
551 |
result.read(self._iprot)
|
|
|
552 |
self._iprot.readMessageEnd()
|
|
|
553 |
return
|
|
|
554 |
|
| 4620 |
amit.gupta |
555 |
def getItemNumbers(self, itemId):
|
|
|
556 |
"""
|
|
|
557 |
Get itemNumber mappings for itemId
|
| 4501 |
mandeep.dh |
558 |
|
| 4620 |
amit.gupta |
559 |
Parameters:
|
|
|
560 |
- itemId
|
|
|
561 |
"""
|
|
|
562 |
self.send_getItemNumbers(itemId)
|
|
|
563 |
return self.recv_getItemNumbers()
|
|
|
564 |
|
|
|
565 |
def send_getItemNumbers(self, itemId):
|
|
|
566 |
self._oprot.writeMessageBegin('getItemNumbers', TMessageType.CALL, self._seqid)
|
|
|
567 |
args = getItemNumbers_args()
|
|
|
568 |
args.itemId = itemId
|
|
|
569 |
args.write(self._oprot)
|
|
|
570 |
self._oprot.writeMessageEnd()
|
|
|
571 |
self._oprot.trans.flush()
|
|
|
572 |
|
|
|
573 |
def recv_getItemNumbers(self, ):
|
|
|
574 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
575 |
if mtype == TMessageType.EXCEPTION:
|
|
|
576 |
x = TApplicationException()
|
|
|
577 |
x.read(self._iprot)
|
|
|
578 |
self._iprot.readMessageEnd()
|
|
|
579 |
raise x
|
|
|
580 |
result = getItemNumbers_result()
|
|
|
581 |
result.read(self._iprot)
|
|
|
582 |
self._iprot.readMessageEnd()
|
|
|
583 |
if result.success is not None:
|
|
|
584 |
return result.success
|
|
|
585 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
|
|
|
586 |
|
| 5110 |
mandeep.dh |
587 |
def getItemIds(self, itemNumber):
|
|
|
588 |
"""
|
|
|
589 |
Gets item ids for a given item number
|
| 4620 |
amit.gupta |
590 |
|
| 5110 |
mandeep.dh |
591 |
Parameters:
|
|
|
592 |
- itemNumber
|
|
|
593 |
"""
|
|
|
594 |
self.send_getItemIds(itemNumber)
|
|
|
595 |
return self.recv_getItemIds()
|
|
|
596 |
|
|
|
597 |
def send_getItemIds(self, itemNumber):
|
|
|
598 |
self._oprot.writeMessageBegin('getItemIds', TMessageType.CALL, self._seqid)
|
|
|
599 |
args = getItemIds_args()
|
|
|
600 |
args.itemNumber = itemNumber
|
|
|
601 |
args.write(self._oprot)
|
|
|
602 |
self._oprot.writeMessageEnd()
|
|
|
603 |
self._oprot.trans.flush()
|
|
|
604 |
|
|
|
605 |
def recv_getItemIds(self, ):
|
|
|
606 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
607 |
if mtype == TMessageType.EXCEPTION:
|
|
|
608 |
x = TApplicationException()
|
|
|
609 |
x.read(self._iprot)
|
|
|
610 |
self._iprot.readMessageEnd()
|
|
|
611 |
raise x
|
|
|
612 |
result = getItemIds_result()
|
|
|
613 |
result.read(self._iprot)
|
|
|
614 |
self._iprot.readMessageEnd()
|
|
|
615 |
if result.success is not None:
|
|
|
616 |
return result.success
|
|
|
617 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
|
|
|
618 |
|
| 5185 |
mandeep.dh |
619 |
def getInventoryItemsFromLastScanType(self, lastScanType):
|
|
|
620 |
"""
|
|
|
621 |
Retrieves all inventory items given a last scan type
|
| 5110 |
mandeep.dh |
622 |
|
| 5185 |
mandeep.dh |
623 |
Parameters:
|
|
|
624 |
- lastScanType
|
|
|
625 |
"""
|
|
|
626 |
self.send_getInventoryItemsFromLastScanType(lastScanType)
|
|
|
627 |
return self.recv_getInventoryItemsFromLastScanType()
|
|
|
628 |
|
|
|
629 |
def send_getInventoryItemsFromLastScanType(self, lastScanType):
|
|
|
630 |
self._oprot.writeMessageBegin('getInventoryItemsFromLastScanType', TMessageType.CALL, self._seqid)
|
|
|
631 |
args = getInventoryItemsFromLastScanType_args()
|
|
|
632 |
args.lastScanType = lastScanType
|
|
|
633 |
args.write(self._oprot)
|
|
|
634 |
self._oprot.writeMessageEnd()
|
|
|
635 |
self._oprot.trans.flush()
|
|
|
636 |
|
|
|
637 |
def recv_getInventoryItemsFromLastScanType(self, ):
|
|
|
638 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
639 |
if mtype == TMessageType.EXCEPTION:
|
|
|
640 |
x = TApplicationException()
|
|
|
641 |
x.read(self._iprot)
|
|
|
642 |
self._iprot.readMessageEnd()
|
|
|
643 |
raise x
|
|
|
644 |
result = getInventoryItemsFromLastScanType_result()
|
|
|
645 |
result.read(self._iprot)
|
|
|
646 |
self._iprot.readMessageEnd()
|
|
|
647 |
if result.success is not None:
|
|
|
648 |
return result.success
|
|
|
649 |
if result.wex is not None:
|
|
|
650 |
raise result.wex
|
|
|
651 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemsFromLastScanType failed: unknown result");
|
|
|
652 |
|
|
|
653 |
def getInventoryItemFromId(self, inventoryItemId):
|
|
|
654 |
"""
|
|
|
655 |
Retrieves inventory item given a inventoryItem id
|
|
|
656 |
|
|
|
657 |
Parameters:
|
|
|
658 |
- inventoryItemId
|
|
|
659 |
"""
|
|
|
660 |
self.send_getInventoryItemFromId(inventoryItemId)
|
|
|
661 |
return self.recv_getInventoryItemFromId()
|
|
|
662 |
|
|
|
663 |
def send_getInventoryItemFromId(self, inventoryItemId):
|
|
|
664 |
self._oprot.writeMessageBegin('getInventoryItemFromId', TMessageType.CALL, self._seqid)
|
|
|
665 |
args = getInventoryItemFromId_args()
|
|
|
666 |
args.inventoryItemId = inventoryItemId
|
|
|
667 |
args.write(self._oprot)
|
|
|
668 |
self._oprot.writeMessageEnd()
|
|
|
669 |
self._oprot.trans.flush()
|
|
|
670 |
|
|
|
671 |
def recv_getInventoryItemFromId(self, ):
|
|
|
672 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
673 |
if mtype == TMessageType.EXCEPTION:
|
|
|
674 |
x = TApplicationException()
|
|
|
675 |
x.read(self._iprot)
|
|
|
676 |
self._iprot.readMessageEnd()
|
|
|
677 |
raise x
|
|
|
678 |
result = getInventoryItemFromId_result()
|
|
|
679 |
result.read(self._iprot)
|
|
|
680 |
self._iprot.readMessageEnd()
|
|
|
681 |
if result.success is not None:
|
|
|
682 |
return result.success
|
|
|
683 |
if result.wex is not None:
|
|
|
684 |
raise result.wex
|
|
|
685 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");
|
|
|
686 |
|
|
|
687 |
|
| 3376 |
rajveer |
688 |
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
|
| 2821 |
chandransh |
689 |
def __init__(self, handler):
|
| 3376 |
rajveer |
690 |
shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
|
| 4501 |
mandeep.dh |
691 |
self._processMap["createSerializedInventoryItem"] = Processor.process_createSerializedInventoryItem
|
|
|
692 |
self._processMap["createSerializedInventoryItemFromItemNumber"] = Processor.process_createSerializedInventoryItemFromItemNumber
|
|
|
693 |
self._processMap["createInventoryItem"] = Processor.process_createInventoryItem
|
|
|
694 |
self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
|
| 5361 |
mandeep.dh |
695 |
self._processMap["getNonSeralizedInventoryItem"] = Processor.process_getNonSeralizedInventoryItem
|
| 4501 |
mandeep.dh |
696 |
self._processMap["scanSerializedItem"] = Processor.process_scanSerializedItem
|
|
|
697 |
self._processMap["scan"] = Processor.process_scan
|
|
|
698 |
self._processMap["scanSerializedItemForOrder"] = Processor.process_scanSerializedItemForOrder
|
|
|
699 |
self._processMap["scanForOrder"] = Processor.process_scanForOrder
|
|
|
700 |
self._processMap["createItemNumberMapping"] = Processor.process_createItemNumberMapping
|
| 4620 |
amit.gupta |
701 |
self._processMap["getItemNumbers"] = Processor.process_getItemNumbers
|
| 5110 |
mandeep.dh |
702 |
self._processMap["getItemIds"] = Processor.process_getItemIds
|
| 5185 |
mandeep.dh |
703 |
self._processMap["getInventoryItemsFromLastScanType"] = Processor.process_getInventoryItemsFromLastScanType
|
|
|
704 |
self._processMap["getInventoryItemFromId"] = Processor.process_getInventoryItemFromId
|
| 2821 |
chandransh |
705 |
|
|
|
706 |
def process(self, iprot, oprot):
|
|
|
707 |
(name, type, seqid) = iprot.readMessageBegin()
|
|
|
708 |
if name not in self._processMap:
|
|
|
709 |
iprot.skip(TType.STRUCT)
|
|
|
710 |
iprot.readMessageEnd()
|
|
|
711 |
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
|
|
|
712 |
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
|
|
|
713 |
x.write(oprot)
|
|
|
714 |
oprot.writeMessageEnd()
|
|
|
715 |
oprot.trans.flush()
|
|
|
716 |
return
|
|
|
717 |
else:
|
|
|
718 |
self._processMap[name](self, seqid, iprot, oprot)
|
|
|
719 |
return True
|
|
|
720 |
|
| 4501 |
mandeep.dh |
721 |
def process_createSerializedInventoryItem(self, seqid, iprot, oprot):
|
|
|
722 |
args = createSerializedInventoryItem_args()
|
| 2821 |
chandransh |
723 |
args.read(iprot)
|
|
|
724 |
iprot.readMessageEnd()
|
| 4501 |
mandeep.dh |
725 |
result = createSerializedInventoryItem_result()
|
| 2821 |
chandransh |
726 |
try:
|
| 4847 |
mandeep.dh |
727 |
result.success = self._handler.createSerializedInventoryItem(args.itemId, args.itemNumber, args.serialNumber, args.purchaseId)
|
| 2821 |
chandransh |
728 |
except WarehouseServiceException, wex:
|
|
|
729 |
result.wex = wex
|
| 4501 |
mandeep.dh |
730 |
oprot.writeMessageBegin("createSerializedInventoryItem", TMessageType.REPLY, seqid)
|
| 2821 |
chandransh |
731 |
result.write(oprot)
|
|
|
732 |
oprot.writeMessageEnd()
|
|
|
733 |
oprot.trans.flush()
|
|
|
734 |
|
| 4501 |
mandeep.dh |
735 |
def process_createSerializedInventoryItemFromItemNumber(self, seqid, iprot, oprot):
|
|
|
736 |
args = createSerializedInventoryItemFromItemNumber_args()
|
| 2821 |
chandransh |
737 |
args.read(iprot)
|
|
|
738 |
iprot.readMessageEnd()
|
| 4501 |
mandeep.dh |
739 |
result = createSerializedInventoryItemFromItemNumber_result()
|
| 2821 |
chandransh |
740 |
try:
|
| 4501 |
mandeep.dh |
741 |
result.success = self._handler.createSerializedInventoryItemFromItemNumber(args.itemNumber, args.serialNumber, args.purchaseId)
|
| 2821 |
chandransh |
742 |
except WarehouseServiceException, wex:
|
|
|
743 |
result.wex = wex
|
| 4501 |
mandeep.dh |
744 |
oprot.writeMessageBegin("createSerializedInventoryItemFromItemNumber", TMessageType.REPLY, seqid)
|
| 2821 |
chandransh |
745 |
result.write(oprot)
|
|
|
746 |
oprot.writeMessageEnd()
|
|
|
747 |
oprot.trans.flush()
|
|
|
748 |
|
| 4501 |
mandeep.dh |
749 |
def process_createInventoryItem(self, seqid, iprot, oprot):
|
|
|
750 |
args = createInventoryItem_args()
|
| 3383 |
chandransh |
751 |
args.read(iprot)
|
|
|
752 |
iprot.readMessageEnd()
|
| 4501 |
mandeep.dh |
753 |
result = createInventoryItem_result()
|
| 3383 |
chandransh |
754 |
try:
|
| 4501 |
mandeep.dh |
755 |
result.success = self._handler.createInventoryItem(args.itemId, args.quantity, args.purchaseId)
|
| 3383 |
chandransh |
756 |
except WarehouseServiceException, wex:
|
|
|
757 |
result.wex = wex
|
| 4501 |
mandeep.dh |
758 |
oprot.writeMessageBegin("createInventoryItem", TMessageType.REPLY, seqid)
|
| 3383 |
chandransh |
759 |
result.write(oprot)
|
|
|
760 |
oprot.writeMessageEnd()
|
|
|
761 |
oprot.trans.flush()
|
|
|
762 |
|
| 4501 |
mandeep.dh |
763 |
def process_getInventoryItem(self, seqid, iprot, oprot):
|
|
|
764 |
args = getInventoryItem_args()
|
| 2832 |
chandransh |
765 |
args.read(iprot)
|
|
|
766 |
iprot.readMessageEnd()
|
| 4501 |
mandeep.dh |
767 |
result = getInventoryItem_result()
|
| 4541 |
mandeep.dh |
768 |
try:
|
|
|
769 |
result.success = self._handler.getInventoryItem(args.serialNumber)
|
|
|
770 |
except WarehouseServiceException, wex:
|
|
|
771 |
result.wex = wex
|
| 4501 |
mandeep.dh |
772 |
oprot.writeMessageBegin("getInventoryItem", TMessageType.REPLY, seqid)
|
| 2832 |
chandransh |
773 |
result.write(oprot)
|
|
|
774 |
oprot.writeMessageEnd()
|
|
|
775 |
oprot.trans.flush()
|
|
|
776 |
|
| 5361 |
mandeep.dh |
777 |
def process_getNonSeralizedInventoryItem(self, seqid, iprot, oprot):
|
|
|
778 |
args = getNonSeralizedInventoryItem_args()
|
| 2821 |
chandransh |
779 |
args.read(iprot)
|
|
|
780 |
iprot.readMessageEnd()
|
| 5361 |
mandeep.dh |
781 |
result = getNonSeralizedInventoryItem_result()
|
|
|
782 |
try:
|
|
|
783 |
result.success = self._handler.getNonSeralizedInventoryItem(args.itemId, args.warehouseId)
|
|
|
784 |
except WarehouseServiceException, wex:
|
|
|
785 |
result.wex = wex
|
|
|
786 |
oprot.writeMessageBegin("getNonSeralizedInventoryItem", TMessageType.REPLY, seqid)
|
| 2821 |
chandransh |
787 |
result.write(oprot)
|
|
|
788 |
oprot.writeMessageEnd()
|
|
|
789 |
oprot.trans.flush()
|
|
|
790 |
|
| 4501 |
mandeep.dh |
791 |
def process_scanSerializedItem(self, seqid, iprot, oprot):
|
|
|
792 |
args = scanSerializedItem_args()
|
|
|
793 |
args.read(iprot)
|
|
|
794 |
iprot.readMessageEnd()
|
|
|
795 |
result = scanSerializedItem_result()
|
| 2821 |
chandransh |
796 |
try:
|
| 5361 |
mandeep.dh |
797 |
self._handler.scanSerializedItem(args.inventoryItem, args.type, args.billingWarehouseId)
|
| 2821 |
chandransh |
798 |
except WarehouseServiceException, wex:
|
|
|
799 |
result.wex = wex
|
| 4501 |
mandeep.dh |
800 |
oprot.writeMessageBegin("scanSerializedItem", TMessageType.REPLY, seqid)
|
| 2821 |
chandransh |
801 |
result.write(oprot)
|
|
|
802 |
oprot.writeMessageEnd()
|
|
|
803 |
oprot.trans.flush()
|
|
|
804 |
|
| 4501 |
mandeep.dh |
805 |
def process_scan(self, seqid, iprot, oprot):
|
|
|
806 |
args = scan_args()
|
| 3383 |
chandransh |
807 |
args.read(iprot)
|
|
|
808 |
iprot.readMessageEnd()
|
| 4501 |
mandeep.dh |
809 |
result = scan_result()
|
| 3383 |
chandransh |
810 |
try:
|
| 5361 |
mandeep.dh |
811 |
self._handler.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId)
|
| 3383 |
chandransh |
812 |
except WarehouseServiceException, wex:
|
|
|
813 |
result.wex = wex
|
| 4501 |
mandeep.dh |
814 |
oprot.writeMessageBegin("scan", TMessageType.REPLY, seqid)
|
| 3383 |
chandransh |
815 |
result.write(oprot)
|
|
|
816 |
oprot.writeMessageEnd()
|
|
|
817 |
oprot.trans.flush()
|
|
|
818 |
|
| 4501 |
mandeep.dh |
819 |
def process_scanSerializedItemForOrder(self, seqid, iprot, oprot):
|
|
|
820 |
args = scanSerializedItemForOrder_args()
|
| 2821 |
chandransh |
821 |
args.read(iprot)
|
|
|
822 |
iprot.readMessageEnd()
|
| 4501 |
mandeep.dh |
823 |
result = scanSerializedItemForOrder_result()
|
| 2821 |
chandransh |
824 |
try:
|
| 5110 |
mandeep.dh |
825 |
result.success = self._handler.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId)
|
| 2821 |
chandransh |
826 |
except WarehouseServiceException, wex:
|
|
|
827 |
result.wex = wex
|
| 4501 |
mandeep.dh |
828 |
oprot.writeMessageBegin("scanSerializedItemForOrder", TMessageType.REPLY, seqid)
|
| 2821 |
chandransh |
829 |
result.write(oprot)
|
|
|
830 |
oprot.writeMessageEnd()
|
|
|
831 |
oprot.trans.flush()
|
|
|
832 |
|
| 4501 |
mandeep.dh |
833 |
def process_scanForOrder(self, seqid, iprot, oprot):
|
|
|
834 |
args = scanForOrder_args()
|
| 2821 |
chandransh |
835 |
args.read(iprot)
|
|
|
836 |
iprot.readMessageEnd()
|
| 4501 |
mandeep.dh |
837 |
result = scanForOrder_result()
|
| 2821 |
chandransh |
838 |
try:
|
| 5361 |
mandeep.dh |
839 |
result.success = self._handler.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId)
|
| 2821 |
chandransh |
840 |
except WarehouseServiceException, wex:
|
|
|
841 |
result.wex = wex
|
| 4501 |
mandeep.dh |
842 |
oprot.writeMessageBegin("scanForOrder", TMessageType.REPLY, seqid)
|
| 2821 |
chandransh |
843 |
result.write(oprot)
|
|
|
844 |
oprot.writeMessageEnd()
|
|
|
845 |
oprot.trans.flush()
|
|
|
846 |
|
| 4501 |
mandeep.dh |
847 |
def process_createItemNumberMapping(self, seqid, iprot, oprot):
|
|
|
848 |
args = createItemNumberMapping_args()
|
|
|
849 |
args.read(iprot)
|
|
|
850 |
iprot.readMessageEnd()
|
|
|
851 |
result = createItemNumberMapping_result()
|
|
|
852 |
self._handler.createItemNumberMapping(args.itemNumber, args.itemId)
|
|
|
853 |
oprot.writeMessageBegin("createItemNumberMapping", TMessageType.REPLY, seqid)
|
|
|
854 |
result.write(oprot)
|
|
|
855 |
oprot.writeMessageEnd()
|
|
|
856 |
oprot.trans.flush()
|
| 2821 |
chandransh |
857 |
|
| 4620 |
amit.gupta |
858 |
def process_getItemNumbers(self, seqid, iprot, oprot):
|
|
|
859 |
args = getItemNumbers_args()
|
|
|
860 |
args.read(iprot)
|
|
|
861 |
iprot.readMessageEnd()
|
|
|
862 |
result = getItemNumbers_result()
|
|
|
863 |
result.success = self._handler.getItemNumbers(args.itemId)
|
|
|
864 |
oprot.writeMessageBegin("getItemNumbers", TMessageType.REPLY, seqid)
|
|
|
865 |
result.write(oprot)
|
|
|
866 |
oprot.writeMessageEnd()
|
|
|
867 |
oprot.trans.flush()
|
| 4501 |
mandeep.dh |
868 |
|
| 5110 |
mandeep.dh |
869 |
def process_getItemIds(self, seqid, iprot, oprot):
|
|
|
870 |
args = getItemIds_args()
|
|
|
871 |
args.read(iprot)
|
|
|
872 |
iprot.readMessageEnd()
|
|
|
873 |
result = getItemIds_result()
|
|
|
874 |
result.success = self._handler.getItemIds(args.itemNumber)
|
|
|
875 |
oprot.writeMessageBegin("getItemIds", TMessageType.REPLY, seqid)
|
|
|
876 |
result.write(oprot)
|
|
|
877 |
oprot.writeMessageEnd()
|
|
|
878 |
oprot.trans.flush()
|
| 4620 |
amit.gupta |
879 |
|
| 5185 |
mandeep.dh |
880 |
def process_getInventoryItemsFromLastScanType(self, seqid, iprot, oprot):
|
|
|
881 |
args = getInventoryItemsFromLastScanType_args()
|
|
|
882 |
args.read(iprot)
|
|
|
883 |
iprot.readMessageEnd()
|
|
|
884 |
result = getInventoryItemsFromLastScanType_result()
|
|
|
885 |
try:
|
|
|
886 |
result.success = self._handler.getInventoryItemsFromLastScanType(args.lastScanType)
|
|
|
887 |
except WarehouseServiceException, wex:
|
|
|
888 |
result.wex = wex
|
|
|
889 |
oprot.writeMessageBegin("getInventoryItemsFromLastScanType", TMessageType.REPLY, seqid)
|
|
|
890 |
result.write(oprot)
|
|
|
891 |
oprot.writeMessageEnd()
|
|
|
892 |
oprot.trans.flush()
|
| 5110 |
mandeep.dh |
893 |
|
| 5185 |
mandeep.dh |
894 |
def process_getInventoryItemFromId(self, seqid, iprot, oprot):
|
|
|
895 |
args = getInventoryItemFromId_args()
|
|
|
896 |
args.read(iprot)
|
|
|
897 |
iprot.readMessageEnd()
|
|
|
898 |
result = getInventoryItemFromId_result()
|
|
|
899 |
try:
|
|
|
900 |
result.success = self._handler.getInventoryItemFromId(args.inventoryItemId)
|
|
|
901 |
except WarehouseServiceException, wex:
|
|
|
902 |
result.wex = wex
|
|
|
903 |
oprot.writeMessageBegin("getInventoryItemFromId", TMessageType.REPLY, seqid)
|
|
|
904 |
result.write(oprot)
|
|
|
905 |
oprot.writeMessageEnd()
|
|
|
906 |
oprot.trans.flush()
|
|
|
907 |
|
|
|
908 |
|
| 2821 |
chandransh |
909 |
# HELPER FUNCTIONS AND STRUCTURES
|
|
|
910 |
|
| 4501 |
mandeep.dh |
911 |
class createSerializedInventoryItem_args:
|
| 2821 |
chandransh |
912 |
"""
|
|
|
913 |
Attributes:
|
| 4501 |
mandeep.dh |
914 |
- itemId
|
| 4847 |
mandeep.dh |
915 |
- itemNumber
|
| 4501 |
mandeep.dh |
916 |
- serialNumber
|
|
|
917 |
- purchaseId
|
| 2821 |
chandransh |
918 |
"""
|
|
|
919 |
|
|
|
920 |
thrift_spec = (
|
|
|
921 |
None, # 0
|
| 4501 |
mandeep.dh |
922 |
(1, TType.I64, 'itemId', None, None, ), # 1
|
| 4847 |
mandeep.dh |
923 |
(2, TType.STRING, 'itemNumber', None, None, ), # 2
|
|
|
924 |
(3, TType.STRING, 'serialNumber', None, None, ), # 3
|
|
|
925 |
(4, TType.I64, 'purchaseId', None, None, ), # 4
|
| 2821 |
chandransh |
926 |
)
|
|
|
927 |
|
| 4847 |
mandeep.dh |
928 |
def __init__(self, itemId=None, itemNumber=None, serialNumber=None, purchaseId=None,):
|
| 4501 |
mandeep.dh |
929 |
self.itemId = itemId
|
| 4847 |
mandeep.dh |
930 |
self.itemNumber = itemNumber
|
| 4501 |
mandeep.dh |
931 |
self.serialNumber = serialNumber
|
|
|
932 |
self.purchaseId = purchaseId
|
| 2821 |
chandransh |
933 |
|
|
|
934 |
def read(self, iprot):
|
|
|
935 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
936 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
937 |
return
|
|
|
938 |
iprot.readStructBegin()
|
|
|
939 |
while True:
|
|
|
940 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
941 |
if ftype == TType.STOP:
|
|
|
942 |
break
|
|
|
943 |
if fid == 1:
|
| 4501 |
mandeep.dh |
944 |
if ftype == TType.I64:
|
|
|
945 |
self.itemId = iprot.readI64();
|
| 2821 |
chandransh |
946 |
else:
|
|
|
947 |
iprot.skip(ftype)
|
| 4501 |
mandeep.dh |
948 |
elif fid == 2:
|
|
|
949 |
if ftype == TType.STRING:
|
| 4847 |
mandeep.dh |
950 |
self.itemNumber = iprot.readString();
|
|
|
951 |
else:
|
|
|
952 |
iprot.skip(ftype)
|
|
|
953 |
elif fid == 3:
|
|
|
954 |
if ftype == TType.STRING:
|
| 4501 |
mandeep.dh |
955 |
self.serialNumber = iprot.readString();
|
|
|
956 |
else:
|
|
|
957 |
iprot.skip(ftype)
|
| 4847 |
mandeep.dh |
958 |
elif fid == 4:
|
| 4501 |
mandeep.dh |
959 |
if ftype == TType.I64:
|
|
|
960 |
self.purchaseId = iprot.readI64();
|
|
|
961 |
else:
|
|
|
962 |
iprot.skip(ftype)
|
| 2821 |
chandransh |
963 |
else:
|
|
|
964 |
iprot.skip(ftype)
|
|
|
965 |
iprot.readFieldEnd()
|
|
|
966 |
iprot.readStructEnd()
|
|
|
967 |
|
|
|
968 |
def write(self, oprot):
|
|
|
969 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
970 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
971 |
return
|
| 4501 |
mandeep.dh |
972 |
oprot.writeStructBegin('createSerializedInventoryItem_args')
|
|
|
973 |
if self.itemId is not None:
|
|
|
974 |
oprot.writeFieldBegin('itemId', TType.I64, 1)
|
|
|
975 |
oprot.writeI64(self.itemId)
|
| 2821 |
chandransh |
976 |
oprot.writeFieldEnd()
|
| 4847 |
mandeep.dh |
977 |
if self.itemNumber is not None:
|
|
|
978 |
oprot.writeFieldBegin('itemNumber', TType.STRING, 2)
|
|
|
979 |
oprot.writeString(self.itemNumber)
|
|
|
980 |
oprot.writeFieldEnd()
|
| 4501 |
mandeep.dh |
981 |
if self.serialNumber is not None:
|
| 4847 |
mandeep.dh |
982 |
oprot.writeFieldBegin('serialNumber', TType.STRING, 3)
|
| 4501 |
mandeep.dh |
983 |
oprot.writeString(self.serialNumber)
|
|
|
984 |
oprot.writeFieldEnd()
|
|
|
985 |
if self.purchaseId is not None:
|
| 4847 |
mandeep.dh |
986 |
oprot.writeFieldBegin('purchaseId', TType.I64, 4)
|
| 4501 |
mandeep.dh |
987 |
oprot.writeI64(self.purchaseId)
|
|
|
988 |
oprot.writeFieldEnd()
|
| 2821 |
chandransh |
989 |
oprot.writeFieldStop()
|
|
|
990 |
oprot.writeStructEnd()
|
|
|
991 |
|
| 3431 |
rajveer |
992 |
def validate(self):
|
|
|
993 |
return
|
|
|
994 |
|
|
|
995 |
|
| 2821 |
chandransh |
996 |
def __repr__(self):
|
|
|
997 |
L = ['%s=%r' % (key, value)
|
|
|
998 |
for key, value in self.__dict__.iteritems()]
|
|
|
999 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1000 |
|
|
|
1001 |
def __eq__(self, other):
|
|
|
1002 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1003 |
|
|
|
1004 |
def __ne__(self, other):
|
|
|
1005 |
return not (self == other)
|
|
|
1006 |
|
| 4501 |
mandeep.dh |
1007 |
class createSerializedInventoryItem_result:
|
| 2821 |
chandransh |
1008 |
"""
|
|
|
1009 |
Attributes:
|
|
|
1010 |
- success
|
|
|
1011 |
- wex
|
|
|
1012 |
"""
|
|
|
1013 |
|
|
|
1014 |
thrift_spec = (
|
| 4555 |
mandeep.dh |
1015 |
(0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
|
| 2821 |
chandransh |
1016 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
1017 |
)
|
|
|
1018 |
|
|
|
1019 |
def __init__(self, success=None, wex=None,):
|
|
|
1020 |
self.success = success
|
|
|
1021 |
self.wex = wex
|
|
|
1022 |
|
|
|
1023 |
def read(self, iprot):
|
|
|
1024 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1025 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1026 |
return
|
|
|
1027 |
iprot.readStructBegin()
|
|
|
1028 |
while True:
|
|
|
1029 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1030 |
if ftype == TType.STOP:
|
|
|
1031 |
break
|
|
|
1032 |
if fid == 0:
|
| 4555 |
mandeep.dh |
1033 |
if ftype == TType.STRUCT:
|
|
|
1034 |
self.success = InventoryItem()
|
|
|
1035 |
self.success.read(iprot)
|
| 2821 |
chandransh |
1036 |
else:
|
|
|
1037 |
iprot.skip(ftype)
|
|
|
1038 |
elif fid == 1:
|
|
|
1039 |
if ftype == TType.STRUCT:
|
|
|
1040 |
self.wex = WarehouseServiceException()
|
|
|
1041 |
self.wex.read(iprot)
|
|
|
1042 |
else:
|
|
|
1043 |
iprot.skip(ftype)
|
|
|
1044 |
else:
|
|
|
1045 |
iprot.skip(ftype)
|
|
|
1046 |
iprot.readFieldEnd()
|
|
|
1047 |
iprot.readStructEnd()
|
|
|
1048 |
|
|
|
1049 |
def write(self, oprot):
|
|
|
1050 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1051 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1052 |
return
|
| 4501 |
mandeep.dh |
1053 |
oprot.writeStructBegin('createSerializedInventoryItem_result')
|
| 3431 |
rajveer |
1054 |
if self.success is not None:
|
| 4555 |
mandeep.dh |
1055 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
1056 |
self.success.write(oprot)
|
| 2821 |
chandransh |
1057 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1058 |
if self.wex is not None:
|
| 2821 |
chandransh |
1059 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
1060 |
self.wex.write(oprot)
|
|
|
1061 |
oprot.writeFieldEnd()
|
|
|
1062 |
oprot.writeFieldStop()
|
|
|
1063 |
oprot.writeStructEnd()
|
|
|
1064 |
|
| 3431 |
rajveer |
1065 |
def validate(self):
|
|
|
1066 |
return
|
|
|
1067 |
|
|
|
1068 |
|
| 2821 |
chandransh |
1069 |
def __repr__(self):
|
|
|
1070 |
L = ['%s=%r' % (key, value)
|
|
|
1071 |
for key, value in self.__dict__.iteritems()]
|
|
|
1072 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1073 |
|
|
|
1074 |
def __eq__(self, other):
|
|
|
1075 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1076 |
|
|
|
1077 |
def __ne__(self, other):
|
|
|
1078 |
return not (self == other)
|
|
|
1079 |
|
| 4501 |
mandeep.dh |
1080 |
class createSerializedInventoryItemFromItemNumber_args:
|
| 2821 |
chandransh |
1081 |
"""
|
|
|
1082 |
Attributes:
|
| 4501 |
mandeep.dh |
1083 |
- itemNumber
|
|
|
1084 |
- serialNumber
|
|
|
1085 |
- purchaseId
|
| 2821 |
chandransh |
1086 |
"""
|
|
|
1087 |
|
|
|
1088 |
thrift_spec = (
|
|
|
1089 |
None, # 0
|
| 4501 |
mandeep.dh |
1090 |
(1, TType.STRING, 'itemNumber', None, None, ), # 1
|
|
|
1091 |
(2, TType.STRING, 'serialNumber', None, None, ), # 2
|
|
|
1092 |
(3, TType.I64, 'purchaseId', None, None, ), # 3
|
| 2821 |
chandransh |
1093 |
)
|
|
|
1094 |
|
| 4501 |
mandeep.dh |
1095 |
def __init__(self, itemNumber=None, serialNumber=None, purchaseId=None,):
|
|
|
1096 |
self.itemNumber = itemNumber
|
|
|
1097 |
self.serialNumber = serialNumber
|
|
|
1098 |
self.purchaseId = purchaseId
|
| 2821 |
chandransh |
1099 |
|
|
|
1100 |
def read(self, iprot):
|
|
|
1101 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1102 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1103 |
return
|
|
|
1104 |
iprot.readStructBegin()
|
|
|
1105 |
while True:
|
|
|
1106 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1107 |
if ftype == TType.STOP:
|
|
|
1108 |
break
|
|
|
1109 |
if fid == 1:
|
| 4501 |
mandeep.dh |
1110 |
if ftype == TType.STRING:
|
|
|
1111 |
self.itemNumber = iprot.readString();
|
|
|
1112 |
else:
|
|
|
1113 |
iprot.skip(ftype)
|
|
|
1114 |
elif fid == 2:
|
|
|
1115 |
if ftype == TType.STRING:
|
|
|
1116 |
self.serialNumber = iprot.readString();
|
|
|
1117 |
else:
|
|
|
1118 |
iprot.skip(ftype)
|
|
|
1119 |
elif fid == 3:
|
| 2821 |
chandransh |
1120 |
if ftype == TType.I64:
|
| 4501 |
mandeep.dh |
1121 |
self.purchaseId = iprot.readI64();
|
| 2821 |
chandransh |
1122 |
else:
|
|
|
1123 |
iprot.skip(ftype)
|
|
|
1124 |
else:
|
|
|
1125 |
iprot.skip(ftype)
|
|
|
1126 |
iprot.readFieldEnd()
|
|
|
1127 |
iprot.readStructEnd()
|
|
|
1128 |
|
|
|
1129 |
def write(self, oprot):
|
|
|
1130 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1131 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1132 |
return
|
| 4501 |
mandeep.dh |
1133 |
oprot.writeStructBegin('createSerializedInventoryItemFromItemNumber_args')
|
|
|
1134 |
if self.itemNumber is not None:
|
|
|
1135 |
oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
|
|
|
1136 |
oprot.writeString(self.itemNumber)
|
| 2821 |
chandransh |
1137 |
oprot.writeFieldEnd()
|
| 4501 |
mandeep.dh |
1138 |
if self.serialNumber is not None:
|
|
|
1139 |
oprot.writeFieldBegin('serialNumber', TType.STRING, 2)
|
|
|
1140 |
oprot.writeString(self.serialNumber)
|
|
|
1141 |
oprot.writeFieldEnd()
|
|
|
1142 |
if self.purchaseId is not None:
|
|
|
1143 |
oprot.writeFieldBegin('purchaseId', TType.I64, 3)
|
|
|
1144 |
oprot.writeI64(self.purchaseId)
|
|
|
1145 |
oprot.writeFieldEnd()
|
| 2821 |
chandransh |
1146 |
oprot.writeFieldStop()
|
|
|
1147 |
oprot.writeStructEnd()
|
|
|
1148 |
|
| 3431 |
rajveer |
1149 |
def validate(self):
|
|
|
1150 |
return
|
|
|
1151 |
|
|
|
1152 |
|
| 2821 |
chandransh |
1153 |
def __repr__(self):
|
|
|
1154 |
L = ['%s=%r' % (key, value)
|
|
|
1155 |
for key, value in self.__dict__.iteritems()]
|
|
|
1156 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1157 |
|
|
|
1158 |
def __eq__(self, other):
|
|
|
1159 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1160 |
|
|
|
1161 |
def __ne__(self, other):
|
|
|
1162 |
return not (self == other)
|
|
|
1163 |
|
| 4501 |
mandeep.dh |
1164 |
class createSerializedInventoryItemFromItemNumber_result:
|
| 2821 |
chandransh |
1165 |
"""
|
|
|
1166 |
Attributes:
|
|
|
1167 |
- success
|
|
|
1168 |
- wex
|
|
|
1169 |
"""
|
|
|
1170 |
|
|
|
1171 |
thrift_spec = (
|
| 4555 |
mandeep.dh |
1172 |
(0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
|
| 2821 |
chandransh |
1173 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
1174 |
)
|
|
|
1175 |
|
|
|
1176 |
def __init__(self, success=None, wex=None,):
|
|
|
1177 |
self.success = success
|
|
|
1178 |
self.wex = wex
|
|
|
1179 |
|
|
|
1180 |
def read(self, iprot):
|
|
|
1181 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1182 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1183 |
return
|
|
|
1184 |
iprot.readStructBegin()
|
|
|
1185 |
while True:
|
|
|
1186 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1187 |
if ftype == TType.STOP:
|
|
|
1188 |
break
|
|
|
1189 |
if fid == 0:
|
| 4555 |
mandeep.dh |
1190 |
if ftype == TType.STRUCT:
|
|
|
1191 |
self.success = InventoryItem()
|
|
|
1192 |
self.success.read(iprot)
|
| 2821 |
chandransh |
1193 |
else:
|
|
|
1194 |
iprot.skip(ftype)
|
|
|
1195 |
elif fid == 1:
|
|
|
1196 |
if ftype == TType.STRUCT:
|
|
|
1197 |
self.wex = WarehouseServiceException()
|
|
|
1198 |
self.wex.read(iprot)
|
|
|
1199 |
else:
|
|
|
1200 |
iprot.skip(ftype)
|
|
|
1201 |
else:
|
|
|
1202 |
iprot.skip(ftype)
|
|
|
1203 |
iprot.readFieldEnd()
|
|
|
1204 |
iprot.readStructEnd()
|
|
|
1205 |
|
|
|
1206 |
def write(self, oprot):
|
|
|
1207 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1208 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1209 |
return
|
| 4501 |
mandeep.dh |
1210 |
oprot.writeStructBegin('createSerializedInventoryItemFromItemNumber_result')
|
| 3431 |
rajveer |
1211 |
if self.success is not None:
|
| 4555 |
mandeep.dh |
1212 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
1213 |
self.success.write(oprot)
|
| 2821 |
chandransh |
1214 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1215 |
if self.wex is not None:
|
| 2821 |
chandransh |
1216 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
1217 |
self.wex.write(oprot)
|
|
|
1218 |
oprot.writeFieldEnd()
|
|
|
1219 |
oprot.writeFieldStop()
|
|
|
1220 |
oprot.writeStructEnd()
|
|
|
1221 |
|
| 3431 |
rajveer |
1222 |
def validate(self):
|
|
|
1223 |
return
|
|
|
1224 |
|
|
|
1225 |
|
| 2821 |
chandransh |
1226 |
def __repr__(self):
|
|
|
1227 |
L = ['%s=%r' % (key, value)
|
|
|
1228 |
for key, value in self.__dict__.iteritems()]
|
|
|
1229 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1230 |
|
|
|
1231 |
def __eq__(self, other):
|
|
|
1232 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1233 |
|
|
|
1234 |
def __ne__(self, other):
|
|
|
1235 |
return not (self == other)
|
|
|
1236 |
|
| 4501 |
mandeep.dh |
1237 |
class createInventoryItem_args:
|
| 3383 |
chandransh |
1238 |
"""
|
|
|
1239 |
Attributes:
|
| 4501 |
mandeep.dh |
1240 |
- itemId
|
|
|
1241 |
- quantity
|
|
|
1242 |
- purchaseId
|
| 3383 |
chandransh |
1243 |
"""
|
|
|
1244 |
|
|
|
1245 |
thrift_spec = (
|
|
|
1246 |
None, # 0
|
| 4501 |
mandeep.dh |
1247 |
(1, TType.I64, 'itemId', None, None, ), # 1
|
|
|
1248 |
(2, TType.I64, 'quantity', None, None, ), # 2
|
|
|
1249 |
(3, TType.I64, 'purchaseId', None, None, ), # 3
|
| 3383 |
chandransh |
1250 |
)
|
|
|
1251 |
|
| 4501 |
mandeep.dh |
1252 |
def __init__(self, itemId=None, quantity=None, purchaseId=None,):
|
|
|
1253 |
self.itemId = itemId
|
|
|
1254 |
self.quantity = quantity
|
|
|
1255 |
self.purchaseId = purchaseId
|
| 3383 |
chandransh |
1256 |
|
|
|
1257 |
def read(self, iprot):
|
|
|
1258 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1259 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1260 |
return
|
|
|
1261 |
iprot.readStructBegin()
|
|
|
1262 |
while True:
|
|
|
1263 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1264 |
if ftype == TType.STOP:
|
|
|
1265 |
break
|
|
|
1266 |
if fid == 1:
|
| 4501 |
mandeep.dh |
1267 |
if ftype == TType.I64:
|
|
|
1268 |
self.itemId = iprot.readI64();
|
| 3383 |
chandransh |
1269 |
else:
|
|
|
1270 |
iprot.skip(ftype)
|
| 4501 |
mandeep.dh |
1271 |
elif fid == 2:
|
|
|
1272 |
if ftype == TType.I64:
|
|
|
1273 |
self.quantity = iprot.readI64();
|
|
|
1274 |
else:
|
|
|
1275 |
iprot.skip(ftype)
|
|
|
1276 |
elif fid == 3:
|
|
|
1277 |
if ftype == TType.I64:
|
|
|
1278 |
self.purchaseId = iprot.readI64();
|
|
|
1279 |
else:
|
|
|
1280 |
iprot.skip(ftype)
|
| 3383 |
chandransh |
1281 |
else:
|
|
|
1282 |
iprot.skip(ftype)
|
|
|
1283 |
iprot.readFieldEnd()
|
|
|
1284 |
iprot.readStructEnd()
|
|
|
1285 |
|
|
|
1286 |
def write(self, oprot):
|
|
|
1287 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1288 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1289 |
return
|
| 4501 |
mandeep.dh |
1290 |
oprot.writeStructBegin('createInventoryItem_args')
|
|
|
1291 |
if self.itemId is not None:
|
|
|
1292 |
oprot.writeFieldBegin('itemId', TType.I64, 1)
|
|
|
1293 |
oprot.writeI64(self.itemId)
|
| 3383 |
chandransh |
1294 |
oprot.writeFieldEnd()
|
| 4501 |
mandeep.dh |
1295 |
if self.quantity is not None:
|
|
|
1296 |
oprot.writeFieldBegin('quantity', TType.I64, 2)
|
|
|
1297 |
oprot.writeI64(self.quantity)
|
|
|
1298 |
oprot.writeFieldEnd()
|
|
|
1299 |
if self.purchaseId is not None:
|
|
|
1300 |
oprot.writeFieldBegin('purchaseId', TType.I64, 3)
|
|
|
1301 |
oprot.writeI64(self.purchaseId)
|
|
|
1302 |
oprot.writeFieldEnd()
|
| 3383 |
chandransh |
1303 |
oprot.writeFieldStop()
|
|
|
1304 |
oprot.writeStructEnd()
|
|
|
1305 |
|
| 3431 |
rajveer |
1306 |
def validate(self):
|
|
|
1307 |
return
|
|
|
1308 |
|
|
|
1309 |
|
| 3383 |
chandransh |
1310 |
def __repr__(self):
|
|
|
1311 |
L = ['%s=%r' % (key, value)
|
|
|
1312 |
for key, value in self.__dict__.iteritems()]
|
|
|
1313 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1314 |
|
|
|
1315 |
def __eq__(self, other):
|
|
|
1316 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1317 |
|
|
|
1318 |
def __ne__(self, other):
|
|
|
1319 |
return not (self == other)
|
|
|
1320 |
|
| 4501 |
mandeep.dh |
1321 |
class createInventoryItem_result:
|
| 3383 |
chandransh |
1322 |
"""
|
|
|
1323 |
Attributes:
|
|
|
1324 |
- success
|
|
|
1325 |
- wex
|
|
|
1326 |
"""
|
|
|
1327 |
|
|
|
1328 |
thrift_spec = (
|
| 4555 |
mandeep.dh |
1329 |
(0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
|
| 3383 |
chandransh |
1330 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
1331 |
)
|
|
|
1332 |
|
|
|
1333 |
def __init__(self, success=None, wex=None,):
|
|
|
1334 |
self.success = success
|
|
|
1335 |
self.wex = wex
|
|
|
1336 |
|
|
|
1337 |
def read(self, iprot):
|
|
|
1338 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1339 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1340 |
return
|
|
|
1341 |
iprot.readStructBegin()
|
|
|
1342 |
while True:
|
|
|
1343 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1344 |
if ftype == TType.STOP:
|
|
|
1345 |
break
|
|
|
1346 |
if fid == 0:
|
| 4555 |
mandeep.dh |
1347 |
if ftype == TType.STRUCT:
|
|
|
1348 |
self.success = InventoryItem()
|
|
|
1349 |
self.success.read(iprot)
|
| 3383 |
chandransh |
1350 |
else:
|
|
|
1351 |
iprot.skip(ftype)
|
|
|
1352 |
elif fid == 1:
|
|
|
1353 |
if ftype == TType.STRUCT:
|
|
|
1354 |
self.wex = WarehouseServiceException()
|
|
|
1355 |
self.wex.read(iprot)
|
|
|
1356 |
else:
|
|
|
1357 |
iprot.skip(ftype)
|
|
|
1358 |
else:
|
|
|
1359 |
iprot.skip(ftype)
|
|
|
1360 |
iprot.readFieldEnd()
|
|
|
1361 |
iprot.readStructEnd()
|
|
|
1362 |
|
|
|
1363 |
def write(self, oprot):
|
|
|
1364 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1365 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1366 |
return
|
| 4501 |
mandeep.dh |
1367 |
oprot.writeStructBegin('createInventoryItem_result')
|
| 3431 |
rajveer |
1368 |
if self.success is not None:
|
| 4555 |
mandeep.dh |
1369 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
1370 |
self.success.write(oprot)
|
| 3383 |
chandransh |
1371 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1372 |
if self.wex is not None:
|
| 3383 |
chandransh |
1373 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
1374 |
self.wex.write(oprot)
|
|
|
1375 |
oprot.writeFieldEnd()
|
|
|
1376 |
oprot.writeFieldStop()
|
|
|
1377 |
oprot.writeStructEnd()
|
|
|
1378 |
|
| 3431 |
rajveer |
1379 |
def validate(self):
|
|
|
1380 |
return
|
|
|
1381 |
|
|
|
1382 |
|
| 3383 |
chandransh |
1383 |
def __repr__(self):
|
|
|
1384 |
L = ['%s=%r' % (key, value)
|
|
|
1385 |
for key, value in self.__dict__.iteritems()]
|
|
|
1386 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1387 |
|
|
|
1388 |
def __eq__(self, other):
|
|
|
1389 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1390 |
|
|
|
1391 |
def __ne__(self, other):
|
|
|
1392 |
return not (self == other)
|
|
|
1393 |
|
| 4501 |
mandeep.dh |
1394 |
class getInventoryItem_args:
|
| 2832 |
chandransh |
1395 |
"""
|
|
|
1396 |
Attributes:
|
| 4501 |
mandeep.dh |
1397 |
- serialNumber
|
| 2832 |
chandransh |
1398 |
"""
|
|
|
1399 |
|
|
|
1400 |
thrift_spec = (
|
|
|
1401 |
None, # 0
|
| 4501 |
mandeep.dh |
1402 |
(1, TType.STRING, 'serialNumber', None, None, ), # 1
|
| 2832 |
chandransh |
1403 |
)
|
|
|
1404 |
|
| 4501 |
mandeep.dh |
1405 |
def __init__(self, serialNumber=None,):
|
|
|
1406 |
self.serialNumber = serialNumber
|
| 2832 |
chandransh |
1407 |
|
|
|
1408 |
def read(self, iprot):
|
|
|
1409 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1410 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1411 |
return
|
|
|
1412 |
iprot.readStructBegin()
|
|
|
1413 |
while True:
|
|
|
1414 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1415 |
if ftype == TType.STOP:
|
|
|
1416 |
break
|
|
|
1417 |
if fid == 1:
|
| 4501 |
mandeep.dh |
1418 |
if ftype == TType.STRING:
|
|
|
1419 |
self.serialNumber = iprot.readString();
|
| 2832 |
chandransh |
1420 |
else:
|
|
|
1421 |
iprot.skip(ftype)
|
|
|
1422 |
else:
|
|
|
1423 |
iprot.skip(ftype)
|
|
|
1424 |
iprot.readFieldEnd()
|
|
|
1425 |
iprot.readStructEnd()
|
|
|
1426 |
|
|
|
1427 |
def write(self, oprot):
|
|
|
1428 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1429 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1430 |
return
|
| 4501 |
mandeep.dh |
1431 |
oprot.writeStructBegin('getInventoryItem_args')
|
|
|
1432 |
if self.serialNumber is not None:
|
|
|
1433 |
oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
|
|
|
1434 |
oprot.writeString(self.serialNumber)
|
| 2832 |
chandransh |
1435 |
oprot.writeFieldEnd()
|
|
|
1436 |
oprot.writeFieldStop()
|
|
|
1437 |
oprot.writeStructEnd()
|
|
|
1438 |
|
| 3431 |
rajveer |
1439 |
def validate(self):
|
|
|
1440 |
return
|
|
|
1441 |
|
|
|
1442 |
|
| 2832 |
chandransh |
1443 |
def __repr__(self):
|
|
|
1444 |
L = ['%s=%r' % (key, value)
|
|
|
1445 |
for key, value in self.__dict__.iteritems()]
|
|
|
1446 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1447 |
|
|
|
1448 |
def __eq__(self, other):
|
|
|
1449 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1450 |
|
|
|
1451 |
def __ne__(self, other):
|
|
|
1452 |
return not (self == other)
|
|
|
1453 |
|
| 4501 |
mandeep.dh |
1454 |
class getInventoryItem_result:
|
| 2832 |
chandransh |
1455 |
"""
|
|
|
1456 |
Attributes:
|
|
|
1457 |
- success
|
| 4541 |
mandeep.dh |
1458 |
- wex
|
| 2832 |
chandransh |
1459 |
"""
|
|
|
1460 |
|
|
|
1461 |
thrift_spec = (
|
| 4501 |
mandeep.dh |
1462 |
(0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
|
| 4541 |
mandeep.dh |
1463 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
| 2832 |
chandransh |
1464 |
)
|
|
|
1465 |
|
| 4541 |
mandeep.dh |
1466 |
def __init__(self, success=None, wex=None,):
|
| 2832 |
chandransh |
1467 |
self.success = success
|
| 4541 |
mandeep.dh |
1468 |
self.wex = wex
|
| 2832 |
chandransh |
1469 |
|
|
|
1470 |
def read(self, iprot):
|
|
|
1471 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1472 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1473 |
return
|
|
|
1474 |
iprot.readStructBegin()
|
|
|
1475 |
while True:
|
|
|
1476 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1477 |
if ftype == TType.STOP:
|
|
|
1478 |
break
|
|
|
1479 |
if fid == 0:
|
|
|
1480 |
if ftype == TType.STRUCT:
|
| 4501 |
mandeep.dh |
1481 |
self.success = InventoryItem()
|
| 2832 |
chandransh |
1482 |
self.success.read(iprot)
|
|
|
1483 |
else:
|
|
|
1484 |
iprot.skip(ftype)
|
| 4541 |
mandeep.dh |
1485 |
elif fid == 1:
|
|
|
1486 |
if ftype == TType.STRUCT:
|
|
|
1487 |
self.wex = WarehouseServiceException()
|
|
|
1488 |
self.wex.read(iprot)
|
|
|
1489 |
else:
|
|
|
1490 |
iprot.skip(ftype)
|
| 2832 |
chandransh |
1491 |
else:
|
|
|
1492 |
iprot.skip(ftype)
|
|
|
1493 |
iprot.readFieldEnd()
|
|
|
1494 |
iprot.readStructEnd()
|
|
|
1495 |
|
|
|
1496 |
def write(self, oprot):
|
|
|
1497 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1498 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1499 |
return
|
| 4501 |
mandeep.dh |
1500 |
oprot.writeStructBegin('getInventoryItem_result')
|
| 3431 |
rajveer |
1501 |
if self.success is not None:
|
| 2832 |
chandransh |
1502 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
1503 |
self.success.write(oprot)
|
|
|
1504 |
oprot.writeFieldEnd()
|
| 4541 |
mandeep.dh |
1505 |
if self.wex is not None:
|
|
|
1506 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
1507 |
self.wex.write(oprot)
|
|
|
1508 |
oprot.writeFieldEnd()
|
| 2832 |
chandransh |
1509 |
oprot.writeFieldStop()
|
|
|
1510 |
oprot.writeStructEnd()
|
|
|
1511 |
|
| 3431 |
rajveer |
1512 |
def validate(self):
|
|
|
1513 |
return
|
|
|
1514 |
|
|
|
1515 |
|
| 2832 |
chandransh |
1516 |
def __repr__(self):
|
|
|
1517 |
L = ['%s=%r' % (key, value)
|
|
|
1518 |
for key, value in self.__dict__.iteritems()]
|
|
|
1519 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1520 |
|
|
|
1521 |
def __eq__(self, other):
|
|
|
1522 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1523 |
|
|
|
1524 |
def __ne__(self, other):
|
|
|
1525 |
return not (self == other)
|
|
|
1526 |
|
| 5361 |
mandeep.dh |
1527 |
class getNonSeralizedInventoryItem_args:
|
| 2821 |
chandransh |
1528 |
"""
|
|
|
1529 |
Attributes:
|
| 4501 |
mandeep.dh |
1530 |
- itemId
|
| 5361 |
mandeep.dh |
1531 |
- warehouseId
|
| 2821 |
chandransh |
1532 |
"""
|
|
|
1533 |
|
|
|
1534 |
thrift_spec = (
|
|
|
1535 |
None, # 0
|
| 4501 |
mandeep.dh |
1536 |
(1, TType.I64, 'itemId', None, None, ), # 1
|
| 5361 |
mandeep.dh |
1537 |
(2, TType.I64, 'warehouseId', None, None, ), # 2
|
| 2821 |
chandransh |
1538 |
)
|
|
|
1539 |
|
| 5361 |
mandeep.dh |
1540 |
def __init__(self, itemId=None, warehouseId=None,):
|
| 4501 |
mandeep.dh |
1541 |
self.itemId = itemId
|
| 5361 |
mandeep.dh |
1542 |
self.warehouseId = warehouseId
|
| 2821 |
chandransh |
1543 |
|
|
|
1544 |
def read(self, iprot):
|
|
|
1545 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1546 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1547 |
return
|
|
|
1548 |
iprot.readStructBegin()
|
|
|
1549 |
while True:
|
|
|
1550 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1551 |
if ftype == TType.STOP:
|
|
|
1552 |
break
|
|
|
1553 |
if fid == 1:
|
|
|
1554 |
if ftype == TType.I64:
|
| 4501 |
mandeep.dh |
1555 |
self.itemId = iprot.readI64();
|
| 2821 |
chandransh |
1556 |
else:
|
|
|
1557 |
iprot.skip(ftype)
|
|
|
1558 |
elif fid == 2:
|
| 4501 |
mandeep.dh |
1559 |
if ftype == TType.I64:
|
| 5361 |
mandeep.dh |
1560 |
self.warehouseId = iprot.readI64();
|
| 2821 |
chandransh |
1561 |
else:
|
|
|
1562 |
iprot.skip(ftype)
|
|
|
1563 |
else:
|
|
|
1564 |
iprot.skip(ftype)
|
|
|
1565 |
iprot.readFieldEnd()
|
|
|
1566 |
iprot.readStructEnd()
|
|
|
1567 |
|
|
|
1568 |
def write(self, oprot):
|
|
|
1569 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1570 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1571 |
return
|
| 5361 |
mandeep.dh |
1572 |
oprot.writeStructBegin('getNonSeralizedInventoryItem_args')
|
| 4501 |
mandeep.dh |
1573 |
if self.itemId is not None:
|
|
|
1574 |
oprot.writeFieldBegin('itemId', TType.I64, 1)
|
|
|
1575 |
oprot.writeI64(self.itemId)
|
| 2821 |
chandransh |
1576 |
oprot.writeFieldEnd()
|
| 5361 |
mandeep.dh |
1577 |
if self.warehouseId is not None:
|
|
|
1578 |
oprot.writeFieldBegin('warehouseId', TType.I64, 2)
|
|
|
1579 |
oprot.writeI64(self.warehouseId)
|
| 2821 |
chandransh |
1580 |
oprot.writeFieldEnd()
|
|
|
1581 |
oprot.writeFieldStop()
|
|
|
1582 |
oprot.writeStructEnd()
|
|
|
1583 |
|
| 3431 |
rajveer |
1584 |
def validate(self):
|
|
|
1585 |
return
|
|
|
1586 |
|
|
|
1587 |
|
| 2821 |
chandransh |
1588 |
def __repr__(self):
|
|
|
1589 |
L = ['%s=%r' % (key, value)
|
|
|
1590 |
for key, value in self.__dict__.iteritems()]
|
|
|
1591 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1592 |
|
|
|
1593 |
def __eq__(self, other):
|
|
|
1594 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1595 |
|
|
|
1596 |
def __ne__(self, other):
|
|
|
1597 |
return not (self == other)
|
|
|
1598 |
|
| 5361 |
mandeep.dh |
1599 |
class getNonSeralizedInventoryItem_result:
|
| 2821 |
chandransh |
1600 |
"""
|
|
|
1601 |
Attributes:
|
|
|
1602 |
- success
|
| 5361 |
mandeep.dh |
1603 |
- wex
|
| 2821 |
chandransh |
1604 |
"""
|
|
|
1605 |
|
|
|
1606 |
thrift_spec = (
|
| 5361 |
mandeep.dh |
1607 |
(0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
|
|
|
1608 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
| 2821 |
chandransh |
1609 |
)
|
|
|
1610 |
|
| 5361 |
mandeep.dh |
1611 |
def __init__(self, success=None, wex=None,):
|
| 2821 |
chandransh |
1612 |
self.success = success
|
| 5361 |
mandeep.dh |
1613 |
self.wex = wex
|
| 2821 |
chandransh |
1614 |
|
|
|
1615 |
def read(self, iprot):
|
|
|
1616 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1617 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1618 |
return
|
|
|
1619 |
iprot.readStructBegin()
|
|
|
1620 |
while True:
|
|
|
1621 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1622 |
if ftype == TType.STOP:
|
|
|
1623 |
break
|
|
|
1624 |
if fid == 0:
|
| 5361 |
mandeep.dh |
1625 |
if ftype == TType.STRUCT:
|
|
|
1626 |
self.success = InventoryItem()
|
|
|
1627 |
self.success.read(iprot)
|
| 2821 |
chandransh |
1628 |
else:
|
|
|
1629 |
iprot.skip(ftype)
|
| 5361 |
mandeep.dh |
1630 |
elif fid == 1:
|
|
|
1631 |
if ftype == TType.STRUCT:
|
|
|
1632 |
self.wex = WarehouseServiceException()
|
|
|
1633 |
self.wex.read(iprot)
|
| 2821 |
chandransh |
1634 |
else:
|
|
|
1635 |
iprot.skip(ftype)
|
|
|
1636 |
else:
|
|
|
1637 |
iprot.skip(ftype)
|
|
|
1638 |
iprot.readFieldEnd()
|
|
|
1639 |
iprot.readStructEnd()
|
|
|
1640 |
|
|
|
1641 |
def write(self, oprot):
|
|
|
1642 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1643 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1644 |
return
|
| 5361 |
mandeep.dh |
1645 |
oprot.writeStructBegin('getNonSeralizedInventoryItem_result')
|
| 3431 |
rajveer |
1646 |
if self.success is not None:
|
| 5361 |
mandeep.dh |
1647 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
1648 |
self.success.write(oprot)
|
| 2821 |
chandransh |
1649 |
oprot.writeFieldEnd()
|
| 5361 |
mandeep.dh |
1650 |
if self.wex is not None:
|
|
|
1651 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
1652 |
self.wex.write(oprot)
|
| 3383 |
chandransh |
1653 |
oprot.writeFieldEnd()
|
|
|
1654 |
oprot.writeFieldStop()
|
|
|
1655 |
oprot.writeStructEnd()
|
|
|
1656 |
|
| 3431 |
rajveer |
1657 |
def validate(self):
|
|
|
1658 |
return
|
|
|
1659 |
|
|
|
1660 |
|
| 3383 |
chandransh |
1661 |
def __repr__(self):
|
|
|
1662 |
L = ['%s=%r' % (key, value)
|
|
|
1663 |
for key, value in self.__dict__.iteritems()]
|
|
|
1664 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1665 |
|
|
|
1666 |
def __eq__(self, other):
|
|
|
1667 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1668 |
|
|
|
1669 |
def __ne__(self, other):
|
|
|
1670 |
return not (self == other)
|
|
|
1671 |
|
| 4501 |
mandeep.dh |
1672 |
class scanSerializedItem_args:
|
|
|
1673 |
"""
|
|
|
1674 |
Attributes:
|
| 5110 |
mandeep.dh |
1675 |
- inventoryItem
|
| 4501 |
mandeep.dh |
1676 |
- type
|
| 5361 |
mandeep.dh |
1677 |
- billingWarehouseId
|
| 4501 |
mandeep.dh |
1678 |
"""
|
|
|
1679 |
|
|
|
1680 |
thrift_spec = (
|
|
|
1681 |
None, # 0
|
| 5110 |
mandeep.dh |
1682 |
(1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
|
| 4501 |
mandeep.dh |
1683 |
(2, TType.I32, 'type', None, None, ), # 2
|
| 5361 |
mandeep.dh |
1684 |
(3, TType.I64, 'billingWarehouseId', None, None, ), # 3
|
| 4501 |
mandeep.dh |
1685 |
)
|
|
|
1686 |
|
| 5361 |
mandeep.dh |
1687 |
def __init__(self, inventoryItem=None, type=None, billingWarehouseId=None,):
|
| 5110 |
mandeep.dh |
1688 |
self.inventoryItem = inventoryItem
|
| 4501 |
mandeep.dh |
1689 |
self.type = type
|
| 5361 |
mandeep.dh |
1690 |
self.billingWarehouseId = billingWarehouseId
|
| 4501 |
mandeep.dh |
1691 |
|
|
|
1692 |
def read(self, iprot):
|
|
|
1693 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1694 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1695 |
return
|
|
|
1696 |
iprot.readStructBegin()
|
|
|
1697 |
while True:
|
|
|
1698 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1699 |
if ftype == TType.STOP:
|
|
|
1700 |
break
|
|
|
1701 |
if fid == 1:
|
| 5110 |
mandeep.dh |
1702 |
if ftype == TType.STRUCT:
|
|
|
1703 |
self.inventoryItem = InventoryItem()
|
|
|
1704 |
self.inventoryItem.read(iprot)
|
| 4501 |
mandeep.dh |
1705 |
else:
|
|
|
1706 |
iprot.skip(ftype)
|
|
|
1707 |
elif fid == 2:
|
|
|
1708 |
if ftype == TType.I32:
|
|
|
1709 |
self.type = iprot.readI32();
|
|
|
1710 |
else:
|
|
|
1711 |
iprot.skip(ftype)
|
|
|
1712 |
elif fid == 3:
|
|
|
1713 |
if ftype == TType.I64:
|
| 5361 |
mandeep.dh |
1714 |
self.billingWarehouseId = iprot.readI64();
|
| 4501 |
mandeep.dh |
1715 |
else:
|
|
|
1716 |
iprot.skip(ftype)
|
|
|
1717 |
else:
|
|
|
1718 |
iprot.skip(ftype)
|
|
|
1719 |
iprot.readFieldEnd()
|
|
|
1720 |
iprot.readStructEnd()
|
|
|
1721 |
|
|
|
1722 |
def write(self, oprot):
|
|
|
1723 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1724 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1725 |
return
|
|
|
1726 |
oprot.writeStructBegin('scanSerializedItem_args')
|
| 5110 |
mandeep.dh |
1727 |
if self.inventoryItem is not None:
|
|
|
1728 |
oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
|
|
|
1729 |
self.inventoryItem.write(oprot)
|
| 4501 |
mandeep.dh |
1730 |
oprot.writeFieldEnd()
|
|
|
1731 |
if self.type is not None:
|
|
|
1732 |
oprot.writeFieldBegin('type', TType.I32, 2)
|
|
|
1733 |
oprot.writeI32(self.type)
|
|
|
1734 |
oprot.writeFieldEnd()
|
| 5361 |
mandeep.dh |
1735 |
if self.billingWarehouseId is not None:
|
|
|
1736 |
oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
|
|
|
1737 |
oprot.writeI64(self.billingWarehouseId)
|
| 4501 |
mandeep.dh |
1738 |
oprot.writeFieldEnd()
|
|
|
1739 |
oprot.writeFieldStop()
|
|
|
1740 |
oprot.writeStructEnd()
|
|
|
1741 |
|
|
|
1742 |
def validate(self):
|
|
|
1743 |
return
|
|
|
1744 |
|
|
|
1745 |
|
|
|
1746 |
def __repr__(self):
|
|
|
1747 |
L = ['%s=%r' % (key, value)
|
|
|
1748 |
for key, value in self.__dict__.iteritems()]
|
|
|
1749 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1750 |
|
|
|
1751 |
def __eq__(self, other):
|
|
|
1752 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1753 |
|
|
|
1754 |
def __ne__(self, other):
|
|
|
1755 |
return not (self == other)
|
|
|
1756 |
|
|
|
1757 |
class scanSerializedItem_result:
|
|
|
1758 |
"""
|
|
|
1759 |
Attributes:
|
|
|
1760 |
- wex
|
|
|
1761 |
"""
|
|
|
1762 |
|
|
|
1763 |
thrift_spec = (
|
|
|
1764 |
None, # 0
|
|
|
1765 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
1766 |
)
|
|
|
1767 |
|
|
|
1768 |
def __init__(self, wex=None,):
|
|
|
1769 |
self.wex = wex
|
|
|
1770 |
|
|
|
1771 |
def read(self, iprot):
|
|
|
1772 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1773 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1774 |
return
|
|
|
1775 |
iprot.readStructBegin()
|
|
|
1776 |
while True:
|
|
|
1777 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1778 |
if ftype == TType.STOP:
|
|
|
1779 |
break
|
|
|
1780 |
if fid == 1:
|
|
|
1781 |
if ftype == TType.STRUCT:
|
|
|
1782 |
self.wex = WarehouseServiceException()
|
|
|
1783 |
self.wex.read(iprot)
|
|
|
1784 |
else:
|
|
|
1785 |
iprot.skip(ftype)
|
|
|
1786 |
else:
|
|
|
1787 |
iprot.skip(ftype)
|
|
|
1788 |
iprot.readFieldEnd()
|
|
|
1789 |
iprot.readStructEnd()
|
|
|
1790 |
|
|
|
1791 |
def write(self, oprot):
|
|
|
1792 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1793 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1794 |
return
|
|
|
1795 |
oprot.writeStructBegin('scanSerializedItem_result')
|
| 3431 |
rajveer |
1796 |
if self.wex is not None:
|
| 3383 |
chandransh |
1797 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
1798 |
self.wex.write(oprot)
|
|
|
1799 |
oprot.writeFieldEnd()
|
|
|
1800 |
oprot.writeFieldStop()
|
|
|
1801 |
oprot.writeStructEnd()
|
|
|
1802 |
|
| 3431 |
rajveer |
1803 |
def validate(self):
|
|
|
1804 |
return
|
|
|
1805 |
|
|
|
1806 |
|
| 3383 |
chandransh |
1807 |
def __repr__(self):
|
|
|
1808 |
L = ['%s=%r' % (key, value)
|
|
|
1809 |
for key, value in self.__dict__.iteritems()]
|
|
|
1810 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1811 |
|
|
|
1812 |
def __eq__(self, other):
|
|
|
1813 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1814 |
|
|
|
1815 |
def __ne__(self, other):
|
|
|
1816 |
return not (self == other)
|
|
|
1817 |
|
| 4501 |
mandeep.dh |
1818 |
class scan_args:
|
| 2821 |
chandransh |
1819 |
"""
|
|
|
1820 |
Attributes:
|
| 5361 |
mandeep.dh |
1821 |
- inventoryItem
|
| 2821 |
chandransh |
1822 |
- type
|
| 4501 |
mandeep.dh |
1823 |
- quantity
|
| 5361 |
mandeep.dh |
1824 |
- billingWarehouseId
|
| 2821 |
chandransh |
1825 |
"""
|
|
|
1826 |
|
|
|
1827 |
thrift_spec = (
|
|
|
1828 |
None, # 0
|
| 5361 |
mandeep.dh |
1829 |
(1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
|
| 4501 |
mandeep.dh |
1830 |
(2, TType.I32, 'type', None, None, ), # 2
|
|
|
1831 |
(3, TType.I64, 'quantity', None, None, ), # 3
|
| 5361 |
mandeep.dh |
1832 |
(4, TType.I64, 'billingWarehouseId', None, None, ), # 4
|
| 2821 |
chandransh |
1833 |
)
|
|
|
1834 |
|
| 5361 |
mandeep.dh |
1835 |
def __init__(self, inventoryItem=None, type=None, quantity=None, billingWarehouseId=None,):
|
|
|
1836 |
self.inventoryItem = inventoryItem
|
| 2821 |
chandransh |
1837 |
self.type = type
|
| 4501 |
mandeep.dh |
1838 |
self.quantity = quantity
|
| 5361 |
mandeep.dh |
1839 |
self.billingWarehouseId = billingWarehouseId
|
| 2821 |
chandransh |
1840 |
|
|
|
1841 |
def read(self, iprot):
|
|
|
1842 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1843 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1844 |
return
|
|
|
1845 |
iprot.readStructBegin()
|
|
|
1846 |
while True:
|
|
|
1847 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1848 |
if ftype == TType.STOP:
|
|
|
1849 |
break
|
|
|
1850 |
if fid == 1:
|
| 5361 |
mandeep.dh |
1851 |
if ftype == TType.STRUCT:
|
|
|
1852 |
self.inventoryItem = InventoryItem()
|
|
|
1853 |
self.inventoryItem.read(iprot)
|
| 2821 |
chandransh |
1854 |
else:
|
|
|
1855 |
iprot.skip(ftype)
|
|
|
1856 |
elif fid == 2:
|
| 4501 |
mandeep.dh |
1857 |
if ftype == TType.I32:
|
|
|
1858 |
self.type = iprot.readI32();
|
| 2821 |
chandransh |
1859 |
else:
|
|
|
1860 |
iprot.skip(ftype)
|
| 3383 |
chandransh |
1861 |
elif fid == 3:
|
| 4501 |
mandeep.dh |
1862 |
if ftype == TType.I64:
|
|
|
1863 |
self.quantity = iprot.readI64();
|
| 2821 |
chandransh |
1864 |
else:
|
|
|
1865 |
iprot.skip(ftype)
|
| 3383 |
chandransh |
1866 |
elif fid == 4:
|
| 4501 |
mandeep.dh |
1867 |
if ftype == TType.I64:
|
| 5361 |
mandeep.dh |
1868 |
self.billingWarehouseId = iprot.readI64();
|
| 2821 |
chandransh |
1869 |
else:
|
|
|
1870 |
iprot.skip(ftype)
|
|
|
1871 |
else:
|
|
|
1872 |
iprot.skip(ftype)
|
|
|
1873 |
iprot.readFieldEnd()
|
|
|
1874 |
iprot.readStructEnd()
|
|
|
1875 |
|
|
|
1876 |
def write(self, oprot):
|
|
|
1877 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1878 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1879 |
return
|
| 4501 |
mandeep.dh |
1880 |
oprot.writeStructBegin('scan_args')
|
| 5361 |
mandeep.dh |
1881 |
if self.inventoryItem is not None:
|
|
|
1882 |
oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
|
|
|
1883 |
self.inventoryItem.write(oprot)
|
| 2821 |
chandransh |
1884 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1885 |
if self.type is not None:
|
| 4501 |
mandeep.dh |
1886 |
oprot.writeFieldBegin('type', TType.I32, 2)
|
| 2821 |
chandransh |
1887 |
oprot.writeI32(self.type)
|
|
|
1888 |
oprot.writeFieldEnd()
|
| 4501 |
mandeep.dh |
1889 |
if self.quantity is not None:
|
|
|
1890 |
oprot.writeFieldBegin('quantity', TType.I64, 3)
|
|
|
1891 |
oprot.writeI64(self.quantity)
|
|
|
1892 |
oprot.writeFieldEnd()
|
| 5361 |
mandeep.dh |
1893 |
if self.billingWarehouseId is not None:
|
|
|
1894 |
oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
|
|
|
1895 |
oprot.writeI64(self.billingWarehouseId)
|
| 4501 |
mandeep.dh |
1896 |
oprot.writeFieldEnd()
|
| 2821 |
chandransh |
1897 |
oprot.writeFieldStop()
|
|
|
1898 |
oprot.writeStructEnd()
|
|
|
1899 |
|
| 3431 |
rajveer |
1900 |
def validate(self):
|
|
|
1901 |
return
|
|
|
1902 |
|
|
|
1903 |
|
| 2821 |
chandransh |
1904 |
def __repr__(self):
|
|
|
1905 |
L = ['%s=%r' % (key, value)
|
|
|
1906 |
for key, value in self.__dict__.iteritems()]
|
|
|
1907 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1908 |
|
|
|
1909 |
def __eq__(self, other):
|
|
|
1910 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1911 |
|
|
|
1912 |
def __ne__(self, other):
|
|
|
1913 |
return not (self == other)
|
|
|
1914 |
|
| 4501 |
mandeep.dh |
1915 |
class scan_result:
|
| 2821 |
chandransh |
1916 |
"""
|
|
|
1917 |
Attributes:
|
|
|
1918 |
- wex
|
|
|
1919 |
"""
|
|
|
1920 |
|
|
|
1921 |
thrift_spec = (
|
|
|
1922 |
None, # 0
|
|
|
1923 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
1924 |
)
|
|
|
1925 |
|
|
|
1926 |
def __init__(self, wex=None,):
|
|
|
1927 |
self.wex = wex
|
|
|
1928 |
|
|
|
1929 |
def read(self, iprot):
|
|
|
1930 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1931 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1932 |
return
|
|
|
1933 |
iprot.readStructBegin()
|
|
|
1934 |
while True:
|
|
|
1935 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1936 |
if ftype == TType.STOP:
|
|
|
1937 |
break
|
|
|
1938 |
if fid == 1:
|
|
|
1939 |
if ftype == TType.STRUCT:
|
|
|
1940 |
self.wex = WarehouseServiceException()
|
|
|
1941 |
self.wex.read(iprot)
|
|
|
1942 |
else:
|
|
|
1943 |
iprot.skip(ftype)
|
|
|
1944 |
else:
|
|
|
1945 |
iprot.skip(ftype)
|
|
|
1946 |
iprot.readFieldEnd()
|
|
|
1947 |
iprot.readStructEnd()
|
|
|
1948 |
|
|
|
1949 |
def write(self, oprot):
|
|
|
1950 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1951 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1952 |
return
|
| 4501 |
mandeep.dh |
1953 |
oprot.writeStructBegin('scan_result')
|
| 3431 |
rajveer |
1954 |
if self.wex is not None:
|
| 2821 |
chandransh |
1955 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
1956 |
self.wex.write(oprot)
|
|
|
1957 |
oprot.writeFieldEnd()
|
|
|
1958 |
oprot.writeFieldStop()
|
|
|
1959 |
oprot.writeStructEnd()
|
|
|
1960 |
|
| 3431 |
rajveer |
1961 |
def validate(self):
|
|
|
1962 |
return
|
|
|
1963 |
|
|
|
1964 |
|
| 2821 |
chandransh |
1965 |
def __repr__(self):
|
|
|
1966 |
L = ['%s=%r' % (key, value)
|
|
|
1967 |
for key, value in self.__dict__.iteritems()]
|
|
|
1968 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1969 |
|
|
|
1970 |
def __eq__(self, other):
|
|
|
1971 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1972 |
|
|
|
1973 |
def __ne__(self, other):
|
|
|
1974 |
return not (self == other)
|
|
|
1975 |
|
| 4501 |
mandeep.dh |
1976 |
class scanSerializedItemForOrder_args:
|
| 2821 |
chandransh |
1977 |
"""
|
|
|
1978 |
Attributes:
|
| 4555 |
mandeep.dh |
1979 |
- serialNumber
|
| 2821 |
chandransh |
1980 |
- type
|
| 4501 |
mandeep.dh |
1981 |
- orderId
|
| 5110 |
mandeep.dh |
1982 |
- fulfilmentWarehouseId
|
|
|
1983 |
- quantity
|
|
|
1984 |
- billingWarehouseId
|
| 2821 |
chandransh |
1985 |
"""
|
|
|
1986 |
|
|
|
1987 |
thrift_spec = (
|
|
|
1988 |
None, # 0
|
| 4555 |
mandeep.dh |
1989 |
(1, TType.STRING, 'serialNumber', None, None, ), # 1
|
| 4501 |
mandeep.dh |
1990 |
(2, TType.I32, 'type', None, None, ), # 2
|
|
|
1991 |
(3, TType.I64, 'orderId', None, None, ), # 3
|
| 5110 |
mandeep.dh |
1992 |
(4, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 4
|
|
|
1993 |
(5, TType.DOUBLE, 'quantity', None, None, ), # 5
|
|
|
1994 |
(6, TType.I64, 'billingWarehouseId', None, None, ), # 6
|
| 2821 |
chandransh |
1995 |
)
|
|
|
1996 |
|
| 5110 |
mandeep.dh |
1997 |
def __init__(self, serialNumber=None, type=None, orderId=None, fulfilmentWarehouseId=None, quantity=None, billingWarehouseId=None,):
|
| 4555 |
mandeep.dh |
1998 |
self.serialNumber = serialNumber
|
| 2821 |
chandransh |
1999 |
self.type = type
|
| 4501 |
mandeep.dh |
2000 |
self.orderId = orderId
|
| 5110 |
mandeep.dh |
2001 |
self.fulfilmentWarehouseId = fulfilmentWarehouseId
|
|
|
2002 |
self.quantity = quantity
|
|
|
2003 |
self.billingWarehouseId = billingWarehouseId
|
| 2821 |
chandransh |
2004 |
|
|
|
2005 |
def read(self, iprot):
|
|
|
2006 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2007 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2008 |
return
|
|
|
2009 |
iprot.readStructBegin()
|
|
|
2010 |
while True:
|
|
|
2011 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2012 |
if ftype == TType.STOP:
|
|
|
2013 |
break
|
|
|
2014 |
if fid == 1:
|
| 4555 |
mandeep.dh |
2015 |
if ftype == TType.STRING:
|
|
|
2016 |
self.serialNumber = iprot.readString();
|
| 2821 |
chandransh |
2017 |
else:
|
|
|
2018 |
iprot.skip(ftype)
|
|
|
2019 |
elif fid == 2:
|
| 4501 |
mandeep.dh |
2020 |
if ftype == TType.I32:
|
|
|
2021 |
self.type = iprot.readI32();
|
| 2821 |
chandransh |
2022 |
else:
|
|
|
2023 |
iprot.skip(ftype)
|
|
|
2024 |
elif fid == 3:
|
| 4501 |
mandeep.dh |
2025 |
if ftype == TType.I64:
|
|
|
2026 |
self.orderId = iprot.readI64();
|
|
|
2027 |
else:
|
|
|
2028 |
iprot.skip(ftype)
|
|
|
2029 |
elif fid == 4:
|
|
|
2030 |
if ftype == TType.I64:
|
| 5110 |
mandeep.dh |
2031 |
self.fulfilmentWarehouseId = iprot.readI64();
|
| 4501 |
mandeep.dh |
2032 |
else:
|
|
|
2033 |
iprot.skip(ftype)
|
| 5110 |
mandeep.dh |
2034 |
elif fid == 5:
|
|
|
2035 |
if ftype == TType.DOUBLE:
|
|
|
2036 |
self.quantity = iprot.readDouble();
|
|
|
2037 |
else:
|
|
|
2038 |
iprot.skip(ftype)
|
|
|
2039 |
elif fid == 6:
|
|
|
2040 |
if ftype == TType.I64:
|
|
|
2041 |
self.billingWarehouseId = iprot.readI64();
|
|
|
2042 |
else:
|
|
|
2043 |
iprot.skip(ftype)
|
| 4501 |
mandeep.dh |
2044 |
else:
|
|
|
2045 |
iprot.skip(ftype)
|
|
|
2046 |
iprot.readFieldEnd()
|
|
|
2047 |
iprot.readStructEnd()
|
|
|
2048 |
|
|
|
2049 |
def write(self, oprot):
|
|
|
2050 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2051 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2052 |
return
|
|
|
2053 |
oprot.writeStructBegin('scanSerializedItemForOrder_args')
|
| 4555 |
mandeep.dh |
2054 |
if self.serialNumber is not None:
|
|
|
2055 |
oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
|
|
|
2056 |
oprot.writeString(self.serialNumber)
|
| 4501 |
mandeep.dh |
2057 |
oprot.writeFieldEnd()
|
|
|
2058 |
if self.type is not None:
|
|
|
2059 |
oprot.writeFieldBegin('type', TType.I32, 2)
|
|
|
2060 |
oprot.writeI32(self.type)
|
|
|
2061 |
oprot.writeFieldEnd()
|
|
|
2062 |
if self.orderId is not None:
|
|
|
2063 |
oprot.writeFieldBegin('orderId', TType.I64, 3)
|
|
|
2064 |
oprot.writeI64(self.orderId)
|
|
|
2065 |
oprot.writeFieldEnd()
|
| 5110 |
mandeep.dh |
2066 |
if self.fulfilmentWarehouseId is not None:
|
|
|
2067 |
oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 4)
|
|
|
2068 |
oprot.writeI64(self.fulfilmentWarehouseId)
|
| 4501 |
mandeep.dh |
2069 |
oprot.writeFieldEnd()
|
| 5110 |
mandeep.dh |
2070 |
if self.quantity is not None:
|
|
|
2071 |
oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
|
|
|
2072 |
oprot.writeDouble(self.quantity)
|
|
|
2073 |
oprot.writeFieldEnd()
|
|
|
2074 |
if self.billingWarehouseId is not None:
|
|
|
2075 |
oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)
|
|
|
2076 |
oprot.writeI64(self.billingWarehouseId)
|
|
|
2077 |
oprot.writeFieldEnd()
|
| 4501 |
mandeep.dh |
2078 |
oprot.writeFieldStop()
|
|
|
2079 |
oprot.writeStructEnd()
|
|
|
2080 |
|
|
|
2081 |
def validate(self):
|
|
|
2082 |
return
|
|
|
2083 |
|
|
|
2084 |
|
|
|
2085 |
def __repr__(self):
|
|
|
2086 |
L = ['%s=%r' % (key, value)
|
|
|
2087 |
for key, value in self.__dict__.iteritems()]
|
|
|
2088 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2089 |
|
|
|
2090 |
def __eq__(self, other):
|
|
|
2091 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2092 |
|
|
|
2093 |
def __ne__(self, other):
|
|
|
2094 |
return not (self == other)
|
|
|
2095 |
|
|
|
2096 |
class scanSerializedItemForOrder_result:
|
|
|
2097 |
"""
|
|
|
2098 |
Attributes:
|
|
|
2099 |
- success
|
|
|
2100 |
- wex
|
|
|
2101 |
"""
|
|
|
2102 |
|
|
|
2103 |
thrift_spec = (
|
| 4555 |
mandeep.dh |
2104 |
(0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
|
| 4501 |
mandeep.dh |
2105 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
2106 |
)
|
|
|
2107 |
|
|
|
2108 |
def __init__(self, success=None, wex=None,):
|
|
|
2109 |
self.success = success
|
|
|
2110 |
self.wex = wex
|
|
|
2111 |
|
|
|
2112 |
def read(self, iprot):
|
|
|
2113 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2114 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2115 |
return
|
|
|
2116 |
iprot.readStructBegin()
|
|
|
2117 |
while True:
|
|
|
2118 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2119 |
if ftype == TType.STOP:
|
|
|
2120 |
break
|
|
|
2121 |
if fid == 0:
|
| 4555 |
mandeep.dh |
2122 |
if ftype == TType.STRUCT:
|
|
|
2123 |
self.success = InventoryItem()
|
|
|
2124 |
self.success.read(iprot)
|
| 4501 |
mandeep.dh |
2125 |
else:
|
|
|
2126 |
iprot.skip(ftype)
|
|
|
2127 |
elif fid == 1:
|
|
|
2128 |
if ftype == TType.STRUCT:
|
|
|
2129 |
self.wex = WarehouseServiceException()
|
|
|
2130 |
self.wex.read(iprot)
|
|
|
2131 |
else:
|
|
|
2132 |
iprot.skip(ftype)
|
|
|
2133 |
else:
|
|
|
2134 |
iprot.skip(ftype)
|
|
|
2135 |
iprot.readFieldEnd()
|
|
|
2136 |
iprot.readStructEnd()
|
|
|
2137 |
|
|
|
2138 |
def write(self, oprot):
|
|
|
2139 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2140 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2141 |
return
|
|
|
2142 |
oprot.writeStructBegin('scanSerializedItemForOrder_result')
|
|
|
2143 |
if self.success is not None:
|
| 4555 |
mandeep.dh |
2144 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2145 |
self.success.write(oprot)
|
| 4501 |
mandeep.dh |
2146 |
oprot.writeFieldEnd()
|
|
|
2147 |
if self.wex is not None:
|
|
|
2148 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
2149 |
self.wex.write(oprot)
|
|
|
2150 |
oprot.writeFieldEnd()
|
|
|
2151 |
oprot.writeFieldStop()
|
|
|
2152 |
oprot.writeStructEnd()
|
|
|
2153 |
|
|
|
2154 |
def validate(self):
|
|
|
2155 |
return
|
|
|
2156 |
|
|
|
2157 |
|
|
|
2158 |
def __repr__(self):
|
|
|
2159 |
L = ['%s=%r' % (key, value)
|
|
|
2160 |
for key, value in self.__dict__.iteritems()]
|
|
|
2161 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2162 |
|
|
|
2163 |
def __eq__(self, other):
|
|
|
2164 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2165 |
|
|
|
2166 |
def __ne__(self, other):
|
|
|
2167 |
return not (self == other)
|
|
|
2168 |
|
|
|
2169 |
class scanForOrder_args:
|
|
|
2170 |
"""
|
|
|
2171 |
Attributes:
|
| 5361 |
mandeep.dh |
2172 |
- inventoryItem
|
| 4501 |
mandeep.dh |
2173 |
- type
|
|
|
2174 |
- quantity
|
|
|
2175 |
- orderId
|
| 5110 |
mandeep.dh |
2176 |
- fulfilmentWarehouseId
|
| 5361 |
mandeep.dh |
2177 |
- billingWarehouseId
|
| 4501 |
mandeep.dh |
2178 |
"""
|
|
|
2179 |
|
|
|
2180 |
thrift_spec = (
|
|
|
2181 |
None, # 0
|
| 5361 |
mandeep.dh |
2182 |
(1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
|
| 4501 |
mandeep.dh |
2183 |
(2, TType.I32, 'type', None, None, ), # 2
|
|
|
2184 |
(3, TType.I64, 'quantity', None, None, ), # 3
|
|
|
2185 |
(4, TType.I64, 'orderId', None, None, ), # 4
|
| 5110 |
mandeep.dh |
2186 |
(5, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 5
|
| 5361 |
mandeep.dh |
2187 |
(6, TType.I64, 'billingWarehouseId', None, None, ), # 6
|
| 4501 |
mandeep.dh |
2188 |
)
|
|
|
2189 |
|
| 5361 |
mandeep.dh |
2190 |
def __init__(self, inventoryItem=None, type=None, quantity=None, orderId=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):
|
|
|
2191 |
self.inventoryItem = inventoryItem
|
| 4501 |
mandeep.dh |
2192 |
self.type = type
|
|
|
2193 |
self.quantity = quantity
|
|
|
2194 |
self.orderId = orderId
|
| 5110 |
mandeep.dh |
2195 |
self.fulfilmentWarehouseId = fulfilmentWarehouseId
|
| 5361 |
mandeep.dh |
2196 |
self.billingWarehouseId = billingWarehouseId
|
| 4501 |
mandeep.dh |
2197 |
|
|
|
2198 |
def read(self, iprot):
|
|
|
2199 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2200 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2201 |
return
|
|
|
2202 |
iprot.readStructBegin()
|
|
|
2203 |
while True:
|
|
|
2204 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2205 |
if ftype == TType.STOP:
|
|
|
2206 |
break
|
|
|
2207 |
if fid == 1:
|
| 5361 |
mandeep.dh |
2208 |
if ftype == TType.STRUCT:
|
|
|
2209 |
self.inventoryItem = InventoryItem()
|
|
|
2210 |
self.inventoryItem.read(iprot)
|
| 4501 |
mandeep.dh |
2211 |
else:
|
|
|
2212 |
iprot.skip(ftype)
|
|
|
2213 |
elif fid == 2:
|
| 2821 |
chandransh |
2214 |
if ftype == TType.I32:
|
|
|
2215 |
self.type = iprot.readI32();
|
|
|
2216 |
else:
|
|
|
2217 |
iprot.skip(ftype)
|
| 4501 |
mandeep.dh |
2218 |
elif fid == 3:
|
|
|
2219 |
if ftype == TType.I64:
|
|
|
2220 |
self.quantity = iprot.readI64();
|
|
|
2221 |
else:
|
|
|
2222 |
iprot.skip(ftype)
|
|
|
2223 |
elif fid == 4:
|
|
|
2224 |
if ftype == TType.I64:
|
|
|
2225 |
self.orderId = iprot.readI64();
|
|
|
2226 |
else:
|
|
|
2227 |
iprot.skip(ftype)
|
|
|
2228 |
elif fid == 5:
|
|
|
2229 |
if ftype == TType.I64:
|
| 5110 |
mandeep.dh |
2230 |
self.fulfilmentWarehouseId = iprot.readI64();
|
| 4501 |
mandeep.dh |
2231 |
else:
|
|
|
2232 |
iprot.skip(ftype)
|
| 5361 |
mandeep.dh |
2233 |
elif fid == 6:
|
|
|
2234 |
if ftype == TType.I64:
|
|
|
2235 |
self.billingWarehouseId = iprot.readI64();
|
|
|
2236 |
else:
|
|
|
2237 |
iprot.skip(ftype)
|
| 2821 |
chandransh |
2238 |
else:
|
|
|
2239 |
iprot.skip(ftype)
|
|
|
2240 |
iprot.readFieldEnd()
|
|
|
2241 |
iprot.readStructEnd()
|
|
|
2242 |
|
|
|
2243 |
def write(self, oprot):
|
|
|
2244 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2245 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2246 |
return
|
| 4501 |
mandeep.dh |
2247 |
oprot.writeStructBegin('scanForOrder_args')
|
| 5361 |
mandeep.dh |
2248 |
if self.inventoryItem is not None:
|
|
|
2249 |
oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
|
|
|
2250 |
self.inventoryItem.write(oprot)
|
| 2821 |
chandransh |
2251 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2252 |
if self.type is not None:
|
| 4501 |
mandeep.dh |
2253 |
oprot.writeFieldBegin('type', TType.I32, 2)
|
| 2821 |
chandransh |
2254 |
oprot.writeI32(self.type)
|
|
|
2255 |
oprot.writeFieldEnd()
|
| 4501 |
mandeep.dh |
2256 |
if self.quantity is not None:
|
|
|
2257 |
oprot.writeFieldBegin('quantity', TType.I64, 3)
|
|
|
2258 |
oprot.writeI64(self.quantity)
|
|
|
2259 |
oprot.writeFieldEnd()
|
|
|
2260 |
if self.orderId is not None:
|
|
|
2261 |
oprot.writeFieldBegin('orderId', TType.I64, 4)
|
|
|
2262 |
oprot.writeI64(self.orderId)
|
|
|
2263 |
oprot.writeFieldEnd()
|
| 5110 |
mandeep.dh |
2264 |
if self.fulfilmentWarehouseId is not None:
|
|
|
2265 |
oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 5)
|
|
|
2266 |
oprot.writeI64(self.fulfilmentWarehouseId)
|
| 4501 |
mandeep.dh |
2267 |
oprot.writeFieldEnd()
|
| 5361 |
mandeep.dh |
2268 |
if self.billingWarehouseId is not None:
|
|
|
2269 |
oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)
|
|
|
2270 |
oprot.writeI64(self.billingWarehouseId)
|
|
|
2271 |
oprot.writeFieldEnd()
|
| 2821 |
chandransh |
2272 |
oprot.writeFieldStop()
|
|
|
2273 |
oprot.writeStructEnd()
|
|
|
2274 |
|
| 3431 |
rajveer |
2275 |
def validate(self):
|
|
|
2276 |
return
|
|
|
2277 |
|
|
|
2278 |
|
| 2821 |
chandransh |
2279 |
def __repr__(self):
|
|
|
2280 |
L = ['%s=%r' % (key, value)
|
|
|
2281 |
for key, value in self.__dict__.iteritems()]
|
|
|
2282 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2283 |
|
|
|
2284 |
def __eq__(self, other):
|
|
|
2285 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2286 |
|
|
|
2287 |
def __ne__(self, other):
|
|
|
2288 |
return not (self == other)
|
|
|
2289 |
|
| 4501 |
mandeep.dh |
2290 |
class scanForOrder_result:
|
| 2821 |
chandransh |
2291 |
"""
|
|
|
2292 |
Attributes:
|
| 5361 |
mandeep.dh |
2293 |
- success
|
| 2821 |
chandransh |
2294 |
- wex
|
|
|
2295 |
"""
|
|
|
2296 |
|
|
|
2297 |
thrift_spec = (
|
| 5361 |
mandeep.dh |
2298 |
(0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
|
| 2821 |
chandransh |
2299 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
2300 |
)
|
|
|
2301 |
|
| 5361 |
mandeep.dh |
2302 |
def __init__(self, success=None, wex=None,):
|
|
|
2303 |
self.success = success
|
| 2821 |
chandransh |
2304 |
self.wex = wex
|
|
|
2305 |
|
|
|
2306 |
def read(self, iprot):
|
|
|
2307 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2308 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2309 |
return
|
|
|
2310 |
iprot.readStructBegin()
|
|
|
2311 |
while True:
|
|
|
2312 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2313 |
if ftype == TType.STOP:
|
|
|
2314 |
break
|
| 5361 |
mandeep.dh |
2315 |
if fid == 0:
|
| 2821 |
chandransh |
2316 |
if ftype == TType.STRUCT:
|
| 5361 |
mandeep.dh |
2317 |
self.success = InventoryItem()
|
|
|
2318 |
self.success.read(iprot)
|
|
|
2319 |
else:
|
|
|
2320 |
iprot.skip(ftype)
|
|
|
2321 |
elif fid == 1:
|
|
|
2322 |
if ftype == TType.STRUCT:
|
| 2821 |
chandransh |
2323 |
self.wex = WarehouseServiceException()
|
|
|
2324 |
self.wex.read(iprot)
|
|
|
2325 |
else:
|
|
|
2326 |
iprot.skip(ftype)
|
|
|
2327 |
else:
|
|
|
2328 |
iprot.skip(ftype)
|
|
|
2329 |
iprot.readFieldEnd()
|
|
|
2330 |
iprot.readStructEnd()
|
|
|
2331 |
|
|
|
2332 |
def write(self, oprot):
|
|
|
2333 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2334 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2335 |
return
|
| 4501 |
mandeep.dh |
2336 |
oprot.writeStructBegin('scanForOrder_result')
|
| 5361 |
mandeep.dh |
2337 |
if self.success is not None:
|
|
|
2338 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2339 |
self.success.write(oprot)
|
|
|
2340 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2341 |
if self.wex is not None:
|
| 2821 |
chandransh |
2342 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
2343 |
self.wex.write(oprot)
|
|
|
2344 |
oprot.writeFieldEnd()
|
|
|
2345 |
oprot.writeFieldStop()
|
|
|
2346 |
oprot.writeStructEnd()
|
|
|
2347 |
|
| 3431 |
rajveer |
2348 |
def validate(self):
|
|
|
2349 |
return
|
|
|
2350 |
|
|
|
2351 |
|
| 2821 |
chandransh |
2352 |
def __repr__(self):
|
|
|
2353 |
L = ['%s=%r' % (key, value)
|
|
|
2354 |
for key, value in self.__dict__.iteritems()]
|
|
|
2355 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2356 |
|
|
|
2357 |
def __eq__(self, other):
|
|
|
2358 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2359 |
|
|
|
2360 |
def __ne__(self, other):
|
|
|
2361 |
return not (self == other)
|
| 4501 |
mandeep.dh |
2362 |
|
|
|
2363 |
class createItemNumberMapping_args:
|
|
|
2364 |
"""
|
|
|
2365 |
Attributes:
|
|
|
2366 |
- itemNumber
|
|
|
2367 |
- itemId
|
|
|
2368 |
"""
|
|
|
2369 |
|
|
|
2370 |
thrift_spec = (
|
|
|
2371 |
None, # 0
|
|
|
2372 |
(1, TType.STRING, 'itemNumber', None, None, ), # 1
|
|
|
2373 |
(2, TType.I64, 'itemId', None, None, ), # 2
|
|
|
2374 |
)
|
|
|
2375 |
|
|
|
2376 |
def __init__(self, itemNumber=None, itemId=None,):
|
|
|
2377 |
self.itemNumber = itemNumber
|
|
|
2378 |
self.itemId = itemId
|
|
|
2379 |
|
|
|
2380 |
def read(self, iprot):
|
|
|
2381 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2382 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2383 |
return
|
|
|
2384 |
iprot.readStructBegin()
|
|
|
2385 |
while True:
|
|
|
2386 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2387 |
if ftype == TType.STOP:
|
|
|
2388 |
break
|
|
|
2389 |
if fid == 1:
|
|
|
2390 |
if ftype == TType.STRING:
|
|
|
2391 |
self.itemNumber = iprot.readString();
|
|
|
2392 |
else:
|
|
|
2393 |
iprot.skip(ftype)
|
|
|
2394 |
elif fid == 2:
|
|
|
2395 |
if ftype == TType.I64:
|
|
|
2396 |
self.itemId = iprot.readI64();
|
|
|
2397 |
else:
|
|
|
2398 |
iprot.skip(ftype)
|
|
|
2399 |
else:
|
|
|
2400 |
iprot.skip(ftype)
|
|
|
2401 |
iprot.readFieldEnd()
|
|
|
2402 |
iprot.readStructEnd()
|
|
|
2403 |
|
|
|
2404 |
def write(self, oprot):
|
|
|
2405 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2406 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2407 |
return
|
|
|
2408 |
oprot.writeStructBegin('createItemNumberMapping_args')
|
|
|
2409 |
if self.itemNumber is not None:
|
|
|
2410 |
oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
|
|
|
2411 |
oprot.writeString(self.itemNumber)
|
|
|
2412 |
oprot.writeFieldEnd()
|
|
|
2413 |
if self.itemId is not None:
|
|
|
2414 |
oprot.writeFieldBegin('itemId', TType.I64, 2)
|
|
|
2415 |
oprot.writeI64(self.itemId)
|
|
|
2416 |
oprot.writeFieldEnd()
|
|
|
2417 |
oprot.writeFieldStop()
|
|
|
2418 |
oprot.writeStructEnd()
|
|
|
2419 |
|
|
|
2420 |
def validate(self):
|
|
|
2421 |
return
|
|
|
2422 |
|
|
|
2423 |
|
|
|
2424 |
def __repr__(self):
|
|
|
2425 |
L = ['%s=%r' % (key, value)
|
|
|
2426 |
for key, value in self.__dict__.iteritems()]
|
|
|
2427 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2428 |
|
|
|
2429 |
def __eq__(self, other):
|
|
|
2430 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2431 |
|
|
|
2432 |
def __ne__(self, other):
|
|
|
2433 |
return not (self == other)
|
|
|
2434 |
|
|
|
2435 |
class createItemNumberMapping_result:
|
|
|
2436 |
|
|
|
2437 |
thrift_spec = (
|
|
|
2438 |
)
|
|
|
2439 |
|
|
|
2440 |
def read(self, iprot):
|
|
|
2441 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2442 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2443 |
return
|
|
|
2444 |
iprot.readStructBegin()
|
|
|
2445 |
while True:
|
|
|
2446 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2447 |
if ftype == TType.STOP:
|
|
|
2448 |
break
|
|
|
2449 |
else:
|
|
|
2450 |
iprot.skip(ftype)
|
|
|
2451 |
iprot.readFieldEnd()
|
|
|
2452 |
iprot.readStructEnd()
|
|
|
2453 |
|
|
|
2454 |
def write(self, oprot):
|
|
|
2455 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2456 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2457 |
return
|
|
|
2458 |
oprot.writeStructBegin('createItemNumberMapping_result')
|
|
|
2459 |
oprot.writeFieldStop()
|
|
|
2460 |
oprot.writeStructEnd()
|
|
|
2461 |
|
|
|
2462 |
def validate(self):
|
|
|
2463 |
return
|
|
|
2464 |
|
|
|
2465 |
|
|
|
2466 |
def __repr__(self):
|
|
|
2467 |
L = ['%s=%r' % (key, value)
|
|
|
2468 |
for key, value in self.__dict__.iteritems()]
|
|
|
2469 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2470 |
|
|
|
2471 |
def __eq__(self, other):
|
|
|
2472 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2473 |
|
|
|
2474 |
def __ne__(self, other):
|
|
|
2475 |
return not (self == other)
|
| 4620 |
amit.gupta |
2476 |
|
|
|
2477 |
class getItemNumbers_args:
|
|
|
2478 |
"""
|
|
|
2479 |
Attributes:
|
|
|
2480 |
- itemId
|
|
|
2481 |
"""
|
|
|
2482 |
|
|
|
2483 |
thrift_spec = (
|
|
|
2484 |
None, # 0
|
|
|
2485 |
(1, TType.I64, 'itemId', None, None, ), # 1
|
|
|
2486 |
)
|
|
|
2487 |
|
|
|
2488 |
def __init__(self, itemId=None,):
|
|
|
2489 |
self.itemId = itemId
|
|
|
2490 |
|
|
|
2491 |
def read(self, iprot):
|
|
|
2492 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2493 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2494 |
return
|
|
|
2495 |
iprot.readStructBegin()
|
|
|
2496 |
while True:
|
|
|
2497 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2498 |
if ftype == TType.STOP:
|
|
|
2499 |
break
|
|
|
2500 |
if fid == 1:
|
|
|
2501 |
if ftype == TType.I64:
|
|
|
2502 |
self.itemId = iprot.readI64();
|
|
|
2503 |
else:
|
|
|
2504 |
iprot.skip(ftype)
|
|
|
2505 |
else:
|
|
|
2506 |
iprot.skip(ftype)
|
|
|
2507 |
iprot.readFieldEnd()
|
|
|
2508 |
iprot.readStructEnd()
|
|
|
2509 |
|
|
|
2510 |
def write(self, oprot):
|
|
|
2511 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2512 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2513 |
return
|
|
|
2514 |
oprot.writeStructBegin('getItemNumbers_args')
|
|
|
2515 |
if self.itemId is not None:
|
|
|
2516 |
oprot.writeFieldBegin('itemId', TType.I64, 1)
|
|
|
2517 |
oprot.writeI64(self.itemId)
|
|
|
2518 |
oprot.writeFieldEnd()
|
|
|
2519 |
oprot.writeFieldStop()
|
|
|
2520 |
oprot.writeStructEnd()
|
|
|
2521 |
|
|
|
2522 |
def validate(self):
|
|
|
2523 |
return
|
|
|
2524 |
|
|
|
2525 |
|
|
|
2526 |
def __repr__(self):
|
|
|
2527 |
L = ['%s=%r' % (key, value)
|
|
|
2528 |
for key, value in self.__dict__.iteritems()]
|
|
|
2529 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2530 |
|
|
|
2531 |
def __eq__(self, other):
|
|
|
2532 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2533 |
|
|
|
2534 |
def __ne__(self, other):
|
|
|
2535 |
return not (self == other)
|
|
|
2536 |
|
|
|
2537 |
class getItemNumbers_result:
|
|
|
2538 |
"""
|
|
|
2539 |
Attributes:
|
|
|
2540 |
- success
|
|
|
2541 |
"""
|
|
|
2542 |
|
|
|
2543 |
thrift_spec = (
|
|
|
2544 |
(0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
|
|
|
2545 |
)
|
|
|
2546 |
|
|
|
2547 |
def __init__(self, success=None,):
|
|
|
2548 |
self.success = success
|
|
|
2549 |
|
|
|
2550 |
def read(self, iprot):
|
|
|
2551 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2552 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2553 |
return
|
|
|
2554 |
iprot.readStructBegin()
|
|
|
2555 |
while True:
|
|
|
2556 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2557 |
if ftype == TType.STOP:
|
|
|
2558 |
break
|
|
|
2559 |
if fid == 0:
|
|
|
2560 |
if ftype == TType.LIST:
|
|
|
2561 |
self.success = []
|
| 5361 |
mandeep.dh |
2562 |
(_etype3, _size0) = iprot.readListBegin()
|
|
|
2563 |
for _i4 in xrange(_size0):
|
|
|
2564 |
_elem5 = iprot.readString();
|
|
|
2565 |
self.success.append(_elem5)
|
| 4620 |
amit.gupta |
2566 |
iprot.readListEnd()
|
|
|
2567 |
else:
|
|
|
2568 |
iprot.skip(ftype)
|
|
|
2569 |
else:
|
|
|
2570 |
iprot.skip(ftype)
|
|
|
2571 |
iprot.readFieldEnd()
|
|
|
2572 |
iprot.readStructEnd()
|
|
|
2573 |
|
|
|
2574 |
def write(self, oprot):
|
|
|
2575 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2576 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2577 |
return
|
|
|
2578 |
oprot.writeStructBegin('getItemNumbers_result')
|
|
|
2579 |
if self.success is not None:
|
|
|
2580 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2581 |
oprot.writeListBegin(TType.STRING, len(self.success))
|
| 5361 |
mandeep.dh |
2582 |
for iter6 in self.success:
|
|
|
2583 |
oprot.writeString(iter6)
|
| 4620 |
amit.gupta |
2584 |
oprot.writeListEnd()
|
|
|
2585 |
oprot.writeFieldEnd()
|
|
|
2586 |
oprot.writeFieldStop()
|
|
|
2587 |
oprot.writeStructEnd()
|
|
|
2588 |
|
|
|
2589 |
def validate(self):
|
|
|
2590 |
return
|
|
|
2591 |
|
|
|
2592 |
|
|
|
2593 |
def __repr__(self):
|
|
|
2594 |
L = ['%s=%r' % (key, value)
|
|
|
2595 |
for key, value in self.__dict__.iteritems()]
|
|
|
2596 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2597 |
|
|
|
2598 |
def __eq__(self, other):
|
|
|
2599 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2600 |
|
|
|
2601 |
def __ne__(self, other):
|
|
|
2602 |
return not (self == other)
|
| 5110 |
mandeep.dh |
2603 |
|
|
|
2604 |
class getItemIds_args:
|
|
|
2605 |
"""
|
|
|
2606 |
Attributes:
|
|
|
2607 |
- itemNumber
|
|
|
2608 |
"""
|
|
|
2609 |
|
|
|
2610 |
thrift_spec = (
|
|
|
2611 |
None, # 0
|
|
|
2612 |
(1, TType.STRING, 'itemNumber', None, None, ), # 1
|
|
|
2613 |
)
|
|
|
2614 |
|
|
|
2615 |
def __init__(self, itemNumber=None,):
|
|
|
2616 |
self.itemNumber = itemNumber
|
|
|
2617 |
|
|
|
2618 |
def read(self, iprot):
|
|
|
2619 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2620 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2621 |
return
|
|
|
2622 |
iprot.readStructBegin()
|
|
|
2623 |
while True:
|
|
|
2624 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2625 |
if ftype == TType.STOP:
|
|
|
2626 |
break
|
|
|
2627 |
if fid == 1:
|
|
|
2628 |
if ftype == TType.STRING:
|
|
|
2629 |
self.itemNumber = iprot.readString();
|
|
|
2630 |
else:
|
|
|
2631 |
iprot.skip(ftype)
|
|
|
2632 |
else:
|
|
|
2633 |
iprot.skip(ftype)
|
|
|
2634 |
iprot.readFieldEnd()
|
|
|
2635 |
iprot.readStructEnd()
|
|
|
2636 |
|
|
|
2637 |
def write(self, oprot):
|
|
|
2638 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2639 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2640 |
return
|
|
|
2641 |
oprot.writeStructBegin('getItemIds_args')
|
|
|
2642 |
if self.itemNumber is not None:
|
|
|
2643 |
oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
|
|
|
2644 |
oprot.writeString(self.itemNumber)
|
|
|
2645 |
oprot.writeFieldEnd()
|
|
|
2646 |
oprot.writeFieldStop()
|
|
|
2647 |
oprot.writeStructEnd()
|
|
|
2648 |
|
|
|
2649 |
def validate(self):
|
|
|
2650 |
return
|
|
|
2651 |
|
|
|
2652 |
|
|
|
2653 |
def __repr__(self):
|
|
|
2654 |
L = ['%s=%r' % (key, value)
|
|
|
2655 |
for key, value in self.__dict__.iteritems()]
|
|
|
2656 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2657 |
|
|
|
2658 |
def __eq__(self, other):
|
|
|
2659 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2660 |
|
|
|
2661 |
def __ne__(self, other):
|
|
|
2662 |
return not (self == other)
|
|
|
2663 |
|
|
|
2664 |
class getItemIds_result:
|
|
|
2665 |
"""
|
|
|
2666 |
Attributes:
|
|
|
2667 |
- success
|
|
|
2668 |
"""
|
|
|
2669 |
|
|
|
2670 |
thrift_spec = (
|
|
|
2671 |
(0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
|
|
|
2672 |
)
|
|
|
2673 |
|
|
|
2674 |
def __init__(self, success=None,):
|
|
|
2675 |
self.success = success
|
|
|
2676 |
|
|
|
2677 |
def read(self, iprot):
|
|
|
2678 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2679 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2680 |
return
|
|
|
2681 |
iprot.readStructBegin()
|
|
|
2682 |
while True:
|
|
|
2683 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2684 |
if ftype == TType.STOP:
|
|
|
2685 |
break
|
|
|
2686 |
if fid == 0:
|
|
|
2687 |
if ftype == TType.LIST:
|
|
|
2688 |
self.success = []
|
| 5361 |
mandeep.dh |
2689 |
(_etype10, _size7) = iprot.readListBegin()
|
|
|
2690 |
for _i11 in xrange(_size7):
|
|
|
2691 |
_elem12 = iprot.readI64();
|
|
|
2692 |
self.success.append(_elem12)
|
| 5110 |
mandeep.dh |
2693 |
iprot.readListEnd()
|
|
|
2694 |
else:
|
|
|
2695 |
iprot.skip(ftype)
|
|
|
2696 |
else:
|
|
|
2697 |
iprot.skip(ftype)
|
|
|
2698 |
iprot.readFieldEnd()
|
|
|
2699 |
iprot.readStructEnd()
|
|
|
2700 |
|
|
|
2701 |
def write(self, oprot):
|
|
|
2702 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2703 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2704 |
return
|
|
|
2705 |
oprot.writeStructBegin('getItemIds_result')
|
|
|
2706 |
if self.success is not None:
|
|
|
2707 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2708 |
oprot.writeListBegin(TType.I64, len(self.success))
|
| 5361 |
mandeep.dh |
2709 |
for iter13 in self.success:
|
|
|
2710 |
oprot.writeI64(iter13)
|
| 5110 |
mandeep.dh |
2711 |
oprot.writeListEnd()
|
|
|
2712 |
oprot.writeFieldEnd()
|
|
|
2713 |
oprot.writeFieldStop()
|
|
|
2714 |
oprot.writeStructEnd()
|
|
|
2715 |
|
|
|
2716 |
def validate(self):
|
|
|
2717 |
return
|
|
|
2718 |
|
|
|
2719 |
|
|
|
2720 |
def __repr__(self):
|
|
|
2721 |
L = ['%s=%r' % (key, value)
|
|
|
2722 |
for key, value in self.__dict__.iteritems()]
|
|
|
2723 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2724 |
|
|
|
2725 |
def __eq__(self, other):
|
|
|
2726 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2727 |
|
|
|
2728 |
def __ne__(self, other):
|
|
|
2729 |
return not (self == other)
|
| 5185 |
mandeep.dh |
2730 |
|
|
|
2731 |
class getInventoryItemsFromLastScanType_args:
|
|
|
2732 |
"""
|
|
|
2733 |
Attributes:
|
|
|
2734 |
- lastScanType
|
|
|
2735 |
"""
|
|
|
2736 |
|
|
|
2737 |
thrift_spec = (
|
|
|
2738 |
None, # 0
|
|
|
2739 |
(1, TType.I32, 'lastScanType', None, None, ), # 1
|
|
|
2740 |
)
|
|
|
2741 |
|
|
|
2742 |
def __init__(self, lastScanType=None,):
|
|
|
2743 |
self.lastScanType = lastScanType
|
|
|
2744 |
|
|
|
2745 |
def read(self, iprot):
|
|
|
2746 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2747 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2748 |
return
|
|
|
2749 |
iprot.readStructBegin()
|
|
|
2750 |
while True:
|
|
|
2751 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2752 |
if ftype == TType.STOP:
|
|
|
2753 |
break
|
|
|
2754 |
if fid == 1:
|
|
|
2755 |
if ftype == TType.I32:
|
|
|
2756 |
self.lastScanType = iprot.readI32();
|
|
|
2757 |
else:
|
|
|
2758 |
iprot.skip(ftype)
|
|
|
2759 |
else:
|
|
|
2760 |
iprot.skip(ftype)
|
|
|
2761 |
iprot.readFieldEnd()
|
|
|
2762 |
iprot.readStructEnd()
|
|
|
2763 |
|
|
|
2764 |
def write(self, oprot):
|
|
|
2765 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2766 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2767 |
return
|
|
|
2768 |
oprot.writeStructBegin('getInventoryItemsFromLastScanType_args')
|
|
|
2769 |
if self.lastScanType is not None:
|
|
|
2770 |
oprot.writeFieldBegin('lastScanType', TType.I32, 1)
|
|
|
2771 |
oprot.writeI32(self.lastScanType)
|
|
|
2772 |
oprot.writeFieldEnd()
|
|
|
2773 |
oprot.writeFieldStop()
|
|
|
2774 |
oprot.writeStructEnd()
|
|
|
2775 |
|
|
|
2776 |
def validate(self):
|
|
|
2777 |
return
|
|
|
2778 |
|
|
|
2779 |
|
|
|
2780 |
def __repr__(self):
|
|
|
2781 |
L = ['%s=%r' % (key, value)
|
|
|
2782 |
for key, value in self.__dict__.iteritems()]
|
|
|
2783 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2784 |
|
|
|
2785 |
def __eq__(self, other):
|
|
|
2786 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2787 |
|
|
|
2788 |
def __ne__(self, other):
|
|
|
2789 |
return not (self == other)
|
|
|
2790 |
|
|
|
2791 |
class getInventoryItemsFromLastScanType_result:
|
|
|
2792 |
"""
|
|
|
2793 |
Attributes:
|
|
|
2794 |
- success
|
|
|
2795 |
- wex
|
|
|
2796 |
"""
|
|
|
2797 |
|
|
|
2798 |
thrift_spec = (
|
|
|
2799 |
(0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
|
|
|
2800 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
2801 |
)
|
|
|
2802 |
|
|
|
2803 |
def __init__(self, success=None, wex=None,):
|
|
|
2804 |
self.success = success
|
|
|
2805 |
self.wex = wex
|
|
|
2806 |
|
|
|
2807 |
def read(self, iprot):
|
|
|
2808 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2809 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2810 |
return
|
|
|
2811 |
iprot.readStructBegin()
|
|
|
2812 |
while True:
|
|
|
2813 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2814 |
if ftype == TType.STOP:
|
|
|
2815 |
break
|
|
|
2816 |
if fid == 0:
|
|
|
2817 |
if ftype == TType.LIST:
|
|
|
2818 |
self.success = []
|
| 5361 |
mandeep.dh |
2819 |
(_etype17, _size14) = iprot.readListBegin()
|
|
|
2820 |
for _i18 in xrange(_size14):
|
|
|
2821 |
_elem19 = InventoryItem()
|
|
|
2822 |
_elem19.read(iprot)
|
|
|
2823 |
self.success.append(_elem19)
|
| 5185 |
mandeep.dh |
2824 |
iprot.readListEnd()
|
|
|
2825 |
else:
|
|
|
2826 |
iprot.skip(ftype)
|
|
|
2827 |
elif fid == 1:
|
|
|
2828 |
if ftype == TType.STRUCT:
|
|
|
2829 |
self.wex = WarehouseServiceException()
|
|
|
2830 |
self.wex.read(iprot)
|
|
|
2831 |
else:
|
|
|
2832 |
iprot.skip(ftype)
|
|
|
2833 |
else:
|
|
|
2834 |
iprot.skip(ftype)
|
|
|
2835 |
iprot.readFieldEnd()
|
|
|
2836 |
iprot.readStructEnd()
|
|
|
2837 |
|
|
|
2838 |
def write(self, oprot):
|
|
|
2839 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2840 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2841 |
return
|
|
|
2842 |
oprot.writeStructBegin('getInventoryItemsFromLastScanType_result')
|
|
|
2843 |
if self.success is not None:
|
|
|
2844 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
2845 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 5361 |
mandeep.dh |
2846 |
for iter20 in self.success:
|
|
|
2847 |
iter20.write(oprot)
|
| 5185 |
mandeep.dh |
2848 |
oprot.writeListEnd()
|
|
|
2849 |
oprot.writeFieldEnd()
|
|
|
2850 |
if self.wex is not None:
|
|
|
2851 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
2852 |
self.wex.write(oprot)
|
|
|
2853 |
oprot.writeFieldEnd()
|
|
|
2854 |
oprot.writeFieldStop()
|
|
|
2855 |
oprot.writeStructEnd()
|
|
|
2856 |
|
|
|
2857 |
def validate(self):
|
|
|
2858 |
return
|
|
|
2859 |
|
|
|
2860 |
|
|
|
2861 |
def __repr__(self):
|
|
|
2862 |
L = ['%s=%r' % (key, value)
|
|
|
2863 |
for key, value in self.__dict__.iteritems()]
|
|
|
2864 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2865 |
|
|
|
2866 |
def __eq__(self, other):
|
|
|
2867 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2868 |
|
|
|
2869 |
def __ne__(self, other):
|
|
|
2870 |
return not (self == other)
|
|
|
2871 |
|
|
|
2872 |
class getInventoryItemFromId_args:
|
|
|
2873 |
"""
|
|
|
2874 |
Attributes:
|
|
|
2875 |
- inventoryItemId
|
|
|
2876 |
"""
|
|
|
2877 |
|
|
|
2878 |
thrift_spec = (
|
|
|
2879 |
None, # 0
|
|
|
2880 |
(1, TType.I64, 'inventoryItemId', None, None, ), # 1
|
|
|
2881 |
)
|
|
|
2882 |
|
|
|
2883 |
def __init__(self, inventoryItemId=None,):
|
|
|
2884 |
self.inventoryItemId = inventoryItemId
|
|
|
2885 |
|
|
|
2886 |
def read(self, iprot):
|
|
|
2887 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2888 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2889 |
return
|
|
|
2890 |
iprot.readStructBegin()
|
|
|
2891 |
while True:
|
|
|
2892 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2893 |
if ftype == TType.STOP:
|
|
|
2894 |
break
|
|
|
2895 |
if fid == 1:
|
|
|
2896 |
if ftype == TType.I64:
|
|
|
2897 |
self.inventoryItemId = iprot.readI64();
|
|
|
2898 |
else:
|
|
|
2899 |
iprot.skip(ftype)
|
|
|
2900 |
else:
|
|
|
2901 |
iprot.skip(ftype)
|
|
|
2902 |
iprot.readFieldEnd()
|
|
|
2903 |
iprot.readStructEnd()
|
|
|
2904 |
|
|
|
2905 |
def write(self, oprot):
|
|
|
2906 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2907 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2908 |
return
|
|
|
2909 |
oprot.writeStructBegin('getInventoryItemFromId_args')
|
|
|
2910 |
if self.inventoryItemId is not None:
|
|
|
2911 |
oprot.writeFieldBegin('inventoryItemId', TType.I64, 1)
|
|
|
2912 |
oprot.writeI64(self.inventoryItemId)
|
|
|
2913 |
oprot.writeFieldEnd()
|
|
|
2914 |
oprot.writeFieldStop()
|
|
|
2915 |
oprot.writeStructEnd()
|
|
|
2916 |
|
|
|
2917 |
def validate(self):
|
|
|
2918 |
return
|
|
|
2919 |
|
|
|
2920 |
|
|
|
2921 |
def __repr__(self):
|
|
|
2922 |
L = ['%s=%r' % (key, value)
|
|
|
2923 |
for key, value in self.__dict__.iteritems()]
|
|
|
2924 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2925 |
|
|
|
2926 |
def __eq__(self, other):
|
|
|
2927 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2928 |
|
|
|
2929 |
def __ne__(self, other):
|
|
|
2930 |
return not (self == other)
|
|
|
2931 |
|
|
|
2932 |
class getInventoryItemFromId_result:
|
|
|
2933 |
"""
|
|
|
2934 |
Attributes:
|
|
|
2935 |
- success
|
|
|
2936 |
- wex
|
|
|
2937 |
"""
|
|
|
2938 |
|
|
|
2939 |
thrift_spec = (
|
|
|
2940 |
(0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
|
|
|
2941 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
2942 |
)
|
|
|
2943 |
|
|
|
2944 |
def __init__(self, success=None, wex=None,):
|
|
|
2945 |
self.success = success
|
|
|
2946 |
self.wex = wex
|
|
|
2947 |
|
|
|
2948 |
def read(self, iprot):
|
|
|
2949 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2950 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2951 |
return
|
|
|
2952 |
iprot.readStructBegin()
|
|
|
2953 |
while True:
|
|
|
2954 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2955 |
if ftype == TType.STOP:
|
|
|
2956 |
break
|
|
|
2957 |
if fid == 0:
|
|
|
2958 |
if ftype == TType.STRUCT:
|
|
|
2959 |
self.success = InventoryItem()
|
|
|
2960 |
self.success.read(iprot)
|
|
|
2961 |
else:
|
|
|
2962 |
iprot.skip(ftype)
|
|
|
2963 |
elif fid == 1:
|
|
|
2964 |
if ftype == TType.STRUCT:
|
|
|
2965 |
self.wex = WarehouseServiceException()
|
|
|
2966 |
self.wex.read(iprot)
|
|
|
2967 |
else:
|
|
|
2968 |
iprot.skip(ftype)
|
|
|
2969 |
else:
|
|
|
2970 |
iprot.skip(ftype)
|
|
|
2971 |
iprot.readFieldEnd()
|
|
|
2972 |
iprot.readStructEnd()
|
|
|
2973 |
|
|
|
2974 |
def write(self, oprot):
|
|
|
2975 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2976 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2977 |
return
|
|
|
2978 |
oprot.writeStructBegin('getInventoryItemFromId_result')
|
|
|
2979 |
if self.success is not None:
|
|
|
2980 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2981 |
self.success.write(oprot)
|
|
|
2982 |
oprot.writeFieldEnd()
|
|
|
2983 |
if self.wex is not None:
|
|
|
2984 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
2985 |
self.wex.write(oprot)
|
|
|
2986 |
oprot.writeFieldEnd()
|
|
|
2987 |
oprot.writeFieldStop()
|
|
|
2988 |
oprot.writeStructEnd()
|
|
|
2989 |
|
|
|
2990 |
def validate(self):
|
|
|
2991 |
return
|
|
|
2992 |
|
|
|
2993 |
|
|
|
2994 |
def __repr__(self):
|
|
|
2995 |
L = ['%s=%r' % (key, value)
|
|
|
2996 |
for key, value in self.__dict__.iteritems()]
|
|
|
2997 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2998 |
|
|
|
2999 |
def __eq__(self, other):
|
|
|
3000 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3001 |
|
|
|
3002 |
def __ne__(self, other):
|
|
|
3003 |
return not (self == other)
|