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