| 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 |
|
| 8565 |
amar.kumar |
29 |
def getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId):
|
| 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
|
| 8565 |
amar.kumar |
37 |
- billingWarehouseId
|
| 2821 |
chandransh |
38 |
"""
|
|
|
39 |
pass
|
|
|
40 |
|
| 7410 |
amar.kumar |
41 |
def scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
|
| 2821 |
chandransh |
42 |
"""
|
| 4501 |
mandeep.dh |
43 |
Scan non-serialized items.
|
| 3431 |
rajveer |
44 |
|
| 2821 |
chandransh |
45 |
Parameters:
|
| 5361 |
mandeep.dh |
46 |
- inventoryItem
|
| 2821 |
chandransh |
47 |
- type
|
| 4501 |
mandeep.dh |
48 |
- quantity
|
| 5361 |
mandeep.dh |
49 |
- billingWarehouseId
|
| 7410 |
amar.kumar |
50 |
- transferLotId
|
| 2821 |
chandransh |
51 |
"""
|
|
|
52 |
pass
|
|
|
53 |
|
| 5110 |
mandeep.dh |
54 |
def scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
|
| 4501 |
mandeep.dh |
55 |
"""
|
|
|
56 |
Scan serialized items linked with an order. Returns its price.
|
| 2821 |
chandransh |
57 |
|
| 4501 |
mandeep.dh |
58 |
Parameters:
|
| 4555 |
mandeep.dh |
59 |
- serialNumber
|
| 4501 |
mandeep.dh |
60 |
- type
|
|
|
61 |
- orderId
|
| 5110 |
mandeep.dh |
62 |
- fulfilmentWarehouseId
|
|
|
63 |
- quantity
|
|
|
64 |
- billingWarehouseId
|
| 4501 |
mandeep.dh |
65 |
"""
|
|
|
66 |
pass
|
|
|
67 |
|
| 5361 |
mandeep.dh |
68 |
def scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
|
| 4501 |
mandeep.dh |
69 |
"""
|
|
|
70 |
Scan non-serialized items linked with an order.
|
|
|
71 |
|
|
|
72 |
Parameters:
|
| 5361 |
mandeep.dh |
73 |
- inventoryItem
|
| 4501 |
mandeep.dh |
74 |
- type
|
|
|
75 |
- quantity
|
|
|
76 |
- orderId
|
| 5110 |
mandeep.dh |
77 |
- fulfilmentWarehouseId
|
| 5361 |
mandeep.dh |
78 |
- billingWarehouseId
|
| 4501 |
mandeep.dh |
79 |
"""
|
|
|
80 |
pass
|
|
|
81 |
|
|
|
82 |
def createItemNumberMapping(self, itemNumber, itemId):
|
|
|
83 |
"""
|
|
|
84 |
Created item number to item id mapping
|
|
|
85 |
|
|
|
86 |
Parameters:
|
|
|
87 |
- itemNumber
|
|
|
88 |
- itemId
|
|
|
89 |
"""
|
|
|
90 |
pass
|
|
|
91 |
|
| 4620 |
amit.gupta |
92 |
def getItemNumbers(self, itemId):
|
|
|
93 |
"""
|
|
|
94 |
Get itemNumber mappings for itemId
|
| 4501 |
mandeep.dh |
95 |
|
| 4620 |
amit.gupta |
96 |
Parameters:
|
|
|
97 |
- itemId
|
|
|
98 |
"""
|
|
|
99 |
pass
|
|
|
100 |
|
| 5110 |
mandeep.dh |
101 |
def getItemIds(self, itemNumber):
|
|
|
102 |
"""
|
|
|
103 |
Gets item ids for a given item number
|
| 4620 |
amit.gupta |
104 |
|
| 5110 |
mandeep.dh |
105 |
Parameters:
|
|
|
106 |
- itemNumber
|
|
|
107 |
"""
|
|
|
108 |
pass
|
|
|
109 |
|
| 5185 |
mandeep.dh |
110 |
def getInventoryItemsFromLastScanType(self, lastScanType):
|
|
|
111 |
"""
|
|
|
112 |
Retrieves all inventory items given a last scan type
|
| 5110 |
mandeep.dh |
113 |
|
| 5185 |
mandeep.dh |
114 |
Parameters:
|
|
|
115 |
- lastScanType
|
|
|
116 |
"""
|
|
|
117 |
pass
|
|
|
118 |
|
|
|
119 |
def getInventoryItemFromId(self, inventoryItemId):
|
|
|
120 |
"""
|
|
|
121 |
Retrieves inventory item given a inventoryItem id
|
|
|
122 |
|
|
|
123 |
Parameters:
|
|
|
124 |
- inventoryItemId
|
|
|
125 |
"""
|
|
|
126 |
pass
|
|
|
127 |
|
| 5372 |
mandeep.dh |
128 |
def getPurchaseScans(self, startDate, endDate):
|
|
|
129 |
"""
|
|
|
130 |
Returns the purchase scans grouped by items for Purchase register reconciliation
|
| 5185 |
mandeep.dh |
131 |
|
| 5372 |
mandeep.dh |
132 |
Parameters:
|
|
|
133 |
- startDate
|
|
|
134 |
- endDate
|
|
|
135 |
"""
|
|
|
136 |
pass
|
|
|
137 |
|
| 7216 |
amar.kumar |
138 |
def getPurchaseScansByGrnDate(self, startDate, endDate):
|
|
|
139 |
"""
|
|
|
140 |
Returns the purchase scans between grn dates grouped by items for Purchase register reconciliation
|
|
|
141 |
|
|
|
142 |
Parameters:
|
|
|
143 |
- startDate
|
|
|
144 |
- endDate
|
|
|
145 |
"""
|
|
|
146 |
pass
|
|
|
147 |
|
| 5496 |
mandeep.dh |
148 |
def fetchScansPerInvoiceNumber(self, date):
|
|
|
149 |
"""
|
|
|
150 |
Returns the invoices and the count of scans against on a given day.
|
| 5372 |
mandeep.dh |
151 |
|
| 5496 |
mandeep.dh |
152 |
Parameters:
|
|
|
153 |
- date
|
|
|
154 |
"""
|
|
|
155 |
pass
|
|
|
156 |
|
| 5620 |
mandeep.dh |
157 |
def getInventoryItemFromOrder(self, orderId):
|
|
|
158 |
"""
|
|
|
159 |
Returns inventory item for a given order
|
| 5496 |
mandeep.dh |
160 |
|
| 5620 |
mandeep.dh |
161 |
Parameters:
|
|
|
162 |
- orderId
|
|
|
163 |
"""
|
|
|
164 |
pass
|
|
|
165 |
|
| 5711 |
mandeep.dh |
166 |
def getInventoryAge(self, ):
|
|
|
167 |
"""
|
|
|
168 |
Fetches the stock inventory age week-wise
|
|
|
169 |
"""
|
|
|
170 |
pass
|
| 5620 |
mandeep.dh |
171 |
|
| 6361 |
rajveer |
172 |
def getInventoryScansForItem(self, itemId, fromDate, toDate):
|
|
|
173 |
"""
|
|
|
174 |
Fetches the scanRecords for a given item for a given time interval
|
| 5711 |
mandeep.dh |
175 |
|
| 6361 |
rajveer |
176 |
Parameters:
|
|
|
177 |
- itemId
|
|
|
178 |
- fromDate
|
|
|
179 |
- toDate
|
|
|
180 |
"""
|
|
|
181 |
pass
|
|
|
182 |
|
|
|
183 |
def getScanRecordsForSerialNumber(self, serialNumber):
|
|
|
184 |
"""
|
|
|
185 |
Fetches the scanRecords for a given serialNumber for a given time interval
|
|
|
186 |
|
|
|
187 |
Parameters:
|
|
|
188 |
- serialNumber
|
|
|
189 |
"""
|
|
|
190 |
pass
|
|
|
191 |
|
| 7718 |
amar.kumar |
192 |
def scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
|
| 6467 |
amar.kumar |
193 |
"""
|
| 6630 |
amar.kumar |
194 |
Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
|
| 6361 |
rajveer |
195 |
|
| 6467 |
amar.kumar |
196 |
Parameters:
|
|
|
197 |
- saleReturnItems
|
|
|
198 |
- vendorId
|
| 7718 |
amar.kumar |
199 |
- billingWarehouseId
|
| 6467 |
amar.kumar |
200 |
"""
|
|
|
201 |
pass
|
|
|
202 |
|
| 7718 |
amar.kumar |
203 |
def scanForLostItem(self, lostItems, vendorId, billingWarehouseId):
|
| 6630 |
amar.kumar |
204 |
"""
|
|
|
205 |
Inserts scans for lost Items and updates lastScanType in InventoryItems
|
| 6467 |
amar.kumar |
206 |
|
| 6630 |
amar.kumar |
207 |
Parameters:
|
|
|
208 |
- lostItems
|
|
|
209 |
- vendorId
|
| 7718 |
amar.kumar |
210 |
- billingWarehouseId
|
| 6630 |
amar.kumar |
211 |
"""
|
|
|
212 |
pass
|
|
|
213 |
|
| 7715 |
vikram.rag |
214 |
def getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
|
| 6630 |
amar.kumar |
215 |
"""
|
|
|
216 |
Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
|
| 7715 |
vikram.rag |
217 |
|
|
|
218 |
Parameters:
|
|
|
219 |
- physicalWarehouseId
|
| 6630 |
amar.kumar |
220 |
"""
|
|
|
221 |
pass
|
|
|
222 |
|
| 7715 |
vikram.rag |
223 |
def getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
|
| 6630 |
amar.kumar |
224 |
"""
|
|
|
225 |
Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
|
| 7715 |
vikram.rag |
226 |
|
|
|
227 |
Parameters:
|
|
|
228 |
- physicalWarehouseId
|
| 6630 |
amar.kumar |
229 |
"""
|
|
|
230 |
pass
|
|
|
231 |
|
| 6762 |
amar.kumar |
232 |
def getHistoricSerializedInventoryByScans(self, date):
|
|
|
233 |
"""
|
|
|
234 |
Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
|
| 6630 |
amar.kumar |
235 |
|
| 6762 |
amar.kumar |
236 |
Parameters:
|
|
|
237 |
- date
|
|
|
238 |
"""
|
|
|
239 |
pass
|
|
|
240 |
|
|
|
241 |
def getHistoricNonSerializedInventoryByScans(self, date):
|
|
|
242 |
"""
|
|
|
243 |
Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
|
|
|
244 |
|
|
|
245 |
Parameters:
|
|
|
246 |
- date
|
|
|
247 |
"""
|
|
|
248 |
pass
|
|
|
249 |
|
| 7672 |
rajveer |
250 |
def scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):
|
| 6762 |
amar.kumar |
251 |
"""
|
| 6880 |
amar.kumar |
252 |
Insert Purchase/Sale Entries for product billed by Hotspot using OURS_EXTERNAL Billing
|
| 6762 |
amar.kumar |
253 |
|
|
|
254 |
Parameters:
|
|
|
255 |
- itemId
|
|
|
256 |
- serialNumber
|
|
|
257 |
- itemNumber
|
|
|
258 |
- invoiceNumber
|
|
|
259 |
- warehouseId
|
|
|
260 |
- unitPrice
|
| 7672 |
rajveer |
261 |
- nlc
|
| 6762 |
amar.kumar |
262 |
- orderId
|
|
|
263 |
"""
|
|
|
264 |
pass
|
|
|
265 |
|
|
|
266 |
def scanForOursExternalSaleReturn(self, orderId, unitPrice):
|
|
|
267 |
"""
|
| 6880 |
amar.kumar |
268 |
Insert Purchase_Ret/Sale_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
|
| 6762 |
amar.kumar |
269 |
|
|
|
270 |
Parameters:
|
|
|
271 |
- orderId
|
|
|
272 |
- unitPrice
|
|
|
273 |
"""
|
|
|
274 |
pass
|
|
|
275 |
|
| 6880 |
amar.kumar |
276 |
def getMovementNonSerializedInventoryByScans(self, startDate, endDate):
|
|
|
277 |
"""
|
|
|
278 |
Parameters:
|
|
|
279 |
- startDate
|
|
|
280 |
- endDate
|
|
|
281 |
"""
|
|
|
282 |
pass
|
| 6762 |
amar.kumar |
283 |
|
| 6880 |
amar.kumar |
284 |
def getMovementSerializedInventoryByScans(self, startDate, endDate):
|
|
|
285 |
"""
|
|
|
286 |
Parameters:
|
|
|
287 |
- startDate
|
|
|
288 |
- endDate
|
|
|
289 |
"""
|
|
|
290 |
pass
|
|
|
291 |
|
| 7216 |
amar.kumar |
292 |
def getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):
|
|
|
293 |
"""
|
|
|
294 |
Parameters:
|
|
|
295 |
- startDate
|
|
|
296 |
- endDate
|
|
|
297 |
"""
|
|
|
298 |
pass
|
|
|
299 |
|
|
|
300 |
def getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):
|
|
|
301 |
"""
|
|
|
302 |
Parameters:
|
|
|
303 |
- startDate
|
|
|
304 |
- endDate
|
|
|
305 |
"""
|
|
|
306 |
pass
|
|
|
307 |
|
| 7190 |
amar.kumar |
308 |
def scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):
|
|
|
309 |
"""
|
|
|
310 |
Parameters:
|
|
|
311 |
- orderId
|
|
|
312 |
- freebieItemId
|
|
|
313 |
- freebieWarehouseId
|
|
|
314 |
- scanType
|
|
|
315 |
"""
|
|
|
316 |
pass
|
| 6880 |
amar.kumar |
317 |
|
| 7199 |
amar.kumar |
318 |
def reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):
|
|
|
319 |
"""
|
|
|
320 |
Parameters:
|
|
|
321 |
- oldOrderId
|
|
|
322 |
- newOrderId
|
|
|
323 |
- freebieItemId
|
|
|
324 |
- scanType
|
|
|
325 |
"""
|
|
|
326 |
pass
|
| 7190 |
amar.kumar |
327 |
|
| 7410 |
amar.kumar |
328 |
def isItemTransferAllowed(self, warehouseId, transferWarehouseId):
|
|
|
329 |
"""
|
|
|
330 |
Parameters:
|
|
|
331 |
- warehouseId
|
|
|
332 |
- transferWarehouseId
|
|
|
333 |
"""
|
|
|
334 |
pass
|
| 7199 |
amar.kumar |
335 |
|
| 7410 |
amar.kumar |
336 |
def createTransferLot(self, originWarehouseId, destWarehouseId):
|
|
|
337 |
"""
|
|
|
338 |
Parameters:
|
|
|
339 |
- originWarehouseId
|
|
|
340 |
- destWarehouseId
|
|
|
341 |
"""
|
|
|
342 |
pass
|
|
|
343 |
|
|
|
344 |
def getTransferLot(self, transferLotId):
|
|
|
345 |
"""
|
|
|
346 |
Parameters:
|
|
|
347 |
- transferLotId
|
|
|
348 |
"""
|
|
|
349 |
pass
|
|
|
350 |
|
|
|
351 |
def markTransferLotAsReceived(self, id, remoteTransferRefNumber):
|
|
|
352 |
"""
|
|
|
353 |
Parameters:
|
|
|
354 |
- id
|
|
|
355 |
- remoteTransferRefNumber
|
|
|
356 |
"""
|
|
|
357 |
pass
|
|
|
358 |
|
|
|
359 |
def getTransferLotsByDate(self, fromDate, toDate):
|
|
|
360 |
"""
|
|
|
361 |
Parameters:
|
|
|
362 |
- fromDate
|
|
|
363 |
- toDate
|
|
|
364 |
"""
|
|
|
365 |
pass
|
|
|
366 |
|
|
|
367 |
def getAllowedDestinationWarehousesForTransfer(self, warehouseId):
|
|
|
368 |
"""
|
|
|
369 |
Parameters:
|
|
|
370 |
- warehouseId
|
|
|
371 |
"""
|
|
|
372 |
pass
|
|
|
373 |
|
|
|
374 |
def getItemsInTransferLot(self, transferLotId):
|
|
|
375 |
"""
|
|
|
376 |
Parameters:
|
|
|
377 |
- transferLotId
|
|
|
378 |
"""
|
|
|
379 |
pass
|
|
|
380 |
|
|
|
381 |
def markItemsAsReceivedForTransferLot(self, id):
|
|
|
382 |
"""
|
|
|
383 |
Parameters:
|
|
|
384 |
- id
|
|
|
385 |
"""
|
|
|
386 |
pass
|
|
|
387 |
|
|
|
388 |
def updateTransferLotAfterItemReceive(self, id):
|
|
|
389 |
"""
|
|
|
390 |
Parameters:
|
|
|
391 |
- id
|
|
|
392 |
"""
|
|
|
393 |
pass
|
|
|
394 |
|
| 7459 |
amar.kumar |
395 |
def scanForTransferOut(self, inventoryItems, type, transferLotId):
|
| 7410 |
amar.kumar |
396 |
"""
|
|
|
397 |
Parameters:
|
|
|
398 |
- inventoryItems
|
|
|
399 |
- type
|
|
|
400 |
- transferLotId
|
|
|
401 |
"""
|
|
|
402 |
pass
|
|
|
403 |
|
| 7459 |
amar.kumar |
404 |
def scanForTransferIn(self, inventoryItems, type, transferLotId):
|
|
|
405 |
"""
|
|
|
406 |
Parameters:
|
|
|
407 |
- inventoryItems
|
|
|
408 |
- type
|
|
|
409 |
- transferLotId
|
|
|
410 |
"""
|
|
|
411 |
pass
|
| 7410 |
amar.kumar |
412 |
|
| 7459 |
amar.kumar |
413 |
def scanForOursThirdPartyReceive(self, inventoryItems, id):
|
|
|
414 |
"""
|
|
|
415 |
Parameters:
|
|
|
416 |
- inventoryItems
|
|
|
417 |
- id
|
|
|
418 |
"""
|
|
|
419 |
pass
|
|
|
420 |
|
| 7574 |
amar.kumar |
421 |
def getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
|
|
|
422 |
"""
|
|
|
423 |
Parameters:
|
|
|
424 |
- itemId
|
|
|
425 |
- physicalWarehouseId
|
|
|
426 |
"""
|
|
|
427 |
pass
|
| 7459 |
amar.kumar |
428 |
|
| 7672 |
rajveer |
429 |
def getInTransitInventory(self, originWarehouseId):
|
|
|
430 |
"""
|
|
|
431 |
Parameters:
|
|
|
432 |
- originWarehouseId
|
|
|
433 |
"""
|
|
|
434 |
pass
|
| 7574 |
amar.kumar |
435 |
|
| 7968 |
amar.kumar |
436 |
def isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
|
|
|
437 |
"""
|
|
|
438 |
Parameters:
|
|
|
439 |
- itemId
|
|
|
440 |
- serialNumber
|
|
|
441 |
- warehouseId
|
|
|
442 |
"""
|
|
|
443 |
pass
|
| 7672 |
rajveer |
444 |
|
| 7968 |
amar.kumar |
445 |
def getHistoricBadInventoryByScans(self, date):
|
|
|
446 |
"""
|
|
|
447 |
Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
|
|
|
448 |
|
|
|
449 |
Parameters:
|
|
|
450 |
- date
|
|
|
451 |
"""
|
|
|
452 |
pass
|
|
|
453 |
|
| 8717 |
amar.kumar |
454 |
def scanForBadSale(self, serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
|
| 8565 |
amar.kumar |
455 |
"""
|
|
|
456 |
Parameters:
|
| 8717 |
amar.kumar |
457 |
- serialNumber
|
|
|
458 |
- itemNumber
|
|
|
459 |
- itemId
|
| 8565 |
amar.kumar |
460 |
- orderId
|
| 8717 |
amar.kumar |
461 |
- fulfilmentWarehouseId
|
| 8565 |
amar.kumar |
462 |
- quantity
|
|
|
463 |
- billingWarehouseId
|
|
|
464 |
"""
|
|
|
465 |
pass
|
| 7968 |
amar.kumar |
466 |
|
| 8565 |
amar.kumar |
467 |
|
| 3376 |
rajveer |
468 |
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
|
| 2821 |
chandransh |
469 |
def __init__(self, iprot, oprot=None):
|
| 3376 |
rajveer |
470 |
shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
|
| 2821 |
chandransh |
471 |
|
| 4501 |
mandeep.dh |
472 |
def getInventoryItem(self, serialNumber):
|
| 2832 |
chandransh |
473 |
"""
|
| 4501 |
mandeep.dh |
474 |
Retrieves serialized inventory item given a serial number
|
| 3431 |
rajveer |
475 |
|
| 2832 |
chandransh |
476 |
Parameters:
|
| 4501 |
mandeep.dh |
477 |
- serialNumber
|
| 2832 |
chandransh |
478 |
"""
|
| 4501 |
mandeep.dh |
479 |
self.send_getInventoryItem(serialNumber)
|
|
|
480 |
return self.recv_getInventoryItem()
|
| 2832 |
chandransh |
481 |
|
| 4501 |
mandeep.dh |
482 |
def send_getInventoryItem(self, serialNumber):
|
|
|
483 |
self._oprot.writeMessageBegin('getInventoryItem', TMessageType.CALL, self._seqid)
|
|
|
484 |
args = getInventoryItem_args()
|
|
|
485 |
args.serialNumber = serialNumber
|
| 2832 |
chandransh |
486 |
args.write(self._oprot)
|
|
|
487 |
self._oprot.writeMessageEnd()
|
|
|
488 |
self._oprot.trans.flush()
|
|
|
489 |
|
| 4501 |
mandeep.dh |
490 |
def recv_getInventoryItem(self, ):
|
| 2832 |
chandransh |
491 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
492 |
if mtype == TMessageType.EXCEPTION:
|
|
|
493 |
x = TApplicationException()
|
|
|
494 |
x.read(self._iprot)
|
|
|
495 |
self._iprot.readMessageEnd()
|
|
|
496 |
raise x
|
| 4501 |
mandeep.dh |
497 |
result = getInventoryItem_result()
|
| 2832 |
chandransh |
498 |
result.read(self._iprot)
|
|
|
499 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
500 |
if result.success is not None:
|
| 2832 |
chandransh |
501 |
return result.success
|
| 4541 |
mandeep.dh |
502 |
if result.wex is not None:
|
|
|
503 |
raise result.wex
|
| 4501 |
mandeep.dh |
504 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
|
| 2832 |
chandransh |
505 |
|
| 8565 |
amar.kumar |
506 |
def getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId):
|
| 2821 |
chandransh |
507 |
"""
|
| 5361 |
mandeep.dh |
508 |
Retrieves non-serialized inventory item from a given supplier
|
| 3431 |
rajveer |
509 |
|
| 2821 |
chandransh |
510 |
Parameters:
|
| 5530 |
mandeep.dh |
511 |
- itemNumber
|
| 4501 |
mandeep.dh |
512 |
- itemId
|
| 5530 |
mandeep.dh |
513 |
- fulfilmentWarehouseId
|
| 8565 |
amar.kumar |
514 |
- billingWarehouseId
|
| 2821 |
chandransh |
515 |
"""
|
| 8565 |
amar.kumar |
516 |
self.send_getNonSeralizedInventoryItem(itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId)
|
| 5361 |
mandeep.dh |
517 |
return self.recv_getNonSeralizedInventoryItem()
|
| 2821 |
chandransh |
518 |
|
| 8565 |
amar.kumar |
519 |
def send_getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId):
|
| 5361 |
mandeep.dh |
520 |
self._oprot.writeMessageBegin('getNonSeralizedInventoryItem', TMessageType.CALL, self._seqid)
|
|
|
521 |
args = getNonSeralizedInventoryItem_args()
|
| 5530 |
mandeep.dh |
522 |
args.itemNumber = itemNumber
|
| 4501 |
mandeep.dh |
523 |
args.itemId = itemId
|
| 5530 |
mandeep.dh |
524 |
args.fulfilmentWarehouseId = fulfilmentWarehouseId
|
| 8565 |
amar.kumar |
525 |
args.billingWarehouseId = billingWarehouseId
|
| 2821 |
chandransh |
526 |
args.write(self._oprot)
|
|
|
527 |
self._oprot.writeMessageEnd()
|
|
|
528 |
self._oprot.trans.flush()
|
|
|
529 |
|
| 5361 |
mandeep.dh |
530 |
def recv_getNonSeralizedInventoryItem(self, ):
|
| 2821 |
chandransh |
531 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
532 |
if mtype == TMessageType.EXCEPTION:
|
|
|
533 |
x = TApplicationException()
|
|
|
534 |
x.read(self._iprot)
|
|
|
535 |
self._iprot.readMessageEnd()
|
|
|
536 |
raise x
|
| 5361 |
mandeep.dh |
537 |
result = getNonSeralizedInventoryItem_result()
|
| 2821 |
chandransh |
538 |
result.read(self._iprot)
|
|
|
539 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
540 |
if result.success is not None:
|
| 2821 |
chandransh |
541 |
return result.success
|
| 5361 |
mandeep.dh |
542 |
if result.wex is not None:
|
|
|
543 |
raise result.wex
|
|
|
544 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
|
| 2821 |
chandransh |
545 |
|
| 7410 |
amar.kumar |
546 |
def scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
|
| 3383 |
chandransh |
547 |
"""
|
| 4501 |
mandeep.dh |
548 |
Scan non-serialized items.
|
| 3431 |
rajveer |
549 |
|
| 2821 |
chandransh |
550 |
Parameters:
|
| 5361 |
mandeep.dh |
551 |
- inventoryItem
|
| 2821 |
chandransh |
552 |
- type
|
| 4501 |
mandeep.dh |
553 |
- quantity
|
| 5361 |
mandeep.dh |
554 |
- billingWarehouseId
|
| 7410 |
amar.kumar |
555 |
- transferLotId
|
| 2821 |
chandransh |
556 |
"""
|
| 7410 |
amar.kumar |
557 |
self.send_scan(inventoryItem, type, quantity, billingWarehouseId, transferLotId)
|
| 4501 |
mandeep.dh |
558 |
self.recv_scan()
|
| 2821 |
chandransh |
559 |
|
| 7410 |
amar.kumar |
560 |
def send_scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
|
| 4501 |
mandeep.dh |
561 |
self._oprot.writeMessageBegin('scan', TMessageType.CALL, self._seqid)
|
|
|
562 |
args = scan_args()
|
| 5361 |
mandeep.dh |
563 |
args.inventoryItem = inventoryItem
|
| 2821 |
chandransh |
564 |
args.type = type
|
| 4501 |
mandeep.dh |
565 |
args.quantity = quantity
|
| 5361 |
mandeep.dh |
566 |
args.billingWarehouseId = billingWarehouseId
|
| 7410 |
amar.kumar |
567 |
args.transferLotId = transferLotId
|
| 2821 |
chandransh |
568 |
args.write(self._oprot)
|
|
|
569 |
self._oprot.writeMessageEnd()
|
|
|
570 |
self._oprot.trans.flush()
|
|
|
571 |
|
| 4501 |
mandeep.dh |
572 |
def recv_scan(self, ):
|
| 2821 |
chandransh |
573 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
574 |
if mtype == TMessageType.EXCEPTION:
|
|
|
575 |
x = TApplicationException()
|
|
|
576 |
x.read(self._iprot)
|
|
|
577 |
self._iprot.readMessageEnd()
|
|
|
578 |
raise x
|
| 4501 |
mandeep.dh |
579 |
result = scan_result()
|
| 2821 |
chandransh |
580 |
result.read(self._iprot)
|
|
|
581 |
self._iprot.readMessageEnd()
|
| 3431 |
rajveer |
582 |
if result.wex is not None:
|
| 2821 |
chandransh |
583 |
raise result.wex
|
|
|
584 |
return
|
|
|
585 |
|
| 5110 |
mandeep.dh |
586 |
def scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
|
| 2821 |
chandransh |
587 |
"""
|
| 4501 |
mandeep.dh |
588 |
Scan serialized items linked with an order. Returns its price.
|
| 3431 |
rajveer |
589 |
|
| 2821 |
chandransh |
590 |
Parameters:
|
| 4555 |
mandeep.dh |
591 |
- serialNumber
|
| 2821 |
chandransh |
592 |
- type
|
| 4501 |
mandeep.dh |
593 |
- orderId
|
| 5110 |
mandeep.dh |
594 |
- fulfilmentWarehouseId
|
|
|
595 |
- quantity
|
|
|
596 |
- billingWarehouseId
|
| 2821 |
chandransh |
597 |
"""
|
| 5110 |
mandeep.dh |
598 |
self.send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId)
|
| 4501 |
mandeep.dh |
599 |
return self.recv_scanSerializedItemForOrder()
|
| 2821 |
chandransh |
600 |
|
| 5110 |
mandeep.dh |
601 |
def send_scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
|
| 4501 |
mandeep.dh |
602 |
self._oprot.writeMessageBegin('scanSerializedItemForOrder', TMessageType.CALL, self._seqid)
|
|
|
603 |
args = scanSerializedItemForOrder_args()
|
| 4555 |
mandeep.dh |
604 |
args.serialNumber = serialNumber
|
| 2821 |
chandransh |
605 |
args.type = type
|
| 4501 |
mandeep.dh |
606 |
args.orderId = orderId
|
| 5110 |
mandeep.dh |
607 |
args.fulfilmentWarehouseId = fulfilmentWarehouseId
|
|
|
608 |
args.quantity = quantity
|
|
|
609 |
args.billingWarehouseId = billingWarehouseId
|
| 2821 |
chandransh |
610 |
args.write(self._oprot)
|
|
|
611 |
self._oprot.writeMessageEnd()
|
|
|
612 |
self._oprot.trans.flush()
|
|
|
613 |
|
| 4501 |
mandeep.dh |
614 |
def recv_scanSerializedItemForOrder(self, ):
|
| 2821 |
chandransh |
615 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
616 |
if mtype == TMessageType.EXCEPTION:
|
|
|
617 |
x = TApplicationException()
|
|
|
618 |
x.read(self._iprot)
|
|
|
619 |
self._iprot.readMessageEnd()
|
|
|
620 |
raise x
|
| 4501 |
mandeep.dh |
621 |
result = scanSerializedItemForOrder_result()
|
| 2821 |
chandransh |
622 |
result.read(self._iprot)
|
|
|
623 |
self._iprot.readMessageEnd()
|
| 4501 |
mandeep.dh |
624 |
if result.success is not None:
|
|
|
625 |
return result.success
|
| 3431 |
rajveer |
626 |
if result.wex is not None:
|
| 2821 |
chandransh |
627 |
raise result.wex
|
| 4501 |
mandeep.dh |
628 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
|
|
|
629 |
|
| 5361 |
mandeep.dh |
630 |
def scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
|
| 4501 |
mandeep.dh |
631 |
"""
|
|
|
632 |
Scan non-serialized items linked with an order.
|
|
|
633 |
|
|
|
634 |
Parameters:
|
| 5361 |
mandeep.dh |
635 |
- inventoryItem
|
| 4501 |
mandeep.dh |
636 |
- type
|
|
|
637 |
- quantity
|
|
|
638 |
- orderId
|
| 5110 |
mandeep.dh |
639 |
- fulfilmentWarehouseId
|
| 5361 |
mandeep.dh |
640 |
- billingWarehouseId
|
| 4501 |
mandeep.dh |
641 |
"""
|
| 5361 |
mandeep.dh |
642 |
self.send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId)
|
|
|
643 |
return self.recv_scanForOrder()
|
| 4501 |
mandeep.dh |
644 |
|
| 5361 |
mandeep.dh |
645 |
def send_scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
|
| 4501 |
mandeep.dh |
646 |
self._oprot.writeMessageBegin('scanForOrder', TMessageType.CALL, self._seqid)
|
|
|
647 |
args = scanForOrder_args()
|
| 5361 |
mandeep.dh |
648 |
args.inventoryItem = inventoryItem
|
| 4501 |
mandeep.dh |
649 |
args.type = type
|
|
|
650 |
args.quantity = quantity
|
|
|
651 |
args.orderId = orderId
|
| 5110 |
mandeep.dh |
652 |
args.fulfilmentWarehouseId = fulfilmentWarehouseId
|
| 5361 |
mandeep.dh |
653 |
args.billingWarehouseId = billingWarehouseId
|
| 4501 |
mandeep.dh |
654 |
args.write(self._oprot)
|
|
|
655 |
self._oprot.writeMessageEnd()
|
|
|
656 |
self._oprot.trans.flush()
|
|
|
657 |
|
|
|
658 |
def recv_scanForOrder(self, ):
|
|
|
659 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
660 |
if mtype == TMessageType.EXCEPTION:
|
|
|
661 |
x = TApplicationException()
|
|
|
662 |
x.read(self._iprot)
|
|
|
663 |
self._iprot.readMessageEnd()
|
|
|
664 |
raise x
|
|
|
665 |
result = scanForOrder_result()
|
|
|
666 |
result.read(self._iprot)
|
|
|
667 |
self._iprot.readMessageEnd()
|
| 5361 |
mandeep.dh |
668 |
if result.success is not None:
|
|
|
669 |
return result.success
|
| 4501 |
mandeep.dh |
670 |
if result.wex is not None:
|
|
|
671 |
raise result.wex
|
| 5361 |
mandeep.dh |
672 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");
|
| 2821 |
chandransh |
673 |
|
| 4501 |
mandeep.dh |
674 |
def createItemNumberMapping(self, itemNumber, itemId):
|
|
|
675 |
"""
|
|
|
676 |
Created item number to item id mapping
|
| 2821 |
chandransh |
677 |
|
| 4501 |
mandeep.dh |
678 |
Parameters:
|
|
|
679 |
- itemNumber
|
|
|
680 |
- itemId
|
|
|
681 |
"""
|
|
|
682 |
self.send_createItemNumberMapping(itemNumber, itemId)
|
|
|
683 |
self.recv_createItemNumberMapping()
|
|
|
684 |
|
|
|
685 |
def send_createItemNumberMapping(self, itemNumber, itemId):
|
|
|
686 |
self._oprot.writeMessageBegin('createItemNumberMapping', TMessageType.CALL, self._seqid)
|
|
|
687 |
args = createItemNumberMapping_args()
|
|
|
688 |
args.itemNumber = itemNumber
|
|
|
689 |
args.itemId = itemId
|
|
|
690 |
args.write(self._oprot)
|
|
|
691 |
self._oprot.writeMessageEnd()
|
|
|
692 |
self._oprot.trans.flush()
|
|
|
693 |
|
|
|
694 |
def recv_createItemNumberMapping(self, ):
|
|
|
695 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
696 |
if mtype == TMessageType.EXCEPTION:
|
|
|
697 |
x = TApplicationException()
|
|
|
698 |
x.read(self._iprot)
|
|
|
699 |
self._iprot.readMessageEnd()
|
|
|
700 |
raise x
|
|
|
701 |
result = createItemNumberMapping_result()
|
|
|
702 |
result.read(self._iprot)
|
|
|
703 |
self._iprot.readMessageEnd()
|
|
|
704 |
return
|
|
|
705 |
|
| 4620 |
amit.gupta |
706 |
def getItemNumbers(self, itemId):
|
|
|
707 |
"""
|
|
|
708 |
Get itemNumber mappings for itemId
|
| 4501 |
mandeep.dh |
709 |
|
| 4620 |
amit.gupta |
710 |
Parameters:
|
|
|
711 |
- itemId
|
|
|
712 |
"""
|
|
|
713 |
self.send_getItemNumbers(itemId)
|
|
|
714 |
return self.recv_getItemNumbers()
|
|
|
715 |
|
|
|
716 |
def send_getItemNumbers(self, itemId):
|
|
|
717 |
self._oprot.writeMessageBegin('getItemNumbers', TMessageType.CALL, self._seqid)
|
|
|
718 |
args = getItemNumbers_args()
|
|
|
719 |
args.itemId = itemId
|
|
|
720 |
args.write(self._oprot)
|
|
|
721 |
self._oprot.writeMessageEnd()
|
|
|
722 |
self._oprot.trans.flush()
|
|
|
723 |
|
|
|
724 |
def recv_getItemNumbers(self, ):
|
|
|
725 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
726 |
if mtype == TMessageType.EXCEPTION:
|
|
|
727 |
x = TApplicationException()
|
|
|
728 |
x.read(self._iprot)
|
|
|
729 |
self._iprot.readMessageEnd()
|
|
|
730 |
raise x
|
|
|
731 |
result = getItemNumbers_result()
|
|
|
732 |
result.read(self._iprot)
|
|
|
733 |
self._iprot.readMessageEnd()
|
|
|
734 |
if result.success is not None:
|
|
|
735 |
return result.success
|
|
|
736 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
|
|
|
737 |
|
| 5110 |
mandeep.dh |
738 |
def getItemIds(self, itemNumber):
|
|
|
739 |
"""
|
|
|
740 |
Gets item ids for a given item number
|
| 4620 |
amit.gupta |
741 |
|
| 5110 |
mandeep.dh |
742 |
Parameters:
|
|
|
743 |
- itemNumber
|
|
|
744 |
"""
|
|
|
745 |
self.send_getItemIds(itemNumber)
|
|
|
746 |
return self.recv_getItemIds()
|
|
|
747 |
|
|
|
748 |
def send_getItemIds(self, itemNumber):
|
|
|
749 |
self._oprot.writeMessageBegin('getItemIds', TMessageType.CALL, self._seqid)
|
|
|
750 |
args = getItemIds_args()
|
|
|
751 |
args.itemNumber = itemNumber
|
|
|
752 |
args.write(self._oprot)
|
|
|
753 |
self._oprot.writeMessageEnd()
|
|
|
754 |
self._oprot.trans.flush()
|
|
|
755 |
|
|
|
756 |
def recv_getItemIds(self, ):
|
|
|
757 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
758 |
if mtype == TMessageType.EXCEPTION:
|
|
|
759 |
x = TApplicationException()
|
|
|
760 |
x.read(self._iprot)
|
|
|
761 |
self._iprot.readMessageEnd()
|
|
|
762 |
raise x
|
|
|
763 |
result = getItemIds_result()
|
|
|
764 |
result.read(self._iprot)
|
|
|
765 |
self._iprot.readMessageEnd()
|
|
|
766 |
if result.success is not None:
|
|
|
767 |
return result.success
|
|
|
768 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
|
|
|
769 |
|
| 5185 |
mandeep.dh |
770 |
def getInventoryItemsFromLastScanType(self, lastScanType):
|
|
|
771 |
"""
|
|
|
772 |
Retrieves all inventory items given a last scan type
|
| 5110 |
mandeep.dh |
773 |
|
| 5185 |
mandeep.dh |
774 |
Parameters:
|
|
|
775 |
- lastScanType
|
|
|
776 |
"""
|
|
|
777 |
self.send_getInventoryItemsFromLastScanType(lastScanType)
|
|
|
778 |
return self.recv_getInventoryItemsFromLastScanType()
|
|
|
779 |
|
|
|
780 |
def send_getInventoryItemsFromLastScanType(self, lastScanType):
|
|
|
781 |
self._oprot.writeMessageBegin('getInventoryItemsFromLastScanType', TMessageType.CALL, self._seqid)
|
|
|
782 |
args = getInventoryItemsFromLastScanType_args()
|
|
|
783 |
args.lastScanType = lastScanType
|
|
|
784 |
args.write(self._oprot)
|
|
|
785 |
self._oprot.writeMessageEnd()
|
|
|
786 |
self._oprot.trans.flush()
|
|
|
787 |
|
|
|
788 |
def recv_getInventoryItemsFromLastScanType(self, ):
|
|
|
789 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
790 |
if mtype == TMessageType.EXCEPTION:
|
|
|
791 |
x = TApplicationException()
|
|
|
792 |
x.read(self._iprot)
|
|
|
793 |
self._iprot.readMessageEnd()
|
|
|
794 |
raise x
|
|
|
795 |
result = getInventoryItemsFromLastScanType_result()
|
|
|
796 |
result.read(self._iprot)
|
|
|
797 |
self._iprot.readMessageEnd()
|
|
|
798 |
if result.success is not None:
|
|
|
799 |
return result.success
|
|
|
800 |
if result.wex is not None:
|
|
|
801 |
raise result.wex
|
|
|
802 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemsFromLastScanType failed: unknown result");
|
|
|
803 |
|
|
|
804 |
def getInventoryItemFromId(self, inventoryItemId):
|
|
|
805 |
"""
|
|
|
806 |
Retrieves inventory item given a inventoryItem id
|
|
|
807 |
|
|
|
808 |
Parameters:
|
|
|
809 |
- inventoryItemId
|
|
|
810 |
"""
|
|
|
811 |
self.send_getInventoryItemFromId(inventoryItemId)
|
|
|
812 |
return self.recv_getInventoryItemFromId()
|
|
|
813 |
|
|
|
814 |
def send_getInventoryItemFromId(self, inventoryItemId):
|
|
|
815 |
self._oprot.writeMessageBegin('getInventoryItemFromId', TMessageType.CALL, self._seqid)
|
|
|
816 |
args = getInventoryItemFromId_args()
|
|
|
817 |
args.inventoryItemId = inventoryItemId
|
|
|
818 |
args.write(self._oprot)
|
|
|
819 |
self._oprot.writeMessageEnd()
|
|
|
820 |
self._oprot.trans.flush()
|
|
|
821 |
|
|
|
822 |
def recv_getInventoryItemFromId(self, ):
|
|
|
823 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
824 |
if mtype == TMessageType.EXCEPTION:
|
|
|
825 |
x = TApplicationException()
|
|
|
826 |
x.read(self._iprot)
|
|
|
827 |
self._iprot.readMessageEnd()
|
|
|
828 |
raise x
|
|
|
829 |
result = getInventoryItemFromId_result()
|
|
|
830 |
result.read(self._iprot)
|
|
|
831 |
self._iprot.readMessageEnd()
|
|
|
832 |
if result.success is not None:
|
|
|
833 |
return result.success
|
|
|
834 |
if result.wex is not None:
|
|
|
835 |
raise result.wex
|
|
|
836 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");
|
|
|
837 |
|
| 5372 |
mandeep.dh |
838 |
def getPurchaseScans(self, startDate, endDate):
|
|
|
839 |
"""
|
|
|
840 |
Returns the purchase scans grouped by items for Purchase register reconciliation
|
| 5185 |
mandeep.dh |
841 |
|
| 5372 |
mandeep.dh |
842 |
Parameters:
|
|
|
843 |
- startDate
|
|
|
844 |
- endDate
|
|
|
845 |
"""
|
|
|
846 |
self.send_getPurchaseScans(startDate, endDate)
|
|
|
847 |
return self.recv_getPurchaseScans()
|
|
|
848 |
|
|
|
849 |
def send_getPurchaseScans(self, startDate, endDate):
|
|
|
850 |
self._oprot.writeMessageBegin('getPurchaseScans', TMessageType.CALL, self._seqid)
|
|
|
851 |
args = getPurchaseScans_args()
|
|
|
852 |
args.startDate = startDate
|
|
|
853 |
args.endDate = endDate
|
|
|
854 |
args.write(self._oprot)
|
|
|
855 |
self._oprot.writeMessageEnd()
|
|
|
856 |
self._oprot.trans.flush()
|
|
|
857 |
|
|
|
858 |
def recv_getPurchaseScans(self, ):
|
|
|
859 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
860 |
if mtype == TMessageType.EXCEPTION:
|
|
|
861 |
x = TApplicationException()
|
|
|
862 |
x.read(self._iprot)
|
|
|
863 |
self._iprot.readMessageEnd()
|
|
|
864 |
raise x
|
|
|
865 |
result = getPurchaseScans_result()
|
|
|
866 |
result.read(self._iprot)
|
|
|
867 |
self._iprot.readMessageEnd()
|
|
|
868 |
if result.success is not None:
|
|
|
869 |
return result.success
|
|
|
870 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseScans failed: unknown result");
|
|
|
871 |
|
| 7216 |
amar.kumar |
872 |
def getPurchaseScansByGrnDate(self, startDate, endDate):
|
|
|
873 |
"""
|
|
|
874 |
Returns the purchase scans between grn dates grouped by items for Purchase register reconciliation
|
|
|
875 |
|
|
|
876 |
Parameters:
|
|
|
877 |
- startDate
|
|
|
878 |
- endDate
|
|
|
879 |
"""
|
|
|
880 |
self.send_getPurchaseScansByGrnDate(startDate, endDate)
|
|
|
881 |
return self.recv_getPurchaseScansByGrnDate()
|
|
|
882 |
|
|
|
883 |
def send_getPurchaseScansByGrnDate(self, startDate, endDate):
|
|
|
884 |
self._oprot.writeMessageBegin('getPurchaseScansByGrnDate', TMessageType.CALL, self._seqid)
|
|
|
885 |
args = getPurchaseScansByGrnDate_args()
|
|
|
886 |
args.startDate = startDate
|
|
|
887 |
args.endDate = endDate
|
|
|
888 |
args.write(self._oprot)
|
|
|
889 |
self._oprot.writeMessageEnd()
|
|
|
890 |
self._oprot.trans.flush()
|
|
|
891 |
|
|
|
892 |
def recv_getPurchaseScansByGrnDate(self, ):
|
|
|
893 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
894 |
if mtype == TMessageType.EXCEPTION:
|
|
|
895 |
x = TApplicationException()
|
|
|
896 |
x.read(self._iprot)
|
|
|
897 |
self._iprot.readMessageEnd()
|
|
|
898 |
raise x
|
|
|
899 |
result = getPurchaseScansByGrnDate_result()
|
|
|
900 |
result.read(self._iprot)
|
|
|
901 |
self._iprot.readMessageEnd()
|
|
|
902 |
if result.success is not None:
|
|
|
903 |
return result.success
|
|
|
904 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseScansByGrnDate failed: unknown result");
|
|
|
905 |
|
| 5496 |
mandeep.dh |
906 |
def fetchScansPerInvoiceNumber(self, date):
|
|
|
907 |
"""
|
|
|
908 |
Returns the invoices and the count of scans against on a given day.
|
| 5372 |
mandeep.dh |
909 |
|
| 5496 |
mandeep.dh |
910 |
Parameters:
|
|
|
911 |
- date
|
|
|
912 |
"""
|
|
|
913 |
self.send_fetchScansPerInvoiceNumber(date)
|
|
|
914 |
return self.recv_fetchScansPerInvoiceNumber()
|
|
|
915 |
|
|
|
916 |
def send_fetchScansPerInvoiceNumber(self, date):
|
|
|
917 |
self._oprot.writeMessageBegin('fetchScansPerInvoiceNumber', TMessageType.CALL, self._seqid)
|
|
|
918 |
args = fetchScansPerInvoiceNumber_args()
|
|
|
919 |
args.date = date
|
|
|
920 |
args.write(self._oprot)
|
|
|
921 |
self._oprot.writeMessageEnd()
|
|
|
922 |
self._oprot.trans.flush()
|
|
|
923 |
|
|
|
924 |
def recv_fetchScansPerInvoiceNumber(self, ):
|
|
|
925 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
926 |
if mtype == TMessageType.EXCEPTION:
|
|
|
927 |
x = TApplicationException()
|
|
|
928 |
x.read(self._iprot)
|
|
|
929 |
self._iprot.readMessageEnd()
|
|
|
930 |
raise x
|
|
|
931 |
result = fetchScansPerInvoiceNumber_result()
|
|
|
932 |
result.read(self._iprot)
|
|
|
933 |
self._iprot.readMessageEnd()
|
|
|
934 |
if result.success is not None:
|
|
|
935 |
return result.success
|
|
|
936 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchScansPerInvoiceNumber failed: unknown result");
|
|
|
937 |
|
| 5620 |
mandeep.dh |
938 |
def getInventoryItemFromOrder(self, orderId):
|
|
|
939 |
"""
|
|
|
940 |
Returns inventory item for a given order
|
| 5496 |
mandeep.dh |
941 |
|
| 5620 |
mandeep.dh |
942 |
Parameters:
|
|
|
943 |
- orderId
|
|
|
944 |
"""
|
|
|
945 |
self.send_getInventoryItemFromOrder(orderId)
|
|
|
946 |
return self.recv_getInventoryItemFromOrder()
|
|
|
947 |
|
|
|
948 |
def send_getInventoryItemFromOrder(self, orderId):
|
|
|
949 |
self._oprot.writeMessageBegin('getInventoryItemFromOrder', TMessageType.CALL, self._seqid)
|
|
|
950 |
args = getInventoryItemFromOrder_args()
|
|
|
951 |
args.orderId = orderId
|
|
|
952 |
args.write(self._oprot)
|
|
|
953 |
self._oprot.writeMessageEnd()
|
|
|
954 |
self._oprot.trans.flush()
|
|
|
955 |
|
|
|
956 |
def recv_getInventoryItemFromOrder(self, ):
|
|
|
957 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
958 |
if mtype == TMessageType.EXCEPTION:
|
|
|
959 |
x = TApplicationException()
|
|
|
960 |
x.read(self._iprot)
|
|
|
961 |
self._iprot.readMessageEnd()
|
|
|
962 |
raise x
|
|
|
963 |
result = getInventoryItemFromOrder_result()
|
|
|
964 |
result.read(self._iprot)
|
|
|
965 |
self._iprot.readMessageEnd()
|
|
|
966 |
if result.success is not None:
|
|
|
967 |
return result.success
|
|
|
968 |
if result.we is not None:
|
|
|
969 |
raise result.we
|
|
|
970 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemFromOrder failed: unknown result");
|
|
|
971 |
|
| 5711 |
mandeep.dh |
972 |
def getInventoryAge(self, ):
|
|
|
973 |
"""
|
|
|
974 |
Fetches the stock inventory age week-wise
|
|
|
975 |
"""
|
|
|
976 |
self.send_getInventoryAge()
|
|
|
977 |
return self.recv_getInventoryAge()
|
| 5620 |
mandeep.dh |
978 |
|
| 5711 |
mandeep.dh |
979 |
def send_getInventoryAge(self, ):
|
|
|
980 |
self._oprot.writeMessageBegin('getInventoryAge', TMessageType.CALL, self._seqid)
|
|
|
981 |
args = getInventoryAge_args()
|
|
|
982 |
args.write(self._oprot)
|
|
|
983 |
self._oprot.writeMessageEnd()
|
|
|
984 |
self._oprot.trans.flush()
|
|
|
985 |
|
|
|
986 |
def recv_getInventoryAge(self, ):
|
|
|
987 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
988 |
if mtype == TMessageType.EXCEPTION:
|
|
|
989 |
x = TApplicationException()
|
|
|
990 |
x.read(self._iprot)
|
|
|
991 |
self._iprot.readMessageEnd()
|
|
|
992 |
raise x
|
|
|
993 |
result = getInventoryAge_result()
|
|
|
994 |
result.read(self._iprot)
|
|
|
995 |
self._iprot.readMessageEnd()
|
|
|
996 |
if result.success is not None:
|
|
|
997 |
return result.success
|
|
|
998 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryAge failed: unknown result");
|
|
|
999 |
|
| 6361 |
rajveer |
1000 |
def getInventoryScansForItem(self, itemId, fromDate, toDate):
|
|
|
1001 |
"""
|
|
|
1002 |
Fetches the scanRecords for a given item for a given time interval
|
| 5711 |
mandeep.dh |
1003 |
|
| 6361 |
rajveer |
1004 |
Parameters:
|
|
|
1005 |
- itemId
|
|
|
1006 |
- fromDate
|
|
|
1007 |
- toDate
|
|
|
1008 |
"""
|
|
|
1009 |
self.send_getInventoryScansForItem(itemId, fromDate, toDate)
|
|
|
1010 |
return self.recv_getInventoryScansForItem()
|
|
|
1011 |
|
|
|
1012 |
def send_getInventoryScansForItem(self, itemId, fromDate, toDate):
|
|
|
1013 |
self._oprot.writeMessageBegin('getInventoryScansForItem', TMessageType.CALL, self._seqid)
|
|
|
1014 |
args = getInventoryScansForItem_args()
|
|
|
1015 |
args.itemId = itemId
|
|
|
1016 |
args.fromDate = fromDate
|
|
|
1017 |
args.toDate = toDate
|
|
|
1018 |
args.write(self._oprot)
|
|
|
1019 |
self._oprot.writeMessageEnd()
|
|
|
1020 |
self._oprot.trans.flush()
|
|
|
1021 |
|
|
|
1022 |
def recv_getInventoryScansForItem(self, ):
|
|
|
1023 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1024 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1025 |
x = TApplicationException()
|
|
|
1026 |
x.read(self._iprot)
|
|
|
1027 |
self._iprot.readMessageEnd()
|
|
|
1028 |
raise x
|
|
|
1029 |
result = getInventoryScansForItem_result()
|
|
|
1030 |
result.read(self._iprot)
|
|
|
1031 |
self._iprot.readMessageEnd()
|
|
|
1032 |
if result.success is not None:
|
|
|
1033 |
return result.success
|
|
|
1034 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryScansForItem failed: unknown result");
|
|
|
1035 |
|
|
|
1036 |
def getScanRecordsForSerialNumber(self, serialNumber):
|
|
|
1037 |
"""
|
|
|
1038 |
Fetches the scanRecords for a given serialNumber for a given time interval
|
|
|
1039 |
|
|
|
1040 |
Parameters:
|
|
|
1041 |
- serialNumber
|
|
|
1042 |
"""
|
|
|
1043 |
self.send_getScanRecordsForSerialNumber(serialNumber)
|
|
|
1044 |
return self.recv_getScanRecordsForSerialNumber()
|
|
|
1045 |
|
|
|
1046 |
def send_getScanRecordsForSerialNumber(self, serialNumber):
|
|
|
1047 |
self._oprot.writeMessageBegin('getScanRecordsForSerialNumber', TMessageType.CALL, self._seqid)
|
|
|
1048 |
args = getScanRecordsForSerialNumber_args()
|
|
|
1049 |
args.serialNumber = serialNumber
|
|
|
1050 |
args.write(self._oprot)
|
|
|
1051 |
self._oprot.writeMessageEnd()
|
|
|
1052 |
self._oprot.trans.flush()
|
|
|
1053 |
|
|
|
1054 |
def recv_getScanRecordsForSerialNumber(self, ):
|
|
|
1055 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1056 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1057 |
x = TApplicationException()
|
|
|
1058 |
x.read(self._iprot)
|
|
|
1059 |
self._iprot.readMessageEnd()
|
|
|
1060 |
raise x
|
|
|
1061 |
result = getScanRecordsForSerialNumber_result()
|
|
|
1062 |
result.read(self._iprot)
|
|
|
1063 |
self._iprot.readMessageEnd()
|
|
|
1064 |
if result.success is not None:
|
|
|
1065 |
return result.success
|
|
|
1066 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getScanRecordsForSerialNumber failed: unknown result");
|
|
|
1067 |
|
| 7718 |
amar.kumar |
1068 |
def scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
|
| 6467 |
amar.kumar |
1069 |
"""
|
| 6630 |
amar.kumar |
1070 |
Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
|
| 6361 |
rajveer |
1071 |
|
| 6467 |
amar.kumar |
1072 |
Parameters:
|
|
|
1073 |
- saleReturnItems
|
|
|
1074 |
- vendorId
|
| 7718 |
amar.kumar |
1075 |
- billingWarehouseId
|
| 6467 |
amar.kumar |
1076 |
"""
|
| 7718 |
amar.kumar |
1077 |
self.send_scanForPurchaseReturn(saleReturnItems, vendorId, billingWarehouseId)
|
| 6467 |
amar.kumar |
1078 |
self.recv_scanForPurchaseReturn()
|
|
|
1079 |
|
| 7718 |
amar.kumar |
1080 |
def send_scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
|
| 6467 |
amar.kumar |
1081 |
self._oprot.writeMessageBegin('scanForPurchaseReturn', TMessageType.CALL, self._seqid)
|
|
|
1082 |
args = scanForPurchaseReturn_args()
|
|
|
1083 |
args.saleReturnItems = saleReturnItems
|
|
|
1084 |
args.vendorId = vendorId
|
| 7718 |
amar.kumar |
1085 |
args.billingWarehouseId = billingWarehouseId
|
| 6467 |
amar.kumar |
1086 |
args.write(self._oprot)
|
|
|
1087 |
self._oprot.writeMessageEnd()
|
|
|
1088 |
self._oprot.trans.flush()
|
|
|
1089 |
|
|
|
1090 |
def recv_scanForPurchaseReturn(self, ):
|
|
|
1091 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1092 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1093 |
x = TApplicationException()
|
|
|
1094 |
x.read(self._iprot)
|
|
|
1095 |
self._iprot.readMessageEnd()
|
|
|
1096 |
raise x
|
|
|
1097 |
result = scanForPurchaseReturn_result()
|
|
|
1098 |
result.read(self._iprot)
|
|
|
1099 |
self._iprot.readMessageEnd()
|
|
|
1100 |
if result.ex is not None:
|
|
|
1101 |
raise result.ex
|
|
|
1102 |
return
|
|
|
1103 |
|
| 7718 |
amar.kumar |
1104 |
def scanForLostItem(self, lostItems, vendorId, billingWarehouseId):
|
| 6630 |
amar.kumar |
1105 |
"""
|
|
|
1106 |
Inserts scans for lost Items and updates lastScanType in InventoryItems
|
| 6467 |
amar.kumar |
1107 |
|
| 6630 |
amar.kumar |
1108 |
Parameters:
|
|
|
1109 |
- lostItems
|
|
|
1110 |
- vendorId
|
| 7718 |
amar.kumar |
1111 |
- billingWarehouseId
|
| 6630 |
amar.kumar |
1112 |
"""
|
| 7718 |
amar.kumar |
1113 |
self.send_scanForLostItem(lostItems, vendorId, billingWarehouseId)
|
| 6630 |
amar.kumar |
1114 |
self.recv_scanForLostItem()
|
|
|
1115 |
|
| 7718 |
amar.kumar |
1116 |
def send_scanForLostItem(self, lostItems, vendorId, billingWarehouseId):
|
| 6630 |
amar.kumar |
1117 |
self._oprot.writeMessageBegin('scanForLostItem', TMessageType.CALL, self._seqid)
|
|
|
1118 |
args = scanForLostItem_args()
|
|
|
1119 |
args.lostItems = lostItems
|
|
|
1120 |
args.vendorId = vendorId
|
| 7718 |
amar.kumar |
1121 |
args.billingWarehouseId = billingWarehouseId
|
| 6630 |
amar.kumar |
1122 |
args.write(self._oprot)
|
|
|
1123 |
self._oprot.writeMessageEnd()
|
|
|
1124 |
self._oprot.trans.flush()
|
|
|
1125 |
|
|
|
1126 |
def recv_scanForLostItem(self, ):
|
|
|
1127 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1128 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1129 |
x = TApplicationException()
|
|
|
1130 |
x.read(self._iprot)
|
|
|
1131 |
self._iprot.readMessageEnd()
|
|
|
1132 |
raise x
|
|
|
1133 |
result = scanForLostItem_result()
|
|
|
1134 |
result.read(self._iprot)
|
|
|
1135 |
self._iprot.readMessageEnd()
|
|
|
1136 |
if result.ex is not None:
|
|
|
1137 |
raise result.ex
|
|
|
1138 |
return
|
|
|
1139 |
|
| 7715 |
vikram.rag |
1140 |
def getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
|
| 6630 |
amar.kumar |
1141 |
"""
|
|
|
1142 |
Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
|
| 7715 |
vikram.rag |
1143 |
|
|
|
1144 |
Parameters:
|
|
|
1145 |
- physicalWarehouseId
|
| 6630 |
amar.kumar |
1146 |
"""
|
| 7715 |
vikram.rag |
1147 |
self.send_getCurrentSerializedInventoryByScans(physicalWarehouseId)
|
| 6630 |
amar.kumar |
1148 |
return self.recv_getCurrentSerializedInventoryByScans()
|
|
|
1149 |
|
| 7715 |
vikram.rag |
1150 |
def send_getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
|
| 6630 |
amar.kumar |
1151 |
self._oprot.writeMessageBegin('getCurrentSerializedInventoryByScans', TMessageType.CALL, self._seqid)
|
|
|
1152 |
args = getCurrentSerializedInventoryByScans_args()
|
| 7715 |
vikram.rag |
1153 |
args.physicalWarehouseId = physicalWarehouseId
|
| 6630 |
amar.kumar |
1154 |
args.write(self._oprot)
|
|
|
1155 |
self._oprot.writeMessageEnd()
|
|
|
1156 |
self._oprot.trans.flush()
|
|
|
1157 |
|
|
|
1158 |
def recv_getCurrentSerializedInventoryByScans(self, ):
|
|
|
1159 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1160 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1161 |
x = TApplicationException()
|
|
|
1162 |
x.read(self._iprot)
|
|
|
1163 |
self._iprot.readMessageEnd()
|
|
|
1164 |
raise x
|
|
|
1165 |
result = getCurrentSerializedInventoryByScans_result()
|
|
|
1166 |
result.read(self._iprot)
|
|
|
1167 |
self._iprot.readMessageEnd()
|
|
|
1168 |
if result.success is not None:
|
|
|
1169 |
return result.success
|
|
|
1170 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");
|
|
|
1171 |
|
| 7715 |
vikram.rag |
1172 |
def getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
|
| 6630 |
amar.kumar |
1173 |
"""
|
|
|
1174 |
Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
|
| 7715 |
vikram.rag |
1175 |
|
|
|
1176 |
Parameters:
|
|
|
1177 |
- physicalWarehouseId
|
| 6630 |
amar.kumar |
1178 |
"""
|
| 7715 |
vikram.rag |
1179 |
self.send_getCurrentNonSerializedInventoryByScans(physicalWarehouseId)
|
| 6630 |
amar.kumar |
1180 |
return self.recv_getCurrentNonSerializedInventoryByScans()
|
|
|
1181 |
|
| 7715 |
vikram.rag |
1182 |
def send_getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
|
| 6630 |
amar.kumar |
1183 |
self._oprot.writeMessageBegin('getCurrentNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
|
|
|
1184 |
args = getCurrentNonSerializedInventoryByScans_args()
|
| 7715 |
vikram.rag |
1185 |
args.physicalWarehouseId = physicalWarehouseId
|
| 6630 |
amar.kumar |
1186 |
args.write(self._oprot)
|
|
|
1187 |
self._oprot.writeMessageEnd()
|
|
|
1188 |
self._oprot.trans.flush()
|
|
|
1189 |
|
|
|
1190 |
def recv_getCurrentNonSerializedInventoryByScans(self, ):
|
|
|
1191 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1192 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1193 |
x = TApplicationException()
|
|
|
1194 |
x.read(self._iprot)
|
|
|
1195 |
self._iprot.readMessageEnd()
|
|
|
1196 |
raise x
|
|
|
1197 |
result = getCurrentNonSerializedInventoryByScans_result()
|
|
|
1198 |
result.read(self._iprot)
|
|
|
1199 |
self._iprot.readMessageEnd()
|
|
|
1200 |
if result.success is not None:
|
|
|
1201 |
return result.success
|
|
|
1202 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");
|
|
|
1203 |
|
| 6762 |
amar.kumar |
1204 |
def getHistoricSerializedInventoryByScans(self, date):
|
|
|
1205 |
"""
|
|
|
1206 |
Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
|
| 6630 |
amar.kumar |
1207 |
|
| 6762 |
amar.kumar |
1208 |
Parameters:
|
|
|
1209 |
- date
|
|
|
1210 |
"""
|
|
|
1211 |
self.send_getHistoricSerializedInventoryByScans(date)
|
|
|
1212 |
return self.recv_getHistoricSerializedInventoryByScans()
|
|
|
1213 |
|
|
|
1214 |
def send_getHistoricSerializedInventoryByScans(self, date):
|
|
|
1215 |
self._oprot.writeMessageBegin('getHistoricSerializedInventoryByScans', TMessageType.CALL, self._seqid)
|
|
|
1216 |
args = getHistoricSerializedInventoryByScans_args()
|
|
|
1217 |
args.date = date
|
|
|
1218 |
args.write(self._oprot)
|
|
|
1219 |
self._oprot.writeMessageEnd()
|
|
|
1220 |
self._oprot.trans.flush()
|
|
|
1221 |
|
|
|
1222 |
def recv_getHistoricSerializedInventoryByScans(self, ):
|
|
|
1223 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1224 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1225 |
x = TApplicationException()
|
|
|
1226 |
x.read(self._iprot)
|
|
|
1227 |
self._iprot.readMessageEnd()
|
|
|
1228 |
raise x
|
|
|
1229 |
result = getHistoricSerializedInventoryByScans_result()
|
|
|
1230 |
result.read(self._iprot)
|
|
|
1231 |
self._iprot.readMessageEnd()
|
|
|
1232 |
if result.success is not None:
|
|
|
1233 |
return result.success
|
|
|
1234 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricSerializedInventoryByScans failed: unknown result");
|
|
|
1235 |
|
|
|
1236 |
def getHistoricNonSerializedInventoryByScans(self, date):
|
|
|
1237 |
"""
|
|
|
1238 |
Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
|
|
|
1239 |
|
|
|
1240 |
Parameters:
|
|
|
1241 |
- date
|
|
|
1242 |
"""
|
|
|
1243 |
self.send_getHistoricNonSerializedInventoryByScans(date)
|
|
|
1244 |
return self.recv_getHistoricNonSerializedInventoryByScans()
|
|
|
1245 |
|
|
|
1246 |
def send_getHistoricNonSerializedInventoryByScans(self, date):
|
|
|
1247 |
self._oprot.writeMessageBegin('getHistoricNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
|
|
|
1248 |
args = getHistoricNonSerializedInventoryByScans_args()
|
|
|
1249 |
args.date = date
|
|
|
1250 |
args.write(self._oprot)
|
|
|
1251 |
self._oprot.writeMessageEnd()
|
|
|
1252 |
self._oprot.trans.flush()
|
|
|
1253 |
|
|
|
1254 |
def recv_getHistoricNonSerializedInventoryByScans(self, ):
|
|
|
1255 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1256 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1257 |
x = TApplicationException()
|
|
|
1258 |
x.read(self._iprot)
|
|
|
1259 |
self._iprot.readMessageEnd()
|
|
|
1260 |
raise x
|
|
|
1261 |
result = getHistoricNonSerializedInventoryByScans_result()
|
|
|
1262 |
result.read(self._iprot)
|
|
|
1263 |
self._iprot.readMessageEnd()
|
|
|
1264 |
if result.success is not None:
|
|
|
1265 |
return result.success
|
|
|
1266 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricNonSerializedInventoryByScans failed: unknown result");
|
|
|
1267 |
|
| 7672 |
rajveer |
1268 |
def scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):
|
| 6762 |
amar.kumar |
1269 |
"""
|
| 6880 |
amar.kumar |
1270 |
Insert Purchase/Sale Entries for product billed by Hotspot using OURS_EXTERNAL Billing
|
| 6762 |
amar.kumar |
1271 |
|
|
|
1272 |
Parameters:
|
|
|
1273 |
- itemId
|
|
|
1274 |
- serialNumber
|
|
|
1275 |
- itemNumber
|
|
|
1276 |
- invoiceNumber
|
|
|
1277 |
- warehouseId
|
|
|
1278 |
- unitPrice
|
| 7672 |
rajveer |
1279 |
- nlc
|
| 6762 |
amar.kumar |
1280 |
- orderId
|
|
|
1281 |
"""
|
| 7672 |
rajveer |
1282 |
self.send_scanForOursExternalSale(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId)
|
| 6762 |
amar.kumar |
1283 |
return self.recv_scanForOursExternalSale()
|
|
|
1284 |
|
| 7672 |
rajveer |
1285 |
def send_scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):
|
| 6762 |
amar.kumar |
1286 |
self._oprot.writeMessageBegin('scanForOursExternalSale', TMessageType.CALL, self._seqid)
|
|
|
1287 |
args = scanForOursExternalSale_args()
|
|
|
1288 |
args.itemId = itemId
|
|
|
1289 |
args.serialNumber = serialNumber
|
|
|
1290 |
args.itemNumber = itemNumber
|
|
|
1291 |
args.invoiceNumber = invoiceNumber
|
|
|
1292 |
args.warehouseId = warehouseId
|
|
|
1293 |
args.unitPrice = unitPrice
|
| 7672 |
rajveer |
1294 |
args.nlc = nlc
|
| 6762 |
amar.kumar |
1295 |
args.orderId = orderId
|
|
|
1296 |
args.write(self._oprot)
|
|
|
1297 |
self._oprot.writeMessageEnd()
|
|
|
1298 |
self._oprot.trans.flush()
|
|
|
1299 |
|
|
|
1300 |
def recv_scanForOursExternalSale(self, ):
|
|
|
1301 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1302 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1303 |
x = TApplicationException()
|
|
|
1304 |
x.read(self._iprot)
|
|
|
1305 |
self._iprot.readMessageEnd()
|
|
|
1306 |
raise x
|
|
|
1307 |
result = scanForOursExternalSale_result()
|
|
|
1308 |
result.read(self._iprot)
|
|
|
1309 |
self._iprot.readMessageEnd()
|
|
|
1310 |
if result.success is not None:
|
|
|
1311 |
return result.success
|
|
|
1312 |
if result.ex is not None:
|
|
|
1313 |
raise result.ex
|
|
|
1314 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOursExternalSale failed: unknown result");
|
|
|
1315 |
|
|
|
1316 |
def scanForOursExternalSaleReturn(self, orderId, unitPrice):
|
|
|
1317 |
"""
|
| 6880 |
amar.kumar |
1318 |
Insert Purchase_Ret/Sale_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
|
| 6762 |
amar.kumar |
1319 |
|
|
|
1320 |
Parameters:
|
|
|
1321 |
- orderId
|
|
|
1322 |
- unitPrice
|
|
|
1323 |
"""
|
|
|
1324 |
self.send_scanForOursExternalSaleReturn(orderId, unitPrice)
|
|
|
1325 |
self.recv_scanForOursExternalSaleReturn()
|
|
|
1326 |
|
|
|
1327 |
def send_scanForOursExternalSaleReturn(self, orderId, unitPrice):
|
|
|
1328 |
self._oprot.writeMessageBegin('scanForOursExternalSaleReturn', TMessageType.CALL, self._seqid)
|
|
|
1329 |
args = scanForOursExternalSaleReturn_args()
|
|
|
1330 |
args.orderId = orderId
|
|
|
1331 |
args.unitPrice = unitPrice
|
|
|
1332 |
args.write(self._oprot)
|
|
|
1333 |
self._oprot.writeMessageEnd()
|
|
|
1334 |
self._oprot.trans.flush()
|
|
|
1335 |
|
|
|
1336 |
def recv_scanForOursExternalSaleReturn(self, ):
|
|
|
1337 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1338 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1339 |
x = TApplicationException()
|
|
|
1340 |
x.read(self._iprot)
|
|
|
1341 |
self._iprot.readMessageEnd()
|
|
|
1342 |
raise x
|
|
|
1343 |
result = scanForOursExternalSaleReturn_result()
|
|
|
1344 |
result.read(self._iprot)
|
|
|
1345 |
self._iprot.readMessageEnd()
|
| 7410 |
amar.kumar |
1346 |
if result.ex is not None:
|
|
|
1347 |
raise result.ex
|
| 6762 |
amar.kumar |
1348 |
return
|
|
|
1349 |
|
| 6880 |
amar.kumar |
1350 |
def getMovementNonSerializedInventoryByScans(self, startDate, endDate):
|
|
|
1351 |
"""
|
|
|
1352 |
Parameters:
|
|
|
1353 |
- startDate
|
|
|
1354 |
- endDate
|
|
|
1355 |
"""
|
|
|
1356 |
self.send_getMovementNonSerializedInventoryByScans(startDate, endDate)
|
|
|
1357 |
return self.recv_getMovementNonSerializedInventoryByScans()
|
| 6762 |
amar.kumar |
1358 |
|
| 6880 |
amar.kumar |
1359 |
def send_getMovementNonSerializedInventoryByScans(self, startDate, endDate):
|
|
|
1360 |
self._oprot.writeMessageBegin('getMovementNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
|
|
|
1361 |
args = getMovementNonSerializedInventoryByScans_args()
|
|
|
1362 |
args.startDate = startDate
|
|
|
1363 |
args.endDate = endDate
|
|
|
1364 |
args.write(self._oprot)
|
|
|
1365 |
self._oprot.writeMessageEnd()
|
|
|
1366 |
self._oprot.trans.flush()
|
|
|
1367 |
|
|
|
1368 |
def recv_getMovementNonSerializedInventoryByScans(self, ):
|
|
|
1369 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1370 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1371 |
x = TApplicationException()
|
|
|
1372 |
x.read(self._iprot)
|
|
|
1373 |
self._iprot.readMessageEnd()
|
|
|
1374 |
raise x
|
|
|
1375 |
result = getMovementNonSerializedInventoryByScans_result()
|
|
|
1376 |
result.read(self._iprot)
|
|
|
1377 |
self._iprot.readMessageEnd()
|
|
|
1378 |
if result.success is not None:
|
|
|
1379 |
return result.success
|
|
|
1380 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getMovementNonSerializedInventoryByScans failed: unknown result");
|
|
|
1381 |
|
|
|
1382 |
def getMovementSerializedInventoryByScans(self, startDate, endDate):
|
|
|
1383 |
"""
|
|
|
1384 |
Parameters:
|
|
|
1385 |
- startDate
|
|
|
1386 |
- endDate
|
|
|
1387 |
"""
|
|
|
1388 |
self.send_getMovementSerializedInventoryByScans(startDate, endDate)
|
|
|
1389 |
return self.recv_getMovementSerializedInventoryByScans()
|
|
|
1390 |
|
|
|
1391 |
def send_getMovementSerializedInventoryByScans(self, startDate, endDate):
|
|
|
1392 |
self._oprot.writeMessageBegin('getMovementSerializedInventoryByScans', TMessageType.CALL, self._seqid)
|
|
|
1393 |
args = getMovementSerializedInventoryByScans_args()
|
|
|
1394 |
args.startDate = startDate
|
|
|
1395 |
args.endDate = endDate
|
|
|
1396 |
args.write(self._oprot)
|
|
|
1397 |
self._oprot.writeMessageEnd()
|
|
|
1398 |
self._oprot.trans.flush()
|
|
|
1399 |
|
|
|
1400 |
def recv_getMovementSerializedInventoryByScans(self, ):
|
|
|
1401 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1402 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1403 |
x = TApplicationException()
|
|
|
1404 |
x.read(self._iprot)
|
|
|
1405 |
self._iprot.readMessageEnd()
|
|
|
1406 |
raise x
|
|
|
1407 |
result = getMovementSerializedInventoryByScans_result()
|
|
|
1408 |
result.read(self._iprot)
|
|
|
1409 |
self._iprot.readMessageEnd()
|
|
|
1410 |
if result.success is not None:
|
|
|
1411 |
return result.success
|
|
|
1412 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getMovementSerializedInventoryByScans failed: unknown result");
|
|
|
1413 |
|
| 7216 |
amar.kumar |
1414 |
def getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):
|
|
|
1415 |
"""
|
|
|
1416 |
Parameters:
|
|
|
1417 |
- startDate
|
|
|
1418 |
- endDate
|
|
|
1419 |
"""
|
|
|
1420 |
self.send_getCompleteMovementSerializedInventoryByScans(startDate, endDate)
|
|
|
1421 |
return self.recv_getCompleteMovementSerializedInventoryByScans()
|
|
|
1422 |
|
|
|
1423 |
def send_getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):
|
|
|
1424 |
self._oprot.writeMessageBegin('getCompleteMovementSerializedInventoryByScans', TMessageType.CALL, self._seqid)
|
|
|
1425 |
args = getCompleteMovementSerializedInventoryByScans_args()
|
|
|
1426 |
args.startDate = startDate
|
|
|
1427 |
args.endDate = endDate
|
|
|
1428 |
args.write(self._oprot)
|
|
|
1429 |
self._oprot.writeMessageEnd()
|
|
|
1430 |
self._oprot.trans.flush()
|
|
|
1431 |
|
|
|
1432 |
def recv_getCompleteMovementSerializedInventoryByScans(self, ):
|
|
|
1433 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1434 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1435 |
x = TApplicationException()
|
|
|
1436 |
x.read(self._iprot)
|
|
|
1437 |
self._iprot.readMessageEnd()
|
|
|
1438 |
raise x
|
|
|
1439 |
result = getCompleteMovementSerializedInventoryByScans_result()
|
|
|
1440 |
result.read(self._iprot)
|
|
|
1441 |
self._iprot.readMessageEnd()
|
|
|
1442 |
if result.success is not None:
|
|
|
1443 |
return result.success
|
|
|
1444 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementSerializedInventoryByScans failed: unknown result");
|
|
|
1445 |
|
|
|
1446 |
def getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):
|
|
|
1447 |
"""
|
|
|
1448 |
Parameters:
|
|
|
1449 |
- startDate
|
|
|
1450 |
- endDate
|
|
|
1451 |
"""
|
|
|
1452 |
self.send_getCompleteMovementNonSerializedInventoryByScans(startDate, endDate)
|
|
|
1453 |
return self.recv_getCompleteMovementNonSerializedInventoryByScans()
|
|
|
1454 |
|
|
|
1455 |
def send_getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):
|
|
|
1456 |
self._oprot.writeMessageBegin('getCompleteMovementNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
|
|
|
1457 |
args = getCompleteMovementNonSerializedInventoryByScans_args()
|
|
|
1458 |
args.startDate = startDate
|
|
|
1459 |
args.endDate = endDate
|
|
|
1460 |
args.write(self._oprot)
|
|
|
1461 |
self._oprot.writeMessageEnd()
|
|
|
1462 |
self._oprot.trans.flush()
|
|
|
1463 |
|
|
|
1464 |
def recv_getCompleteMovementNonSerializedInventoryByScans(self, ):
|
|
|
1465 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1466 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1467 |
x = TApplicationException()
|
|
|
1468 |
x.read(self._iprot)
|
|
|
1469 |
self._iprot.readMessageEnd()
|
|
|
1470 |
raise x
|
|
|
1471 |
result = getCompleteMovementNonSerializedInventoryByScans_result()
|
|
|
1472 |
result.read(self._iprot)
|
|
|
1473 |
self._iprot.readMessageEnd()
|
|
|
1474 |
if result.success is not None:
|
|
|
1475 |
return result.success
|
|
|
1476 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementNonSerializedInventoryByScans failed: unknown result");
|
|
|
1477 |
|
| 7190 |
amar.kumar |
1478 |
def scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):
|
|
|
1479 |
"""
|
|
|
1480 |
Parameters:
|
|
|
1481 |
- orderId
|
|
|
1482 |
- freebieItemId
|
|
|
1483 |
- freebieWarehouseId
|
|
|
1484 |
- scanType
|
|
|
1485 |
"""
|
|
|
1486 |
self.send_scanfreebie(orderId, freebieItemId, freebieWarehouseId, scanType)
|
|
|
1487 |
return self.recv_scanfreebie()
|
| 6880 |
amar.kumar |
1488 |
|
| 7190 |
amar.kumar |
1489 |
def send_scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):
|
|
|
1490 |
self._oprot.writeMessageBegin('scanfreebie', TMessageType.CALL, self._seqid)
|
|
|
1491 |
args = scanfreebie_args()
|
|
|
1492 |
args.orderId = orderId
|
|
|
1493 |
args.freebieItemId = freebieItemId
|
|
|
1494 |
args.freebieWarehouseId = freebieWarehouseId
|
|
|
1495 |
args.scanType = scanType
|
|
|
1496 |
args.write(self._oprot)
|
|
|
1497 |
self._oprot.writeMessageEnd()
|
|
|
1498 |
self._oprot.trans.flush()
|
|
|
1499 |
|
|
|
1500 |
def recv_scanfreebie(self, ):
|
|
|
1501 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1502 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1503 |
x = TApplicationException()
|
|
|
1504 |
x.read(self._iprot)
|
|
|
1505 |
self._iprot.readMessageEnd()
|
|
|
1506 |
raise x
|
|
|
1507 |
result = scanfreebie_result()
|
|
|
1508 |
result.read(self._iprot)
|
|
|
1509 |
self._iprot.readMessageEnd()
|
|
|
1510 |
if result.success is not None:
|
|
|
1511 |
return result.success
|
|
|
1512 |
if result.wex is not None:
|
|
|
1513 |
raise result.wex
|
|
|
1514 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "scanfreebie failed: unknown result");
|
|
|
1515 |
|
| 7199 |
amar.kumar |
1516 |
def reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):
|
|
|
1517 |
"""
|
|
|
1518 |
Parameters:
|
|
|
1519 |
- oldOrderId
|
|
|
1520 |
- newOrderId
|
|
|
1521 |
- freebieItemId
|
|
|
1522 |
- scanType
|
|
|
1523 |
"""
|
|
|
1524 |
self.send_reshipfreebie(oldOrderId, newOrderId, freebieItemId, scanType)
|
|
|
1525 |
self.recv_reshipfreebie()
|
| 7190 |
amar.kumar |
1526 |
|
| 7199 |
amar.kumar |
1527 |
def send_reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):
|
|
|
1528 |
self._oprot.writeMessageBegin('reshipfreebie', TMessageType.CALL, self._seqid)
|
|
|
1529 |
args = reshipfreebie_args()
|
|
|
1530 |
args.oldOrderId = oldOrderId
|
|
|
1531 |
args.newOrderId = newOrderId
|
|
|
1532 |
args.freebieItemId = freebieItemId
|
|
|
1533 |
args.scanType = scanType
|
|
|
1534 |
args.write(self._oprot)
|
|
|
1535 |
self._oprot.writeMessageEnd()
|
|
|
1536 |
self._oprot.trans.flush()
|
|
|
1537 |
|
|
|
1538 |
def recv_reshipfreebie(self, ):
|
|
|
1539 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1540 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1541 |
x = TApplicationException()
|
|
|
1542 |
x.read(self._iprot)
|
|
|
1543 |
self._iprot.readMessageEnd()
|
|
|
1544 |
raise x
|
|
|
1545 |
result = reshipfreebie_result()
|
|
|
1546 |
result.read(self._iprot)
|
|
|
1547 |
self._iprot.readMessageEnd()
|
|
|
1548 |
if result.wex is not None:
|
|
|
1549 |
raise result.wex
|
|
|
1550 |
return
|
|
|
1551 |
|
| 7410 |
amar.kumar |
1552 |
def isItemTransferAllowed(self, warehouseId, transferWarehouseId):
|
|
|
1553 |
"""
|
|
|
1554 |
Parameters:
|
|
|
1555 |
- warehouseId
|
|
|
1556 |
- transferWarehouseId
|
|
|
1557 |
"""
|
|
|
1558 |
self.send_isItemTransferAllowed(warehouseId, transferWarehouseId)
|
|
|
1559 |
return self.recv_isItemTransferAllowed()
|
| 7199 |
amar.kumar |
1560 |
|
| 7410 |
amar.kumar |
1561 |
def send_isItemTransferAllowed(self, warehouseId, transferWarehouseId):
|
|
|
1562 |
self._oprot.writeMessageBegin('isItemTransferAllowed', TMessageType.CALL, self._seqid)
|
|
|
1563 |
args = isItemTransferAllowed_args()
|
|
|
1564 |
args.warehouseId = warehouseId
|
|
|
1565 |
args.transferWarehouseId = transferWarehouseId
|
|
|
1566 |
args.write(self._oprot)
|
|
|
1567 |
self._oprot.writeMessageEnd()
|
|
|
1568 |
self._oprot.trans.flush()
|
|
|
1569 |
|
|
|
1570 |
def recv_isItemTransferAllowed(self, ):
|
|
|
1571 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1572 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1573 |
x = TApplicationException()
|
|
|
1574 |
x.read(self._iprot)
|
|
|
1575 |
self._iprot.readMessageEnd()
|
|
|
1576 |
raise x
|
|
|
1577 |
result = isItemTransferAllowed_result()
|
|
|
1578 |
result.read(self._iprot)
|
|
|
1579 |
self._iprot.readMessageEnd()
|
|
|
1580 |
if result.success is not None:
|
|
|
1581 |
return result.success
|
|
|
1582 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "isItemTransferAllowed failed: unknown result");
|
|
|
1583 |
|
|
|
1584 |
def createTransferLot(self, originWarehouseId, destWarehouseId):
|
|
|
1585 |
"""
|
|
|
1586 |
Parameters:
|
|
|
1587 |
- originWarehouseId
|
|
|
1588 |
- destWarehouseId
|
|
|
1589 |
"""
|
|
|
1590 |
self.send_createTransferLot(originWarehouseId, destWarehouseId)
|
|
|
1591 |
return self.recv_createTransferLot()
|
|
|
1592 |
|
|
|
1593 |
def send_createTransferLot(self, originWarehouseId, destWarehouseId):
|
|
|
1594 |
self._oprot.writeMessageBegin('createTransferLot', TMessageType.CALL, self._seqid)
|
|
|
1595 |
args = createTransferLot_args()
|
|
|
1596 |
args.originWarehouseId = originWarehouseId
|
|
|
1597 |
args.destWarehouseId = destWarehouseId
|
|
|
1598 |
args.write(self._oprot)
|
|
|
1599 |
self._oprot.writeMessageEnd()
|
|
|
1600 |
self._oprot.trans.flush()
|
|
|
1601 |
|
|
|
1602 |
def recv_createTransferLot(self, ):
|
|
|
1603 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1604 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1605 |
x = TApplicationException()
|
|
|
1606 |
x.read(self._iprot)
|
|
|
1607 |
self._iprot.readMessageEnd()
|
|
|
1608 |
raise x
|
|
|
1609 |
result = createTransferLot_result()
|
|
|
1610 |
result.read(self._iprot)
|
|
|
1611 |
self._iprot.readMessageEnd()
|
|
|
1612 |
if result.success is not None:
|
|
|
1613 |
return result.success
|
|
|
1614 |
if result.wex is not None:
|
|
|
1615 |
raise result.wex
|
|
|
1616 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "createTransferLot failed: unknown result");
|
|
|
1617 |
|
|
|
1618 |
def getTransferLot(self, transferLotId):
|
|
|
1619 |
"""
|
|
|
1620 |
Parameters:
|
|
|
1621 |
- transferLotId
|
|
|
1622 |
"""
|
|
|
1623 |
self.send_getTransferLot(transferLotId)
|
|
|
1624 |
return self.recv_getTransferLot()
|
|
|
1625 |
|
|
|
1626 |
def send_getTransferLot(self, transferLotId):
|
|
|
1627 |
self._oprot.writeMessageBegin('getTransferLot', TMessageType.CALL, self._seqid)
|
|
|
1628 |
args = getTransferLot_args()
|
|
|
1629 |
args.transferLotId = transferLotId
|
|
|
1630 |
args.write(self._oprot)
|
|
|
1631 |
self._oprot.writeMessageEnd()
|
|
|
1632 |
self._oprot.trans.flush()
|
|
|
1633 |
|
|
|
1634 |
def recv_getTransferLot(self, ):
|
|
|
1635 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1636 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1637 |
x = TApplicationException()
|
|
|
1638 |
x.read(self._iprot)
|
|
|
1639 |
self._iprot.readMessageEnd()
|
|
|
1640 |
raise x
|
|
|
1641 |
result = getTransferLot_result()
|
|
|
1642 |
result.read(self._iprot)
|
|
|
1643 |
self._iprot.readMessageEnd()
|
|
|
1644 |
if result.success is not None:
|
|
|
1645 |
return result.success
|
|
|
1646 |
if result.wex is not None:
|
|
|
1647 |
raise result.wex
|
|
|
1648 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLot failed: unknown result");
|
|
|
1649 |
|
|
|
1650 |
def markTransferLotAsReceived(self, id, remoteTransferRefNumber):
|
|
|
1651 |
"""
|
|
|
1652 |
Parameters:
|
|
|
1653 |
- id
|
|
|
1654 |
- remoteTransferRefNumber
|
|
|
1655 |
"""
|
|
|
1656 |
self.send_markTransferLotAsReceived(id, remoteTransferRefNumber)
|
|
|
1657 |
self.recv_markTransferLotAsReceived()
|
|
|
1658 |
|
|
|
1659 |
def send_markTransferLotAsReceived(self, id, remoteTransferRefNumber):
|
|
|
1660 |
self._oprot.writeMessageBegin('markTransferLotAsReceived', TMessageType.CALL, self._seqid)
|
|
|
1661 |
args = markTransferLotAsReceived_args()
|
|
|
1662 |
args.id = id
|
|
|
1663 |
args.remoteTransferRefNumber = remoteTransferRefNumber
|
|
|
1664 |
args.write(self._oprot)
|
|
|
1665 |
self._oprot.writeMessageEnd()
|
|
|
1666 |
self._oprot.trans.flush()
|
|
|
1667 |
|
|
|
1668 |
def recv_markTransferLotAsReceived(self, ):
|
|
|
1669 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1670 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1671 |
x = TApplicationException()
|
|
|
1672 |
x.read(self._iprot)
|
|
|
1673 |
self._iprot.readMessageEnd()
|
|
|
1674 |
raise x
|
|
|
1675 |
result = markTransferLotAsReceived_result()
|
|
|
1676 |
result.read(self._iprot)
|
|
|
1677 |
self._iprot.readMessageEnd()
|
|
|
1678 |
if result.wex is not None:
|
|
|
1679 |
raise result.wex
|
|
|
1680 |
return
|
|
|
1681 |
|
|
|
1682 |
def getTransferLotsByDate(self, fromDate, toDate):
|
|
|
1683 |
"""
|
|
|
1684 |
Parameters:
|
|
|
1685 |
- fromDate
|
|
|
1686 |
- toDate
|
|
|
1687 |
"""
|
|
|
1688 |
self.send_getTransferLotsByDate(fromDate, toDate)
|
|
|
1689 |
return self.recv_getTransferLotsByDate()
|
|
|
1690 |
|
|
|
1691 |
def send_getTransferLotsByDate(self, fromDate, toDate):
|
|
|
1692 |
self._oprot.writeMessageBegin('getTransferLotsByDate', TMessageType.CALL, self._seqid)
|
|
|
1693 |
args = getTransferLotsByDate_args()
|
|
|
1694 |
args.fromDate = fromDate
|
|
|
1695 |
args.toDate = toDate
|
|
|
1696 |
args.write(self._oprot)
|
|
|
1697 |
self._oprot.writeMessageEnd()
|
|
|
1698 |
self._oprot.trans.flush()
|
|
|
1699 |
|
|
|
1700 |
def recv_getTransferLotsByDate(self, ):
|
|
|
1701 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1702 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1703 |
x = TApplicationException()
|
|
|
1704 |
x.read(self._iprot)
|
|
|
1705 |
self._iprot.readMessageEnd()
|
|
|
1706 |
raise x
|
|
|
1707 |
result = getTransferLotsByDate_result()
|
|
|
1708 |
result.read(self._iprot)
|
|
|
1709 |
self._iprot.readMessageEnd()
|
|
|
1710 |
if result.success is not None:
|
|
|
1711 |
return result.success
|
|
|
1712 |
if result.wex is not None:
|
|
|
1713 |
raise result.wex
|
|
|
1714 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLotsByDate failed: unknown result");
|
|
|
1715 |
|
|
|
1716 |
def getAllowedDestinationWarehousesForTransfer(self, warehouseId):
|
|
|
1717 |
"""
|
|
|
1718 |
Parameters:
|
|
|
1719 |
- warehouseId
|
|
|
1720 |
"""
|
|
|
1721 |
self.send_getAllowedDestinationWarehousesForTransfer(warehouseId)
|
|
|
1722 |
return self.recv_getAllowedDestinationWarehousesForTransfer()
|
|
|
1723 |
|
|
|
1724 |
def send_getAllowedDestinationWarehousesForTransfer(self, warehouseId):
|
|
|
1725 |
self._oprot.writeMessageBegin('getAllowedDestinationWarehousesForTransfer', TMessageType.CALL, self._seqid)
|
|
|
1726 |
args = getAllowedDestinationWarehousesForTransfer_args()
|
|
|
1727 |
args.warehouseId = warehouseId
|
|
|
1728 |
args.write(self._oprot)
|
|
|
1729 |
self._oprot.writeMessageEnd()
|
|
|
1730 |
self._oprot.trans.flush()
|
|
|
1731 |
|
|
|
1732 |
def recv_getAllowedDestinationWarehousesForTransfer(self, ):
|
|
|
1733 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1734 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1735 |
x = TApplicationException()
|
|
|
1736 |
x.read(self._iprot)
|
|
|
1737 |
self._iprot.readMessageEnd()
|
|
|
1738 |
raise x
|
|
|
1739 |
result = getAllowedDestinationWarehousesForTransfer_result()
|
|
|
1740 |
result.read(self._iprot)
|
|
|
1741 |
self._iprot.readMessageEnd()
|
|
|
1742 |
if result.success is not None:
|
|
|
1743 |
return result.success
|
|
|
1744 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllowedDestinationWarehousesForTransfer failed: unknown result");
|
|
|
1745 |
|
|
|
1746 |
def getItemsInTransferLot(self, transferLotId):
|
|
|
1747 |
"""
|
|
|
1748 |
Parameters:
|
|
|
1749 |
- transferLotId
|
|
|
1750 |
"""
|
|
|
1751 |
self.send_getItemsInTransferLot(transferLotId)
|
|
|
1752 |
return self.recv_getItemsInTransferLot()
|
|
|
1753 |
|
|
|
1754 |
def send_getItemsInTransferLot(self, transferLotId):
|
|
|
1755 |
self._oprot.writeMessageBegin('getItemsInTransferLot', TMessageType.CALL, self._seqid)
|
|
|
1756 |
args = getItemsInTransferLot_args()
|
|
|
1757 |
args.transferLotId = transferLotId
|
|
|
1758 |
args.write(self._oprot)
|
|
|
1759 |
self._oprot.writeMessageEnd()
|
|
|
1760 |
self._oprot.trans.flush()
|
|
|
1761 |
|
|
|
1762 |
def recv_getItemsInTransferLot(self, ):
|
|
|
1763 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1764 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1765 |
x = TApplicationException()
|
|
|
1766 |
x.read(self._iprot)
|
|
|
1767 |
self._iprot.readMessageEnd()
|
|
|
1768 |
raise x
|
|
|
1769 |
result = getItemsInTransferLot_result()
|
|
|
1770 |
result.read(self._iprot)
|
|
|
1771 |
self._iprot.readMessageEnd()
|
|
|
1772 |
if result.success is not None:
|
|
|
1773 |
return result.success
|
|
|
1774 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsInTransferLot failed: unknown result");
|
|
|
1775 |
|
|
|
1776 |
def markItemsAsReceivedForTransferLot(self, id):
|
|
|
1777 |
"""
|
|
|
1778 |
Parameters:
|
|
|
1779 |
- id
|
|
|
1780 |
"""
|
|
|
1781 |
self.send_markItemsAsReceivedForTransferLot(id)
|
|
|
1782 |
self.recv_markItemsAsReceivedForTransferLot()
|
|
|
1783 |
|
|
|
1784 |
def send_markItemsAsReceivedForTransferLot(self, id):
|
|
|
1785 |
self._oprot.writeMessageBegin('markItemsAsReceivedForTransferLot', TMessageType.CALL, self._seqid)
|
|
|
1786 |
args = markItemsAsReceivedForTransferLot_args()
|
|
|
1787 |
args.id = id
|
|
|
1788 |
args.write(self._oprot)
|
|
|
1789 |
self._oprot.writeMessageEnd()
|
|
|
1790 |
self._oprot.trans.flush()
|
|
|
1791 |
|
|
|
1792 |
def recv_markItemsAsReceivedForTransferLot(self, ):
|
|
|
1793 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1794 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1795 |
x = TApplicationException()
|
|
|
1796 |
x.read(self._iprot)
|
|
|
1797 |
self._iprot.readMessageEnd()
|
|
|
1798 |
raise x
|
|
|
1799 |
result = markItemsAsReceivedForTransferLot_result()
|
|
|
1800 |
result.read(self._iprot)
|
|
|
1801 |
self._iprot.readMessageEnd()
|
|
|
1802 |
if result.wex is not None:
|
|
|
1803 |
raise result.wex
|
|
|
1804 |
return
|
|
|
1805 |
|
|
|
1806 |
def updateTransferLotAfterItemReceive(self, id):
|
|
|
1807 |
"""
|
|
|
1808 |
Parameters:
|
|
|
1809 |
- id
|
|
|
1810 |
"""
|
|
|
1811 |
self.send_updateTransferLotAfterItemReceive(id)
|
|
|
1812 |
return self.recv_updateTransferLotAfterItemReceive()
|
|
|
1813 |
|
|
|
1814 |
def send_updateTransferLotAfterItemReceive(self, id):
|
|
|
1815 |
self._oprot.writeMessageBegin('updateTransferLotAfterItemReceive', TMessageType.CALL, self._seqid)
|
|
|
1816 |
args = updateTransferLotAfterItemReceive_args()
|
|
|
1817 |
args.id = id
|
|
|
1818 |
args.write(self._oprot)
|
|
|
1819 |
self._oprot.writeMessageEnd()
|
|
|
1820 |
self._oprot.trans.flush()
|
|
|
1821 |
|
|
|
1822 |
def recv_updateTransferLotAfterItemReceive(self, ):
|
|
|
1823 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1824 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1825 |
x = TApplicationException()
|
|
|
1826 |
x.read(self._iprot)
|
|
|
1827 |
self._iprot.readMessageEnd()
|
|
|
1828 |
raise x
|
|
|
1829 |
result = updateTransferLotAfterItemReceive_result()
|
|
|
1830 |
result.read(self._iprot)
|
|
|
1831 |
self._iprot.readMessageEnd()
|
|
|
1832 |
if result.success is not None:
|
|
|
1833 |
return result.success
|
|
|
1834 |
if result.wex is not None:
|
|
|
1835 |
raise result.wex
|
|
|
1836 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTransferLotAfterItemReceive failed: unknown result");
|
|
|
1837 |
|
| 7459 |
amar.kumar |
1838 |
def scanForTransferOut(self, inventoryItems, type, transferLotId):
|
| 7410 |
amar.kumar |
1839 |
"""
|
|
|
1840 |
Parameters:
|
|
|
1841 |
- inventoryItems
|
|
|
1842 |
- type
|
|
|
1843 |
- transferLotId
|
|
|
1844 |
"""
|
| 7459 |
amar.kumar |
1845 |
self.send_scanForTransferOut(inventoryItems, type, transferLotId)
|
|
|
1846 |
self.recv_scanForTransferOut()
|
| 7410 |
amar.kumar |
1847 |
|
| 7459 |
amar.kumar |
1848 |
def send_scanForTransferOut(self, inventoryItems, type, transferLotId):
|
|
|
1849 |
self._oprot.writeMessageBegin('scanForTransferOut', TMessageType.CALL, self._seqid)
|
|
|
1850 |
args = scanForTransferOut_args()
|
| 7410 |
amar.kumar |
1851 |
args.inventoryItems = inventoryItems
|
|
|
1852 |
args.type = type
|
|
|
1853 |
args.transferLotId = transferLotId
|
|
|
1854 |
args.write(self._oprot)
|
|
|
1855 |
self._oprot.writeMessageEnd()
|
|
|
1856 |
self._oprot.trans.flush()
|
|
|
1857 |
|
| 7459 |
amar.kumar |
1858 |
def recv_scanForTransferOut(self, ):
|
| 7410 |
amar.kumar |
1859 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1860 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1861 |
x = TApplicationException()
|
|
|
1862 |
x.read(self._iprot)
|
|
|
1863 |
self._iprot.readMessageEnd()
|
|
|
1864 |
raise x
|
| 7459 |
amar.kumar |
1865 |
result = scanForTransferOut_result()
|
| 7410 |
amar.kumar |
1866 |
result.read(self._iprot)
|
|
|
1867 |
self._iprot.readMessageEnd()
|
|
|
1868 |
if result.wex is not None:
|
|
|
1869 |
raise result.wex
|
|
|
1870 |
return
|
|
|
1871 |
|
| 7459 |
amar.kumar |
1872 |
def scanForTransferIn(self, inventoryItems, type, transferLotId):
|
|
|
1873 |
"""
|
|
|
1874 |
Parameters:
|
|
|
1875 |
- inventoryItems
|
|
|
1876 |
- type
|
|
|
1877 |
- transferLotId
|
|
|
1878 |
"""
|
|
|
1879 |
self.send_scanForTransferIn(inventoryItems, type, transferLotId)
|
|
|
1880 |
self.recv_scanForTransferIn()
|
| 7410 |
amar.kumar |
1881 |
|
| 7459 |
amar.kumar |
1882 |
def send_scanForTransferIn(self, inventoryItems, type, transferLotId):
|
|
|
1883 |
self._oprot.writeMessageBegin('scanForTransferIn', TMessageType.CALL, self._seqid)
|
|
|
1884 |
args = scanForTransferIn_args()
|
|
|
1885 |
args.inventoryItems = inventoryItems
|
|
|
1886 |
args.type = type
|
|
|
1887 |
args.transferLotId = transferLotId
|
|
|
1888 |
args.write(self._oprot)
|
|
|
1889 |
self._oprot.writeMessageEnd()
|
|
|
1890 |
self._oprot.trans.flush()
|
|
|
1891 |
|
|
|
1892 |
def recv_scanForTransferIn(self, ):
|
|
|
1893 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1894 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1895 |
x = TApplicationException()
|
|
|
1896 |
x.read(self._iprot)
|
|
|
1897 |
self._iprot.readMessageEnd()
|
|
|
1898 |
raise x
|
|
|
1899 |
result = scanForTransferIn_result()
|
|
|
1900 |
result.read(self._iprot)
|
|
|
1901 |
self._iprot.readMessageEnd()
|
|
|
1902 |
if result.wex is not None:
|
|
|
1903 |
raise result.wex
|
|
|
1904 |
return
|
|
|
1905 |
|
|
|
1906 |
def scanForOursThirdPartyReceive(self, inventoryItems, id):
|
|
|
1907 |
"""
|
|
|
1908 |
Parameters:
|
|
|
1909 |
- inventoryItems
|
|
|
1910 |
- id
|
|
|
1911 |
"""
|
|
|
1912 |
self.send_scanForOursThirdPartyReceive(inventoryItems, id)
|
|
|
1913 |
self.recv_scanForOursThirdPartyReceive()
|
|
|
1914 |
|
|
|
1915 |
def send_scanForOursThirdPartyReceive(self, inventoryItems, id):
|
|
|
1916 |
self._oprot.writeMessageBegin('scanForOursThirdPartyReceive', TMessageType.CALL, self._seqid)
|
|
|
1917 |
args = scanForOursThirdPartyReceive_args()
|
|
|
1918 |
args.inventoryItems = inventoryItems
|
|
|
1919 |
args.id = id
|
|
|
1920 |
args.write(self._oprot)
|
|
|
1921 |
self._oprot.writeMessageEnd()
|
|
|
1922 |
self._oprot.trans.flush()
|
|
|
1923 |
|
|
|
1924 |
def recv_scanForOursThirdPartyReceive(self, ):
|
|
|
1925 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1926 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1927 |
x = TApplicationException()
|
|
|
1928 |
x.read(self._iprot)
|
|
|
1929 |
self._iprot.readMessageEnd()
|
|
|
1930 |
raise x
|
|
|
1931 |
result = scanForOursThirdPartyReceive_result()
|
|
|
1932 |
result.read(self._iprot)
|
|
|
1933 |
self._iprot.readMessageEnd()
|
|
|
1934 |
if result.wex is not None:
|
|
|
1935 |
raise result.wex
|
|
|
1936 |
return
|
|
|
1937 |
|
| 7574 |
amar.kumar |
1938 |
def getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
|
|
|
1939 |
"""
|
|
|
1940 |
Parameters:
|
|
|
1941 |
- itemId
|
|
|
1942 |
- physicalWarehouseId
|
|
|
1943 |
"""
|
|
|
1944 |
self.send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(itemId, physicalWarehouseId)
|
|
|
1945 |
return self.recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse()
|
| 7459 |
amar.kumar |
1946 |
|
| 7574 |
amar.kumar |
1947 |
def send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
|
|
|
1948 |
self._oprot.writeMessageBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse', TMessageType.CALL, self._seqid)
|
|
|
1949 |
args = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args()
|
|
|
1950 |
args.itemId = itemId
|
|
|
1951 |
args.physicalWarehouseId = physicalWarehouseId
|
|
|
1952 |
args.write(self._oprot)
|
|
|
1953 |
self._oprot.writeMessageEnd()
|
|
|
1954 |
self._oprot.trans.flush()
|
|
|
1955 |
|
|
|
1956 |
def recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, ):
|
|
|
1957 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1958 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1959 |
x = TApplicationException()
|
|
|
1960 |
x.read(self._iprot)
|
|
|
1961 |
self._iprot.readMessageEnd()
|
|
|
1962 |
raise x
|
|
|
1963 |
result = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result()
|
|
|
1964 |
result.read(self._iprot)
|
|
|
1965 |
self._iprot.readMessageEnd()
|
|
|
1966 |
if result.success is not None:
|
|
|
1967 |
return result.success
|
|
|
1968 |
if result.wex is not None:
|
|
|
1969 |
raise result.wex
|
|
|
1970 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse failed: unknown result");
|
|
|
1971 |
|
| 7672 |
rajveer |
1972 |
def getInTransitInventory(self, originWarehouseId):
|
|
|
1973 |
"""
|
|
|
1974 |
Parameters:
|
|
|
1975 |
- originWarehouseId
|
|
|
1976 |
"""
|
|
|
1977 |
self.send_getInTransitInventory(originWarehouseId)
|
|
|
1978 |
return self.recv_getInTransitInventory()
|
| 7574 |
amar.kumar |
1979 |
|
| 7672 |
rajveer |
1980 |
def send_getInTransitInventory(self, originWarehouseId):
|
|
|
1981 |
self._oprot.writeMessageBegin('getInTransitInventory', TMessageType.CALL, self._seqid)
|
|
|
1982 |
args = getInTransitInventory_args()
|
|
|
1983 |
args.originWarehouseId = originWarehouseId
|
|
|
1984 |
args.write(self._oprot)
|
|
|
1985 |
self._oprot.writeMessageEnd()
|
|
|
1986 |
self._oprot.trans.flush()
|
|
|
1987 |
|
|
|
1988 |
def recv_getInTransitInventory(self, ):
|
|
|
1989 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
1990 |
if mtype == TMessageType.EXCEPTION:
|
|
|
1991 |
x = TApplicationException()
|
|
|
1992 |
x.read(self._iprot)
|
|
|
1993 |
self._iprot.readMessageEnd()
|
|
|
1994 |
raise x
|
|
|
1995 |
result = getInTransitInventory_result()
|
|
|
1996 |
result.read(self._iprot)
|
|
|
1997 |
self._iprot.readMessageEnd()
|
|
|
1998 |
if result.success is not None:
|
|
|
1999 |
return result.success
|
|
|
2000 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getInTransitInventory failed: unknown result");
|
|
|
2001 |
|
| 7968 |
amar.kumar |
2002 |
def isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
|
|
|
2003 |
"""
|
|
|
2004 |
Parameters:
|
|
|
2005 |
- itemId
|
|
|
2006 |
- serialNumber
|
|
|
2007 |
- warehouseId
|
|
|
2008 |
"""
|
|
|
2009 |
self.send_isItemAvailableForSale(itemId, serialNumber, warehouseId)
|
|
|
2010 |
return self.recv_isItemAvailableForSale()
|
| 7672 |
rajveer |
2011 |
|
| 7968 |
amar.kumar |
2012 |
def send_isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
|
|
|
2013 |
self._oprot.writeMessageBegin('isItemAvailableForSale', TMessageType.CALL, self._seqid)
|
|
|
2014 |
args = isItemAvailableForSale_args()
|
|
|
2015 |
args.itemId = itemId
|
|
|
2016 |
args.serialNumber = serialNumber
|
|
|
2017 |
args.warehouseId = warehouseId
|
|
|
2018 |
args.write(self._oprot)
|
|
|
2019 |
self._oprot.writeMessageEnd()
|
|
|
2020 |
self._oprot.trans.flush()
|
|
|
2021 |
|
|
|
2022 |
def recv_isItemAvailableForSale(self, ):
|
|
|
2023 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
2024 |
if mtype == TMessageType.EXCEPTION:
|
|
|
2025 |
x = TApplicationException()
|
|
|
2026 |
x.read(self._iprot)
|
|
|
2027 |
self._iprot.readMessageEnd()
|
|
|
2028 |
raise x
|
|
|
2029 |
result = isItemAvailableForSale_result()
|
|
|
2030 |
result.read(self._iprot)
|
|
|
2031 |
self._iprot.readMessageEnd()
|
|
|
2032 |
if result.success is not None:
|
|
|
2033 |
return result.success
|
|
|
2034 |
if result.wex is not None:
|
|
|
2035 |
raise result.wex
|
|
|
2036 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "isItemAvailableForSale failed: unknown result");
|
|
|
2037 |
|
|
|
2038 |
def getHistoricBadInventoryByScans(self, date):
|
|
|
2039 |
"""
|
|
|
2040 |
Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
|
|
|
2041 |
|
|
|
2042 |
Parameters:
|
|
|
2043 |
- date
|
|
|
2044 |
"""
|
|
|
2045 |
self.send_getHistoricBadInventoryByScans(date)
|
|
|
2046 |
return self.recv_getHistoricBadInventoryByScans()
|
|
|
2047 |
|
|
|
2048 |
def send_getHistoricBadInventoryByScans(self, date):
|
|
|
2049 |
self._oprot.writeMessageBegin('getHistoricBadInventoryByScans', TMessageType.CALL, self._seqid)
|
|
|
2050 |
args = getHistoricBadInventoryByScans_args()
|
|
|
2051 |
args.date = date
|
|
|
2052 |
args.write(self._oprot)
|
|
|
2053 |
self._oprot.writeMessageEnd()
|
|
|
2054 |
self._oprot.trans.flush()
|
|
|
2055 |
|
|
|
2056 |
def recv_getHistoricBadInventoryByScans(self, ):
|
|
|
2057 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
2058 |
if mtype == TMessageType.EXCEPTION:
|
|
|
2059 |
x = TApplicationException()
|
|
|
2060 |
x.read(self._iprot)
|
|
|
2061 |
self._iprot.readMessageEnd()
|
|
|
2062 |
raise x
|
|
|
2063 |
result = getHistoricBadInventoryByScans_result()
|
|
|
2064 |
result.read(self._iprot)
|
|
|
2065 |
self._iprot.readMessageEnd()
|
|
|
2066 |
if result.success is not None:
|
|
|
2067 |
return result.success
|
|
|
2068 |
if result.wex is not None:
|
|
|
2069 |
raise result.wex
|
|
|
2070 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricBadInventoryByScans failed: unknown result");
|
|
|
2071 |
|
| 8717 |
amar.kumar |
2072 |
def scanForBadSale(self, serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
|
| 8565 |
amar.kumar |
2073 |
"""
|
|
|
2074 |
Parameters:
|
| 8717 |
amar.kumar |
2075 |
- serialNumber
|
|
|
2076 |
- itemNumber
|
|
|
2077 |
- itemId
|
| 8565 |
amar.kumar |
2078 |
- orderId
|
| 8717 |
amar.kumar |
2079 |
- fulfilmentWarehouseId
|
| 8565 |
amar.kumar |
2080 |
- quantity
|
|
|
2081 |
- billingWarehouseId
|
|
|
2082 |
"""
|
| 8717 |
amar.kumar |
2083 |
self.send_scanForBadSale(serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId)
|
|
|
2084 |
return self.recv_scanForBadSale()
|
| 7968 |
amar.kumar |
2085 |
|
| 8717 |
amar.kumar |
2086 |
def send_scanForBadSale(self, serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
|
| 8565 |
amar.kumar |
2087 |
self._oprot.writeMessageBegin('scanForBadSale', TMessageType.CALL, self._seqid)
|
|
|
2088 |
args = scanForBadSale_args()
|
| 8717 |
amar.kumar |
2089 |
args.serialNumber = serialNumber
|
|
|
2090 |
args.itemNumber = itemNumber
|
|
|
2091 |
args.itemId = itemId
|
| 8565 |
amar.kumar |
2092 |
args.orderId = orderId
|
| 8717 |
amar.kumar |
2093 |
args.fulfilmentWarehouseId = fulfilmentWarehouseId
|
| 8565 |
amar.kumar |
2094 |
args.quantity = quantity
|
|
|
2095 |
args.billingWarehouseId = billingWarehouseId
|
|
|
2096 |
args.write(self._oprot)
|
|
|
2097 |
self._oprot.writeMessageEnd()
|
|
|
2098 |
self._oprot.trans.flush()
|
|
|
2099 |
|
|
|
2100 |
def recv_scanForBadSale(self, ):
|
|
|
2101 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
2102 |
if mtype == TMessageType.EXCEPTION:
|
|
|
2103 |
x = TApplicationException()
|
|
|
2104 |
x.read(self._iprot)
|
|
|
2105 |
self._iprot.readMessageEnd()
|
|
|
2106 |
raise x
|
|
|
2107 |
result = scanForBadSale_result()
|
|
|
2108 |
result.read(self._iprot)
|
|
|
2109 |
self._iprot.readMessageEnd()
|
| 8717 |
amar.kumar |
2110 |
if result.success is not None:
|
|
|
2111 |
return result.success
|
|
|
2112 |
if result.wex is not None:
|
|
|
2113 |
raise result.wex
|
|
|
2114 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForBadSale failed: unknown result");
|
| 8565 |
amar.kumar |
2115 |
|
|
|
2116 |
|
| 3376 |
rajveer |
2117 |
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
|
| 2821 |
chandransh |
2118 |
def __init__(self, handler):
|
| 3376 |
rajveer |
2119 |
shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
|
| 4501 |
mandeep.dh |
2120 |
self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
|
| 5361 |
mandeep.dh |
2121 |
self._processMap["getNonSeralizedInventoryItem"] = Processor.process_getNonSeralizedInventoryItem
|
| 4501 |
mandeep.dh |
2122 |
self._processMap["scan"] = Processor.process_scan
|
|
|
2123 |
self._processMap["scanSerializedItemForOrder"] = Processor.process_scanSerializedItemForOrder
|
|
|
2124 |
self._processMap["scanForOrder"] = Processor.process_scanForOrder
|
|
|
2125 |
self._processMap["createItemNumberMapping"] = Processor.process_createItemNumberMapping
|
| 4620 |
amit.gupta |
2126 |
self._processMap["getItemNumbers"] = Processor.process_getItemNumbers
|
| 5110 |
mandeep.dh |
2127 |
self._processMap["getItemIds"] = Processor.process_getItemIds
|
| 5185 |
mandeep.dh |
2128 |
self._processMap["getInventoryItemsFromLastScanType"] = Processor.process_getInventoryItemsFromLastScanType
|
|
|
2129 |
self._processMap["getInventoryItemFromId"] = Processor.process_getInventoryItemFromId
|
| 5372 |
mandeep.dh |
2130 |
self._processMap["getPurchaseScans"] = Processor.process_getPurchaseScans
|
| 7216 |
amar.kumar |
2131 |
self._processMap["getPurchaseScansByGrnDate"] = Processor.process_getPurchaseScansByGrnDate
|
| 5496 |
mandeep.dh |
2132 |
self._processMap["fetchScansPerInvoiceNumber"] = Processor.process_fetchScansPerInvoiceNumber
|
| 5620 |
mandeep.dh |
2133 |
self._processMap["getInventoryItemFromOrder"] = Processor.process_getInventoryItemFromOrder
|
| 5711 |
mandeep.dh |
2134 |
self._processMap["getInventoryAge"] = Processor.process_getInventoryAge
|
| 6361 |
rajveer |
2135 |
self._processMap["getInventoryScansForItem"] = Processor.process_getInventoryScansForItem
|
|
|
2136 |
self._processMap["getScanRecordsForSerialNumber"] = Processor.process_getScanRecordsForSerialNumber
|
| 6467 |
amar.kumar |
2137 |
self._processMap["scanForPurchaseReturn"] = Processor.process_scanForPurchaseReturn
|
| 6630 |
amar.kumar |
2138 |
self._processMap["scanForLostItem"] = Processor.process_scanForLostItem
|
|
|
2139 |
self._processMap["getCurrentSerializedInventoryByScans"] = Processor.process_getCurrentSerializedInventoryByScans
|
|
|
2140 |
self._processMap["getCurrentNonSerializedInventoryByScans"] = Processor.process_getCurrentNonSerializedInventoryByScans
|
| 6762 |
amar.kumar |
2141 |
self._processMap["getHistoricSerializedInventoryByScans"] = Processor.process_getHistoricSerializedInventoryByScans
|
|
|
2142 |
self._processMap["getHistoricNonSerializedInventoryByScans"] = Processor.process_getHistoricNonSerializedInventoryByScans
|
|
|
2143 |
self._processMap["scanForOursExternalSale"] = Processor.process_scanForOursExternalSale
|
|
|
2144 |
self._processMap["scanForOursExternalSaleReturn"] = Processor.process_scanForOursExternalSaleReturn
|
| 6880 |
amar.kumar |
2145 |
self._processMap["getMovementNonSerializedInventoryByScans"] = Processor.process_getMovementNonSerializedInventoryByScans
|
|
|
2146 |
self._processMap["getMovementSerializedInventoryByScans"] = Processor.process_getMovementSerializedInventoryByScans
|
| 7216 |
amar.kumar |
2147 |
self._processMap["getCompleteMovementSerializedInventoryByScans"] = Processor.process_getCompleteMovementSerializedInventoryByScans
|
|
|
2148 |
self._processMap["getCompleteMovementNonSerializedInventoryByScans"] = Processor.process_getCompleteMovementNonSerializedInventoryByScans
|
| 7190 |
amar.kumar |
2149 |
self._processMap["scanfreebie"] = Processor.process_scanfreebie
|
| 7199 |
amar.kumar |
2150 |
self._processMap["reshipfreebie"] = Processor.process_reshipfreebie
|
| 7410 |
amar.kumar |
2151 |
self._processMap["isItemTransferAllowed"] = Processor.process_isItemTransferAllowed
|
|
|
2152 |
self._processMap["createTransferLot"] = Processor.process_createTransferLot
|
|
|
2153 |
self._processMap["getTransferLot"] = Processor.process_getTransferLot
|
|
|
2154 |
self._processMap["markTransferLotAsReceived"] = Processor.process_markTransferLotAsReceived
|
|
|
2155 |
self._processMap["getTransferLotsByDate"] = Processor.process_getTransferLotsByDate
|
|
|
2156 |
self._processMap["getAllowedDestinationWarehousesForTransfer"] = Processor.process_getAllowedDestinationWarehousesForTransfer
|
|
|
2157 |
self._processMap["getItemsInTransferLot"] = Processor.process_getItemsInTransferLot
|
|
|
2158 |
self._processMap["markItemsAsReceivedForTransferLot"] = Processor.process_markItemsAsReceivedForTransferLot
|
|
|
2159 |
self._processMap["updateTransferLotAfterItemReceive"] = Processor.process_updateTransferLotAfterItemReceive
|
| 7459 |
amar.kumar |
2160 |
self._processMap["scanForTransferOut"] = Processor.process_scanForTransferOut
|
|
|
2161 |
self._processMap["scanForTransferIn"] = Processor.process_scanForTransferIn
|
|
|
2162 |
self._processMap["scanForOursThirdPartyReceive"] = Processor.process_scanForOursThirdPartyReceive
|
| 7574 |
amar.kumar |
2163 |
self._processMap["getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse"] = Processor.process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse
|
| 7672 |
rajveer |
2164 |
self._processMap["getInTransitInventory"] = Processor.process_getInTransitInventory
|
| 7968 |
amar.kumar |
2165 |
self._processMap["isItemAvailableForSale"] = Processor.process_isItemAvailableForSale
|
|
|
2166 |
self._processMap["getHistoricBadInventoryByScans"] = Processor.process_getHistoricBadInventoryByScans
|
| 8565 |
amar.kumar |
2167 |
self._processMap["scanForBadSale"] = Processor.process_scanForBadSale
|
| 2821 |
chandransh |
2168 |
|
|
|
2169 |
def process(self, iprot, oprot):
|
|
|
2170 |
(name, type, seqid) = iprot.readMessageBegin()
|
|
|
2171 |
if name not in self._processMap:
|
|
|
2172 |
iprot.skip(TType.STRUCT)
|
|
|
2173 |
iprot.readMessageEnd()
|
|
|
2174 |
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
|
|
|
2175 |
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
|
|
|
2176 |
x.write(oprot)
|
|
|
2177 |
oprot.writeMessageEnd()
|
|
|
2178 |
oprot.trans.flush()
|
|
|
2179 |
return
|
|
|
2180 |
else:
|
|
|
2181 |
self._processMap[name](self, seqid, iprot, oprot)
|
|
|
2182 |
return True
|
|
|
2183 |
|
| 4501 |
mandeep.dh |
2184 |
def process_getInventoryItem(self, seqid, iprot, oprot):
|
|
|
2185 |
args = getInventoryItem_args()
|
| 2832 |
chandransh |
2186 |
args.read(iprot)
|
|
|
2187 |
iprot.readMessageEnd()
|
| 4501 |
mandeep.dh |
2188 |
result = getInventoryItem_result()
|
| 4541 |
mandeep.dh |
2189 |
try:
|
|
|
2190 |
result.success = self._handler.getInventoryItem(args.serialNumber)
|
|
|
2191 |
except WarehouseServiceException, wex:
|
|
|
2192 |
result.wex = wex
|
| 4501 |
mandeep.dh |
2193 |
oprot.writeMessageBegin("getInventoryItem", TMessageType.REPLY, seqid)
|
| 2832 |
chandransh |
2194 |
result.write(oprot)
|
|
|
2195 |
oprot.writeMessageEnd()
|
|
|
2196 |
oprot.trans.flush()
|
|
|
2197 |
|
| 5361 |
mandeep.dh |
2198 |
def process_getNonSeralizedInventoryItem(self, seqid, iprot, oprot):
|
|
|
2199 |
args = getNonSeralizedInventoryItem_args()
|
| 2821 |
chandransh |
2200 |
args.read(iprot)
|
|
|
2201 |
iprot.readMessageEnd()
|
| 5361 |
mandeep.dh |
2202 |
result = getNonSeralizedInventoryItem_result()
|
|
|
2203 |
try:
|
| 8565 |
amar.kumar |
2204 |
result.success = self._handler.getNonSeralizedInventoryItem(args.itemNumber, args.itemId, args.fulfilmentWarehouseId, args.billingWarehouseId)
|
| 5361 |
mandeep.dh |
2205 |
except WarehouseServiceException, wex:
|
|
|
2206 |
result.wex = wex
|
|
|
2207 |
oprot.writeMessageBegin("getNonSeralizedInventoryItem", TMessageType.REPLY, seqid)
|
| 2821 |
chandransh |
2208 |
result.write(oprot)
|
|
|
2209 |
oprot.writeMessageEnd()
|
|
|
2210 |
oprot.trans.flush()
|
|
|
2211 |
|
| 4501 |
mandeep.dh |
2212 |
def process_scan(self, seqid, iprot, oprot):
|
|
|
2213 |
args = scan_args()
|
| 3383 |
chandransh |
2214 |
args.read(iprot)
|
|
|
2215 |
iprot.readMessageEnd()
|
| 4501 |
mandeep.dh |
2216 |
result = scan_result()
|
| 3383 |
chandransh |
2217 |
try:
|
| 7410 |
amar.kumar |
2218 |
self._handler.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId, args.transferLotId)
|
| 3383 |
chandransh |
2219 |
except WarehouseServiceException, wex:
|
|
|
2220 |
result.wex = wex
|
| 4501 |
mandeep.dh |
2221 |
oprot.writeMessageBegin("scan", TMessageType.REPLY, seqid)
|
| 3383 |
chandransh |
2222 |
result.write(oprot)
|
|
|
2223 |
oprot.writeMessageEnd()
|
|
|
2224 |
oprot.trans.flush()
|
|
|
2225 |
|
| 4501 |
mandeep.dh |
2226 |
def process_scanSerializedItemForOrder(self, seqid, iprot, oprot):
|
|
|
2227 |
args = scanSerializedItemForOrder_args()
|
| 2821 |
chandransh |
2228 |
args.read(iprot)
|
|
|
2229 |
iprot.readMessageEnd()
|
| 4501 |
mandeep.dh |
2230 |
result = scanSerializedItemForOrder_result()
|
| 2821 |
chandransh |
2231 |
try:
|
| 5110 |
mandeep.dh |
2232 |
result.success = self._handler.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId)
|
| 2821 |
chandransh |
2233 |
except WarehouseServiceException, wex:
|
|
|
2234 |
result.wex = wex
|
| 4501 |
mandeep.dh |
2235 |
oprot.writeMessageBegin("scanSerializedItemForOrder", TMessageType.REPLY, seqid)
|
| 2821 |
chandransh |
2236 |
result.write(oprot)
|
|
|
2237 |
oprot.writeMessageEnd()
|
|
|
2238 |
oprot.trans.flush()
|
|
|
2239 |
|
| 4501 |
mandeep.dh |
2240 |
def process_scanForOrder(self, seqid, iprot, oprot):
|
|
|
2241 |
args = scanForOrder_args()
|
| 2821 |
chandransh |
2242 |
args.read(iprot)
|
|
|
2243 |
iprot.readMessageEnd()
|
| 4501 |
mandeep.dh |
2244 |
result = scanForOrder_result()
|
| 2821 |
chandransh |
2245 |
try:
|
| 5361 |
mandeep.dh |
2246 |
result.success = self._handler.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId)
|
| 2821 |
chandransh |
2247 |
except WarehouseServiceException, wex:
|
|
|
2248 |
result.wex = wex
|
| 4501 |
mandeep.dh |
2249 |
oprot.writeMessageBegin("scanForOrder", TMessageType.REPLY, seqid)
|
| 2821 |
chandransh |
2250 |
result.write(oprot)
|
|
|
2251 |
oprot.writeMessageEnd()
|
|
|
2252 |
oprot.trans.flush()
|
|
|
2253 |
|
| 4501 |
mandeep.dh |
2254 |
def process_createItemNumberMapping(self, seqid, iprot, oprot):
|
|
|
2255 |
args = createItemNumberMapping_args()
|
|
|
2256 |
args.read(iprot)
|
|
|
2257 |
iprot.readMessageEnd()
|
|
|
2258 |
result = createItemNumberMapping_result()
|
|
|
2259 |
self._handler.createItemNumberMapping(args.itemNumber, args.itemId)
|
|
|
2260 |
oprot.writeMessageBegin("createItemNumberMapping", TMessageType.REPLY, seqid)
|
|
|
2261 |
result.write(oprot)
|
|
|
2262 |
oprot.writeMessageEnd()
|
|
|
2263 |
oprot.trans.flush()
|
| 2821 |
chandransh |
2264 |
|
| 4620 |
amit.gupta |
2265 |
def process_getItemNumbers(self, seqid, iprot, oprot):
|
|
|
2266 |
args = getItemNumbers_args()
|
|
|
2267 |
args.read(iprot)
|
|
|
2268 |
iprot.readMessageEnd()
|
|
|
2269 |
result = getItemNumbers_result()
|
|
|
2270 |
result.success = self._handler.getItemNumbers(args.itemId)
|
|
|
2271 |
oprot.writeMessageBegin("getItemNumbers", TMessageType.REPLY, seqid)
|
|
|
2272 |
result.write(oprot)
|
|
|
2273 |
oprot.writeMessageEnd()
|
|
|
2274 |
oprot.trans.flush()
|
| 4501 |
mandeep.dh |
2275 |
|
| 5110 |
mandeep.dh |
2276 |
def process_getItemIds(self, seqid, iprot, oprot):
|
|
|
2277 |
args = getItemIds_args()
|
|
|
2278 |
args.read(iprot)
|
|
|
2279 |
iprot.readMessageEnd()
|
|
|
2280 |
result = getItemIds_result()
|
|
|
2281 |
result.success = self._handler.getItemIds(args.itemNumber)
|
|
|
2282 |
oprot.writeMessageBegin("getItemIds", TMessageType.REPLY, seqid)
|
|
|
2283 |
result.write(oprot)
|
|
|
2284 |
oprot.writeMessageEnd()
|
|
|
2285 |
oprot.trans.flush()
|
| 4620 |
amit.gupta |
2286 |
|
| 5185 |
mandeep.dh |
2287 |
def process_getInventoryItemsFromLastScanType(self, seqid, iprot, oprot):
|
|
|
2288 |
args = getInventoryItemsFromLastScanType_args()
|
|
|
2289 |
args.read(iprot)
|
|
|
2290 |
iprot.readMessageEnd()
|
|
|
2291 |
result = getInventoryItemsFromLastScanType_result()
|
|
|
2292 |
try:
|
|
|
2293 |
result.success = self._handler.getInventoryItemsFromLastScanType(args.lastScanType)
|
|
|
2294 |
except WarehouseServiceException, wex:
|
|
|
2295 |
result.wex = wex
|
|
|
2296 |
oprot.writeMessageBegin("getInventoryItemsFromLastScanType", TMessageType.REPLY, seqid)
|
|
|
2297 |
result.write(oprot)
|
|
|
2298 |
oprot.writeMessageEnd()
|
|
|
2299 |
oprot.trans.flush()
|
| 5110 |
mandeep.dh |
2300 |
|
| 5185 |
mandeep.dh |
2301 |
def process_getInventoryItemFromId(self, seqid, iprot, oprot):
|
|
|
2302 |
args = getInventoryItemFromId_args()
|
|
|
2303 |
args.read(iprot)
|
|
|
2304 |
iprot.readMessageEnd()
|
|
|
2305 |
result = getInventoryItemFromId_result()
|
|
|
2306 |
try:
|
|
|
2307 |
result.success = self._handler.getInventoryItemFromId(args.inventoryItemId)
|
|
|
2308 |
except WarehouseServiceException, wex:
|
|
|
2309 |
result.wex = wex
|
|
|
2310 |
oprot.writeMessageBegin("getInventoryItemFromId", TMessageType.REPLY, seqid)
|
|
|
2311 |
result.write(oprot)
|
|
|
2312 |
oprot.writeMessageEnd()
|
|
|
2313 |
oprot.trans.flush()
|
|
|
2314 |
|
| 5372 |
mandeep.dh |
2315 |
def process_getPurchaseScans(self, seqid, iprot, oprot):
|
|
|
2316 |
args = getPurchaseScans_args()
|
|
|
2317 |
args.read(iprot)
|
|
|
2318 |
iprot.readMessageEnd()
|
|
|
2319 |
result = getPurchaseScans_result()
|
|
|
2320 |
result.success = self._handler.getPurchaseScans(args.startDate, args.endDate)
|
|
|
2321 |
oprot.writeMessageBegin("getPurchaseScans", TMessageType.REPLY, seqid)
|
|
|
2322 |
result.write(oprot)
|
|
|
2323 |
oprot.writeMessageEnd()
|
|
|
2324 |
oprot.trans.flush()
|
| 5185 |
mandeep.dh |
2325 |
|
| 7216 |
amar.kumar |
2326 |
def process_getPurchaseScansByGrnDate(self, seqid, iprot, oprot):
|
|
|
2327 |
args = getPurchaseScansByGrnDate_args()
|
|
|
2328 |
args.read(iprot)
|
|
|
2329 |
iprot.readMessageEnd()
|
|
|
2330 |
result = getPurchaseScansByGrnDate_result()
|
|
|
2331 |
result.success = self._handler.getPurchaseScansByGrnDate(args.startDate, args.endDate)
|
|
|
2332 |
oprot.writeMessageBegin("getPurchaseScansByGrnDate", TMessageType.REPLY, seqid)
|
|
|
2333 |
result.write(oprot)
|
|
|
2334 |
oprot.writeMessageEnd()
|
|
|
2335 |
oprot.trans.flush()
|
|
|
2336 |
|
| 5496 |
mandeep.dh |
2337 |
def process_fetchScansPerInvoiceNumber(self, seqid, iprot, oprot):
|
|
|
2338 |
args = fetchScansPerInvoiceNumber_args()
|
|
|
2339 |
args.read(iprot)
|
|
|
2340 |
iprot.readMessageEnd()
|
|
|
2341 |
result = fetchScansPerInvoiceNumber_result()
|
|
|
2342 |
result.success = self._handler.fetchScansPerInvoiceNumber(args.date)
|
|
|
2343 |
oprot.writeMessageBegin("fetchScansPerInvoiceNumber", TMessageType.REPLY, seqid)
|
|
|
2344 |
result.write(oprot)
|
|
|
2345 |
oprot.writeMessageEnd()
|
|
|
2346 |
oprot.trans.flush()
|
| 5372 |
mandeep.dh |
2347 |
|
| 5620 |
mandeep.dh |
2348 |
def process_getInventoryItemFromOrder(self, seqid, iprot, oprot):
|
|
|
2349 |
args = getInventoryItemFromOrder_args()
|
|
|
2350 |
args.read(iprot)
|
|
|
2351 |
iprot.readMessageEnd()
|
|
|
2352 |
result = getInventoryItemFromOrder_result()
|
|
|
2353 |
try:
|
|
|
2354 |
result.success = self._handler.getInventoryItemFromOrder(args.orderId)
|
|
|
2355 |
except WarehouseServiceException, we:
|
|
|
2356 |
result.we = we
|
|
|
2357 |
oprot.writeMessageBegin("getInventoryItemFromOrder", TMessageType.REPLY, seqid)
|
|
|
2358 |
result.write(oprot)
|
|
|
2359 |
oprot.writeMessageEnd()
|
|
|
2360 |
oprot.trans.flush()
|
| 5496 |
mandeep.dh |
2361 |
|
| 5711 |
mandeep.dh |
2362 |
def process_getInventoryAge(self, seqid, iprot, oprot):
|
|
|
2363 |
args = getInventoryAge_args()
|
|
|
2364 |
args.read(iprot)
|
|
|
2365 |
iprot.readMessageEnd()
|
|
|
2366 |
result = getInventoryAge_result()
|
|
|
2367 |
result.success = self._handler.getInventoryAge()
|
|
|
2368 |
oprot.writeMessageBegin("getInventoryAge", TMessageType.REPLY, seqid)
|
|
|
2369 |
result.write(oprot)
|
|
|
2370 |
oprot.writeMessageEnd()
|
|
|
2371 |
oprot.trans.flush()
|
| 5620 |
mandeep.dh |
2372 |
|
| 6361 |
rajveer |
2373 |
def process_getInventoryScansForItem(self, seqid, iprot, oprot):
|
|
|
2374 |
args = getInventoryScansForItem_args()
|
|
|
2375 |
args.read(iprot)
|
|
|
2376 |
iprot.readMessageEnd()
|
|
|
2377 |
result = getInventoryScansForItem_result()
|
|
|
2378 |
result.success = self._handler.getInventoryScansForItem(args.itemId, args.fromDate, args.toDate)
|
|
|
2379 |
oprot.writeMessageBegin("getInventoryScansForItem", TMessageType.REPLY, seqid)
|
|
|
2380 |
result.write(oprot)
|
|
|
2381 |
oprot.writeMessageEnd()
|
|
|
2382 |
oprot.trans.flush()
|
| 5711 |
mandeep.dh |
2383 |
|
| 6361 |
rajveer |
2384 |
def process_getScanRecordsForSerialNumber(self, seqid, iprot, oprot):
|
|
|
2385 |
args = getScanRecordsForSerialNumber_args()
|
|
|
2386 |
args.read(iprot)
|
|
|
2387 |
iprot.readMessageEnd()
|
|
|
2388 |
result = getScanRecordsForSerialNumber_result()
|
|
|
2389 |
result.success = self._handler.getScanRecordsForSerialNumber(args.serialNumber)
|
|
|
2390 |
oprot.writeMessageBegin("getScanRecordsForSerialNumber", TMessageType.REPLY, seqid)
|
|
|
2391 |
result.write(oprot)
|
|
|
2392 |
oprot.writeMessageEnd()
|
|
|
2393 |
oprot.trans.flush()
|
|
|
2394 |
|
| 6467 |
amar.kumar |
2395 |
def process_scanForPurchaseReturn(self, seqid, iprot, oprot):
|
|
|
2396 |
args = scanForPurchaseReturn_args()
|
|
|
2397 |
args.read(iprot)
|
|
|
2398 |
iprot.readMessageEnd()
|
|
|
2399 |
result = scanForPurchaseReturn_result()
|
|
|
2400 |
try:
|
| 7718 |
amar.kumar |
2401 |
self._handler.scanForPurchaseReturn(args.saleReturnItems, args.vendorId, args.billingWarehouseId)
|
| 6467 |
amar.kumar |
2402 |
except WarehouseServiceException, ex:
|
|
|
2403 |
result.ex = ex
|
|
|
2404 |
oprot.writeMessageBegin("scanForPurchaseReturn", TMessageType.REPLY, seqid)
|
|
|
2405 |
result.write(oprot)
|
|
|
2406 |
oprot.writeMessageEnd()
|
|
|
2407 |
oprot.trans.flush()
|
| 6361 |
rajveer |
2408 |
|
| 6630 |
amar.kumar |
2409 |
def process_scanForLostItem(self, seqid, iprot, oprot):
|
|
|
2410 |
args = scanForLostItem_args()
|
|
|
2411 |
args.read(iprot)
|
|
|
2412 |
iprot.readMessageEnd()
|
|
|
2413 |
result = scanForLostItem_result()
|
|
|
2414 |
try:
|
| 7718 |
amar.kumar |
2415 |
self._handler.scanForLostItem(args.lostItems, args.vendorId, args.billingWarehouseId)
|
| 6630 |
amar.kumar |
2416 |
except WarehouseServiceException, ex:
|
|
|
2417 |
result.ex = ex
|
|
|
2418 |
oprot.writeMessageBegin("scanForLostItem", TMessageType.REPLY, seqid)
|
|
|
2419 |
result.write(oprot)
|
|
|
2420 |
oprot.writeMessageEnd()
|
|
|
2421 |
oprot.trans.flush()
|
| 6467 |
amar.kumar |
2422 |
|
| 6630 |
amar.kumar |
2423 |
def process_getCurrentSerializedInventoryByScans(self, seqid, iprot, oprot):
|
|
|
2424 |
args = getCurrentSerializedInventoryByScans_args()
|
|
|
2425 |
args.read(iprot)
|
|
|
2426 |
iprot.readMessageEnd()
|
|
|
2427 |
result = getCurrentSerializedInventoryByScans_result()
|
| 7715 |
vikram.rag |
2428 |
result.success = self._handler.getCurrentSerializedInventoryByScans(args.physicalWarehouseId)
|
| 6630 |
amar.kumar |
2429 |
oprot.writeMessageBegin("getCurrentSerializedInventoryByScans", TMessageType.REPLY, seqid)
|
|
|
2430 |
result.write(oprot)
|
|
|
2431 |
oprot.writeMessageEnd()
|
|
|
2432 |
oprot.trans.flush()
|
|
|
2433 |
|
|
|
2434 |
def process_getCurrentNonSerializedInventoryByScans(self, seqid, iprot, oprot):
|
|
|
2435 |
args = getCurrentNonSerializedInventoryByScans_args()
|
|
|
2436 |
args.read(iprot)
|
|
|
2437 |
iprot.readMessageEnd()
|
|
|
2438 |
result = getCurrentNonSerializedInventoryByScans_result()
|
| 7715 |
vikram.rag |
2439 |
result.success = self._handler.getCurrentNonSerializedInventoryByScans(args.physicalWarehouseId)
|
| 6630 |
amar.kumar |
2440 |
oprot.writeMessageBegin("getCurrentNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
|
|
|
2441 |
result.write(oprot)
|
|
|
2442 |
oprot.writeMessageEnd()
|
|
|
2443 |
oprot.trans.flush()
|
|
|
2444 |
|
| 6762 |
amar.kumar |
2445 |
def process_getHistoricSerializedInventoryByScans(self, seqid, iprot, oprot):
|
|
|
2446 |
args = getHistoricSerializedInventoryByScans_args()
|
|
|
2447 |
args.read(iprot)
|
|
|
2448 |
iprot.readMessageEnd()
|
|
|
2449 |
result = getHistoricSerializedInventoryByScans_result()
|
|
|
2450 |
result.success = self._handler.getHistoricSerializedInventoryByScans(args.date)
|
|
|
2451 |
oprot.writeMessageBegin("getHistoricSerializedInventoryByScans", TMessageType.REPLY, seqid)
|
|
|
2452 |
result.write(oprot)
|
|
|
2453 |
oprot.writeMessageEnd()
|
|
|
2454 |
oprot.trans.flush()
|
| 6630 |
amar.kumar |
2455 |
|
| 6762 |
amar.kumar |
2456 |
def process_getHistoricNonSerializedInventoryByScans(self, seqid, iprot, oprot):
|
|
|
2457 |
args = getHistoricNonSerializedInventoryByScans_args()
|
|
|
2458 |
args.read(iprot)
|
|
|
2459 |
iprot.readMessageEnd()
|
|
|
2460 |
result = getHistoricNonSerializedInventoryByScans_result()
|
|
|
2461 |
result.success = self._handler.getHistoricNonSerializedInventoryByScans(args.date)
|
|
|
2462 |
oprot.writeMessageBegin("getHistoricNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
|
|
|
2463 |
result.write(oprot)
|
|
|
2464 |
oprot.writeMessageEnd()
|
|
|
2465 |
oprot.trans.flush()
|
|
|
2466 |
|
|
|
2467 |
def process_scanForOursExternalSale(self, seqid, iprot, oprot):
|
|
|
2468 |
args = scanForOursExternalSale_args()
|
|
|
2469 |
args.read(iprot)
|
|
|
2470 |
iprot.readMessageEnd()
|
|
|
2471 |
result = scanForOursExternalSale_result()
|
|
|
2472 |
try:
|
| 7672 |
rajveer |
2473 |
result.success = self._handler.scanForOursExternalSale(args.itemId, args.serialNumber, args.itemNumber, args.invoiceNumber, args.warehouseId, args.unitPrice, args.nlc, args.orderId)
|
| 6762 |
amar.kumar |
2474 |
except WarehouseServiceException, ex:
|
|
|
2475 |
result.ex = ex
|
|
|
2476 |
oprot.writeMessageBegin("scanForOursExternalSale", TMessageType.REPLY, seqid)
|
|
|
2477 |
result.write(oprot)
|
|
|
2478 |
oprot.writeMessageEnd()
|
|
|
2479 |
oprot.trans.flush()
|
|
|
2480 |
|
|
|
2481 |
def process_scanForOursExternalSaleReturn(self, seqid, iprot, oprot):
|
|
|
2482 |
args = scanForOursExternalSaleReturn_args()
|
|
|
2483 |
args.read(iprot)
|
|
|
2484 |
iprot.readMessageEnd()
|
|
|
2485 |
result = scanForOursExternalSaleReturn_result()
|
| 7410 |
amar.kumar |
2486 |
try:
|
|
|
2487 |
self._handler.scanForOursExternalSaleReturn(args.orderId, args.unitPrice)
|
|
|
2488 |
except WarehouseServiceException, ex:
|
|
|
2489 |
result.ex = ex
|
| 6762 |
amar.kumar |
2490 |
oprot.writeMessageBegin("scanForOursExternalSaleReturn", TMessageType.REPLY, seqid)
|
|
|
2491 |
result.write(oprot)
|
|
|
2492 |
oprot.writeMessageEnd()
|
|
|
2493 |
oprot.trans.flush()
|
|
|
2494 |
|
| 6880 |
amar.kumar |
2495 |
def process_getMovementNonSerializedInventoryByScans(self, seqid, iprot, oprot):
|
|
|
2496 |
args = getMovementNonSerializedInventoryByScans_args()
|
|
|
2497 |
args.read(iprot)
|
|
|
2498 |
iprot.readMessageEnd()
|
|
|
2499 |
result = getMovementNonSerializedInventoryByScans_result()
|
|
|
2500 |
result.success = self._handler.getMovementNonSerializedInventoryByScans(args.startDate, args.endDate)
|
|
|
2501 |
oprot.writeMessageBegin("getMovementNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
|
|
|
2502 |
result.write(oprot)
|
|
|
2503 |
oprot.writeMessageEnd()
|
|
|
2504 |
oprot.trans.flush()
|
| 6762 |
amar.kumar |
2505 |
|
| 6880 |
amar.kumar |
2506 |
def process_getMovementSerializedInventoryByScans(self, seqid, iprot, oprot):
|
|
|
2507 |
args = getMovementSerializedInventoryByScans_args()
|
|
|
2508 |
args.read(iprot)
|
|
|
2509 |
iprot.readMessageEnd()
|
|
|
2510 |
result = getMovementSerializedInventoryByScans_result()
|
|
|
2511 |
result.success = self._handler.getMovementSerializedInventoryByScans(args.startDate, args.endDate)
|
|
|
2512 |
oprot.writeMessageBegin("getMovementSerializedInventoryByScans", TMessageType.REPLY, seqid)
|
|
|
2513 |
result.write(oprot)
|
|
|
2514 |
oprot.writeMessageEnd()
|
|
|
2515 |
oprot.trans.flush()
|
|
|
2516 |
|
| 7216 |
amar.kumar |
2517 |
def process_getCompleteMovementSerializedInventoryByScans(self, seqid, iprot, oprot):
|
|
|
2518 |
args = getCompleteMovementSerializedInventoryByScans_args()
|
|
|
2519 |
args.read(iprot)
|
|
|
2520 |
iprot.readMessageEnd()
|
|
|
2521 |
result = getCompleteMovementSerializedInventoryByScans_result()
|
|
|
2522 |
result.success = self._handler.getCompleteMovementSerializedInventoryByScans(args.startDate, args.endDate)
|
|
|
2523 |
oprot.writeMessageBegin("getCompleteMovementSerializedInventoryByScans", TMessageType.REPLY, seqid)
|
|
|
2524 |
result.write(oprot)
|
|
|
2525 |
oprot.writeMessageEnd()
|
|
|
2526 |
oprot.trans.flush()
|
|
|
2527 |
|
|
|
2528 |
def process_getCompleteMovementNonSerializedInventoryByScans(self, seqid, iprot, oprot):
|
|
|
2529 |
args = getCompleteMovementNonSerializedInventoryByScans_args()
|
|
|
2530 |
args.read(iprot)
|
|
|
2531 |
iprot.readMessageEnd()
|
|
|
2532 |
result = getCompleteMovementNonSerializedInventoryByScans_result()
|
|
|
2533 |
result.success = self._handler.getCompleteMovementNonSerializedInventoryByScans(args.startDate, args.endDate)
|
|
|
2534 |
oprot.writeMessageBegin("getCompleteMovementNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
|
|
|
2535 |
result.write(oprot)
|
|
|
2536 |
oprot.writeMessageEnd()
|
|
|
2537 |
oprot.trans.flush()
|
|
|
2538 |
|
| 7190 |
amar.kumar |
2539 |
def process_scanfreebie(self, seqid, iprot, oprot):
|
|
|
2540 |
args = scanfreebie_args()
|
|
|
2541 |
args.read(iprot)
|
|
|
2542 |
iprot.readMessageEnd()
|
|
|
2543 |
result = scanfreebie_result()
|
|
|
2544 |
try:
|
|
|
2545 |
result.success = self._handler.scanfreebie(args.orderId, args.freebieItemId, args.freebieWarehouseId, args.scanType)
|
|
|
2546 |
except WarehouseServiceException, wex:
|
|
|
2547 |
result.wex = wex
|
|
|
2548 |
oprot.writeMessageBegin("scanfreebie", TMessageType.REPLY, seqid)
|
|
|
2549 |
result.write(oprot)
|
|
|
2550 |
oprot.writeMessageEnd()
|
|
|
2551 |
oprot.trans.flush()
|
| 6880 |
amar.kumar |
2552 |
|
| 7199 |
amar.kumar |
2553 |
def process_reshipfreebie(self, seqid, iprot, oprot):
|
|
|
2554 |
args = reshipfreebie_args()
|
|
|
2555 |
args.read(iprot)
|
|
|
2556 |
iprot.readMessageEnd()
|
|
|
2557 |
result = reshipfreebie_result()
|
|
|
2558 |
try:
|
|
|
2559 |
self._handler.reshipfreebie(args.oldOrderId, args.newOrderId, args.freebieItemId, args.scanType)
|
|
|
2560 |
except WarehouseServiceException, wex:
|
|
|
2561 |
result.wex = wex
|
|
|
2562 |
oprot.writeMessageBegin("reshipfreebie", TMessageType.REPLY, seqid)
|
|
|
2563 |
result.write(oprot)
|
|
|
2564 |
oprot.writeMessageEnd()
|
|
|
2565 |
oprot.trans.flush()
|
| 7190 |
amar.kumar |
2566 |
|
| 7410 |
amar.kumar |
2567 |
def process_isItemTransferAllowed(self, seqid, iprot, oprot):
|
|
|
2568 |
args = isItemTransferAllowed_args()
|
|
|
2569 |
args.read(iprot)
|
|
|
2570 |
iprot.readMessageEnd()
|
|
|
2571 |
result = isItemTransferAllowed_result()
|
|
|
2572 |
result.success = self._handler.isItemTransferAllowed(args.warehouseId, args.transferWarehouseId)
|
|
|
2573 |
oprot.writeMessageBegin("isItemTransferAllowed", TMessageType.REPLY, seqid)
|
|
|
2574 |
result.write(oprot)
|
|
|
2575 |
oprot.writeMessageEnd()
|
|
|
2576 |
oprot.trans.flush()
|
| 7199 |
amar.kumar |
2577 |
|
| 7410 |
amar.kumar |
2578 |
def process_createTransferLot(self, seqid, iprot, oprot):
|
|
|
2579 |
args = createTransferLot_args()
|
|
|
2580 |
args.read(iprot)
|
|
|
2581 |
iprot.readMessageEnd()
|
|
|
2582 |
result = createTransferLot_result()
|
|
|
2583 |
try:
|
|
|
2584 |
result.success = self._handler.createTransferLot(args.originWarehouseId, args.destWarehouseId)
|
|
|
2585 |
except WarehouseServiceException, wex:
|
|
|
2586 |
result.wex = wex
|
|
|
2587 |
oprot.writeMessageBegin("createTransferLot", TMessageType.REPLY, seqid)
|
|
|
2588 |
result.write(oprot)
|
|
|
2589 |
oprot.writeMessageEnd()
|
|
|
2590 |
oprot.trans.flush()
|
|
|
2591 |
|
|
|
2592 |
def process_getTransferLot(self, seqid, iprot, oprot):
|
|
|
2593 |
args = getTransferLot_args()
|
|
|
2594 |
args.read(iprot)
|
|
|
2595 |
iprot.readMessageEnd()
|
|
|
2596 |
result = getTransferLot_result()
|
|
|
2597 |
try:
|
|
|
2598 |
result.success = self._handler.getTransferLot(args.transferLotId)
|
|
|
2599 |
except WarehouseServiceException, wex:
|
|
|
2600 |
result.wex = wex
|
|
|
2601 |
oprot.writeMessageBegin("getTransferLot", TMessageType.REPLY, seqid)
|
|
|
2602 |
result.write(oprot)
|
|
|
2603 |
oprot.writeMessageEnd()
|
|
|
2604 |
oprot.trans.flush()
|
|
|
2605 |
|
|
|
2606 |
def process_markTransferLotAsReceived(self, seqid, iprot, oprot):
|
|
|
2607 |
args = markTransferLotAsReceived_args()
|
|
|
2608 |
args.read(iprot)
|
|
|
2609 |
iprot.readMessageEnd()
|
|
|
2610 |
result = markTransferLotAsReceived_result()
|
|
|
2611 |
try:
|
|
|
2612 |
self._handler.markTransferLotAsReceived(args.id, args.remoteTransferRefNumber)
|
|
|
2613 |
except WarehouseServiceException, wex:
|
|
|
2614 |
result.wex = wex
|
|
|
2615 |
oprot.writeMessageBegin("markTransferLotAsReceived", TMessageType.REPLY, seqid)
|
|
|
2616 |
result.write(oprot)
|
|
|
2617 |
oprot.writeMessageEnd()
|
|
|
2618 |
oprot.trans.flush()
|
|
|
2619 |
|
|
|
2620 |
def process_getTransferLotsByDate(self, seqid, iprot, oprot):
|
|
|
2621 |
args = getTransferLotsByDate_args()
|
|
|
2622 |
args.read(iprot)
|
|
|
2623 |
iprot.readMessageEnd()
|
|
|
2624 |
result = getTransferLotsByDate_result()
|
|
|
2625 |
try:
|
|
|
2626 |
result.success = self._handler.getTransferLotsByDate(args.fromDate, args.toDate)
|
|
|
2627 |
except WarehouseServiceException, wex:
|
|
|
2628 |
result.wex = wex
|
|
|
2629 |
oprot.writeMessageBegin("getTransferLotsByDate", TMessageType.REPLY, seqid)
|
|
|
2630 |
result.write(oprot)
|
|
|
2631 |
oprot.writeMessageEnd()
|
|
|
2632 |
oprot.trans.flush()
|
|
|
2633 |
|
|
|
2634 |
def process_getAllowedDestinationWarehousesForTransfer(self, seqid, iprot, oprot):
|
|
|
2635 |
args = getAllowedDestinationWarehousesForTransfer_args()
|
|
|
2636 |
args.read(iprot)
|
|
|
2637 |
iprot.readMessageEnd()
|
|
|
2638 |
result = getAllowedDestinationWarehousesForTransfer_result()
|
|
|
2639 |
result.success = self._handler.getAllowedDestinationWarehousesForTransfer(args.warehouseId)
|
|
|
2640 |
oprot.writeMessageBegin("getAllowedDestinationWarehousesForTransfer", TMessageType.REPLY, seqid)
|
|
|
2641 |
result.write(oprot)
|
|
|
2642 |
oprot.writeMessageEnd()
|
|
|
2643 |
oprot.trans.flush()
|
|
|
2644 |
|
|
|
2645 |
def process_getItemsInTransferLot(self, seqid, iprot, oprot):
|
|
|
2646 |
args = getItemsInTransferLot_args()
|
|
|
2647 |
args.read(iprot)
|
|
|
2648 |
iprot.readMessageEnd()
|
|
|
2649 |
result = getItemsInTransferLot_result()
|
|
|
2650 |
result.success = self._handler.getItemsInTransferLot(args.transferLotId)
|
|
|
2651 |
oprot.writeMessageBegin("getItemsInTransferLot", TMessageType.REPLY, seqid)
|
|
|
2652 |
result.write(oprot)
|
|
|
2653 |
oprot.writeMessageEnd()
|
|
|
2654 |
oprot.trans.flush()
|
|
|
2655 |
|
|
|
2656 |
def process_markItemsAsReceivedForTransferLot(self, seqid, iprot, oprot):
|
|
|
2657 |
args = markItemsAsReceivedForTransferLot_args()
|
|
|
2658 |
args.read(iprot)
|
|
|
2659 |
iprot.readMessageEnd()
|
|
|
2660 |
result = markItemsAsReceivedForTransferLot_result()
|
|
|
2661 |
try:
|
|
|
2662 |
self._handler.markItemsAsReceivedForTransferLot(args.id)
|
|
|
2663 |
except WarehouseServiceException, wex:
|
|
|
2664 |
result.wex = wex
|
|
|
2665 |
oprot.writeMessageBegin("markItemsAsReceivedForTransferLot", TMessageType.REPLY, seqid)
|
|
|
2666 |
result.write(oprot)
|
|
|
2667 |
oprot.writeMessageEnd()
|
|
|
2668 |
oprot.trans.flush()
|
|
|
2669 |
|
|
|
2670 |
def process_updateTransferLotAfterItemReceive(self, seqid, iprot, oprot):
|
|
|
2671 |
args = updateTransferLotAfterItemReceive_args()
|
|
|
2672 |
args.read(iprot)
|
|
|
2673 |
iprot.readMessageEnd()
|
|
|
2674 |
result = updateTransferLotAfterItemReceive_result()
|
|
|
2675 |
try:
|
|
|
2676 |
result.success = self._handler.updateTransferLotAfterItemReceive(args.id)
|
|
|
2677 |
except WarehouseServiceException, wex:
|
|
|
2678 |
result.wex = wex
|
|
|
2679 |
oprot.writeMessageBegin("updateTransferLotAfterItemReceive", TMessageType.REPLY, seqid)
|
|
|
2680 |
result.write(oprot)
|
|
|
2681 |
oprot.writeMessageEnd()
|
|
|
2682 |
oprot.trans.flush()
|
|
|
2683 |
|
| 7459 |
amar.kumar |
2684 |
def process_scanForTransferOut(self, seqid, iprot, oprot):
|
|
|
2685 |
args = scanForTransferOut_args()
|
| 7410 |
amar.kumar |
2686 |
args.read(iprot)
|
|
|
2687 |
iprot.readMessageEnd()
|
| 7459 |
amar.kumar |
2688 |
result = scanForTransferOut_result()
|
| 7410 |
amar.kumar |
2689 |
try:
|
| 7459 |
amar.kumar |
2690 |
self._handler.scanForTransferOut(args.inventoryItems, args.type, args.transferLotId)
|
| 7410 |
amar.kumar |
2691 |
except WarehouseServiceException, wex:
|
|
|
2692 |
result.wex = wex
|
| 7459 |
amar.kumar |
2693 |
oprot.writeMessageBegin("scanForTransferOut", TMessageType.REPLY, seqid)
|
| 7410 |
amar.kumar |
2694 |
result.write(oprot)
|
|
|
2695 |
oprot.writeMessageEnd()
|
|
|
2696 |
oprot.trans.flush()
|
|
|
2697 |
|
| 7459 |
amar.kumar |
2698 |
def process_scanForTransferIn(self, seqid, iprot, oprot):
|
|
|
2699 |
args = scanForTransferIn_args()
|
|
|
2700 |
args.read(iprot)
|
|
|
2701 |
iprot.readMessageEnd()
|
|
|
2702 |
result = scanForTransferIn_result()
|
|
|
2703 |
try:
|
|
|
2704 |
self._handler.scanForTransferIn(args.inventoryItems, args.type, args.transferLotId)
|
|
|
2705 |
except WarehouseServiceException, wex:
|
|
|
2706 |
result.wex = wex
|
|
|
2707 |
oprot.writeMessageBegin("scanForTransferIn", TMessageType.REPLY, seqid)
|
|
|
2708 |
result.write(oprot)
|
|
|
2709 |
oprot.writeMessageEnd()
|
|
|
2710 |
oprot.trans.flush()
|
| 7410 |
amar.kumar |
2711 |
|
| 7459 |
amar.kumar |
2712 |
def process_scanForOursThirdPartyReceive(self, seqid, iprot, oprot):
|
|
|
2713 |
args = scanForOursThirdPartyReceive_args()
|
|
|
2714 |
args.read(iprot)
|
|
|
2715 |
iprot.readMessageEnd()
|
|
|
2716 |
result = scanForOursThirdPartyReceive_result()
|
|
|
2717 |
try:
|
|
|
2718 |
self._handler.scanForOursThirdPartyReceive(args.inventoryItems, args.id)
|
|
|
2719 |
except WarehouseServiceException, wex:
|
|
|
2720 |
result.wex = wex
|
|
|
2721 |
oprot.writeMessageBegin("scanForOursThirdPartyReceive", TMessageType.REPLY, seqid)
|
|
|
2722 |
result.write(oprot)
|
|
|
2723 |
oprot.writeMessageEnd()
|
|
|
2724 |
oprot.trans.flush()
|
|
|
2725 |
|
| 7574 |
amar.kumar |
2726 |
def process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, seqid, iprot, oprot):
|
|
|
2727 |
args = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args()
|
|
|
2728 |
args.read(iprot)
|
|
|
2729 |
iprot.readMessageEnd()
|
|
|
2730 |
result = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result()
|
|
|
2731 |
try:
|
|
|
2732 |
result.success = self._handler.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(args.itemId, args.physicalWarehouseId)
|
|
|
2733 |
except WarehouseServiceException, wex:
|
|
|
2734 |
result.wex = wex
|
|
|
2735 |
oprot.writeMessageBegin("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", TMessageType.REPLY, seqid)
|
|
|
2736 |
result.write(oprot)
|
|
|
2737 |
oprot.writeMessageEnd()
|
|
|
2738 |
oprot.trans.flush()
|
| 7459 |
amar.kumar |
2739 |
|
| 7672 |
rajveer |
2740 |
def process_getInTransitInventory(self, seqid, iprot, oprot):
|
|
|
2741 |
args = getInTransitInventory_args()
|
|
|
2742 |
args.read(iprot)
|
|
|
2743 |
iprot.readMessageEnd()
|
|
|
2744 |
result = getInTransitInventory_result()
|
|
|
2745 |
result.success = self._handler.getInTransitInventory(args.originWarehouseId)
|
|
|
2746 |
oprot.writeMessageBegin("getInTransitInventory", TMessageType.REPLY, seqid)
|
|
|
2747 |
result.write(oprot)
|
|
|
2748 |
oprot.writeMessageEnd()
|
|
|
2749 |
oprot.trans.flush()
|
| 7574 |
amar.kumar |
2750 |
|
| 7968 |
amar.kumar |
2751 |
def process_isItemAvailableForSale(self, seqid, iprot, oprot):
|
|
|
2752 |
args = isItemAvailableForSale_args()
|
|
|
2753 |
args.read(iprot)
|
|
|
2754 |
iprot.readMessageEnd()
|
|
|
2755 |
result = isItemAvailableForSale_result()
|
|
|
2756 |
try:
|
|
|
2757 |
result.success = self._handler.isItemAvailableForSale(args.itemId, args.serialNumber, args.warehouseId)
|
|
|
2758 |
except WarehouseServiceException, wex:
|
|
|
2759 |
result.wex = wex
|
|
|
2760 |
oprot.writeMessageBegin("isItemAvailableForSale", TMessageType.REPLY, seqid)
|
|
|
2761 |
result.write(oprot)
|
|
|
2762 |
oprot.writeMessageEnd()
|
|
|
2763 |
oprot.trans.flush()
|
| 7672 |
rajveer |
2764 |
|
| 7968 |
amar.kumar |
2765 |
def process_getHistoricBadInventoryByScans(self, seqid, iprot, oprot):
|
|
|
2766 |
args = getHistoricBadInventoryByScans_args()
|
|
|
2767 |
args.read(iprot)
|
|
|
2768 |
iprot.readMessageEnd()
|
|
|
2769 |
result = getHistoricBadInventoryByScans_result()
|
|
|
2770 |
try:
|
|
|
2771 |
result.success = self._handler.getHistoricBadInventoryByScans(args.date)
|
|
|
2772 |
except WarehouseServiceException, wex:
|
|
|
2773 |
result.wex = wex
|
|
|
2774 |
oprot.writeMessageBegin("getHistoricBadInventoryByScans", TMessageType.REPLY, seqid)
|
|
|
2775 |
result.write(oprot)
|
|
|
2776 |
oprot.writeMessageEnd()
|
|
|
2777 |
oprot.trans.flush()
|
|
|
2778 |
|
| 8565 |
amar.kumar |
2779 |
def process_scanForBadSale(self, seqid, iprot, oprot):
|
|
|
2780 |
args = scanForBadSale_args()
|
|
|
2781 |
args.read(iprot)
|
|
|
2782 |
iprot.readMessageEnd()
|
|
|
2783 |
result = scanForBadSale_result()
|
| 8717 |
amar.kumar |
2784 |
try:
|
|
|
2785 |
result.success = self._handler.scanForBadSale(args.serialNumber, args.itemNumber, args.itemId, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId)
|
|
|
2786 |
except WarehouseServiceException, wex:
|
|
|
2787 |
result.wex = wex
|
| 8565 |
amar.kumar |
2788 |
oprot.writeMessageBegin("scanForBadSale", TMessageType.REPLY, seqid)
|
|
|
2789 |
result.write(oprot)
|
|
|
2790 |
oprot.writeMessageEnd()
|
|
|
2791 |
oprot.trans.flush()
|
| 7968 |
amar.kumar |
2792 |
|
| 8565 |
amar.kumar |
2793 |
|
| 2821 |
chandransh |
2794 |
# HELPER FUNCTIONS AND STRUCTURES
|
|
|
2795 |
|
| 4501 |
mandeep.dh |
2796 |
class getInventoryItem_args:
|
| 2832 |
chandransh |
2797 |
"""
|
|
|
2798 |
Attributes:
|
| 4501 |
mandeep.dh |
2799 |
- serialNumber
|
| 2832 |
chandransh |
2800 |
"""
|
|
|
2801 |
|
|
|
2802 |
thrift_spec = (
|
|
|
2803 |
None, # 0
|
| 4501 |
mandeep.dh |
2804 |
(1, TType.STRING, 'serialNumber', None, None, ), # 1
|
| 2832 |
chandransh |
2805 |
)
|
|
|
2806 |
|
| 4501 |
mandeep.dh |
2807 |
def __init__(self, serialNumber=None,):
|
|
|
2808 |
self.serialNumber = serialNumber
|
| 2832 |
chandransh |
2809 |
|
|
|
2810 |
def read(self, iprot):
|
|
|
2811 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2812 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2813 |
return
|
|
|
2814 |
iprot.readStructBegin()
|
|
|
2815 |
while True:
|
|
|
2816 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2817 |
if ftype == TType.STOP:
|
|
|
2818 |
break
|
|
|
2819 |
if fid == 1:
|
| 4501 |
mandeep.dh |
2820 |
if ftype == TType.STRING:
|
|
|
2821 |
self.serialNumber = iprot.readString();
|
| 2832 |
chandransh |
2822 |
else:
|
|
|
2823 |
iprot.skip(ftype)
|
|
|
2824 |
else:
|
|
|
2825 |
iprot.skip(ftype)
|
|
|
2826 |
iprot.readFieldEnd()
|
|
|
2827 |
iprot.readStructEnd()
|
|
|
2828 |
|
|
|
2829 |
def write(self, oprot):
|
|
|
2830 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2831 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2832 |
return
|
| 4501 |
mandeep.dh |
2833 |
oprot.writeStructBegin('getInventoryItem_args')
|
|
|
2834 |
if self.serialNumber is not None:
|
|
|
2835 |
oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
|
|
|
2836 |
oprot.writeString(self.serialNumber)
|
| 2832 |
chandransh |
2837 |
oprot.writeFieldEnd()
|
|
|
2838 |
oprot.writeFieldStop()
|
|
|
2839 |
oprot.writeStructEnd()
|
|
|
2840 |
|
| 3431 |
rajveer |
2841 |
def validate(self):
|
|
|
2842 |
return
|
|
|
2843 |
|
|
|
2844 |
|
| 2832 |
chandransh |
2845 |
def __repr__(self):
|
|
|
2846 |
L = ['%s=%r' % (key, value)
|
|
|
2847 |
for key, value in self.__dict__.iteritems()]
|
|
|
2848 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2849 |
|
|
|
2850 |
def __eq__(self, other):
|
|
|
2851 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2852 |
|
|
|
2853 |
def __ne__(self, other):
|
|
|
2854 |
return not (self == other)
|
|
|
2855 |
|
| 4501 |
mandeep.dh |
2856 |
class getInventoryItem_result:
|
| 2832 |
chandransh |
2857 |
"""
|
|
|
2858 |
Attributes:
|
|
|
2859 |
- success
|
| 4541 |
mandeep.dh |
2860 |
- wex
|
| 2832 |
chandransh |
2861 |
"""
|
|
|
2862 |
|
|
|
2863 |
thrift_spec = (
|
| 4501 |
mandeep.dh |
2864 |
(0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
|
| 4541 |
mandeep.dh |
2865 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
| 2832 |
chandransh |
2866 |
)
|
|
|
2867 |
|
| 4541 |
mandeep.dh |
2868 |
def __init__(self, success=None, wex=None,):
|
| 2832 |
chandransh |
2869 |
self.success = success
|
| 4541 |
mandeep.dh |
2870 |
self.wex = wex
|
| 2832 |
chandransh |
2871 |
|
|
|
2872 |
def read(self, iprot):
|
|
|
2873 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2874 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2875 |
return
|
|
|
2876 |
iprot.readStructBegin()
|
|
|
2877 |
while True:
|
|
|
2878 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2879 |
if ftype == TType.STOP:
|
|
|
2880 |
break
|
|
|
2881 |
if fid == 0:
|
|
|
2882 |
if ftype == TType.STRUCT:
|
| 4501 |
mandeep.dh |
2883 |
self.success = InventoryItem()
|
| 2832 |
chandransh |
2884 |
self.success.read(iprot)
|
|
|
2885 |
else:
|
|
|
2886 |
iprot.skip(ftype)
|
| 4541 |
mandeep.dh |
2887 |
elif fid == 1:
|
|
|
2888 |
if ftype == TType.STRUCT:
|
|
|
2889 |
self.wex = WarehouseServiceException()
|
|
|
2890 |
self.wex.read(iprot)
|
|
|
2891 |
else:
|
|
|
2892 |
iprot.skip(ftype)
|
| 2832 |
chandransh |
2893 |
else:
|
|
|
2894 |
iprot.skip(ftype)
|
|
|
2895 |
iprot.readFieldEnd()
|
|
|
2896 |
iprot.readStructEnd()
|
|
|
2897 |
|
|
|
2898 |
def write(self, oprot):
|
|
|
2899 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2900 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2901 |
return
|
| 4501 |
mandeep.dh |
2902 |
oprot.writeStructBegin('getInventoryItem_result')
|
| 3431 |
rajveer |
2903 |
if self.success is not None:
|
| 2832 |
chandransh |
2904 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
2905 |
self.success.write(oprot)
|
|
|
2906 |
oprot.writeFieldEnd()
|
| 4541 |
mandeep.dh |
2907 |
if self.wex is not None:
|
|
|
2908 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
2909 |
self.wex.write(oprot)
|
|
|
2910 |
oprot.writeFieldEnd()
|
| 2832 |
chandransh |
2911 |
oprot.writeFieldStop()
|
|
|
2912 |
oprot.writeStructEnd()
|
|
|
2913 |
|
| 3431 |
rajveer |
2914 |
def validate(self):
|
|
|
2915 |
return
|
|
|
2916 |
|
|
|
2917 |
|
| 2832 |
chandransh |
2918 |
def __repr__(self):
|
|
|
2919 |
L = ['%s=%r' % (key, value)
|
|
|
2920 |
for key, value in self.__dict__.iteritems()]
|
|
|
2921 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2922 |
|
|
|
2923 |
def __eq__(self, other):
|
|
|
2924 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2925 |
|
|
|
2926 |
def __ne__(self, other):
|
|
|
2927 |
return not (self == other)
|
|
|
2928 |
|
| 5361 |
mandeep.dh |
2929 |
class getNonSeralizedInventoryItem_args:
|
| 2821 |
chandransh |
2930 |
"""
|
|
|
2931 |
Attributes:
|
| 5530 |
mandeep.dh |
2932 |
- itemNumber
|
| 4501 |
mandeep.dh |
2933 |
- itemId
|
| 5530 |
mandeep.dh |
2934 |
- fulfilmentWarehouseId
|
| 8565 |
amar.kumar |
2935 |
- billingWarehouseId
|
| 2821 |
chandransh |
2936 |
"""
|
|
|
2937 |
|
|
|
2938 |
thrift_spec = (
|
|
|
2939 |
None, # 0
|
| 5530 |
mandeep.dh |
2940 |
(1, TType.STRING, 'itemNumber', None, None, ), # 1
|
|
|
2941 |
(2, TType.I64, 'itemId', None, None, ), # 2
|
|
|
2942 |
(3, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 3
|
| 8565 |
amar.kumar |
2943 |
(4, TType.I64, 'billingWarehouseId', None, None, ), # 4
|
| 2821 |
chandransh |
2944 |
)
|
|
|
2945 |
|
| 8565 |
amar.kumar |
2946 |
def __init__(self, itemNumber=None, itemId=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):
|
| 5530 |
mandeep.dh |
2947 |
self.itemNumber = itemNumber
|
| 4501 |
mandeep.dh |
2948 |
self.itemId = itemId
|
| 5530 |
mandeep.dh |
2949 |
self.fulfilmentWarehouseId = fulfilmentWarehouseId
|
| 8565 |
amar.kumar |
2950 |
self.billingWarehouseId = billingWarehouseId
|
| 2821 |
chandransh |
2951 |
|
|
|
2952 |
def read(self, iprot):
|
|
|
2953 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2954 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2955 |
return
|
|
|
2956 |
iprot.readStructBegin()
|
|
|
2957 |
while True:
|
|
|
2958 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2959 |
if ftype == TType.STOP:
|
|
|
2960 |
break
|
|
|
2961 |
if fid == 1:
|
| 5530 |
mandeep.dh |
2962 |
if ftype == TType.STRING:
|
|
|
2963 |
self.itemNumber = iprot.readString();
|
|
|
2964 |
else:
|
|
|
2965 |
iprot.skip(ftype)
|
|
|
2966 |
elif fid == 2:
|
| 2821 |
chandransh |
2967 |
if ftype == TType.I64:
|
| 4501 |
mandeep.dh |
2968 |
self.itemId = iprot.readI64();
|
| 2821 |
chandransh |
2969 |
else:
|
|
|
2970 |
iprot.skip(ftype)
|
| 5530 |
mandeep.dh |
2971 |
elif fid == 3:
|
| 4501 |
mandeep.dh |
2972 |
if ftype == TType.I64:
|
| 5530 |
mandeep.dh |
2973 |
self.fulfilmentWarehouseId = iprot.readI64();
|
| 2821 |
chandransh |
2974 |
else:
|
|
|
2975 |
iprot.skip(ftype)
|
| 8565 |
amar.kumar |
2976 |
elif fid == 4:
|
|
|
2977 |
if ftype == TType.I64:
|
|
|
2978 |
self.billingWarehouseId = iprot.readI64();
|
|
|
2979 |
else:
|
|
|
2980 |
iprot.skip(ftype)
|
| 2821 |
chandransh |
2981 |
else:
|
|
|
2982 |
iprot.skip(ftype)
|
|
|
2983 |
iprot.readFieldEnd()
|
|
|
2984 |
iprot.readStructEnd()
|
|
|
2985 |
|
|
|
2986 |
def write(self, oprot):
|
|
|
2987 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2988 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2989 |
return
|
| 5361 |
mandeep.dh |
2990 |
oprot.writeStructBegin('getNonSeralizedInventoryItem_args')
|
| 5530 |
mandeep.dh |
2991 |
if self.itemNumber is not None:
|
|
|
2992 |
oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
|
|
|
2993 |
oprot.writeString(self.itemNumber)
|
|
|
2994 |
oprot.writeFieldEnd()
|
| 4501 |
mandeep.dh |
2995 |
if self.itemId is not None:
|
| 5530 |
mandeep.dh |
2996 |
oprot.writeFieldBegin('itemId', TType.I64, 2)
|
| 4501 |
mandeep.dh |
2997 |
oprot.writeI64(self.itemId)
|
| 2821 |
chandransh |
2998 |
oprot.writeFieldEnd()
|
| 5530 |
mandeep.dh |
2999 |
if self.fulfilmentWarehouseId is not None:
|
|
|
3000 |
oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 3)
|
|
|
3001 |
oprot.writeI64(self.fulfilmentWarehouseId)
|
| 2821 |
chandransh |
3002 |
oprot.writeFieldEnd()
|
| 8565 |
amar.kumar |
3003 |
if self.billingWarehouseId is not None:
|
|
|
3004 |
oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
|
|
|
3005 |
oprot.writeI64(self.billingWarehouseId)
|
|
|
3006 |
oprot.writeFieldEnd()
|
| 2821 |
chandransh |
3007 |
oprot.writeFieldStop()
|
|
|
3008 |
oprot.writeStructEnd()
|
|
|
3009 |
|
| 3431 |
rajveer |
3010 |
def validate(self):
|
|
|
3011 |
return
|
|
|
3012 |
|
|
|
3013 |
|
| 2821 |
chandransh |
3014 |
def __repr__(self):
|
|
|
3015 |
L = ['%s=%r' % (key, value)
|
|
|
3016 |
for key, value in self.__dict__.iteritems()]
|
|
|
3017 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3018 |
|
|
|
3019 |
def __eq__(self, other):
|
|
|
3020 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3021 |
|
|
|
3022 |
def __ne__(self, other):
|
|
|
3023 |
return not (self == other)
|
|
|
3024 |
|
| 5361 |
mandeep.dh |
3025 |
class getNonSeralizedInventoryItem_result:
|
| 2821 |
chandransh |
3026 |
"""
|
|
|
3027 |
Attributes:
|
|
|
3028 |
- success
|
| 5361 |
mandeep.dh |
3029 |
- wex
|
| 2821 |
chandransh |
3030 |
"""
|
|
|
3031 |
|
|
|
3032 |
thrift_spec = (
|
| 5361 |
mandeep.dh |
3033 |
(0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
|
|
|
3034 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
| 2821 |
chandransh |
3035 |
)
|
|
|
3036 |
|
| 5361 |
mandeep.dh |
3037 |
def __init__(self, success=None, wex=None,):
|
| 2821 |
chandransh |
3038 |
self.success = success
|
| 5361 |
mandeep.dh |
3039 |
self.wex = wex
|
| 2821 |
chandransh |
3040 |
|
|
|
3041 |
def read(self, iprot):
|
|
|
3042 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3043 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3044 |
return
|
|
|
3045 |
iprot.readStructBegin()
|
|
|
3046 |
while True:
|
|
|
3047 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3048 |
if ftype == TType.STOP:
|
|
|
3049 |
break
|
|
|
3050 |
if fid == 0:
|
| 5361 |
mandeep.dh |
3051 |
if ftype == TType.STRUCT:
|
|
|
3052 |
self.success = InventoryItem()
|
|
|
3053 |
self.success.read(iprot)
|
| 2821 |
chandransh |
3054 |
else:
|
|
|
3055 |
iprot.skip(ftype)
|
| 5361 |
mandeep.dh |
3056 |
elif fid == 1:
|
|
|
3057 |
if ftype == TType.STRUCT:
|
|
|
3058 |
self.wex = WarehouseServiceException()
|
|
|
3059 |
self.wex.read(iprot)
|
| 2821 |
chandransh |
3060 |
else:
|
|
|
3061 |
iprot.skip(ftype)
|
|
|
3062 |
else:
|
|
|
3063 |
iprot.skip(ftype)
|
|
|
3064 |
iprot.readFieldEnd()
|
|
|
3065 |
iprot.readStructEnd()
|
|
|
3066 |
|
|
|
3067 |
def write(self, oprot):
|
|
|
3068 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3069 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3070 |
return
|
| 5361 |
mandeep.dh |
3071 |
oprot.writeStructBegin('getNonSeralizedInventoryItem_result')
|
| 3431 |
rajveer |
3072 |
if self.success is not None:
|
| 5361 |
mandeep.dh |
3073 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
3074 |
self.success.write(oprot)
|
| 2821 |
chandransh |
3075 |
oprot.writeFieldEnd()
|
| 5361 |
mandeep.dh |
3076 |
if self.wex is not None:
|
|
|
3077 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
3078 |
self.wex.write(oprot)
|
| 3383 |
chandransh |
3079 |
oprot.writeFieldEnd()
|
|
|
3080 |
oprot.writeFieldStop()
|
|
|
3081 |
oprot.writeStructEnd()
|
|
|
3082 |
|
| 3431 |
rajveer |
3083 |
def validate(self):
|
|
|
3084 |
return
|
|
|
3085 |
|
|
|
3086 |
|
| 3383 |
chandransh |
3087 |
def __repr__(self):
|
|
|
3088 |
L = ['%s=%r' % (key, value)
|
|
|
3089 |
for key, value in self.__dict__.iteritems()]
|
|
|
3090 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3091 |
|
|
|
3092 |
def __eq__(self, other):
|
|
|
3093 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3094 |
|
|
|
3095 |
def __ne__(self, other):
|
|
|
3096 |
return not (self == other)
|
|
|
3097 |
|
| 4501 |
mandeep.dh |
3098 |
class scan_args:
|
| 2821 |
chandransh |
3099 |
"""
|
|
|
3100 |
Attributes:
|
| 5361 |
mandeep.dh |
3101 |
- inventoryItem
|
| 2821 |
chandransh |
3102 |
- type
|
| 4501 |
mandeep.dh |
3103 |
- quantity
|
| 5361 |
mandeep.dh |
3104 |
- billingWarehouseId
|
| 7410 |
amar.kumar |
3105 |
- transferLotId
|
| 2821 |
chandransh |
3106 |
"""
|
|
|
3107 |
|
|
|
3108 |
thrift_spec = (
|
|
|
3109 |
None, # 0
|
| 5361 |
mandeep.dh |
3110 |
(1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
|
| 4501 |
mandeep.dh |
3111 |
(2, TType.I32, 'type', None, None, ), # 2
|
|
|
3112 |
(3, TType.I64, 'quantity', None, None, ), # 3
|
| 5361 |
mandeep.dh |
3113 |
(4, TType.I64, 'billingWarehouseId', None, None, ), # 4
|
| 7410 |
amar.kumar |
3114 |
(5, TType.I64, 'transferLotId', None, None, ), # 5
|
| 2821 |
chandransh |
3115 |
)
|
|
|
3116 |
|
| 7410 |
amar.kumar |
3117 |
def __init__(self, inventoryItem=None, type=None, quantity=None, billingWarehouseId=None, transferLotId=None,):
|
| 5361 |
mandeep.dh |
3118 |
self.inventoryItem = inventoryItem
|
| 2821 |
chandransh |
3119 |
self.type = type
|
| 4501 |
mandeep.dh |
3120 |
self.quantity = quantity
|
| 5361 |
mandeep.dh |
3121 |
self.billingWarehouseId = billingWarehouseId
|
| 7410 |
amar.kumar |
3122 |
self.transferLotId = transferLotId
|
| 2821 |
chandransh |
3123 |
|
|
|
3124 |
def read(self, iprot):
|
|
|
3125 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3126 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3127 |
return
|
|
|
3128 |
iprot.readStructBegin()
|
|
|
3129 |
while True:
|
|
|
3130 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3131 |
if ftype == TType.STOP:
|
|
|
3132 |
break
|
|
|
3133 |
if fid == 1:
|
| 5361 |
mandeep.dh |
3134 |
if ftype == TType.STRUCT:
|
|
|
3135 |
self.inventoryItem = InventoryItem()
|
|
|
3136 |
self.inventoryItem.read(iprot)
|
| 2821 |
chandransh |
3137 |
else:
|
|
|
3138 |
iprot.skip(ftype)
|
|
|
3139 |
elif fid == 2:
|
| 4501 |
mandeep.dh |
3140 |
if ftype == TType.I32:
|
|
|
3141 |
self.type = iprot.readI32();
|
| 2821 |
chandransh |
3142 |
else:
|
|
|
3143 |
iprot.skip(ftype)
|
| 3383 |
chandransh |
3144 |
elif fid == 3:
|
| 4501 |
mandeep.dh |
3145 |
if ftype == TType.I64:
|
|
|
3146 |
self.quantity = iprot.readI64();
|
| 2821 |
chandransh |
3147 |
else:
|
|
|
3148 |
iprot.skip(ftype)
|
| 3383 |
chandransh |
3149 |
elif fid == 4:
|
| 4501 |
mandeep.dh |
3150 |
if ftype == TType.I64:
|
| 5361 |
mandeep.dh |
3151 |
self.billingWarehouseId = iprot.readI64();
|
| 2821 |
chandransh |
3152 |
else:
|
|
|
3153 |
iprot.skip(ftype)
|
| 7410 |
amar.kumar |
3154 |
elif fid == 5:
|
|
|
3155 |
if ftype == TType.I64:
|
|
|
3156 |
self.transferLotId = iprot.readI64();
|
|
|
3157 |
else:
|
|
|
3158 |
iprot.skip(ftype)
|
| 2821 |
chandransh |
3159 |
else:
|
|
|
3160 |
iprot.skip(ftype)
|
|
|
3161 |
iprot.readFieldEnd()
|
|
|
3162 |
iprot.readStructEnd()
|
|
|
3163 |
|
|
|
3164 |
def write(self, oprot):
|
|
|
3165 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3166 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3167 |
return
|
| 4501 |
mandeep.dh |
3168 |
oprot.writeStructBegin('scan_args')
|
| 5361 |
mandeep.dh |
3169 |
if self.inventoryItem is not None:
|
|
|
3170 |
oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
|
|
|
3171 |
self.inventoryItem.write(oprot)
|
| 2821 |
chandransh |
3172 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3173 |
if self.type is not None:
|
| 4501 |
mandeep.dh |
3174 |
oprot.writeFieldBegin('type', TType.I32, 2)
|
| 2821 |
chandransh |
3175 |
oprot.writeI32(self.type)
|
|
|
3176 |
oprot.writeFieldEnd()
|
| 4501 |
mandeep.dh |
3177 |
if self.quantity is not None:
|
|
|
3178 |
oprot.writeFieldBegin('quantity', TType.I64, 3)
|
|
|
3179 |
oprot.writeI64(self.quantity)
|
|
|
3180 |
oprot.writeFieldEnd()
|
| 5361 |
mandeep.dh |
3181 |
if self.billingWarehouseId is not None:
|
|
|
3182 |
oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
|
|
|
3183 |
oprot.writeI64(self.billingWarehouseId)
|
| 4501 |
mandeep.dh |
3184 |
oprot.writeFieldEnd()
|
| 7410 |
amar.kumar |
3185 |
if self.transferLotId is not None:
|
|
|
3186 |
oprot.writeFieldBegin('transferLotId', TType.I64, 5)
|
|
|
3187 |
oprot.writeI64(self.transferLotId)
|
|
|
3188 |
oprot.writeFieldEnd()
|
| 2821 |
chandransh |
3189 |
oprot.writeFieldStop()
|
|
|
3190 |
oprot.writeStructEnd()
|
|
|
3191 |
|
| 3431 |
rajveer |
3192 |
def validate(self):
|
|
|
3193 |
return
|
|
|
3194 |
|
|
|
3195 |
|
| 2821 |
chandransh |
3196 |
def __repr__(self):
|
|
|
3197 |
L = ['%s=%r' % (key, value)
|
|
|
3198 |
for key, value in self.__dict__.iteritems()]
|
|
|
3199 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3200 |
|
|
|
3201 |
def __eq__(self, other):
|
|
|
3202 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3203 |
|
|
|
3204 |
def __ne__(self, other):
|
|
|
3205 |
return not (self == other)
|
|
|
3206 |
|
| 4501 |
mandeep.dh |
3207 |
class scan_result:
|
| 2821 |
chandransh |
3208 |
"""
|
|
|
3209 |
Attributes:
|
|
|
3210 |
- wex
|
|
|
3211 |
"""
|
|
|
3212 |
|
|
|
3213 |
thrift_spec = (
|
|
|
3214 |
None, # 0
|
|
|
3215 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
3216 |
)
|
|
|
3217 |
|
|
|
3218 |
def __init__(self, wex=None,):
|
|
|
3219 |
self.wex = wex
|
|
|
3220 |
|
|
|
3221 |
def read(self, iprot):
|
|
|
3222 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3223 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3224 |
return
|
|
|
3225 |
iprot.readStructBegin()
|
|
|
3226 |
while True:
|
|
|
3227 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3228 |
if ftype == TType.STOP:
|
|
|
3229 |
break
|
|
|
3230 |
if fid == 1:
|
|
|
3231 |
if ftype == TType.STRUCT:
|
|
|
3232 |
self.wex = WarehouseServiceException()
|
|
|
3233 |
self.wex.read(iprot)
|
|
|
3234 |
else:
|
|
|
3235 |
iprot.skip(ftype)
|
|
|
3236 |
else:
|
|
|
3237 |
iprot.skip(ftype)
|
|
|
3238 |
iprot.readFieldEnd()
|
|
|
3239 |
iprot.readStructEnd()
|
|
|
3240 |
|
|
|
3241 |
def write(self, oprot):
|
|
|
3242 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3243 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3244 |
return
|
| 4501 |
mandeep.dh |
3245 |
oprot.writeStructBegin('scan_result')
|
| 3431 |
rajveer |
3246 |
if self.wex is not None:
|
| 2821 |
chandransh |
3247 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
3248 |
self.wex.write(oprot)
|
|
|
3249 |
oprot.writeFieldEnd()
|
|
|
3250 |
oprot.writeFieldStop()
|
|
|
3251 |
oprot.writeStructEnd()
|
|
|
3252 |
|
| 3431 |
rajveer |
3253 |
def validate(self):
|
|
|
3254 |
return
|
|
|
3255 |
|
|
|
3256 |
|
| 2821 |
chandransh |
3257 |
def __repr__(self):
|
|
|
3258 |
L = ['%s=%r' % (key, value)
|
|
|
3259 |
for key, value in self.__dict__.iteritems()]
|
|
|
3260 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3261 |
|
|
|
3262 |
def __eq__(self, other):
|
|
|
3263 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3264 |
|
|
|
3265 |
def __ne__(self, other):
|
|
|
3266 |
return not (self == other)
|
|
|
3267 |
|
| 4501 |
mandeep.dh |
3268 |
class scanSerializedItemForOrder_args:
|
| 2821 |
chandransh |
3269 |
"""
|
|
|
3270 |
Attributes:
|
| 4555 |
mandeep.dh |
3271 |
- serialNumber
|
| 2821 |
chandransh |
3272 |
- type
|
| 4501 |
mandeep.dh |
3273 |
- orderId
|
| 5110 |
mandeep.dh |
3274 |
- fulfilmentWarehouseId
|
|
|
3275 |
- quantity
|
|
|
3276 |
- billingWarehouseId
|
| 2821 |
chandransh |
3277 |
"""
|
|
|
3278 |
|
|
|
3279 |
thrift_spec = (
|
|
|
3280 |
None, # 0
|
| 4555 |
mandeep.dh |
3281 |
(1, TType.STRING, 'serialNumber', None, None, ), # 1
|
| 4501 |
mandeep.dh |
3282 |
(2, TType.I32, 'type', None, None, ), # 2
|
|
|
3283 |
(3, TType.I64, 'orderId', None, None, ), # 3
|
| 5110 |
mandeep.dh |
3284 |
(4, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 4
|
|
|
3285 |
(5, TType.DOUBLE, 'quantity', None, None, ), # 5
|
|
|
3286 |
(6, TType.I64, 'billingWarehouseId', None, None, ), # 6
|
| 2821 |
chandransh |
3287 |
)
|
|
|
3288 |
|
| 5110 |
mandeep.dh |
3289 |
def __init__(self, serialNumber=None, type=None, orderId=None, fulfilmentWarehouseId=None, quantity=None, billingWarehouseId=None,):
|
| 4555 |
mandeep.dh |
3290 |
self.serialNumber = serialNumber
|
| 2821 |
chandransh |
3291 |
self.type = type
|
| 4501 |
mandeep.dh |
3292 |
self.orderId = orderId
|
| 5110 |
mandeep.dh |
3293 |
self.fulfilmentWarehouseId = fulfilmentWarehouseId
|
|
|
3294 |
self.quantity = quantity
|
|
|
3295 |
self.billingWarehouseId = billingWarehouseId
|
| 2821 |
chandransh |
3296 |
|
|
|
3297 |
def read(self, iprot):
|
|
|
3298 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3299 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3300 |
return
|
|
|
3301 |
iprot.readStructBegin()
|
|
|
3302 |
while True:
|
|
|
3303 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3304 |
if ftype == TType.STOP:
|
|
|
3305 |
break
|
|
|
3306 |
if fid == 1:
|
| 4555 |
mandeep.dh |
3307 |
if ftype == TType.STRING:
|
|
|
3308 |
self.serialNumber = iprot.readString();
|
| 2821 |
chandransh |
3309 |
else:
|
|
|
3310 |
iprot.skip(ftype)
|
|
|
3311 |
elif fid == 2:
|
| 4501 |
mandeep.dh |
3312 |
if ftype == TType.I32:
|
|
|
3313 |
self.type = iprot.readI32();
|
| 2821 |
chandransh |
3314 |
else:
|
|
|
3315 |
iprot.skip(ftype)
|
|
|
3316 |
elif fid == 3:
|
| 4501 |
mandeep.dh |
3317 |
if ftype == TType.I64:
|
|
|
3318 |
self.orderId = iprot.readI64();
|
|
|
3319 |
else:
|
|
|
3320 |
iprot.skip(ftype)
|
|
|
3321 |
elif fid == 4:
|
|
|
3322 |
if ftype == TType.I64:
|
| 5110 |
mandeep.dh |
3323 |
self.fulfilmentWarehouseId = iprot.readI64();
|
| 4501 |
mandeep.dh |
3324 |
else:
|
|
|
3325 |
iprot.skip(ftype)
|
| 5110 |
mandeep.dh |
3326 |
elif fid == 5:
|
|
|
3327 |
if ftype == TType.DOUBLE:
|
|
|
3328 |
self.quantity = iprot.readDouble();
|
|
|
3329 |
else:
|
|
|
3330 |
iprot.skip(ftype)
|
|
|
3331 |
elif fid == 6:
|
|
|
3332 |
if ftype == TType.I64:
|
|
|
3333 |
self.billingWarehouseId = iprot.readI64();
|
|
|
3334 |
else:
|
|
|
3335 |
iprot.skip(ftype)
|
| 4501 |
mandeep.dh |
3336 |
else:
|
|
|
3337 |
iprot.skip(ftype)
|
|
|
3338 |
iprot.readFieldEnd()
|
|
|
3339 |
iprot.readStructEnd()
|
|
|
3340 |
|
|
|
3341 |
def write(self, oprot):
|
|
|
3342 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3343 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3344 |
return
|
|
|
3345 |
oprot.writeStructBegin('scanSerializedItemForOrder_args')
|
| 4555 |
mandeep.dh |
3346 |
if self.serialNumber is not None:
|
|
|
3347 |
oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
|
|
|
3348 |
oprot.writeString(self.serialNumber)
|
| 4501 |
mandeep.dh |
3349 |
oprot.writeFieldEnd()
|
|
|
3350 |
if self.type is not None:
|
|
|
3351 |
oprot.writeFieldBegin('type', TType.I32, 2)
|
|
|
3352 |
oprot.writeI32(self.type)
|
|
|
3353 |
oprot.writeFieldEnd()
|
|
|
3354 |
if self.orderId is not None:
|
|
|
3355 |
oprot.writeFieldBegin('orderId', TType.I64, 3)
|
|
|
3356 |
oprot.writeI64(self.orderId)
|
|
|
3357 |
oprot.writeFieldEnd()
|
| 5110 |
mandeep.dh |
3358 |
if self.fulfilmentWarehouseId is not None:
|
|
|
3359 |
oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 4)
|
|
|
3360 |
oprot.writeI64(self.fulfilmentWarehouseId)
|
| 4501 |
mandeep.dh |
3361 |
oprot.writeFieldEnd()
|
| 5110 |
mandeep.dh |
3362 |
if self.quantity is not None:
|
|
|
3363 |
oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
|
|
|
3364 |
oprot.writeDouble(self.quantity)
|
|
|
3365 |
oprot.writeFieldEnd()
|
|
|
3366 |
if self.billingWarehouseId is not None:
|
|
|
3367 |
oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)
|
|
|
3368 |
oprot.writeI64(self.billingWarehouseId)
|
|
|
3369 |
oprot.writeFieldEnd()
|
| 4501 |
mandeep.dh |
3370 |
oprot.writeFieldStop()
|
|
|
3371 |
oprot.writeStructEnd()
|
|
|
3372 |
|
|
|
3373 |
def validate(self):
|
|
|
3374 |
return
|
|
|
3375 |
|
|
|
3376 |
|
|
|
3377 |
def __repr__(self):
|
|
|
3378 |
L = ['%s=%r' % (key, value)
|
|
|
3379 |
for key, value in self.__dict__.iteritems()]
|
|
|
3380 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3381 |
|
|
|
3382 |
def __eq__(self, other):
|
|
|
3383 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3384 |
|
|
|
3385 |
def __ne__(self, other):
|
|
|
3386 |
return not (self == other)
|
|
|
3387 |
|
|
|
3388 |
class scanSerializedItemForOrder_result:
|
|
|
3389 |
"""
|
|
|
3390 |
Attributes:
|
|
|
3391 |
- success
|
|
|
3392 |
- wex
|
|
|
3393 |
"""
|
|
|
3394 |
|
|
|
3395 |
thrift_spec = (
|
| 4555 |
mandeep.dh |
3396 |
(0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
|
| 4501 |
mandeep.dh |
3397 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
3398 |
)
|
|
|
3399 |
|
|
|
3400 |
def __init__(self, success=None, wex=None,):
|
|
|
3401 |
self.success = success
|
|
|
3402 |
self.wex = wex
|
|
|
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 == 0:
|
| 4555 |
mandeep.dh |
3414 |
if ftype == TType.STRUCT:
|
|
|
3415 |
self.success = InventoryItem()
|
|
|
3416 |
self.success.read(iprot)
|
| 4501 |
mandeep.dh |
3417 |
else:
|
|
|
3418 |
iprot.skip(ftype)
|
|
|
3419 |
elif fid == 1:
|
|
|
3420 |
if ftype == TType.STRUCT:
|
|
|
3421 |
self.wex = WarehouseServiceException()
|
|
|
3422 |
self.wex.read(iprot)
|
|
|
3423 |
else:
|
|
|
3424 |
iprot.skip(ftype)
|
|
|
3425 |
else:
|
|
|
3426 |
iprot.skip(ftype)
|
|
|
3427 |
iprot.readFieldEnd()
|
|
|
3428 |
iprot.readStructEnd()
|
|
|
3429 |
|
|
|
3430 |
def write(self, oprot):
|
|
|
3431 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3432 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3433 |
return
|
|
|
3434 |
oprot.writeStructBegin('scanSerializedItemForOrder_result')
|
|
|
3435 |
if self.success is not None:
|
| 4555 |
mandeep.dh |
3436 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
3437 |
self.success.write(oprot)
|
| 4501 |
mandeep.dh |
3438 |
oprot.writeFieldEnd()
|
|
|
3439 |
if self.wex is not None:
|
|
|
3440 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
3441 |
self.wex.write(oprot)
|
|
|
3442 |
oprot.writeFieldEnd()
|
|
|
3443 |
oprot.writeFieldStop()
|
|
|
3444 |
oprot.writeStructEnd()
|
|
|
3445 |
|
|
|
3446 |
def validate(self):
|
|
|
3447 |
return
|
|
|
3448 |
|
|
|
3449 |
|
|
|
3450 |
def __repr__(self):
|
|
|
3451 |
L = ['%s=%r' % (key, value)
|
|
|
3452 |
for key, value in self.__dict__.iteritems()]
|
|
|
3453 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3454 |
|
|
|
3455 |
def __eq__(self, other):
|
|
|
3456 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3457 |
|
|
|
3458 |
def __ne__(self, other):
|
|
|
3459 |
return not (self == other)
|
|
|
3460 |
|
|
|
3461 |
class scanForOrder_args:
|
|
|
3462 |
"""
|
|
|
3463 |
Attributes:
|
| 5361 |
mandeep.dh |
3464 |
- inventoryItem
|
| 4501 |
mandeep.dh |
3465 |
- type
|
|
|
3466 |
- quantity
|
|
|
3467 |
- orderId
|
| 5110 |
mandeep.dh |
3468 |
- fulfilmentWarehouseId
|
| 5361 |
mandeep.dh |
3469 |
- billingWarehouseId
|
| 4501 |
mandeep.dh |
3470 |
"""
|
|
|
3471 |
|
|
|
3472 |
thrift_spec = (
|
|
|
3473 |
None, # 0
|
| 5361 |
mandeep.dh |
3474 |
(1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
|
| 4501 |
mandeep.dh |
3475 |
(2, TType.I32, 'type', None, None, ), # 2
|
|
|
3476 |
(3, TType.I64, 'quantity', None, None, ), # 3
|
|
|
3477 |
(4, TType.I64, 'orderId', None, None, ), # 4
|
| 5110 |
mandeep.dh |
3478 |
(5, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 5
|
| 5361 |
mandeep.dh |
3479 |
(6, TType.I64, 'billingWarehouseId', None, None, ), # 6
|
| 4501 |
mandeep.dh |
3480 |
)
|
|
|
3481 |
|
| 5361 |
mandeep.dh |
3482 |
def __init__(self, inventoryItem=None, type=None, quantity=None, orderId=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):
|
|
|
3483 |
self.inventoryItem = inventoryItem
|
| 4501 |
mandeep.dh |
3484 |
self.type = type
|
|
|
3485 |
self.quantity = quantity
|
|
|
3486 |
self.orderId = orderId
|
| 5110 |
mandeep.dh |
3487 |
self.fulfilmentWarehouseId = fulfilmentWarehouseId
|
| 5361 |
mandeep.dh |
3488 |
self.billingWarehouseId = billingWarehouseId
|
| 4501 |
mandeep.dh |
3489 |
|
|
|
3490 |
def read(self, iprot):
|
|
|
3491 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3492 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3493 |
return
|
|
|
3494 |
iprot.readStructBegin()
|
|
|
3495 |
while True:
|
|
|
3496 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3497 |
if ftype == TType.STOP:
|
|
|
3498 |
break
|
|
|
3499 |
if fid == 1:
|
| 5361 |
mandeep.dh |
3500 |
if ftype == TType.STRUCT:
|
|
|
3501 |
self.inventoryItem = InventoryItem()
|
|
|
3502 |
self.inventoryItem.read(iprot)
|
| 4501 |
mandeep.dh |
3503 |
else:
|
|
|
3504 |
iprot.skip(ftype)
|
|
|
3505 |
elif fid == 2:
|
| 2821 |
chandransh |
3506 |
if ftype == TType.I32:
|
|
|
3507 |
self.type = iprot.readI32();
|
|
|
3508 |
else:
|
|
|
3509 |
iprot.skip(ftype)
|
| 4501 |
mandeep.dh |
3510 |
elif fid == 3:
|
|
|
3511 |
if ftype == TType.I64:
|
|
|
3512 |
self.quantity = iprot.readI64();
|
|
|
3513 |
else:
|
|
|
3514 |
iprot.skip(ftype)
|
|
|
3515 |
elif fid == 4:
|
|
|
3516 |
if ftype == TType.I64:
|
|
|
3517 |
self.orderId = iprot.readI64();
|
|
|
3518 |
else:
|
|
|
3519 |
iprot.skip(ftype)
|
|
|
3520 |
elif fid == 5:
|
|
|
3521 |
if ftype == TType.I64:
|
| 5110 |
mandeep.dh |
3522 |
self.fulfilmentWarehouseId = iprot.readI64();
|
| 4501 |
mandeep.dh |
3523 |
else:
|
|
|
3524 |
iprot.skip(ftype)
|
| 5361 |
mandeep.dh |
3525 |
elif fid == 6:
|
|
|
3526 |
if ftype == TType.I64:
|
|
|
3527 |
self.billingWarehouseId = iprot.readI64();
|
|
|
3528 |
else:
|
|
|
3529 |
iprot.skip(ftype)
|
| 2821 |
chandransh |
3530 |
else:
|
|
|
3531 |
iprot.skip(ftype)
|
|
|
3532 |
iprot.readFieldEnd()
|
|
|
3533 |
iprot.readStructEnd()
|
|
|
3534 |
|
|
|
3535 |
def write(self, oprot):
|
|
|
3536 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3537 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3538 |
return
|
| 4501 |
mandeep.dh |
3539 |
oprot.writeStructBegin('scanForOrder_args')
|
| 5361 |
mandeep.dh |
3540 |
if self.inventoryItem is not None:
|
|
|
3541 |
oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
|
|
|
3542 |
self.inventoryItem.write(oprot)
|
| 2821 |
chandransh |
3543 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3544 |
if self.type is not None:
|
| 4501 |
mandeep.dh |
3545 |
oprot.writeFieldBegin('type', TType.I32, 2)
|
| 2821 |
chandransh |
3546 |
oprot.writeI32(self.type)
|
|
|
3547 |
oprot.writeFieldEnd()
|
| 4501 |
mandeep.dh |
3548 |
if self.quantity is not None:
|
|
|
3549 |
oprot.writeFieldBegin('quantity', TType.I64, 3)
|
|
|
3550 |
oprot.writeI64(self.quantity)
|
|
|
3551 |
oprot.writeFieldEnd()
|
|
|
3552 |
if self.orderId is not None:
|
|
|
3553 |
oprot.writeFieldBegin('orderId', TType.I64, 4)
|
|
|
3554 |
oprot.writeI64(self.orderId)
|
|
|
3555 |
oprot.writeFieldEnd()
|
| 5110 |
mandeep.dh |
3556 |
if self.fulfilmentWarehouseId is not None:
|
|
|
3557 |
oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 5)
|
|
|
3558 |
oprot.writeI64(self.fulfilmentWarehouseId)
|
| 4501 |
mandeep.dh |
3559 |
oprot.writeFieldEnd()
|
| 5361 |
mandeep.dh |
3560 |
if self.billingWarehouseId is not None:
|
|
|
3561 |
oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)
|
|
|
3562 |
oprot.writeI64(self.billingWarehouseId)
|
|
|
3563 |
oprot.writeFieldEnd()
|
| 2821 |
chandransh |
3564 |
oprot.writeFieldStop()
|
|
|
3565 |
oprot.writeStructEnd()
|
|
|
3566 |
|
| 3431 |
rajveer |
3567 |
def validate(self):
|
|
|
3568 |
return
|
|
|
3569 |
|
|
|
3570 |
|
| 2821 |
chandransh |
3571 |
def __repr__(self):
|
|
|
3572 |
L = ['%s=%r' % (key, value)
|
|
|
3573 |
for key, value in self.__dict__.iteritems()]
|
|
|
3574 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3575 |
|
|
|
3576 |
def __eq__(self, other):
|
|
|
3577 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3578 |
|
|
|
3579 |
def __ne__(self, other):
|
|
|
3580 |
return not (self == other)
|
|
|
3581 |
|
| 4501 |
mandeep.dh |
3582 |
class scanForOrder_result:
|
| 2821 |
chandransh |
3583 |
"""
|
|
|
3584 |
Attributes:
|
| 5361 |
mandeep.dh |
3585 |
- success
|
| 2821 |
chandransh |
3586 |
- wex
|
|
|
3587 |
"""
|
|
|
3588 |
|
|
|
3589 |
thrift_spec = (
|
| 5361 |
mandeep.dh |
3590 |
(0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
|
| 2821 |
chandransh |
3591 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
3592 |
)
|
|
|
3593 |
|
| 5361 |
mandeep.dh |
3594 |
def __init__(self, success=None, wex=None,):
|
|
|
3595 |
self.success = success
|
| 2821 |
chandransh |
3596 |
self.wex = wex
|
|
|
3597 |
|
|
|
3598 |
def read(self, iprot):
|
|
|
3599 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3600 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3601 |
return
|
|
|
3602 |
iprot.readStructBegin()
|
|
|
3603 |
while True:
|
|
|
3604 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3605 |
if ftype == TType.STOP:
|
|
|
3606 |
break
|
| 5361 |
mandeep.dh |
3607 |
if fid == 0:
|
| 2821 |
chandransh |
3608 |
if ftype == TType.STRUCT:
|
| 5361 |
mandeep.dh |
3609 |
self.success = InventoryItem()
|
|
|
3610 |
self.success.read(iprot)
|
|
|
3611 |
else:
|
|
|
3612 |
iprot.skip(ftype)
|
|
|
3613 |
elif fid == 1:
|
|
|
3614 |
if ftype == TType.STRUCT:
|
| 2821 |
chandransh |
3615 |
self.wex = WarehouseServiceException()
|
|
|
3616 |
self.wex.read(iprot)
|
|
|
3617 |
else:
|
|
|
3618 |
iprot.skip(ftype)
|
|
|
3619 |
else:
|
|
|
3620 |
iprot.skip(ftype)
|
|
|
3621 |
iprot.readFieldEnd()
|
|
|
3622 |
iprot.readStructEnd()
|
|
|
3623 |
|
|
|
3624 |
def write(self, oprot):
|
|
|
3625 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3626 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3627 |
return
|
| 4501 |
mandeep.dh |
3628 |
oprot.writeStructBegin('scanForOrder_result')
|
| 5361 |
mandeep.dh |
3629 |
if self.success is not None:
|
|
|
3630 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
3631 |
self.success.write(oprot)
|
|
|
3632 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3633 |
if self.wex is not None:
|
| 2821 |
chandransh |
3634 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
3635 |
self.wex.write(oprot)
|
|
|
3636 |
oprot.writeFieldEnd()
|
|
|
3637 |
oprot.writeFieldStop()
|
|
|
3638 |
oprot.writeStructEnd()
|
|
|
3639 |
|
| 3431 |
rajveer |
3640 |
def validate(self):
|
|
|
3641 |
return
|
|
|
3642 |
|
|
|
3643 |
|
| 2821 |
chandransh |
3644 |
def __repr__(self):
|
|
|
3645 |
L = ['%s=%r' % (key, value)
|
|
|
3646 |
for key, value in self.__dict__.iteritems()]
|
|
|
3647 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3648 |
|
|
|
3649 |
def __eq__(self, other):
|
|
|
3650 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3651 |
|
|
|
3652 |
def __ne__(self, other):
|
|
|
3653 |
return not (self == other)
|
| 4501 |
mandeep.dh |
3654 |
|
|
|
3655 |
class createItemNumberMapping_args:
|
|
|
3656 |
"""
|
|
|
3657 |
Attributes:
|
|
|
3658 |
- itemNumber
|
|
|
3659 |
- itemId
|
|
|
3660 |
"""
|
|
|
3661 |
|
|
|
3662 |
thrift_spec = (
|
|
|
3663 |
None, # 0
|
|
|
3664 |
(1, TType.STRING, 'itemNumber', None, None, ), # 1
|
|
|
3665 |
(2, TType.I64, 'itemId', None, None, ), # 2
|
|
|
3666 |
)
|
|
|
3667 |
|
|
|
3668 |
def __init__(self, itemNumber=None, itemId=None,):
|
|
|
3669 |
self.itemNumber = itemNumber
|
|
|
3670 |
self.itemId = itemId
|
|
|
3671 |
|
|
|
3672 |
def read(self, iprot):
|
|
|
3673 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3674 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3675 |
return
|
|
|
3676 |
iprot.readStructBegin()
|
|
|
3677 |
while True:
|
|
|
3678 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3679 |
if ftype == TType.STOP:
|
|
|
3680 |
break
|
|
|
3681 |
if fid == 1:
|
|
|
3682 |
if ftype == TType.STRING:
|
|
|
3683 |
self.itemNumber = iprot.readString();
|
|
|
3684 |
else:
|
|
|
3685 |
iprot.skip(ftype)
|
|
|
3686 |
elif fid == 2:
|
|
|
3687 |
if ftype == TType.I64:
|
|
|
3688 |
self.itemId = iprot.readI64();
|
|
|
3689 |
else:
|
|
|
3690 |
iprot.skip(ftype)
|
|
|
3691 |
else:
|
|
|
3692 |
iprot.skip(ftype)
|
|
|
3693 |
iprot.readFieldEnd()
|
|
|
3694 |
iprot.readStructEnd()
|
|
|
3695 |
|
|
|
3696 |
def write(self, oprot):
|
|
|
3697 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3698 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3699 |
return
|
|
|
3700 |
oprot.writeStructBegin('createItemNumberMapping_args')
|
|
|
3701 |
if self.itemNumber is not None:
|
|
|
3702 |
oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
|
|
|
3703 |
oprot.writeString(self.itemNumber)
|
|
|
3704 |
oprot.writeFieldEnd()
|
|
|
3705 |
if self.itemId is not None:
|
|
|
3706 |
oprot.writeFieldBegin('itemId', TType.I64, 2)
|
|
|
3707 |
oprot.writeI64(self.itemId)
|
|
|
3708 |
oprot.writeFieldEnd()
|
|
|
3709 |
oprot.writeFieldStop()
|
|
|
3710 |
oprot.writeStructEnd()
|
|
|
3711 |
|
|
|
3712 |
def validate(self):
|
|
|
3713 |
return
|
|
|
3714 |
|
|
|
3715 |
|
|
|
3716 |
def __repr__(self):
|
|
|
3717 |
L = ['%s=%r' % (key, value)
|
|
|
3718 |
for key, value in self.__dict__.iteritems()]
|
|
|
3719 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3720 |
|
|
|
3721 |
def __eq__(self, other):
|
|
|
3722 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3723 |
|
|
|
3724 |
def __ne__(self, other):
|
|
|
3725 |
return not (self == other)
|
|
|
3726 |
|
|
|
3727 |
class createItemNumberMapping_result:
|
|
|
3728 |
|
|
|
3729 |
thrift_spec = (
|
|
|
3730 |
)
|
|
|
3731 |
|
|
|
3732 |
def read(self, iprot):
|
|
|
3733 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3734 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3735 |
return
|
|
|
3736 |
iprot.readStructBegin()
|
|
|
3737 |
while True:
|
|
|
3738 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3739 |
if ftype == TType.STOP:
|
|
|
3740 |
break
|
|
|
3741 |
else:
|
|
|
3742 |
iprot.skip(ftype)
|
|
|
3743 |
iprot.readFieldEnd()
|
|
|
3744 |
iprot.readStructEnd()
|
|
|
3745 |
|
|
|
3746 |
def write(self, oprot):
|
|
|
3747 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3748 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3749 |
return
|
|
|
3750 |
oprot.writeStructBegin('createItemNumberMapping_result')
|
|
|
3751 |
oprot.writeFieldStop()
|
|
|
3752 |
oprot.writeStructEnd()
|
|
|
3753 |
|
|
|
3754 |
def validate(self):
|
|
|
3755 |
return
|
|
|
3756 |
|
|
|
3757 |
|
|
|
3758 |
def __repr__(self):
|
|
|
3759 |
L = ['%s=%r' % (key, value)
|
|
|
3760 |
for key, value in self.__dict__.iteritems()]
|
|
|
3761 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3762 |
|
|
|
3763 |
def __eq__(self, other):
|
|
|
3764 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3765 |
|
|
|
3766 |
def __ne__(self, other):
|
|
|
3767 |
return not (self == other)
|
| 4620 |
amit.gupta |
3768 |
|
|
|
3769 |
class getItemNumbers_args:
|
|
|
3770 |
"""
|
|
|
3771 |
Attributes:
|
|
|
3772 |
- itemId
|
|
|
3773 |
"""
|
|
|
3774 |
|
|
|
3775 |
thrift_spec = (
|
|
|
3776 |
None, # 0
|
|
|
3777 |
(1, TType.I64, 'itemId', None, None, ), # 1
|
|
|
3778 |
)
|
|
|
3779 |
|
|
|
3780 |
def __init__(self, itemId=None,):
|
|
|
3781 |
self.itemId = itemId
|
|
|
3782 |
|
|
|
3783 |
def read(self, iprot):
|
|
|
3784 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3785 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3786 |
return
|
|
|
3787 |
iprot.readStructBegin()
|
|
|
3788 |
while True:
|
|
|
3789 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3790 |
if ftype == TType.STOP:
|
|
|
3791 |
break
|
|
|
3792 |
if fid == 1:
|
|
|
3793 |
if ftype == TType.I64:
|
|
|
3794 |
self.itemId = iprot.readI64();
|
|
|
3795 |
else:
|
|
|
3796 |
iprot.skip(ftype)
|
|
|
3797 |
else:
|
|
|
3798 |
iprot.skip(ftype)
|
|
|
3799 |
iprot.readFieldEnd()
|
|
|
3800 |
iprot.readStructEnd()
|
|
|
3801 |
|
|
|
3802 |
def write(self, oprot):
|
|
|
3803 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3804 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3805 |
return
|
|
|
3806 |
oprot.writeStructBegin('getItemNumbers_args')
|
|
|
3807 |
if self.itemId is not None:
|
|
|
3808 |
oprot.writeFieldBegin('itemId', TType.I64, 1)
|
|
|
3809 |
oprot.writeI64(self.itemId)
|
|
|
3810 |
oprot.writeFieldEnd()
|
|
|
3811 |
oprot.writeFieldStop()
|
|
|
3812 |
oprot.writeStructEnd()
|
|
|
3813 |
|
|
|
3814 |
def validate(self):
|
|
|
3815 |
return
|
|
|
3816 |
|
|
|
3817 |
|
|
|
3818 |
def __repr__(self):
|
|
|
3819 |
L = ['%s=%r' % (key, value)
|
|
|
3820 |
for key, value in self.__dict__.iteritems()]
|
|
|
3821 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3822 |
|
|
|
3823 |
def __eq__(self, other):
|
|
|
3824 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3825 |
|
|
|
3826 |
def __ne__(self, other):
|
|
|
3827 |
return not (self == other)
|
|
|
3828 |
|
|
|
3829 |
class getItemNumbers_result:
|
|
|
3830 |
"""
|
|
|
3831 |
Attributes:
|
|
|
3832 |
- success
|
|
|
3833 |
"""
|
|
|
3834 |
|
|
|
3835 |
thrift_spec = (
|
|
|
3836 |
(0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
|
|
|
3837 |
)
|
|
|
3838 |
|
|
|
3839 |
def __init__(self, success=None,):
|
|
|
3840 |
self.success = success
|
|
|
3841 |
|
|
|
3842 |
def read(self, iprot):
|
|
|
3843 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3844 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3845 |
return
|
|
|
3846 |
iprot.readStructBegin()
|
|
|
3847 |
while True:
|
|
|
3848 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3849 |
if ftype == TType.STOP:
|
|
|
3850 |
break
|
|
|
3851 |
if fid == 0:
|
|
|
3852 |
if ftype == TType.LIST:
|
|
|
3853 |
self.success = []
|
| 5361 |
mandeep.dh |
3854 |
(_etype3, _size0) = iprot.readListBegin()
|
|
|
3855 |
for _i4 in xrange(_size0):
|
|
|
3856 |
_elem5 = iprot.readString();
|
|
|
3857 |
self.success.append(_elem5)
|
| 4620 |
amit.gupta |
3858 |
iprot.readListEnd()
|
|
|
3859 |
else:
|
|
|
3860 |
iprot.skip(ftype)
|
|
|
3861 |
else:
|
|
|
3862 |
iprot.skip(ftype)
|
|
|
3863 |
iprot.readFieldEnd()
|
|
|
3864 |
iprot.readStructEnd()
|
|
|
3865 |
|
|
|
3866 |
def write(self, oprot):
|
|
|
3867 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3868 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3869 |
return
|
|
|
3870 |
oprot.writeStructBegin('getItemNumbers_result')
|
|
|
3871 |
if self.success is not None:
|
|
|
3872 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
3873 |
oprot.writeListBegin(TType.STRING, len(self.success))
|
| 5361 |
mandeep.dh |
3874 |
for iter6 in self.success:
|
|
|
3875 |
oprot.writeString(iter6)
|
| 4620 |
amit.gupta |
3876 |
oprot.writeListEnd()
|
|
|
3877 |
oprot.writeFieldEnd()
|
|
|
3878 |
oprot.writeFieldStop()
|
|
|
3879 |
oprot.writeStructEnd()
|
|
|
3880 |
|
|
|
3881 |
def validate(self):
|
|
|
3882 |
return
|
|
|
3883 |
|
|
|
3884 |
|
|
|
3885 |
def __repr__(self):
|
|
|
3886 |
L = ['%s=%r' % (key, value)
|
|
|
3887 |
for key, value in self.__dict__.iteritems()]
|
|
|
3888 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3889 |
|
|
|
3890 |
def __eq__(self, other):
|
|
|
3891 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3892 |
|
|
|
3893 |
def __ne__(self, other):
|
|
|
3894 |
return not (self == other)
|
| 5110 |
mandeep.dh |
3895 |
|
|
|
3896 |
class getItemIds_args:
|
|
|
3897 |
"""
|
|
|
3898 |
Attributes:
|
|
|
3899 |
- itemNumber
|
|
|
3900 |
"""
|
|
|
3901 |
|
|
|
3902 |
thrift_spec = (
|
|
|
3903 |
None, # 0
|
|
|
3904 |
(1, TType.STRING, 'itemNumber', None, None, ), # 1
|
|
|
3905 |
)
|
|
|
3906 |
|
|
|
3907 |
def __init__(self, itemNumber=None,):
|
|
|
3908 |
self.itemNumber = itemNumber
|
|
|
3909 |
|
|
|
3910 |
def read(self, iprot):
|
|
|
3911 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3912 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3913 |
return
|
|
|
3914 |
iprot.readStructBegin()
|
|
|
3915 |
while True:
|
|
|
3916 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3917 |
if ftype == TType.STOP:
|
|
|
3918 |
break
|
|
|
3919 |
if fid == 1:
|
|
|
3920 |
if ftype == TType.STRING:
|
|
|
3921 |
self.itemNumber = iprot.readString();
|
|
|
3922 |
else:
|
|
|
3923 |
iprot.skip(ftype)
|
|
|
3924 |
else:
|
|
|
3925 |
iprot.skip(ftype)
|
|
|
3926 |
iprot.readFieldEnd()
|
|
|
3927 |
iprot.readStructEnd()
|
|
|
3928 |
|
|
|
3929 |
def write(self, oprot):
|
|
|
3930 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3931 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3932 |
return
|
|
|
3933 |
oprot.writeStructBegin('getItemIds_args')
|
|
|
3934 |
if self.itemNumber is not None:
|
|
|
3935 |
oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
|
|
|
3936 |
oprot.writeString(self.itemNumber)
|
|
|
3937 |
oprot.writeFieldEnd()
|
|
|
3938 |
oprot.writeFieldStop()
|
|
|
3939 |
oprot.writeStructEnd()
|
|
|
3940 |
|
|
|
3941 |
def validate(self):
|
|
|
3942 |
return
|
|
|
3943 |
|
|
|
3944 |
|
|
|
3945 |
def __repr__(self):
|
|
|
3946 |
L = ['%s=%r' % (key, value)
|
|
|
3947 |
for key, value in self.__dict__.iteritems()]
|
|
|
3948 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3949 |
|
|
|
3950 |
def __eq__(self, other):
|
|
|
3951 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3952 |
|
|
|
3953 |
def __ne__(self, other):
|
|
|
3954 |
return not (self == other)
|
|
|
3955 |
|
|
|
3956 |
class getItemIds_result:
|
|
|
3957 |
"""
|
|
|
3958 |
Attributes:
|
|
|
3959 |
- success
|
|
|
3960 |
"""
|
|
|
3961 |
|
|
|
3962 |
thrift_spec = (
|
|
|
3963 |
(0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
|
|
|
3964 |
)
|
|
|
3965 |
|
|
|
3966 |
def __init__(self, success=None,):
|
|
|
3967 |
self.success = success
|
|
|
3968 |
|
|
|
3969 |
def read(self, iprot):
|
|
|
3970 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3971 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3972 |
return
|
|
|
3973 |
iprot.readStructBegin()
|
|
|
3974 |
while True:
|
|
|
3975 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3976 |
if ftype == TType.STOP:
|
|
|
3977 |
break
|
|
|
3978 |
if fid == 0:
|
|
|
3979 |
if ftype == TType.LIST:
|
|
|
3980 |
self.success = []
|
| 5361 |
mandeep.dh |
3981 |
(_etype10, _size7) = iprot.readListBegin()
|
|
|
3982 |
for _i11 in xrange(_size7):
|
|
|
3983 |
_elem12 = iprot.readI64();
|
|
|
3984 |
self.success.append(_elem12)
|
| 5110 |
mandeep.dh |
3985 |
iprot.readListEnd()
|
|
|
3986 |
else:
|
|
|
3987 |
iprot.skip(ftype)
|
|
|
3988 |
else:
|
|
|
3989 |
iprot.skip(ftype)
|
|
|
3990 |
iprot.readFieldEnd()
|
|
|
3991 |
iprot.readStructEnd()
|
|
|
3992 |
|
|
|
3993 |
def write(self, oprot):
|
|
|
3994 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3995 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3996 |
return
|
|
|
3997 |
oprot.writeStructBegin('getItemIds_result')
|
|
|
3998 |
if self.success is not None:
|
|
|
3999 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
4000 |
oprot.writeListBegin(TType.I64, len(self.success))
|
| 5361 |
mandeep.dh |
4001 |
for iter13 in self.success:
|
|
|
4002 |
oprot.writeI64(iter13)
|
| 5110 |
mandeep.dh |
4003 |
oprot.writeListEnd()
|
|
|
4004 |
oprot.writeFieldEnd()
|
|
|
4005 |
oprot.writeFieldStop()
|
|
|
4006 |
oprot.writeStructEnd()
|
|
|
4007 |
|
|
|
4008 |
def validate(self):
|
|
|
4009 |
return
|
|
|
4010 |
|
|
|
4011 |
|
|
|
4012 |
def __repr__(self):
|
|
|
4013 |
L = ['%s=%r' % (key, value)
|
|
|
4014 |
for key, value in self.__dict__.iteritems()]
|
|
|
4015 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4016 |
|
|
|
4017 |
def __eq__(self, other):
|
|
|
4018 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4019 |
|
|
|
4020 |
def __ne__(self, other):
|
|
|
4021 |
return not (self == other)
|
| 5185 |
mandeep.dh |
4022 |
|
|
|
4023 |
class getInventoryItemsFromLastScanType_args:
|
|
|
4024 |
"""
|
|
|
4025 |
Attributes:
|
|
|
4026 |
- lastScanType
|
|
|
4027 |
"""
|
|
|
4028 |
|
|
|
4029 |
thrift_spec = (
|
|
|
4030 |
None, # 0
|
|
|
4031 |
(1, TType.I32, 'lastScanType', None, None, ), # 1
|
|
|
4032 |
)
|
|
|
4033 |
|
|
|
4034 |
def __init__(self, lastScanType=None,):
|
|
|
4035 |
self.lastScanType = lastScanType
|
|
|
4036 |
|
|
|
4037 |
def read(self, iprot):
|
|
|
4038 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4039 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4040 |
return
|
|
|
4041 |
iprot.readStructBegin()
|
|
|
4042 |
while True:
|
|
|
4043 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4044 |
if ftype == TType.STOP:
|
|
|
4045 |
break
|
|
|
4046 |
if fid == 1:
|
|
|
4047 |
if ftype == TType.I32:
|
|
|
4048 |
self.lastScanType = iprot.readI32();
|
|
|
4049 |
else:
|
|
|
4050 |
iprot.skip(ftype)
|
|
|
4051 |
else:
|
|
|
4052 |
iprot.skip(ftype)
|
|
|
4053 |
iprot.readFieldEnd()
|
|
|
4054 |
iprot.readStructEnd()
|
|
|
4055 |
|
|
|
4056 |
def write(self, oprot):
|
|
|
4057 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4058 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4059 |
return
|
|
|
4060 |
oprot.writeStructBegin('getInventoryItemsFromLastScanType_args')
|
|
|
4061 |
if self.lastScanType is not None:
|
|
|
4062 |
oprot.writeFieldBegin('lastScanType', TType.I32, 1)
|
|
|
4063 |
oprot.writeI32(self.lastScanType)
|
|
|
4064 |
oprot.writeFieldEnd()
|
|
|
4065 |
oprot.writeFieldStop()
|
|
|
4066 |
oprot.writeStructEnd()
|
|
|
4067 |
|
|
|
4068 |
def validate(self):
|
|
|
4069 |
return
|
|
|
4070 |
|
|
|
4071 |
|
|
|
4072 |
def __repr__(self):
|
|
|
4073 |
L = ['%s=%r' % (key, value)
|
|
|
4074 |
for key, value in self.__dict__.iteritems()]
|
|
|
4075 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4076 |
|
|
|
4077 |
def __eq__(self, other):
|
|
|
4078 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4079 |
|
|
|
4080 |
def __ne__(self, other):
|
|
|
4081 |
return not (self == other)
|
|
|
4082 |
|
|
|
4083 |
class getInventoryItemsFromLastScanType_result:
|
|
|
4084 |
"""
|
|
|
4085 |
Attributes:
|
|
|
4086 |
- success
|
|
|
4087 |
- wex
|
|
|
4088 |
"""
|
|
|
4089 |
|
|
|
4090 |
thrift_spec = (
|
|
|
4091 |
(0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
|
|
|
4092 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
4093 |
)
|
|
|
4094 |
|
|
|
4095 |
def __init__(self, success=None, wex=None,):
|
|
|
4096 |
self.success = success
|
|
|
4097 |
self.wex = wex
|
|
|
4098 |
|
|
|
4099 |
def read(self, iprot):
|
|
|
4100 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4101 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4102 |
return
|
|
|
4103 |
iprot.readStructBegin()
|
|
|
4104 |
while True:
|
|
|
4105 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4106 |
if ftype == TType.STOP:
|
|
|
4107 |
break
|
|
|
4108 |
if fid == 0:
|
|
|
4109 |
if ftype == TType.LIST:
|
|
|
4110 |
self.success = []
|
| 5361 |
mandeep.dh |
4111 |
(_etype17, _size14) = iprot.readListBegin()
|
|
|
4112 |
for _i18 in xrange(_size14):
|
|
|
4113 |
_elem19 = InventoryItem()
|
|
|
4114 |
_elem19.read(iprot)
|
|
|
4115 |
self.success.append(_elem19)
|
| 5185 |
mandeep.dh |
4116 |
iprot.readListEnd()
|
|
|
4117 |
else:
|
|
|
4118 |
iprot.skip(ftype)
|
|
|
4119 |
elif fid == 1:
|
|
|
4120 |
if ftype == TType.STRUCT:
|
|
|
4121 |
self.wex = WarehouseServiceException()
|
|
|
4122 |
self.wex.read(iprot)
|
|
|
4123 |
else:
|
|
|
4124 |
iprot.skip(ftype)
|
|
|
4125 |
else:
|
|
|
4126 |
iprot.skip(ftype)
|
|
|
4127 |
iprot.readFieldEnd()
|
|
|
4128 |
iprot.readStructEnd()
|
|
|
4129 |
|
|
|
4130 |
def write(self, oprot):
|
|
|
4131 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4132 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4133 |
return
|
|
|
4134 |
oprot.writeStructBegin('getInventoryItemsFromLastScanType_result')
|
|
|
4135 |
if self.success is not None:
|
|
|
4136 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
4137 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 5361 |
mandeep.dh |
4138 |
for iter20 in self.success:
|
|
|
4139 |
iter20.write(oprot)
|
| 5185 |
mandeep.dh |
4140 |
oprot.writeListEnd()
|
|
|
4141 |
oprot.writeFieldEnd()
|
|
|
4142 |
if self.wex is not None:
|
|
|
4143 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
4144 |
self.wex.write(oprot)
|
|
|
4145 |
oprot.writeFieldEnd()
|
|
|
4146 |
oprot.writeFieldStop()
|
|
|
4147 |
oprot.writeStructEnd()
|
|
|
4148 |
|
|
|
4149 |
def validate(self):
|
|
|
4150 |
return
|
|
|
4151 |
|
|
|
4152 |
|
|
|
4153 |
def __repr__(self):
|
|
|
4154 |
L = ['%s=%r' % (key, value)
|
|
|
4155 |
for key, value in self.__dict__.iteritems()]
|
|
|
4156 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4157 |
|
|
|
4158 |
def __eq__(self, other):
|
|
|
4159 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4160 |
|
|
|
4161 |
def __ne__(self, other):
|
|
|
4162 |
return not (self == other)
|
|
|
4163 |
|
|
|
4164 |
class getInventoryItemFromId_args:
|
|
|
4165 |
"""
|
|
|
4166 |
Attributes:
|
|
|
4167 |
- inventoryItemId
|
|
|
4168 |
"""
|
|
|
4169 |
|
|
|
4170 |
thrift_spec = (
|
|
|
4171 |
None, # 0
|
|
|
4172 |
(1, TType.I64, 'inventoryItemId', None, None, ), # 1
|
|
|
4173 |
)
|
|
|
4174 |
|
|
|
4175 |
def __init__(self, inventoryItemId=None,):
|
|
|
4176 |
self.inventoryItemId = inventoryItemId
|
|
|
4177 |
|
|
|
4178 |
def read(self, iprot):
|
|
|
4179 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4180 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4181 |
return
|
|
|
4182 |
iprot.readStructBegin()
|
|
|
4183 |
while True:
|
|
|
4184 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4185 |
if ftype == TType.STOP:
|
|
|
4186 |
break
|
|
|
4187 |
if fid == 1:
|
|
|
4188 |
if ftype == TType.I64:
|
|
|
4189 |
self.inventoryItemId = iprot.readI64();
|
|
|
4190 |
else:
|
|
|
4191 |
iprot.skip(ftype)
|
|
|
4192 |
else:
|
|
|
4193 |
iprot.skip(ftype)
|
|
|
4194 |
iprot.readFieldEnd()
|
|
|
4195 |
iprot.readStructEnd()
|
|
|
4196 |
|
|
|
4197 |
def write(self, oprot):
|
|
|
4198 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4199 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4200 |
return
|
|
|
4201 |
oprot.writeStructBegin('getInventoryItemFromId_args')
|
|
|
4202 |
if self.inventoryItemId is not None:
|
|
|
4203 |
oprot.writeFieldBegin('inventoryItemId', TType.I64, 1)
|
|
|
4204 |
oprot.writeI64(self.inventoryItemId)
|
|
|
4205 |
oprot.writeFieldEnd()
|
|
|
4206 |
oprot.writeFieldStop()
|
|
|
4207 |
oprot.writeStructEnd()
|
|
|
4208 |
|
|
|
4209 |
def validate(self):
|
|
|
4210 |
return
|
|
|
4211 |
|
|
|
4212 |
|
|
|
4213 |
def __repr__(self):
|
|
|
4214 |
L = ['%s=%r' % (key, value)
|
|
|
4215 |
for key, value in self.__dict__.iteritems()]
|
|
|
4216 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4217 |
|
|
|
4218 |
def __eq__(self, other):
|
|
|
4219 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4220 |
|
|
|
4221 |
def __ne__(self, other):
|
|
|
4222 |
return not (self == other)
|
|
|
4223 |
|
|
|
4224 |
class getInventoryItemFromId_result:
|
|
|
4225 |
"""
|
|
|
4226 |
Attributes:
|
|
|
4227 |
- success
|
|
|
4228 |
- wex
|
|
|
4229 |
"""
|
|
|
4230 |
|
|
|
4231 |
thrift_spec = (
|
|
|
4232 |
(0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
|
|
|
4233 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
4234 |
)
|
|
|
4235 |
|
|
|
4236 |
def __init__(self, success=None, wex=None,):
|
|
|
4237 |
self.success = success
|
|
|
4238 |
self.wex = wex
|
|
|
4239 |
|
|
|
4240 |
def read(self, iprot):
|
|
|
4241 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4242 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4243 |
return
|
|
|
4244 |
iprot.readStructBegin()
|
|
|
4245 |
while True:
|
|
|
4246 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4247 |
if ftype == TType.STOP:
|
|
|
4248 |
break
|
|
|
4249 |
if fid == 0:
|
|
|
4250 |
if ftype == TType.STRUCT:
|
|
|
4251 |
self.success = InventoryItem()
|
|
|
4252 |
self.success.read(iprot)
|
|
|
4253 |
else:
|
|
|
4254 |
iprot.skip(ftype)
|
|
|
4255 |
elif fid == 1:
|
|
|
4256 |
if ftype == TType.STRUCT:
|
|
|
4257 |
self.wex = WarehouseServiceException()
|
|
|
4258 |
self.wex.read(iprot)
|
|
|
4259 |
else:
|
|
|
4260 |
iprot.skip(ftype)
|
|
|
4261 |
else:
|
|
|
4262 |
iprot.skip(ftype)
|
|
|
4263 |
iprot.readFieldEnd()
|
|
|
4264 |
iprot.readStructEnd()
|
|
|
4265 |
|
|
|
4266 |
def write(self, oprot):
|
|
|
4267 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4268 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4269 |
return
|
|
|
4270 |
oprot.writeStructBegin('getInventoryItemFromId_result')
|
|
|
4271 |
if self.success is not None:
|
|
|
4272 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
4273 |
self.success.write(oprot)
|
|
|
4274 |
oprot.writeFieldEnd()
|
|
|
4275 |
if self.wex is not None:
|
|
|
4276 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
4277 |
self.wex.write(oprot)
|
|
|
4278 |
oprot.writeFieldEnd()
|
|
|
4279 |
oprot.writeFieldStop()
|
|
|
4280 |
oprot.writeStructEnd()
|
|
|
4281 |
|
|
|
4282 |
def validate(self):
|
|
|
4283 |
return
|
|
|
4284 |
|
|
|
4285 |
|
|
|
4286 |
def __repr__(self):
|
|
|
4287 |
L = ['%s=%r' % (key, value)
|
|
|
4288 |
for key, value in self.__dict__.iteritems()]
|
|
|
4289 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4290 |
|
|
|
4291 |
def __eq__(self, other):
|
|
|
4292 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4293 |
|
|
|
4294 |
def __ne__(self, other):
|
|
|
4295 |
return not (self == other)
|
| 5372 |
mandeep.dh |
4296 |
|
|
|
4297 |
class getPurchaseScans_args:
|
|
|
4298 |
"""
|
|
|
4299 |
Attributes:
|
|
|
4300 |
- startDate
|
|
|
4301 |
- endDate
|
|
|
4302 |
"""
|
|
|
4303 |
|
|
|
4304 |
thrift_spec = (
|
|
|
4305 |
None, # 0
|
|
|
4306 |
(1, TType.I64, 'startDate', None, None, ), # 1
|
|
|
4307 |
(2, TType.I64, 'endDate', None, None, ), # 2
|
|
|
4308 |
)
|
|
|
4309 |
|
|
|
4310 |
def __init__(self, startDate=None, endDate=None,):
|
|
|
4311 |
self.startDate = startDate
|
|
|
4312 |
self.endDate = endDate
|
|
|
4313 |
|
|
|
4314 |
def read(self, iprot):
|
|
|
4315 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4316 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4317 |
return
|
|
|
4318 |
iprot.readStructBegin()
|
|
|
4319 |
while True:
|
|
|
4320 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4321 |
if ftype == TType.STOP:
|
|
|
4322 |
break
|
|
|
4323 |
if fid == 1:
|
|
|
4324 |
if ftype == TType.I64:
|
|
|
4325 |
self.startDate = iprot.readI64();
|
|
|
4326 |
else:
|
|
|
4327 |
iprot.skip(ftype)
|
|
|
4328 |
elif fid == 2:
|
|
|
4329 |
if ftype == TType.I64:
|
|
|
4330 |
self.endDate = iprot.readI64();
|
|
|
4331 |
else:
|
|
|
4332 |
iprot.skip(ftype)
|
|
|
4333 |
else:
|
|
|
4334 |
iprot.skip(ftype)
|
|
|
4335 |
iprot.readFieldEnd()
|
|
|
4336 |
iprot.readStructEnd()
|
|
|
4337 |
|
|
|
4338 |
def write(self, oprot):
|
|
|
4339 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4340 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4341 |
return
|
|
|
4342 |
oprot.writeStructBegin('getPurchaseScans_args')
|
|
|
4343 |
if self.startDate is not None:
|
|
|
4344 |
oprot.writeFieldBegin('startDate', TType.I64, 1)
|
|
|
4345 |
oprot.writeI64(self.startDate)
|
|
|
4346 |
oprot.writeFieldEnd()
|
|
|
4347 |
if self.endDate is not None:
|
|
|
4348 |
oprot.writeFieldBegin('endDate', TType.I64, 2)
|
|
|
4349 |
oprot.writeI64(self.endDate)
|
|
|
4350 |
oprot.writeFieldEnd()
|
|
|
4351 |
oprot.writeFieldStop()
|
|
|
4352 |
oprot.writeStructEnd()
|
|
|
4353 |
|
|
|
4354 |
def validate(self):
|
|
|
4355 |
return
|
|
|
4356 |
|
|
|
4357 |
|
|
|
4358 |
def __repr__(self):
|
|
|
4359 |
L = ['%s=%r' % (key, value)
|
|
|
4360 |
for key, value in self.__dict__.iteritems()]
|
|
|
4361 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4362 |
|
|
|
4363 |
def __eq__(self, other):
|
|
|
4364 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4365 |
|
|
|
4366 |
def __ne__(self, other):
|
|
|
4367 |
return not (self == other)
|
|
|
4368 |
|
|
|
4369 |
class getPurchaseScans_result:
|
|
|
4370 |
"""
|
|
|
4371 |
Attributes:
|
|
|
4372 |
- success
|
|
|
4373 |
"""
|
|
|
4374 |
|
|
|
4375 |
thrift_spec = (
|
|
|
4376 |
(0, TType.LIST, 'success', (TType.STRUCT,(DetailedPurchaseScan, DetailedPurchaseScan.thrift_spec)), None, ), # 0
|
|
|
4377 |
)
|
|
|
4378 |
|
|
|
4379 |
def __init__(self, success=None,):
|
|
|
4380 |
self.success = success
|
|
|
4381 |
|
|
|
4382 |
def read(self, iprot):
|
|
|
4383 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4384 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4385 |
return
|
|
|
4386 |
iprot.readStructBegin()
|
|
|
4387 |
while True:
|
|
|
4388 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4389 |
if ftype == TType.STOP:
|
|
|
4390 |
break
|
|
|
4391 |
if fid == 0:
|
|
|
4392 |
if ftype == TType.LIST:
|
|
|
4393 |
self.success = []
|
|
|
4394 |
(_etype24, _size21) = iprot.readListBegin()
|
|
|
4395 |
for _i25 in xrange(_size21):
|
|
|
4396 |
_elem26 = DetailedPurchaseScan()
|
|
|
4397 |
_elem26.read(iprot)
|
|
|
4398 |
self.success.append(_elem26)
|
|
|
4399 |
iprot.readListEnd()
|
|
|
4400 |
else:
|
|
|
4401 |
iprot.skip(ftype)
|
|
|
4402 |
else:
|
|
|
4403 |
iprot.skip(ftype)
|
|
|
4404 |
iprot.readFieldEnd()
|
|
|
4405 |
iprot.readStructEnd()
|
|
|
4406 |
|
|
|
4407 |
def write(self, oprot):
|
|
|
4408 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4409 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4410 |
return
|
|
|
4411 |
oprot.writeStructBegin('getPurchaseScans_result')
|
|
|
4412 |
if self.success is not None:
|
|
|
4413 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
4414 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
4415 |
for iter27 in self.success:
|
|
|
4416 |
iter27.write(oprot)
|
|
|
4417 |
oprot.writeListEnd()
|
|
|
4418 |
oprot.writeFieldEnd()
|
|
|
4419 |
oprot.writeFieldStop()
|
|
|
4420 |
oprot.writeStructEnd()
|
|
|
4421 |
|
|
|
4422 |
def validate(self):
|
|
|
4423 |
return
|
|
|
4424 |
|
|
|
4425 |
|
|
|
4426 |
def __repr__(self):
|
|
|
4427 |
L = ['%s=%r' % (key, value)
|
|
|
4428 |
for key, value in self.__dict__.iteritems()]
|
|
|
4429 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4430 |
|
|
|
4431 |
def __eq__(self, other):
|
|
|
4432 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4433 |
|
|
|
4434 |
def __ne__(self, other):
|
|
|
4435 |
return not (self == other)
|
| 5496 |
mandeep.dh |
4436 |
|
| 7216 |
amar.kumar |
4437 |
class getPurchaseScansByGrnDate_args:
|
|
|
4438 |
"""
|
|
|
4439 |
Attributes:
|
|
|
4440 |
- startDate
|
|
|
4441 |
- endDate
|
|
|
4442 |
"""
|
|
|
4443 |
|
|
|
4444 |
thrift_spec = (
|
|
|
4445 |
None, # 0
|
|
|
4446 |
(1, TType.I64, 'startDate', None, None, ), # 1
|
|
|
4447 |
(2, TType.I64, 'endDate', None, None, ), # 2
|
|
|
4448 |
)
|
|
|
4449 |
|
|
|
4450 |
def __init__(self, startDate=None, endDate=None,):
|
|
|
4451 |
self.startDate = startDate
|
|
|
4452 |
self.endDate = endDate
|
|
|
4453 |
|
|
|
4454 |
def read(self, iprot):
|
|
|
4455 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4456 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4457 |
return
|
|
|
4458 |
iprot.readStructBegin()
|
|
|
4459 |
while True:
|
|
|
4460 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4461 |
if ftype == TType.STOP:
|
|
|
4462 |
break
|
|
|
4463 |
if fid == 1:
|
|
|
4464 |
if ftype == TType.I64:
|
|
|
4465 |
self.startDate = iprot.readI64();
|
|
|
4466 |
else:
|
|
|
4467 |
iprot.skip(ftype)
|
|
|
4468 |
elif fid == 2:
|
|
|
4469 |
if ftype == TType.I64:
|
|
|
4470 |
self.endDate = iprot.readI64();
|
|
|
4471 |
else:
|
|
|
4472 |
iprot.skip(ftype)
|
|
|
4473 |
else:
|
|
|
4474 |
iprot.skip(ftype)
|
|
|
4475 |
iprot.readFieldEnd()
|
|
|
4476 |
iprot.readStructEnd()
|
|
|
4477 |
|
|
|
4478 |
def write(self, oprot):
|
|
|
4479 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4480 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4481 |
return
|
|
|
4482 |
oprot.writeStructBegin('getPurchaseScansByGrnDate_args')
|
|
|
4483 |
if self.startDate is not None:
|
|
|
4484 |
oprot.writeFieldBegin('startDate', TType.I64, 1)
|
|
|
4485 |
oprot.writeI64(self.startDate)
|
|
|
4486 |
oprot.writeFieldEnd()
|
|
|
4487 |
if self.endDate is not None:
|
|
|
4488 |
oprot.writeFieldBegin('endDate', TType.I64, 2)
|
|
|
4489 |
oprot.writeI64(self.endDate)
|
|
|
4490 |
oprot.writeFieldEnd()
|
|
|
4491 |
oprot.writeFieldStop()
|
|
|
4492 |
oprot.writeStructEnd()
|
|
|
4493 |
|
|
|
4494 |
def validate(self):
|
|
|
4495 |
return
|
|
|
4496 |
|
|
|
4497 |
|
|
|
4498 |
def __repr__(self):
|
|
|
4499 |
L = ['%s=%r' % (key, value)
|
|
|
4500 |
for key, value in self.__dict__.iteritems()]
|
|
|
4501 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4502 |
|
|
|
4503 |
def __eq__(self, other):
|
|
|
4504 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4505 |
|
|
|
4506 |
def __ne__(self, other):
|
|
|
4507 |
return not (self == other)
|
|
|
4508 |
|
|
|
4509 |
class getPurchaseScansByGrnDate_result:
|
|
|
4510 |
"""
|
|
|
4511 |
Attributes:
|
|
|
4512 |
- success
|
|
|
4513 |
"""
|
|
|
4514 |
|
|
|
4515 |
thrift_spec = (
|
|
|
4516 |
(0, TType.LIST, 'success', (TType.STRUCT,(DetailedPurchaseScan, DetailedPurchaseScan.thrift_spec)), None, ), # 0
|
|
|
4517 |
)
|
|
|
4518 |
|
|
|
4519 |
def __init__(self, success=None,):
|
|
|
4520 |
self.success = success
|
|
|
4521 |
|
|
|
4522 |
def read(self, iprot):
|
|
|
4523 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4524 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4525 |
return
|
|
|
4526 |
iprot.readStructBegin()
|
|
|
4527 |
while True:
|
|
|
4528 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4529 |
if ftype == TType.STOP:
|
|
|
4530 |
break
|
|
|
4531 |
if fid == 0:
|
|
|
4532 |
if ftype == TType.LIST:
|
|
|
4533 |
self.success = []
|
|
|
4534 |
(_etype31, _size28) = iprot.readListBegin()
|
|
|
4535 |
for _i32 in xrange(_size28):
|
|
|
4536 |
_elem33 = DetailedPurchaseScan()
|
|
|
4537 |
_elem33.read(iprot)
|
|
|
4538 |
self.success.append(_elem33)
|
|
|
4539 |
iprot.readListEnd()
|
|
|
4540 |
else:
|
|
|
4541 |
iprot.skip(ftype)
|
|
|
4542 |
else:
|
|
|
4543 |
iprot.skip(ftype)
|
|
|
4544 |
iprot.readFieldEnd()
|
|
|
4545 |
iprot.readStructEnd()
|
|
|
4546 |
|
|
|
4547 |
def write(self, oprot):
|
|
|
4548 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4549 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4550 |
return
|
|
|
4551 |
oprot.writeStructBegin('getPurchaseScansByGrnDate_result')
|
|
|
4552 |
if self.success is not None:
|
|
|
4553 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
4554 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
4555 |
for iter34 in self.success:
|
|
|
4556 |
iter34.write(oprot)
|
|
|
4557 |
oprot.writeListEnd()
|
|
|
4558 |
oprot.writeFieldEnd()
|
|
|
4559 |
oprot.writeFieldStop()
|
|
|
4560 |
oprot.writeStructEnd()
|
|
|
4561 |
|
|
|
4562 |
def validate(self):
|
|
|
4563 |
return
|
|
|
4564 |
|
|
|
4565 |
|
|
|
4566 |
def __repr__(self):
|
|
|
4567 |
L = ['%s=%r' % (key, value)
|
|
|
4568 |
for key, value in self.__dict__.iteritems()]
|
|
|
4569 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4570 |
|
|
|
4571 |
def __eq__(self, other):
|
|
|
4572 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4573 |
|
|
|
4574 |
def __ne__(self, other):
|
|
|
4575 |
return not (self == other)
|
|
|
4576 |
|
| 5496 |
mandeep.dh |
4577 |
class fetchScansPerInvoiceNumber_args:
|
|
|
4578 |
"""
|
|
|
4579 |
Attributes:
|
|
|
4580 |
- date
|
|
|
4581 |
"""
|
|
|
4582 |
|
|
|
4583 |
thrift_spec = (
|
|
|
4584 |
None, # 0
|
|
|
4585 |
(1, TType.I64, 'date', None, None, ), # 1
|
|
|
4586 |
)
|
|
|
4587 |
|
|
|
4588 |
def __init__(self, date=None,):
|
|
|
4589 |
self.date = date
|
|
|
4590 |
|
|
|
4591 |
def read(self, iprot):
|
|
|
4592 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4593 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4594 |
return
|
|
|
4595 |
iprot.readStructBegin()
|
|
|
4596 |
while True:
|
|
|
4597 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4598 |
if ftype == TType.STOP:
|
|
|
4599 |
break
|
|
|
4600 |
if fid == 1:
|
|
|
4601 |
if ftype == TType.I64:
|
|
|
4602 |
self.date = iprot.readI64();
|
|
|
4603 |
else:
|
|
|
4604 |
iprot.skip(ftype)
|
|
|
4605 |
else:
|
|
|
4606 |
iprot.skip(ftype)
|
|
|
4607 |
iprot.readFieldEnd()
|
|
|
4608 |
iprot.readStructEnd()
|
|
|
4609 |
|
|
|
4610 |
def write(self, oprot):
|
|
|
4611 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4612 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4613 |
return
|
|
|
4614 |
oprot.writeStructBegin('fetchScansPerInvoiceNumber_args')
|
|
|
4615 |
if self.date is not None:
|
|
|
4616 |
oprot.writeFieldBegin('date', TType.I64, 1)
|
|
|
4617 |
oprot.writeI64(self.date)
|
|
|
4618 |
oprot.writeFieldEnd()
|
|
|
4619 |
oprot.writeFieldStop()
|
|
|
4620 |
oprot.writeStructEnd()
|
|
|
4621 |
|
|
|
4622 |
def validate(self):
|
|
|
4623 |
return
|
|
|
4624 |
|
|
|
4625 |
|
|
|
4626 |
def __repr__(self):
|
|
|
4627 |
L = ['%s=%r' % (key, value)
|
|
|
4628 |
for key, value in self.__dict__.iteritems()]
|
|
|
4629 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4630 |
|
|
|
4631 |
def __eq__(self, other):
|
|
|
4632 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4633 |
|
|
|
4634 |
def __ne__(self, other):
|
|
|
4635 |
return not (self == other)
|
|
|
4636 |
|
|
|
4637 |
class fetchScansPerInvoiceNumber_result:
|
|
|
4638 |
"""
|
|
|
4639 |
Attributes:
|
|
|
4640 |
- success
|
|
|
4641 |
"""
|
|
|
4642 |
|
|
|
4643 |
thrift_spec = (
|
|
|
4644 |
(0, TType.LIST, 'success', (TType.STRUCT,(InvoiceScan, InvoiceScan.thrift_spec)), None, ), # 0
|
|
|
4645 |
)
|
|
|
4646 |
|
|
|
4647 |
def __init__(self, success=None,):
|
|
|
4648 |
self.success = success
|
|
|
4649 |
|
|
|
4650 |
def read(self, iprot):
|
|
|
4651 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4652 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4653 |
return
|
|
|
4654 |
iprot.readStructBegin()
|
|
|
4655 |
while True:
|
|
|
4656 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4657 |
if ftype == TType.STOP:
|
|
|
4658 |
break
|
|
|
4659 |
if fid == 0:
|
|
|
4660 |
if ftype == TType.LIST:
|
|
|
4661 |
self.success = []
|
| 7216 |
amar.kumar |
4662 |
(_etype38, _size35) = iprot.readListBegin()
|
|
|
4663 |
for _i39 in xrange(_size35):
|
|
|
4664 |
_elem40 = InvoiceScan()
|
|
|
4665 |
_elem40.read(iprot)
|
|
|
4666 |
self.success.append(_elem40)
|
| 5496 |
mandeep.dh |
4667 |
iprot.readListEnd()
|
|
|
4668 |
else:
|
|
|
4669 |
iprot.skip(ftype)
|
|
|
4670 |
else:
|
|
|
4671 |
iprot.skip(ftype)
|
|
|
4672 |
iprot.readFieldEnd()
|
|
|
4673 |
iprot.readStructEnd()
|
|
|
4674 |
|
|
|
4675 |
def write(self, oprot):
|
|
|
4676 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4677 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4678 |
return
|
|
|
4679 |
oprot.writeStructBegin('fetchScansPerInvoiceNumber_result')
|
|
|
4680 |
if self.success is not None:
|
|
|
4681 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
4682 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 7216 |
amar.kumar |
4683 |
for iter41 in self.success:
|
|
|
4684 |
iter41.write(oprot)
|
| 5496 |
mandeep.dh |
4685 |
oprot.writeListEnd()
|
|
|
4686 |
oprot.writeFieldEnd()
|
|
|
4687 |
oprot.writeFieldStop()
|
|
|
4688 |
oprot.writeStructEnd()
|
|
|
4689 |
|
|
|
4690 |
def validate(self):
|
|
|
4691 |
return
|
|
|
4692 |
|
|
|
4693 |
|
|
|
4694 |
def __repr__(self):
|
|
|
4695 |
L = ['%s=%r' % (key, value)
|
|
|
4696 |
for key, value in self.__dict__.iteritems()]
|
|
|
4697 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4698 |
|
|
|
4699 |
def __eq__(self, other):
|
|
|
4700 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4701 |
|
|
|
4702 |
def __ne__(self, other):
|
|
|
4703 |
return not (self == other)
|
| 5620 |
mandeep.dh |
4704 |
|
|
|
4705 |
class getInventoryItemFromOrder_args:
|
|
|
4706 |
"""
|
|
|
4707 |
Attributes:
|
|
|
4708 |
- orderId
|
|
|
4709 |
"""
|
|
|
4710 |
|
|
|
4711 |
thrift_spec = (
|
|
|
4712 |
None, # 0
|
|
|
4713 |
(1, TType.I64, 'orderId', None, None, ), # 1
|
|
|
4714 |
)
|
|
|
4715 |
|
|
|
4716 |
def __init__(self, orderId=None,):
|
|
|
4717 |
self.orderId = orderId
|
|
|
4718 |
|
|
|
4719 |
def read(self, iprot):
|
|
|
4720 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4721 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4722 |
return
|
|
|
4723 |
iprot.readStructBegin()
|
|
|
4724 |
while True:
|
|
|
4725 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4726 |
if ftype == TType.STOP:
|
|
|
4727 |
break
|
|
|
4728 |
if fid == 1:
|
|
|
4729 |
if ftype == TType.I64:
|
|
|
4730 |
self.orderId = iprot.readI64();
|
|
|
4731 |
else:
|
|
|
4732 |
iprot.skip(ftype)
|
|
|
4733 |
else:
|
|
|
4734 |
iprot.skip(ftype)
|
|
|
4735 |
iprot.readFieldEnd()
|
|
|
4736 |
iprot.readStructEnd()
|
|
|
4737 |
|
|
|
4738 |
def write(self, oprot):
|
|
|
4739 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4740 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4741 |
return
|
|
|
4742 |
oprot.writeStructBegin('getInventoryItemFromOrder_args')
|
|
|
4743 |
if self.orderId is not None:
|
|
|
4744 |
oprot.writeFieldBegin('orderId', TType.I64, 1)
|
|
|
4745 |
oprot.writeI64(self.orderId)
|
|
|
4746 |
oprot.writeFieldEnd()
|
|
|
4747 |
oprot.writeFieldStop()
|
|
|
4748 |
oprot.writeStructEnd()
|
|
|
4749 |
|
|
|
4750 |
def validate(self):
|
|
|
4751 |
return
|
|
|
4752 |
|
|
|
4753 |
|
|
|
4754 |
def __repr__(self):
|
|
|
4755 |
L = ['%s=%r' % (key, value)
|
|
|
4756 |
for key, value in self.__dict__.iteritems()]
|
|
|
4757 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4758 |
|
|
|
4759 |
def __eq__(self, other):
|
|
|
4760 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4761 |
|
|
|
4762 |
def __ne__(self, other):
|
|
|
4763 |
return not (self == other)
|
|
|
4764 |
|
|
|
4765 |
class getInventoryItemFromOrder_result:
|
|
|
4766 |
"""
|
|
|
4767 |
Attributes:
|
|
|
4768 |
- success
|
|
|
4769 |
- we
|
|
|
4770 |
"""
|
|
|
4771 |
|
|
|
4772 |
thrift_spec = (
|
|
|
4773 |
(0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
|
|
|
4774 |
(1, TType.STRUCT, 'we', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
4775 |
)
|
|
|
4776 |
|
|
|
4777 |
def __init__(self, success=None, we=None,):
|
|
|
4778 |
self.success = success
|
|
|
4779 |
self.we = we
|
|
|
4780 |
|
|
|
4781 |
def read(self, iprot):
|
|
|
4782 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4783 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4784 |
return
|
|
|
4785 |
iprot.readStructBegin()
|
|
|
4786 |
while True:
|
|
|
4787 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4788 |
if ftype == TType.STOP:
|
|
|
4789 |
break
|
|
|
4790 |
if fid == 0:
|
|
|
4791 |
if ftype == TType.STRUCT:
|
|
|
4792 |
self.success = InventoryItem()
|
|
|
4793 |
self.success.read(iprot)
|
|
|
4794 |
else:
|
|
|
4795 |
iprot.skip(ftype)
|
|
|
4796 |
elif fid == 1:
|
|
|
4797 |
if ftype == TType.STRUCT:
|
|
|
4798 |
self.we = WarehouseServiceException()
|
|
|
4799 |
self.we.read(iprot)
|
|
|
4800 |
else:
|
|
|
4801 |
iprot.skip(ftype)
|
|
|
4802 |
else:
|
|
|
4803 |
iprot.skip(ftype)
|
|
|
4804 |
iprot.readFieldEnd()
|
|
|
4805 |
iprot.readStructEnd()
|
|
|
4806 |
|
|
|
4807 |
def write(self, oprot):
|
|
|
4808 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4809 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4810 |
return
|
|
|
4811 |
oprot.writeStructBegin('getInventoryItemFromOrder_result')
|
|
|
4812 |
if self.success is not None:
|
|
|
4813 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
4814 |
self.success.write(oprot)
|
|
|
4815 |
oprot.writeFieldEnd()
|
|
|
4816 |
if self.we is not None:
|
|
|
4817 |
oprot.writeFieldBegin('we', TType.STRUCT, 1)
|
|
|
4818 |
self.we.write(oprot)
|
|
|
4819 |
oprot.writeFieldEnd()
|
|
|
4820 |
oprot.writeFieldStop()
|
|
|
4821 |
oprot.writeStructEnd()
|
|
|
4822 |
|
|
|
4823 |
def validate(self):
|
|
|
4824 |
return
|
|
|
4825 |
|
|
|
4826 |
|
|
|
4827 |
def __repr__(self):
|
|
|
4828 |
L = ['%s=%r' % (key, value)
|
|
|
4829 |
for key, value in self.__dict__.iteritems()]
|
|
|
4830 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4831 |
|
|
|
4832 |
def __eq__(self, other):
|
|
|
4833 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4834 |
|
|
|
4835 |
def __ne__(self, other):
|
|
|
4836 |
return not (self == other)
|
| 5711 |
mandeep.dh |
4837 |
|
|
|
4838 |
class getInventoryAge_args:
|
|
|
4839 |
|
|
|
4840 |
thrift_spec = (
|
|
|
4841 |
)
|
|
|
4842 |
|
|
|
4843 |
def read(self, iprot):
|
|
|
4844 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4845 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4846 |
return
|
|
|
4847 |
iprot.readStructBegin()
|
|
|
4848 |
while True:
|
|
|
4849 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4850 |
if ftype == TType.STOP:
|
|
|
4851 |
break
|
|
|
4852 |
else:
|
|
|
4853 |
iprot.skip(ftype)
|
|
|
4854 |
iprot.readFieldEnd()
|
|
|
4855 |
iprot.readStructEnd()
|
|
|
4856 |
|
|
|
4857 |
def write(self, oprot):
|
|
|
4858 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4859 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4860 |
return
|
|
|
4861 |
oprot.writeStructBegin('getInventoryAge_args')
|
|
|
4862 |
oprot.writeFieldStop()
|
|
|
4863 |
oprot.writeStructEnd()
|
|
|
4864 |
|
|
|
4865 |
def validate(self):
|
|
|
4866 |
return
|
|
|
4867 |
|
|
|
4868 |
|
|
|
4869 |
def __repr__(self):
|
|
|
4870 |
L = ['%s=%r' % (key, value)
|
|
|
4871 |
for key, value in self.__dict__.iteritems()]
|
|
|
4872 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4873 |
|
|
|
4874 |
def __eq__(self, other):
|
|
|
4875 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4876 |
|
|
|
4877 |
def __ne__(self, other):
|
|
|
4878 |
return not (self == other)
|
|
|
4879 |
|
|
|
4880 |
class getInventoryAge_result:
|
|
|
4881 |
"""
|
|
|
4882 |
Attributes:
|
|
|
4883 |
- success
|
|
|
4884 |
"""
|
|
|
4885 |
|
|
|
4886 |
thrift_spec = (
|
|
|
4887 |
(0, TType.LIST, 'success', (TType.STRUCT,(InventoryAge, InventoryAge.thrift_spec)), None, ), # 0
|
|
|
4888 |
)
|
|
|
4889 |
|
|
|
4890 |
def __init__(self, success=None,):
|
|
|
4891 |
self.success = success
|
|
|
4892 |
|
|
|
4893 |
def read(self, iprot):
|
|
|
4894 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4895 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4896 |
return
|
|
|
4897 |
iprot.readStructBegin()
|
|
|
4898 |
while True:
|
|
|
4899 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4900 |
if ftype == TType.STOP:
|
|
|
4901 |
break
|
|
|
4902 |
if fid == 0:
|
|
|
4903 |
if ftype == TType.LIST:
|
|
|
4904 |
self.success = []
|
| 7216 |
amar.kumar |
4905 |
(_etype45, _size42) = iprot.readListBegin()
|
|
|
4906 |
for _i46 in xrange(_size42):
|
|
|
4907 |
_elem47 = InventoryAge()
|
|
|
4908 |
_elem47.read(iprot)
|
|
|
4909 |
self.success.append(_elem47)
|
| 5711 |
mandeep.dh |
4910 |
iprot.readListEnd()
|
|
|
4911 |
else:
|
|
|
4912 |
iprot.skip(ftype)
|
|
|
4913 |
else:
|
|
|
4914 |
iprot.skip(ftype)
|
|
|
4915 |
iprot.readFieldEnd()
|
|
|
4916 |
iprot.readStructEnd()
|
|
|
4917 |
|
|
|
4918 |
def write(self, oprot):
|
|
|
4919 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4920 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4921 |
return
|
|
|
4922 |
oprot.writeStructBegin('getInventoryAge_result')
|
|
|
4923 |
if self.success is not None:
|
|
|
4924 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
4925 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 7216 |
amar.kumar |
4926 |
for iter48 in self.success:
|
|
|
4927 |
iter48.write(oprot)
|
| 5711 |
mandeep.dh |
4928 |
oprot.writeListEnd()
|
|
|
4929 |
oprot.writeFieldEnd()
|
|
|
4930 |
oprot.writeFieldStop()
|
|
|
4931 |
oprot.writeStructEnd()
|
|
|
4932 |
|
|
|
4933 |
def validate(self):
|
|
|
4934 |
return
|
|
|
4935 |
|
|
|
4936 |
|
|
|
4937 |
def __repr__(self):
|
|
|
4938 |
L = ['%s=%r' % (key, value)
|
|
|
4939 |
for key, value in self.__dict__.iteritems()]
|
|
|
4940 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4941 |
|
|
|
4942 |
def __eq__(self, other):
|
|
|
4943 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4944 |
|
|
|
4945 |
def __ne__(self, other):
|
|
|
4946 |
return not (self == other)
|
| 6361 |
rajveer |
4947 |
|
|
|
4948 |
class getInventoryScansForItem_args:
|
|
|
4949 |
"""
|
|
|
4950 |
Attributes:
|
|
|
4951 |
- itemId
|
|
|
4952 |
- fromDate
|
|
|
4953 |
- toDate
|
|
|
4954 |
"""
|
|
|
4955 |
|
|
|
4956 |
thrift_spec = (
|
|
|
4957 |
None, # 0
|
|
|
4958 |
(1, TType.I64, 'itemId', None, None, ), # 1
|
|
|
4959 |
(2, TType.I64, 'fromDate', None, None, ), # 2
|
|
|
4960 |
(3, TType.I64, 'toDate', None, None, ), # 3
|
|
|
4961 |
)
|
|
|
4962 |
|
|
|
4963 |
def __init__(self, itemId=None, fromDate=None, toDate=None,):
|
|
|
4964 |
self.itemId = itemId
|
|
|
4965 |
self.fromDate = fromDate
|
|
|
4966 |
self.toDate = toDate
|
|
|
4967 |
|
|
|
4968 |
def read(self, iprot):
|
|
|
4969 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4970 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4971 |
return
|
|
|
4972 |
iprot.readStructBegin()
|
|
|
4973 |
while True:
|
|
|
4974 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4975 |
if ftype == TType.STOP:
|
|
|
4976 |
break
|
|
|
4977 |
if fid == 1:
|
|
|
4978 |
if ftype == TType.I64:
|
|
|
4979 |
self.itemId = iprot.readI64();
|
|
|
4980 |
else:
|
|
|
4981 |
iprot.skip(ftype)
|
|
|
4982 |
elif fid == 2:
|
|
|
4983 |
if ftype == TType.I64:
|
|
|
4984 |
self.fromDate = iprot.readI64();
|
|
|
4985 |
else:
|
|
|
4986 |
iprot.skip(ftype)
|
|
|
4987 |
elif fid == 3:
|
|
|
4988 |
if ftype == TType.I64:
|
|
|
4989 |
self.toDate = iprot.readI64();
|
|
|
4990 |
else:
|
|
|
4991 |
iprot.skip(ftype)
|
|
|
4992 |
else:
|
|
|
4993 |
iprot.skip(ftype)
|
|
|
4994 |
iprot.readFieldEnd()
|
|
|
4995 |
iprot.readStructEnd()
|
|
|
4996 |
|
|
|
4997 |
def write(self, oprot):
|
|
|
4998 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4999 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5000 |
return
|
|
|
5001 |
oprot.writeStructBegin('getInventoryScansForItem_args')
|
|
|
5002 |
if self.itemId is not None:
|
|
|
5003 |
oprot.writeFieldBegin('itemId', TType.I64, 1)
|
|
|
5004 |
oprot.writeI64(self.itemId)
|
|
|
5005 |
oprot.writeFieldEnd()
|
|
|
5006 |
if self.fromDate is not None:
|
|
|
5007 |
oprot.writeFieldBegin('fromDate', TType.I64, 2)
|
|
|
5008 |
oprot.writeI64(self.fromDate)
|
|
|
5009 |
oprot.writeFieldEnd()
|
|
|
5010 |
if self.toDate is not None:
|
|
|
5011 |
oprot.writeFieldBegin('toDate', TType.I64, 3)
|
|
|
5012 |
oprot.writeI64(self.toDate)
|
|
|
5013 |
oprot.writeFieldEnd()
|
|
|
5014 |
oprot.writeFieldStop()
|
|
|
5015 |
oprot.writeStructEnd()
|
|
|
5016 |
|
|
|
5017 |
def validate(self):
|
|
|
5018 |
return
|
|
|
5019 |
|
|
|
5020 |
|
|
|
5021 |
def __repr__(self):
|
|
|
5022 |
L = ['%s=%r' % (key, value)
|
|
|
5023 |
for key, value in self.__dict__.iteritems()]
|
|
|
5024 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5025 |
|
|
|
5026 |
def __eq__(self, other):
|
|
|
5027 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5028 |
|
|
|
5029 |
def __ne__(self, other):
|
|
|
5030 |
return not (self == other)
|
|
|
5031 |
|
|
|
5032 |
class getInventoryScansForItem_result:
|
|
|
5033 |
"""
|
|
|
5034 |
Attributes:
|
|
|
5035 |
- success
|
|
|
5036 |
"""
|
|
|
5037 |
|
|
|
5038 |
thrift_spec = (
|
|
|
5039 |
(0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
|
|
|
5040 |
)
|
|
|
5041 |
|
|
|
5042 |
def __init__(self, success=None,):
|
|
|
5043 |
self.success = success
|
|
|
5044 |
|
|
|
5045 |
def read(self, iprot):
|
|
|
5046 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5047 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5048 |
return
|
|
|
5049 |
iprot.readStructBegin()
|
|
|
5050 |
while True:
|
|
|
5051 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5052 |
if ftype == TType.STOP:
|
|
|
5053 |
break
|
|
|
5054 |
if fid == 0:
|
|
|
5055 |
if ftype == TType.LIST:
|
|
|
5056 |
self.success = []
|
| 7216 |
amar.kumar |
5057 |
(_etype52, _size49) = iprot.readListBegin()
|
|
|
5058 |
for _i53 in xrange(_size49):
|
|
|
5059 |
_elem54 = Scan()
|
|
|
5060 |
_elem54.read(iprot)
|
|
|
5061 |
self.success.append(_elem54)
|
| 6361 |
rajveer |
5062 |
iprot.readListEnd()
|
|
|
5063 |
else:
|
|
|
5064 |
iprot.skip(ftype)
|
|
|
5065 |
else:
|
|
|
5066 |
iprot.skip(ftype)
|
|
|
5067 |
iprot.readFieldEnd()
|
|
|
5068 |
iprot.readStructEnd()
|
|
|
5069 |
|
|
|
5070 |
def write(self, oprot):
|
|
|
5071 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5072 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5073 |
return
|
|
|
5074 |
oprot.writeStructBegin('getInventoryScansForItem_result')
|
|
|
5075 |
if self.success is not None:
|
|
|
5076 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
5077 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 7216 |
amar.kumar |
5078 |
for iter55 in self.success:
|
|
|
5079 |
iter55.write(oprot)
|
| 6361 |
rajveer |
5080 |
oprot.writeListEnd()
|
|
|
5081 |
oprot.writeFieldEnd()
|
|
|
5082 |
oprot.writeFieldStop()
|
|
|
5083 |
oprot.writeStructEnd()
|
|
|
5084 |
|
|
|
5085 |
def validate(self):
|
|
|
5086 |
return
|
|
|
5087 |
|
|
|
5088 |
|
|
|
5089 |
def __repr__(self):
|
|
|
5090 |
L = ['%s=%r' % (key, value)
|
|
|
5091 |
for key, value in self.__dict__.iteritems()]
|
|
|
5092 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5093 |
|
|
|
5094 |
def __eq__(self, other):
|
|
|
5095 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5096 |
|
|
|
5097 |
def __ne__(self, other):
|
|
|
5098 |
return not (self == other)
|
|
|
5099 |
|
|
|
5100 |
class getScanRecordsForSerialNumber_args:
|
|
|
5101 |
"""
|
|
|
5102 |
Attributes:
|
|
|
5103 |
- serialNumber
|
|
|
5104 |
"""
|
|
|
5105 |
|
|
|
5106 |
thrift_spec = (
|
|
|
5107 |
None, # 0
|
| 7410 |
amar.kumar |
5108 |
(1, TType.STRING, 'serialNumber', None, None, ), # 1
|
| 6361 |
rajveer |
5109 |
)
|
|
|
5110 |
|
|
|
5111 |
def __init__(self, serialNumber=None,):
|
|
|
5112 |
self.serialNumber = serialNumber
|
|
|
5113 |
|
|
|
5114 |
def read(self, iprot):
|
|
|
5115 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5116 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5117 |
return
|
|
|
5118 |
iprot.readStructBegin()
|
|
|
5119 |
while True:
|
|
|
5120 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5121 |
if ftype == TType.STOP:
|
|
|
5122 |
break
|
|
|
5123 |
if fid == 1:
|
| 7410 |
amar.kumar |
5124 |
if ftype == TType.STRING:
|
|
|
5125 |
self.serialNumber = iprot.readString();
|
| 6361 |
rajveer |
5126 |
else:
|
|
|
5127 |
iprot.skip(ftype)
|
|
|
5128 |
else:
|
|
|
5129 |
iprot.skip(ftype)
|
|
|
5130 |
iprot.readFieldEnd()
|
|
|
5131 |
iprot.readStructEnd()
|
|
|
5132 |
|
|
|
5133 |
def write(self, oprot):
|
|
|
5134 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5135 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5136 |
return
|
|
|
5137 |
oprot.writeStructBegin('getScanRecordsForSerialNumber_args')
|
|
|
5138 |
if self.serialNumber is not None:
|
| 7410 |
amar.kumar |
5139 |
oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
|
|
|
5140 |
oprot.writeString(self.serialNumber)
|
| 6361 |
rajveer |
5141 |
oprot.writeFieldEnd()
|
|
|
5142 |
oprot.writeFieldStop()
|
|
|
5143 |
oprot.writeStructEnd()
|
|
|
5144 |
|
|
|
5145 |
def validate(self):
|
|
|
5146 |
return
|
|
|
5147 |
|
|
|
5148 |
|
|
|
5149 |
def __repr__(self):
|
|
|
5150 |
L = ['%s=%r' % (key, value)
|
|
|
5151 |
for key, value in self.__dict__.iteritems()]
|
|
|
5152 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5153 |
|
|
|
5154 |
def __eq__(self, other):
|
|
|
5155 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5156 |
|
|
|
5157 |
def __ne__(self, other):
|
|
|
5158 |
return not (self == other)
|
|
|
5159 |
|
|
|
5160 |
class getScanRecordsForSerialNumber_result:
|
|
|
5161 |
"""
|
|
|
5162 |
Attributes:
|
|
|
5163 |
- success
|
|
|
5164 |
"""
|
|
|
5165 |
|
|
|
5166 |
thrift_spec = (
|
|
|
5167 |
(0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
|
|
|
5168 |
)
|
|
|
5169 |
|
|
|
5170 |
def __init__(self, success=None,):
|
|
|
5171 |
self.success = success
|
|
|
5172 |
|
|
|
5173 |
def read(self, iprot):
|
|
|
5174 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5175 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5176 |
return
|
|
|
5177 |
iprot.readStructBegin()
|
|
|
5178 |
while True:
|
|
|
5179 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5180 |
if ftype == TType.STOP:
|
|
|
5181 |
break
|
|
|
5182 |
if fid == 0:
|
|
|
5183 |
if ftype == TType.LIST:
|
|
|
5184 |
self.success = []
|
| 7216 |
amar.kumar |
5185 |
(_etype59, _size56) = iprot.readListBegin()
|
|
|
5186 |
for _i60 in xrange(_size56):
|
|
|
5187 |
_elem61 = Scan()
|
|
|
5188 |
_elem61.read(iprot)
|
|
|
5189 |
self.success.append(_elem61)
|
| 6361 |
rajveer |
5190 |
iprot.readListEnd()
|
|
|
5191 |
else:
|
|
|
5192 |
iprot.skip(ftype)
|
|
|
5193 |
else:
|
|
|
5194 |
iprot.skip(ftype)
|
|
|
5195 |
iprot.readFieldEnd()
|
|
|
5196 |
iprot.readStructEnd()
|
|
|
5197 |
|
|
|
5198 |
def write(self, oprot):
|
|
|
5199 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5200 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5201 |
return
|
|
|
5202 |
oprot.writeStructBegin('getScanRecordsForSerialNumber_result')
|
|
|
5203 |
if self.success is not None:
|
|
|
5204 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
5205 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 7216 |
amar.kumar |
5206 |
for iter62 in self.success:
|
|
|
5207 |
iter62.write(oprot)
|
| 6361 |
rajveer |
5208 |
oprot.writeListEnd()
|
|
|
5209 |
oprot.writeFieldEnd()
|
|
|
5210 |
oprot.writeFieldStop()
|
|
|
5211 |
oprot.writeStructEnd()
|
|
|
5212 |
|
|
|
5213 |
def validate(self):
|
|
|
5214 |
return
|
|
|
5215 |
|
|
|
5216 |
|
|
|
5217 |
def __repr__(self):
|
|
|
5218 |
L = ['%s=%r' % (key, value)
|
|
|
5219 |
for key, value in self.__dict__.iteritems()]
|
|
|
5220 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5221 |
|
|
|
5222 |
def __eq__(self, other):
|
|
|
5223 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5224 |
|
|
|
5225 |
def __ne__(self, other):
|
|
|
5226 |
return not (self == other)
|
| 6467 |
amar.kumar |
5227 |
|
|
|
5228 |
class scanForPurchaseReturn_args:
|
|
|
5229 |
"""
|
|
|
5230 |
Attributes:
|
|
|
5231 |
- saleReturnItems
|
|
|
5232 |
- vendorId
|
| 7718 |
amar.kumar |
5233 |
- billingWarehouseId
|
| 6467 |
amar.kumar |
5234 |
"""
|
|
|
5235 |
|
|
|
5236 |
thrift_spec = (
|
|
|
5237 |
None, # 0
|
|
|
5238 |
(1, TType.LIST, 'saleReturnItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
|
|
|
5239 |
(2, TType.I64, 'vendorId', None, None, ), # 2
|
| 7718 |
amar.kumar |
5240 |
(3, TType.I64, 'billingWarehouseId', None, None, ), # 3
|
| 6467 |
amar.kumar |
5241 |
)
|
|
|
5242 |
|
| 7718 |
amar.kumar |
5243 |
def __init__(self, saleReturnItems=None, vendorId=None, billingWarehouseId=None,):
|
| 6467 |
amar.kumar |
5244 |
self.saleReturnItems = saleReturnItems
|
|
|
5245 |
self.vendorId = vendorId
|
| 7718 |
amar.kumar |
5246 |
self.billingWarehouseId = billingWarehouseId
|
| 6467 |
amar.kumar |
5247 |
|
|
|
5248 |
def read(self, iprot):
|
|
|
5249 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5250 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5251 |
return
|
|
|
5252 |
iprot.readStructBegin()
|
|
|
5253 |
while True:
|
|
|
5254 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5255 |
if ftype == TType.STOP:
|
|
|
5256 |
break
|
|
|
5257 |
if fid == 1:
|
|
|
5258 |
if ftype == TType.LIST:
|
|
|
5259 |
self.saleReturnItems = []
|
| 7216 |
amar.kumar |
5260 |
(_etype66, _size63) = iprot.readListBegin()
|
|
|
5261 |
for _i67 in xrange(_size63):
|
|
|
5262 |
_elem68 = InventoryItem()
|
|
|
5263 |
_elem68.read(iprot)
|
|
|
5264 |
self.saleReturnItems.append(_elem68)
|
| 6467 |
amar.kumar |
5265 |
iprot.readListEnd()
|
|
|
5266 |
else:
|
|
|
5267 |
iprot.skip(ftype)
|
|
|
5268 |
elif fid == 2:
|
|
|
5269 |
if ftype == TType.I64:
|
|
|
5270 |
self.vendorId = iprot.readI64();
|
|
|
5271 |
else:
|
|
|
5272 |
iprot.skip(ftype)
|
| 7718 |
amar.kumar |
5273 |
elif fid == 3:
|
|
|
5274 |
if ftype == TType.I64:
|
|
|
5275 |
self.billingWarehouseId = iprot.readI64();
|
|
|
5276 |
else:
|
|
|
5277 |
iprot.skip(ftype)
|
| 6467 |
amar.kumar |
5278 |
else:
|
|
|
5279 |
iprot.skip(ftype)
|
|
|
5280 |
iprot.readFieldEnd()
|
|
|
5281 |
iprot.readStructEnd()
|
|
|
5282 |
|
|
|
5283 |
def write(self, oprot):
|
|
|
5284 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5285 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5286 |
return
|
|
|
5287 |
oprot.writeStructBegin('scanForPurchaseReturn_args')
|
|
|
5288 |
if self.saleReturnItems is not None:
|
|
|
5289 |
oprot.writeFieldBegin('saleReturnItems', TType.LIST, 1)
|
|
|
5290 |
oprot.writeListBegin(TType.STRUCT, len(self.saleReturnItems))
|
| 7216 |
amar.kumar |
5291 |
for iter69 in self.saleReturnItems:
|
|
|
5292 |
iter69.write(oprot)
|
| 6467 |
amar.kumar |
5293 |
oprot.writeListEnd()
|
|
|
5294 |
oprot.writeFieldEnd()
|
|
|
5295 |
if self.vendorId is not None:
|
|
|
5296 |
oprot.writeFieldBegin('vendorId', TType.I64, 2)
|
|
|
5297 |
oprot.writeI64(self.vendorId)
|
|
|
5298 |
oprot.writeFieldEnd()
|
| 7718 |
amar.kumar |
5299 |
if self.billingWarehouseId is not None:
|
|
|
5300 |
oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
|
|
|
5301 |
oprot.writeI64(self.billingWarehouseId)
|
|
|
5302 |
oprot.writeFieldEnd()
|
| 6467 |
amar.kumar |
5303 |
oprot.writeFieldStop()
|
|
|
5304 |
oprot.writeStructEnd()
|
|
|
5305 |
|
|
|
5306 |
def validate(self):
|
|
|
5307 |
return
|
|
|
5308 |
|
|
|
5309 |
|
|
|
5310 |
def __repr__(self):
|
|
|
5311 |
L = ['%s=%r' % (key, value)
|
|
|
5312 |
for key, value in self.__dict__.iteritems()]
|
|
|
5313 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5314 |
|
|
|
5315 |
def __eq__(self, other):
|
|
|
5316 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5317 |
|
|
|
5318 |
def __ne__(self, other):
|
|
|
5319 |
return not (self == other)
|
|
|
5320 |
|
|
|
5321 |
class scanForPurchaseReturn_result:
|
|
|
5322 |
"""
|
|
|
5323 |
Attributes:
|
|
|
5324 |
- ex
|
|
|
5325 |
"""
|
|
|
5326 |
|
|
|
5327 |
thrift_spec = (
|
|
|
5328 |
None, # 0
|
|
|
5329 |
(1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
5330 |
)
|
|
|
5331 |
|
|
|
5332 |
def __init__(self, ex=None,):
|
|
|
5333 |
self.ex = ex
|
|
|
5334 |
|
|
|
5335 |
def read(self, iprot):
|
|
|
5336 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5337 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5338 |
return
|
|
|
5339 |
iprot.readStructBegin()
|
|
|
5340 |
while True:
|
|
|
5341 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5342 |
if ftype == TType.STOP:
|
|
|
5343 |
break
|
|
|
5344 |
if fid == 1:
|
|
|
5345 |
if ftype == TType.STRUCT:
|
|
|
5346 |
self.ex = WarehouseServiceException()
|
|
|
5347 |
self.ex.read(iprot)
|
|
|
5348 |
else:
|
|
|
5349 |
iprot.skip(ftype)
|
|
|
5350 |
else:
|
|
|
5351 |
iprot.skip(ftype)
|
|
|
5352 |
iprot.readFieldEnd()
|
|
|
5353 |
iprot.readStructEnd()
|
|
|
5354 |
|
|
|
5355 |
def write(self, oprot):
|
|
|
5356 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5357 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5358 |
return
|
|
|
5359 |
oprot.writeStructBegin('scanForPurchaseReturn_result')
|
|
|
5360 |
if self.ex is not None:
|
|
|
5361 |
oprot.writeFieldBegin('ex', TType.STRUCT, 1)
|
|
|
5362 |
self.ex.write(oprot)
|
|
|
5363 |
oprot.writeFieldEnd()
|
|
|
5364 |
oprot.writeFieldStop()
|
|
|
5365 |
oprot.writeStructEnd()
|
|
|
5366 |
|
|
|
5367 |
def validate(self):
|
|
|
5368 |
return
|
|
|
5369 |
|
|
|
5370 |
|
|
|
5371 |
def __repr__(self):
|
|
|
5372 |
L = ['%s=%r' % (key, value)
|
|
|
5373 |
for key, value in self.__dict__.iteritems()]
|
|
|
5374 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5375 |
|
|
|
5376 |
def __eq__(self, other):
|
|
|
5377 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5378 |
|
|
|
5379 |
def __ne__(self, other):
|
|
|
5380 |
return not (self == other)
|
| 6630 |
amar.kumar |
5381 |
|
|
|
5382 |
class scanForLostItem_args:
|
|
|
5383 |
"""
|
|
|
5384 |
Attributes:
|
|
|
5385 |
- lostItems
|
|
|
5386 |
- vendorId
|
| 7718 |
amar.kumar |
5387 |
- billingWarehouseId
|
| 6630 |
amar.kumar |
5388 |
"""
|
|
|
5389 |
|
|
|
5390 |
thrift_spec = (
|
|
|
5391 |
None, # 0
|
|
|
5392 |
(1, TType.LIST, 'lostItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
|
|
|
5393 |
(2, TType.I64, 'vendorId', None, None, ), # 2
|
| 7718 |
amar.kumar |
5394 |
(3, TType.I64, 'billingWarehouseId', None, None, ), # 3
|
| 6630 |
amar.kumar |
5395 |
)
|
|
|
5396 |
|
| 7718 |
amar.kumar |
5397 |
def __init__(self, lostItems=None, vendorId=None, billingWarehouseId=None,):
|
| 6630 |
amar.kumar |
5398 |
self.lostItems = lostItems
|
|
|
5399 |
self.vendorId = vendorId
|
| 7718 |
amar.kumar |
5400 |
self.billingWarehouseId = billingWarehouseId
|
| 6630 |
amar.kumar |
5401 |
|
|
|
5402 |
def read(self, iprot):
|
|
|
5403 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5404 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5405 |
return
|
|
|
5406 |
iprot.readStructBegin()
|
|
|
5407 |
while True:
|
|
|
5408 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5409 |
if ftype == TType.STOP:
|
|
|
5410 |
break
|
|
|
5411 |
if fid == 1:
|
|
|
5412 |
if ftype == TType.LIST:
|
|
|
5413 |
self.lostItems = []
|
| 7216 |
amar.kumar |
5414 |
(_etype73, _size70) = iprot.readListBegin()
|
|
|
5415 |
for _i74 in xrange(_size70):
|
|
|
5416 |
_elem75 = InventoryItem()
|
|
|
5417 |
_elem75.read(iprot)
|
|
|
5418 |
self.lostItems.append(_elem75)
|
| 6630 |
amar.kumar |
5419 |
iprot.readListEnd()
|
|
|
5420 |
else:
|
|
|
5421 |
iprot.skip(ftype)
|
|
|
5422 |
elif fid == 2:
|
|
|
5423 |
if ftype == TType.I64:
|
|
|
5424 |
self.vendorId = iprot.readI64();
|
|
|
5425 |
else:
|
|
|
5426 |
iprot.skip(ftype)
|
| 7718 |
amar.kumar |
5427 |
elif fid == 3:
|
|
|
5428 |
if ftype == TType.I64:
|
|
|
5429 |
self.billingWarehouseId = iprot.readI64();
|
|
|
5430 |
else:
|
|
|
5431 |
iprot.skip(ftype)
|
| 6630 |
amar.kumar |
5432 |
else:
|
|
|
5433 |
iprot.skip(ftype)
|
|
|
5434 |
iprot.readFieldEnd()
|
|
|
5435 |
iprot.readStructEnd()
|
|
|
5436 |
|
|
|
5437 |
def write(self, oprot):
|
|
|
5438 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5439 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5440 |
return
|
|
|
5441 |
oprot.writeStructBegin('scanForLostItem_args')
|
|
|
5442 |
if self.lostItems is not None:
|
|
|
5443 |
oprot.writeFieldBegin('lostItems', TType.LIST, 1)
|
|
|
5444 |
oprot.writeListBegin(TType.STRUCT, len(self.lostItems))
|
| 7216 |
amar.kumar |
5445 |
for iter76 in self.lostItems:
|
|
|
5446 |
iter76.write(oprot)
|
| 6630 |
amar.kumar |
5447 |
oprot.writeListEnd()
|
|
|
5448 |
oprot.writeFieldEnd()
|
|
|
5449 |
if self.vendorId is not None:
|
|
|
5450 |
oprot.writeFieldBegin('vendorId', TType.I64, 2)
|
|
|
5451 |
oprot.writeI64(self.vendorId)
|
|
|
5452 |
oprot.writeFieldEnd()
|
| 7718 |
amar.kumar |
5453 |
if self.billingWarehouseId is not None:
|
|
|
5454 |
oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
|
|
|
5455 |
oprot.writeI64(self.billingWarehouseId)
|
|
|
5456 |
oprot.writeFieldEnd()
|
| 6630 |
amar.kumar |
5457 |
oprot.writeFieldStop()
|
|
|
5458 |
oprot.writeStructEnd()
|
|
|
5459 |
|
|
|
5460 |
def validate(self):
|
|
|
5461 |
return
|
|
|
5462 |
|
|
|
5463 |
|
|
|
5464 |
def __repr__(self):
|
|
|
5465 |
L = ['%s=%r' % (key, value)
|
|
|
5466 |
for key, value in self.__dict__.iteritems()]
|
|
|
5467 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5468 |
|
|
|
5469 |
def __eq__(self, other):
|
|
|
5470 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5471 |
|
|
|
5472 |
def __ne__(self, other):
|
|
|
5473 |
return not (self == other)
|
|
|
5474 |
|
|
|
5475 |
class scanForLostItem_result:
|
|
|
5476 |
"""
|
|
|
5477 |
Attributes:
|
|
|
5478 |
- ex
|
|
|
5479 |
"""
|
|
|
5480 |
|
|
|
5481 |
thrift_spec = (
|
|
|
5482 |
None, # 0
|
|
|
5483 |
(1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
5484 |
)
|
|
|
5485 |
|
|
|
5486 |
def __init__(self, ex=None,):
|
|
|
5487 |
self.ex = ex
|
|
|
5488 |
|
|
|
5489 |
def read(self, iprot):
|
|
|
5490 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5491 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5492 |
return
|
|
|
5493 |
iprot.readStructBegin()
|
|
|
5494 |
while True:
|
|
|
5495 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5496 |
if ftype == TType.STOP:
|
|
|
5497 |
break
|
|
|
5498 |
if fid == 1:
|
|
|
5499 |
if ftype == TType.STRUCT:
|
|
|
5500 |
self.ex = WarehouseServiceException()
|
|
|
5501 |
self.ex.read(iprot)
|
|
|
5502 |
else:
|
|
|
5503 |
iprot.skip(ftype)
|
|
|
5504 |
else:
|
|
|
5505 |
iprot.skip(ftype)
|
|
|
5506 |
iprot.readFieldEnd()
|
|
|
5507 |
iprot.readStructEnd()
|
|
|
5508 |
|
|
|
5509 |
def write(self, oprot):
|
|
|
5510 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5511 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5512 |
return
|
|
|
5513 |
oprot.writeStructBegin('scanForLostItem_result')
|
|
|
5514 |
if self.ex is not None:
|
|
|
5515 |
oprot.writeFieldBegin('ex', TType.STRUCT, 1)
|
|
|
5516 |
self.ex.write(oprot)
|
|
|
5517 |
oprot.writeFieldEnd()
|
|
|
5518 |
oprot.writeFieldStop()
|
|
|
5519 |
oprot.writeStructEnd()
|
|
|
5520 |
|
|
|
5521 |
def validate(self):
|
|
|
5522 |
return
|
|
|
5523 |
|
|
|
5524 |
|
|
|
5525 |
def __repr__(self):
|
|
|
5526 |
L = ['%s=%r' % (key, value)
|
|
|
5527 |
for key, value in self.__dict__.iteritems()]
|
|
|
5528 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5529 |
|
|
|
5530 |
def __eq__(self, other):
|
|
|
5531 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5532 |
|
|
|
5533 |
def __ne__(self, other):
|
|
|
5534 |
return not (self == other)
|
|
|
5535 |
|
|
|
5536 |
class getCurrentSerializedInventoryByScans_args:
|
| 7715 |
vikram.rag |
5537 |
"""
|
|
|
5538 |
Attributes:
|
|
|
5539 |
- physicalWarehouseId
|
|
|
5540 |
"""
|
| 6630 |
amar.kumar |
5541 |
|
|
|
5542 |
thrift_spec = (
|
| 7715 |
vikram.rag |
5543 |
None, # 0
|
|
|
5544 |
(1, TType.I64, 'physicalWarehouseId', None, None, ), # 1
|
| 6630 |
amar.kumar |
5545 |
)
|
|
|
5546 |
|
| 7715 |
vikram.rag |
5547 |
def __init__(self, physicalWarehouseId=None,):
|
|
|
5548 |
self.physicalWarehouseId = physicalWarehouseId
|
|
|
5549 |
|
| 6630 |
amar.kumar |
5550 |
def read(self, iprot):
|
|
|
5551 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5552 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5553 |
return
|
|
|
5554 |
iprot.readStructBegin()
|
|
|
5555 |
while True:
|
|
|
5556 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5557 |
if ftype == TType.STOP:
|
|
|
5558 |
break
|
| 7715 |
vikram.rag |
5559 |
if fid == 1:
|
|
|
5560 |
if ftype == TType.I64:
|
|
|
5561 |
self.physicalWarehouseId = iprot.readI64();
|
|
|
5562 |
else:
|
|
|
5563 |
iprot.skip(ftype)
|
| 6630 |
amar.kumar |
5564 |
else:
|
|
|
5565 |
iprot.skip(ftype)
|
|
|
5566 |
iprot.readFieldEnd()
|
|
|
5567 |
iprot.readStructEnd()
|
|
|
5568 |
|
|
|
5569 |
def write(self, oprot):
|
|
|
5570 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5571 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5572 |
return
|
|
|
5573 |
oprot.writeStructBegin('getCurrentSerializedInventoryByScans_args')
|
| 7715 |
vikram.rag |
5574 |
if self.physicalWarehouseId is not None:
|
|
|
5575 |
oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 1)
|
|
|
5576 |
oprot.writeI64(self.physicalWarehouseId)
|
|
|
5577 |
oprot.writeFieldEnd()
|
| 6630 |
amar.kumar |
5578 |
oprot.writeFieldStop()
|
|
|
5579 |
oprot.writeStructEnd()
|
|
|
5580 |
|
|
|
5581 |
def validate(self):
|
|
|
5582 |
return
|
|
|
5583 |
|
|
|
5584 |
|
|
|
5585 |
def __repr__(self):
|
|
|
5586 |
L = ['%s=%r' % (key, value)
|
|
|
5587 |
for key, value in self.__dict__.iteritems()]
|
|
|
5588 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5589 |
|
|
|
5590 |
def __eq__(self, other):
|
|
|
5591 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5592 |
|
|
|
5593 |
def __ne__(self, other):
|
|
|
5594 |
return not (self == other)
|
|
|
5595 |
|
|
|
5596 |
class getCurrentSerializedInventoryByScans_result:
|
|
|
5597 |
"""
|
|
|
5598 |
Attributes:
|
|
|
5599 |
- success
|
|
|
5600 |
"""
|
|
|
5601 |
|
|
|
5602 |
thrift_spec = (
|
|
|
5603 |
(0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
|
|
|
5604 |
)
|
|
|
5605 |
|
|
|
5606 |
def __init__(self, success=None,):
|
|
|
5607 |
self.success = success
|
|
|
5608 |
|
|
|
5609 |
def read(self, iprot):
|
|
|
5610 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5611 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5612 |
return
|
|
|
5613 |
iprot.readStructBegin()
|
|
|
5614 |
while True:
|
|
|
5615 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5616 |
if ftype == TType.STOP:
|
|
|
5617 |
break
|
|
|
5618 |
if fid == 0:
|
|
|
5619 |
if ftype == TType.LIST:
|
|
|
5620 |
self.success = []
|
| 7216 |
amar.kumar |
5621 |
(_etype80, _size77) = iprot.readListBegin()
|
|
|
5622 |
for _i81 in xrange(_size77):
|
|
|
5623 |
_elem82 = InventoryAvailability()
|
|
|
5624 |
_elem82.read(iprot)
|
|
|
5625 |
self.success.append(_elem82)
|
| 6630 |
amar.kumar |
5626 |
iprot.readListEnd()
|
|
|
5627 |
else:
|
|
|
5628 |
iprot.skip(ftype)
|
|
|
5629 |
else:
|
|
|
5630 |
iprot.skip(ftype)
|
|
|
5631 |
iprot.readFieldEnd()
|
|
|
5632 |
iprot.readStructEnd()
|
|
|
5633 |
|
|
|
5634 |
def write(self, oprot):
|
|
|
5635 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5636 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5637 |
return
|
|
|
5638 |
oprot.writeStructBegin('getCurrentSerializedInventoryByScans_result')
|
|
|
5639 |
if self.success is not None:
|
|
|
5640 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
5641 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 7216 |
amar.kumar |
5642 |
for iter83 in self.success:
|
|
|
5643 |
iter83.write(oprot)
|
| 6630 |
amar.kumar |
5644 |
oprot.writeListEnd()
|
|
|
5645 |
oprot.writeFieldEnd()
|
|
|
5646 |
oprot.writeFieldStop()
|
|
|
5647 |
oprot.writeStructEnd()
|
|
|
5648 |
|
|
|
5649 |
def validate(self):
|
|
|
5650 |
return
|
|
|
5651 |
|
|
|
5652 |
|
|
|
5653 |
def __repr__(self):
|
|
|
5654 |
L = ['%s=%r' % (key, value)
|
|
|
5655 |
for key, value in self.__dict__.iteritems()]
|
|
|
5656 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5657 |
|
|
|
5658 |
def __eq__(self, other):
|
|
|
5659 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5660 |
|
|
|
5661 |
def __ne__(self, other):
|
|
|
5662 |
return not (self == other)
|
|
|
5663 |
|
|
|
5664 |
class getCurrentNonSerializedInventoryByScans_args:
|
| 7715 |
vikram.rag |
5665 |
"""
|
|
|
5666 |
Attributes:
|
|
|
5667 |
- physicalWarehouseId
|
|
|
5668 |
"""
|
| 6630 |
amar.kumar |
5669 |
|
|
|
5670 |
thrift_spec = (
|
| 7715 |
vikram.rag |
5671 |
None, # 0
|
|
|
5672 |
(1, TType.I64, 'physicalWarehouseId', None, None, ), # 1
|
| 6630 |
amar.kumar |
5673 |
)
|
|
|
5674 |
|
| 7715 |
vikram.rag |
5675 |
def __init__(self, physicalWarehouseId=None,):
|
|
|
5676 |
self.physicalWarehouseId = physicalWarehouseId
|
|
|
5677 |
|
| 6630 |
amar.kumar |
5678 |
def read(self, iprot):
|
|
|
5679 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5680 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5681 |
return
|
|
|
5682 |
iprot.readStructBegin()
|
|
|
5683 |
while True:
|
|
|
5684 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5685 |
if ftype == TType.STOP:
|
|
|
5686 |
break
|
| 7715 |
vikram.rag |
5687 |
if fid == 1:
|
|
|
5688 |
if ftype == TType.I64:
|
|
|
5689 |
self.physicalWarehouseId = iprot.readI64();
|
|
|
5690 |
else:
|
|
|
5691 |
iprot.skip(ftype)
|
| 6630 |
amar.kumar |
5692 |
else:
|
|
|
5693 |
iprot.skip(ftype)
|
|
|
5694 |
iprot.readFieldEnd()
|
|
|
5695 |
iprot.readStructEnd()
|
|
|
5696 |
|
|
|
5697 |
def write(self, oprot):
|
|
|
5698 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5699 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5700 |
return
|
|
|
5701 |
oprot.writeStructBegin('getCurrentNonSerializedInventoryByScans_args')
|
| 7715 |
vikram.rag |
5702 |
if self.physicalWarehouseId is not None:
|
|
|
5703 |
oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 1)
|
|
|
5704 |
oprot.writeI64(self.physicalWarehouseId)
|
|
|
5705 |
oprot.writeFieldEnd()
|
| 6630 |
amar.kumar |
5706 |
oprot.writeFieldStop()
|
|
|
5707 |
oprot.writeStructEnd()
|
|
|
5708 |
|
|
|
5709 |
def validate(self):
|
|
|
5710 |
return
|
|
|
5711 |
|
|
|
5712 |
|
|
|
5713 |
def __repr__(self):
|
|
|
5714 |
L = ['%s=%r' % (key, value)
|
|
|
5715 |
for key, value in self.__dict__.iteritems()]
|
|
|
5716 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5717 |
|
|
|
5718 |
def __eq__(self, other):
|
|
|
5719 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5720 |
|
|
|
5721 |
def __ne__(self, other):
|
|
|
5722 |
return not (self == other)
|
|
|
5723 |
|
|
|
5724 |
class getCurrentNonSerializedInventoryByScans_result:
|
|
|
5725 |
"""
|
|
|
5726 |
Attributes:
|
|
|
5727 |
- success
|
|
|
5728 |
"""
|
|
|
5729 |
|
|
|
5730 |
thrift_spec = (
|
|
|
5731 |
(0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
|
|
|
5732 |
)
|
|
|
5733 |
|
|
|
5734 |
def __init__(self, success=None,):
|
|
|
5735 |
self.success = success
|
|
|
5736 |
|
|
|
5737 |
def read(self, iprot):
|
|
|
5738 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5739 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5740 |
return
|
|
|
5741 |
iprot.readStructBegin()
|
|
|
5742 |
while True:
|
|
|
5743 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5744 |
if ftype == TType.STOP:
|
|
|
5745 |
break
|
|
|
5746 |
if fid == 0:
|
|
|
5747 |
if ftype == TType.LIST:
|
|
|
5748 |
self.success = []
|
| 7216 |
amar.kumar |
5749 |
(_etype87, _size84) = iprot.readListBegin()
|
|
|
5750 |
for _i88 in xrange(_size84):
|
|
|
5751 |
_elem89 = InventoryAvailability()
|
|
|
5752 |
_elem89.read(iprot)
|
|
|
5753 |
self.success.append(_elem89)
|
| 6630 |
amar.kumar |
5754 |
iprot.readListEnd()
|
|
|
5755 |
else:
|
|
|
5756 |
iprot.skip(ftype)
|
|
|
5757 |
else:
|
|
|
5758 |
iprot.skip(ftype)
|
|
|
5759 |
iprot.readFieldEnd()
|
|
|
5760 |
iprot.readStructEnd()
|
|
|
5761 |
|
|
|
5762 |
def write(self, oprot):
|
|
|
5763 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5764 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5765 |
return
|
|
|
5766 |
oprot.writeStructBegin('getCurrentNonSerializedInventoryByScans_result')
|
|
|
5767 |
if self.success is not None:
|
|
|
5768 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
5769 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 7216 |
amar.kumar |
5770 |
for iter90 in self.success:
|
|
|
5771 |
iter90.write(oprot)
|
| 6630 |
amar.kumar |
5772 |
oprot.writeListEnd()
|
|
|
5773 |
oprot.writeFieldEnd()
|
|
|
5774 |
oprot.writeFieldStop()
|
|
|
5775 |
oprot.writeStructEnd()
|
|
|
5776 |
|
|
|
5777 |
def validate(self):
|
|
|
5778 |
return
|
|
|
5779 |
|
|
|
5780 |
|
|
|
5781 |
def __repr__(self):
|
|
|
5782 |
L = ['%s=%r' % (key, value)
|
|
|
5783 |
for key, value in self.__dict__.iteritems()]
|
|
|
5784 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5785 |
|
|
|
5786 |
def __eq__(self, other):
|
|
|
5787 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5788 |
|
|
|
5789 |
def __ne__(self, other):
|
|
|
5790 |
return not (self == other)
|
| 6762 |
amar.kumar |
5791 |
|
|
|
5792 |
class getHistoricSerializedInventoryByScans_args:
|
|
|
5793 |
"""
|
|
|
5794 |
Attributes:
|
|
|
5795 |
- date
|
|
|
5796 |
"""
|
|
|
5797 |
|
|
|
5798 |
thrift_spec = (
|
|
|
5799 |
None, # 0
|
|
|
5800 |
(1, TType.I64, 'date', None, None, ), # 1
|
|
|
5801 |
)
|
|
|
5802 |
|
|
|
5803 |
def __init__(self, date=None,):
|
|
|
5804 |
self.date = date
|
|
|
5805 |
|
|
|
5806 |
def read(self, iprot):
|
|
|
5807 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5808 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5809 |
return
|
|
|
5810 |
iprot.readStructBegin()
|
|
|
5811 |
while True:
|
|
|
5812 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5813 |
if ftype == TType.STOP:
|
|
|
5814 |
break
|
|
|
5815 |
if fid == 1:
|
|
|
5816 |
if ftype == TType.I64:
|
|
|
5817 |
self.date = iprot.readI64();
|
|
|
5818 |
else:
|
|
|
5819 |
iprot.skip(ftype)
|
|
|
5820 |
else:
|
|
|
5821 |
iprot.skip(ftype)
|
|
|
5822 |
iprot.readFieldEnd()
|
|
|
5823 |
iprot.readStructEnd()
|
|
|
5824 |
|
|
|
5825 |
def write(self, oprot):
|
|
|
5826 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5827 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5828 |
return
|
|
|
5829 |
oprot.writeStructBegin('getHistoricSerializedInventoryByScans_args')
|
|
|
5830 |
if self.date is not None:
|
|
|
5831 |
oprot.writeFieldBegin('date', TType.I64, 1)
|
|
|
5832 |
oprot.writeI64(self.date)
|
|
|
5833 |
oprot.writeFieldEnd()
|
|
|
5834 |
oprot.writeFieldStop()
|
|
|
5835 |
oprot.writeStructEnd()
|
|
|
5836 |
|
|
|
5837 |
def validate(self):
|
|
|
5838 |
return
|
|
|
5839 |
|
|
|
5840 |
|
|
|
5841 |
def __repr__(self):
|
|
|
5842 |
L = ['%s=%r' % (key, value)
|
|
|
5843 |
for key, value in self.__dict__.iteritems()]
|
|
|
5844 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5845 |
|
|
|
5846 |
def __eq__(self, other):
|
|
|
5847 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5848 |
|
|
|
5849 |
def __ne__(self, other):
|
|
|
5850 |
return not (self == other)
|
|
|
5851 |
|
|
|
5852 |
class getHistoricSerializedInventoryByScans_result:
|
|
|
5853 |
"""
|
|
|
5854 |
Attributes:
|
|
|
5855 |
- success
|
|
|
5856 |
"""
|
|
|
5857 |
|
|
|
5858 |
thrift_spec = (
|
|
|
5859 |
(0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
|
|
|
5860 |
)
|
|
|
5861 |
|
|
|
5862 |
def __init__(self, success=None,):
|
|
|
5863 |
self.success = success
|
|
|
5864 |
|
|
|
5865 |
def read(self, iprot):
|
|
|
5866 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5867 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5868 |
return
|
|
|
5869 |
iprot.readStructBegin()
|
|
|
5870 |
while True:
|
|
|
5871 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5872 |
if ftype == TType.STOP:
|
|
|
5873 |
break
|
|
|
5874 |
if fid == 0:
|
|
|
5875 |
if ftype == TType.LIST:
|
|
|
5876 |
self.success = []
|
| 7216 |
amar.kumar |
5877 |
(_etype94, _size91) = iprot.readListBegin()
|
|
|
5878 |
for _i95 in xrange(_size91):
|
|
|
5879 |
_elem96 = InventoryAvailability()
|
|
|
5880 |
_elem96.read(iprot)
|
|
|
5881 |
self.success.append(_elem96)
|
| 6762 |
amar.kumar |
5882 |
iprot.readListEnd()
|
|
|
5883 |
else:
|
|
|
5884 |
iprot.skip(ftype)
|
|
|
5885 |
else:
|
|
|
5886 |
iprot.skip(ftype)
|
|
|
5887 |
iprot.readFieldEnd()
|
|
|
5888 |
iprot.readStructEnd()
|
|
|
5889 |
|
|
|
5890 |
def write(self, oprot):
|
|
|
5891 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5892 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5893 |
return
|
|
|
5894 |
oprot.writeStructBegin('getHistoricSerializedInventoryByScans_result')
|
|
|
5895 |
if self.success is not None:
|
|
|
5896 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
5897 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 7216 |
amar.kumar |
5898 |
for iter97 in self.success:
|
|
|
5899 |
iter97.write(oprot)
|
| 6762 |
amar.kumar |
5900 |
oprot.writeListEnd()
|
|
|
5901 |
oprot.writeFieldEnd()
|
|
|
5902 |
oprot.writeFieldStop()
|
|
|
5903 |
oprot.writeStructEnd()
|
|
|
5904 |
|
|
|
5905 |
def validate(self):
|
|
|
5906 |
return
|
|
|
5907 |
|
|
|
5908 |
|
|
|
5909 |
def __repr__(self):
|
|
|
5910 |
L = ['%s=%r' % (key, value)
|
|
|
5911 |
for key, value in self.__dict__.iteritems()]
|
|
|
5912 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5913 |
|
|
|
5914 |
def __eq__(self, other):
|
|
|
5915 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5916 |
|
|
|
5917 |
def __ne__(self, other):
|
|
|
5918 |
return not (self == other)
|
|
|
5919 |
|
|
|
5920 |
class getHistoricNonSerializedInventoryByScans_args:
|
|
|
5921 |
"""
|
|
|
5922 |
Attributes:
|
|
|
5923 |
- date
|
|
|
5924 |
"""
|
|
|
5925 |
|
|
|
5926 |
thrift_spec = (
|
|
|
5927 |
None, # 0
|
|
|
5928 |
(1, TType.I64, 'date', None, None, ), # 1
|
|
|
5929 |
)
|
|
|
5930 |
|
|
|
5931 |
def __init__(self, date=None,):
|
|
|
5932 |
self.date = date
|
|
|
5933 |
|
|
|
5934 |
def read(self, iprot):
|
|
|
5935 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5936 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5937 |
return
|
|
|
5938 |
iprot.readStructBegin()
|
|
|
5939 |
while True:
|
|
|
5940 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5941 |
if ftype == TType.STOP:
|
|
|
5942 |
break
|
|
|
5943 |
if fid == 1:
|
|
|
5944 |
if ftype == TType.I64:
|
|
|
5945 |
self.date = iprot.readI64();
|
|
|
5946 |
else:
|
|
|
5947 |
iprot.skip(ftype)
|
|
|
5948 |
else:
|
|
|
5949 |
iprot.skip(ftype)
|
|
|
5950 |
iprot.readFieldEnd()
|
|
|
5951 |
iprot.readStructEnd()
|
|
|
5952 |
|
|
|
5953 |
def write(self, oprot):
|
|
|
5954 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5955 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5956 |
return
|
|
|
5957 |
oprot.writeStructBegin('getHistoricNonSerializedInventoryByScans_args')
|
|
|
5958 |
if self.date is not None:
|
|
|
5959 |
oprot.writeFieldBegin('date', TType.I64, 1)
|
|
|
5960 |
oprot.writeI64(self.date)
|
|
|
5961 |
oprot.writeFieldEnd()
|
|
|
5962 |
oprot.writeFieldStop()
|
|
|
5963 |
oprot.writeStructEnd()
|
|
|
5964 |
|
|
|
5965 |
def validate(self):
|
|
|
5966 |
return
|
|
|
5967 |
|
|
|
5968 |
|
|
|
5969 |
def __repr__(self):
|
|
|
5970 |
L = ['%s=%r' % (key, value)
|
|
|
5971 |
for key, value in self.__dict__.iteritems()]
|
|
|
5972 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5973 |
|
|
|
5974 |
def __eq__(self, other):
|
|
|
5975 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5976 |
|
|
|
5977 |
def __ne__(self, other):
|
|
|
5978 |
return not (self == other)
|
|
|
5979 |
|
|
|
5980 |
class getHistoricNonSerializedInventoryByScans_result:
|
|
|
5981 |
"""
|
|
|
5982 |
Attributes:
|
|
|
5983 |
- success
|
|
|
5984 |
"""
|
|
|
5985 |
|
|
|
5986 |
thrift_spec = (
|
|
|
5987 |
(0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
|
|
|
5988 |
)
|
|
|
5989 |
|
|
|
5990 |
def __init__(self, success=None,):
|
|
|
5991 |
self.success = success
|
|
|
5992 |
|
|
|
5993 |
def read(self, iprot):
|
|
|
5994 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5995 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5996 |
return
|
|
|
5997 |
iprot.readStructBegin()
|
|
|
5998 |
while True:
|
|
|
5999 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6000 |
if ftype == TType.STOP:
|
|
|
6001 |
break
|
|
|
6002 |
if fid == 0:
|
|
|
6003 |
if ftype == TType.LIST:
|
|
|
6004 |
self.success = []
|
| 7216 |
amar.kumar |
6005 |
(_etype101, _size98) = iprot.readListBegin()
|
|
|
6006 |
for _i102 in xrange(_size98):
|
|
|
6007 |
_elem103 = InventoryAvailability()
|
|
|
6008 |
_elem103.read(iprot)
|
|
|
6009 |
self.success.append(_elem103)
|
| 6762 |
amar.kumar |
6010 |
iprot.readListEnd()
|
|
|
6011 |
else:
|
|
|
6012 |
iprot.skip(ftype)
|
|
|
6013 |
else:
|
|
|
6014 |
iprot.skip(ftype)
|
|
|
6015 |
iprot.readFieldEnd()
|
|
|
6016 |
iprot.readStructEnd()
|
|
|
6017 |
|
|
|
6018 |
def write(self, oprot):
|
|
|
6019 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6020 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6021 |
return
|
|
|
6022 |
oprot.writeStructBegin('getHistoricNonSerializedInventoryByScans_result')
|
|
|
6023 |
if self.success is not None:
|
|
|
6024 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
6025 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 7216 |
amar.kumar |
6026 |
for iter104 in self.success:
|
|
|
6027 |
iter104.write(oprot)
|
| 6762 |
amar.kumar |
6028 |
oprot.writeListEnd()
|
|
|
6029 |
oprot.writeFieldEnd()
|
|
|
6030 |
oprot.writeFieldStop()
|
|
|
6031 |
oprot.writeStructEnd()
|
|
|
6032 |
|
|
|
6033 |
def validate(self):
|
|
|
6034 |
return
|
|
|
6035 |
|
|
|
6036 |
|
|
|
6037 |
def __repr__(self):
|
|
|
6038 |
L = ['%s=%r' % (key, value)
|
|
|
6039 |
for key, value in self.__dict__.iteritems()]
|
|
|
6040 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6041 |
|
|
|
6042 |
def __eq__(self, other):
|
|
|
6043 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6044 |
|
|
|
6045 |
def __ne__(self, other):
|
|
|
6046 |
return not (self == other)
|
|
|
6047 |
|
|
|
6048 |
class scanForOursExternalSale_args:
|
|
|
6049 |
"""
|
|
|
6050 |
Attributes:
|
|
|
6051 |
- itemId
|
|
|
6052 |
- serialNumber
|
|
|
6053 |
- itemNumber
|
|
|
6054 |
- invoiceNumber
|
|
|
6055 |
- warehouseId
|
|
|
6056 |
- unitPrice
|
| 7672 |
rajveer |
6057 |
- nlc
|
| 6762 |
amar.kumar |
6058 |
- orderId
|
|
|
6059 |
"""
|
|
|
6060 |
|
|
|
6061 |
thrift_spec = (
|
|
|
6062 |
None, # 0
|
|
|
6063 |
(1, TType.I64, 'itemId', None, None, ), # 1
|
|
|
6064 |
(2, TType.STRING, 'serialNumber', None, None, ), # 2
|
|
|
6065 |
(3, TType.STRING, 'itemNumber', None, None, ), # 3
|
|
|
6066 |
(4, TType.STRING, 'invoiceNumber', None, None, ), # 4
|
|
|
6067 |
(5, TType.I64, 'warehouseId', None, None, ), # 5
|
|
|
6068 |
(6, TType.DOUBLE, 'unitPrice', None, None, ), # 6
|
| 7672 |
rajveer |
6069 |
(7, TType.DOUBLE, 'nlc', None, None, ), # 7
|
|
|
6070 |
(8, TType.I64, 'orderId', None, None, ), # 8
|
| 6762 |
amar.kumar |
6071 |
)
|
|
|
6072 |
|
| 7672 |
rajveer |
6073 |
def __init__(self, itemId=None, serialNumber=None, itemNumber=None, invoiceNumber=None, warehouseId=None, unitPrice=None, nlc=None, orderId=None,):
|
| 6762 |
amar.kumar |
6074 |
self.itemId = itemId
|
|
|
6075 |
self.serialNumber = serialNumber
|
|
|
6076 |
self.itemNumber = itemNumber
|
|
|
6077 |
self.invoiceNumber = invoiceNumber
|
|
|
6078 |
self.warehouseId = warehouseId
|
|
|
6079 |
self.unitPrice = unitPrice
|
| 7672 |
rajveer |
6080 |
self.nlc = nlc
|
| 6762 |
amar.kumar |
6081 |
self.orderId = orderId
|
|
|
6082 |
|
|
|
6083 |
def read(self, iprot):
|
|
|
6084 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6085 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6086 |
return
|
|
|
6087 |
iprot.readStructBegin()
|
|
|
6088 |
while True:
|
|
|
6089 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6090 |
if ftype == TType.STOP:
|
|
|
6091 |
break
|
|
|
6092 |
if fid == 1:
|
|
|
6093 |
if ftype == TType.I64:
|
|
|
6094 |
self.itemId = iprot.readI64();
|
|
|
6095 |
else:
|
|
|
6096 |
iprot.skip(ftype)
|
|
|
6097 |
elif fid == 2:
|
|
|
6098 |
if ftype == TType.STRING:
|
|
|
6099 |
self.serialNumber = iprot.readString();
|
|
|
6100 |
else:
|
|
|
6101 |
iprot.skip(ftype)
|
|
|
6102 |
elif fid == 3:
|
|
|
6103 |
if ftype == TType.STRING:
|
|
|
6104 |
self.itemNumber = iprot.readString();
|
|
|
6105 |
else:
|
|
|
6106 |
iprot.skip(ftype)
|
|
|
6107 |
elif fid == 4:
|
|
|
6108 |
if ftype == TType.STRING:
|
|
|
6109 |
self.invoiceNumber = iprot.readString();
|
|
|
6110 |
else:
|
|
|
6111 |
iprot.skip(ftype)
|
|
|
6112 |
elif fid == 5:
|
|
|
6113 |
if ftype == TType.I64:
|
|
|
6114 |
self.warehouseId = iprot.readI64();
|
|
|
6115 |
else:
|
|
|
6116 |
iprot.skip(ftype)
|
|
|
6117 |
elif fid == 6:
|
|
|
6118 |
if ftype == TType.DOUBLE:
|
|
|
6119 |
self.unitPrice = iprot.readDouble();
|
|
|
6120 |
else:
|
|
|
6121 |
iprot.skip(ftype)
|
|
|
6122 |
elif fid == 7:
|
| 7672 |
rajveer |
6123 |
if ftype == TType.DOUBLE:
|
|
|
6124 |
self.nlc = iprot.readDouble();
|
|
|
6125 |
else:
|
|
|
6126 |
iprot.skip(ftype)
|
|
|
6127 |
elif fid == 8:
|
| 6762 |
amar.kumar |
6128 |
if ftype == TType.I64:
|
|
|
6129 |
self.orderId = iprot.readI64();
|
|
|
6130 |
else:
|
|
|
6131 |
iprot.skip(ftype)
|
|
|
6132 |
else:
|
|
|
6133 |
iprot.skip(ftype)
|
|
|
6134 |
iprot.readFieldEnd()
|
|
|
6135 |
iprot.readStructEnd()
|
|
|
6136 |
|
|
|
6137 |
def write(self, oprot):
|
|
|
6138 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6139 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6140 |
return
|
|
|
6141 |
oprot.writeStructBegin('scanForOursExternalSale_args')
|
|
|
6142 |
if self.itemId is not None:
|
|
|
6143 |
oprot.writeFieldBegin('itemId', TType.I64, 1)
|
|
|
6144 |
oprot.writeI64(self.itemId)
|
|
|
6145 |
oprot.writeFieldEnd()
|
|
|
6146 |
if self.serialNumber is not None:
|
|
|
6147 |
oprot.writeFieldBegin('serialNumber', TType.STRING, 2)
|
|
|
6148 |
oprot.writeString(self.serialNumber)
|
|
|
6149 |
oprot.writeFieldEnd()
|
|
|
6150 |
if self.itemNumber is not None:
|
|
|
6151 |
oprot.writeFieldBegin('itemNumber', TType.STRING, 3)
|
|
|
6152 |
oprot.writeString(self.itemNumber)
|
|
|
6153 |
oprot.writeFieldEnd()
|
|
|
6154 |
if self.invoiceNumber is not None:
|
|
|
6155 |
oprot.writeFieldBegin('invoiceNumber', TType.STRING, 4)
|
|
|
6156 |
oprot.writeString(self.invoiceNumber)
|
|
|
6157 |
oprot.writeFieldEnd()
|
|
|
6158 |
if self.warehouseId is not None:
|
|
|
6159 |
oprot.writeFieldBegin('warehouseId', TType.I64, 5)
|
|
|
6160 |
oprot.writeI64(self.warehouseId)
|
|
|
6161 |
oprot.writeFieldEnd()
|
|
|
6162 |
if self.unitPrice is not None:
|
|
|
6163 |
oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 6)
|
|
|
6164 |
oprot.writeDouble(self.unitPrice)
|
|
|
6165 |
oprot.writeFieldEnd()
|
| 7672 |
rajveer |
6166 |
if self.nlc is not None:
|
|
|
6167 |
oprot.writeFieldBegin('nlc', TType.DOUBLE, 7)
|
|
|
6168 |
oprot.writeDouble(self.nlc)
|
|
|
6169 |
oprot.writeFieldEnd()
|
| 6762 |
amar.kumar |
6170 |
if self.orderId is not None:
|
| 7672 |
rajveer |
6171 |
oprot.writeFieldBegin('orderId', TType.I64, 8)
|
| 6762 |
amar.kumar |
6172 |
oprot.writeI64(self.orderId)
|
|
|
6173 |
oprot.writeFieldEnd()
|
|
|
6174 |
oprot.writeFieldStop()
|
|
|
6175 |
oprot.writeStructEnd()
|
|
|
6176 |
|
|
|
6177 |
def validate(self):
|
|
|
6178 |
return
|
|
|
6179 |
|
|
|
6180 |
|
|
|
6181 |
def __repr__(self):
|
|
|
6182 |
L = ['%s=%r' % (key, value)
|
|
|
6183 |
for key, value in self.__dict__.iteritems()]
|
|
|
6184 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6185 |
|
|
|
6186 |
def __eq__(self, other):
|
|
|
6187 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6188 |
|
|
|
6189 |
def __ne__(self, other):
|
|
|
6190 |
return not (self == other)
|
|
|
6191 |
|
|
|
6192 |
class scanForOursExternalSale_result:
|
|
|
6193 |
"""
|
|
|
6194 |
Attributes:
|
|
|
6195 |
- success
|
|
|
6196 |
- ex
|
|
|
6197 |
"""
|
|
|
6198 |
|
|
|
6199 |
thrift_spec = (
|
|
|
6200 |
(0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
|
|
|
6201 |
(1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
6202 |
)
|
|
|
6203 |
|
|
|
6204 |
def __init__(self, success=None, ex=None,):
|
|
|
6205 |
self.success = success
|
|
|
6206 |
self.ex = ex
|
|
|
6207 |
|
|
|
6208 |
def read(self, iprot):
|
|
|
6209 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6210 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6211 |
return
|
|
|
6212 |
iprot.readStructBegin()
|
|
|
6213 |
while True:
|
|
|
6214 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6215 |
if ftype == TType.STOP:
|
|
|
6216 |
break
|
|
|
6217 |
if fid == 0:
|
|
|
6218 |
if ftype == TType.STRUCT:
|
|
|
6219 |
self.success = InventoryItem()
|
|
|
6220 |
self.success.read(iprot)
|
|
|
6221 |
else:
|
|
|
6222 |
iprot.skip(ftype)
|
|
|
6223 |
elif fid == 1:
|
|
|
6224 |
if ftype == TType.STRUCT:
|
|
|
6225 |
self.ex = WarehouseServiceException()
|
|
|
6226 |
self.ex.read(iprot)
|
|
|
6227 |
else:
|
|
|
6228 |
iprot.skip(ftype)
|
|
|
6229 |
else:
|
|
|
6230 |
iprot.skip(ftype)
|
|
|
6231 |
iprot.readFieldEnd()
|
|
|
6232 |
iprot.readStructEnd()
|
|
|
6233 |
|
|
|
6234 |
def write(self, oprot):
|
|
|
6235 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6236 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6237 |
return
|
|
|
6238 |
oprot.writeStructBegin('scanForOursExternalSale_result')
|
|
|
6239 |
if self.success is not None:
|
|
|
6240 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
6241 |
self.success.write(oprot)
|
|
|
6242 |
oprot.writeFieldEnd()
|
|
|
6243 |
if self.ex is not None:
|
|
|
6244 |
oprot.writeFieldBegin('ex', TType.STRUCT, 1)
|
|
|
6245 |
self.ex.write(oprot)
|
|
|
6246 |
oprot.writeFieldEnd()
|
|
|
6247 |
oprot.writeFieldStop()
|
|
|
6248 |
oprot.writeStructEnd()
|
|
|
6249 |
|
|
|
6250 |
def validate(self):
|
|
|
6251 |
return
|
|
|
6252 |
|
|
|
6253 |
|
|
|
6254 |
def __repr__(self):
|
|
|
6255 |
L = ['%s=%r' % (key, value)
|
|
|
6256 |
for key, value in self.__dict__.iteritems()]
|
|
|
6257 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6258 |
|
|
|
6259 |
def __eq__(self, other):
|
|
|
6260 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6261 |
|
|
|
6262 |
def __ne__(self, other):
|
|
|
6263 |
return not (self == other)
|
|
|
6264 |
|
|
|
6265 |
class scanForOursExternalSaleReturn_args:
|
|
|
6266 |
"""
|
|
|
6267 |
Attributes:
|
|
|
6268 |
- orderId
|
|
|
6269 |
- unitPrice
|
|
|
6270 |
"""
|
|
|
6271 |
|
|
|
6272 |
thrift_spec = (
|
|
|
6273 |
None, # 0
|
|
|
6274 |
(1, TType.I64, 'orderId', None, None, ), # 1
|
|
|
6275 |
(2, TType.DOUBLE, 'unitPrice', None, None, ), # 2
|
|
|
6276 |
)
|
|
|
6277 |
|
|
|
6278 |
def __init__(self, orderId=None, unitPrice=None,):
|
|
|
6279 |
self.orderId = orderId
|
|
|
6280 |
self.unitPrice = unitPrice
|
|
|
6281 |
|
|
|
6282 |
def read(self, iprot):
|
|
|
6283 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6284 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6285 |
return
|
|
|
6286 |
iprot.readStructBegin()
|
|
|
6287 |
while True:
|
|
|
6288 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6289 |
if ftype == TType.STOP:
|
|
|
6290 |
break
|
|
|
6291 |
if fid == 1:
|
|
|
6292 |
if ftype == TType.I64:
|
|
|
6293 |
self.orderId = iprot.readI64();
|
|
|
6294 |
else:
|
|
|
6295 |
iprot.skip(ftype)
|
|
|
6296 |
elif fid == 2:
|
|
|
6297 |
if ftype == TType.DOUBLE:
|
|
|
6298 |
self.unitPrice = iprot.readDouble();
|
|
|
6299 |
else:
|
|
|
6300 |
iprot.skip(ftype)
|
|
|
6301 |
else:
|
|
|
6302 |
iprot.skip(ftype)
|
|
|
6303 |
iprot.readFieldEnd()
|
|
|
6304 |
iprot.readStructEnd()
|
|
|
6305 |
|
|
|
6306 |
def write(self, oprot):
|
|
|
6307 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6308 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6309 |
return
|
|
|
6310 |
oprot.writeStructBegin('scanForOursExternalSaleReturn_args')
|
|
|
6311 |
if self.orderId is not None:
|
|
|
6312 |
oprot.writeFieldBegin('orderId', TType.I64, 1)
|
|
|
6313 |
oprot.writeI64(self.orderId)
|
|
|
6314 |
oprot.writeFieldEnd()
|
|
|
6315 |
if self.unitPrice is not None:
|
|
|
6316 |
oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 2)
|
|
|
6317 |
oprot.writeDouble(self.unitPrice)
|
|
|
6318 |
oprot.writeFieldEnd()
|
|
|
6319 |
oprot.writeFieldStop()
|
|
|
6320 |
oprot.writeStructEnd()
|
|
|
6321 |
|
|
|
6322 |
def validate(self):
|
|
|
6323 |
return
|
|
|
6324 |
|
|
|
6325 |
|
|
|
6326 |
def __repr__(self):
|
|
|
6327 |
L = ['%s=%r' % (key, value)
|
|
|
6328 |
for key, value in self.__dict__.iteritems()]
|
|
|
6329 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6330 |
|
|
|
6331 |
def __eq__(self, other):
|
|
|
6332 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6333 |
|
|
|
6334 |
def __ne__(self, other):
|
|
|
6335 |
return not (self == other)
|
|
|
6336 |
|
|
|
6337 |
class scanForOursExternalSaleReturn_result:
|
| 7410 |
amar.kumar |
6338 |
"""
|
|
|
6339 |
Attributes:
|
|
|
6340 |
- ex
|
|
|
6341 |
"""
|
| 6762 |
amar.kumar |
6342 |
|
|
|
6343 |
thrift_spec = (
|
| 7410 |
amar.kumar |
6344 |
None, # 0
|
|
|
6345 |
(1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
| 6762 |
amar.kumar |
6346 |
)
|
|
|
6347 |
|
| 7410 |
amar.kumar |
6348 |
def __init__(self, ex=None,):
|
|
|
6349 |
self.ex = ex
|
|
|
6350 |
|
| 6762 |
amar.kumar |
6351 |
def read(self, iprot):
|
|
|
6352 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6353 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6354 |
return
|
|
|
6355 |
iprot.readStructBegin()
|
|
|
6356 |
while True:
|
|
|
6357 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6358 |
if ftype == TType.STOP:
|
|
|
6359 |
break
|
| 7410 |
amar.kumar |
6360 |
if fid == 1:
|
|
|
6361 |
if ftype == TType.STRUCT:
|
|
|
6362 |
self.ex = WarehouseServiceException()
|
|
|
6363 |
self.ex.read(iprot)
|
|
|
6364 |
else:
|
|
|
6365 |
iprot.skip(ftype)
|
| 6762 |
amar.kumar |
6366 |
else:
|
|
|
6367 |
iprot.skip(ftype)
|
|
|
6368 |
iprot.readFieldEnd()
|
|
|
6369 |
iprot.readStructEnd()
|
|
|
6370 |
|
|
|
6371 |
def write(self, oprot):
|
|
|
6372 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6373 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6374 |
return
|
|
|
6375 |
oprot.writeStructBegin('scanForOursExternalSaleReturn_result')
|
| 7410 |
amar.kumar |
6376 |
if self.ex is not None:
|
|
|
6377 |
oprot.writeFieldBegin('ex', TType.STRUCT, 1)
|
|
|
6378 |
self.ex.write(oprot)
|
|
|
6379 |
oprot.writeFieldEnd()
|
| 6762 |
amar.kumar |
6380 |
oprot.writeFieldStop()
|
|
|
6381 |
oprot.writeStructEnd()
|
|
|
6382 |
|
|
|
6383 |
def validate(self):
|
|
|
6384 |
return
|
|
|
6385 |
|
|
|
6386 |
|
|
|
6387 |
def __repr__(self):
|
|
|
6388 |
L = ['%s=%r' % (key, value)
|
|
|
6389 |
for key, value in self.__dict__.iteritems()]
|
|
|
6390 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6391 |
|
|
|
6392 |
def __eq__(self, other):
|
|
|
6393 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6394 |
|
|
|
6395 |
def __ne__(self, other):
|
|
|
6396 |
return not (self == other)
|
| 6880 |
amar.kumar |
6397 |
|
|
|
6398 |
class getMovementNonSerializedInventoryByScans_args:
|
|
|
6399 |
"""
|
|
|
6400 |
Attributes:
|
|
|
6401 |
- startDate
|
|
|
6402 |
- endDate
|
|
|
6403 |
"""
|
|
|
6404 |
|
|
|
6405 |
thrift_spec = (
|
|
|
6406 |
None, # 0
|
|
|
6407 |
(1, TType.I64, 'startDate', None, None, ), # 1
|
|
|
6408 |
(2, TType.I64, 'endDate', None, None, ), # 2
|
|
|
6409 |
)
|
|
|
6410 |
|
|
|
6411 |
def __init__(self, startDate=None, endDate=None,):
|
|
|
6412 |
self.startDate = startDate
|
|
|
6413 |
self.endDate = endDate
|
|
|
6414 |
|
|
|
6415 |
def read(self, iprot):
|
|
|
6416 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6417 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6418 |
return
|
|
|
6419 |
iprot.readStructBegin()
|
|
|
6420 |
while True:
|
|
|
6421 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6422 |
if ftype == TType.STOP:
|
|
|
6423 |
break
|
|
|
6424 |
if fid == 1:
|
|
|
6425 |
if ftype == TType.I64:
|
|
|
6426 |
self.startDate = iprot.readI64();
|
|
|
6427 |
else:
|
|
|
6428 |
iprot.skip(ftype)
|
|
|
6429 |
elif fid == 2:
|
|
|
6430 |
if ftype == TType.I64:
|
|
|
6431 |
self.endDate = iprot.readI64();
|
|
|
6432 |
else:
|
|
|
6433 |
iprot.skip(ftype)
|
|
|
6434 |
else:
|
|
|
6435 |
iprot.skip(ftype)
|
|
|
6436 |
iprot.readFieldEnd()
|
|
|
6437 |
iprot.readStructEnd()
|
|
|
6438 |
|
|
|
6439 |
def write(self, oprot):
|
|
|
6440 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6441 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6442 |
return
|
|
|
6443 |
oprot.writeStructBegin('getMovementNonSerializedInventoryByScans_args')
|
|
|
6444 |
if self.startDate is not None:
|
|
|
6445 |
oprot.writeFieldBegin('startDate', TType.I64, 1)
|
|
|
6446 |
oprot.writeI64(self.startDate)
|
|
|
6447 |
oprot.writeFieldEnd()
|
|
|
6448 |
if self.endDate is not None:
|
|
|
6449 |
oprot.writeFieldBegin('endDate', TType.I64, 2)
|
|
|
6450 |
oprot.writeI64(self.endDate)
|
|
|
6451 |
oprot.writeFieldEnd()
|
|
|
6452 |
oprot.writeFieldStop()
|
|
|
6453 |
oprot.writeStructEnd()
|
|
|
6454 |
|
|
|
6455 |
def validate(self):
|
|
|
6456 |
return
|
|
|
6457 |
|
|
|
6458 |
|
|
|
6459 |
def __repr__(self):
|
|
|
6460 |
L = ['%s=%r' % (key, value)
|
|
|
6461 |
for key, value in self.__dict__.iteritems()]
|
|
|
6462 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6463 |
|
|
|
6464 |
def __eq__(self, other):
|
|
|
6465 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6466 |
|
|
|
6467 |
def __ne__(self, other):
|
|
|
6468 |
return not (self == other)
|
|
|
6469 |
|
|
|
6470 |
class getMovementNonSerializedInventoryByScans_result:
|
|
|
6471 |
"""
|
|
|
6472 |
Attributes:
|
|
|
6473 |
- success
|
|
|
6474 |
"""
|
|
|
6475 |
|
|
|
6476 |
thrift_spec = (
|
|
|
6477 |
(0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
|
|
|
6478 |
)
|
|
|
6479 |
|
|
|
6480 |
def __init__(self, success=None,):
|
|
|
6481 |
self.success = success
|
|
|
6482 |
|
|
|
6483 |
def read(self, iprot):
|
|
|
6484 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6485 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6486 |
return
|
|
|
6487 |
iprot.readStructBegin()
|
|
|
6488 |
while True:
|
|
|
6489 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6490 |
if ftype == TType.STOP:
|
|
|
6491 |
break
|
|
|
6492 |
if fid == 0:
|
|
|
6493 |
if ftype == TType.LIST:
|
|
|
6494 |
self.success = []
|
| 7216 |
amar.kumar |
6495 |
(_etype108, _size105) = iprot.readListBegin()
|
|
|
6496 |
for _i109 in xrange(_size105):
|
|
|
6497 |
_elem110 = InventoryMovement()
|
|
|
6498 |
_elem110.read(iprot)
|
|
|
6499 |
self.success.append(_elem110)
|
| 6880 |
amar.kumar |
6500 |
iprot.readListEnd()
|
|
|
6501 |
else:
|
|
|
6502 |
iprot.skip(ftype)
|
|
|
6503 |
else:
|
|
|
6504 |
iprot.skip(ftype)
|
|
|
6505 |
iprot.readFieldEnd()
|
|
|
6506 |
iprot.readStructEnd()
|
|
|
6507 |
|
|
|
6508 |
def write(self, oprot):
|
|
|
6509 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6510 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6511 |
return
|
|
|
6512 |
oprot.writeStructBegin('getMovementNonSerializedInventoryByScans_result')
|
|
|
6513 |
if self.success is not None:
|
|
|
6514 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
6515 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 7216 |
amar.kumar |
6516 |
for iter111 in self.success:
|
|
|
6517 |
iter111.write(oprot)
|
| 6880 |
amar.kumar |
6518 |
oprot.writeListEnd()
|
|
|
6519 |
oprot.writeFieldEnd()
|
|
|
6520 |
oprot.writeFieldStop()
|
|
|
6521 |
oprot.writeStructEnd()
|
|
|
6522 |
|
|
|
6523 |
def validate(self):
|
|
|
6524 |
return
|
|
|
6525 |
|
|
|
6526 |
|
|
|
6527 |
def __repr__(self):
|
|
|
6528 |
L = ['%s=%r' % (key, value)
|
|
|
6529 |
for key, value in self.__dict__.iteritems()]
|
|
|
6530 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6531 |
|
|
|
6532 |
def __eq__(self, other):
|
|
|
6533 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6534 |
|
|
|
6535 |
def __ne__(self, other):
|
|
|
6536 |
return not (self == other)
|
|
|
6537 |
|
|
|
6538 |
class getMovementSerializedInventoryByScans_args:
|
|
|
6539 |
"""
|
|
|
6540 |
Attributes:
|
|
|
6541 |
- startDate
|
|
|
6542 |
- endDate
|
|
|
6543 |
"""
|
|
|
6544 |
|
|
|
6545 |
thrift_spec = (
|
|
|
6546 |
None, # 0
|
|
|
6547 |
(1, TType.I64, 'startDate', None, None, ), # 1
|
|
|
6548 |
(2, TType.I64, 'endDate', None, None, ), # 2
|
|
|
6549 |
)
|
|
|
6550 |
|
|
|
6551 |
def __init__(self, startDate=None, endDate=None,):
|
|
|
6552 |
self.startDate = startDate
|
|
|
6553 |
self.endDate = endDate
|
|
|
6554 |
|
|
|
6555 |
def read(self, iprot):
|
|
|
6556 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6557 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6558 |
return
|
|
|
6559 |
iprot.readStructBegin()
|
|
|
6560 |
while True:
|
|
|
6561 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6562 |
if ftype == TType.STOP:
|
|
|
6563 |
break
|
|
|
6564 |
if fid == 1:
|
|
|
6565 |
if ftype == TType.I64:
|
|
|
6566 |
self.startDate = iprot.readI64();
|
|
|
6567 |
else:
|
|
|
6568 |
iprot.skip(ftype)
|
|
|
6569 |
elif fid == 2:
|
|
|
6570 |
if ftype == TType.I64:
|
|
|
6571 |
self.endDate = iprot.readI64();
|
|
|
6572 |
else:
|
|
|
6573 |
iprot.skip(ftype)
|
|
|
6574 |
else:
|
|
|
6575 |
iprot.skip(ftype)
|
|
|
6576 |
iprot.readFieldEnd()
|
|
|
6577 |
iprot.readStructEnd()
|
|
|
6578 |
|
|
|
6579 |
def write(self, oprot):
|
|
|
6580 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6581 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6582 |
return
|
|
|
6583 |
oprot.writeStructBegin('getMovementSerializedInventoryByScans_args')
|
|
|
6584 |
if self.startDate is not None:
|
|
|
6585 |
oprot.writeFieldBegin('startDate', TType.I64, 1)
|
|
|
6586 |
oprot.writeI64(self.startDate)
|
|
|
6587 |
oprot.writeFieldEnd()
|
|
|
6588 |
if self.endDate is not None:
|
|
|
6589 |
oprot.writeFieldBegin('endDate', TType.I64, 2)
|
|
|
6590 |
oprot.writeI64(self.endDate)
|
|
|
6591 |
oprot.writeFieldEnd()
|
|
|
6592 |
oprot.writeFieldStop()
|
|
|
6593 |
oprot.writeStructEnd()
|
|
|
6594 |
|
|
|
6595 |
def validate(self):
|
|
|
6596 |
return
|
|
|
6597 |
|
|
|
6598 |
|
|
|
6599 |
def __repr__(self):
|
|
|
6600 |
L = ['%s=%r' % (key, value)
|
|
|
6601 |
for key, value in self.__dict__.iteritems()]
|
|
|
6602 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6603 |
|
|
|
6604 |
def __eq__(self, other):
|
|
|
6605 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6606 |
|
|
|
6607 |
def __ne__(self, other):
|
|
|
6608 |
return not (self == other)
|
|
|
6609 |
|
|
|
6610 |
class getMovementSerializedInventoryByScans_result:
|
|
|
6611 |
"""
|
|
|
6612 |
Attributes:
|
|
|
6613 |
- success
|
|
|
6614 |
"""
|
|
|
6615 |
|
|
|
6616 |
thrift_spec = (
|
|
|
6617 |
(0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
|
|
|
6618 |
)
|
|
|
6619 |
|
|
|
6620 |
def __init__(self, success=None,):
|
|
|
6621 |
self.success = success
|
|
|
6622 |
|
|
|
6623 |
def read(self, iprot):
|
|
|
6624 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6625 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6626 |
return
|
|
|
6627 |
iprot.readStructBegin()
|
|
|
6628 |
while True:
|
|
|
6629 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6630 |
if ftype == TType.STOP:
|
|
|
6631 |
break
|
|
|
6632 |
if fid == 0:
|
|
|
6633 |
if ftype == TType.LIST:
|
|
|
6634 |
self.success = []
|
| 7216 |
amar.kumar |
6635 |
(_etype115, _size112) = iprot.readListBegin()
|
|
|
6636 |
for _i116 in xrange(_size112):
|
|
|
6637 |
_elem117 = InventoryMovement()
|
|
|
6638 |
_elem117.read(iprot)
|
|
|
6639 |
self.success.append(_elem117)
|
| 6880 |
amar.kumar |
6640 |
iprot.readListEnd()
|
|
|
6641 |
else:
|
|
|
6642 |
iprot.skip(ftype)
|
|
|
6643 |
else:
|
|
|
6644 |
iprot.skip(ftype)
|
|
|
6645 |
iprot.readFieldEnd()
|
|
|
6646 |
iprot.readStructEnd()
|
|
|
6647 |
|
|
|
6648 |
def write(self, oprot):
|
|
|
6649 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6650 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6651 |
return
|
|
|
6652 |
oprot.writeStructBegin('getMovementSerializedInventoryByScans_result')
|
|
|
6653 |
if self.success is not None:
|
|
|
6654 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
6655 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| 7216 |
amar.kumar |
6656 |
for iter118 in self.success:
|
|
|
6657 |
iter118.write(oprot)
|
| 6880 |
amar.kumar |
6658 |
oprot.writeListEnd()
|
|
|
6659 |
oprot.writeFieldEnd()
|
|
|
6660 |
oprot.writeFieldStop()
|
|
|
6661 |
oprot.writeStructEnd()
|
|
|
6662 |
|
|
|
6663 |
def validate(self):
|
|
|
6664 |
return
|
|
|
6665 |
|
|
|
6666 |
|
|
|
6667 |
def __repr__(self):
|
|
|
6668 |
L = ['%s=%r' % (key, value)
|
|
|
6669 |
for key, value in self.__dict__.iteritems()]
|
|
|
6670 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6671 |
|
|
|
6672 |
def __eq__(self, other):
|
|
|
6673 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6674 |
|
|
|
6675 |
def __ne__(self, other):
|
|
|
6676 |
return not (self == other)
|
| 7190 |
amar.kumar |
6677 |
|
| 7216 |
amar.kumar |
6678 |
class getCompleteMovementSerializedInventoryByScans_args:
|
|
|
6679 |
"""
|
|
|
6680 |
Attributes:
|
|
|
6681 |
- startDate
|
|
|
6682 |
- endDate
|
|
|
6683 |
"""
|
|
|
6684 |
|
|
|
6685 |
thrift_spec = (
|
|
|
6686 |
None, # 0
|
|
|
6687 |
(1, TType.I64, 'startDate', None, None, ), # 1
|
|
|
6688 |
(2, TType.I64, 'endDate', None, None, ), # 2
|
|
|
6689 |
)
|
|
|
6690 |
|
|
|
6691 |
def __init__(self, startDate=None, endDate=None,):
|
|
|
6692 |
self.startDate = startDate
|
|
|
6693 |
self.endDate = endDate
|
|
|
6694 |
|
|
|
6695 |
def read(self, iprot):
|
|
|
6696 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6697 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6698 |
return
|
|
|
6699 |
iprot.readStructBegin()
|
|
|
6700 |
while True:
|
|
|
6701 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6702 |
if ftype == TType.STOP:
|
|
|
6703 |
break
|
|
|
6704 |
if fid == 1:
|
|
|
6705 |
if ftype == TType.I64:
|
|
|
6706 |
self.startDate = iprot.readI64();
|
|
|
6707 |
else:
|
|
|
6708 |
iprot.skip(ftype)
|
|
|
6709 |
elif fid == 2:
|
|
|
6710 |
if ftype == TType.I64:
|
|
|
6711 |
self.endDate = iprot.readI64();
|
|
|
6712 |
else:
|
|
|
6713 |
iprot.skip(ftype)
|
|
|
6714 |
else:
|
|
|
6715 |
iprot.skip(ftype)
|
|
|
6716 |
iprot.readFieldEnd()
|
|
|
6717 |
iprot.readStructEnd()
|
|
|
6718 |
|
|
|
6719 |
def write(self, oprot):
|
|
|
6720 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6721 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6722 |
return
|
|
|
6723 |
oprot.writeStructBegin('getCompleteMovementSerializedInventoryByScans_args')
|
|
|
6724 |
if self.startDate is not None:
|
|
|
6725 |
oprot.writeFieldBegin('startDate', TType.I64, 1)
|
|
|
6726 |
oprot.writeI64(self.startDate)
|
|
|
6727 |
oprot.writeFieldEnd()
|
|
|
6728 |
if self.endDate is not None:
|
|
|
6729 |
oprot.writeFieldBegin('endDate', TType.I64, 2)
|
|
|
6730 |
oprot.writeI64(self.endDate)
|
|
|
6731 |
oprot.writeFieldEnd()
|
|
|
6732 |
oprot.writeFieldStop()
|
|
|
6733 |
oprot.writeStructEnd()
|
|
|
6734 |
|
|
|
6735 |
def validate(self):
|
|
|
6736 |
return
|
|
|
6737 |
|
|
|
6738 |
|
|
|
6739 |
def __repr__(self):
|
|
|
6740 |
L = ['%s=%r' % (key, value)
|
|
|
6741 |
for key, value in self.__dict__.iteritems()]
|
|
|
6742 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6743 |
|
|
|
6744 |
def __eq__(self, other):
|
|
|
6745 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6746 |
|
|
|
6747 |
def __ne__(self, other):
|
|
|
6748 |
return not (self == other)
|
|
|
6749 |
|
|
|
6750 |
class getCompleteMovementSerializedInventoryByScans_result:
|
|
|
6751 |
"""
|
|
|
6752 |
Attributes:
|
|
|
6753 |
- success
|
|
|
6754 |
"""
|
|
|
6755 |
|
|
|
6756 |
thrift_spec = (
|
|
|
6757 |
(0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
|
|
|
6758 |
)
|
|
|
6759 |
|
|
|
6760 |
def __init__(self, success=None,):
|
|
|
6761 |
self.success = success
|
|
|
6762 |
|
|
|
6763 |
def read(self, iprot):
|
|
|
6764 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6765 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6766 |
return
|
|
|
6767 |
iprot.readStructBegin()
|
|
|
6768 |
while True:
|
|
|
6769 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6770 |
if ftype == TType.STOP:
|
|
|
6771 |
break
|
|
|
6772 |
if fid == 0:
|
|
|
6773 |
if ftype == TType.LIST:
|
|
|
6774 |
self.success = []
|
|
|
6775 |
(_etype122, _size119) = iprot.readListBegin()
|
|
|
6776 |
for _i123 in xrange(_size119):
|
|
|
6777 |
_elem124 = InventoryMovement()
|
|
|
6778 |
_elem124.read(iprot)
|
|
|
6779 |
self.success.append(_elem124)
|
|
|
6780 |
iprot.readListEnd()
|
|
|
6781 |
else:
|
|
|
6782 |
iprot.skip(ftype)
|
|
|
6783 |
else:
|
|
|
6784 |
iprot.skip(ftype)
|
|
|
6785 |
iprot.readFieldEnd()
|
|
|
6786 |
iprot.readStructEnd()
|
|
|
6787 |
|
|
|
6788 |
def write(self, oprot):
|
|
|
6789 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6790 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6791 |
return
|
|
|
6792 |
oprot.writeStructBegin('getCompleteMovementSerializedInventoryByScans_result')
|
|
|
6793 |
if self.success is not None:
|
|
|
6794 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
6795 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
6796 |
for iter125 in self.success:
|
|
|
6797 |
iter125.write(oprot)
|
|
|
6798 |
oprot.writeListEnd()
|
|
|
6799 |
oprot.writeFieldEnd()
|
|
|
6800 |
oprot.writeFieldStop()
|
|
|
6801 |
oprot.writeStructEnd()
|
|
|
6802 |
|
|
|
6803 |
def validate(self):
|
|
|
6804 |
return
|
|
|
6805 |
|
|
|
6806 |
|
|
|
6807 |
def __repr__(self):
|
|
|
6808 |
L = ['%s=%r' % (key, value)
|
|
|
6809 |
for key, value in self.__dict__.iteritems()]
|
|
|
6810 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6811 |
|
|
|
6812 |
def __eq__(self, other):
|
|
|
6813 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6814 |
|
|
|
6815 |
def __ne__(self, other):
|
|
|
6816 |
return not (self == other)
|
|
|
6817 |
|
|
|
6818 |
class getCompleteMovementNonSerializedInventoryByScans_args:
|
|
|
6819 |
"""
|
|
|
6820 |
Attributes:
|
|
|
6821 |
- startDate
|
|
|
6822 |
- endDate
|
|
|
6823 |
"""
|
|
|
6824 |
|
|
|
6825 |
thrift_spec = (
|
|
|
6826 |
None, # 0
|
|
|
6827 |
(1, TType.I64, 'startDate', None, None, ), # 1
|
|
|
6828 |
(2, TType.I64, 'endDate', None, None, ), # 2
|
|
|
6829 |
)
|
|
|
6830 |
|
|
|
6831 |
def __init__(self, startDate=None, endDate=None,):
|
|
|
6832 |
self.startDate = startDate
|
|
|
6833 |
self.endDate = endDate
|
|
|
6834 |
|
|
|
6835 |
def read(self, iprot):
|
|
|
6836 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6837 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6838 |
return
|
|
|
6839 |
iprot.readStructBegin()
|
|
|
6840 |
while True:
|
|
|
6841 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6842 |
if ftype == TType.STOP:
|
|
|
6843 |
break
|
|
|
6844 |
if fid == 1:
|
|
|
6845 |
if ftype == TType.I64:
|
|
|
6846 |
self.startDate = iprot.readI64();
|
|
|
6847 |
else:
|
|
|
6848 |
iprot.skip(ftype)
|
|
|
6849 |
elif fid == 2:
|
|
|
6850 |
if ftype == TType.I64:
|
|
|
6851 |
self.endDate = iprot.readI64();
|
|
|
6852 |
else:
|
|
|
6853 |
iprot.skip(ftype)
|
|
|
6854 |
else:
|
|
|
6855 |
iprot.skip(ftype)
|
|
|
6856 |
iprot.readFieldEnd()
|
|
|
6857 |
iprot.readStructEnd()
|
|
|
6858 |
|
|
|
6859 |
def write(self, oprot):
|
|
|
6860 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6861 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6862 |
return
|
|
|
6863 |
oprot.writeStructBegin('getCompleteMovementNonSerializedInventoryByScans_args')
|
|
|
6864 |
if self.startDate is not None:
|
|
|
6865 |
oprot.writeFieldBegin('startDate', TType.I64, 1)
|
|
|
6866 |
oprot.writeI64(self.startDate)
|
|
|
6867 |
oprot.writeFieldEnd()
|
|
|
6868 |
if self.endDate is not None:
|
|
|
6869 |
oprot.writeFieldBegin('endDate', TType.I64, 2)
|
|
|
6870 |
oprot.writeI64(self.endDate)
|
|
|
6871 |
oprot.writeFieldEnd()
|
|
|
6872 |
oprot.writeFieldStop()
|
|
|
6873 |
oprot.writeStructEnd()
|
|
|
6874 |
|
|
|
6875 |
def validate(self):
|
|
|
6876 |
return
|
|
|
6877 |
|
|
|
6878 |
|
|
|
6879 |
def __repr__(self):
|
|
|
6880 |
L = ['%s=%r' % (key, value)
|
|
|
6881 |
for key, value in self.__dict__.iteritems()]
|
|
|
6882 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6883 |
|
|
|
6884 |
def __eq__(self, other):
|
|
|
6885 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6886 |
|
|
|
6887 |
def __ne__(self, other):
|
|
|
6888 |
return not (self == other)
|
|
|
6889 |
|
|
|
6890 |
class getCompleteMovementNonSerializedInventoryByScans_result:
|
|
|
6891 |
"""
|
|
|
6892 |
Attributes:
|
|
|
6893 |
- success
|
|
|
6894 |
"""
|
|
|
6895 |
|
|
|
6896 |
thrift_spec = (
|
|
|
6897 |
(0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
|
|
|
6898 |
)
|
|
|
6899 |
|
|
|
6900 |
def __init__(self, success=None,):
|
|
|
6901 |
self.success = success
|
|
|
6902 |
|
|
|
6903 |
def read(self, iprot):
|
|
|
6904 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6905 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6906 |
return
|
|
|
6907 |
iprot.readStructBegin()
|
|
|
6908 |
while True:
|
|
|
6909 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6910 |
if ftype == TType.STOP:
|
|
|
6911 |
break
|
|
|
6912 |
if fid == 0:
|
|
|
6913 |
if ftype == TType.LIST:
|
|
|
6914 |
self.success = []
|
|
|
6915 |
(_etype129, _size126) = iprot.readListBegin()
|
|
|
6916 |
for _i130 in xrange(_size126):
|
|
|
6917 |
_elem131 = InventoryMovement()
|
|
|
6918 |
_elem131.read(iprot)
|
|
|
6919 |
self.success.append(_elem131)
|
|
|
6920 |
iprot.readListEnd()
|
|
|
6921 |
else:
|
|
|
6922 |
iprot.skip(ftype)
|
|
|
6923 |
else:
|
|
|
6924 |
iprot.skip(ftype)
|
|
|
6925 |
iprot.readFieldEnd()
|
|
|
6926 |
iprot.readStructEnd()
|
|
|
6927 |
|
|
|
6928 |
def write(self, oprot):
|
|
|
6929 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6930 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6931 |
return
|
|
|
6932 |
oprot.writeStructBegin('getCompleteMovementNonSerializedInventoryByScans_result')
|
|
|
6933 |
if self.success is not None:
|
|
|
6934 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
6935 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
6936 |
for iter132 in self.success:
|
|
|
6937 |
iter132.write(oprot)
|
|
|
6938 |
oprot.writeListEnd()
|
|
|
6939 |
oprot.writeFieldEnd()
|
|
|
6940 |
oprot.writeFieldStop()
|
|
|
6941 |
oprot.writeStructEnd()
|
|
|
6942 |
|
|
|
6943 |
def validate(self):
|
|
|
6944 |
return
|
|
|
6945 |
|
|
|
6946 |
|
|
|
6947 |
def __repr__(self):
|
|
|
6948 |
L = ['%s=%r' % (key, value)
|
|
|
6949 |
for key, value in self.__dict__.iteritems()]
|
|
|
6950 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6951 |
|
|
|
6952 |
def __eq__(self, other):
|
|
|
6953 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6954 |
|
|
|
6955 |
def __ne__(self, other):
|
|
|
6956 |
return not (self == other)
|
|
|
6957 |
|
| 7190 |
amar.kumar |
6958 |
class scanfreebie_args:
|
|
|
6959 |
"""
|
|
|
6960 |
Attributes:
|
|
|
6961 |
- orderId
|
|
|
6962 |
- freebieItemId
|
|
|
6963 |
- freebieWarehouseId
|
|
|
6964 |
- scanType
|
|
|
6965 |
"""
|
|
|
6966 |
|
|
|
6967 |
thrift_spec = (
|
|
|
6968 |
None, # 0
|
|
|
6969 |
(1, TType.I64, 'orderId', None, None, ), # 1
|
|
|
6970 |
(2, TType.I64, 'freebieItemId', None, None, ), # 2
|
|
|
6971 |
(3, TType.I64, 'freebieWarehouseId', None, None, ), # 3
|
|
|
6972 |
(4, TType.I32, 'scanType', None, None, ), # 4
|
|
|
6973 |
)
|
|
|
6974 |
|
|
|
6975 |
def __init__(self, orderId=None, freebieItemId=None, freebieWarehouseId=None, scanType=None,):
|
|
|
6976 |
self.orderId = orderId
|
|
|
6977 |
self.freebieItemId = freebieItemId
|
|
|
6978 |
self.freebieWarehouseId = freebieWarehouseId
|
|
|
6979 |
self.scanType = scanType
|
|
|
6980 |
|
|
|
6981 |
def read(self, iprot):
|
|
|
6982 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6983 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6984 |
return
|
|
|
6985 |
iprot.readStructBegin()
|
|
|
6986 |
while True:
|
|
|
6987 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6988 |
if ftype == TType.STOP:
|
|
|
6989 |
break
|
|
|
6990 |
if fid == 1:
|
|
|
6991 |
if ftype == TType.I64:
|
|
|
6992 |
self.orderId = iprot.readI64();
|
|
|
6993 |
else:
|
|
|
6994 |
iprot.skip(ftype)
|
|
|
6995 |
elif fid == 2:
|
|
|
6996 |
if ftype == TType.I64:
|
|
|
6997 |
self.freebieItemId = iprot.readI64();
|
|
|
6998 |
else:
|
|
|
6999 |
iprot.skip(ftype)
|
|
|
7000 |
elif fid == 3:
|
|
|
7001 |
if ftype == TType.I64:
|
|
|
7002 |
self.freebieWarehouseId = iprot.readI64();
|
|
|
7003 |
else:
|
|
|
7004 |
iprot.skip(ftype)
|
|
|
7005 |
elif fid == 4:
|
|
|
7006 |
if ftype == TType.I32:
|
|
|
7007 |
self.scanType = iprot.readI32();
|
|
|
7008 |
else:
|
|
|
7009 |
iprot.skip(ftype)
|
|
|
7010 |
else:
|
|
|
7011 |
iprot.skip(ftype)
|
|
|
7012 |
iprot.readFieldEnd()
|
|
|
7013 |
iprot.readStructEnd()
|
|
|
7014 |
|
|
|
7015 |
def write(self, oprot):
|
|
|
7016 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7017 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7018 |
return
|
|
|
7019 |
oprot.writeStructBegin('scanfreebie_args')
|
|
|
7020 |
if self.orderId is not None:
|
|
|
7021 |
oprot.writeFieldBegin('orderId', TType.I64, 1)
|
|
|
7022 |
oprot.writeI64(self.orderId)
|
|
|
7023 |
oprot.writeFieldEnd()
|
|
|
7024 |
if self.freebieItemId is not None:
|
|
|
7025 |
oprot.writeFieldBegin('freebieItemId', TType.I64, 2)
|
|
|
7026 |
oprot.writeI64(self.freebieItemId)
|
|
|
7027 |
oprot.writeFieldEnd()
|
|
|
7028 |
if self.freebieWarehouseId is not None:
|
|
|
7029 |
oprot.writeFieldBegin('freebieWarehouseId', TType.I64, 3)
|
|
|
7030 |
oprot.writeI64(self.freebieWarehouseId)
|
|
|
7031 |
oprot.writeFieldEnd()
|
|
|
7032 |
if self.scanType is not None:
|
|
|
7033 |
oprot.writeFieldBegin('scanType', TType.I32, 4)
|
|
|
7034 |
oprot.writeI32(self.scanType)
|
|
|
7035 |
oprot.writeFieldEnd()
|
|
|
7036 |
oprot.writeFieldStop()
|
|
|
7037 |
oprot.writeStructEnd()
|
|
|
7038 |
|
|
|
7039 |
def validate(self):
|
|
|
7040 |
return
|
|
|
7041 |
|
|
|
7042 |
|
|
|
7043 |
def __repr__(self):
|
|
|
7044 |
L = ['%s=%r' % (key, value)
|
|
|
7045 |
for key, value in self.__dict__.iteritems()]
|
|
|
7046 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7047 |
|
|
|
7048 |
def __eq__(self, other):
|
|
|
7049 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7050 |
|
|
|
7051 |
def __ne__(self, other):
|
|
|
7052 |
return not (self == other)
|
|
|
7053 |
|
|
|
7054 |
class scanfreebie_result:
|
|
|
7055 |
"""
|
|
|
7056 |
Attributes:
|
|
|
7057 |
- success
|
|
|
7058 |
- wex
|
|
|
7059 |
"""
|
|
|
7060 |
|
|
|
7061 |
thrift_spec = (
|
|
|
7062 |
(0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
|
|
|
7063 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
7064 |
)
|
|
|
7065 |
|
|
|
7066 |
def __init__(self, success=None, wex=None,):
|
|
|
7067 |
self.success = success
|
|
|
7068 |
self.wex = wex
|
|
|
7069 |
|
|
|
7070 |
def read(self, iprot):
|
|
|
7071 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7072 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7073 |
return
|
|
|
7074 |
iprot.readStructBegin()
|
|
|
7075 |
while True:
|
|
|
7076 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7077 |
if ftype == TType.STOP:
|
|
|
7078 |
break
|
|
|
7079 |
if fid == 0:
|
|
|
7080 |
if ftype == TType.STRUCT:
|
|
|
7081 |
self.success = InventoryItem()
|
|
|
7082 |
self.success.read(iprot)
|
|
|
7083 |
else:
|
|
|
7084 |
iprot.skip(ftype)
|
|
|
7085 |
elif fid == 1:
|
|
|
7086 |
if ftype == TType.STRUCT:
|
|
|
7087 |
self.wex = WarehouseServiceException()
|
|
|
7088 |
self.wex.read(iprot)
|
|
|
7089 |
else:
|
|
|
7090 |
iprot.skip(ftype)
|
|
|
7091 |
else:
|
|
|
7092 |
iprot.skip(ftype)
|
|
|
7093 |
iprot.readFieldEnd()
|
|
|
7094 |
iprot.readStructEnd()
|
|
|
7095 |
|
|
|
7096 |
def write(self, oprot):
|
|
|
7097 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7098 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7099 |
return
|
|
|
7100 |
oprot.writeStructBegin('scanfreebie_result')
|
|
|
7101 |
if self.success is not None:
|
|
|
7102 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
7103 |
self.success.write(oprot)
|
|
|
7104 |
oprot.writeFieldEnd()
|
|
|
7105 |
if self.wex is not None:
|
|
|
7106 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
7107 |
self.wex.write(oprot)
|
|
|
7108 |
oprot.writeFieldEnd()
|
|
|
7109 |
oprot.writeFieldStop()
|
|
|
7110 |
oprot.writeStructEnd()
|
|
|
7111 |
|
|
|
7112 |
def validate(self):
|
|
|
7113 |
return
|
|
|
7114 |
|
|
|
7115 |
|
|
|
7116 |
def __repr__(self):
|
|
|
7117 |
L = ['%s=%r' % (key, value)
|
|
|
7118 |
for key, value in self.__dict__.iteritems()]
|
|
|
7119 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7120 |
|
|
|
7121 |
def __eq__(self, other):
|
|
|
7122 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7123 |
|
|
|
7124 |
def __ne__(self, other):
|
|
|
7125 |
return not (self == other)
|
| 7199 |
amar.kumar |
7126 |
|
|
|
7127 |
class reshipfreebie_args:
|
|
|
7128 |
"""
|
|
|
7129 |
Attributes:
|
|
|
7130 |
- oldOrderId
|
|
|
7131 |
- newOrderId
|
|
|
7132 |
- freebieItemId
|
|
|
7133 |
- scanType
|
|
|
7134 |
"""
|
|
|
7135 |
|
|
|
7136 |
thrift_spec = (
|
|
|
7137 |
None, # 0
|
|
|
7138 |
(1, TType.I64, 'oldOrderId', None, None, ), # 1
|
|
|
7139 |
(2, TType.I64, 'newOrderId', None, None, ), # 2
|
|
|
7140 |
(3, TType.I64, 'freebieItemId', None, None, ), # 3
|
|
|
7141 |
(4, TType.I32, 'scanType', None, None, ), # 4
|
|
|
7142 |
)
|
|
|
7143 |
|
|
|
7144 |
def __init__(self, oldOrderId=None, newOrderId=None, freebieItemId=None, scanType=None,):
|
|
|
7145 |
self.oldOrderId = oldOrderId
|
|
|
7146 |
self.newOrderId = newOrderId
|
|
|
7147 |
self.freebieItemId = freebieItemId
|
|
|
7148 |
self.scanType = scanType
|
|
|
7149 |
|
|
|
7150 |
def read(self, iprot):
|
|
|
7151 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7152 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7153 |
return
|
|
|
7154 |
iprot.readStructBegin()
|
|
|
7155 |
while True:
|
|
|
7156 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7157 |
if ftype == TType.STOP:
|
|
|
7158 |
break
|
|
|
7159 |
if fid == 1:
|
|
|
7160 |
if ftype == TType.I64:
|
|
|
7161 |
self.oldOrderId = iprot.readI64();
|
|
|
7162 |
else:
|
|
|
7163 |
iprot.skip(ftype)
|
|
|
7164 |
elif fid == 2:
|
|
|
7165 |
if ftype == TType.I64:
|
|
|
7166 |
self.newOrderId = iprot.readI64();
|
|
|
7167 |
else:
|
|
|
7168 |
iprot.skip(ftype)
|
|
|
7169 |
elif fid == 3:
|
|
|
7170 |
if ftype == TType.I64:
|
|
|
7171 |
self.freebieItemId = iprot.readI64();
|
|
|
7172 |
else:
|
|
|
7173 |
iprot.skip(ftype)
|
|
|
7174 |
elif fid == 4:
|
|
|
7175 |
if ftype == TType.I32:
|
|
|
7176 |
self.scanType = iprot.readI32();
|
|
|
7177 |
else:
|
|
|
7178 |
iprot.skip(ftype)
|
|
|
7179 |
else:
|
|
|
7180 |
iprot.skip(ftype)
|
|
|
7181 |
iprot.readFieldEnd()
|
|
|
7182 |
iprot.readStructEnd()
|
|
|
7183 |
|
|
|
7184 |
def write(self, oprot):
|
|
|
7185 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7186 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7187 |
return
|
|
|
7188 |
oprot.writeStructBegin('reshipfreebie_args')
|
|
|
7189 |
if self.oldOrderId is not None:
|
|
|
7190 |
oprot.writeFieldBegin('oldOrderId', TType.I64, 1)
|
|
|
7191 |
oprot.writeI64(self.oldOrderId)
|
|
|
7192 |
oprot.writeFieldEnd()
|
|
|
7193 |
if self.newOrderId is not None:
|
|
|
7194 |
oprot.writeFieldBegin('newOrderId', TType.I64, 2)
|
|
|
7195 |
oprot.writeI64(self.newOrderId)
|
|
|
7196 |
oprot.writeFieldEnd()
|
|
|
7197 |
if self.freebieItemId is not None:
|
|
|
7198 |
oprot.writeFieldBegin('freebieItemId', TType.I64, 3)
|
|
|
7199 |
oprot.writeI64(self.freebieItemId)
|
|
|
7200 |
oprot.writeFieldEnd()
|
|
|
7201 |
if self.scanType is not None:
|
|
|
7202 |
oprot.writeFieldBegin('scanType', TType.I32, 4)
|
|
|
7203 |
oprot.writeI32(self.scanType)
|
|
|
7204 |
oprot.writeFieldEnd()
|
|
|
7205 |
oprot.writeFieldStop()
|
|
|
7206 |
oprot.writeStructEnd()
|
|
|
7207 |
|
|
|
7208 |
def validate(self):
|
|
|
7209 |
return
|
|
|
7210 |
|
|
|
7211 |
|
|
|
7212 |
def __repr__(self):
|
|
|
7213 |
L = ['%s=%r' % (key, value)
|
|
|
7214 |
for key, value in self.__dict__.iteritems()]
|
|
|
7215 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7216 |
|
|
|
7217 |
def __eq__(self, other):
|
|
|
7218 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7219 |
|
|
|
7220 |
def __ne__(self, other):
|
|
|
7221 |
return not (self == other)
|
|
|
7222 |
|
|
|
7223 |
class reshipfreebie_result:
|
|
|
7224 |
"""
|
|
|
7225 |
Attributes:
|
|
|
7226 |
- wex
|
|
|
7227 |
"""
|
|
|
7228 |
|
|
|
7229 |
thrift_spec = (
|
|
|
7230 |
None, # 0
|
|
|
7231 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
7232 |
)
|
|
|
7233 |
|
|
|
7234 |
def __init__(self, wex=None,):
|
|
|
7235 |
self.wex = wex
|
|
|
7236 |
|
|
|
7237 |
def read(self, iprot):
|
|
|
7238 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7239 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7240 |
return
|
|
|
7241 |
iprot.readStructBegin()
|
|
|
7242 |
while True:
|
|
|
7243 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7244 |
if ftype == TType.STOP:
|
|
|
7245 |
break
|
|
|
7246 |
if fid == 1:
|
|
|
7247 |
if ftype == TType.STRUCT:
|
|
|
7248 |
self.wex = WarehouseServiceException()
|
|
|
7249 |
self.wex.read(iprot)
|
|
|
7250 |
else:
|
|
|
7251 |
iprot.skip(ftype)
|
|
|
7252 |
else:
|
|
|
7253 |
iprot.skip(ftype)
|
|
|
7254 |
iprot.readFieldEnd()
|
|
|
7255 |
iprot.readStructEnd()
|
|
|
7256 |
|
|
|
7257 |
def write(self, oprot):
|
|
|
7258 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7259 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7260 |
return
|
|
|
7261 |
oprot.writeStructBegin('reshipfreebie_result')
|
|
|
7262 |
if self.wex is not None:
|
|
|
7263 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
7264 |
self.wex.write(oprot)
|
|
|
7265 |
oprot.writeFieldEnd()
|
|
|
7266 |
oprot.writeFieldStop()
|
|
|
7267 |
oprot.writeStructEnd()
|
|
|
7268 |
|
|
|
7269 |
def validate(self):
|
|
|
7270 |
return
|
|
|
7271 |
|
|
|
7272 |
|
|
|
7273 |
def __repr__(self):
|
|
|
7274 |
L = ['%s=%r' % (key, value)
|
|
|
7275 |
for key, value in self.__dict__.iteritems()]
|
|
|
7276 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7277 |
|
|
|
7278 |
def __eq__(self, other):
|
|
|
7279 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7280 |
|
|
|
7281 |
def __ne__(self, other):
|
|
|
7282 |
return not (self == other)
|
| 7410 |
amar.kumar |
7283 |
|
|
|
7284 |
class isItemTransferAllowed_args:
|
|
|
7285 |
"""
|
|
|
7286 |
Attributes:
|
|
|
7287 |
- warehouseId
|
|
|
7288 |
- transferWarehouseId
|
|
|
7289 |
"""
|
|
|
7290 |
|
|
|
7291 |
thrift_spec = (
|
|
|
7292 |
None, # 0
|
|
|
7293 |
(1, TType.I64, 'warehouseId', None, None, ), # 1
|
|
|
7294 |
(2, TType.I64, 'transferWarehouseId', None, None, ), # 2
|
|
|
7295 |
)
|
|
|
7296 |
|
|
|
7297 |
def __init__(self, warehouseId=None, transferWarehouseId=None,):
|
|
|
7298 |
self.warehouseId = warehouseId
|
|
|
7299 |
self.transferWarehouseId = transferWarehouseId
|
|
|
7300 |
|
|
|
7301 |
def read(self, iprot):
|
|
|
7302 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7303 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7304 |
return
|
|
|
7305 |
iprot.readStructBegin()
|
|
|
7306 |
while True:
|
|
|
7307 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7308 |
if ftype == TType.STOP:
|
|
|
7309 |
break
|
|
|
7310 |
if fid == 1:
|
|
|
7311 |
if ftype == TType.I64:
|
|
|
7312 |
self.warehouseId = iprot.readI64();
|
|
|
7313 |
else:
|
|
|
7314 |
iprot.skip(ftype)
|
|
|
7315 |
elif fid == 2:
|
|
|
7316 |
if ftype == TType.I64:
|
|
|
7317 |
self.transferWarehouseId = iprot.readI64();
|
|
|
7318 |
else:
|
|
|
7319 |
iprot.skip(ftype)
|
|
|
7320 |
else:
|
|
|
7321 |
iprot.skip(ftype)
|
|
|
7322 |
iprot.readFieldEnd()
|
|
|
7323 |
iprot.readStructEnd()
|
|
|
7324 |
|
|
|
7325 |
def write(self, oprot):
|
|
|
7326 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7327 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7328 |
return
|
|
|
7329 |
oprot.writeStructBegin('isItemTransferAllowed_args')
|
|
|
7330 |
if self.warehouseId is not None:
|
|
|
7331 |
oprot.writeFieldBegin('warehouseId', TType.I64, 1)
|
|
|
7332 |
oprot.writeI64(self.warehouseId)
|
|
|
7333 |
oprot.writeFieldEnd()
|
|
|
7334 |
if self.transferWarehouseId is not None:
|
|
|
7335 |
oprot.writeFieldBegin('transferWarehouseId', TType.I64, 2)
|
|
|
7336 |
oprot.writeI64(self.transferWarehouseId)
|
|
|
7337 |
oprot.writeFieldEnd()
|
|
|
7338 |
oprot.writeFieldStop()
|
|
|
7339 |
oprot.writeStructEnd()
|
|
|
7340 |
|
|
|
7341 |
def validate(self):
|
|
|
7342 |
return
|
|
|
7343 |
|
|
|
7344 |
|
|
|
7345 |
def __repr__(self):
|
|
|
7346 |
L = ['%s=%r' % (key, value)
|
|
|
7347 |
for key, value in self.__dict__.iteritems()]
|
|
|
7348 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7349 |
|
|
|
7350 |
def __eq__(self, other):
|
|
|
7351 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7352 |
|
|
|
7353 |
def __ne__(self, other):
|
|
|
7354 |
return not (self == other)
|
|
|
7355 |
|
|
|
7356 |
class isItemTransferAllowed_result:
|
|
|
7357 |
"""
|
|
|
7358 |
Attributes:
|
|
|
7359 |
- success
|
|
|
7360 |
"""
|
|
|
7361 |
|
|
|
7362 |
thrift_spec = (
|
|
|
7363 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
7364 |
)
|
|
|
7365 |
|
|
|
7366 |
def __init__(self, success=None,):
|
|
|
7367 |
self.success = success
|
|
|
7368 |
|
|
|
7369 |
def read(self, iprot):
|
|
|
7370 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7371 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7372 |
return
|
|
|
7373 |
iprot.readStructBegin()
|
|
|
7374 |
while True:
|
|
|
7375 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7376 |
if ftype == TType.STOP:
|
|
|
7377 |
break
|
|
|
7378 |
if fid == 0:
|
|
|
7379 |
if ftype == TType.BOOL:
|
|
|
7380 |
self.success = iprot.readBool();
|
|
|
7381 |
else:
|
|
|
7382 |
iprot.skip(ftype)
|
|
|
7383 |
else:
|
|
|
7384 |
iprot.skip(ftype)
|
|
|
7385 |
iprot.readFieldEnd()
|
|
|
7386 |
iprot.readStructEnd()
|
|
|
7387 |
|
|
|
7388 |
def write(self, oprot):
|
|
|
7389 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7390 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7391 |
return
|
|
|
7392 |
oprot.writeStructBegin('isItemTransferAllowed_result')
|
|
|
7393 |
if self.success is not None:
|
|
|
7394 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
7395 |
oprot.writeBool(self.success)
|
|
|
7396 |
oprot.writeFieldEnd()
|
|
|
7397 |
oprot.writeFieldStop()
|
|
|
7398 |
oprot.writeStructEnd()
|
|
|
7399 |
|
|
|
7400 |
def validate(self):
|
|
|
7401 |
return
|
|
|
7402 |
|
|
|
7403 |
|
|
|
7404 |
def __repr__(self):
|
|
|
7405 |
L = ['%s=%r' % (key, value)
|
|
|
7406 |
for key, value in self.__dict__.iteritems()]
|
|
|
7407 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7408 |
|
|
|
7409 |
def __eq__(self, other):
|
|
|
7410 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7411 |
|
|
|
7412 |
def __ne__(self, other):
|
|
|
7413 |
return not (self == other)
|
|
|
7414 |
|
|
|
7415 |
class createTransferLot_args:
|
|
|
7416 |
"""
|
|
|
7417 |
Attributes:
|
|
|
7418 |
- originWarehouseId
|
|
|
7419 |
- destWarehouseId
|
|
|
7420 |
"""
|
|
|
7421 |
|
|
|
7422 |
thrift_spec = (
|
|
|
7423 |
None, # 0
|
|
|
7424 |
(1, TType.I64, 'originWarehouseId', None, None, ), # 1
|
|
|
7425 |
(2, TType.I64, 'destWarehouseId', None, None, ), # 2
|
|
|
7426 |
)
|
|
|
7427 |
|
|
|
7428 |
def __init__(self, originWarehouseId=None, destWarehouseId=None,):
|
|
|
7429 |
self.originWarehouseId = originWarehouseId
|
|
|
7430 |
self.destWarehouseId = destWarehouseId
|
|
|
7431 |
|
|
|
7432 |
def read(self, iprot):
|
|
|
7433 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7434 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7435 |
return
|
|
|
7436 |
iprot.readStructBegin()
|
|
|
7437 |
while True:
|
|
|
7438 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7439 |
if ftype == TType.STOP:
|
|
|
7440 |
break
|
|
|
7441 |
if fid == 1:
|
|
|
7442 |
if ftype == TType.I64:
|
|
|
7443 |
self.originWarehouseId = iprot.readI64();
|
|
|
7444 |
else:
|
|
|
7445 |
iprot.skip(ftype)
|
|
|
7446 |
elif fid == 2:
|
|
|
7447 |
if ftype == TType.I64:
|
|
|
7448 |
self.destWarehouseId = iprot.readI64();
|
|
|
7449 |
else:
|
|
|
7450 |
iprot.skip(ftype)
|
|
|
7451 |
else:
|
|
|
7452 |
iprot.skip(ftype)
|
|
|
7453 |
iprot.readFieldEnd()
|
|
|
7454 |
iprot.readStructEnd()
|
|
|
7455 |
|
|
|
7456 |
def write(self, oprot):
|
|
|
7457 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7458 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7459 |
return
|
|
|
7460 |
oprot.writeStructBegin('createTransferLot_args')
|
|
|
7461 |
if self.originWarehouseId is not None:
|
|
|
7462 |
oprot.writeFieldBegin('originWarehouseId', TType.I64, 1)
|
|
|
7463 |
oprot.writeI64(self.originWarehouseId)
|
|
|
7464 |
oprot.writeFieldEnd()
|
|
|
7465 |
if self.destWarehouseId is not None:
|
|
|
7466 |
oprot.writeFieldBegin('destWarehouseId', TType.I64, 2)
|
|
|
7467 |
oprot.writeI64(self.destWarehouseId)
|
|
|
7468 |
oprot.writeFieldEnd()
|
|
|
7469 |
oprot.writeFieldStop()
|
|
|
7470 |
oprot.writeStructEnd()
|
|
|
7471 |
|
|
|
7472 |
def validate(self):
|
|
|
7473 |
return
|
|
|
7474 |
|
|
|
7475 |
|
|
|
7476 |
def __repr__(self):
|
|
|
7477 |
L = ['%s=%r' % (key, value)
|
|
|
7478 |
for key, value in self.__dict__.iteritems()]
|
|
|
7479 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7480 |
|
|
|
7481 |
def __eq__(self, other):
|
|
|
7482 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7483 |
|
|
|
7484 |
def __ne__(self, other):
|
|
|
7485 |
return not (self == other)
|
|
|
7486 |
|
|
|
7487 |
class createTransferLot_result:
|
|
|
7488 |
"""
|
|
|
7489 |
Attributes:
|
|
|
7490 |
- success
|
|
|
7491 |
- wex
|
|
|
7492 |
"""
|
|
|
7493 |
|
|
|
7494 |
thrift_spec = (
|
|
|
7495 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
7496 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
7497 |
)
|
|
|
7498 |
|
|
|
7499 |
def __init__(self, success=None, wex=None,):
|
|
|
7500 |
self.success = success
|
|
|
7501 |
self.wex = wex
|
|
|
7502 |
|
|
|
7503 |
def read(self, iprot):
|
|
|
7504 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7505 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7506 |
return
|
|
|
7507 |
iprot.readStructBegin()
|
|
|
7508 |
while True:
|
|
|
7509 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7510 |
if ftype == TType.STOP:
|
|
|
7511 |
break
|
|
|
7512 |
if fid == 0:
|
|
|
7513 |
if ftype == TType.I64:
|
|
|
7514 |
self.success = iprot.readI64();
|
|
|
7515 |
else:
|
|
|
7516 |
iprot.skip(ftype)
|
|
|
7517 |
elif fid == 1:
|
|
|
7518 |
if ftype == TType.STRUCT:
|
|
|
7519 |
self.wex = WarehouseServiceException()
|
|
|
7520 |
self.wex.read(iprot)
|
|
|
7521 |
else:
|
|
|
7522 |
iprot.skip(ftype)
|
|
|
7523 |
else:
|
|
|
7524 |
iprot.skip(ftype)
|
|
|
7525 |
iprot.readFieldEnd()
|
|
|
7526 |
iprot.readStructEnd()
|
|
|
7527 |
|
|
|
7528 |
def write(self, oprot):
|
|
|
7529 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7530 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7531 |
return
|
|
|
7532 |
oprot.writeStructBegin('createTransferLot_result')
|
|
|
7533 |
if self.success is not None:
|
|
|
7534 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
7535 |
oprot.writeI64(self.success)
|
|
|
7536 |
oprot.writeFieldEnd()
|
|
|
7537 |
if self.wex is not None:
|
|
|
7538 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
7539 |
self.wex.write(oprot)
|
|
|
7540 |
oprot.writeFieldEnd()
|
|
|
7541 |
oprot.writeFieldStop()
|
|
|
7542 |
oprot.writeStructEnd()
|
|
|
7543 |
|
|
|
7544 |
def validate(self):
|
|
|
7545 |
return
|
|
|
7546 |
|
|
|
7547 |
|
|
|
7548 |
def __repr__(self):
|
|
|
7549 |
L = ['%s=%r' % (key, value)
|
|
|
7550 |
for key, value in self.__dict__.iteritems()]
|
|
|
7551 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7552 |
|
|
|
7553 |
def __eq__(self, other):
|
|
|
7554 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7555 |
|
|
|
7556 |
def __ne__(self, other):
|
|
|
7557 |
return not (self == other)
|
|
|
7558 |
|
|
|
7559 |
class getTransferLot_args:
|
|
|
7560 |
"""
|
|
|
7561 |
Attributes:
|
|
|
7562 |
- transferLotId
|
|
|
7563 |
"""
|
|
|
7564 |
|
|
|
7565 |
thrift_spec = (
|
|
|
7566 |
None, # 0
|
|
|
7567 |
(1, TType.I64, 'transferLotId', None, None, ), # 1
|
|
|
7568 |
)
|
|
|
7569 |
|
|
|
7570 |
def __init__(self, transferLotId=None,):
|
|
|
7571 |
self.transferLotId = transferLotId
|
|
|
7572 |
|
|
|
7573 |
def read(self, iprot):
|
|
|
7574 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7575 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7576 |
return
|
|
|
7577 |
iprot.readStructBegin()
|
|
|
7578 |
while True:
|
|
|
7579 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7580 |
if ftype == TType.STOP:
|
|
|
7581 |
break
|
|
|
7582 |
if fid == 1:
|
|
|
7583 |
if ftype == TType.I64:
|
|
|
7584 |
self.transferLotId = iprot.readI64();
|
|
|
7585 |
else:
|
|
|
7586 |
iprot.skip(ftype)
|
|
|
7587 |
else:
|
|
|
7588 |
iprot.skip(ftype)
|
|
|
7589 |
iprot.readFieldEnd()
|
|
|
7590 |
iprot.readStructEnd()
|
|
|
7591 |
|
|
|
7592 |
def write(self, oprot):
|
|
|
7593 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7594 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7595 |
return
|
|
|
7596 |
oprot.writeStructBegin('getTransferLot_args')
|
|
|
7597 |
if self.transferLotId is not None:
|
|
|
7598 |
oprot.writeFieldBegin('transferLotId', TType.I64, 1)
|
|
|
7599 |
oprot.writeI64(self.transferLotId)
|
|
|
7600 |
oprot.writeFieldEnd()
|
|
|
7601 |
oprot.writeFieldStop()
|
|
|
7602 |
oprot.writeStructEnd()
|
|
|
7603 |
|
|
|
7604 |
def validate(self):
|
|
|
7605 |
return
|
|
|
7606 |
|
|
|
7607 |
|
|
|
7608 |
def __repr__(self):
|
|
|
7609 |
L = ['%s=%r' % (key, value)
|
|
|
7610 |
for key, value in self.__dict__.iteritems()]
|
|
|
7611 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7612 |
|
|
|
7613 |
def __eq__(self, other):
|
|
|
7614 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7615 |
|
|
|
7616 |
def __ne__(self, other):
|
|
|
7617 |
return not (self == other)
|
|
|
7618 |
|
|
|
7619 |
class getTransferLot_result:
|
|
|
7620 |
"""
|
|
|
7621 |
Attributes:
|
|
|
7622 |
- success
|
|
|
7623 |
- wex
|
|
|
7624 |
"""
|
|
|
7625 |
|
|
|
7626 |
thrift_spec = (
|
|
|
7627 |
(0, TType.STRUCT, 'success', (TransferLot, TransferLot.thrift_spec), None, ), # 0
|
|
|
7628 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
7629 |
)
|
|
|
7630 |
|
|
|
7631 |
def __init__(self, success=None, wex=None,):
|
|
|
7632 |
self.success = success
|
|
|
7633 |
self.wex = wex
|
|
|
7634 |
|
|
|
7635 |
def read(self, iprot):
|
|
|
7636 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7637 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7638 |
return
|
|
|
7639 |
iprot.readStructBegin()
|
|
|
7640 |
while True:
|
|
|
7641 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7642 |
if ftype == TType.STOP:
|
|
|
7643 |
break
|
|
|
7644 |
if fid == 0:
|
|
|
7645 |
if ftype == TType.STRUCT:
|
|
|
7646 |
self.success = TransferLot()
|
|
|
7647 |
self.success.read(iprot)
|
|
|
7648 |
else:
|
|
|
7649 |
iprot.skip(ftype)
|
|
|
7650 |
elif fid == 1:
|
|
|
7651 |
if ftype == TType.STRUCT:
|
|
|
7652 |
self.wex = WarehouseServiceException()
|
|
|
7653 |
self.wex.read(iprot)
|
|
|
7654 |
else:
|
|
|
7655 |
iprot.skip(ftype)
|
|
|
7656 |
else:
|
|
|
7657 |
iprot.skip(ftype)
|
|
|
7658 |
iprot.readFieldEnd()
|
|
|
7659 |
iprot.readStructEnd()
|
|
|
7660 |
|
|
|
7661 |
def write(self, oprot):
|
|
|
7662 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7663 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7664 |
return
|
|
|
7665 |
oprot.writeStructBegin('getTransferLot_result')
|
|
|
7666 |
if self.success is not None:
|
|
|
7667 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
7668 |
self.success.write(oprot)
|
|
|
7669 |
oprot.writeFieldEnd()
|
|
|
7670 |
if self.wex is not None:
|
|
|
7671 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
7672 |
self.wex.write(oprot)
|
|
|
7673 |
oprot.writeFieldEnd()
|
|
|
7674 |
oprot.writeFieldStop()
|
|
|
7675 |
oprot.writeStructEnd()
|
|
|
7676 |
|
|
|
7677 |
def validate(self):
|
|
|
7678 |
return
|
|
|
7679 |
|
|
|
7680 |
|
|
|
7681 |
def __repr__(self):
|
|
|
7682 |
L = ['%s=%r' % (key, value)
|
|
|
7683 |
for key, value in self.__dict__.iteritems()]
|
|
|
7684 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7685 |
|
|
|
7686 |
def __eq__(self, other):
|
|
|
7687 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7688 |
|
|
|
7689 |
def __ne__(self, other):
|
|
|
7690 |
return not (self == other)
|
|
|
7691 |
|
|
|
7692 |
class markTransferLotAsReceived_args:
|
|
|
7693 |
"""
|
|
|
7694 |
Attributes:
|
|
|
7695 |
- id
|
|
|
7696 |
- remoteTransferRefNumber
|
|
|
7697 |
"""
|
|
|
7698 |
|
|
|
7699 |
thrift_spec = (
|
|
|
7700 |
None, # 0
|
|
|
7701 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
7702 |
(2, TType.STRING, 'remoteTransferRefNumber', None, None, ), # 2
|
|
|
7703 |
)
|
|
|
7704 |
|
|
|
7705 |
def __init__(self, id=None, remoteTransferRefNumber=None,):
|
|
|
7706 |
self.id = id
|
|
|
7707 |
self.remoteTransferRefNumber = remoteTransferRefNumber
|
|
|
7708 |
|
|
|
7709 |
def read(self, iprot):
|
|
|
7710 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7711 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7712 |
return
|
|
|
7713 |
iprot.readStructBegin()
|
|
|
7714 |
while True:
|
|
|
7715 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7716 |
if ftype == TType.STOP:
|
|
|
7717 |
break
|
|
|
7718 |
if fid == 1:
|
|
|
7719 |
if ftype == TType.I64:
|
|
|
7720 |
self.id = iprot.readI64();
|
|
|
7721 |
else:
|
|
|
7722 |
iprot.skip(ftype)
|
|
|
7723 |
elif fid == 2:
|
|
|
7724 |
if ftype == TType.STRING:
|
|
|
7725 |
self.remoteTransferRefNumber = iprot.readString();
|
|
|
7726 |
else:
|
|
|
7727 |
iprot.skip(ftype)
|
|
|
7728 |
else:
|
|
|
7729 |
iprot.skip(ftype)
|
|
|
7730 |
iprot.readFieldEnd()
|
|
|
7731 |
iprot.readStructEnd()
|
|
|
7732 |
|
|
|
7733 |
def write(self, oprot):
|
|
|
7734 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7735 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7736 |
return
|
|
|
7737 |
oprot.writeStructBegin('markTransferLotAsReceived_args')
|
|
|
7738 |
if self.id is not None:
|
|
|
7739 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
7740 |
oprot.writeI64(self.id)
|
|
|
7741 |
oprot.writeFieldEnd()
|
|
|
7742 |
if self.remoteTransferRefNumber is not None:
|
|
|
7743 |
oprot.writeFieldBegin('remoteTransferRefNumber', TType.STRING, 2)
|
|
|
7744 |
oprot.writeString(self.remoteTransferRefNumber)
|
|
|
7745 |
oprot.writeFieldEnd()
|
|
|
7746 |
oprot.writeFieldStop()
|
|
|
7747 |
oprot.writeStructEnd()
|
|
|
7748 |
|
|
|
7749 |
def validate(self):
|
|
|
7750 |
return
|
|
|
7751 |
|
|
|
7752 |
|
|
|
7753 |
def __repr__(self):
|
|
|
7754 |
L = ['%s=%r' % (key, value)
|
|
|
7755 |
for key, value in self.__dict__.iteritems()]
|
|
|
7756 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7757 |
|
|
|
7758 |
def __eq__(self, other):
|
|
|
7759 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7760 |
|
|
|
7761 |
def __ne__(self, other):
|
|
|
7762 |
return not (self == other)
|
|
|
7763 |
|
|
|
7764 |
class markTransferLotAsReceived_result:
|
|
|
7765 |
"""
|
|
|
7766 |
Attributes:
|
|
|
7767 |
- wex
|
|
|
7768 |
"""
|
|
|
7769 |
|
|
|
7770 |
thrift_spec = (
|
|
|
7771 |
None, # 0
|
|
|
7772 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
7773 |
)
|
|
|
7774 |
|
|
|
7775 |
def __init__(self, wex=None,):
|
|
|
7776 |
self.wex = wex
|
|
|
7777 |
|
|
|
7778 |
def read(self, iprot):
|
|
|
7779 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7780 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7781 |
return
|
|
|
7782 |
iprot.readStructBegin()
|
|
|
7783 |
while True:
|
|
|
7784 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7785 |
if ftype == TType.STOP:
|
|
|
7786 |
break
|
|
|
7787 |
if fid == 1:
|
|
|
7788 |
if ftype == TType.STRUCT:
|
|
|
7789 |
self.wex = WarehouseServiceException()
|
|
|
7790 |
self.wex.read(iprot)
|
|
|
7791 |
else:
|
|
|
7792 |
iprot.skip(ftype)
|
|
|
7793 |
else:
|
|
|
7794 |
iprot.skip(ftype)
|
|
|
7795 |
iprot.readFieldEnd()
|
|
|
7796 |
iprot.readStructEnd()
|
|
|
7797 |
|
|
|
7798 |
def write(self, oprot):
|
|
|
7799 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7800 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7801 |
return
|
|
|
7802 |
oprot.writeStructBegin('markTransferLotAsReceived_result')
|
|
|
7803 |
if self.wex is not None:
|
|
|
7804 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
7805 |
self.wex.write(oprot)
|
|
|
7806 |
oprot.writeFieldEnd()
|
|
|
7807 |
oprot.writeFieldStop()
|
|
|
7808 |
oprot.writeStructEnd()
|
|
|
7809 |
|
|
|
7810 |
def validate(self):
|
|
|
7811 |
return
|
|
|
7812 |
|
|
|
7813 |
|
|
|
7814 |
def __repr__(self):
|
|
|
7815 |
L = ['%s=%r' % (key, value)
|
|
|
7816 |
for key, value in self.__dict__.iteritems()]
|
|
|
7817 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7818 |
|
|
|
7819 |
def __eq__(self, other):
|
|
|
7820 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7821 |
|
|
|
7822 |
def __ne__(self, other):
|
|
|
7823 |
return not (self == other)
|
|
|
7824 |
|
|
|
7825 |
class getTransferLotsByDate_args:
|
|
|
7826 |
"""
|
|
|
7827 |
Attributes:
|
|
|
7828 |
- fromDate
|
|
|
7829 |
- toDate
|
|
|
7830 |
"""
|
|
|
7831 |
|
|
|
7832 |
thrift_spec = (
|
|
|
7833 |
None, # 0
|
|
|
7834 |
(1, TType.I64, 'fromDate', None, None, ), # 1
|
|
|
7835 |
(2, TType.I64, 'toDate', None, None, ), # 2
|
|
|
7836 |
)
|
|
|
7837 |
|
|
|
7838 |
def __init__(self, fromDate=None, toDate=None,):
|
|
|
7839 |
self.fromDate = fromDate
|
|
|
7840 |
self.toDate = toDate
|
|
|
7841 |
|
|
|
7842 |
def read(self, iprot):
|
|
|
7843 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7844 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7845 |
return
|
|
|
7846 |
iprot.readStructBegin()
|
|
|
7847 |
while True:
|
|
|
7848 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7849 |
if ftype == TType.STOP:
|
|
|
7850 |
break
|
|
|
7851 |
if fid == 1:
|
|
|
7852 |
if ftype == TType.I64:
|
|
|
7853 |
self.fromDate = iprot.readI64();
|
|
|
7854 |
else:
|
|
|
7855 |
iprot.skip(ftype)
|
|
|
7856 |
elif fid == 2:
|
|
|
7857 |
if ftype == TType.I64:
|
|
|
7858 |
self.toDate = iprot.readI64();
|
|
|
7859 |
else:
|
|
|
7860 |
iprot.skip(ftype)
|
|
|
7861 |
else:
|
|
|
7862 |
iprot.skip(ftype)
|
|
|
7863 |
iprot.readFieldEnd()
|
|
|
7864 |
iprot.readStructEnd()
|
|
|
7865 |
|
|
|
7866 |
def write(self, oprot):
|
|
|
7867 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7868 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7869 |
return
|
|
|
7870 |
oprot.writeStructBegin('getTransferLotsByDate_args')
|
|
|
7871 |
if self.fromDate is not None:
|
|
|
7872 |
oprot.writeFieldBegin('fromDate', TType.I64, 1)
|
|
|
7873 |
oprot.writeI64(self.fromDate)
|
|
|
7874 |
oprot.writeFieldEnd()
|
|
|
7875 |
if self.toDate is not None:
|
|
|
7876 |
oprot.writeFieldBegin('toDate', TType.I64, 2)
|
|
|
7877 |
oprot.writeI64(self.toDate)
|
|
|
7878 |
oprot.writeFieldEnd()
|
|
|
7879 |
oprot.writeFieldStop()
|
|
|
7880 |
oprot.writeStructEnd()
|
|
|
7881 |
|
|
|
7882 |
def validate(self):
|
|
|
7883 |
return
|
|
|
7884 |
|
|
|
7885 |
|
|
|
7886 |
def __repr__(self):
|
|
|
7887 |
L = ['%s=%r' % (key, value)
|
|
|
7888 |
for key, value in self.__dict__.iteritems()]
|
|
|
7889 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7890 |
|
|
|
7891 |
def __eq__(self, other):
|
|
|
7892 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7893 |
|
|
|
7894 |
def __ne__(self, other):
|
|
|
7895 |
return not (self == other)
|
|
|
7896 |
|
|
|
7897 |
class getTransferLotsByDate_result:
|
|
|
7898 |
"""
|
|
|
7899 |
Attributes:
|
|
|
7900 |
- success
|
|
|
7901 |
- wex
|
|
|
7902 |
"""
|
|
|
7903 |
|
|
|
7904 |
thrift_spec = (
|
|
|
7905 |
(0, TType.LIST, 'success', (TType.STRUCT,(TransferLot, TransferLot.thrift_spec)), None, ), # 0
|
|
|
7906 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
7907 |
)
|
|
|
7908 |
|
|
|
7909 |
def __init__(self, success=None, wex=None,):
|
|
|
7910 |
self.success = success
|
|
|
7911 |
self.wex = wex
|
|
|
7912 |
|
|
|
7913 |
def read(self, iprot):
|
|
|
7914 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7915 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7916 |
return
|
|
|
7917 |
iprot.readStructBegin()
|
|
|
7918 |
while True:
|
|
|
7919 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7920 |
if ftype == TType.STOP:
|
|
|
7921 |
break
|
|
|
7922 |
if fid == 0:
|
|
|
7923 |
if ftype == TType.LIST:
|
|
|
7924 |
self.success = []
|
|
|
7925 |
(_etype136, _size133) = iprot.readListBegin()
|
|
|
7926 |
for _i137 in xrange(_size133):
|
|
|
7927 |
_elem138 = TransferLot()
|
|
|
7928 |
_elem138.read(iprot)
|
|
|
7929 |
self.success.append(_elem138)
|
|
|
7930 |
iprot.readListEnd()
|
|
|
7931 |
else:
|
|
|
7932 |
iprot.skip(ftype)
|
|
|
7933 |
elif fid == 1:
|
|
|
7934 |
if ftype == TType.STRUCT:
|
|
|
7935 |
self.wex = WarehouseServiceException()
|
|
|
7936 |
self.wex.read(iprot)
|
|
|
7937 |
else:
|
|
|
7938 |
iprot.skip(ftype)
|
|
|
7939 |
else:
|
|
|
7940 |
iprot.skip(ftype)
|
|
|
7941 |
iprot.readFieldEnd()
|
|
|
7942 |
iprot.readStructEnd()
|
|
|
7943 |
|
|
|
7944 |
def write(self, oprot):
|
|
|
7945 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7946 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7947 |
return
|
|
|
7948 |
oprot.writeStructBegin('getTransferLotsByDate_result')
|
|
|
7949 |
if self.success is not None:
|
|
|
7950 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
7951 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
7952 |
for iter139 in self.success:
|
|
|
7953 |
iter139.write(oprot)
|
|
|
7954 |
oprot.writeListEnd()
|
|
|
7955 |
oprot.writeFieldEnd()
|
|
|
7956 |
if self.wex is not None:
|
|
|
7957 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
7958 |
self.wex.write(oprot)
|
|
|
7959 |
oprot.writeFieldEnd()
|
|
|
7960 |
oprot.writeFieldStop()
|
|
|
7961 |
oprot.writeStructEnd()
|
|
|
7962 |
|
|
|
7963 |
def validate(self):
|
|
|
7964 |
return
|
|
|
7965 |
|
|
|
7966 |
|
|
|
7967 |
def __repr__(self):
|
|
|
7968 |
L = ['%s=%r' % (key, value)
|
|
|
7969 |
for key, value in self.__dict__.iteritems()]
|
|
|
7970 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7971 |
|
|
|
7972 |
def __eq__(self, other):
|
|
|
7973 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7974 |
|
|
|
7975 |
def __ne__(self, other):
|
|
|
7976 |
return not (self == other)
|
|
|
7977 |
|
|
|
7978 |
class getAllowedDestinationWarehousesForTransfer_args:
|
|
|
7979 |
"""
|
|
|
7980 |
Attributes:
|
|
|
7981 |
- warehouseId
|
|
|
7982 |
"""
|
|
|
7983 |
|
|
|
7984 |
thrift_spec = (
|
|
|
7985 |
None, # 0
|
|
|
7986 |
(1, TType.I64, 'warehouseId', None, None, ), # 1
|
|
|
7987 |
)
|
|
|
7988 |
|
|
|
7989 |
def __init__(self, warehouseId=None,):
|
|
|
7990 |
self.warehouseId = warehouseId
|
|
|
7991 |
|
|
|
7992 |
def read(self, iprot):
|
|
|
7993 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7994 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7995 |
return
|
|
|
7996 |
iprot.readStructBegin()
|
|
|
7997 |
while True:
|
|
|
7998 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7999 |
if ftype == TType.STOP:
|
|
|
8000 |
break
|
|
|
8001 |
if fid == 1:
|
|
|
8002 |
if ftype == TType.I64:
|
|
|
8003 |
self.warehouseId = iprot.readI64();
|
|
|
8004 |
else:
|
|
|
8005 |
iprot.skip(ftype)
|
|
|
8006 |
else:
|
|
|
8007 |
iprot.skip(ftype)
|
|
|
8008 |
iprot.readFieldEnd()
|
|
|
8009 |
iprot.readStructEnd()
|
|
|
8010 |
|
|
|
8011 |
def write(self, oprot):
|
|
|
8012 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8013 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
8014 |
return
|
|
|
8015 |
oprot.writeStructBegin('getAllowedDestinationWarehousesForTransfer_args')
|
|
|
8016 |
if self.warehouseId is not None:
|
|
|
8017 |
oprot.writeFieldBegin('warehouseId', TType.I64, 1)
|
|
|
8018 |
oprot.writeI64(self.warehouseId)
|
|
|
8019 |
oprot.writeFieldEnd()
|
|
|
8020 |
oprot.writeFieldStop()
|
|
|
8021 |
oprot.writeStructEnd()
|
|
|
8022 |
|
|
|
8023 |
def validate(self):
|
|
|
8024 |
return
|
|
|
8025 |
|
|
|
8026 |
|
|
|
8027 |
def __repr__(self):
|
|
|
8028 |
L = ['%s=%r' % (key, value)
|
|
|
8029 |
for key, value in self.__dict__.iteritems()]
|
|
|
8030 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
8031 |
|
|
|
8032 |
def __eq__(self, other):
|
|
|
8033 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
8034 |
|
|
|
8035 |
def __ne__(self, other):
|
|
|
8036 |
return not (self == other)
|
|
|
8037 |
|
|
|
8038 |
class getAllowedDestinationWarehousesForTransfer_result:
|
|
|
8039 |
"""
|
|
|
8040 |
Attributes:
|
|
|
8041 |
- success
|
|
|
8042 |
"""
|
|
|
8043 |
|
|
|
8044 |
thrift_spec = (
|
|
|
8045 |
(0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
|
|
|
8046 |
)
|
|
|
8047 |
|
|
|
8048 |
def __init__(self, success=None,):
|
|
|
8049 |
self.success = success
|
|
|
8050 |
|
|
|
8051 |
def read(self, iprot):
|
|
|
8052 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8053 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
8054 |
return
|
|
|
8055 |
iprot.readStructBegin()
|
|
|
8056 |
while True:
|
|
|
8057 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
8058 |
if ftype == TType.STOP:
|
|
|
8059 |
break
|
|
|
8060 |
if fid == 0:
|
|
|
8061 |
if ftype == TType.LIST:
|
|
|
8062 |
self.success = []
|
|
|
8063 |
(_etype143, _size140) = iprot.readListBegin()
|
|
|
8064 |
for _i144 in xrange(_size140):
|
|
|
8065 |
_elem145 = iprot.readI64();
|
|
|
8066 |
self.success.append(_elem145)
|
|
|
8067 |
iprot.readListEnd()
|
|
|
8068 |
else:
|
|
|
8069 |
iprot.skip(ftype)
|
|
|
8070 |
else:
|
|
|
8071 |
iprot.skip(ftype)
|
|
|
8072 |
iprot.readFieldEnd()
|
|
|
8073 |
iprot.readStructEnd()
|
|
|
8074 |
|
|
|
8075 |
def write(self, oprot):
|
|
|
8076 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8077 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
8078 |
return
|
|
|
8079 |
oprot.writeStructBegin('getAllowedDestinationWarehousesForTransfer_result')
|
|
|
8080 |
if self.success is not None:
|
|
|
8081 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
8082 |
oprot.writeListBegin(TType.I64, len(self.success))
|
|
|
8083 |
for iter146 in self.success:
|
|
|
8084 |
oprot.writeI64(iter146)
|
|
|
8085 |
oprot.writeListEnd()
|
|
|
8086 |
oprot.writeFieldEnd()
|
|
|
8087 |
oprot.writeFieldStop()
|
|
|
8088 |
oprot.writeStructEnd()
|
|
|
8089 |
|
|
|
8090 |
def validate(self):
|
|
|
8091 |
return
|
|
|
8092 |
|
|
|
8093 |
|
|
|
8094 |
def __repr__(self):
|
|
|
8095 |
L = ['%s=%r' % (key, value)
|
|
|
8096 |
for key, value in self.__dict__.iteritems()]
|
|
|
8097 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
8098 |
|
|
|
8099 |
def __eq__(self, other):
|
|
|
8100 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
8101 |
|
|
|
8102 |
def __ne__(self, other):
|
|
|
8103 |
return not (self == other)
|
|
|
8104 |
|
|
|
8105 |
class getItemsInTransferLot_args:
|
|
|
8106 |
"""
|
|
|
8107 |
Attributes:
|
|
|
8108 |
- transferLotId
|
|
|
8109 |
"""
|
|
|
8110 |
|
|
|
8111 |
thrift_spec = (
|
|
|
8112 |
None, # 0
|
|
|
8113 |
(1, TType.I64, 'transferLotId', None, None, ), # 1
|
|
|
8114 |
)
|
|
|
8115 |
|
|
|
8116 |
def __init__(self, transferLotId=None,):
|
|
|
8117 |
self.transferLotId = transferLotId
|
|
|
8118 |
|
|
|
8119 |
def read(self, iprot):
|
|
|
8120 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8121 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
8122 |
return
|
|
|
8123 |
iprot.readStructBegin()
|
|
|
8124 |
while True:
|
|
|
8125 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
8126 |
if ftype == TType.STOP:
|
|
|
8127 |
break
|
|
|
8128 |
if fid == 1:
|
|
|
8129 |
if ftype == TType.I64:
|
|
|
8130 |
self.transferLotId = iprot.readI64();
|
|
|
8131 |
else:
|
|
|
8132 |
iprot.skip(ftype)
|
|
|
8133 |
else:
|
|
|
8134 |
iprot.skip(ftype)
|
|
|
8135 |
iprot.readFieldEnd()
|
|
|
8136 |
iprot.readStructEnd()
|
|
|
8137 |
|
|
|
8138 |
def write(self, oprot):
|
|
|
8139 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8140 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
8141 |
return
|
|
|
8142 |
oprot.writeStructBegin('getItemsInTransferLot_args')
|
|
|
8143 |
if self.transferLotId is not None:
|
|
|
8144 |
oprot.writeFieldBegin('transferLotId', TType.I64, 1)
|
|
|
8145 |
oprot.writeI64(self.transferLotId)
|
|
|
8146 |
oprot.writeFieldEnd()
|
|
|
8147 |
oprot.writeFieldStop()
|
|
|
8148 |
oprot.writeStructEnd()
|
|
|
8149 |
|
|
|
8150 |
def validate(self):
|
|
|
8151 |
return
|
|
|
8152 |
|
|
|
8153 |
|
|
|
8154 |
def __repr__(self):
|
|
|
8155 |
L = ['%s=%r' % (key, value)
|
|
|
8156 |
for key, value in self.__dict__.iteritems()]
|
|
|
8157 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
8158 |
|
|
|
8159 |
def __eq__(self, other):
|
|
|
8160 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
8161 |
|
|
|
8162 |
def __ne__(self, other):
|
|
|
8163 |
return not (self == other)
|
|
|
8164 |
|
|
|
8165 |
class getItemsInTransferLot_result:
|
|
|
8166 |
"""
|
|
|
8167 |
Attributes:
|
|
|
8168 |
- success
|
|
|
8169 |
"""
|
|
|
8170 |
|
|
|
8171 |
thrift_spec = (
|
|
|
8172 |
(0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
|
|
|
8173 |
)
|
|
|
8174 |
|
|
|
8175 |
def __init__(self, success=None,):
|
|
|
8176 |
self.success = success
|
|
|
8177 |
|
|
|
8178 |
def read(self, iprot):
|
|
|
8179 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8180 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
8181 |
return
|
|
|
8182 |
iprot.readStructBegin()
|
|
|
8183 |
while True:
|
|
|
8184 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
8185 |
if ftype == TType.STOP:
|
|
|
8186 |
break
|
|
|
8187 |
if fid == 0:
|
|
|
8188 |
if ftype == TType.MAP:
|
|
|
8189 |
self.success = {}
|
|
|
8190 |
(_ktype148, _vtype149, _size147 ) = iprot.readMapBegin()
|
|
|
8191 |
for _i151 in xrange(_size147):
|
|
|
8192 |
_key152 = iprot.readI64();
|
|
|
8193 |
_val153 = iprot.readI64();
|
|
|
8194 |
self.success[_key152] = _val153
|
|
|
8195 |
iprot.readMapEnd()
|
|
|
8196 |
else:
|
|
|
8197 |
iprot.skip(ftype)
|
|
|
8198 |
else:
|
|
|
8199 |
iprot.skip(ftype)
|
|
|
8200 |
iprot.readFieldEnd()
|
|
|
8201 |
iprot.readStructEnd()
|
|
|
8202 |
|
|
|
8203 |
def write(self, oprot):
|
|
|
8204 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8205 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
8206 |
return
|
|
|
8207 |
oprot.writeStructBegin('getItemsInTransferLot_result')
|
|
|
8208 |
if self.success is not None:
|
|
|
8209 |
oprot.writeFieldBegin('success', TType.MAP, 0)
|
|
|
8210 |
oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
|
|
|
8211 |
for kiter154,viter155 in self.success.items():
|
|
|
8212 |
oprot.writeI64(kiter154)
|
|
|
8213 |
oprot.writeI64(viter155)
|
|
|
8214 |
oprot.writeMapEnd()
|
|
|
8215 |
oprot.writeFieldEnd()
|
|
|
8216 |
oprot.writeFieldStop()
|
|
|
8217 |
oprot.writeStructEnd()
|
|
|
8218 |
|
|
|
8219 |
def validate(self):
|
|
|
8220 |
return
|
|
|
8221 |
|
|
|
8222 |
|
|
|
8223 |
def __repr__(self):
|
|
|
8224 |
L = ['%s=%r' % (key, value)
|
|
|
8225 |
for key, value in self.__dict__.iteritems()]
|
|
|
8226 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
8227 |
|
|
|
8228 |
def __eq__(self, other):
|
|
|
8229 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
8230 |
|
|
|
8231 |
def __ne__(self, other):
|
|
|
8232 |
return not (self == other)
|
|
|
8233 |
|
|
|
8234 |
class markItemsAsReceivedForTransferLot_args:
|
|
|
8235 |
"""
|
|
|
8236 |
Attributes:
|
|
|
8237 |
- id
|
|
|
8238 |
"""
|
|
|
8239 |
|
|
|
8240 |
thrift_spec = (
|
|
|
8241 |
None, # 0
|
|
|
8242 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
8243 |
)
|
|
|
8244 |
|
|
|
8245 |
def __init__(self, id=None,):
|
|
|
8246 |
self.id = id
|
|
|
8247 |
|
|
|
8248 |
def read(self, iprot):
|
|
|
8249 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8250 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
8251 |
return
|
|
|
8252 |
iprot.readStructBegin()
|
|
|
8253 |
while True:
|
|
|
8254 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
8255 |
if ftype == TType.STOP:
|
|
|
8256 |
break
|
|
|
8257 |
if fid == 1:
|
|
|
8258 |
if ftype == TType.I64:
|
|
|
8259 |
self.id = iprot.readI64();
|
|
|
8260 |
else:
|
|
|
8261 |
iprot.skip(ftype)
|
|
|
8262 |
else:
|
|
|
8263 |
iprot.skip(ftype)
|
|
|
8264 |
iprot.readFieldEnd()
|
|
|
8265 |
iprot.readStructEnd()
|
|
|
8266 |
|
|
|
8267 |
def write(self, oprot):
|
|
|
8268 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8269 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
8270 |
return
|
|
|
8271 |
oprot.writeStructBegin('markItemsAsReceivedForTransferLot_args')
|
|
|
8272 |
if self.id is not None:
|
|
|
8273 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
8274 |
oprot.writeI64(self.id)
|
|
|
8275 |
oprot.writeFieldEnd()
|
|
|
8276 |
oprot.writeFieldStop()
|
|
|
8277 |
oprot.writeStructEnd()
|
|
|
8278 |
|
|
|
8279 |
def validate(self):
|
|
|
8280 |
return
|
|
|
8281 |
|
|
|
8282 |
|
|
|
8283 |
def __repr__(self):
|
|
|
8284 |
L = ['%s=%r' % (key, value)
|
|
|
8285 |
for key, value in self.__dict__.iteritems()]
|
|
|
8286 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
8287 |
|
|
|
8288 |
def __eq__(self, other):
|
|
|
8289 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
8290 |
|
|
|
8291 |
def __ne__(self, other):
|
|
|
8292 |
return not (self == other)
|
|
|
8293 |
|
|
|
8294 |
class markItemsAsReceivedForTransferLot_result:
|
|
|
8295 |
"""
|
|
|
8296 |
Attributes:
|
|
|
8297 |
- wex
|
|
|
8298 |
"""
|
|
|
8299 |
|
|
|
8300 |
thrift_spec = (
|
|
|
8301 |
None, # 0
|
|
|
8302 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
8303 |
)
|
|
|
8304 |
|
|
|
8305 |
def __init__(self, wex=None,):
|
|
|
8306 |
self.wex = wex
|
|
|
8307 |
|
|
|
8308 |
def read(self, iprot):
|
|
|
8309 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8310 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
8311 |
return
|
|
|
8312 |
iprot.readStructBegin()
|
|
|
8313 |
while True:
|
|
|
8314 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
8315 |
if ftype == TType.STOP:
|
|
|
8316 |
break
|
|
|
8317 |
if fid == 1:
|
|
|
8318 |
if ftype == TType.STRUCT:
|
|
|
8319 |
self.wex = WarehouseServiceException()
|
|
|
8320 |
self.wex.read(iprot)
|
|
|
8321 |
else:
|
|
|
8322 |
iprot.skip(ftype)
|
|
|
8323 |
else:
|
|
|
8324 |
iprot.skip(ftype)
|
|
|
8325 |
iprot.readFieldEnd()
|
|
|
8326 |
iprot.readStructEnd()
|
|
|
8327 |
|
|
|
8328 |
def write(self, oprot):
|
|
|
8329 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8330 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
8331 |
return
|
|
|
8332 |
oprot.writeStructBegin('markItemsAsReceivedForTransferLot_result')
|
|
|
8333 |
if self.wex is not None:
|
|
|
8334 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
8335 |
self.wex.write(oprot)
|
|
|
8336 |
oprot.writeFieldEnd()
|
|
|
8337 |
oprot.writeFieldStop()
|
|
|
8338 |
oprot.writeStructEnd()
|
|
|
8339 |
|
|
|
8340 |
def validate(self):
|
|
|
8341 |
return
|
|
|
8342 |
|
|
|
8343 |
|
|
|
8344 |
def __repr__(self):
|
|
|
8345 |
L = ['%s=%r' % (key, value)
|
|
|
8346 |
for key, value in self.__dict__.iteritems()]
|
|
|
8347 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
8348 |
|
|
|
8349 |
def __eq__(self, other):
|
|
|
8350 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
8351 |
|
|
|
8352 |
def __ne__(self, other):
|
|
|
8353 |
return not (self == other)
|
|
|
8354 |
|
|
|
8355 |
class updateTransferLotAfterItemReceive_args:
|
|
|
8356 |
"""
|
|
|
8357 |
Attributes:
|
|
|
8358 |
- id
|
|
|
8359 |
"""
|
|
|
8360 |
|
|
|
8361 |
thrift_spec = (
|
|
|
8362 |
None, # 0
|
|
|
8363 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
8364 |
)
|
|
|
8365 |
|
|
|
8366 |
def __init__(self, id=None,):
|
|
|
8367 |
self.id = id
|
|
|
8368 |
|
|
|
8369 |
def read(self, iprot):
|
|
|
8370 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8371 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
8372 |
return
|
|
|
8373 |
iprot.readStructBegin()
|
|
|
8374 |
while True:
|
|
|
8375 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
8376 |
if ftype == TType.STOP:
|
|
|
8377 |
break
|
|
|
8378 |
if fid == 1:
|
|
|
8379 |
if ftype == TType.I64:
|
|
|
8380 |
self.id = iprot.readI64();
|
|
|
8381 |
else:
|
|
|
8382 |
iprot.skip(ftype)
|
|
|
8383 |
else:
|
|
|
8384 |
iprot.skip(ftype)
|
|
|
8385 |
iprot.readFieldEnd()
|
|
|
8386 |
iprot.readStructEnd()
|
|
|
8387 |
|
|
|
8388 |
def write(self, oprot):
|
|
|
8389 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8390 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
8391 |
return
|
|
|
8392 |
oprot.writeStructBegin('updateTransferLotAfterItemReceive_args')
|
|
|
8393 |
if self.id is not None:
|
|
|
8394 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
8395 |
oprot.writeI64(self.id)
|
|
|
8396 |
oprot.writeFieldEnd()
|
|
|
8397 |
oprot.writeFieldStop()
|
|
|
8398 |
oprot.writeStructEnd()
|
|
|
8399 |
|
|
|
8400 |
def validate(self):
|
|
|
8401 |
return
|
|
|
8402 |
|
|
|
8403 |
|
|
|
8404 |
def __repr__(self):
|
|
|
8405 |
L = ['%s=%r' % (key, value)
|
|
|
8406 |
for key, value in self.__dict__.iteritems()]
|
|
|
8407 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
8408 |
|
|
|
8409 |
def __eq__(self, other):
|
|
|
8410 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
8411 |
|
|
|
8412 |
def __ne__(self, other):
|
|
|
8413 |
return not (self == other)
|
|
|
8414 |
|
|
|
8415 |
class updateTransferLotAfterItemReceive_result:
|
|
|
8416 |
"""
|
|
|
8417 |
Attributes:
|
|
|
8418 |
- success
|
|
|
8419 |
- wex
|
|
|
8420 |
"""
|
|
|
8421 |
|
|
|
8422 |
thrift_spec = (
|
|
|
8423 |
(0, TType.I32, 'success', None, None, ), # 0
|
|
|
8424 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
8425 |
)
|
|
|
8426 |
|
|
|
8427 |
def __init__(self, success=None, wex=None,):
|
|
|
8428 |
self.success = success
|
|
|
8429 |
self.wex = wex
|
|
|
8430 |
|
|
|
8431 |
def read(self, iprot):
|
|
|
8432 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8433 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
8434 |
return
|
|
|
8435 |
iprot.readStructBegin()
|
|
|
8436 |
while True:
|
|
|
8437 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
8438 |
if ftype == TType.STOP:
|
|
|
8439 |
break
|
|
|
8440 |
if fid == 0:
|
|
|
8441 |
if ftype == TType.I32:
|
|
|
8442 |
self.success = iprot.readI32();
|
|
|
8443 |
else:
|
|
|
8444 |
iprot.skip(ftype)
|
|
|
8445 |
elif fid == 1:
|
|
|
8446 |
if ftype == TType.STRUCT:
|
|
|
8447 |
self.wex = WarehouseServiceException()
|
|
|
8448 |
self.wex.read(iprot)
|
|
|
8449 |
else:
|
|
|
8450 |
iprot.skip(ftype)
|
|
|
8451 |
else:
|
|
|
8452 |
iprot.skip(ftype)
|
|
|
8453 |
iprot.readFieldEnd()
|
|
|
8454 |
iprot.readStructEnd()
|
|
|
8455 |
|
|
|
8456 |
def write(self, oprot):
|
|
|
8457 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8458 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
8459 |
return
|
|
|
8460 |
oprot.writeStructBegin('updateTransferLotAfterItemReceive_result')
|
|
|
8461 |
if self.success is not None:
|
|
|
8462 |
oprot.writeFieldBegin('success', TType.I32, 0)
|
|
|
8463 |
oprot.writeI32(self.success)
|
|
|
8464 |
oprot.writeFieldEnd()
|
|
|
8465 |
if self.wex is not None:
|
|
|
8466 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
8467 |
self.wex.write(oprot)
|
|
|
8468 |
oprot.writeFieldEnd()
|
|
|
8469 |
oprot.writeFieldStop()
|
|
|
8470 |
oprot.writeStructEnd()
|
|
|
8471 |
|
|
|
8472 |
def validate(self):
|
|
|
8473 |
return
|
|
|
8474 |
|
|
|
8475 |
|
|
|
8476 |
def __repr__(self):
|
|
|
8477 |
L = ['%s=%r' % (key, value)
|
|
|
8478 |
for key, value in self.__dict__.iteritems()]
|
|
|
8479 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
8480 |
|
|
|
8481 |
def __eq__(self, other):
|
|
|
8482 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
8483 |
|
|
|
8484 |
def __ne__(self, other):
|
|
|
8485 |
return not (self == other)
|
|
|
8486 |
|
| 7459 |
amar.kumar |
8487 |
class scanForTransferOut_args:
|
| 7410 |
amar.kumar |
8488 |
"""
|
|
|
8489 |
Attributes:
|
|
|
8490 |
- inventoryItems
|
|
|
8491 |
- type
|
|
|
8492 |
- transferLotId
|
|
|
8493 |
"""
|
|
|
8494 |
|
|
|
8495 |
thrift_spec = (
|
|
|
8496 |
None, # 0
|
|
|
8497 |
(1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
|
|
|
8498 |
(2, TType.I32, 'type', None, None, ), # 2
|
|
|
8499 |
(3, TType.I64, 'transferLotId', None, None, ), # 3
|
|
|
8500 |
)
|
|
|
8501 |
|
|
|
8502 |
def __init__(self, inventoryItems=None, type=None, transferLotId=None,):
|
|
|
8503 |
self.inventoryItems = inventoryItems
|
|
|
8504 |
self.type = type
|
|
|
8505 |
self.transferLotId = transferLotId
|
|
|
8506 |
|
|
|
8507 |
def read(self, iprot):
|
|
|
8508 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8509 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
8510 |
return
|
|
|
8511 |
iprot.readStructBegin()
|
|
|
8512 |
while True:
|
|
|
8513 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
8514 |
if ftype == TType.STOP:
|
|
|
8515 |
break
|
|
|
8516 |
if fid == 1:
|
|
|
8517 |
if ftype == TType.LIST:
|
|
|
8518 |
self.inventoryItems = []
|
|
|
8519 |
(_etype159, _size156) = iprot.readListBegin()
|
|
|
8520 |
for _i160 in xrange(_size156):
|
|
|
8521 |
_elem161 = InventoryItem()
|
|
|
8522 |
_elem161.read(iprot)
|
|
|
8523 |
self.inventoryItems.append(_elem161)
|
|
|
8524 |
iprot.readListEnd()
|
|
|
8525 |
else:
|
|
|
8526 |
iprot.skip(ftype)
|
|
|
8527 |
elif fid == 2:
|
|
|
8528 |
if ftype == TType.I32:
|
|
|
8529 |
self.type = iprot.readI32();
|
|
|
8530 |
else:
|
|
|
8531 |
iprot.skip(ftype)
|
|
|
8532 |
elif fid == 3:
|
|
|
8533 |
if ftype == TType.I64:
|
|
|
8534 |
self.transferLotId = iprot.readI64();
|
|
|
8535 |
else:
|
|
|
8536 |
iprot.skip(ftype)
|
|
|
8537 |
else:
|
|
|
8538 |
iprot.skip(ftype)
|
|
|
8539 |
iprot.readFieldEnd()
|
|
|
8540 |
iprot.readStructEnd()
|
|
|
8541 |
|
|
|
8542 |
def write(self, oprot):
|
|
|
8543 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8544 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
8545 |
return
|
| 7459 |
amar.kumar |
8546 |
oprot.writeStructBegin('scanForTransferOut_args')
|
| 7410 |
amar.kumar |
8547 |
if self.inventoryItems is not None:
|
|
|
8548 |
oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
|
|
|
8549 |
oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
|
|
|
8550 |
for iter162 in self.inventoryItems:
|
|
|
8551 |
iter162.write(oprot)
|
|
|
8552 |
oprot.writeListEnd()
|
|
|
8553 |
oprot.writeFieldEnd()
|
|
|
8554 |
if self.type is not None:
|
|
|
8555 |
oprot.writeFieldBegin('type', TType.I32, 2)
|
|
|
8556 |
oprot.writeI32(self.type)
|
|
|
8557 |
oprot.writeFieldEnd()
|
|
|
8558 |
if self.transferLotId is not None:
|
|
|
8559 |
oprot.writeFieldBegin('transferLotId', TType.I64, 3)
|
|
|
8560 |
oprot.writeI64(self.transferLotId)
|
|
|
8561 |
oprot.writeFieldEnd()
|
|
|
8562 |
oprot.writeFieldStop()
|
|
|
8563 |
oprot.writeStructEnd()
|
|
|
8564 |
|
|
|
8565 |
def validate(self):
|
|
|
8566 |
return
|
|
|
8567 |
|
|
|
8568 |
|
|
|
8569 |
def __repr__(self):
|
|
|
8570 |
L = ['%s=%r' % (key, value)
|
|
|
8571 |
for key, value in self.__dict__.iteritems()]
|
|
|
8572 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
8573 |
|
|
|
8574 |
def __eq__(self, other):
|
|
|
8575 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
8576 |
|
|
|
8577 |
def __ne__(self, other):
|
|
|
8578 |
return not (self == other)
|
|
|
8579 |
|
| 7459 |
amar.kumar |
8580 |
class scanForTransferOut_result:
|
| 7410 |
amar.kumar |
8581 |
"""
|
|
|
8582 |
Attributes:
|
|
|
8583 |
- wex
|
|
|
8584 |
"""
|
|
|
8585 |
|
|
|
8586 |
thrift_spec = (
|
|
|
8587 |
None, # 0
|
|
|
8588 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
8589 |
)
|
|
|
8590 |
|
|
|
8591 |
def __init__(self, wex=None,):
|
|
|
8592 |
self.wex = wex
|
|
|
8593 |
|
|
|
8594 |
def read(self, iprot):
|
|
|
8595 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8596 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
8597 |
return
|
|
|
8598 |
iprot.readStructBegin()
|
|
|
8599 |
while True:
|
|
|
8600 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
8601 |
if ftype == TType.STOP:
|
|
|
8602 |
break
|
|
|
8603 |
if fid == 1:
|
|
|
8604 |
if ftype == TType.STRUCT:
|
|
|
8605 |
self.wex = WarehouseServiceException()
|
|
|
8606 |
self.wex.read(iprot)
|
|
|
8607 |
else:
|
|
|
8608 |
iprot.skip(ftype)
|
|
|
8609 |
else:
|
|
|
8610 |
iprot.skip(ftype)
|
|
|
8611 |
iprot.readFieldEnd()
|
|
|
8612 |
iprot.readStructEnd()
|
|
|
8613 |
|
|
|
8614 |
def write(self, oprot):
|
|
|
8615 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8616 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
8617 |
return
|
| 7459 |
amar.kumar |
8618 |
oprot.writeStructBegin('scanForTransferOut_result')
|
| 7410 |
amar.kumar |
8619 |
if self.wex is not None:
|
|
|
8620 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
8621 |
self.wex.write(oprot)
|
|
|
8622 |
oprot.writeFieldEnd()
|
|
|
8623 |
oprot.writeFieldStop()
|
|
|
8624 |
oprot.writeStructEnd()
|
|
|
8625 |
|
|
|
8626 |
def validate(self):
|
|
|
8627 |
return
|
|
|
8628 |
|
|
|
8629 |
|
|
|
8630 |
def __repr__(self):
|
|
|
8631 |
L = ['%s=%r' % (key, value)
|
|
|
8632 |
for key, value in self.__dict__.iteritems()]
|
|
|
8633 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
8634 |
|
|
|
8635 |
def __eq__(self, other):
|
|
|
8636 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
8637 |
|
|
|
8638 |
def __ne__(self, other):
|
|
|
8639 |
return not (self == other)
|
| 7459 |
amar.kumar |
8640 |
|
|
|
8641 |
class scanForTransferIn_args:
|
|
|
8642 |
"""
|
|
|
8643 |
Attributes:
|
|
|
8644 |
- inventoryItems
|
|
|
8645 |
- type
|
|
|
8646 |
- transferLotId
|
|
|
8647 |
"""
|
|
|
8648 |
|
|
|
8649 |
thrift_spec = (
|
|
|
8650 |
None, # 0
|
|
|
8651 |
(1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
|
|
|
8652 |
(2, TType.I32, 'type', None, None, ), # 2
|
|
|
8653 |
(3, TType.I64, 'transferLotId', None, None, ), # 3
|
|
|
8654 |
)
|
|
|
8655 |
|
|
|
8656 |
def __init__(self, inventoryItems=None, type=None, transferLotId=None,):
|
|
|
8657 |
self.inventoryItems = inventoryItems
|
|
|
8658 |
self.type = type
|
|
|
8659 |
self.transferLotId = transferLotId
|
|
|
8660 |
|
|
|
8661 |
def read(self, iprot):
|
|
|
8662 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8663 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
8664 |
return
|
|
|
8665 |
iprot.readStructBegin()
|
|
|
8666 |
while True:
|
|
|
8667 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
8668 |
if ftype == TType.STOP:
|
|
|
8669 |
break
|
|
|
8670 |
if fid == 1:
|
|
|
8671 |
if ftype == TType.LIST:
|
|
|
8672 |
self.inventoryItems = []
|
|
|
8673 |
(_etype166, _size163) = iprot.readListBegin()
|
|
|
8674 |
for _i167 in xrange(_size163):
|
|
|
8675 |
_elem168 = InventoryItem()
|
|
|
8676 |
_elem168.read(iprot)
|
|
|
8677 |
self.inventoryItems.append(_elem168)
|
|
|
8678 |
iprot.readListEnd()
|
|
|
8679 |
else:
|
|
|
8680 |
iprot.skip(ftype)
|
|
|
8681 |
elif fid == 2:
|
|
|
8682 |
if ftype == TType.I32:
|
|
|
8683 |
self.type = iprot.readI32();
|
|
|
8684 |
else:
|
|
|
8685 |
iprot.skip(ftype)
|
|
|
8686 |
elif fid == 3:
|
|
|
8687 |
if ftype == TType.I64:
|
|
|
8688 |
self.transferLotId = iprot.readI64();
|
|
|
8689 |
else:
|
|
|
8690 |
iprot.skip(ftype)
|
|
|
8691 |
else:
|
|
|
8692 |
iprot.skip(ftype)
|
|
|
8693 |
iprot.readFieldEnd()
|
|
|
8694 |
iprot.readStructEnd()
|
|
|
8695 |
|
|
|
8696 |
def write(self, oprot):
|
|
|
8697 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8698 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
8699 |
return
|
|
|
8700 |
oprot.writeStructBegin('scanForTransferIn_args')
|
|
|
8701 |
if self.inventoryItems is not None:
|
|
|
8702 |
oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
|
|
|
8703 |
oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
|
|
|
8704 |
for iter169 in self.inventoryItems:
|
|
|
8705 |
iter169.write(oprot)
|
|
|
8706 |
oprot.writeListEnd()
|
|
|
8707 |
oprot.writeFieldEnd()
|
|
|
8708 |
if self.type is not None:
|
|
|
8709 |
oprot.writeFieldBegin('type', TType.I32, 2)
|
|
|
8710 |
oprot.writeI32(self.type)
|
|
|
8711 |
oprot.writeFieldEnd()
|
|
|
8712 |
if self.transferLotId is not None:
|
|
|
8713 |
oprot.writeFieldBegin('transferLotId', TType.I64, 3)
|
|
|
8714 |
oprot.writeI64(self.transferLotId)
|
|
|
8715 |
oprot.writeFieldEnd()
|
|
|
8716 |
oprot.writeFieldStop()
|
|
|
8717 |
oprot.writeStructEnd()
|
|
|
8718 |
|
|
|
8719 |
def validate(self):
|
|
|
8720 |
return
|
|
|
8721 |
|
|
|
8722 |
|
|
|
8723 |
def __repr__(self):
|
|
|
8724 |
L = ['%s=%r' % (key, value)
|
|
|
8725 |
for key, value in self.__dict__.iteritems()]
|
|
|
8726 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
8727 |
|
|
|
8728 |
def __eq__(self, other):
|
|
|
8729 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
8730 |
|
|
|
8731 |
def __ne__(self, other):
|
|
|
8732 |
return not (self == other)
|
|
|
8733 |
|
|
|
8734 |
class scanForTransferIn_result:
|
|
|
8735 |
"""
|
|
|
8736 |
Attributes:
|
|
|
8737 |
- wex
|
|
|
8738 |
"""
|
|
|
8739 |
|
|
|
8740 |
thrift_spec = (
|
|
|
8741 |
None, # 0
|
|
|
8742 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
8743 |
)
|
|
|
8744 |
|
|
|
8745 |
def __init__(self, wex=None,):
|
|
|
8746 |
self.wex = wex
|
|
|
8747 |
|
|
|
8748 |
def read(self, iprot):
|
|
|
8749 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8750 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
8751 |
return
|
|
|
8752 |
iprot.readStructBegin()
|
|
|
8753 |
while True:
|
|
|
8754 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
8755 |
if ftype == TType.STOP:
|
|
|
8756 |
break
|
|
|
8757 |
if fid == 1:
|
|
|
8758 |
if ftype == TType.STRUCT:
|
|
|
8759 |
self.wex = WarehouseServiceException()
|
|
|
8760 |
self.wex.read(iprot)
|
|
|
8761 |
else:
|
|
|
8762 |
iprot.skip(ftype)
|
|
|
8763 |
else:
|
|
|
8764 |
iprot.skip(ftype)
|
|
|
8765 |
iprot.readFieldEnd()
|
|
|
8766 |
iprot.readStructEnd()
|
|
|
8767 |
|
|
|
8768 |
def write(self, oprot):
|
|
|
8769 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8770 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
8771 |
return
|
|
|
8772 |
oprot.writeStructBegin('scanForTransferIn_result')
|
|
|
8773 |
if self.wex is not None:
|
|
|
8774 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
8775 |
self.wex.write(oprot)
|
|
|
8776 |
oprot.writeFieldEnd()
|
|
|
8777 |
oprot.writeFieldStop()
|
|
|
8778 |
oprot.writeStructEnd()
|
|
|
8779 |
|
|
|
8780 |
def validate(self):
|
|
|
8781 |
return
|
|
|
8782 |
|
|
|
8783 |
|
|
|
8784 |
def __repr__(self):
|
|
|
8785 |
L = ['%s=%r' % (key, value)
|
|
|
8786 |
for key, value in self.__dict__.iteritems()]
|
|
|
8787 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
8788 |
|
|
|
8789 |
def __eq__(self, other):
|
|
|
8790 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
8791 |
|
|
|
8792 |
def __ne__(self, other):
|
|
|
8793 |
return not (self == other)
|
|
|
8794 |
|
|
|
8795 |
class scanForOursThirdPartyReceive_args:
|
|
|
8796 |
"""
|
|
|
8797 |
Attributes:
|
|
|
8798 |
- inventoryItems
|
|
|
8799 |
- id
|
|
|
8800 |
"""
|
|
|
8801 |
|
|
|
8802 |
thrift_spec = (
|
|
|
8803 |
None, # 0
|
|
|
8804 |
(1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
|
|
|
8805 |
(2, TType.I64, 'id', None, None, ), # 2
|
|
|
8806 |
)
|
|
|
8807 |
|
|
|
8808 |
def __init__(self, inventoryItems=None, id=None,):
|
|
|
8809 |
self.inventoryItems = inventoryItems
|
|
|
8810 |
self.id = id
|
|
|
8811 |
|
|
|
8812 |
def read(self, iprot):
|
|
|
8813 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8814 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
8815 |
return
|
|
|
8816 |
iprot.readStructBegin()
|
|
|
8817 |
while True:
|
|
|
8818 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
8819 |
if ftype == TType.STOP:
|
|
|
8820 |
break
|
|
|
8821 |
if fid == 1:
|
|
|
8822 |
if ftype == TType.LIST:
|
|
|
8823 |
self.inventoryItems = []
|
|
|
8824 |
(_etype173, _size170) = iprot.readListBegin()
|
|
|
8825 |
for _i174 in xrange(_size170):
|
|
|
8826 |
_elem175 = InventoryItem()
|
|
|
8827 |
_elem175.read(iprot)
|
|
|
8828 |
self.inventoryItems.append(_elem175)
|
|
|
8829 |
iprot.readListEnd()
|
|
|
8830 |
else:
|
|
|
8831 |
iprot.skip(ftype)
|
|
|
8832 |
elif fid == 2:
|
|
|
8833 |
if ftype == TType.I64:
|
|
|
8834 |
self.id = iprot.readI64();
|
|
|
8835 |
else:
|
|
|
8836 |
iprot.skip(ftype)
|
|
|
8837 |
else:
|
|
|
8838 |
iprot.skip(ftype)
|
|
|
8839 |
iprot.readFieldEnd()
|
|
|
8840 |
iprot.readStructEnd()
|
|
|
8841 |
|
|
|
8842 |
def write(self, oprot):
|
|
|
8843 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8844 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
8845 |
return
|
|
|
8846 |
oprot.writeStructBegin('scanForOursThirdPartyReceive_args')
|
|
|
8847 |
if self.inventoryItems is not None:
|
|
|
8848 |
oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
|
|
|
8849 |
oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
|
|
|
8850 |
for iter176 in self.inventoryItems:
|
|
|
8851 |
iter176.write(oprot)
|
|
|
8852 |
oprot.writeListEnd()
|
|
|
8853 |
oprot.writeFieldEnd()
|
|
|
8854 |
if self.id is not None:
|
|
|
8855 |
oprot.writeFieldBegin('id', TType.I64, 2)
|
|
|
8856 |
oprot.writeI64(self.id)
|
|
|
8857 |
oprot.writeFieldEnd()
|
|
|
8858 |
oprot.writeFieldStop()
|
|
|
8859 |
oprot.writeStructEnd()
|
|
|
8860 |
|
|
|
8861 |
def validate(self):
|
|
|
8862 |
return
|
|
|
8863 |
|
|
|
8864 |
|
|
|
8865 |
def __repr__(self):
|
|
|
8866 |
L = ['%s=%r' % (key, value)
|
|
|
8867 |
for key, value in self.__dict__.iteritems()]
|
|
|
8868 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
8869 |
|
|
|
8870 |
def __eq__(self, other):
|
|
|
8871 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
8872 |
|
|
|
8873 |
def __ne__(self, other):
|
|
|
8874 |
return not (self == other)
|
|
|
8875 |
|
|
|
8876 |
class scanForOursThirdPartyReceive_result:
|
|
|
8877 |
"""
|
|
|
8878 |
Attributes:
|
|
|
8879 |
- wex
|
|
|
8880 |
"""
|
|
|
8881 |
|
|
|
8882 |
thrift_spec = (
|
|
|
8883 |
None, # 0
|
|
|
8884 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
8885 |
)
|
|
|
8886 |
|
|
|
8887 |
def __init__(self, wex=None,):
|
|
|
8888 |
self.wex = wex
|
|
|
8889 |
|
|
|
8890 |
def read(self, iprot):
|
|
|
8891 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8892 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
8893 |
return
|
|
|
8894 |
iprot.readStructBegin()
|
|
|
8895 |
while True:
|
|
|
8896 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
8897 |
if ftype == TType.STOP:
|
|
|
8898 |
break
|
|
|
8899 |
if fid == 1:
|
|
|
8900 |
if ftype == TType.STRUCT:
|
|
|
8901 |
self.wex = WarehouseServiceException()
|
|
|
8902 |
self.wex.read(iprot)
|
|
|
8903 |
else:
|
|
|
8904 |
iprot.skip(ftype)
|
|
|
8905 |
else:
|
|
|
8906 |
iprot.skip(ftype)
|
|
|
8907 |
iprot.readFieldEnd()
|
|
|
8908 |
iprot.readStructEnd()
|
|
|
8909 |
|
|
|
8910 |
def write(self, oprot):
|
|
|
8911 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8912 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
8913 |
return
|
|
|
8914 |
oprot.writeStructBegin('scanForOursThirdPartyReceive_result')
|
|
|
8915 |
if self.wex is not None:
|
|
|
8916 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
8917 |
self.wex.write(oprot)
|
|
|
8918 |
oprot.writeFieldEnd()
|
|
|
8919 |
oprot.writeFieldStop()
|
|
|
8920 |
oprot.writeStructEnd()
|
|
|
8921 |
|
|
|
8922 |
def validate(self):
|
|
|
8923 |
return
|
|
|
8924 |
|
|
|
8925 |
|
|
|
8926 |
def __repr__(self):
|
|
|
8927 |
L = ['%s=%r' % (key, value)
|
|
|
8928 |
for key, value in self.__dict__.iteritems()]
|
|
|
8929 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
8930 |
|
|
|
8931 |
def __eq__(self, other):
|
|
|
8932 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
8933 |
|
|
|
8934 |
def __ne__(self, other):
|
|
|
8935 |
return not (self == other)
|
| 7574 |
amar.kumar |
8936 |
|
|
|
8937 |
class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args:
|
|
|
8938 |
"""
|
|
|
8939 |
Attributes:
|
|
|
8940 |
- itemId
|
|
|
8941 |
- physicalWarehouseId
|
|
|
8942 |
"""
|
|
|
8943 |
|
|
|
8944 |
thrift_spec = (
|
|
|
8945 |
None, # 0
|
|
|
8946 |
(1, TType.I64, 'itemId', None, None, ), # 1
|
|
|
8947 |
(2, TType.I64, 'physicalWarehouseId', None, None, ), # 2
|
|
|
8948 |
)
|
|
|
8949 |
|
|
|
8950 |
def __init__(self, itemId=None, physicalWarehouseId=None,):
|
|
|
8951 |
self.itemId = itemId
|
|
|
8952 |
self.physicalWarehouseId = physicalWarehouseId
|
|
|
8953 |
|
|
|
8954 |
def read(self, iprot):
|
|
|
8955 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8956 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
8957 |
return
|
|
|
8958 |
iprot.readStructBegin()
|
|
|
8959 |
while True:
|
|
|
8960 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
8961 |
if ftype == TType.STOP:
|
|
|
8962 |
break
|
|
|
8963 |
if fid == 1:
|
|
|
8964 |
if ftype == TType.I64:
|
|
|
8965 |
self.itemId = iprot.readI64();
|
|
|
8966 |
else:
|
|
|
8967 |
iprot.skip(ftype)
|
|
|
8968 |
elif fid == 2:
|
|
|
8969 |
if ftype == TType.I64:
|
|
|
8970 |
self.physicalWarehouseId = iprot.readI64();
|
|
|
8971 |
else:
|
|
|
8972 |
iprot.skip(ftype)
|
|
|
8973 |
else:
|
|
|
8974 |
iprot.skip(ftype)
|
|
|
8975 |
iprot.readFieldEnd()
|
|
|
8976 |
iprot.readStructEnd()
|
|
|
8977 |
|
|
|
8978 |
def write(self, oprot):
|
|
|
8979 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8980 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
8981 |
return
|
|
|
8982 |
oprot.writeStructBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args')
|
|
|
8983 |
if self.itemId is not None:
|
|
|
8984 |
oprot.writeFieldBegin('itemId', TType.I64, 1)
|
|
|
8985 |
oprot.writeI64(self.itemId)
|
|
|
8986 |
oprot.writeFieldEnd()
|
|
|
8987 |
if self.physicalWarehouseId is not None:
|
|
|
8988 |
oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 2)
|
|
|
8989 |
oprot.writeI64(self.physicalWarehouseId)
|
|
|
8990 |
oprot.writeFieldEnd()
|
|
|
8991 |
oprot.writeFieldStop()
|
|
|
8992 |
oprot.writeStructEnd()
|
|
|
8993 |
|
|
|
8994 |
def validate(self):
|
|
|
8995 |
return
|
|
|
8996 |
|
|
|
8997 |
|
|
|
8998 |
def __repr__(self):
|
|
|
8999 |
L = ['%s=%r' % (key, value)
|
|
|
9000 |
for key, value in self.__dict__.iteritems()]
|
|
|
9001 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
9002 |
|
|
|
9003 |
def __eq__(self, other):
|
|
|
9004 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
9005 |
|
|
|
9006 |
def __ne__(self, other):
|
|
|
9007 |
return not (self == other)
|
|
|
9008 |
|
|
|
9009 |
class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result:
|
|
|
9010 |
"""
|
|
|
9011 |
Attributes:
|
|
|
9012 |
- success
|
|
|
9013 |
- wex
|
|
|
9014 |
"""
|
|
|
9015 |
|
|
|
9016 |
thrift_spec = (
|
|
|
9017 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
9018 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
9019 |
)
|
|
|
9020 |
|
|
|
9021 |
def __init__(self, success=None, wex=None,):
|
|
|
9022 |
self.success = success
|
|
|
9023 |
self.wex = wex
|
|
|
9024 |
|
|
|
9025 |
def read(self, iprot):
|
|
|
9026 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9027 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
9028 |
return
|
|
|
9029 |
iprot.readStructBegin()
|
|
|
9030 |
while True:
|
|
|
9031 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
9032 |
if ftype == TType.STOP:
|
|
|
9033 |
break
|
|
|
9034 |
if fid == 0:
|
|
|
9035 |
if ftype == TType.I64:
|
|
|
9036 |
self.success = iprot.readI64();
|
|
|
9037 |
else:
|
|
|
9038 |
iprot.skip(ftype)
|
|
|
9039 |
elif fid == 1:
|
|
|
9040 |
if ftype == TType.STRUCT:
|
|
|
9041 |
self.wex = WarehouseServiceException()
|
|
|
9042 |
self.wex.read(iprot)
|
|
|
9043 |
else:
|
|
|
9044 |
iprot.skip(ftype)
|
|
|
9045 |
else:
|
|
|
9046 |
iprot.skip(ftype)
|
|
|
9047 |
iprot.readFieldEnd()
|
|
|
9048 |
iprot.readStructEnd()
|
|
|
9049 |
|
|
|
9050 |
def write(self, oprot):
|
|
|
9051 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9052 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
9053 |
return
|
|
|
9054 |
oprot.writeStructBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result')
|
|
|
9055 |
if self.success is not None:
|
|
|
9056 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
9057 |
oprot.writeI64(self.success)
|
|
|
9058 |
oprot.writeFieldEnd()
|
|
|
9059 |
if self.wex is not None:
|
|
|
9060 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
9061 |
self.wex.write(oprot)
|
|
|
9062 |
oprot.writeFieldEnd()
|
|
|
9063 |
oprot.writeFieldStop()
|
|
|
9064 |
oprot.writeStructEnd()
|
|
|
9065 |
|
|
|
9066 |
def validate(self):
|
|
|
9067 |
return
|
|
|
9068 |
|
|
|
9069 |
|
|
|
9070 |
def __repr__(self):
|
|
|
9071 |
L = ['%s=%r' % (key, value)
|
|
|
9072 |
for key, value in self.__dict__.iteritems()]
|
|
|
9073 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
9074 |
|
|
|
9075 |
def __eq__(self, other):
|
|
|
9076 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
9077 |
|
|
|
9078 |
def __ne__(self, other):
|
|
|
9079 |
return not (self == other)
|
| 7672 |
rajveer |
9080 |
|
|
|
9081 |
class getInTransitInventory_args:
|
|
|
9082 |
"""
|
|
|
9083 |
Attributes:
|
|
|
9084 |
- originWarehouseId
|
|
|
9085 |
"""
|
|
|
9086 |
|
|
|
9087 |
thrift_spec = (
|
|
|
9088 |
None, # 0
|
|
|
9089 |
(1, TType.I64, 'originWarehouseId', None, None, ), # 1
|
|
|
9090 |
)
|
|
|
9091 |
|
|
|
9092 |
def __init__(self, originWarehouseId=None,):
|
|
|
9093 |
self.originWarehouseId = originWarehouseId
|
|
|
9094 |
|
|
|
9095 |
def read(self, iprot):
|
|
|
9096 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9097 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
9098 |
return
|
|
|
9099 |
iprot.readStructBegin()
|
|
|
9100 |
while True:
|
|
|
9101 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
9102 |
if ftype == TType.STOP:
|
|
|
9103 |
break
|
|
|
9104 |
if fid == 1:
|
|
|
9105 |
if ftype == TType.I64:
|
|
|
9106 |
self.originWarehouseId = iprot.readI64();
|
|
|
9107 |
else:
|
|
|
9108 |
iprot.skip(ftype)
|
|
|
9109 |
else:
|
|
|
9110 |
iprot.skip(ftype)
|
|
|
9111 |
iprot.readFieldEnd()
|
|
|
9112 |
iprot.readStructEnd()
|
|
|
9113 |
|
|
|
9114 |
def write(self, oprot):
|
|
|
9115 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9116 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
9117 |
return
|
|
|
9118 |
oprot.writeStructBegin('getInTransitInventory_args')
|
|
|
9119 |
if self.originWarehouseId is not None:
|
|
|
9120 |
oprot.writeFieldBegin('originWarehouseId', TType.I64, 1)
|
|
|
9121 |
oprot.writeI64(self.originWarehouseId)
|
|
|
9122 |
oprot.writeFieldEnd()
|
|
|
9123 |
oprot.writeFieldStop()
|
|
|
9124 |
oprot.writeStructEnd()
|
|
|
9125 |
|
|
|
9126 |
def validate(self):
|
|
|
9127 |
return
|
|
|
9128 |
|
|
|
9129 |
|
|
|
9130 |
def __repr__(self):
|
|
|
9131 |
L = ['%s=%r' % (key, value)
|
|
|
9132 |
for key, value in self.__dict__.iteritems()]
|
|
|
9133 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
9134 |
|
|
|
9135 |
def __eq__(self, other):
|
|
|
9136 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
9137 |
|
|
|
9138 |
def __ne__(self, other):
|
|
|
9139 |
return not (self == other)
|
|
|
9140 |
|
|
|
9141 |
class getInTransitInventory_result:
|
|
|
9142 |
"""
|
|
|
9143 |
Attributes:
|
|
|
9144 |
- success
|
|
|
9145 |
"""
|
|
|
9146 |
|
|
|
9147 |
thrift_spec = (
|
|
|
9148 |
(0, TType.LIST, 'success', (TType.STRUCT,(InTransitInventory, InTransitInventory.thrift_spec)), None, ), # 0
|
|
|
9149 |
)
|
|
|
9150 |
|
|
|
9151 |
def __init__(self, success=None,):
|
|
|
9152 |
self.success = success
|
|
|
9153 |
|
|
|
9154 |
def read(self, iprot):
|
|
|
9155 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9156 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
9157 |
return
|
|
|
9158 |
iprot.readStructBegin()
|
|
|
9159 |
while True:
|
|
|
9160 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
9161 |
if ftype == TType.STOP:
|
|
|
9162 |
break
|
|
|
9163 |
if fid == 0:
|
|
|
9164 |
if ftype == TType.LIST:
|
|
|
9165 |
self.success = []
|
|
|
9166 |
(_etype180, _size177) = iprot.readListBegin()
|
|
|
9167 |
for _i181 in xrange(_size177):
|
|
|
9168 |
_elem182 = InTransitInventory()
|
|
|
9169 |
_elem182.read(iprot)
|
|
|
9170 |
self.success.append(_elem182)
|
|
|
9171 |
iprot.readListEnd()
|
|
|
9172 |
else:
|
|
|
9173 |
iprot.skip(ftype)
|
|
|
9174 |
else:
|
|
|
9175 |
iprot.skip(ftype)
|
|
|
9176 |
iprot.readFieldEnd()
|
|
|
9177 |
iprot.readStructEnd()
|
|
|
9178 |
|
|
|
9179 |
def write(self, oprot):
|
|
|
9180 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9181 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
9182 |
return
|
|
|
9183 |
oprot.writeStructBegin('getInTransitInventory_result')
|
|
|
9184 |
if self.success is not None:
|
|
|
9185 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
9186 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
9187 |
for iter183 in self.success:
|
|
|
9188 |
iter183.write(oprot)
|
|
|
9189 |
oprot.writeListEnd()
|
|
|
9190 |
oprot.writeFieldEnd()
|
|
|
9191 |
oprot.writeFieldStop()
|
|
|
9192 |
oprot.writeStructEnd()
|
|
|
9193 |
|
|
|
9194 |
def validate(self):
|
|
|
9195 |
return
|
|
|
9196 |
|
|
|
9197 |
|
|
|
9198 |
def __repr__(self):
|
|
|
9199 |
L = ['%s=%r' % (key, value)
|
|
|
9200 |
for key, value in self.__dict__.iteritems()]
|
|
|
9201 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
9202 |
|
|
|
9203 |
def __eq__(self, other):
|
|
|
9204 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
9205 |
|
|
|
9206 |
def __ne__(self, other):
|
|
|
9207 |
return not (self == other)
|
| 7968 |
amar.kumar |
9208 |
|
|
|
9209 |
class isItemAvailableForSale_args:
|
|
|
9210 |
"""
|
|
|
9211 |
Attributes:
|
|
|
9212 |
- itemId
|
|
|
9213 |
- serialNumber
|
|
|
9214 |
- warehouseId
|
|
|
9215 |
"""
|
|
|
9216 |
|
|
|
9217 |
thrift_spec = (
|
|
|
9218 |
None, # 0
|
|
|
9219 |
(1, TType.I64, 'itemId', None, None, ), # 1
|
|
|
9220 |
(2, TType.STRING, 'serialNumber', None, None, ), # 2
|
|
|
9221 |
(3, TType.I64, 'warehouseId', None, None, ), # 3
|
|
|
9222 |
)
|
|
|
9223 |
|
|
|
9224 |
def __init__(self, itemId=None, serialNumber=None, warehouseId=None,):
|
|
|
9225 |
self.itemId = itemId
|
|
|
9226 |
self.serialNumber = serialNumber
|
|
|
9227 |
self.warehouseId = warehouseId
|
|
|
9228 |
|
|
|
9229 |
def read(self, iprot):
|
|
|
9230 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9231 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
9232 |
return
|
|
|
9233 |
iprot.readStructBegin()
|
|
|
9234 |
while True:
|
|
|
9235 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
9236 |
if ftype == TType.STOP:
|
|
|
9237 |
break
|
|
|
9238 |
if fid == 1:
|
|
|
9239 |
if ftype == TType.I64:
|
|
|
9240 |
self.itemId = iprot.readI64();
|
|
|
9241 |
else:
|
|
|
9242 |
iprot.skip(ftype)
|
|
|
9243 |
elif fid == 2:
|
|
|
9244 |
if ftype == TType.STRING:
|
|
|
9245 |
self.serialNumber = iprot.readString();
|
|
|
9246 |
else:
|
|
|
9247 |
iprot.skip(ftype)
|
|
|
9248 |
elif fid == 3:
|
|
|
9249 |
if ftype == TType.I64:
|
|
|
9250 |
self.warehouseId = iprot.readI64();
|
|
|
9251 |
else:
|
|
|
9252 |
iprot.skip(ftype)
|
|
|
9253 |
else:
|
|
|
9254 |
iprot.skip(ftype)
|
|
|
9255 |
iprot.readFieldEnd()
|
|
|
9256 |
iprot.readStructEnd()
|
|
|
9257 |
|
|
|
9258 |
def write(self, oprot):
|
|
|
9259 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9260 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
9261 |
return
|
|
|
9262 |
oprot.writeStructBegin('isItemAvailableForSale_args')
|
|
|
9263 |
if self.itemId is not None:
|
|
|
9264 |
oprot.writeFieldBegin('itemId', TType.I64, 1)
|
|
|
9265 |
oprot.writeI64(self.itemId)
|
|
|
9266 |
oprot.writeFieldEnd()
|
|
|
9267 |
if self.serialNumber is not None:
|
|
|
9268 |
oprot.writeFieldBegin('serialNumber', TType.STRING, 2)
|
|
|
9269 |
oprot.writeString(self.serialNumber)
|
|
|
9270 |
oprot.writeFieldEnd()
|
|
|
9271 |
if self.warehouseId is not None:
|
|
|
9272 |
oprot.writeFieldBegin('warehouseId', TType.I64, 3)
|
|
|
9273 |
oprot.writeI64(self.warehouseId)
|
|
|
9274 |
oprot.writeFieldEnd()
|
|
|
9275 |
oprot.writeFieldStop()
|
|
|
9276 |
oprot.writeStructEnd()
|
|
|
9277 |
|
|
|
9278 |
def validate(self):
|
|
|
9279 |
return
|
|
|
9280 |
|
|
|
9281 |
|
|
|
9282 |
def __repr__(self):
|
|
|
9283 |
L = ['%s=%r' % (key, value)
|
|
|
9284 |
for key, value in self.__dict__.iteritems()]
|
|
|
9285 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
9286 |
|
|
|
9287 |
def __eq__(self, other):
|
|
|
9288 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
9289 |
|
|
|
9290 |
def __ne__(self, other):
|
|
|
9291 |
return not (self == other)
|
|
|
9292 |
|
|
|
9293 |
class isItemAvailableForSale_result:
|
|
|
9294 |
"""
|
|
|
9295 |
Attributes:
|
|
|
9296 |
- success
|
|
|
9297 |
- wex
|
|
|
9298 |
"""
|
|
|
9299 |
|
|
|
9300 |
thrift_spec = (
|
|
|
9301 |
(0, TType.BOOL, 'success', None, None, ), # 0
|
|
|
9302 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
9303 |
)
|
|
|
9304 |
|
|
|
9305 |
def __init__(self, success=None, wex=None,):
|
|
|
9306 |
self.success = success
|
|
|
9307 |
self.wex = wex
|
|
|
9308 |
|
|
|
9309 |
def read(self, iprot):
|
|
|
9310 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9311 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
9312 |
return
|
|
|
9313 |
iprot.readStructBegin()
|
|
|
9314 |
while True:
|
|
|
9315 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
9316 |
if ftype == TType.STOP:
|
|
|
9317 |
break
|
|
|
9318 |
if fid == 0:
|
|
|
9319 |
if ftype == TType.BOOL:
|
|
|
9320 |
self.success = iprot.readBool();
|
|
|
9321 |
else:
|
|
|
9322 |
iprot.skip(ftype)
|
|
|
9323 |
elif fid == 1:
|
|
|
9324 |
if ftype == TType.STRUCT:
|
|
|
9325 |
self.wex = WarehouseServiceException()
|
|
|
9326 |
self.wex.read(iprot)
|
|
|
9327 |
else:
|
|
|
9328 |
iprot.skip(ftype)
|
|
|
9329 |
else:
|
|
|
9330 |
iprot.skip(ftype)
|
|
|
9331 |
iprot.readFieldEnd()
|
|
|
9332 |
iprot.readStructEnd()
|
|
|
9333 |
|
|
|
9334 |
def write(self, oprot):
|
|
|
9335 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9336 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
9337 |
return
|
|
|
9338 |
oprot.writeStructBegin('isItemAvailableForSale_result')
|
|
|
9339 |
if self.success is not None:
|
|
|
9340 |
oprot.writeFieldBegin('success', TType.BOOL, 0)
|
|
|
9341 |
oprot.writeBool(self.success)
|
|
|
9342 |
oprot.writeFieldEnd()
|
|
|
9343 |
if self.wex is not None:
|
|
|
9344 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
9345 |
self.wex.write(oprot)
|
|
|
9346 |
oprot.writeFieldEnd()
|
|
|
9347 |
oprot.writeFieldStop()
|
|
|
9348 |
oprot.writeStructEnd()
|
|
|
9349 |
|
|
|
9350 |
def validate(self):
|
|
|
9351 |
return
|
|
|
9352 |
|
|
|
9353 |
|
|
|
9354 |
def __repr__(self):
|
|
|
9355 |
L = ['%s=%r' % (key, value)
|
|
|
9356 |
for key, value in self.__dict__.iteritems()]
|
|
|
9357 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
9358 |
|
|
|
9359 |
def __eq__(self, other):
|
|
|
9360 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
9361 |
|
|
|
9362 |
def __ne__(self, other):
|
|
|
9363 |
return not (self == other)
|
|
|
9364 |
|
|
|
9365 |
class getHistoricBadInventoryByScans_args:
|
|
|
9366 |
"""
|
|
|
9367 |
Attributes:
|
|
|
9368 |
- date
|
|
|
9369 |
"""
|
|
|
9370 |
|
|
|
9371 |
thrift_spec = (
|
|
|
9372 |
None, # 0
|
|
|
9373 |
(1, TType.I64, 'date', None, None, ), # 1
|
|
|
9374 |
)
|
|
|
9375 |
|
|
|
9376 |
def __init__(self, date=None,):
|
|
|
9377 |
self.date = date
|
|
|
9378 |
|
|
|
9379 |
def read(self, iprot):
|
|
|
9380 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9381 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
9382 |
return
|
|
|
9383 |
iprot.readStructBegin()
|
|
|
9384 |
while True:
|
|
|
9385 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
9386 |
if ftype == TType.STOP:
|
|
|
9387 |
break
|
|
|
9388 |
if fid == 1:
|
|
|
9389 |
if ftype == TType.I64:
|
|
|
9390 |
self.date = iprot.readI64();
|
|
|
9391 |
else:
|
|
|
9392 |
iprot.skip(ftype)
|
|
|
9393 |
else:
|
|
|
9394 |
iprot.skip(ftype)
|
|
|
9395 |
iprot.readFieldEnd()
|
|
|
9396 |
iprot.readStructEnd()
|
|
|
9397 |
|
|
|
9398 |
def write(self, oprot):
|
|
|
9399 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9400 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
9401 |
return
|
|
|
9402 |
oprot.writeStructBegin('getHistoricBadInventoryByScans_args')
|
|
|
9403 |
if self.date is not None:
|
|
|
9404 |
oprot.writeFieldBegin('date', TType.I64, 1)
|
|
|
9405 |
oprot.writeI64(self.date)
|
|
|
9406 |
oprot.writeFieldEnd()
|
|
|
9407 |
oprot.writeFieldStop()
|
|
|
9408 |
oprot.writeStructEnd()
|
|
|
9409 |
|
|
|
9410 |
def validate(self):
|
|
|
9411 |
return
|
|
|
9412 |
|
|
|
9413 |
|
|
|
9414 |
def __repr__(self):
|
|
|
9415 |
L = ['%s=%r' % (key, value)
|
|
|
9416 |
for key, value in self.__dict__.iteritems()]
|
|
|
9417 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
9418 |
|
|
|
9419 |
def __eq__(self, other):
|
|
|
9420 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
9421 |
|
|
|
9422 |
def __ne__(self, other):
|
|
|
9423 |
return not (self == other)
|
|
|
9424 |
|
|
|
9425 |
class getHistoricBadInventoryByScans_result:
|
|
|
9426 |
"""
|
|
|
9427 |
Attributes:
|
|
|
9428 |
- success
|
|
|
9429 |
- wex
|
|
|
9430 |
"""
|
|
|
9431 |
|
|
|
9432 |
thrift_spec = (
|
|
|
9433 |
(0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
|
|
|
9434 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
9435 |
)
|
|
|
9436 |
|
|
|
9437 |
def __init__(self, success=None, wex=None,):
|
|
|
9438 |
self.success = success
|
|
|
9439 |
self.wex = wex
|
|
|
9440 |
|
|
|
9441 |
def read(self, iprot):
|
|
|
9442 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9443 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
9444 |
return
|
|
|
9445 |
iprot.readStructBegin()
|
|
|
9446 |
while True:
|
|
|
9447 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
9448 |
if ftype == TType.STOP:
|
|
|
9449 |
break
|
|
|
9450 |
if fid == 0:
|
|
|
9451 |
if ftype == TType.LIST:
|
|
|
9452 |
self.success = []
|
|
|
9453 |
(_etype187, _size184) = iprot.readListBegin()
|
|
|
9454 |
for _i188 in xrange(_size184):
|
|
|
9455 |
_elem189 = InventoryAvailability()
|
|
|
9456 |
_elem189.read(iprot)
|
|
|
9457 |
self.success.append(_elem189)
|
|
|
9458 |
iprot.readListEnd()
|
|
|
9459 |
else:
|
|
|
9460 |
iprot.skip(ftype)
|
|
|
9461 |
elif fid == 1:
|
|
|
9462 |
if ftype == TType.STRUCT:
|
|
|
9463 |
self.wex = WarehouseServiceException()
|
|
|
9464 |
self.wex.read(iprot)
|
|
|
9465 |
else:
|
|
|
9466 |
iprot.skip(ftype)
|
|
|
9467 |
else:
|
|
|
9468 |
iprot.skip(ftype)
|
|
|
9469 |
iprot.readFieldEnd()
|
|
|
9470 |
iprot.readStructEnd()
|
|
|
9471 |
|
|
|
9472 |
def write(self, oprot):
|
|
|
9473 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9474 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
9475 |
return
|
|
|
9476 |
oprot.writeStructBegin('getHistoricBadInventoryByScans_result')
|
|
|
9477 |
if self.success is not None:
|
|
|
9478 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
9479 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
9480 |
for iter190 in self.success:
|
|
|
9481 |
iter190.write(oprot)
|
|
|
9482 |
oprot.writeListEnd()
|
|
|
9483 |
oprot.writeFieldEnd()
|
|
|
9484 |
if self.wex is not None:
|
|
|
9485 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
9486 |
self.wex.write(oprot)
|
|
|
9487 |
oprot.writeFieldEnd()
|
|
|
9488 |
oprot.writeFieldStop()
|
|
|
9489 |
oprot.writeStructEnd()
|
|
|
9490 |
|
|
|
9491 |
def validate(self):
|
|
|
9492 |
return
|
|
|
9493 |
|
|
|
9494 |
|
|
|
9495 |
def __repr__(self):
|
|
|
9496 |
L = ['%s=%r' % (key, value)
|
|
|
9497 |
for key, value in self.__dict__.iteritems()]
|
|
|
9498 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
9499 |
|
|
|
9500 |
def __eq__(self, other):
|
|
|
9501 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
9502 |
|
|
|
9503 |
def __ne__(self, other):
|
|
|
9504 |
return not (self == other)
|
| 8565 |
amar.kumar |
9505 |
|
|
|
9506 |
class scanForBadSale_args:
|
|
|
9507 |
"""
|
|
|
9508 |
Attributes:
|
| 8717 |
amar.kumar |
9509 |
- serialNumber
|
|
|
9510 |
- itemNumber
|
|
|
9511 |
- itemId
|
| 8565 |
amar.kumar |
9512 |
- orderId
|
| 8717 |
amar.kumar |
9513 |
- fulfilmentWarehouseId
|
| 8565 |
amar.kumar |
9514 |
- quantity
|
|
|
9515 |
- billingWarehouseId
|
|
|
9516 |
"""
|
|
|
9517 |
|
|
|
9518 |
thrift_spec = (
|
|
|
9519 |
None, # 0
|
| 8717 |
amar.kumar |
9520 |
(1, TType.STRING, 'serialNumber', None, None, ), # 1
|
|
|
9521 |
(2, TType.STRING, 'itemNumber', None, None, ), # 2
|
|
|
9522 |
(3, TType.I64, 'itemId', None, None, ), # 3
|
|
|
9523 |
(4, TType.I64, 'orderId', None, None, ), # 4
|
|
|
9524 |
(5, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 5
|
|
|
9525 |
(6, TType.I64, 'quantity', None, None, ), # 6
|
|
|
9526 |
(7, TType.I64, 'billingWarehouseId', None, None, ), # 7
|
| 8565 |
amar.kumar |
9527 |
)
|
|
|
9528 |
|
| 8717 |
amar.kumar |
9529 |
def __init__(self, serialNumber=None, itemNumber=None, itemId=None, orderId=None, fulfilmentWarehouseId=None, quantity=None, billingWarehouseId=None,):
|
|
|
9530 |
self.serialNumber = serialNumber
|
|
|
9531 |
self.itemNumber = itemNumber
|
|
|
9532 |
self.itemId = itemId
|
| 8565 |
amar.kumar |
9533 |
self.orderId = orderId
|
| 8717 |
amar.kumar |
9534 |
self.fulfilmentWarehouseId = fulfilmentWarehouseId
|
| 8565 |
amar.kumar |
9535 |
self.quantity = quantity
|
|
|
9536 |
self.billingWarehouseId = billingWarehouseId
|
|
|
9537 |
|
|
|
9538 |
def read(self, iprot):
|
|
|
9539 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9540 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
9541 |
return
|
|
|
9542 |
iprot.readStructBegin()
|
|
|
9543 |
while True:
|
|
|
9544 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
9545 |
if ftype == TType.STOP:
|
|
|
9546 |
break
|
|
|
9547 |
if fid == 1:
|
| 8717 |
amar.kumar |
9548 |
if ftype == TType.STRING:
|
|
|
9549 |
self.serialNumber = iprot.readString();
|
| 8565 |
amar.kumar |
9550 |
else:
|
|
|
9551 |
iprot.skip(ftype)
|
|
|
9552 |
elif fid == 2:
|
| 8717 |
amar.kumar |
9553 |
if ftype == TType.STRING:
|
|
|
9554 |
self.itemNumber = iprot.readString();
|
| 8565 |
amar.kumar |
9555 |
else:
|
|
|
9556 |
iprot.skip(ftype)
|
|
|
9557 |
elif fid == 3:
|
|
|
9558 |
if ftype == TType.I64:
|
| 8717 |
amar.kumar |
9559 |
self.itemId = iprot.readI64();
|
| 8565 |
amar.kumar |
9560 |
else:
|
|
|
9561 |
iprot.skip(ftype)
|
|
|
9562 |
elif fid == 4:
|
|
|
9563 |
if ftype == TType.I64:
|
| 8717 |
amar.kumar |
9564 |
self.orderId = iprot.readI64();
|
| 8565 |
amar.kumar |
9565 |
else:
|
|
|
9566 |
iprot.skip(ftype)
|
|
|
9567 |
elif fid == 5:
|
|
|
9568 |
if ftype == TType.I64:
|
| 8717 |
amar.kumar |
9569 |
self.fulfilmentWarehouseId = iprot.readI64();
|
|
|
9570 |
else:
|
|
|
9571 |
iprot.skip(ftype)
|
|
|
9572 |
elif fid == 6:
|
|
|
9573 |
if ftype == TType.I64:
|
|
|
9574 |
self.quantity = iprot.readI64();
|
|
|
9575 |
else:
|
|
|
9576 |
iprot.skip(ftype)
|
|
|
9577 |
elif fid == 7:
|
|
|
9578 |
if ftype == TType.I64:
|
| 8565 |
amar.kumar |
9579 |
self.billingWarehouseId = iprot.readI64();
|
|
|
9580 |
else:
|
|
|
9581 |
iprot.skip(ftype)
|
|
|
9582 |
else:
|
|
|
9583 |
iprot.skip(ftype)
|
|
|
9584 |
iprot.readFieldEnd()
|
|
|
9585 |
iprot.readStructEnd()
|
|
|
9586 |
|
|
|
9587 |
def write(self, oprot):
|
|
|
9588 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9589 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
9590 |
return
|
|
|
9591 |
oprot.writeStructBegin('scanForBadSale_args')
|
| 8717 |
amar.kumar |
9592 |
if self.serialNumber is not None:
|
|
|
9593 |
oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
|
|
|
9594 |
oprot.writeString(self.serialNumber)
|
| 8565 |
amar.kumar |
9595 |
oprot.writeFieldEnd()
|
| 8717 |
amar.kumar |
9596 |
if self.itemNumber is not None:
|
|
|
9597 |
oprot.writeFieldBegin('itemNumber', TType.STRING, 2)
|
|
|
9598 |
oprot.writeString(self.itemNumber)
|
|
|
9599 |
oprot.writeFieldEnd()
|
|
|
9600 |
if self.itemId is not None:
|
|
|
9601 |
oprot.writeFieldBegin('itemId', TType.I64, 3)
|
|
|
9602 |
oprot.writeI64(self.itemId)
|
|
|
9603 |
oprot.writeFieldEnd()
|
| 8565 |
amar.kumar |
9604 |
if self.orderId is not None:
|
| 8717 |
amar.kumar |
9605 |
oprot.writeFieldBegin('orderId', TType.I64, 4)
|
| 8565 |
amar.kumar |
9606 |
oprot.writeI64(self.orderId)
|
|
|
9607 |
oprot.writeFieldEnd()
|
| 8717 |
amar.kumar |
9608 |
if self.fulfilmentWarehouseId is not None:
|
|
|
9609 |
oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 5)
|
|
|
9610 |
oprot.writeI64(self.fulfilmentWarehouseId)
|
|
|
9611 |
oprot.writeFieldEnd()
|
| 8565 |
amar.kumar |
9612 |
if self.quantity is not None:
|
| 8717 |
amar.kumar |
9613 |
oprot.writeFieldBegin('quantity', TType.I64, 6)
|
| 8565 |
amar.kumar |
9614 |
oprot.writeI64(self.quantity)
|
|
|
9615 |
oprot.writeFieldEnd()
|
|
|
9616 |
if self.billingWarehouseId is not None:
|
| 8717 |
amar.kumar |
9617 |
oprot.writeFieldBegin('billingWarehouseId', TType.I64, 7)
|
| 8565 |
amar.kumar |
9618 |
oprot.writeI64(self.billingWarehouseId)
|
|
|
9619 |
oprot.writeFieldEnd()
|
|
|
9620 |
oprot.writeFieldStop()
|
|
|
9621 |
oprot.writeStructEnd()
|
|
|
9622 |
|
|
|
9623 |
def validate(self):
|
|
|
9624 |
return
|
|
|
9625 |
|
|
|
9626 |
|
|
|
9627 |
def __repr__(self):
|
|
|
9628 |
L = ['%s=%r' % (key, value)
|
|
|
9629 |
for key, value in self.__dict__.iteritems()]
|
|
|
9630 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
9631 |
|
|
|
9632 |
def __eq__(self, other):
|
|
|
9633 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
9634 |
|
|
|
9635 |
def __ne__(self, other):
|
|
|
9636 |
return not (self == other)
|
|
|
9637 |
|
|
|
9638 |
class scanForBadSale_result:
|
| 8717 |
amar.kumar |
9639 |
"""
|
|
|
9640 |
Attributes:
|
|
|
9641 |
- success
|
|
|
9642 |
- wex
|
|
|
9643 |
"""
|
| 8565 |
amar.kumar |
9644 |
|
|
|
9645 |
thrift_spec = (
|
| 8717 |
amar.kumar |
9646 |
(0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
|
|
|
9647 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
| 8565 |
amar.kumar |
9648 |
)
|
|
|
9649 |
|
| 8717 |
amar.kumar |
9650 |
def __init__(self, success=None, wex=None,):
|
|
|
9651 |
self.success = success
|
|
|
9652 |
self.wex = wex
|
|
|
9653 |
|
| 8565 |
amar.kumar |
9654 |
def read(self, iprot):
|
|
|
9655 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9656 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
9657 |
return
|
|
|
9658 |
iprot.readStructBegin()
|
|
|
9659 |
while True:
|
|
|
9660 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
9661 |
if ftype == TType.STOP:
|
|
|
9662 |
break
|
| 8717 |
amar.kumar |
9663 |
if fid == 0:
|
|
|
9664 |
if ftype == TType.STRUCT:
|
|
|
9665 |
self.success = InventoryItem()
|
|
|
9666 |
self.success.read(iprot)
|
|
|
9667 |
else:
|
|
|
9668 |
iprot.skip(ftype)
|
|
|
9669 |
elif fid == 1:
|
|
|
9670 |
if ftype == TType.STRUCT:
|
|
|
9671 |
self.wex = WarehouseServiceException()
|
|
|
9672 |
self.wex.read(iprot)
|
|
|
9673 |
else:
|
|
|
9674 |
iprot.skip(ftype)
|
| 8565 |
amar.kumar |
9675 |
else:
|
|
|
9676 |
iprot.skip(ftype)
|
|
|
9677 |
iprot.readFieldEnd()
|
|
|
9678 |
iprot.readStructEnd()
|
|
|
9679 |
|
|
|
9680 |
def write(self, oprot):
|
|
|
9681 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9682 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
9683 |
return
|
|
|
9684 |
oprot.writeStructBegin('scanForBadSale_result')
|
| 8717 |
amar.kumar |
9685 |
if self.success is not None:
|
|
|
9686 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
9687 |
self.success.write(oprot)
|
|
|
9688 |
oprot.writeFieldEnd()
|
|
|
9689 |
if self.wex is not None:
|
|
|
9690 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
9691 |
self.wex.write(oprot)
|
|
|
9692 |
oprot.writeFieldEnd()
|
| 8565 |
amar.kumar |
9693 |
oprot.writeFieldStop()
|
|
|
9694 |
oprot.writeStructEnd()
|
|
|
9695 |
|
|
|
9696 |
def validate(self):
|
|
|
9697 |
return
|
|
|
9698 |
|
|
|
9699 |
|
|
|
9700 |
def __repr__(self):
|
|
|
9701 |
L = ['%s=%r' % (key, value)
|
|
|
9702 |
for key, value in self.__dict__.iteritems()]
|
|
|
9703 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
9704 |
|
|
|
9705 |
def __eq__(self, other):
|
|
|
9706 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
9707 |
|
|
|
9708 |
def __ne__(self, other):
|
|
|
9709 |
return not (self == other)
|