| 2821 |
chandransh |
1 |
#
|
|
|
2 |
# Autogenerated by Thrift
|
|
|
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
|
|
|
12 |
from thrift.protocol import TBinaryProtocol
|
|
|
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):
|
| 2821 |
chandransh |
20 |
def createPurchaseOrder(self, purchaseOrder):
|
|
|
21 |
"""
|
|
|
22 |
Creates a purchase order based on the data in the given purchase order object.
|
|
|
23 |
This method populates a nummber of missing fields
|
|
|
24 |
|
|
|
25 |
Parameters:
|
|
|
26 |
- purchaseOrder
|
|
|
27 |
"""
|
|
|
28 |
pass
|
|
|
29 |
|
|
|
30 |
def getPurchaseOrder(self, id):
|
|
|
31 |
"""
|
|
|
32 |
Returns the purchase order with the given id. Throws an exception if there is no such purchase order.
|
|
|
33 |
|
|
|
34 |
Parameters:
|
|
|
35 |
- id
|
|
|
36 |
"""
|
|
|
37 |
pass
|
|
|
38 |
|
| 3383 |
chandransh |
39 |
def getAllPurchaseOrders(self, status):
|
|
|
40 |
"""
|
|
|
41 |
Returns a list of all the purchase orders in the given state
|
|
|
42 |
|
|
|
43 |
Parameters:
|
|
|
44 |
- status
|
|
|
45 |
"""
|
|
|
46 |
pass
|
|
|
47 |
|
| 2832 |
chandransh |
48 |
def getSupplier(self, id):
|
|
|
49 |
"""
|
|
|
50 |
Returns the supplier with the given order id. Throws an exception if there is no such supplier.
|
|
|
51 |
|
|
|
52 |
Parameters:
|
|
|
53 |
- id
|
|
|
54 |
"""
|
|
|
55 |
pass
|
|
|
56 |
|
| 2821 |
chandransh |
57 |
def startPurchase(self, purchaseOrderId, invoiceNumber, freightCharges):
|
|
|
58 |
"""
|
|
|
59 |
Creates a purchase for the given purchase order.
|
|
|
60 |
Throws an exception if no more purchases are allowed against the given purchase order.
|
|
|
61 |
|
|
|
62 |
Parameters:
|
|
|
63 |
- purchaseOrderId
|
|
|
64 |
- invoiceNumber
|
|
|
65 |
- freightCharges
|
|
|
66 |
"""
|
|
|
67 |
pass
|
|
|
68 |
|
|
|
69 |
def closePurchase(self, purchaseId):
|
|
|
70 |
"""
|
|
|
71 |
Marks a purchase as complete and updates the receivedOn time.
|
|
|
72 |
Throws an exception if no such purchase exists.
|
|
|
73 |
|
|
|
74 |
Parameters:
|
|
|
75 |
- purchaseId
|
|
|
76 |
"""
|
|
|
77 |
pass
|
|
|
78 |
|
| 3383 |
chandransh |
79 |
def getAllPurchases(self, purchaseOrderId, open):
|
| 2821 |
chandransh |
80 |
"""
|
| 3383 |
chandransh |
81 |
Returns all open or closed purchases for the given purchase order. Throws an exception if no such purchase order exists
|
|
|
82 |
|
|
|
83 |
Parameters:
|
|
|
84 |
- purchaseOrderId
|
|
|
85 |
- open
|
|
|
86 |
"""
|
|
|
87 |
pass
|
|
|
88 |
|
|
|
89 |
def scanIn(self, purchaseId, itemNumber, imeiNumber, type):
|
|
|
90 |
"""
|
|
|
91 |
Creates a Scan object using the given details.
|
| 2821 |
chandransh |
92 |
Raises an exception if no more of the given item can be scanned in against the purchase order of the given purchase.
|
|
|
93 |
|
|
|
94 |
Parameters:
|
|
|
95 |
- purchaseId
|
|
|
96 |
- itemNumber
|
|
|
97 |
- imeiNumber
|
|
|
98 |
- type
|
|
|
99 |
"""
|
|
|
100 |
pass
|
|
|
101 |
|
|
|
102 |
def scanOut(self, itemNumber, imeiNumber, type):
|
|
|
103 |
"""
|
| 3383 |
chandransh |
104 |
Marks the Scan object with the given details as scanned out. In case, the imeiNumber is not given,
|
| 2821 |
chandransh |
105 |
marks the oldest ItemInventory object as being scanned out.
|
|
|
106 |
Raises an exception if:
|
|
|
107 |
1. There is no stock present corresponding to the given item details.
|
|
|
108 |
2. An older stock is present corresponding to the itemNumber which has not been scanned out.
|
|
|
109 |
|
|
|
110 |
Parameters:
|
|
|
111 |
- itemNumber
|
|
|
112 |
- imeiNumber
|
|
|
113 |
- type
|
|
|
114 |
"""
|
|
|
115 |
pass
|
|
|
116 |
|
|
|
117 |
|
| 3376 |
rajveer |
118 |
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
|
| 2821 |
chandransh |
119 |
def __init__(self, iprot, oprot=None):
|
| 3376 |
rajveer |
120 |
shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
|
| 2821 |
chandransh |
121 |
|
|
|
122 |
def createPurchaseOrder(self, purchaseOrder):
|
|
|
123 |
"""
|
|
|
124 |
Creates a purchase order based on the data in the given purchase order object.
|
|
|
125 |
This method populates a nummber of missing fields
|
|
|
126 |
|
|
|
127 |
Parameters:
|
|
|
128 |
- purchaseOrder
|
|
|
129 |
"""
|
|
|
130 |
self.send_createPurchaseOrder(purchaseOrder)
|
|
|
131 |
return self.recv_createPurchaseOrder()
|
|
|
132 |
|
|
|
133 |
def send_createPurchaseOrder(self, purchaseOrder):
|
|
|
134 |
self._oprot.writeMessageBegin('createPurchaseOrder', TMessageType.CALL, self._seqid)
|
|
|
135 |
args = createPurchaseOrder_args()
|
|
|
136 |
args.purchaseOrder = purchaseOrder
|
|
|
137 |
args.write(self._oprot)
|
|
|
138 |
self._oprot.writeMessageEnd()
|
|
|
139 |
self._oprot.trans.flush()
|
|
|
140 |
|
|
|
141 |
def recv_createPurchaseOrder(self, ):
|
|
|
142 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
143 |
if mtype == TMessageType.EXCEPTION:
|
|
|
144 |
x = TApplicationException()
|
|
|
145 |
x.read(self._iprot)
|
|
|
146 |
self._iprot.readMessageEnd()
|
|
|
147 |
raise x
|
|
|
148 |
result = createPurchaseOrder_result()
|
|
|
149 |
result.read(self._iprot)
|
|
|
150 |
self._iprot.readMessageEnd()
|
|
|
151 |
if result.success != None:
|
|
|
152 |
return result.success
|
|
|
153 |
if result.wex != None:
|
|
|
154 |
raise result.wex
|
|
|
155 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "createPurchaseOrder failed: unknown result");
|
|
|
156 |
|
|
|
157 |
def getPurchaseOrder(self, id):
|
|
|
158 |
"""
|
|
|
159 |
Returns the purchase order with the given id. Throws an exception if there is no such purchase order.
|
|
|
160 |
|
|
|
161 |
Parameters:
|
|
|
162 |
- id
|
|
|
163 |
"""
|
|
|
164 |
self.send_getPurchaseOrder(id)
|
|
|
165 |
return self.recv_getPurchaseOrder()
|
|
|
166 |
|
|
|
167 |
def send_getPurchaseOrder(self, id):
|
|
|
168 |
self._oprot.writeMessageBegin('getPurchaseOrder', TMessageType.CALL, self._seqid)
|
|
|
169 |
args = getPurchaseOrder_args()
|
|
|
170 |
args.id = id
|
|
|
171 |
args.write(self._oprot)
|
|
|
172 |
self._oprot.writeMessageEnd()
|
|
|
173 |
self._oprot.trans.flush()
|
|
|
174 |
|
|
|
175 |
def recv_getPurchaseOrder(self, ):
|
|
|
176 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
177 |
if mtype == TMessageType.EXCEPTION:
|
|
|
178 |
x = TApplicationException()
|
|
|
179 |
x.read(self._iprot)
|
|
|
180 |
self._iprot.readMessageEnd()
|
|
|
181 |
raise x
|
|
|
182 |
result = getPurchaseOrder_result()
|
|
|
183 |
result.read(self._iprot)
|
|
|
184 |
self._iprot.readMessageEnd()
|
|
|
185 |
if result.success != None:
|
|
|
186 |
return result.success
|
|
|
187 |
if result.wex != None:
|
|
|
188 |
raise result.wex
|
|
|
189 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseOrder failed: unknown result");
|
|
|
190 |
|
| 3383 |
chandransh |
191 |
def getAllPurchaseOrders(self, status):
|
|
|
192 |
"""
|
|
|
193 |
Returns a list of all the purchase orders in the given state
|
|
|
194 |
|
|
|
195 |
Parameters:
|
|
|
196 |
- status
|
|
|
197 |
"""
|
|
|
198 |
self.send_getAllPurchaseOrders(status)
|
|
|
199 |
return self.recv_getAllPurchaseOrders()
|
|
|
200 |
|
|
|
201 |
def send_getAllPurchaseOrders(self, status):
|
|
|
202 |
self._oprot.writeMessageBegin('getAllPurchaseOrders', TMessageType.CALL, self._seqid)
|
|
|
203 |
args = getAllPurchaseOrders_args()
|
|
|
204 |
args.status = status
|
|
|
205 |
args.write(self._oprot)
|
|
|
206 |
self._oprot.writeMessageEnd()
|
|
|
207 |
self._oprot.trans.flush()
|
|
|
208 |
|
|
|
209 |
def recv_getAllPurchaseOrders(self, ):
|
|
|
210 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
211 |
if mtype == TMessageType.EXCEPTION:
|
|
|
212 |
x = TApplicationException()
|
|
|
213 |
x.read(self._iprot)
|
|
|
214 |
self._iprot.readMessageEnd()
|
|
|
215 |
raise x
|
|
|
216 |
result = getAllPurchaseOrders_result()
|
|
|
217 |
result.read(self._iprot)
|
|
|
218 |
self._iprot.readMessageEnd()
|
|
|
219 |
if result.success != None:
|
|
|
220 |
return result.success
|
|
|
221 |
if result.wex != None:
|
|
|
222 |
raise result.wex
|
|
|
223 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPurchaseOrders failed: unknown result");
|
|
|
224 |
|
| 2832 |
chandransh |
225 |
def getSupplier(self, id):
|
|
|
226 |
"""
|
|
|
227 |
Returns the supplier with the given order id. Throws an exception if there is no such supplier.
|
|
|
228 |
|
|
|
229 |
Parameters:
|
|
|
230 |
- id
|
|
|
231 |
"""
|
|
|
232 |
self.send_getSupplier(id)
|
|
|
233 |
return self.recv_getSupplier()
|
|
|
234 |
|
|
|
235 |
def send_getSupplier(self, id):
|
|
|
236 |
self._oprot.writeMessageBegin('getSupplier', TMessageType.CALL, self._seqid)
|
|
|
237 |
args = getSupplier_args()
|
|
|
238 |
args.id = id
|
|
|
239 |
args.write(self._oprot)
|
|
|
240 |
self._oprot.writeMessageEnd()
|
|
|
241 |
self._oprot.trans.flush()
|
|
|
242 |
|
|
|
243 |
def recv_getSupplier(self, ):
|
|
|
244 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
245 |
if mtype == TMessageType.EXCEPTION:
|
|
|
246 |
x = TApplicationException()
|
|
|
247 |
x.read(self._iprot)
|
|
|
248 |
self._iprot.readMessageEnd()
|
|
|
249 |
raise x
|
|
|
250 |
result = getSupplier_result()
|
|
|
251 |
result.read(self._iprot)
|
|
|
252 |
self._iprot.readMessageEnd()
|
|
|
253 |
if result.success != None:
|
|
|
254 |
return result.success
|
|
|
255 |
if result.wex != None:
|
|
|
256 |
raise result.wex
|
|
|
257 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getSupplier failed: unknown result");
|
|
|
258 |
|
| 2821 |
chandransh |
259 |
def startPurchase(self, purchaseOrderId, invoiceNumber, freightCharges):
|
|
|
260 |
"""
|
|
|
261 |
Creates a purchase for the given purchase order.
|
|
|
262 |
Throws an exception if no more purchases are allowed against the given purchase order.
|
|
|
263 |
|
|
|
264 |
Parameters:
|
|
|
265 |
- purchaseOrderId
|
|
|
266 |
- invoiceNumber
|
|
|
267 |
- freightCharges
|
|
|
268 |
"""
|
|
|
269 |
self.send_startPurchase(purchaseOrderId, invoiceNumber, freightCharges)
|
|
|
270 |
return self.recv_startPurchase()
|
|
|
271 |
|
|
|
272 |
def send_startPurchase(self, purchaseOrderId, invoiceNumber, freightCharges):
|
|
|
273 |
self._oprot.writeMessageBegin('startPurchase', TMessageType.CALL, self._seqid)
|
|
|
274 |
args = startPurchase_args()
|
|
|
275 |
args.purchaseOrderId = purchaseOrderId
|
|
|
276 |
args.invoiceNumber = invoiceNumber
|
|
|
277 |
args.freightCharges = freightCharges
|
|
|
278 |
args.write(self._oprot)
|
|
|
279 |
self._oprot.writeMessageEnd()
|
|
|
280 |
self._oprot.trans.flush()
|
|
|
281 |
|
|
|
282 |
def recv_startPurchase(self, ):
|
|
|
283 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
284 |
if mtype == TMessageType.EXCEPTION:
|
|
|
285 |
x = TApplicationException()
|
|
|
286 |
x.read(self._iprot)
|
|
|
287 |
self._iprot.readMessageEnd()
|
|
|
288 |
raise x
|
|
|
289 |
result = startPurchase_result()
|
|
|
290 |
result.read(self._iprot)
|
|
|
291 |
self._iprot.readMessageEnd()
|
|
|
292 |
if result.success != None:
|
|
|
293 |
return result.success
|
|
|
294 |
if result.wex != None:
|
|
|
295 |
raise result.wex
|
|
|
296 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "startPurchase failed: unknown result");
|
|
|
297 |
|
|
|
298 |
def closePurchase(self, purchaseId):
|
|
|
299 |
"""
|
|
|
300 |
Marks a purchase as complete and updates the receivedOn time.
|
|
|
301 |
Throws an exception if no such purchase exists.
|
|
|
302 |
|
|
|
303 |
Parameters:
|
|
|
304 |
- purchaseId
|
|
|
305 |
"""
|
|
|
306 |
self.send_closePurchase(purchaseId)
|
|
|
307 |
return self.recv_closePurchase()
|
|
|
308 |
|
|
|
309 |
def send_closePurchase(self, purchaseId):
|
|
|
310 |
self._oprot.writeMessageBegin('closePurchase', TMessageType.CALL, self._seqid)
|
|
|
311 |
args = closePurchase_args()
|
|
|
312 |
args.purchaseId = purchaseId
|
|
|
313 |
args.write(self._oprot)
|
|
|
314 |
self._oprot.writeMessageEnd()
|
|
|
315 |
self._oprot.trans.flush()
|
|
|
316 |
|
|
|
317 |
def recv_closePurchase(self, ):
|
|
|
318 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
319 |
if mtype == TMessageType.EXCEPTION:
|
|
|
320 |
x = TApplicationException()
|
|
|
321 |
x.read(self._iprot)
|
|
|
322 |
self._iprot.readMessageEnd()
|
|
|
323 |
raise x
|
|
|
324 |
result = closePurchase_result()
|
|
|
325 |
result.read(self._iprot)
|
|
|
326 |
self._iprot.readMessageEnd()
|
|
|
327 |
if result.success != None:
|
|
|
328 |
return result.success
|
|
|
329 |
if result.wex != None:
|
|
|
330 |
raise result.wex
|
|
|
331 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "closePurchase failed: unknown result");
|
|
|
332 |
|
| 3383 |
chandransh |
333 |
def getAllPurchases(self, purchaseOrderId, open):
|
| 2821 |
chandransh |
334 |
"""
|
| 3383 |
chandransh |
335 |
Returns all open or closed purchases for the given purchase order. Throws an exception if no such purchase order exists
|
|
|
336 |
|
|
|
337 |
Parameters:
|
|
|
338 |
- purchaseOrderId
|
|
|
339 |
- open
|
|
|
340 |
"""
|
|
|
341 |
self.send_getAllPurchases(purchaseOrderId, open)
|
|
|
342 |
return self.recv_getAllPurchases()
|
|
|
343 |
|
|
|
344 |
def send_getAllPurchases(self, purchaseOrderId, open):
|
|
|
345 |
self._oprot.writeMessageBegin('getAllPurchases', TMessageType.CALL, self._seqid)
|
|
|
346 |
args = getAllPurchases_args()
|
|
|
347 |
args.purchaseOrderId = purchaseOrderId
|
|
|
348 |
args.open = open
|
|
|
349 |
args.write(self._oprot)
|
|
|
350 |
self._oprot.writeMessageEnd()
|
|
|
351 |
self._oprot.trans.flush()
|
|
|
352 |
|
|
|
353 |
def recv_getAllPurchases(self, ):
|
|
|
354 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
355 |
if mtype == TMessageType.EXCEPTION:
|
|
|
356 |
x = TApplicationException()
|
|
|
357 |
x.read(self._iprot)
|
|
|
358 |
self._iprot.readMessageEnd()
|
|
|
359 |
raise x
|
|
|
360 |
result = getAllPurchases_result()
|
|
|
361 |
result.read(self._iprot)
|
|
|
362 |
self._iprot.readMessageEnd()
|
|
|
363 |
if result.success != None:
|
|
|
364 |
return result.success
|
|
|
365 |
if result.wex != None:
|
|
|
366 |
raise result.wex
|
|
|
367 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPurchases failed: unknown result");
|
|
|
368 |
|
|
|
369 |
def scanIn(self, purchaseId, itemNumber, imeiNumber, type):
|
|
|
370 |
"""
|
|
|
371 |
Creates a Scan object using the given details.
|
| 2821 |
chandransh |
372 |
Raises an exception if no more of the given item can be scanned in against the purchase order of the given purchase.
|
|
|
373 |
|
|
|
374 |
Parameters:
|
|
|
375 |
- purchaseId
|
|
|
376 |
- itemNumber
|
|
|
377 |
- imeiNumber
|
|
|
378 |
- type
|
|
|
379 |
"""
|
| 3383 |
chandransh |
380 |
self.send_scanIn(purchaseId, itemNumber, imeiNumber, type)
|
| 2821 |
chandransh |
381 |
self.recv_scanIn()
|
|
|
382 |
|
| 3383 |
chandransh |
383 |
def send_scanIn(self, purchaseId, itemNumber, imeiNumber, type):
|
| 2821 |
chandransh |
384 |
self._oprot.writeMessageBegin('scanIn', TMessageType.CALL, self._seqid)
|
|
|
385 |
args = scanIn_args()
|
|
|
386 |
args.purchaseId = purchaseId
|
|
|
387 |
args.itemNumber = itemNumber
|
|
|
388 |
args.imeiNumber = imeiNumber
|
|
|
389 |
args.type = type
|
|
|
390 |
args.write(self._oprot)
|
|
|
391 |
self._oprot.writeMessageEnd()
|
|
|
392 |
self._oprot.trans.flush()
|
|
|
393 |
|
|
|
394 |
def recv_scanIn(self, ):
|
|
|
395 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
396 |
if mtype == TMessageType.EXCEPTION:
|
|
|
397 |
x = TApplicationException()
|
|
|
398 |
x.read(self._iprot)
|
|
|
399 |
self._iprot.readMessageEnd()
|
|
|
400 |
raise x
|
|
|
401 |
result = scanIn_result()
|
|
|
402 |
result.read(self._iprot)
|
|
|
403 |
self._iprot.readMessageEnd()
|
|
|
404 |
if result.wex != None:
|
|
|
405 |
raise result.wex
|
|
|
406 |
return
|
|
|
407 |
|
|
|
408 |
def scanOut(self, itemNumber, imeiNumber, type):
|
|
|
409 |
"""
|
| 3383 |
chandransh |
410 |
Marks the Scan object with the given details as scanned out. In case, the imeiNumber is not given,
|
| 2821 |
chandransh |
411 |
marks the oldest ItemInventory object as being scanned out.
|
|
|
412 |
Raises an exception if:
|
|
|
413 |
1. There is no stock present corresponding to the given item details.
|
|
|
414 |
2. An older stock is present corresponding to the itemNumber which has not been scanned out.
|
|
|
415 |
|
|
|
416 |
Parameters:
|
|
|
417 |
- itemNumber
|
|
|
418 |
- imeiNumber
|
|
|
419 |
- type
|
|
|
420 |
"""
|
|
|
421 |
self.send_scanOut(itemNumber, imeiNumber, type)
|
|
|
422 |
self.recv_scanOut()
|
|
|
423 |
|
|
|
424 |
def send_scanOut(self, itemNumber, imeiNumber, type):
|
|
|
425 |
self._oprot.writeMessageBegin('scanOut', TMessageType.CALL, self._seqid)
|
|
|
426 |
args = scanOut_args()
|
|
|
427 |
args.itemNumber = itemNumber
|
|
|
428 |
args.imeiNumber = imeiNumber
|
|
|
429 |
args.type = type
|
|
|
430 |
args.write(self._oprot)
|
|
|
431 |
self._oprot.writeMessageEnd()
|
|
|
432 |
self._oprot.trans.flush()
|
|
|
433 |
|
|
|
434 |
def recv_scanOut(self, ):
|
|
|
435 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
436 |
if mtype == TMessageType.EXCEPTION:
|
|
|
437 |
x = TApplicationException()
|
|
|
438 |
x.read(self._iprot)
|
|
|
439 |
self._iprot.readMessageEnd()
|
|
|
440 |
raise x
|
|
|
441 |
result = scanOut_result()
|
|
|
442 |
result.read(self._iprot)
|
|
|
443 |
self._iprot.readMessageEnd()
|
|
|
444 |
if result.wex != None:
|
|
|
445 |
raise result.wex
|
|
|
446 |
return
|
|
|
447 |
|
|
|
448 |
|
| 3376 |
rajveer |
449 |
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
|
| 2821 |
chandransh |
450 |
def __init__(self, handler):
|
| 3376 |
rajveer |
451 |
shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
|
| 2821 |
chandransh |
452 |
self._processMap["createPurchaseOrder"] = Processor.process_createPurchaseOrder
|
|
|
453 |
self._processMap["getPurchaseOrder"] = Processor.process_getPurchaseOrder
|
| 3383 |
chandransh |
454 |
self._processMap["getAllPurchaseOrders"] = Processor.process_getAllPurchaseOrders
|
| 2832 |
chandransh |
455 |
self._processMap["getSupplier"] = Processor.process_getSupplier
|
| 2821 |
chandransh |
456 |
self._processMap["startPurchase"] = Processor.process_startPurchase
|
|
|
457 |
self._processMap["closePurchase"] = Processor.process_closePurchase
|
| 3383 |
chandransh |
458 |
self._processMap["getAllPurchases"] = Processor.process_getAllPurchases
|
| 2821 |
chandransh |
459 |
self._processMap["scanIn"] = Processor.process_scanIn
|
|
|
460 |
self._processMap["scanOut"] = Processor.process_scanOut
|
|
|
461 |
|
|
|
462 |
def process(self, iprot, oprot):
|
|
|
463 |
(name, type, seqid) = iprot.readMessageBegin()
|
|
|
464 |
if name not in self._processMap:
|
|
|
465 |
iprot.skip(TType.STRUCT)
|
|
|
466 |
iprot.readMessageEnd()
|
|
|
467 |
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
|
|
|
468 |
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
|
|
|
469 |
x.write(oprot)
|
|
|
470 |
oprot.writeMessageEnd()
|
|
|
471 |
oprot.trans.flush()
|
|
|
472 |
return
|
|
|
473 |
else:
|
|
|
474 |
self._processMap[name](self, seqid, iprot, oprot)
|
|
|
475 |
return True
|
|
|
476 |
|
|
|
477 |
def process_createPurchaseOrder(self, seqid, iprot, oprot):
|
|
|
478 |
args = createPurchaseOrder_args()
|
|
|
479 |
args.read(iprot)
|
|
|
480 |
iprot.readMessageEnd()
|
|
|
481 |
result = createPurchaseOrder_result()
|
|
|
482 |
try:
|
|
|
483 |
result.success = self._handler.createPurchaseOrder(args.purchaseOrder)
|
|
|
484 |
except WarehouseServiceException, wex:
|
|
|
485 |
result.wex = wex
|
|
|
486 |
oprot.writeMessageBegin("createPurchaseOrder", TMessageType.REPLY, seqid)
|
|
|
487 |
result.write(oprot)
|
|
|
488 |
oprot.writeMessageEnd()
|
|
|
489 |
oprot.trans.flush()
|
|
|
490 |
|
|
|
491 |
def process_getPurchaseOrder(self, seqid, iprot, oprot):
|
|
|
492 |
args = getPurchaseOrder_args()
|
|
|
493 |
args.read(iprot)
|
|
|
494 |
iprot.readMessageEnd()
|
|
|
495 |
result = getPurchaseOrder_result()
|
|
|
496 |
try:
|
|
|
497 |
result.success = self._handler.getPurchaseOrder(args.id)
|
|
|
498 |
except WarehouseServiceException, wex:
|
|
|
499 |
result.wex = wex
|
|
|
500 |
oprot.writeMessageBegin("getPurchaseOrder", TMessageType.REPLY, seqid)
|
|
|
501 |
result.write(oprot)
|
|
|
502 |
oprot.writeMessageEnd()
|
|
|
503 |
oprot.trans.flush()
|
|
|
504 |
|
| 3383 |
chandransh |
505 |
def process_getAllPurchaseOrders(self, seqid, iprot, oprot):
|
|
|
506 |
args = getAllPurchaseOrders_args()
|
|
|
507 |
args.read(iprot)
|
|
|
508 |
iprot.readMessageEnd()
|
|
|
509 |
result = getAllPurchaseOrders_result()
|
|
|
510 |
try:
|
|
|
511 |
result.success = self._handler.getAllPurchaseOrders(args.status)
|
|
|
512 |
except WarehouseServiceException, wex:
|
|
|
513 |
result.wex = wex
|
|
|
514 |
oprot.writeMessageBegin("getAllPurchaseOrders", TMessageType.REPLY, seqid)
|
|
|
515 |
result.write(oprot)
|
|
|
516 |
oprot.writeMessageEnd()
|
|
|
517 |
oprot.trans.flush()
|
|
|
518 |
|
| 2832 |
chandransh |
519 |
def process_getSupplier(self, seqid, iprot, oprot):
|
|
|
520 |
args = getSupplier_args()
|
|
|
521 |
args.read(iprot)
|
|
|
522 |
iprot.readMessageEnd()
|
|
|
523 |
result = getSupplier_result()
|
|
|
524 |
try:
|
|
|
525 |
result.success = self._handler.getSupplier(args.id)
|
|
|
526 |
except WarehouseServiceException, wex:
|
|
|
527 |
result.wex = wex
|
|
|
528 |
oprot.writeMessageBegin("getSupplier", TMessageType.REPLY, seqid)
|
|
|
529 |
result.write(oprot)
|
|
|
530 |
oprot.writeMessageEnd()
|
|
|
531 |
oprot.trans.flush()
|
|
|
532 |
|
| 2821 |
chandransh |
533 |
def process_startPurchase(self, seqid, iprot, oprot):
|
|
|
534 |
args = startPurchase_args()
|
|
|
535 |
args.read(iprot)
|
|
|
536 |
iprot.readMessageEnd()
|
|
|
537 |
result = startPurchase_result()
|
|
|
538 |
try:
|
|
|
539 |
result.success = self._handler.startPurchase(args.purchaseOrderId, args.invoiceNumber, args.freightCharges)
|
|
|
540 |
except WarehouseServiceException, wex:
|
|
|
541 |
result.wex = wex
|
|
|
542 |
oprot.writeMessageBegin("startPurchase", TMessageType.REPLY, seqid)
|
|
|
543 |
result.write(oprot)
|
|
|
544 |
oprot.writeMessageEnd()
|
|
|
545 |
oprot.trans.flush()
|
|
|
546 |
|
|
|
547 |
def process_closePurchase(self, seqid, iprot, oprot):
|
|
|
548 |
args = closePurchase_args()
|
|
|
549 |
args.read(iprot)
|
|
|
550 |
iprot.readMessageEnd()
|
|
|
551 |
result = closePurchase_result()
|
|
|
552 |
try:
|
|
|
553 |
result.success = self._handler.closePurchase(args.purchaseId)
|
|
|
554 |
except WarehouseServiceException, wex:
|
|
|
555 |
result.wex = wex
|
|
|
556 |
oprot.writeMessageBegin("closePurchase", TMessageType.REPLY, seqid)
|
|
|
557 |
result.write(oprot)
|
|
|
558 |
oprot.writeMessageEnd()
|
|
|
559 |
oprot.trans.flush()
|
|
|
560 |
|
| 3383 |
chandransh |
561 |
def process_getAllPurchases(self, seqid, iprot, oprot):
|
|
|
562 |
args = getAllPurchases_args()
|
|
|
563 |
args.read(iprot)
|
|
|
564 |
iprot.readMessageEnd()
|
|
|
565 |
result = getAllPurchases_result()
|
|
|
566 |
try:
|
|
|
567 |
result.success = self._handler.getAllPurchases(args.purchaseOrderId, args.open)
|
|
|
568 |
except WarehouseServiceException, wex:
|
|
|
569 |
result.wex = wex
|
|
|
570 |
oprot.writeMessageBegin("getAllPurchases", TMessageType.REPLY, seqid)
|
|
|
571 |
result.write(oprot)
|
|
|
572 |
oprot.writeMessageEnd()
|
|
|
573 |
oprot.trans.flush()
|
|
|
574 |
|
| 2821 |
chandransh |
575 |
def process_scanIn(self, seqid, iprot, oprot):
|
|
|
576 |
args = scanIn_args()
|
|
|
577 |
args.read(iprot)
|
|
|
578 |
iprot.readMessageEnd()
|
|
|
579 |
result = scanIn_result()
|
|
|
580 |
try:
|
| 3383 |
chandransh |
581 |
self._handler.scanIn(args.purchaseId, args.itemNumber, args.imeiNumber, args.type)
|
| 2821 |
chandransh |
582 |
except WarehouseServiceException, wex:
|
|
|
583 |
result.wex = wex
|
|
|
584 |
oprot.writeMessageBegin("scanIn", TMessageType.REPLY, seqid)
|
|
|
585 |
result.write(oprot)
|
|
|
586 |
oprot.writeMessageEnd()
|
|
|
587 |
oprot.trans.flush()
|
|
|
588 |
|
|
|
589 |
def process_scanOut(self, seqid, iprot, oprot):
|
|
|
590 |
args = scanOut_args()
|
|
|
591 |
args.read(iprot)
|
|
|
592 |
iprot.readMessageEnd()
|
|
|
593 |
result = scanOut_result()
|
|
|
594 |
try:
|
|
|
595 |
self._handler.scanOut(args.itemNumber, args.imeiNumber, args.type)
|
|
|
596 |
except WarehouseServiceException, wex:
|
|
|
597 |
result.wex = wex
|
|
|
598 |
oprot.writeMessageBegin("scanOut", TMessageType.REPLY, seqid)
|
|
|
599 |
result.write(oprot)
|
|
|
600 |
oprot.writeMessageEnd()
|
|
|
601 |
oprot.trans.flush()
|
|
|
602 |
|
|
|
603 |
|
|
|
604 |
# HELPER FUNCTIONS AND STRUCTURES
|
|
|
605 |
|
|
|
606 |
class createPurchaseOrder_args:
|
|
|
607 |
"""
|
|
|
608 |
Attributes:
|
|
|
609 |
- purchaseOrder
|
|
|
610 |
"""
|
|
|
611 |
|
|
|
612 |
thrift_spec = (
|
|
|
613 |
None, # 0
|
|
|
614 |
(1, TType.STRUCT, 'purchaseOrder', (PurchaseOrder, PurchaseOrder.thrift_spec), None, ), # 1
|
|
|
615 |
)
|
|
|
616 |
|
|
|
617 |
def __init__(self, purchaseOrder=None,):
|
|
|
618 |
self.purchaseOrder = purchaseOrder
|
|
|
619 |
|
|
|
620 |
def read(self, iprot):
|
|
|
621 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
622 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
623 |
return
|
|
|
624 |
iprot.readStructBegin()
|
|
|
625 |
while True:
|
|
|
626 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
627 |
if ftype == TType.STOP:
|
|
|
628 |
break
|
|
|
629 |
if fid == 1:
|
|
|
630 |
if ftype == TType.STRUCT:
|
|
|
631 |
self.purchaseOrder = PurchaseOrder()
|
|
|
632 |
self.purchaseOrder.read(iprot)
|
|
|
633 |
else:
|
|
|
634 |
iprot.skip(ftype)
|
|
|
635 |
else:
|
|
|
636 |
iprot.skip(ftype)
|
|
|
637 |
iprot.readFieldEnd()
|
|
|
638 |
iprot.readStructEnd()
|
|
|
639 |
|
|
|
640 |
def write(self, oprot):
|
|
|
641 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
642 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
643 |
return
|
|
|
644 |
oprot.writeStructBegin('createPurchaseOrder_args')
|
|
|
645 |
if self.purchaseOrder != None:
|
|
|
646 |
oprot.writeFieldBegin('purchaseOrder', TType.STRUCT, 1)
|
|
|
647 |
self.purchaseOrder.write(oprot)
|
|
|
648 |
oprot.writeFieldEnd()
|
|
|
649 |
oprot.writeFieldStop()
|
|
|
650 |
oprot.writeStructEnd()
|
|
|
651 |
|
|
|
652 |
def __repr__(self):
|
|
|
653 |
L = ['%s=%r' % (key, value)
|
|
|
654 |
for key, value in self.__dict__.iteritems()]
|
|
|
655 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
656 |
|
|
|
657 |
def __eq__(self, other):
|
|
|
658 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
659 |
|
|
|
660 |
def __ne__(self, other):
|
|
|
661 |
return not (self == other)
|
|
|
662 |
|
|
|
663 |
class createPurchaseOrder_result:
|
|
|
664 |
"""
|
|
|
665 |
Attributes:
|
|
|
666 |
- success
|
|
|
667 |
- wex
|
|
|
668 |
"""
|
|
|
669 |
|
|
|
670 |
thrift_spec = (
|
|
|
671 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
672 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
673 |
)
|
|
|
674 |
|
|
|
675 |
def __init__(self, success=None, wex=None,):
|
|
|
676 |
self.success = success
|
|
|
677 |
self.wex = wex
|
|
|
678 |
|
|
|
679 |
def read(self, iprot):
|
|
|
680 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
681 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
682 |
return
|
|
|
683 |
iprot.readStructBegin()
|
|
|
684 |
while True:
|
|
|
685 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
686 |
if ftype == TType.STOP:
|
|
|
687 |
break
|
|
|
688 |
if fid == 0:
|
|
|
689 |
if ftype == TType.I64:
|
|
|
690 |
self.success = iprot.readI64();
|
|
|
691 |
else:
|
|
|
692 |
iprot.skip(ftype)
|
|
|
693 |
elif fid == 1:
|
|
|
694 |
if ftype == TType.STRUCT:
|
|
|
695 |
self.wex = WarehouseServiceException()
|
|
|
696 |
self.wex.read(iprot)
|
|
|
697 |
else:
|
|
|
698 |
iprot.skip(ftype)
|
|
|
699 |
else:
|
|
|
700 |
iprot.skip(ftype)
|
|
|
701 |
iprot.readFieldEnd()
|
|
|
702 |
iprot.readStructEnd()
|
|
|
703 |
|
|
|
704 |
def write(self, oprot):
|
|
|
705 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
706 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
707 |
return
|
|
|
708 |
oprot.writeStructBegin('createPurchaseOrder_result')
|
|
|
709 |
if self.success != None:
|
|
|
710 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
711 |
oprot.writeI64(self.success)
|
|
|
712 |
oprot.writeFieldEnd()
|
|
|
713 |
if self.wex != None:
|
|
|
714 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
715 |
self.wex.write(oprot)
|
|
|
716 |
oprot.writeFieldEnd()
|
|
|
717 |
oprot.writeFieldStop()
|
|
|
718 |
oprot.writeStructEnd()
|
|
|
719 |
|
|
|
720 |
def __repr__(self):
|
|
|
721 |
L = ['%s=%r' % (key, value)
|
|
|
722 |
for key, value in self.__dict__.iteritems()]
|
|
|
723 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
724 |
|
|
|
725 |
def __eq__(self, other):
|
|
|
726 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
727 |
|
|
|
728 |
def __ne__(self, other):
|
|
|
729 |
return not (self == other)
|
|
|
730 |
|
|
|
731 |
class getPurchaseOrder_args:
|
|
|
732 |
"""
|
|
|
733 |
Attributes:
|
|
|
734 |
- id
|
|
|
735 |
"""
|
|
|
736 |
|
|
|
737 |
thrift_spec = (
|
|
|
738 |
None, # 0
|
|
|
739 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
740 |
)
|
|
|
741 |
|
|
|
742 |
def __init__(self, id=None,):
|
|
|
743 |
self.id = id
|
|
|
744 |
|
|
|
745 |
def read(self, iprot):
|
|
|
746 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
747 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
748 |
return
|
|
|
749 |
iprot.readStructBegin()
|
|
|
750 |
while True:
|
|
|
751 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
752 |
if ftype == TType.STOP:
|
|
|
753 |
break
|
|
|
754 |
if fid == 1:
|
|
|
755 |
if ftype == TType.I64:
|
|
|
756 |
self.id = iprot.readI64();
|
|
|
757 |
else:
|
|
|
758 |
iprot.skip(ftype)
|
|
|
759 |
else:
|
|
|
760 |
iprot.skip(ftype)
|
|
|
761 |
iprot.readFieldEnd()
|
|
|
762 |
iprot.readStructEnd()
|
|
|
763 |
|
|
|
764 |
def write(self, oprot):
|
|
|
765 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
766 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
767 |
return
|
|
|
768 |
oprot.writeStructBegin('getPurchaseOrder_args')
|
|
|
769 |
if self.id != None:
|
|
|
770 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
771 |
oprot.writeI64(self.id)
|
|
|
772 |
oprot.writeFieldEnd()
|
|
|
773 |
oprot.writeFieldStop()
|
|
|
774 |
oprot.writeStructEnd()
|
|
|
775 |
|
|
|
776 |
def __repr__(self):
|
|
|
777 |
L = ['%s=%r' % (key, value)
|
|
|
778 |
for key, value in self.__dict__.iteritems()]
|
|
|
779 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
780 |
|
|
|
781 |
def __eq__(self, other):
|
|
|
782 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
783 |
|
|
|
784 |
def __ne__(self, other):
|
|
|
785 |
return not (self == other)
|
|
|
786 |
|
|
|
787 |
class getPurchaseOrder_result:
|
|
|
788 |
"""
|
|
|
789 |
Attributes:
|
|
|
790 |
- success
|
|
|
791 |
- wex
|
|
|
792 |
"""
|
|
|
793 |
|
|
|
794 |
thrift_spec = (
|
|
|
795 |
(0, TType.STRUCT, 'success', (PurchaseOrder, PurchaseOrder.thrift_spec), None, ), # 0
|
|
|
796 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
797 |
)
|
|
|
798 |
|
|
|
799 |
def __init__(self, success=None, wex=None,):
|
|
|
800 |
self.success = success
|
|
|
801 |
self.wex = wex
|
|
|
802 |
|
|
|
803 |
def read(self, iprot):
|
|
|
804 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
805 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
806 |
return
|
|
|
807 |
iprot.readStructBegin()
|
|
|
808 |
while True:
|
|
|
809 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
810 |
if ftype == TType.STOP:
|
|
|
811 |
break
|
|
|
812 |
if fid == 0:
|
|
|
813 |
if ftype == TType.STRUCT:
|
|
|
814 |
self.success = PurchaseOrder()
|
|
|
815 |
self.success.read(iprot)
|
|
|
816 |
else:
|
|
|
817 |
iprot.skip(ftype)
|
|
|
818 |
elif fid == 1:
|
|
|
819 |
if ftype == TType.STRUCT:
|
|
|
820 |
self.wex = WarehouseServiceException()
|
|
|
821 |
self.wex.read(iprot)
|
|
|
822 |
else:
|
|
|
823 |
iprot.skip(ftype)
|
|
|
824 |
else:
|
|
|
825 |
iprot.skip(ftype)
|
|
|
826 |
iprot.readFieldEnd()
|
|
|
827 |
iprot.readStructEnd()
|
|
|
828 |
|
|
|
829 |
def write(self, oprot):
|
|
|
830 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
831 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
832 |
return
|
|
|
833 |
oprot.writeStructBegin('getPurchaseOrder_result')
|
|
|
834 |
if self.success != None:
|
|
|
835 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
836 |
self.success.write(oprot)
|
|
|
837 |
oprot.writeFieldEnd()
|
|
|
838 |
if self.wex != None:
|
|
|
839 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
840 |
self.wex.write(oprot)
|
|
|
841 |
oprot.writeFieldEnd()
|
|
|
842 |
oprot.writeFieldStop()
|
|
|
843 |
oprot.writeStructEnd()
|
|
|
844 |
|
|
|
845 |
def __repr__(self):
|
|
|
846 |
L = ['%s=%r' % (key, value)
|
|
|
847 |
for key, value in self.__dict__.iteritems()]
|
|
|
848 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
849 |
|
|
|
850 |
def __eq__(self, other):
|
|
|
851 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
852 |
|
|
|
853 |
def __ne__(self, other):
|
|
|
854 |
return not (self == other)
|
|
|
855 |
|
| 3383 |
chandransh |
856 |
class getAllPurchaseOrders_args:
|
|
|
857 |
"""
|
|
|
858 |
Attributes:
|
|
|
859 |
- status
|
|
|
860 |
"""
|
|
|
861 |
|
|
|
862 |
thrift_spec = (
|
|
|
863 |
None, # 0
|
|
|
864 |
(1, TType.I32, 'status', None, None, ), # 1
|
|
|
865 |
)
|
|
|
866 |
|
|
|
867 |
def __init__(self, status=None,):
|
|
|
868 |
self.status = status
|
|
|
869 |
|
|
|
870 |
def read(self, iprot):
|
|
|
871 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
872 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
873 |
return
|
|
|
874 |
iprot.readStructBegin()
|
|
|
875 |
while True:
|
|
|
876 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
877 |
if ftype == TType.STOP:
|
|
|
878 |
break
|
|
|
879 |
if fid == 1:
|
|
|
880 |
if ftype == TType.I32:
|
|
|
881 |
self.status = iprot.readI32();
|
|
|
882 |
else:
|
|
|
883 |
iprot.skip(ftype)
|
|
|
884 |
else:
|
|
|
885 |
iprot.skip(ftype)
|
|
|
886 |
iprot.readFieldEnd()
|
|
|
887 |
iprot.readStructEnd()
|
|
|
888 |
|
|
|
889 |
def write(self, oprot):
|
|
|
890 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
891 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
892 |
return
|
|
|
893 |
oprot.writeStructBegin('getAllPurchaseOrders_args')
|
|
|
894 |
if self.status != None:
|
|
|
895 |
oprot.writeFieldBegin('status', TType.I32, 1)
|
|
|
896 |
oprot.writeI32(self.status)
|
|
|
897 |
oprot.writeFieldEnd()
|
|
|
898 |
oprot.writeFieldStop()
|
|
|
899 |
oprot.writeStructEnd()
|
|
|
900 |
|
|
|
901 |
def __repr__(self):
|
|
|
902 |
L = ['%s=%r' % (key, value)
|
|
|
903 |
for key, value in self.__dict__.iteritems()]
|
|
|
904 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
905 |
|
|
|
906 |
def __eq__(self, other):
|
|
|
907 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
908 |
|
|
|
909 |
def __ne__(self, other):
|
|
|
910 |
return not (self == other)
|
|
|
911 |
|
|
|
912 |
class getAllPurchaseOrders_result:
|
|
|
913 |
"""
|
|
|
914 |
Attributes:
|
|
|
915 |
- success
|
|
|
916 |
- wex
|
|
|
917 |
"""
|
|
|
918 |
|
|
|
919 |
thrift_spec = (
|
|
|
920 |
(0, TType.LIST, 'success', (TType.STRUCT,(PurchaseOrder, PurchaseOrder.thrift_spec)), None, ), # 0
|
|
|
921 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
922 |
)
|
|
|
923 |
|
|
|
924 |
def __init__(self, success=None, wex=None,):
|
|
|
925 |
self.success = success
|
|
|
926 |
self.wex = wex
|
|
|
927 |
|
|
|
928 |
def read(self, iprot):
|
|
|
929 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
930 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
931 |
return
|
|
|
932 |
iprot.readStructBegin()
|
|
|
933 |
while True:
|
|
|
934 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
935 |
if ftype == TType.STOP:
|
|
|
936 |
break
|
|
|
937 |
if fid == 0:
|
|
|
938 |
if ftype == TType.LIST:
|
|
|
939 |
self.success = []
|
|
|
940 |
(_etype10, _size7) = iprot.readListBegin()
|
|
|
941 |
for _i11 in xrange(_size7):
|
|
|
942 |
_elem12 = PurchaseOrder()
|
|
|
943 |
_elem12.read(iprot)
|
|
|
944 |
self.success.append(_elem12)
|
|
|
945 |
iprot.readListEnd()
|
|
|
946 |
else:
|
|
|
947 |
iprot.skip(ftype)
|
|
|
948 |
elif fid == 1:
|
|
|
949 |
if ftype == TType.STRUCT:
|
|
|
950 |
self.wex = WarehouseServiceException()
|
|
|
951 |
self.wex.read(iprot)
|
|
|
952 |
else:
|
|
|
953 |
iprot.skip(ftype)
|
|
|
954 |
else:
|
|
|
955 |
iprot.skip(ftype)
|
|
|
956 |
iprot.readFieldEnd()
|
|
|
957 |
iprot.readStructEnd()
|
|
|
958 |
|
|
|
959 |
def write(self, oprot):
|
|
|
960 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
961 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
962 |
return
|
|
|
963 |
oprot.writeStructBegin('getAllPurchaseOrders_result')
|
|
|
964 |
if self.success != None:
|
|
|
965 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
966 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
967 |
for iter13 in self.success:
|
|
|
968 |
iter13.write(oprot)
|
|
|
969 |
oprot.writeListEnd()
|
|
|
970 |
oprot.writeFieldEnd()
|
|
|
971 |
if self.wex != None:
|
|
|
972 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
973 |
self.wex.write(oprot)
|
|
|
974 |
oprot.writeFieldEnd()
|
|
|
975 |
oprot.writeFieldStop()
|
|
|
976 |
oprot.writeStructEnd()
|
|
|
977 |
|
|
|
978 |
def __repr__(self):
|
|
|
979 |
L = ['%s=%r' % (key, value)
|
|
|
980 |
for key, value in self.__dict__.iteritems()]
|
|
|
981 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
982 |
|
|
|
983 |
def __eq__(self, other):
|
|
|
984 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
985 |
|
|
|
986 |
def __ne__(self, other):
|
|
|
987 |
return not (self == other)
|
|
|
988 |
|
| 2832 |
chandransh |
989 |
class getSupplier_args:
|
|
|
990 |
"""
|
|
|
991 |
Attributes:
|
|
|
992 |
- id
|
|
|
993 |
"""
|
|
|
994 |
|
|
|
995 |
thrift_spec = (
|
|
|
996 |
None, # 0
|
|
|
997 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
998 |
)
|
|
|
999 |
|
|
|
1000 |
def __init__(self, id=None,):
|
|
|
1001 |
self.id = id
|
|
|
1002 |
|
|
|
1003 |
def read(self, iprot):
|
|
|
1004 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1005 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1006 |
return
|
|
|
1007 |
iprot.readStructBegin()
|
|
|
1008 |
while True:
|
|
|
1009 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1010 |
if ftype == TType.STOP:
|
|
|
1011 |
break
|
|
|
1012 |
if fid == 1:
|
|
|
1013 |
if ftype == TType.I64:
|
|
|
1014 |
self.id = iprot.readI64();
|
|
|
1015 |
else:
|
|
|
1016 |
iprot.skip(ftype)
|
|
|
1017 |
else:
|
|
|
1018 |
iprot.skip(ftype)
|
|
|
1019 |
iprot.readFieldEnd()
|
|
|
1020 |
iprot.readStructEnd()
|
|
|
1021 |
|
|
|
1022 |
def write(self, oprot):
|
|
|
1023 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1024 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1025 |
return
|
|
|
1026 |
oprot.writeStructBegin('getSupplier_args')
|
|
|
1027 |
if self.id != None:
|
|
|
1028 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
1029 |
oprot.writeI64(self.id)
|
|
|
1030 |
oprot.writeFieldEnd()
|
|
|
1031 |
oprot.writeFieldStop()
|
|
|
1032 |
oprot.writeStructEnd()
|
|
|
1033 |
|
|
|
1034 |
def __repr__(self):
|
|
|
1035 |
L = ['%s=%r' % (key, value)
|
|
|
1036 |
for key, value in self.__dict__.iteritems()]
|
|
|
1037 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1038 |
|
|
|
1039 |
def __eq__(self, other):
|
|
|
1040 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1041 |
|
|
|
1042 |
def __ne__(self, other):
|
|
|
1043 |
return not (self == other)
|
|
|
1044 |
|
|
|
1045 |
class getSupplier_result:
|
|
|
1046 |
"""
|
|
|
1047 |
Attributes:
|
|
|
1048 |
- success
|
|
|
1049 |
- wex
|
|
|
1050 |
"""
|
|
|
1051 |
|
|
|
1052 |
thrift_spec = (
|
|
|
1053 |
(0, TType.STRUCT, 'success', (Supplier, Supplier.thrift_spec), None, ), # 0
|
|
|
1054 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
1055 |
)
|
|
|
1056 |
|
|
|
1057 |
def __init__(self, success=None, wex=None,):
|
|
|
1058 |
self.success = success
|
|
|
1059 |
self.wex = wex
|
|
|
1060 |
|
|
|
1061 |
def read(self, iprot):
|
|
|
1062 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1063 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1064 |
return
|
|
|
1065 |
iprot.readStructBegin()
|
|
|
1066 |
while True:
|
|
|
1067 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1068 |
if ftype == TType.STOP:
|
|
|
1069 |
break
|
|
|
1070 |
if fid == 0:
|
|
|
1071 |
if ftype == TType.STRUCT:
|
|
|
1072 |
self.success = Supplier()
|
|
|
1073 |
self.success.read(iprot)
|
|
|
1074 |
else:
|
|
|
1075 |
iprot.skip(ftype)
|
|
|
1076 |
elif fid == 1:
|
|
|
1077 |
if ftype == TType.STRUCT:
|
|
|
1078 |
self.wex = WarehouseServiceException()
|
|
|
1079 |
self.wex.read(iprot)
|
|
|
1080 |
else:
|
|
|
1081 |
iprot.skip(ftype)
|
|
|
1082 |
else:
|
|
|
1083 |
iprot.skip(ftype)
|
|
|
1084 |
iprot.readFieldEnd()
|
|
|
1085 |
iprot.readStructEnd()
|
|
|
1086 |
|
|
|
1087 |
def write(self, oprot):
|
|
|
1088 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1089 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1090 |
return
|
|
|
1091 |
oprot.writeStructBegin('getSupplier_result')
|
|
|
1092 |
if self.success != None:
|
|
|
1093 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
1094 |
self.success.write(oprot)
|
|
|
1095 |
oprot.writeFieldEnd()
|
|
|
1096 |
if self.wex != None:
|
|
|
1097 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
1098 |
self.wex.write(oprot)
|
|
|
1099 |
oprot.writeFieldEnd()
|
|
|
1100 |
oprot.writeFieldStop()
|
|
|
1101 |
oprot.writeStructEnd()
|
|
|
1102 |
|
|
|
1103 |
def __repr__(self):
|
|
|
1104 |
L = ['%s=%r' % (key, value)
|
|
|
1105 |
for key, value in self.__dict__.iteritems()]
|
|
|
1106 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1107 |
|
|
|
1108 |
def __eq__(self, other):
|
|
|
1109 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1110 |
|
|
|
1111 |
def __ne__(self, other):
|
|
|
1112 |
return not (self == other)
|
|
|
1113 |
|
| 2821 |
chandransh |
1114 |
class startPurchase_args:
|
|
|
1115 |
"""
|
|
|
1116 |
Attributes:
|
|
|
1117 |
- purchaseOrderId
|
|
|
1118 |
- invoiceNumber
|
|
|
1119 |
- freightCharges
|
|
|
1120 |
"""
|
|
|
1121 |
|
|
|
1122 |
thrift_spec = (
|
|
|
1123 |
None, # 0
|
|
|
1124 |
(1, TType.I64, 'purchaseOrderId', None, None, ), # 1
|
|
|
1125 |
(2, TType.STRING, 'invoiceNumber', None, None, ), # 2
|
|
|
1126 |
(3, TType.DOUBLE, 'freightCharges', None, None, ), # 3
|
|
|
1127 |
)
|
|
|
1128 |
|
|
|
1129 |
def __init__(self, purchaseOrderId=None, invoiceNumber=None, freightCharges=None,):
|
|
|
1130 |
self.purchaseOrderId = purchaseOrderId
|
|
|
1131 |
self.invoiceNumber = invoiceNumber
|
|
|
1132 |
self.freightCharges = freightCharges
|
|
|
1133 |
|
|
|
1134 |
def read(self, iprot):
|
|
|
1135 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1136 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1137 |
return
|
|
|
1138 |
iprot.readStructBegin()
|
|
|
1139 |
while True:
|
|
|
1140 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1141 |
if ftype == TType.STOP:
|
|
|
1142 |
break
|
|
|
1143 |
if fid == 1:
|
|
|
1144 |
if ftype == TType.I64:
|
|
|
1145 |
self.purchaseOrderId = iprot.readI64();
|
|
|
1146 |
else:
|
|
|
1147 |
iprot.skip(ftype)
|
|
|
1148 |
elif fid == 2:
|
|
|
1149 |
if ftype == TType.STRING:
|
|
|
1150 |
self.invoiceNumber = iprot.readString();
|
|
|
1151 |
else:
|
|
|
1152 |
iprot.skip(ftype)
|
|
|
1153 |
elif fid == 3:
|
|
|
1154 |
if ftype == TType.DOUBLE:
|
|
|
1155 |
self.freightCharges = iprot.readDouble();
|
|
|
1156 |
else:
|
|
|
1157 |
iprot.skip(ftype)
|
|
|
1158 |
else:
|
|
|
1159 |
iprot.skip(ftype)
|
|
|
1160 |
iprot.readFieldEnd()
|
|
|
1161 |
iprot.readStructEnd()
|
|
|
1162 |
|
|
|
1163 |
def write(self, oprot):
|
|
|
1164 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1165 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1166 |
return
|
|
|
1167 |
oprot.writeStructBegin('startPurchase_args')
|
|
|
1168 |
if self.purchaseOrderId != None:
|
|
|
1169 |
oprot.writeFieldBegin('purchaseOrderId', TType.I64, 1)
|
|
|
1170 |
oprot.writeI64(self.purchaseOrderId)
|
|
|
1171 |
oprot.writeFieldEnd()
|
|
|
1172 |
if self.invoiceNumber != None:
|
|
|
1173 |
oprot.writeFieldBegin('invoiceNumber', TType.STRING, 2)
|
|
|
1174 |
oprot.writeString(self.invoiceNumber)
|
|
|
1175 |
oprot.writeFieldEnd()
|
|
|
1176 |
if self.freightCharges != None:
|
|
|
1177 |
oprot.writeFieldBegin('freightCharges', TType.DOUBLE, 3)
|
|
|
1178 |
oprot.writeDouble(self.freightCharges)
|
|
|
1179 |
oprot.writeFieldEnd()
|
|
|
1180 |
oprot.writeFieldStop()
|
|
|
1181 |
oprot.writeStructEnd()
|
|
|
1182 |
|
|
|
1183 |
def __repr__(self):
|
|
|
1184 |
L = ['%s=%r' % (key, value)
|
|
|
1185 |
for key, value in self.__dict__.iteritems()]
|
|
|
1186 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1187 |
|
|
|
1188 |
def __eq__(self, other):
|
|
|
1189 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1190 |
|
|
|
1191 |
def __ne__(self, other):
|
|
|
1192 |
return not (self == other)
|
|
|
1193 |
|
|
|
1194 |
class startPurchase_result:
|
|
|
1195 |
"""
|
|
|
1196 |
Attributes:
|
|
|
1197 |
- success
|
|
|
1198 |
- wex
|
|
|
1199 |
"""
|
|
|
1200 |
|
|
|
1201 |
thrift_spec = (
|
|
|
1202 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
1203 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
1204 |
)
|
|
|
1205 |
|
|
|
1206 |
def __init__(self, success=None, wex=None,):
|
|
|
1207 |
self.success = success
|
|
|
1208 |
self.wex = wex
|
|
|
1209 |
|
|
|
1210 |
def read(self, iprot):
|
|
|
1211 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1212 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1213 |
return
|
|
|
1214 |
iprot.readStructBegin()
|
|
|
1215 |
while True:
|
|
|
1216 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1217 |
if ftype == TType.STOP:
|
|
|
1218 |
break
|
|
|
1219 |
if fid == 0:
|
|
|
1220 |
if ftype == TType.I64:
|
|
|
1221 |
self.success = iprot.readI64();
|
|
|
1222 |
else:
|
|
|
1223 |
iprot.skip(ftype)
|
|
|
1224 |
elif fid == 1:
|
|
|
1225 |
if ftype == TType.STRUCT:
|
|
|
1226 |
self.wex = WarehouseServiceException()
|
|
|
1227 |
self.wex.read(iprot)
|
|
|
1228 |
else:
|
|
|
1229 |
iprot.skip(ftype)
|
|
|
1230 |
else:
|
|
|
1231 |
iprot.skip(ftype)
|
|
|
1232 |
iprot.readFieldEnd()
|
|
|
1233 |
iprot.readStructEnd()
|
|
|
1234 |
|
|
|
1235 |
def write(self, oprot):
|
|
|
1236 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1237 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1238 |
return
|
|
|
1239 |
oprot.writeStructBegin('startPurchase_result')
|
|
|
1240 |
if self.success != None:
|
|
|
1241 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
1242 |
oprot.writeI64(self.success)
|
|
|
1243 |
oprot.writeFieldEnd()
|
|
|
1244 |
if self.wex != None:
|
|
|
1245 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
1246 |
self.wex.write(oprot)
|
|
|
1247 |
oprot.writeFieldEnd()
|
|
|
1248 |
oprot.writeFieldStop()
|
|
|
1249 |
oprot.writeStructEnd()
|
|
|
1250 |
|
|
|
1251 |
def __repr__(self):
|
|
|
1252 |
L = ['%s=%r' % (key, value)
|
|
|
1253 |
for key, value in self.__dict__.iteritems()]
|
|
|
1254 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1255 |
|
|
|
1256 |
def __eq__(self, other):
|
|
|
1257 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1258 |
|
|
|
1259 |
def __ne__(self, other):
|
|
|
1260 |
return not (self == other)
|
|
|
1261 |
|
|
|
1262 |
class closePurchase_args:
|
|
|
1263 |
"""
|
|
|
1264 |
Attributes:
|
|
|
1265 |
- purchaseId
|
|
|
1266 |
"""
|
|
|
1267 |
|
|
|
1268 |
thrift_spec = (
|
|
|
1269 |
None, # 0
|
|
|
1270 |
(1, TType.I64, 'purchaseId', None, None, ), # 1
|
|
|
1271 |
)
|
|
|
1272 |
|
|
|
1273 |
def __init__(self, purchaseId=None,):
|
|
|
1274 |
self.purchaseId = purchaseId
|
|
|
1275 |
|
|
|
1276 |
def read(self, iprot):
|
|
|
1277 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1278 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1279 |
return
|
|
|
1280 |
iprot.readStructBegin()
|
|
|
1281 |
while True:
|
|
|
1282 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1283 |
if ftype == TType.STOP:
|
|
|
1284 |
break
|
|
|
1285 |
if fid == 1:
|
|
|
1286 |
if ftype == TType.I64:
|
|
|
1287 |
self.purchaseId = iprot.readI64();
|
|
|
1288 |
else:
|
|
|
1289 |
iprot.skip(ftype)
|
|
|
1290 |
else:
|
|
|
1291 |
iprot.skip(ftype)
|
|
|
1292 |
iprot.readFieldEnd()
|
|
|
1293 |
iprot.readStructEnd()
|
|
|
1294 |
|
|
|
1295 |
def write(self, oprot):
|
|
|
1296 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1297 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1298 |
return
|
|
|
1299 |
oprot.writeStructBegin('closePurchase_args')
|
|
|
1300 |
if self.purchaseId != None:
|
|
|
1301 |
oprot.writeFieldBegin('purchaseId', TType.I64, 1)
|
|
|
1302 |
oprot.writeI64(self.purchaseId)
|
|
|
1303 |
oprot.writeFieldEnd()
|
|
|
1304 |
oprot.writeFieldStop()
|
|
|
1305 |
oprot.writeStructEnd()
|
|
|
1306 |
|
|
|
1307 |
def __repr__(self):
|
|
|
1308 |
L = ['%s=%r' % (key, value)
|
|
|
1309 |
for key, value in self.__dict__.iteritems()]
|
|
|
1310 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1311 |
|
|
|
1312 |
def __eq__(self, other):
|
|
|
1313 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1314 |
|
|
|
1315 |
def __ne__(self, other):
|
|
|
1316 |
return not (self == other)
|
|
|
1317 |
|
|
|
1318 |
class closePurchase_result:
|
|
|
1319 |
"""
|
|
|
1320 |
Attributes:
|
|
|
1321 |
- success
|
|
|
1322 |
- wex
|
|
|
1323 |
"""
|
|
|
1324 |
|
|
|
1325 |
thrift_spec = (
|
|
|
1326 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
1327 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
1328 |
)
|
|
|
1329 |
|
|
|
1330 |
def __init__(self, success=None, wex=None,):
|
|
|
1331 |
self.success = success
|
|
|
1332 |
self.wex = wex
|
|
|
1333 |
|
|
|
1334 |
def read(self, iprot):
|
|
|
1335 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1336 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1337 |
return
|
|
|
1338 |
iprot.readStructBegin()
|
|
|
1339 |
while True:
|
|
|
1340 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1341 |
if ftype == TType.STOP:
|
|
|
1342 |
break
|
|
|
1343 |
if fid == 0:
|
|
|
1344 |
if ftype == TType.I64:
|
|
|
1345 |
self.success = iprot.readI64();
|
|
|
1346 |
else:
|
|
|
1347 |
iprot.skip(ftype)
|
|
|
1348 |
elif fid == 1:
|
|
|
1349 |
if ftype == TType.STRUCT:
|
|
|
1350 |
self.wex = WarehouseServiceException()
|
|
|
1351 |
self.wex.read(iprot)
|
|
|
1352 |
else:
|
|
|
1353 |
iprot.skip(ftype)
|
|
|
1354 |
else:
|
|
|
1355 |
iprot.skip(ftype)
|
|
|
1356 |
iprot.readFieldEnd()
|
|
|
1357 |
iprot.readStructEnd()
|
|
|
1358 |
|
|
|
1359 |
def write(self, oprot):
|
|
|
1360 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1361 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1362 |
return
|
|
|
1363 |
oprot.writeStructBegin('closePurchase_result')
|
|
|
1364 |
if self.success != None:
|
|
|
1365 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
1366 |
oprot.writeI64(self.success)
|
|
|
1367 |
oprot.writeFieldEnd()
|
|
|
1368 |
if self.wex != None:
|
|
|
1369 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
1370 |
self.wex.write(oprot)
|
|
|
1371 |
oprot.writeFieldEnd()
|
|
|
1372 |
oprot.writeFieldStop()
|
|
|
1373 |
oprot.writeStructEnd()
|
|
|
1374 |
|
|
|
1375 |
def __repr__(self):
|
|
|
1376 |
L = ['%s=%r' % (key, value)
|
|
|
1377 |
for key, value in self.__dict__.iteritems()]
|
|
|
1378 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1379 |
|
|
|
1380 |
def __eq__(self, other):
|
|
|
1381 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1382 |
|
|
|
1383 |
def __ne__(self, other):
|
|
|
1384 |
return not (self == other)
|
|
|
1385 |
|
| 3383 |
chandransh |
1386 |
class getAllPurchases_args:
|
|
|
1387 |
"""
|
|
|
1388 |
Attributes:
|
|
|
1389 |
- purchaseOrderId
|
|
|
1390 |
- open
|
|
|
1391 |
"""
|
|
|
1392 |
|
|
|
1393 |
thrift_spec = (
|
|
|
1394 |
None, # 0
|
|
|
1395 |
(1, TType.I64, 'purchaseOrderId', None, None, ), # 1
|
|
|
1396 |
(2, TType.BOOL, 'open', None, None, ), # 2
|
|
|
1397 |
)
|
|
|
1398 |
|
|
|
1399 |
def __init__(self, purchaseOrderId=None, open=None,):
|
|
|
1400 |
self.purchaseOrderId = purchaseOrderId
|
|
|
1401 |
self.open = open
|
|
|
1402 |
|
|
|
1403 |
def read(self, iprot):
|
|
|
1404 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1405 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1406 |
return
|
|
|
1407 |
iprot.readStructBegin()
|
|
|
1408 |
while True:
|
|
|
1409 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1410 |
if ftype == TType.STOP:
|
|
|
1411 |
break
|
|
|
1412 |
if fid == 1:
|
|
|
1413 |
if ftype == TType.I64:
|
|
|
1414 |
self.purchaseOrderId = iprot.readI64();
|
|
|
1415 |
else:
|
|
|
1416 |
iprot.skip(ftype)
|
|
|
1417 |
elif fid == 2:
|
|
|
1418 |
if ftype == TType.BOOL:
|
|
|
1419 |
self.open = iprot.readBool();
|
|
|
1420 |
else:
|
|
|
1421 |
iprot.skip(ftype)
|
|
|
1422 |
else:
|
|
|
1423 |
iprot.skip(ftype)
|
|
|
1424 |
iprot.readFieldEnd()
|
|
|
1425 |
iprot.readStructEnd()
|
|
|
1426 |
|
|
|
1427 |
def write(self, oprot):
|
|
|
1428 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1429 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1430 |
return
|
|
|
1431 |
oprot.writeStructBegin('getAllPurchases_args')
|
|
|
1432 |
if self.purchaseOrderId != None:
|
|
|
1433 |
oprot.writeFieldBegin('purchaseOrderId', TType.I64, 1)
|
|
|
1434 |
oprot.writeI64(self.purchaseOrderId)
|
|
|
1435 |
oprot.writeFieldEnd()
|
|
|
1436 |
if self.open != None:
|
|
|
1437 |
oprot.writeFieldBegin('open', TType.BOOL, 2)
|
|
|
1438 |
oprot.writeBool(self.open)
|
|
|
1439 |
oprot.writeFieldEnd()
|
|
|
1440 |
oprot.writeFieldStop()
|
|
|
1441 |
oprot.writeStructEnd()
|
|
|
1442 |
|
|
|
1443 |
def __repr__(self):
|
|
|
1444 |
L = ['%s=%r' % (key, value)
|
|
|
1445 |
for key, value in self.__dict__.iteritems()]
|
|
|
1446 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1447 |
|
|
|
1448 |
def __eq__(self, other):
|
|
|
1449 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1450 |
|
|
|
1451 |
def __ne__(self, other):
|
|
|
1452 |
return not (self == other)
|
|
|
1453 |
|
|
|
1454 |
class getAllPurchases_result:
|
|
|
1455 |
"""
|
|
|
1456 |
Attributes:
|
|
|
1457 |
- success
|
|
|
1458 |
- wex
|
|
|
1459 |
"""
|
|
|
1460 |
|
|
|
1461 |
thrift_spec = (
|
|
|
1462 |
(0, TType.LIST, 'success', (TType.STRUCT,(Purchase, Purchase.thrift_spec)), None, ), # 0
|
|
|
1463 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
1464 |
)
|
|
|
1465 |
|
|
|
1466 |
def __init__(self, success=None, wex=None,):
|
|
|
1467 |
self.success = success
|
|
|
1468 |
self.wex = wex
|
|
|
1469 |
|
|
|
1470 |
def read(self, iprot):
|
|
|
1471 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1472 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1473 |
return
|
|
|
1474 |
iprot.readStructBegin()
|
|
|
1475 |
while True:
|
|
|
1476 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1477 |
if ftype == TType.STOP:
|
|
|
1478 |
break
|
|
|
1479 |
if fid == 0:
|
|
|
1480 |
if ftype == TType.LIST:
|
|
|
1481 |
self.success = []
|
|
|
1482 |
(_etype17, _size14) = iprot.readListBegin()
|
|
|
1483 |
for _i18 in xrange(_size14):
|
|
|
1484 |
_elem19 = Purchase()
|
|
|
1485 |
_elem19.read(iprot)
|
|
|
1486 |
self.success.append(_elem19)
|
|
|
1487 |
iprot.readListEnd()
|
|
|
1488 |
else:
|
|
|
1489 |
iprot.skip(ftype)
|
|
|
1490 |
elif fid == 1:
|
|
|
1491 |
if ftype == TType.STRUCT:
|
|
|
1492 |
self.wex = WarehouseServiceException()
|
|
|
1493 |
self.wex.read(iprot)
|
|
|
1494 |
else:
|
|
|
1495 |
iprot.skip(ftype)
|
|
|
1496 |
else:
|
|
|
1497 |
iprot.skip(ftype)
|
|
|
1498 |
iprot.readFieldEnd()
|
|
|
1499 |
iprot.readStructEnd()
|
|
|
1500 |
|
|
|
1501 |
def write(self, oprot):
|
|
|
1502 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1503 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1504 |
return
|
|
|
1505 |
oprot.writeStructBegin('getAllPurchases_result')
|
|
|
1506 |
if self.success != None:
|
|
|
1507 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
|
|
1508 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
|
|
1509 |
for iter20 in self.success:
|
|
|
1510 |
iter20.write(oprot)
|
|
|
1511 |
oprot.writeListEnd()
|
|
|
1512 |
oprot.writeFieldEnd()
|
|
|
1513 |
if self.wex != None:
|
|
|
1514 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
1515 |
self.wex.write(oprot)
|
|
|
1516 |
oprot.writeFieldEnd()
|
|
|
1517 |
oprot.writeFieldStop()
|
|
|
1518 |
oprot.writeStructEnd()
|
|
|
1519 |
|
|
|
1520 |
def __repr__(self):
|
|
|
1521 |
L = ['%s=%r' % (key, value)
|
|
|
1522 |
for key, value in self.__dict__.iteritems()]
|
|
|
1523 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1524 |
|
|
|
1525 |
def __eq__(self, other):
|
|
|
1526 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1527 |
|
|
|
1528 |
def __ne__(self, other):
|
|
|
1529 |
return not (self == other)
|
|
|
1530 |
|
| 2821 |
chandransh |
1531 |
class scanIn_args:
|
|
|
1532 |
"""
|
|
|
1533 |
Attributes:
|
|
|
1534 |
- purchaseId
|
|
|
1535 |
- itemNumber
|
|
|
1536 |
- imeiNumber
|
|
|
1537 |
- type
|
|
|
1538 |
"""
|
|
|
1539 |
|
|
|
1540 |
thrift_spec = (
|
|
|
1541 |
None, # 0
|
|
|
1542 |
(1, TType.I64, 'purchaseId', None, None, ), # 1
|
| 3383 |
chandransh |
1543 |
(2, TType.STRING, 'itemNumber', None, None, ), # 2
|
|
|
1544 |
(3, TType.STRING, 'imeiNumber', None, None, ), # 3
|
|
|
1545 |
(4, TType.I32, 'type', None, None, ), # 4
|
| 2821 |
chandransh |
1546 |
)
|
|
|
1547 |
|
| 3383 |
chandransh |
1548 |
def __init__(self, purchaseId=None, itemNumber=None, imeiNumber=None, type=None,):
|
| 2821 |
chandransh |
1549 |
self.purchaseId = purchaseId
|
|
|
1550 |
self.itemNumber = itemNumber
|
|
|
1551 |
self.imeiNumber = imeiNumber
|
|
|
1552 |
self.type = type
|
|
|
1553 |
|
|
|
1554 |
def read(self, iprot):
|
|
|
1555 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1556 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1557 |
return
|
|
|
1558 |
iprot.readStructBegin()
|
|
|
1559 |
while True:
|
|
|
1560 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1561 |
if ftype == TType.STOP:
|
|
|
1562 |
break
|
|
|
1563 |
if fid == 1:
|
|
|
1564 |
if ftype == TType.I64:
|
|
|
1565 |
self.purchaseId = iprot.readI64();
|
|
|
1566 |
else:
|
|
|
1567 |
iprot.skip(ftype)
|
|
|
1568 |
elif fid == 2:
|
|
|
1569 |
if ftype == TType.STRING:
|
|
|
1570 |
self.itemNumber = iprot.readString();
|
|
|
1571 |
else:
|
|
|
1572 |
iprot.skip(ftype)
|
| 3383 |
chandransh |
1573 |
elif fid == 3:
|
| 2821 |
chandransh |
1574 |
if ftype == TType.STRING:
|
|
|
1575 |
self.imeiNumber = iprot.readString();
|
|
|
1576 |
else:
|
|
|
1577 |
iprot.skip(ftype)
|
| 3383 |
chandransh |
1578 |
elif fid == 4:
|
| 2821 |
chandransh |
1579 |
if ftype == TType.I32:
|
|
|
1580 |
self.type = iprot.readI32();
|
|
|
1581 |
else:
|
|
|
1582 |
iprot.skip(ftype)
|
|
|
1583 |
else:
|
|
|
1584 |
iprot.skip(ftype)
|
|
|
1585 |
iprot.readFieldEnd()
|
|
|
1586 |
iprot.readStructEnd()
|
|
|
1587 |
|
|
|
1588 |
def write(self, oprot):
|
|
|
1589 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1590 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1591 |
return
|
|
|
1592 |
oprot.writeStructBegin('scanIn_args')
|
|
|
1593 |
if self.purchaseId != None:
|
|
|
1594 |
oprot.writeFieldBegin('purchaseId', TType.I64, 1)
|
|
|
1595 |
oprot.writeI64(self.purchaseId)
|
|
|
1596 |
oprot.writeFieldEnd()
|
|
|
1597 |
if self.itemNumber != None:
|
| 3383 |
chandransh |
1598 |
oprot.writeFieldBegin('itemNumber', TType.STRING, 2)
|
| 2821 |
chandransh |
1599 |
oprot.writeString(self.itemNumber)
|
|
|
1600 |
oprot.writeFieldEnd()
|
|
|
1601 |
if self.imeiNumber != None:
|
| 3383 |
chandransh |
1602 |
oprot.writeFieldBegin('imeiNumber', TType.STRING, 3)
|
| 2821 |
chandransh |
1603 |
oprot.writeString(self.imeiNumber)
|
|
|
1604 |
oprot.writeFieldEnd()
|
|
|
1605 |
if self.type != None:
|
| 3383 |
chandransh |
1606 |
oprot.writeFieldBegin('type', TType.I32, 4)
|
| 2821 |
chandransh |
1607 |
oprot.writeI32(self.type)
|
|
|
1608 |
oprot.writeFieldEnd()
|
|
|
1609 |
oprot.writeFieldStop()
|
|
|
1610 |
oprot.writeStructEnd()
|
|
|
1611 |
|
|
|
1612 |
def __repr__(self):
|
|
|
1613 |
L = ['%s=%r' % (key, value)
|
|
|
1614 |
for key, value in self.__dict__.iteritems()]
|
|
|
1615 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1616 |
|
|
|
1617 |
def __eq__(self, other):
|
|
|
1618 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1619 |
|
|
|
1620 |
def __ne__(self, other):
|
|
|
1621 |
return not (self == other)
|
|
|
1622 |
|
|
|
1623 |
class scanIn_result:
|
|
|
1624 |
"""
|
|
|
1625 |
Attributes:
|
|
|
1626 |
- wex
|
|
|
1627 |
"""
|
|
|
1628 |
|
|
|
1629 |
thrift_spec = (
|
|
|
1630 |
None, # 0
|
|
|
1631 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
1632 |
)
|
|
|
1633 |
|
|
|
1634 |
def __init__(self, wex=None,):
|
|
|
1635 |
self.wex = wex
|
|
|
1636 |
|
|
|
1637 |
def read(self, iprot):
|
|
|
1638 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1639 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1640 |
return
|
|
|
1641 |
iprot.readStructBegin()
|
|
|
1642 |
while True:
|
|
|
1643 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1644 |
if ftype == TType.STOP:
|
|
|
1645 |
break
|
|
|
1646 |
if fid == 1:
|
|
|
1647 |
if ftype == TType.STRUCT:
|
|
|
1648 |
self.wex = WarehouseServiceException()
|
|
|
1649 |
self.wex.read(iprot)
|
|
|
1650 |
else:
|
|
|
1651 |
iprot.skip(ftype)
|
|
|
1652 |
else:
|
|
|
1653 |
iprot.skip(ftype)
|
|
|
1654 |
iprot.readFieldEnd()
|
|
|
1655 |
iprot.readStructEnd()
|
|
|
1656 |
|
|
|
1657 |
def write(self, oprot):
|
|
|
1658 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1659 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1660 |
return
|
|
|
1661 |
oprot.writeStructBegin('scanIn_result')
|
|
|
1662 |
if self.wex != None:
|
|
|
1663 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
1664 |
self.wex.write(oprot)
|
|
|
1665 |
oprot.writeFieldEnd()
|
|
|
1666 |
oprot.writeFieldStop()
|
|
|
1667 |
oprot.writeStructEnd()
|
|
|
1668 |
|
|
|
1669 |
def __repr__(self):
|
|
|
1670 |
L = ['%s=%r' % (key, value)
|
|
|
1671 |
for key, value in self.__dict__.iteritems()]
|
|
|
1672 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1673 |
|
|
|
1674 |
def __eq__(self, other):
|
|
|
1675 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1676 |
|
|
|
1677 |
def __ne__(self, other):
|
|
|
1678 |
return not (self == other)
|
|
|
1679 |
|
|
|
1680 |
class scanOut_args:
|
|
|
1681 |
"""
|
|
|
1682 |
Attributes:
|
|
|
1683 |
- itemNumber
|
|
|
1684 |
- imeiNumber
|
|
|
1685 |
- type
|
|
|
1686 |
"""
|
|
|
1687 |
|
|
|
1688 |
thrift_spec = (
|
|
|
1689 |
None, # 0
|
| 3424 |
chandransh |
1690 |
(1, TType.STRING, 'itemNumber', None, None, ), # 1
|
|
|
1691 |
(2, TType.STRING, 'imeiNumber', None, None, ), # 2
|
| 2821 |
chandransh |
1692 |
(3, TType.I32, 'type', None, None, ), # 3
|
|
|
1693 |
)
|
|
|
1694 |
|
|
|
1695 |
def __init__(self, itemNumber=None, imeiNumber=None, type=None,):
|
|
|
1696 |
self.itemNumber = itemNumber
|
|
|
1697 |
self.imeiNumber = imeiNumber
|
|
|
1698 |
self.type = type
|
|
|
1699 |
|
|
|
1700 |
def read(self, iprot):
|
|
|
1701 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1702 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1703 |
return
|
|
|
1704 |
iprot.readStructBegin()
|
|
|
1705 |
while True:
|
|
|
1706 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1707 |
if ftype == TType.STOP:
|
|
|
1708 |
break
|
|
|
1709 |
if fid == 1:
|
| 3424 |
chandransh |
1710 |
if ftype == TType.STRING:
|
|
|
1711 |
self.itemNumber = iprot.readString();
|
| 2821 |
chandransh |
1712 |
else:
|
|
|
1713 |
iprot.skip(ftype)
|
|
|
1714 |
elif fid == 2:
|
| 3424 |
chandransh |
1715 |
if ftype == TType.STRING:
|
|
|
1716 |
self.imeiNumber = iprot.readString();
|
| 2821 |
chandransh |
1717 |
else:
|
|
|
1718 |
iprot.skip(ftype)
|
|
|
1719 |
elif fid == 3:
|
|
|
1720 |
if ftype == TType.I32:
|
|
|
1721 |
self.type = iprot.readI32();
|
|
|
1722 |
else:
|
|
|
1723 |
iprot.skip(ftype)
|
|
|
1724 |
else:
|
|
|
1725 |
iprot.skip(ftype)
|
|
|
1726 |
iprot.readFieldEnd()
|
|
|
1727 |
iprot.readStructEnd()
|
|
|
1728 |
|
|
|
1729 |
def write(self, oprot):
|
|
|
1730 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1731 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1732 |
return
|
|
|
1733 |
oprot.writeStructBegin('scanOut_args')
|
|
|
1734 |
if self.itemNumber != None:
|
| 3424 |
chandransh |
1735 |
oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
|
|
|
1736 |
oprot.writeString(self.itemNumber)
|
| 2821 |
chandransh |
1737 |
oprot.writeFieldEnd()
|
|
|
1738 |
if self.imeiNumber != None:
|
| 3424 |
chandransh |
1739 |
oprot.writeFieldBegin('imeiNumber', TType.STRING, 2)
|
|
|
1740 |
oprot.writeString(self.imeiNumber)
|
| 2821 |
chandransh |
1741 |
oprot.writeFieldEnd()
|
|
|
1742 |
if self.type != None:
|
|
|
1743 |
oprot.writeFieldBegin('type', TType.I32, 3)
|
|
|
1744 |
oprot.writeI32(self.type)
|
|
|
1745 |
oprot.writeFieldEnd()
|
|
|
1746 |
oprot.writeFieldStop()
|
|
|
1747 |
oprot.writeStructEnd()
|
|
|
1748 |
|
|
|
1749 |
def __repr__(self):
|
|
|
1750 |
L = ['%s=%r' % (key, value)
|
|
|
1751 |
for key, value in self.__dict__.iteritems()]
|
|
|
1752 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1753 |
|
|
|
1754 |
def __eq__(self, other):
|
|
|
1755 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1756 |
|
|
|
1757 |
def __ne__(self, other):
|
|
|
1758 |
return not (self == other)
|
|
|
1759 |
|
|
|
1760 |
class scanOut_result:
|
|
|
1761 |
"""
|
|
|
1762 |
Attributes:
|
|
|
1763 |
- wex
|
|
|
1764 |
"""
|
|
|
1765 |
|
|
|
1766 |
thrift_spec = (
|
|
|
1767 |
None, # 0
|
|
|
1768 |
(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
|
|
|
1769 |
)
|
|
|
1770 |
|
|
|
1771 |
def __init__(self, wex=None,):
|
|
|
1772 |
self.wex = wex
|
|
|
1773 |
|
|
|
1774 |
def read(self, iprot):
|
|
|
1775 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1776 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1777 |
return
|
|
|
1778 |
iprot.readStructBegin()
|
|
|
1779 |
while True:
|
|
|
1780 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1781 |
if ftype == TType.STOP:
|
|
|
1782 |
break
|
|
|
1783 |
if fid == 1:
|
|
|
1784 |
if ftype == TType.STRUCT:
|
|
|
1785 |
self.wex = WarehouseServiceException()
|
|
|
1786 |
self.wex.read(iprot)
|
|
|
1787 |
else:
|
|
|
1788 |
iprot.skip(ftype)
|
|
|
1789 |
else:
|
|
|
1790 |
iprot.skip(ftype)
|
|
|
1791 |
iprot.readFieldEnd()
|
|
|
1792 |
iprot.readStructEnd()
|
|
|
1793 |
|
|
|
1794 |
def write(self, oprot):
|
|
|
1795 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1796 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1797 |
return
|
|
|
1798 |
oprot.writeStructBegin('scanOut_result')
|
|
|
1799 |
if self.wex != None:
|
|
|
1800 |
oprot.writeFieldBegin('wex', TType.STRUCT, 1)
|
|
|
1801 |
self.wex.write(oprot)
|
|
|
1802 |
oprot.writeFieldEnd()
|
|
|
1803 |
oprot.writeFieldStop()
|
|
|
1804 |
oprot.writeStructEnd()
|
|
|
1805 |
|
|
|
1806 |
def __repr__(self):
|
|
|
1807 |
L = ['%s=%r' % (key, value)
|
|
|
1808 |
for key, value in self.__dict__.iteritems()]
|
|
|
1809 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1810 |
|
|
|
1811 |
def __eq__(self, other):
|
|
|
1812 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1813 |
|
|
|
1814 |
def __ne__(self, other):
|
|
|
1815 |
return not (self == other)
|
|
|
1816 |
|
|
|
1817 |
|