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