Subversion Repositories SmartDukaan

Rev

Rev 3424 | Rev 4501 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3424 Rev 3431
Line 1... Line 1...
1
#
1
#
2
# Autogenerated by Thrift
2
# Autogenerated by Thrift Compiler (0.7.0)
3
#
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
5
#
6
 
6
 
7
from thrift.Thrift import *
7
from thrift.Thrift import *
8
import shop2020.thriftpy.generic.GenericService
8
import shop2020.thriftpy.generic.GenericService
9
from ttypes import *
9
from ttypes import *
10
from thrift.Thrift import TProcessor
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
11
from thrift.transport import TTransport
12
from thrift.protocol import TBinaryProtocol
12
from thrift.protocol import TBinaryProtocol, TProtocol
13
try:
13
try:
14
  from thrift.protocol import fastbinary
14
  from thrift.protocol import fastbinary
15
except:
15
except:
16
  fastbinary = None
16
  fastbinary = None
17
 
17
 
Line 19... Line 19...
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
20
  def createPurchaseOrder(self, purchaseOrder):
20
  def createPurchaseOrder(self, purchaseOrder):
21
    """
21
    """
22
    Creates a purchase order based on the data in the given purchase order object.
22
    Creates a purchase order based on the data in the given purchase order object.
23
    This method populates a nummber of missing fields
23
    This method populates a nummber of missing fields
24
    
24
 
25
    Parameters:
25
    Parameters:
26
     - purchaseOrder
26
     - purchaseOrder
27
    """
27
    """
28
    pass
28
    pass
29
 
29
 
30
  def getPurchaseOrder(self, id):
30
  def getPurchaseOrder(self, id):
31
    """
31
    """
32
    Returns the purchase order with the given id. Throws an exception if there is no such purchase order.
32
    Returns the purchase order with the given id. Throws an exception if there is no such purchase order.
33
    
33
 
34
    Parameters:
34
    Parameters:
35
     - id
35
     - id
36
    """
36
    """
37
    pass
37
    pass
38
 
38
 
39
  def getAllPurchaseOrders(self, status):
39
  def getAllPurchaseOrders(self, status):
40
    """
40
    """
41
    Returns a list of all the purchase orders in the given state
41
    Returns a list of all the purchase orders in the given state
42
    
42
 
43
    Parameters:
43
    Parameters:
44
     - status
44
     - status
45
    """
45
    """
46
    pass
46
    pass
47
 
47
 
48
  def getSupplier(self, id):
48
  def getSupplier(self, id):
49
    """
49
    """
50
    Returns the supplier with the given order id. Throws an exception if there is no such supplier.
50
    Returns the supplier with the given order id. Throws an exception if there is no such supplier.
51
    
51
 
52
    Parameters:
52
    Parameters:
53
     - id
53
     - id
54
    """
54
    """
55
    pass
55
    pass
56
 
56
 
57
  def startPurchase(self, purchaseOrderId, invoiceNumber, freightCharges):
57
  def startPurchase(self, purchaseOrderId, invoiceNumber, freightCharges):
58
    """
58
    """
59
    Creates a purchase for the given purchase order.
59
    Creates a purchase for the given purchase order.
60
    Throws an exception if no more purchases are allowed against the given purchase order.
60
    Throws an exception if no more purchases are allowed against the given purchase order.
61
    
61
 
62
    Parameters:
62
    Parameters:
63
     - purchaseOrderId
63
     - purchaseOrderId
64
     - invoiceNumber
64
     - invoiceNumber
65
     - freightCharges
65
     - freightCharges
66
    """
66
    """
Line 68... Line 68...
68
 
68
 
69
  def closePurchase(self, purchaseId):
69
  def closePurchase(self, purchaseId):
70
    """
70
    """
71
    Marks a purchase as complete and updates the receivedOn time.
71
    Marks a purchase as complete and updates the receivedOn time.
72
    Throws an exception if no such purchase exists.
72
    Throws an exception if no such purchase exists.
73
    
73
 
74
    Parameters:
74
    Parameters:
75
     - purchaseId
75
     - purchaseId
76
    """
76
    """
77
    pass
77
    pass
78
 
78
 
79
  def getAllPurchases(self, purchaseOrderId, open):
79
  def getAllPurchases(self, purchaseOrderId, open):
80
    """
80
    """
81
    Returns all open or closed purchases for the given purchase order. Throws an exception if no such purchase order exists
81
    Returns all open or closed purchases for the given purchase order. Throws an exception if no such purchase order exists
82
    
82
 
83
    Parameters:
83
    Parameters:
84
     - purchaseOrderId
84
     - purchaseOrderId
85
     - open
85
     - open
86
    """
86
    """
87
    pass
87
    pass
88
 
88
 
89
  def scanIn(self, purchaseId, itemNumber, imeiNumber, type):
89
  def scanIn(self, purchaseId, itemNumber, imeiNumber, type):
90
    """
90
    """
91
    Creates a Scan object using the given details.
91
    Creates a Scan object using the given details.
92
    Raises an exception if no more of the given item can be scanned in against the purchase order of the given purchase.
92
    Raises an exception if no more of the given item can be scanned in against the purchase order of the given purchase.
93
    
93
 
94
    Parameters:
94
    Parameters:
95
     - purchaseId
95
     - purchaseId
96
     - itemNumber
96
     - itemNumber
97
     - imeiNumber
97
     - imeiNumber
98
     - type
98
     - type
Line 104... Line 104...
104
    Marks the Scan object with the given details as scanned out. In case, the imeiNumber is not given,
104
    Marks the Scan object with the given details as scanned out. In case, the imeiNumber is not given,
105
    marks the oldest ItemInventory object as being scanned out.
105
    marks the oldest ItemInventory object as being scanned out.
106
    Raises an exception if:
106
    Raises an exception if:
107
    1. There is no stock present corresponding to the given item details.
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.
108
    2. An older stock is present corresponding to the itemNumber which has not been scanned out.
109
    
109
 
110
    Parameters:
