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