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