110
    Parameters:
111
     - itemNumber
111
     - itemNumber
112
     - imeiNumber
112
     - imeiNumber
113
     - type
113
     - type
114
    """
114
    """
Line 121... Line 121...
121
 
121
 
122
  def createPurchaseOrder(self, purchaseOrder):
122
  def createPurchaseOrder(self, purchaseOrder):
123
    """
123
    """
124
    Creates a purchase order based on the data in the given purchase order object.
124
    Creates a purchase order based on the data in the given purchase order object.
125
    This method populates a nummber of missing fields
125
    This method populates a nummber of missing fields
126
    
126
 
127
    Parameters:
127
    Parameters:
128
     - purchaseOrder
128
     - purchaseOrder
129
    """
129
    """
130
    self.send_createPurchaseOrder(purchaseOrder)
130
    self.send_createPurchaseOrder(purchaseOrder)
131
    return self.recv_createPurchaseOrder()
131
    return self.recv_createPurchaseOrder()
Line 146... Line 146...
146
      self._iprot.readMessageEnd()
146
      self._iprot.readMessageEnd()
147
      raise x
147
      raise x
148
    result = createPurchaseOrder_result()
148
    result = createPurchaseOrder_result()
149
    result.read(self._iprot)
149
    result.read(self._iprot)
150
    self._iprot.readMessageEnd()
150
    self._iprot.readMessageEnd()
151
    if result.success != None:
151
    if result.success is not None:
152
      return result.success
152
      return result.success
153
    if result.wex != None:
153
    if result.wex is not None:
154
      raise result.wex
154
      raise result.wex
155
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createPurchaseOrder failed: unknown result");
155
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createPurchaseOrder failed: unknown result");
156
 
156
 
157
  def getPurchaseOrder(self, id):
157
  def getPurchaseOrder(self, id):
158
    """
158
    """
159
    Returns the purchase order with the given id. Throws an exception if there is no such purchase order.
159
    Returns the purchase order with the given id. Throws an exception if there is no such purchase order.
160
    
160
 
161
    Parameters:
161
    Parameters:
162
     - id
162
     - id
163
    """
163
    """
164
    self.send_getPurchaseOrder(id)
164
    self.send_getPurchaseOrder(id)
165
    return self.recv_getPurchaseOrder()
165
    return self.recv_getPurchaseOrder()
Line 180... Line 180...
180
      self._iprot.readMessageEnd()
180
      self._iprot.readMessageEnd()
181
      raise x
181
      raise x
182
    result = getPurchaseOrder_result()
182
    result = getPurchaseOrder_result()
183
    result.read(self._iprot)
183
    result.read(self._iprot)
184
    self._iprot.readMessageEnd()
184
    self._iprot.readMessageEnd()
185
    if result.success != None:
185
    if result.success is not None:
186
      return result.success
186
      return result.success
187
    if result.wex != None:
187
    if result.wex is not None:
188
      raise result.wex
188
      raise result.wex
189
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseOrder failed: unknown result");
189
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseOrder failed: unknown result");
190
 
190
 
191
  def getAllPurchaseOrders(self, status):
191
  def getAllPurchaseOrders(self, status):
192
    """
192
    """
193
    Returns a list of all the purchase orders in the given state
193
    Returns a list of all the purchase orders in the given state
194
    
194
 
195
    Parameters:
195
    Parameters:
196
     - status
196
     - status
197
    """
197
    """
198
    self.send_getAllPurchaseOrders(status)
198
    self.send_getAllPurchaseOrders(status)
199
    return self.recv_getAllPurchaseOrders()
199
    return self.recv_getAllPurchaseOrders()
Line 214... Line 214...
214
      self._iprot.readMessageEnd()
214
      self._iprot.readMessageEnd()
215
      raise x
215
      raise x
216
    result = getAllPurchaseOrders_result()
216
    result = getAllPurchaseOrders_result()
217
    result.read(self._iprot)
217
    result.read(self._iprot)
218
    self._iprot.readMessageEnd()
218
    self._iprot.readMessageEnd()
219
    if result.success != None:
219
    if result.success is not None:
220
      return result.success
220
      return result.success
221
    if result.wex != None:
221
    if result.wex is not None:
222
      raise result.wex
222
      raise result.wex
223
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPurchaseOrders failed: unknown result");
223
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPurchaseOrders failed: unknown result");
224
 
224
 
225
  def getSupplier(self, id):
225
  def getSupplier(self, id):
226
    """
226
    """
227
    Returns the supplier with the given order id. Throws an exception if there is no such supplier.
227
    Returns the supplier with the given order id. Throws an exception if there is no such supplier.
228
    
228
 
229
    Parameters:
229
    Parameters:
230
     - id
230
     - id
231
    """
231
    """
232
    self.send_getSupplier(id)
232
    self.send_getSupplier(id)
233
    return self.recv_getSupplier()
233
    return self.recv_getSupplier()
Line 248... Line 248...
248
      self._iprot.readMessageEnd()
248
      self._iprot.readMessageEnd()
249
      raise x
249
      raise x
250
    result = getSupplier_result()
250
    result = getSupplier_result()
251
    result.read(self._iprot)
251
    result.read(self._iprot)
252
    self._iprot.readMessageEnd()
252
    self._iprot.readMessageEnd()
253
    if result.success != None:
253
    if result.success is not None:
254
      return result.success
254
      return result.success
255
    if result.wex != None:
255
    if result.wex is not None:
256
      raise result.wex
256
      raise result.wex
257
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSupplier failed: unknown result");
257
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSupplier failed: unknown result");
258
 
258
 
259
  def startPurchase(self, purchaseOrderId, invoiceNumber, freightCharges):
259
  def startPurchase(self, purchaseOrderId, invoiceNumber, freightCharges):
260
    """
260
    """
261
    Creates a purchase for the given purchase order.
261
    Creates a purchase for the given purchase order.
262
    Throws an exception if no more purchases are allowed against the given purchase order.
