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