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