262
    Throws an exception if no more purchases are allowed against the given purchase order.
263
    
263
 
264
    Parameters:
264
    Parameters:
265
     - purchaseOrderId
265
     - purchaseOrderId
266
     - invoiceNumber
266
     - invoiceNumber
267
     - freightCharges
267
     - freightCharges
268
    """
268
    """
Line 287... Line 287...
287
      self._iprot.readMessageEnd()
287
      self._iprot.readMessageEnd()
288
      raise x
288
      raise x
289
    result = startPurchase_result()
289
    result = startPurchase_result()
290
    result.read(self._iprot)
290
    result.read(self._iprot)
291
    self._iprot.readMessageEnd()
291
    self._iprot.readMessageEnd()
292
    if result.success != None:
292
    if result.success is not None:
293
      return result.success
293
      return result.success
294
    if result.wex != None:
294
    if result.wex is not None:
295
      raise result.wex
295
      raise result.wex
296
    raise TApplicationException(TApplicationException.MISSING_RESULT, "startPurchase failed: unknown result");
296
    raise TApplicationException(TApplicationException.MISSING_RESULT, "startPurchase failed: unknown result");
297
 
297
 
298
  def closePurchase(self, purchaseId):
298
  def closePurchase(self, purchaseId):
299
    """
299
    """
300
    Marks a purchase as complete and updates the receivedOn time.
300
    Marks a purchase as complete and updates the receivedOn time.
301
    Throws an exception if no such purchase exists.
301
    Throws an exception if no such purchase exists.
302
    
302
 
303
    Parameters:
303
    Parameters:
304
     - purchaseId
304
     - purchaseId
305
    """
305
    """
306
    self.send_closePurchase(purchaseId)
306
    self.send_closePurchase(purchaseId)
307
    return self.recv_closePurchase()
307
    return self.recv_closePurchase()
Line 322... Line 322...
322
      self._iprot.readMessageEnd()
322
      self._iprot.readMessageEnd()
323
      raise x
323
      raise x
324
    result = closePurchase_result()
324
    result = closePurchase_result()
325
    result.read(self._iprot)
325
    result.read(self._iprot)
326
    self._iprot.readMessageEnd()
326
    self._iprot.readMessageEnd()
327
    if result.success != None:
327
    if result.success is not None:
328
      return result.success
328
      return result.success
329
    if result.wex != None:
329
    if result.wex is not None:
330
      raise result.wex
330
      raise result.wex
331
    raise TApplicationException(TApplicationException.MISSING_RESULT, "closePurchase failed: unknown result");
331
    raise TApplicationException(TApplicationException.MISSING_RESULT, "closePurchase failed: unknown result");
332
 
332
 
333
  def getAllPurchases(self, purchaseOrderId, open):
333
  def getAllPurchases(self, purchaseOrderId, open):
334
    """
334
    """
335
    Returns all open or closed purchases for the given purchase order. Throws an exception if no such purchase order exists
335
    Returns all open or closed purchases for the given purchase order. Throws an exception if no such purchase order exists
336
    
336
 
337
    Parameters:
337
    Parameters:
338
     - purchaseOrderId
338
     - purchaseOrderId
339
     - open
339
     - open
340
    """
340
    """
341
    self.send_getAllPurchases(purchaseOrderId, open)
341
    self.send_getAllPurchases(purchaseOrderId, open)
Line 358... Line 358...
358
      self._iprot.readMessageEnd()
358
      self._iprot.readMessageEnd()
359
      raise x
359
      raise x
360
    result = getAllPurchases_result()
360
    result = getAllPurchases_result()
361
    result.read(self._iprot)
361
    result.read(self._iprot)
362
    self._iprot.readMessageEnd()
362
    self._iprot.readMessageEnd()
363
    if result.success != None:
363
    if result.success is not None:
364
      return result.success
364
      return result.success
365
    if result.wex != None:
365
    if result.wex is not None:
366
      raise result.wex
366
      raise result.wex
367
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPurchases failed: unknown result");
367
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPurchases failed: unknown result");
368
 
368
 
369
  def scanIn(self, purchaseId, itemNumber, imeiNumber, type):
369
  def scanIn(self, purchaseId, itemNumber, imeiNumber, type):
370
    """
370
    """
371
    Creates a Scan object using the given details.
371
    Creates a Scan object using the given details.
372
    Raises an exception if no more of the given item can be scanned in against the purchase order of the given purchase.
372
    Raises an exception if no more of the given item can be scanned in against the purchase order of the given purchase.
373
    
373
 
374
    Parameters:
374
    Parameters:
375
     - purchaseId
375
     - purchaseId
376
     - itemNumber
376
     - itemNumber
377
     - imeiNumber
377
     - imeiNumber
378
     - type
378
     - type
Line 399... Line 399...
399
      self._iprot.readMessageEnd()
399
      self._iprot.readMessageEnd()
400
      raise x
400
      raise x
401
    result = scanIn_result()
401
    result = scanIn_result()
402
    result.read(self._iprot)
402
    result.read(self._iprot)
403
    self._iprot.readMessageEnd()
403
    self._iprot.readMessageEnd()
404
    if result.wex != None:
404
    if result.wex is not None:
405
      raise result.wex
405
      raise result.wex
406
    return
406
    return
407
 
407
 
408
  def scanOut(self, itemNumber, imeiNumber, type):
408
  def scanOut(self, itemNumber, imeiNumber, type):
409
    """
409
    """
410
    Marks the Scan object with the given details as scanned out. In case, the imeiNumber is not given,
410
    Marks the Scan object with the given details as scanned out. In case, the imeiNumber is not given,
411
    marks the oldest ItemInventory object as being scanned out.
411
    marks the oldest ItemInventory object as being scanned out.
412
    Raises an exception if:
412
    Raises an exception if:
413
    1. There is no stock present corresponding to the given item details.
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.
414
    2. An older stock is present corresponding to the itemNumber which has not been scanned out.
415
    
415
 
416
    Parameters:
416
    Parameters:
417
     - itemNumber
417
     - itemNumber
418
     - imeiNumber
418
     - imeiNumber
419
     - type
419
     - type
420
    """
420
    """
Line 439... Line 439...
439
      self._iprot.readMessageEnd()
439
      self._iprot.readMessageEnd()
440
      raise x
440
      raise x
441
    result = scanOut_result()
441
    result = scanOut_result()
442
    result.read(self._iprot)
442
    result.read(self._iprot)
443
    self._iprot.readMessageEnd()
443
    self._iprot.readMessageEnd()
444
    if result.wex != None:
444
    if result.wex is not None:
445
      raise result.wex
445
      raise result.wex
446
    return
446
    return
447
 
447
 
448
 
448
 
449
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
449
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
Line 640... Line 640...
640
  def write(self, oprot):
640
  def write(self, oprot):
641
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
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)))
642
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
643
      return
643
      return
644
    oprot.writeStructBegin('createPurchaseOrder_args')
644
    oprot.writeStructBegin('createPurchaseOrder_args')
645
    if self.purchaseOrder != None:
645
    if self.purchaseOrder is not None:
646
      oprot.writeFieldBegin('purchaseOrder', TType.STRUCT, 1)
646
      oprot.writeFieldBegin('purchaseOrder', TType.STRUCT, 1)
647
      self.purchaseOrder.write(oprot)
647
      self.purchaseOrder.write(oprot)
648
      oprot.writeFieldEnd()
648
      oprot.writeFieldEnd()
649
    oprot.writeFieldStop()
649
    oprot.writeFieldStop()
650
    oprot.writeStructEnd()
650
    oprot.writeStructEnd()
651
 
651
 
-
 
652
  def validate(self):
-
 
653
    return
-
 
654
 
-
 
655
 
652
  def __repr__(self):
656
  def __repr__(self):
653
    L = ['%s=%r' % (key, value)
657
    L = ['%s=%r' % (key, value)
654
      for key, value in self.__dict__.iteritems()]
658
      for key, value in self.__dict__.iteritems()]
655
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
656
 
660
 
Line 704... Line 708...
704
  def write(self, oprot):
708
  def write(self, oprot):
705
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
709
    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)))
710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
707
      return
711
      return
708
    oprot.writeStructBegin('createPurchaseOrder_result')
712
    oprot.writeStructBegin('createPurchaseOrder_result')
709
    if self.success != None:
713
    if self.success is not None:
710
      oprot.writeFieldBegin('success', TType.I64, 0)
714
      oprot.writeFieldBegin('success', TType.I64, 0)
711
      oprot.writeI64(self.success)
715
      oprot.writeI64(self.success)
712
      oprot.writeFieldEnd()
716
      oprot.writeFieldEnd()
713
    if self.wex != None:
717
    if self.wex is not None:
714
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
718
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
715
      self.wex.write(oprot)
719
      self.wex.write(oprot)
716
      oprot.writeFieldEnd()
720
      oprot.writeFieldEnd()
717
    oprot.writeFieldStop()
721
    oprot.writeFieldStop()
718
    oprot.writeStructEnd()
722
    oprot.writeStructEnd()
719
 
723
 
-
 
724
  def validate(self):
-
 
725
    return
-
 
726
 
-
 
727
 
720
  def __repr__(self):
728
  def __repr__(self):
721
    L = ['%s=%r' % (key, value)
729
    L = ['%s=%r' % (key, value)
722
      for key, value in self.__dict__.iteritems()]
730
      for key, value in self.__dict__.iteritems()]
723
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
731
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
724
 
732
 
Line 764... Line 772...
764
  def write(self, oprot):
772
  def write(self, oprot):
765
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
773
    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)))
774
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
767
      return
775
      return
768
    oprot.writeStructBegin('getPurchaseOrder_args')
776
    oprot.writeStructBegin('getPurchaseOrder_args')
769
    if self.id != None:
777
    if self.id is not None:
770
      oprot.writeFieldBegin('id', TType.I64, 1)
778
      oprot.writeFieldBegin('id', TType.I64, 1)
771
      oprot.writeI64(self.id)
779
      oprot.writeI64(self.id)
772
      oprot.writeFieldEnd()
780
      oprot.writeFieldEnd()
773
    oprot.writeFieldStop()
781
    oprot.writeFieldStop()
774
    oprot.writeStructEnd()
782
    oprot.writeStructEnd()
775
 
783
 
-
 
784
  def validate(self):
-
 
785
    return
-
 
786
 
-
 
787
 
776
  def __repr__(self):
788
  def __repr__(self):
777
    L = ['%s=%r' % (key, value)
789
    L = ['%s=%r' % (key, value)
778
      for key, value in self.__dict__.iteritems()]
790
      for key, value in self.__dict__.iteritems()]
779
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
791
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
780
 
792
 
Line 829... Line 841...
829
  def write(self, oprot):
841
  def write(self, oprot):
830
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
842
    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)))
843
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
832
      return
844
      return
833
    oprot.writeStructBegin('getPurchaseOrder_result')
845
    oprot.writeStructBegin('getPurchaseOrder_result')
834
    if self.success != None:
846
    if self.success is not None:
835
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
847
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
836
      self.success.write(oprot)
848
      self.success.write(oprot)
837
      oprot.writeFieldEnd()
849
      oprot.writeFieldEnd()
838
    if self.wex != None:
850
    if self.wex is not None:
839
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
851
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
840
      self.wex.write(oprot)
852
      self.wex.write(oprot)
841
      oprot.writeFieldEnd()
853
      oprot.writeFieldEnd()
842
    oprot.writeFieldStop()
854
    oprot.writeFieldStop()
843
    oprot.writeStructEnd()
855
    oprot.writeStructEnd()
844
 
856
 
-
 
857
  def validate(self):
-
 
858
    return
-
 
859
 
-
 
860
 
845
  def __repr__(self):
861
  def __repr__(self):
846
    L = ['%s=%r' % (key, value)
862
    L = ['%s=%r' % (key, value)
847
      for key, value in self.__dict__.iteritems()]
863
      for key, value in self.__dict__.iteritems()]
848
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
864
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
849
 
865
 
Line 889... Line 905...
889
  def write(self, oprot):
905
  def write(self, oprot):
890
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
906
    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)))
907
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
892
      return
908
      return
893
    oprot.writeStructBegin('getAllPurchaseOrders_args')
909
    oprot.writeStructBegin('getAllPurchaseOrders_args')
894
    if self.status != None:
910
    if self.status is not None:
895
      oprot.writeFieldBegin('status', TType.I32, 1)
911
      oprot.writeFieldBegin('status', TType.I32, 1)
896
      oprot.writeI32(self.status)
912
      oprot.writeI32(self.status)
897
      oprot.writeFieldEnd()
913
      oprot.writeFieldEnd()
898
    oprot.writeFieldStop()
914
    oprot.writeFieldStop()
899
    oprot.writeStructEnd()
915
    oprot.writeStructEnd()
900
 
916
 
-
 
917
  def validate(self):
-
 
918
    return
-
 
919
 
-
 
920
 
901
  def __repr__(self):
921
  def __repr__(self):
902
    L = ['%s=%r' % (key, value)
922
    L = ['%s=%r' % (key, value)
903
      for key, value in self.__dict__.iteritems()]
923
      for key, value in self.__dict__.iteritems()]
904
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
924
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
905
 
925
 
Line 959... Line 979...
959
  def write(self, oprot):
979
  def write(self, oprot):
960
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
980
    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)))
981
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
962
      return
982
      return
963
    oprot.writeStructBegin('getAllPurchaseOrders_result')
983
    oprot.writeStructBegin('getAllPurchaseOrders_result')
964
    if self.success != None:
984
    if self.success is not None:
965
      oprot.writeFieldBegin('success', TType.LIST, 0)
985
      oprot.writeFieldBegin('success', TType.LIST, 0)
966
      oprot.writeListBegin(TType.STRUCT, len(self.success))
986
      oprot.writeListBegin(TType.STRUCT, len(self.success))
967
      for iter13 in self.success:
987
      for iter13 in self.success:
968
        iter13.write(oprot)
988
        iter13.write(oprot)
969
      oprot.writeListEnd()
989
      oprot.writeListEnd()
970
      oprot.writeFieldEnd()
990
      oprot.writeFieldEnd()
971
    if self.wex != None:
991
    if self.wex is not None:
972
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
992
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
973
      self.wex.write(oprot)
993
      self.wex.write(oprot)
974
      oprot.writeFieldEnd()
994
      oprot.writeFieldEnd()
975
    oprot.writeFieldStop()
995
    oprot.writeFieldStop()
976
    oprot.writeStructEnd()
996
    oprot.writeStructEnd()
977
 
997
 
-
 
998
  def validate(self):
-
 
999
    return
-
 
1000
 
-
 
1001
 
978
  def __repr__(self):
1002
  def __repr__(self):
979
    L = ['%s=%r' % (key, value)
1003
    L = ['%s=%r' % (key, value)
980
      for key, value in self.__dict__.iteritems()]
1004
      for key, value in self.__dict__.iteritems()]
981
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1005
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
982
 
1006
 
Line 1022... Line 1046...
1022
  def write(self, oprot):
1046
  def write(self, oprot):
1023
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1047
    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)))
1048
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1025
      return
1049
      return
1026
    oprot.writeStructBegin('getSupplier_args')
1050
    oprot.writeStructBegin('getSupplier_args')
1027
    if self.id != None:
1051
    if self.id is not None:
1028
      oprot.writeFieldBegin('id', TType.I64, 1)
1052
      oprot.writeFieldBegin('id', TType.I64, 1)
1029
      oprot.writeI64(self.id)
1053
      oprot.writeI64(self.id)
1030
      oprot.writeFieldEnd()
1054
      oprot.writeFieldEnd()
1031
    oprot.writeFieldStop()
1055
    oprot.writeFieldStop()
1032
    oprot.writeStructEnd()
1056
    oprot.writeStructEnd()
1033
 
1057
 
-
 
1058
  def validate(self):
-
 
1059
    return
-
 
1060
 
-
 
1061
 
1034
  def __repr__(self):
1062
  def __repr__(self):
1035
    L = ['%s=%r' % (key, value)
1063
    L = ['%s=%r' % (key, value)
1036
      for key, value in self.__dict__.iteritems()]
1064
      for key, value in self.__dict__.iteritems()]
1037
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1065
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1038
 
1066
 
Line 1087... Line 1115...
1087
  def write(self, oprot):
1115
  def write(self, oprot):
1088
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1116
    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)))
1117
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1090
      return
1118
      return
1091
    oprot.writeStructBegin('getSupplier_result')
1119
    oprot.writeStructBegin('getSupplier_result')
1092
    if self.success != None:
1120
    if self.success is not None:
1093
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1121
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1094
      self.success.write(oprot)
1122
      self.success.write(oprot)
1095
      oprot.writeFieldEnd()
1123
      oprot.writeFieldEnd()
1096
    if self.wex != None:
1124
    if self.wex is not None:
1097
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
1125
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
1098
      self.wex.write(oprot)
1126
      self.wex.write(oprot)
1099
      oprot.writeFieldEnd()
1127
      oprot.writeFieldEnd()
1100
    oprot.writeFieldStop()
1128
    oprot.writeFieldStop()
1101
    oprot.writeStructEnd()
1129
    oprot.writeStructEnd()
1102
 
1130
 
-
 
1131
  def validate(self):
-
 
1132
    return
-
 
1133
 
-
 
1134
 
1103
  def __repr__(self):
1135
  def __repr__(self):
1104
    L = ['%s=%r' % (key, value)
1136
    L = ['%s=%r' % (key, value)
1105
      for key, value in self.__dict__.iteritems()]
1137
      for key, value in self.__dict__.iteritems()]
1106
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1138
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1107
 
1139
 
Line 1163... Line 1195...
1163
  def write(self, oprot):
1195
  def write(self, oprot):
1164
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1196
    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)))
1197
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1166
      return
1198
      return
1167
    oprot.writeStructBegin('startPurchase_args')
1199
    oprot.writeStructBegin('startPurchase_args')
1168
    if self.purchaseOrderId != None:
1200
    if self.purchaseOrderId is not None:
1169
      oprot.writeFieldBegin('purchaseOrderId', TType.I64, 1)
1201
      oprot.writeFieldBegin('purchaseOrderId', TType.I64, 1)
1170
      oprot.writeI64(self.purchaseOrderId)
1202
      oprot.writeI64(self.purchaseOrderId)
1171
      oprot.writeFieldEnd()
1203
      oprot.writeFieldEnd()
1172
    if self.invoiceNumber != None:
1204
    if self.invoiceNumber is not None:
1173
      oprot.writeFieldBegin('invoiceNumber', TType.STRING, 2)
1205
      oprot.writeFieldBegin('invoiceNumber', TType.STRING, 2)
1174
      oprot.writeString(self.invoiceNumber)
1206
      oprot.writeString(self.invoiceNumber)
1175
      oprot.writeFieldEnd()
1207
      oprot.writeFieldEnd()
1176
    if self.freightCharges != None:
1208
    if self.freightCharges is not None:
1177
      oprot.writeFieldBegin('freightCharges', TType.DOUBLE, 3)
1209
      oprot.writeFieldBegin('freightCharges', TType.DOUBLE, 3)
1178
      oprot.writeDouble(self.freightCharges)
1210
      oprot.writeDouble(self.freightCharges)
1179
      oprot.writeFieldEnd()
1211
      oprot.writeFieldEnd()
1180
    oprot.writeFieldStop()
1212
    oprot.writeFieldStop()
1181
    oprot.writeStructEnd()
1213
    oprot.writeStructEnd()
1182
 
1214
 
-
 
1215
  def validate(self):
-
 
1216
    return
-
 
1217
 
-
 
1218
 
1183
  def __repr__(self):
1219
  def __repr__(self):
1184
    L = ['%s=%r' % (key, value)
1220
    L = ['%s=%r' % (key, value)
1185
      for key, value in self.__dict__.iteritems()]
1221
      for key, value in self.__dict__.iteritems()]
1186
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1222
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1187
 
1223
 
Line 1235... Line 1271...
1235
  def write(self, oprot):
1271
  def write(self, oprot):
1236
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1272
    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)))
1273
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1238
      return
1274
      return
1239
    oprot.writeStructBegin('startPurchase_result')
1275
    oprot.writeStructBegin('startPurchase_result')
1240
    if self.success != None:
1276
    if self.success is not None:
1241
      oprot.writeFieldBegin('success', TType.I64, 0)
1277
      oprot.writeFieldBegin('success', TType.I64, 0)
1242
      oprot.writeI64(self.success)
1278
      oprot.writeI64(self.success)
1243
      oprot.writeFieldEnd()
1279
      oprot.writeFieldEnd()
1244
    if self.wex != None:
1280
    if self.wex is not None:
1245
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
1281
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
1246
      self.wex.write(oprot)
1282
      self.wex.write(oprot)
1247
      oprot.writeFieldEnd()
1283
      oprot.writeFieldEnd()
1248
    oprot.writeFieldStop()
1284
    oprot.writeFieldStop()
1249
    oprot.writeStructEnd()
1285
    oprot.writeStructEnd()
1250
 
1286
 
-
 
1287
  def validate(self):
-
 
1288
    return
-
 
1289
 
-
 
1290
 
1251
  def __repr__(self):
1291
  def __repr__(self):
1252
    L = ['%s=%r' % (key, value)
1292
    L = ['%s=%r' % (key, value)
1253
      for key, value in self.__dict__.iteritems()]
1293
      for key, value in self.__dict__.iteritems()]
1254
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1294
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1255
 
1295
 
Line 1295... Line 1335...
1295
  def write(self, oprot):
1335
  def write(self, oprot):
1296
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1336
    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)))
1337
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1298
      return
1338
      return
1299
    oprot.writeStructBegin('closePurchase_args')
1339
    oprot.writeStructBegin('closePurchase_args')
1300
    if self.purchaseId != None:
1340
    if self.purchaseId is not None:
1301
      oprot.writeFieldBegin('purchaseId', TType.I64, 1)
1341
      oprot.writeFieldBegin('purchaseId', TType.I64, 1)
1302
      oprot.writeI64(self.purchaseId)
1342
      oprot.writeI64(self.purchaseId)
1303
      oprot.writeFieldEnd()
1343
      oprot.writeFieldEnd()
1304
    oprot.writeFieldStop()
1344
    oprot.writeFieldStop()
1305
    oprot.writeStructEnd()
1345
    oprot.writeStructEnd()
1306
 
1346
 
-
 
1347
  def validate(self):
-
 
1348
    return
-
 
1349
 
-
 
1350
 
1307
  def __repr__(self):
1351
  def __repr__(self):
1308
    L = ['%s=%r' % (key, value)
1352
    L = ['%s=%r' % (key, value)
1309
      for key, value in self.__dict__.iteritems()]
1353
      for key, value in self.__dict__.iteritems()]
1310
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1354
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1311
 
1355
 
Line 1359... Line 1403...
1359
  def write(self, oprot):
1403
  def write(self, oprot):
1360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1404
    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)))
1405
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1362
      return
1406
      return
1363
    oprot.writeStructBegin('closePurchase_result')
1407
    oprot.writeStructBegin('closePurchase_result')
1364
    if self.success != None:
1408
    if self.success is not None:
1365
      oprot.writeFieldBegin('success', TType.I64, 0)
1409
      oprot.writeFieldBegin('success', TType.I64, 0)
1366
      oprot.writeI64(self.success)
1410
      oprot.writeI64(self.success)
1367
      oprot.writeFieldEnd()
1411
      oprot.writeFieldEnd()
1368
    if self.wex != None:
1412
    if self.wex is not None:
1369
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
1413
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
1370
      self.wex.write(oprot)
1414
      self.wex.write(oprot)
1371
      oprot.writeFieldEnd()
1415
      oprot.writeFieldEnd()
1372
    oprot.writeFieldStop()
1416
    oprot.writeFieldStop()
1373
    oprot.writeStructEnd()
1417
    oprot.writeStructEnd()
1374
 
1418
 
-
 
1419
  def validate(self):
-
 
1420
    return
-
 
1421
 
-
 
1422
 
1375
  def __repr__(self):
1423
  def __repr__(self):
1376
    L = ['%s=%r' % (key, value)
1424
    L = ['%s=%r' % (key, value)
1377
      for key, value in self.__dict__.iteritems()]
1425
      for key, value in self.__dict__.iteritems()]
1378
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1426
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1379
 
1427
 
Line 1427... Line 1475...
1427
  def write(self, oprot):
1475
  def write(self, oprot):
1428
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1476
    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)))
1477
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1430
      return
1478
      return
1431
    oprot.writeStructBegin('getAllPurchases_args')
1479
    oprot.writeStructBegin('getAllPurchases_args')
1432
    if self.purchaseOrderId != None:
1480
    if self.purchaseOrderId is not None:
1433
      oprot.writeFieldBegin('purchaseOrderId', TType.I64, 1)
1481
      oprot.writeFieldBegin('purchaseOrderId', TType.I64, 1)
1434
      oprot.writeI64(self.purchaseOrderId)
1482
      oprot.writeI64(self.purchaseOrderId)
1435
      oprot.writeFieldEnd()
1483
      oprot.writeFieldEnd()
1436
    if self.open != None:
1484
    if self.open is not None:
1437
      oprot.writeFieldBegin('open', TType.BOOL, 2)
1485
      oprot.writeFieldBegin('open', TType.BOOL, 2)
1438
      oprot.writeBool(self.open)
1486
      oprot.writeBool(self.open)
1439
      oprot.writeFieldEnd()
1487
      oprot.writeFieldEnd()
1440
    oprot.writeFieldStop()
1488
    oprot.writeFieldStop()
1441
    oprot.writeStructEnd()
1489
    oprot.writeStructEnd()
1442
 
1490
 
-
 
1491
  def validate(self):
-
 
1492
    return
-
 
1493
 
-
 
1494
 
1443
  def __repr__(self):
1495
  def __repr__(self):
1444
    L = ['%s=%r' % (key, value)
1496
    L = ['%s=%r' % (key, value)
1445
      for key, value in self.__dict__.iteritems()]
1497
      for key, value in self.__dict__.iteritems()]
1446
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1498
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1447
 
1499
 
Line 1501... Line 1553...
1501
  def write(self, oprot):
1553
  def write(self, oprot):
1502
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1554
    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)))
1555
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1504
      return
1556
      return
1505
    oprot.writeStructBegin('getAllPurchases_result')
1557
    oprot.writeStructBegin('getAllPurchases_result')
1506
    if self.success != None:
1558
    if self.success is not None:
1507
      oprot.writeFieldBegin('success', TType.LIST, 0)
1559
      oprot.writeFieldBegin('success', TType.LIST, 0)
1508
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1560
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1509
      for iter20 in self.success:
1561
      for iter20 in self.success:
1510
        iter20.write(oprot)
1562
        iter20.write(oprot)
1511
      oprot.writeListEnd()
1563
      oprot.writeListEnd()
1512
      oprot.writeFieldEnd()
1564
      oprot.writeFieldEnd()
1513
    if self.wex != None:
1565
    if self.wex is not None:
1514
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
1566
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
1515
      self.wex.write(oprot)
1567
      self.wex.write(oprot)
1516
      oprot.writeFieldEnd()
1568
      oprot.writeFieldEnd()
1517
    oprot.writeFieldStop()
1569
    oprot.writeFieldStop()
1518
    oprot.writeStructEnd()
1570
    oprot.writeStructEnd()
1519
 
1571
 
-
 
1572
  def validate(self):
-
 
1573
    return
-
 
1574
 
-
 
1575
 
1520
  def __repr__(self):
1576
  def __repr__(self):
1521
    L = ['%s=%r' % (key, value)
1577
    L = ['%s=%r' % (key, value)
1522
      for key, value in self.__dict__.iteritems()]
1578
      for key, value in self.__dict__.iteritems()]
1523
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1579
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1524
 
1580
 
Line 1588... Line 1644...
1588
  def write(self, oprot):
1644
  def write(self, oprot):
1589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1645
    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)))
1646
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1591
      return
1647
      return
1592
    oprot.writeStructBegin('scanIn_args')
1648
    oprot.writeStructBegin('scanIn_args')
1593
    if self.purchaseId != None:
1649
    if self.purchaseId is not None:
1594
      oprot.writeFieldBegin('purchaseId', TType.I64, 1)
1650
      oprot.writeFieldBegin('purchaseId', TType.I64, 1)
1595
      oprot.writeI64(self.purchaseId)
1651
      oprot.writeI64(self.purchaseId)
1596
      oprot.writeFieldEnd()
1652
      oprot.writeFieldEnd()
1597
    if self.itemNumber != None:
1653
    if self.itemNumber is not None:
1598
      oprot.writeFieldBegin('itemNumber', TType.STRING, 2)
1654
      oprot.writeFieldBegin('itemNumber', TType.STRING, 2)
1599
      oprot.writeString(self.itemNumber)
1655
      oprot.writeString(self.itemNumber)
1600
      oprot.writeFieldEnd()
1656
      oprot.writeFieldEnd()
1601
    if self.imeiNumber != None:
1657
    if self.imeiNumber is not None:
1602
      oprot.writeFieldBegin('imeiNumber', TType.STRING, 3)
1658
      oprot.writeFieldBegin('imeiNumber', TType.STRING, 3)
1603
      oprot.writeString(self.imeiNumber)
1659
      oprot.writeString(self.imeiNumber)
1604
      oprot.writeFieldEnd()
1660
      oprot.writeFieldEnd()
1605
    if self.type != None:
1661
    if self.type is not None:
1606
      oprot.writeFieldBegin('type', TType.I32, 4)
1662
      oprot.writeFieldBegin('type', TType.I32, 4)
1607
      oprot.writeI32(self.type)
1663
      oprot.writeI32(self.type)
1608
      oprot.writeFieldEnd()
1664
      oprot.writeFieldEnd()
1609
    oprot.writeFieldStop()
1665
    oprot.writeFieldStop()
1610
    oprot.writeStructEnd()
1666
    oprot.writeStructEnd()
1611
 
1667
 
-
 
1668
  def validate(self):
-
 
1669
    return
-
 
1670
 
-
 
1671
 
1612
  def __repr__(self):
1672
  def __repr__(self):
1613
    L = ['%s=%r' % (key, value)
1673
    L = ['%s=%r' % (key, value)
1614
      for key, value in self.__dict__.iteritems()]
1674
      for key, value in self.__dict__.iteritems()]
1615
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1675
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1616
 
1676
 
Line 1657... Line 1717...
1657
  def write(self, oprot):
1717
  def write(self, oprot):
1658
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1718
    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)))
1719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1660
      return
1720
      return
1661
    oprot.writeStructBegin('scanIn_result')
1721
    oprot.writeStructBegin('scanIn_result')
1662
    if self.wex != None:
1722
    if self.wex is not None:
1663
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
1723
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
1664
      self.wex.write(oprot)
1724
      self.wex.write(oprot)
1665
      oprot.writeFieldEnd()
1725
      oprot.writeFieldEnd()
1666
    oprot.writeFieldStop()
1726
    oprot.writeFieldStop()
1667
    oprot.writeStructEnd()
1727
    oprot.writeStructEnd()
1668
 
1728
 
-
 
1729
  def validate(self):
-
 
1730
    return
-
 
1731
 
-
 
1732
 
1669
  def __repr__(self):
1733
  def __repr__(self):
1670
    L = ['%s=%r' % (key, value)
1734
    L = ['%s=%r' % (key, value)
1671
      for key, value in self.__dict__.iteritems()]
1735
      for key, value in self.__dict__.iteritems()]
1672
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1736
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1673
 
1737
 
Line 1729... Line 1793...
1729
  def write(self, oprot):
1793
  def write(self, oprot):
1730
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1794
    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)))
1795
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1732
      return
1796
      return
1733
    oprot.writeStructBegin('scanOut_args')
1797
    oprot.writeStructBegin('scanOut_args')
1734
    if self.itemNumber != None:
1798
    if self.itemNumber is not None:
1735
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
1799
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
1736
      oprot.writeString(self.itemNumber)
1800
      oprot.writeString(self.itemNumber)
1737
      oprot.writeFieldEnd()
1801
      oprot.writeFieldEnd()
1738
    if self.imeiNumber != None:
1802
    if self.imeiNumber is not None:
1739
      oprot.writeFieldBegin('imeiNumber', TType.STRING, 2)
1803
      oprot.writeFieldBegin('imeiNumber', TType.STRING, 2)
1740
      oprot.writeString(self.imeiNumber)
1804
      oprot.writeString(self.imeiNumber)
1741
      oprot.writeFieldEnd()
1805
      oprot.writeFieldEnd()
1742
    if self.type != None:
1806
    if self.type is not None:
1743
      oprot.writeFieldBegin('type', TType.I32, 3)
1807
      oprot.writeFieldBegin('type', TType.I32, 3)
1744
      oprot.writeI32(self.type)
1808
      oprot.writeI32(self.type)
1745
      oprot.writeFieldEnd()
1809
      oprot.writeFieldEnd()
1746
    oprot.writeFieldStop()
1810
    oprot.writeFieldStop()
1747
    oprot.writeStructEnd()
1811
    oprot.writeStructEnd()
1748
 
1812
 
-
 
1813
  def validate(self):
-
 
1814
    return
-
 
1815
 
-
 
1816
 
1749
  def __repr__(self):
1817
  def __repr__(self):
1750
    L = ['%s=%r' % (key, value)
1818
    L = ['%s=%r' % (key, value)
1751
      for key, value in self.__dict__.iteritems()]
1819
      for key, value in self.__dict__.iteritems()]
1752
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1820
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1753
 
1821
 
Line 1794... Line 1862...
1794
  def write(self, oprot):
1862
  def write(self, oprot):
1795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1863
    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)))
1864
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1797
      return
1865
      return
1798
    oprot.writeStructBegin('scanOut_result')
1866
    oprot.writeStructBegin('scanOut_result')
1799
    if self.wex != None:
1867
    if self.wex is not None:
1800
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
1868
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
1801
      self.wex.write(oprot)
1869
      self.wex.write(oprot)
1802
      oprot.writeFieldEnd()
1870
      oprot.writeFieldEnd()
1803
    oprot.writeFieldStop()
1871
    oprot.writeFieldStop()
1804
    oprot.writeStructEnd()
1872
    oprot.writeStructEnd()
1805
 
1873
 
-
 
1874
  def validate(self):
-
 
1875
    return
-
 
1876
 
-
 
1877
 
1806
  def __repr__(self):
1878
  def __repr__(self):
1807
    L = ['%s=%r' % (key, value)
1879
    L = ['%s=%r' % (key, value)
1808
      for key, value in self.__dict__.iteritems()]
1880
      for key, value in self.__dict__.iteritems()]
1809
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1881
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1810
 
1882
 
1811
  def __eq__(self, other):
1883
  def __eq__(self, other):
1812
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1884
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1813
 
1885
 
1814
  def __ne__(self, other):
1886
  def __ne__(self, other):
1815
    return not (self == other)
1887
    return not (self == other)
1816
 
-
 
1817
 
-