Subversion Repositories SmartDukaan

Rev

Rev 132 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
94 ashish 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 *
8
from ttypes import *
9
from thrift.Thrift import TProcessor
10
from thrift.transport import TTransport
11
from thrift.protocol import TBinaryProtocol
12
try:
13
  from thrift.protocol import fastbinary
14
except:
15
  fastbinary = None
16
 
17
 
18
class Iface:
19
  def createTransaction(self, transaction):
20
    """
21
    Parameters:
22
     - transaction
23
    """
24
    pass
25
 
26
  def getTransaction(self, id):
27
    """
28
    	Get transaction methods.
29
    *
30
 
31
    Parameters:
32
     - id
33
    """
34
    pass
35
 
36
  def getAllTransactions(self, status, from_date, to_date):
37
    """
38
    Parameters:
39
     - status
40
     - from_date
41
     - to_date
42
    """
43
    pass
44
 
45
  def getTransactionsForShipmentStatus(self, status, from_date, to_date):
46
    """
47
    Parameters:
48
     - status
49
     - from_date
50
     - to_date
51
    """
52
    pass
53
 
54
  def getTransactionsForCustomer(self, customerId, from_date, to_date, status):
55
    """
56
    Parameters:
57
     - customerId
58
     - from_date
59
     - to_date
60
     - status
61
    """
62
    pass
63
 
64
  def getTransactionsForCustomerAndShipmentStatus(self, customerId, from_date, to_date, status):
65
    """
66
    Parameters:
67
     - customerId
68
     - from_date
69
     - to_date
70
     - status
71
    """
72
    pass
73
 
74
  def getTransactionStatus(self, transactionId):
75
    """
76
    Parameters:
77
     - transactionId
78
    """
79
    pass
80
 
81
  def changeTransactionStatus(self, transactionId, status, description):
82
    """
83
    Parameters:
84
     - transactionId
85
     - status
86
     - description
87
    """
88
    pass
89
 
90
  def getOrderInfo(self, transactionId):
91
    """
92
    	Get and set individual objects in it
93
    *
94
 
95
    Parameters:
96
     - transactionId
97
    """
98
    pass
99
 
100
  def getShippingInfo(self, transactionId):
101
    """
102
    Parameters:
103
     - transactionId
104
    """
105
    pass
106
 
107
  def getBillingInfo(self, transactionId):
108
    """
109
    Parameters:
110
     - transactionId
111
    """
112
    pass
113
 
114
  def addBilling(self, tranactionId, billing):
115
    """
116
    Parameters:
117
     - tranactionId
118
     - billing
119
    """
120
    pass
121
 
122
  def setShippingTracker(self, transactionId, shippingId, trackingId, airwayBillNo, provider):
123
    """
124
    Parameters:
125
     - transactionId
126
     - shippingId
127
     - trackingId
128
     - airwayBillNo
129
     - provider
130
    """
131
    pass
132
 
133
  def setShippingDate(self, transactionId, shippingId, timestamp):
134
    """
135
    Parameters:
136
     - transactionId
137
     - shippingId
138
     - timestamp
139
    """
140
    pass
141
 
142
  def setDeliveryDate(self, transactionId, shippingid, timestamp):
143
    """
144
    Parameters:
145
     - transactionId
146
     - shippingid
147
     - timestamp
148
    """
149
    pass
150
 
151
  def changeShippingStatus(self, transactionId, shippingId, status, description):
152
    """
153
    Parameters:
154
     - transactionId
155
     - shippingId
156
     - status
157
     - description
158
    """
159
    pass
160
 
161
  def addTrail(self, transactionId, description):
162
    """
163
    Parameters:
164
     - transactionId
165
     - description
166
    """
167
    pass
168
 
169
 
170
class Client(Iface):
171
  def __init__(self, iprot, oprot=None):
172
    self._iprot = self._oprot = iprot
173
    if oprot != None:
174
      self._oprot = oprot
175
    self._seqid = 0
176
 
177
  def createTransaction(self, transaction):
178
    """
179
    Parameters:
180
     - transaction
181
    """
182
    self.send_createTransaction(transaction)
183
    self.recv_createTransaction()
184
 
185
  def send_createTransaction(self, transaction):
186
    self._oprot.writeMessageBegin('createTransaction', TMessageType.CALL, self._seqid)
187
    args = createTransaction_args()
188
    args.transaction = transaction
189
    args.write(self._oprot)
190
    self._oprot.writeMessageEnd()
191
    self._oprot.trans.flush()
192
 
193
  def recv_createTransaction(self, ):
194
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
195
    if mtype == TMessageType.EXCEPTION:
196
      x = TApplicationException()
197
      x.read(self._iprot)
198
      self._iprot.readMessageEnd()
199
      raise x
200
    result = createTransaction_result()
201
    result.read(self._iprot)
202
    self._iprot.readMessageEnd()
203
    if result.ex != None:
204
      raise result.ex
205
    return
206
 
207
  def getTransaction(self, id):
208
    """
209
    	Get transaction methods.
210
    *
211
 
212
    Parameters:
213
     - id
214
    """
215
    self.send_getTransaction(id)
216
    return self.recv_getTransaction()
217
 
218
  def send_getTransaction(self, id):
219
    self._oprot.writeMessageBegin('getTransaction', TMessageType.CALL, self._seqid)
220
    args = getTransaction_args()
221
    args.id = id
222
    args.write(self._oprot)
223
    self._oprot.writeMessageEnd()
224
    self._oprot.trans.flush()
225
 
226
  def recv_getTransaction(self, ):
227
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
228
    if mtype == TMessageType.EXCEPTION:
229
      x = TApplicationException()
230
      x.read(self._iprot)
231
      self._iprot.readMessageEnd()
232
      raise x
233
    result = getTransaction_result()
234
    result.read(self._iprot)
235
    self._iprot.readMessageEnd()
236
    if result.success != None:
237
      return result.success
238
    if result.ex != None:
239
      raise result.ex
240
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransaction failed: unknown result");
241
 
242
  def getAllTransactions(self, status, from_date, to_date):
243
    """
244
    Parameters:
245
     - status
246
     - from_date
247
     - to_date
248
    """
249
    self.send_getAllTransactions(status, from_date, to_date)
250
    return self.recv_getAllTransactions()
251
 
252
  def send_getAllTransactions(self, status, from_date, to_date):
253
    self._oprot.writeMessageBegin('getAllTransactions', TMessageType.CALL, self._seqid)
254
    args = getAllTransactions_args()
255
    args.status = status
256
    args.from_date = from_date
257
    args.to_date = to_date
258
    args.write(self._oprot)
259
    self._oprot.writeMessageEnd()
260
    self._oprot.trans.flush()
261
 
262
  def recv_getAllTransactions(self, ):
263
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
264
    if mtype == TMessageType.EXCEPTION:
265
      x = TApplicationException()
266
      x.read(self._iprot)
267
      self._iprot.readMessageEnd()
268
      raise x
269
    result = getAllTransactions_result()
270
    result.read(self._iprot)
271
    self._iprot.readMessageEnd()
272
    if result.success != None:
273
      return result.success
274
    if result.ex != None:
275
      raise result.ex
276
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTransactions failed: unknown result");
277
 
278
  def getTransactionsForShipmentStatus(self, status, from_date, to_date):
279
    """
280
    Parameters:
281
     - status
282
     - from_date
283
     - to_date
284
    """
285
    self.send_getTransactionsForShipmentStatus(status, from_date, to_date)
286
    return self.recv_getTransactionsForShipmentStatus()
287
 
288
  def send_getTransactionsForShipmentStatus(self, status, from_date, to_date):
289
    self._oprot.writeMessageBegin('getTransactionsForShipmentStatus', TMessageType.CALL, self._seqid)
290
    args = getTransactionsForShipmentStatus_args()
291
    args.status = status
292
    args.from_date = from_date
293
    args.to_date = to_date
294
    args.write(self._oprot)
295
    self._oprot.writeMessageEnd()
296
    self._oprot.trans.flush()
297
 
298
  def recv_getTransactionsForShipmentStatus(self, ):
299
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
300
    if mtype == TMessageType.EXCEPTION:
301
      x = TApplicationException()
302
      x.read(self._iprot)
303
      self._iprot.readMessageEnd()
304
      raise x
305
    result = getTransactionsForShipmentStatus_result()
306
    result.read(self._iprot)
307
    self._iprot.readMessageEnd()
308
    if result.success != None:
309
      return result.success
310
    if result.ex != None:
311
      raise result.ex
312
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForShipmentStatus failed: unknown result");
313
 
314
  def getTransactionsForCustomer(self, customerId, from_date, to_date, status):
315
    """
316
    Parameters:
317
     - customerId
318
     - from_date
319
     - to_date
320
     - status
321
    """
322
    self.send_getTransactionsForCustomer(customerId, from_date, to_date, status)
323
    return self.recv_getTransactionsForCustomer()
324
 
325
  def send_getTransactionsForCustomer(self, customerId, from_date, to_date, status):
326
    self._oprot.writeMessageBegin('getTransactionsForCustomer', TMessageType.CALL, self._seqid)
327
    args = getTransactionsForCustomer_args()
328
    args.customerId = customerId
329
    args.from_date = from_date
330
    args.to_date = to_date
331
    args.status = status
332
    args.write(self._oprot)
333
    self._oprot.writeMessageEnd()
334
    self._oprot.trans.flush()
335
 
336
  def recv_getTransactionsForCustomer(self, ):
337
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
338
    if mtype == TMessageType.EXCEPTION:
339
      x = TApplicationException()
340
      x.read(self._iprot)
341
      self._iprot.readMessageEnd()
342
      raise x
343
    result = getTransactionsForCustomer_result()
344
    result.read(self._iprot)
345
    self._iprot.readMessageEnd()
346
    if result.success != None:
347
      return result.success
348
    if result.ex != None:
349
      raise result.ex
350
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForCustomer failed: unknown result");
351
 
352
  def getTransactionsForCustomerAndShipmentStatus(self, customerId, from_date, to_date, status):
353
    """
354
    Parameters:
355
     - customerId
356
     - from_date
357
     - to_date
358
     - status
359
    """
360
    self.send_getTransactionsForCustomerAndShipmentStatus(customerId, from_date, to_date, status)
361
    return self.recv_getTransactionsForCustomerAndShipmentStatus()
362
 
363
  def send_getTransactionsForCustomerAndShipmentStatus(self, customerId, from_date, to_date, status):
364
    self._oprot.writeMessageBegin('getTransactionsForCustomerAndShipmentStatus', TMessageType.CALL, self._seqid)
365
    args = getTransactionsForCustomerAndShipmentStatus_args()
366
    args.customerId = customerId
367
    args.from_date = from_date
368
    args.to_date = to_date
369
    args.status = status
370
    args.write(self._oprot)
371
    self._oprot.writeMessageEnd()
372
    self._oprot.trans.flush()
373
 
374
  def recv_getTransactionsForCustomerAndShipmentStatus(self, ):
375
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
376
    if mtype == TMessageType.EXCEPTION:
377
      x = TApplicationException()
378
      x.read(self._iprot)
379
      self._iprot.readMessageEnd()
380
      raise x
381
    result = getTransactionsForCustomerAndShipmentStatus_result()
382
    result.read(self._iprot)
383
    self._iprot.readMessageEnd()
384
    if result.success != None:
385
      return result.success
386
    if result.ex != None:
387
      raise result.ex
388
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForCustomerAndShipmentStatus failed: unknown result");
389
 
390
  def getTransactionStatus(self, transactionId):
391
    """
392
    Parameters:
393
     - transactionId
394
    """
395
    self.send_getTransactionStatus(transactionId)
396
    return self.recv_getTransactionStatus()
397
 
398
  def send_getTransactionStatus(self, transactionId):
399
    self._oprot.writeMessageBegin('getTransactionStatus', TMessageType.CALL, self._seqid)
400
    args = getTransactionStatus_args()
401
    args.transactionId = transactionId
402
    args.write(self._oprot)
403
    self._oprot.writeMessageEnd()
404
    self._oprot.trans.flush()
405
 
406
  def recv_getTransactionStatus(self, ):
407
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
408
    if mtype == TMessageType.EXCEPTION:
409
      x = TApplicationException()
410
      x.read(self._iprot)
411
      self._iprot.readMessageEnd()
412
      raise x
413
    result = getTransactionStatus_result()
414
    result.read(self._iprot)
415
    self._iprot.readMessageEnd()
416
    if result.success != None:
417
      return result.success
418
    if result.ex != None:
419
      raise result.ex
420
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionStatus failed: unknown result");
421
 
422
  def changeTransactionStatus(self, transactionId, status, description):
423
    """
424
    Parameters:
425
     - transactionId
426
     - status
427
     - description
428
    """
429
    self.send_changeTransactionStatus(transactionId, status, description)
430
    return self.recv_changeTransactionStatus()
431
 
432
  def send_changeTransactionStatus(self, transactionId, status, description):
433
    self._oprot.writeMessageBegin('changeTransactionStatus', TMessageType.CALL, self._seqid)
434
    args = changeTransactionStatus_args()
435
    args.transactionId = transactionId
436
    args.status = status
437
    args.description = description
438
    args.write(self._oprot)
439
    self._oprot.writeMessageEnd()
440
    self._oprot.trans.flush()
441
 
442
  def recv_changeTransactionStatus(self, ):
443
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
444
    if mtype == TMessageType.EXCEPTION:
445
      x = TApplicationException()
446
      x.read(self._iprot)
447
      self._iprot.readMessageEnd()
448
      raise x
449
    result = changeTransactionStatus_result()
450
    result.read(self._iprot)
451
    self._iprot.readMessageEnd()
452
    if result.success != None:
453
      return result.success
454
    if result.ex != None:
455
      raise result.ex
456
    raise TApplicationException(TApplicationException.MISSING_RESULT, "changeTransactionStatus failed: unknown result");
457
 
458
  def getOrderInfo(self, transactionId):
459
    """
460
    	Get and set individual objects in it
461
    *
462
 
463
    Parameters:
464
     - transactionId
465
    """
466
    self.send_getOrderInfo(transactionId)
467
    return self.recv_getOrderInfo()
468
 
469
  def send_getOrderInfo(self, transactionId):
470
    self._oprot.writeMessageBegin('getOrderInfo', TMessageType.CALL, self._seqid)
471
    args = getOrderInfo_args()
472
    args.transactionId = transactionId
473
    args.write(self._oprot)
474
    self._oprot.writeMessageEnd()
475
    self._oprot.trans.flush()
476
 
477
  def recv_getOrderInfo(self, ):
478
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
479
    if mtype == TMessageType.EXCEPTION:
480
      x = TApplicationException()
481
      x.read(self._iprot)
482
      self._iprot.readMessageEnd()
483
      raise x
484
    result = getOrderInfo_result()
485
    result.read(self._iprot)
486
    self._iprot.readMessageEnd()
487
    if result.success != None:
488
      return result.success
489
    if result.ex != None:
490
      raise result.ex
491
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderInfo failed: unknown result");
492
 
493
  def getShippingInfo(self, transactionId):
494
    """
495
    Parameters:
496
     - transactionId
497
    """
498
    self.send_getShippingInfo(transactionId)
499
    return self.recv_getShippingInfo()
500
 
501
  def send_getShippingInfo(self, transactionId):
502
    self._oprot.writeMessageBegin('getShippingInfo', TMessageType.CALL, self._seqid)
503
    args = getShippingInfo_args()
504
    args.transactionId = transactionId
505
    args.write(self._oprot)
506
    self._oprot.writeMessageEnd()
507
    self._oprot.trans.flush()
508
 
509
  def recv_getShippingInfo(self, ):
510
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
511
    if mtype == TMessageType.EXCEPTION:
512
      x = TApplicationException()
513
      x.read(self._iprot)
514
      self._iprot.readMessageEnd()
515
      raise x
516
    result = getShippingInfo_result()
517
    result.read(self._iprot)
518
    self._iprot.readMessageEnd()
519
    if result.success != None:
520
      return result.success
521
    if result.ex != None:
522
      raise result.ex
523
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getShippingInfo failed: unknown result");
524
 
525
  def getBillingInfo(self, transactionId):
526
    """
527
    Parameters:
528
     - transactionId
529
    """
530
    self.send_getBillingInfo(transactionId)
531
    return self.recv_getBillingInfo()
532
 
533
  def send_getBillingInfo(self, transactionId):
534
    self._oprot.writeMessageBegin('getBillingInfo', TMessageType.CALL, self._seqid)
535
    args = getBillingInfo_args()
536
    args.transactionId = transactionId
537
    args.write(self._oprot)
538
    self._oprot.writeMessageEnd()
539
    self._oprot.trans.flush()
540
 
541
  def recv_getBillingInfo(self, ):
542
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
543
    if mtype == TMessageType.EXCEPTION:
544
      x = TApplicationException()
545
      x.read(self._iprot)
546
      self._iprot.readMessageEnd()
547
      raise x
548
    result = getBillingInfo_result()
549
    result.read(self._iprot)
550
    self._iprot.readMessageEnd()
551
    if result.success != None:
552
      return result.success
553
    if result.ex != None:
554
      raise result.ex
555
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBillingInfo failed: unknown result");
556
 
557
  def addBilling(self, tranactionId, billing):
558
    """
559
    Parameters:
560
     - tranactionId
561
     - billing
562
    """
563
    self.send_addBilling(tranactionId, billing)
564
    return self.recv_addBilling()
565
 
566
  def send_addBilling(self, tranactionId, billing):
567
    self._oprot.writeMessageBegin('addBilling', TMessageType.CALL, self._seqid)
568
    args = addBilling_args()
569
    args.tranactionId = tranactionId
570
    args.billing = billing
571
    args.write(self._oprot)
572
    self._oprot.writeMessageEnd()
573
    self._oprot.trans.flush()
574
 
575
  def recv_addBilling(self, ):
576
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
577
    if mtype == TMessageType.EXCEPTION:
578
      x = TApplicationException()
579
      x.read(self._iprot)
580
      self._iprot.readMessageEnd()
581
      raise x
582
    result = addBilling_result()
583
    result.read(self._iprot)
584
    self._iprot.readMessageEnd()
585
    if result.success != None:
586
      return result.success
587
    if result.ex != None:
588
      raise result.ex
589
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBilling failed: unknown result");
590
 
591
  def setShippingTracker(self, transactionId, shippingId, trackingId, airwayBillNo, provider):
592
    """
593
    Parameters:
594
     - transactionId
595
     - shippingId
596
     - trackingId
597
     - airwayBillNo
598
     - provider
599
    """
600
    self.send_setShippingTracker(transactionId, shippingId, trackingId, airwayBillNo, provider)
601
    return self.recv_setShippingTracker()
602
 
603
  def send_setShippingTracker(self, transactionId, shippingId, trackingId, airwayBillNo, provider):
604
    self._oprot.writeMessageBegin('setShippingTracker', TMessageType.CALL, self._seqid)
605
    args = setShippingTracker_args()
606
    args.transactionId = transactionId
607
    args.shippingId = shippingId
608
    args.trackingId = trackingId
609
    args.airwayBillNo = airwayBillNo
610
    args.provider = provider
611
    args.write(self._oprot)
612
    self._oprot.writeMessageEnd()
613
    self._oprot.trans.flush()
614
 
615
  def recv_setShippingTracker(self, ):
616
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
617
    if mtype == TMessageType.EXCEPTION:
618
      x = TApplicationException()
619
      x.read(self._iprot)
620
      self._iprot.readMessageEnd()
621
      raise x
622
    result = setShippingTracker_result()
623
    result.read(self._iprot)
624
    self._iprot.readMessageEnd()
625
    if result.success != None:
626
      return result.success
627
    if result.ex != None:
628
      raise result.ex
629
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setShippingTracker failed: unknown result");
630
 
631
  def setShippingDate(self, transactionId, shippingId, timestamp):
632
    """
633
    Parameters:
634
     - transactionId
635
     - shippingId
636
     - timestamp
637
    """
638
    self.send_setShippingDate(transactionId, shippingId, timestamp)
639
    return self.recv_setShippingDate()
640
 
641
  def send_setShippingDate(self, transactionId, shippingId, timestamp):
642
    self._oprot.writeMessageBegin('setShippingDate', TMessageType.CALL, self._seqid)
643
    args = setShippingDate_args()
644
    args.transactionId = transactionId
645
    args.shippingId = shippingId
646
    args.timestamp = timestamp
647
    args.write(self._oprot)
648
    self._oprot.writeMessageEnd()
649
    self._oprot.trans.flush()
650
 
651
  def recv_setShippingDate(self, ):
652
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
653
    if mtype == TMessageType.EXCEPTION:
654
      x = TApplicationException()
655
      x.read(self._iprot)
656
      self._iprot.readMessageEnd()
657
      raise x
658
    result = setShippingDate_result()
659
    result.read(self._iprot)
660
    self._iprot.readMessageEnd()
661
    if result.success != None:
662
      return result.success
663
    if result.ex != None:
664
      raise result.ex
665
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setShippingDate failed: unknown result");
666
 
667
  def setDeliveryDate(self, transactionId, shippingid, timestamp):
668
    """
669
    Parameters:
670
     - transactionId
671
     - shippingid
672
     - timestamp
673
    """
674
    self.send_setDeliveryDate(transactionId, shippingid, timestamp)
675
    return self.recv_setDeliveryDate()
676
 
677
  def send_setDeliveryDate(self, transactionId, shippingid, timestamp):
678
    self._oprot.writeMessageBegin('setDeliveryDate', TMessageType.CALL, self._seqid)
679
    args = setDeliveryDate_args()
680
    args.transactionId = transactionId
681
    args.shippingid = shippingid
682
    args.timestamp = timestamp
683
    args.write(self._oprot)
684
    self._oprot.writeMessageEnd()
685
    self._oprot.trans.flush()
686
 
687
  def recv_setDeliveryDate(self, ):
688
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
689
    if mtype == TMessageType.EXCEPTION:
690
      x = TApplicationException()
691
      x.read(self._iprot)
692
      self._iprot.readMessageEnd()
693
      raise x
694
    result = setDeliveryDate_result()
695
    result.read(self._iprot)
696
    self._iprot.readMessageEnd()
697
    if result.success != None:
698
      return result.success
699
    if result.ex != None:
700
      raise result.ex
701
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDeliveryDate failed: unknown result");
702
 
703
  def changeShippingStatus(self, transactionId, shippingId, status, description):
704
    """
705
    Parameters:
706
     - transactionId
707
     - shippingId
708
     - status
709
     - description
710
    """
711
    self.send_changeShippingStatus(transactionId, shippingId, status, description)
712
    return self.recv_changeShippingStatus()
713
 
714
  def send_changeShippingStatus(self, transactionId, shippingId, status, description):
715
    self._oprot.writeMessageBegin('changeShippingStatus', TMessageType.CALL, self._seqid)
716
    args = changeShippingStatus_args()
717
    args.transactionId = transactionId
718
    args.shippingId = shippingId
719
    args.status = status
720
    args.description = description
721
    args.write(self._oprot)
722
    self._oprot.writeMessageEnd()
723
    self._oprot.trans.flush()
724
 
725
  def recv_changeShippingStatus(self, ):
726
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
727
    if mtype == TMessageType.EXCEPTION:
728
      x = TApplicationException()
729
      x.read(self._iprot)
730
      self._iprot.readMessageEnd()
731
      raise x
732
    result = changeShippingStatus_result()
733
    result.read(self._iprot)
734
    self._iprot.readMessageEnd()
735
    if result.success != None:
736
      return result.success
737
    if result.ex != None:
738
      raise result.ex
739
    raise TApplicationException(TApplicationException.MISSING_RESULT, "changeShippingStatus failed: unknown result");
740
 
741
  def addTrail(self, transactionId, description):
742
    """
743
    Parameters:
744
     - transactionId
745
     - description
746
    """
747
    self.send_addTrail(transactionId, description)
748
    return self.recv_addTrail()
749
 
750
  def send_addTrail(self, transactionId, description):
751
    self._oprot.writeMessageBegin('addTrail', TMessageType.CALL, self._seqid)
752
    args = addTrail_args()
753
    args.transactionId = transactionId
754
    args.description = description
755
    args.write(self._oprot)
756
    self._oprot.writeMessageEnd()
757
    self._oprot.trans.flush()
758
 
759
  def recv_addTrail(self, ):
760
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
761
    if mtype == TMessageType.EXCEPTION:
762
      x = TApplicationException()
763
      x.read(self._iprot)
764
      self._iprot.readMessageEnd()
765
      raise x
766
    result = addTrail_result()
767
    result.read(self._iprot)
768
    self._iprot.readMessageEnd()
769
    if result.success != None:
770
      return result.success
771
    if result.ex != None:
772
      raise result.ex
773
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrail failed: unknown result");
774
 
775
 
776
class Processor(Iface, TProcessor):
777
  def __init__(self, handler):
778
    self._handler = handler
779
    self._processMap = {}
780
    self._processMap["createTransaction"] = Processor.process_createTransaction
781
    self._processMap["getTransaction"] = Processor.process_getTransaction
782
    self._processMap["getAllTransactions"] = Processor.process_getAllTransactions
783
    self._processMap["getTransactionsForShipmentStatus"] = Processor.process_getTransactionsForShipmentStatus
784
    self._processMap["getTransactionsForCustomer"] = Processor.process_getTransactionsForCustomer
785
    self._processMap["getTransactionsForCustomerAndShipmentStatus"] = Processor.process_getTransactionsForCustomerAndShipmentStatus
786
    self._processMap["getTransactionStatus"] = Processor.process_getTransactionStatus
787
    self._processMap["changeTransactionStatus"] = Processor.process_changeTransactionStatus
788
    self._processMap["getOrderInfo"] = Processor.process_getOrderInfo
789
    self._processMap["getShippingInfo"] = Processor.process_getShippingInfo
790
    self._processMap["getBillingInfo"] = Processor.process_getBillingInfo
791
    self._processMap["addBilling"] = Processor.process_addBilling
792
    self._processMap["setShippingTracker"] = Processor.process_setShippingTracker
793
    self._processMap["setShippingDate"] = Processor.process_setShippingDate
794
    self._processMap["setDeliveryDate"] = Processor.process_setDeliveryDate
795
    self._processMap["changeShippingStatus"] = Processor.process_changeShippingStatus
796
    self._processMap["addTrail"] = Processor.process_addTrail
797
 
798
  def process(self, iprot, oprot):
799
    (name, type, seqid) = iprot.readMessageBegin()
800
    if name not in self._processMap:
801
      iprot.skip(TType.STRUCT)
802
      iprot.readMessageEnd()
803
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
804
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
805
      x.write(oprot)
806
      oprot.writeMessageEnd()
807
      oprot.trans.flush()
808
      return
809
    else:
810
      self._processMap[name](self, seqid, iprot, oprot)
811
    return True
812
 
813
  def process_createTransaction(self, seqid, iprot, oprot):
814
    args = createTransaction_args()
815
    args.read(iprot)
816
    iprot.readMessageEnd()
817
    result = createTransaction_result()
818
    try:
819
      self._handler.createTransaction(args.transaction)
820
    except TransactionServiceException, ex:
821
      result.ex = ex
822
    oprot.writeMessageBegin("createTransaction", TMessageType.REPLY, seqid)
823
    result.write(oprot)
824
    oprot.writeMessageEnd()
825
    oprot.trans.flush()
826
 
827
  def process_getTransaction(self, seqid, iprot, oprot):
828
    args = getTransaction_args()
829
    args.read(iprot)
830
    iprot.readMessageEnd()
831
    result = getTransaction_result()
832
    try:
833
      result.success = self._handler.getTransaction(args.id)
834
    except TransactionServiceException, ex:
835
      result.ex = ex
836
    oprot.writeMessageBegin("getTransaction", TMessageType.REPLY, seqid)
837
    result.write(oprot)
838
    oprot.writeMessageEnd()
839
    oprot.trans.flush()
840
 
841
  def process_getAllTransactions(self, seqid, iprot, oprot):
842
    args = getAllTransactions_args()
843
    args.read(iprot)
844
    iprot.readMessageEnd()
845
    result = getAllTransactions_result()
846
    try:
847
      result.success = self._handler.getAllTransactions(args.status, args.from_date, args.to_date)
848
    except TransactionServiceException, ex:
849
      result.ex = ex
850
    oprot.writeMessageBegin("getAllTransactions", TMessageType.REPLY, seqid)
851
    result.write(oprot)
852
    oprot.writeMessageEnd()
853
    oprot.trans.flush()
854
 
855
  def process_getTransactionsForShipmentStatus(self, seqid, iprot, oprot):
856
    args = getTransactionsForShipmentStatus_args()
857
    args.read(iprot)
858
    iprot.readMessageEnd()
859
    result = getTransactionsForShipmentStatus_result()
860
    try:
861
      result.success = self._handler.getTransactionsForShipmentStatus(args.status, args.from_date, args.to_date)
862
    except TransactionServiceException, ex:
863
      result.ex = ex
864
    oprot.writeMessageBegin("getTransactionsForShipmentStatus", TMessageType.REPLY, seqid)
865
    result.write(oprot)
866
    oprot.writeMessageEnd()
867
    oprot.trans.flush()
868
 
869
  def process_getTransactionsForCustomer(self, seqid, iprot, oprot):
870
    args = getTransactionsForCustomer_args()
871
    args.read(iprot)
872
    iprot.readMessageEnd()
873
    result = getTransactionsForCustomer_result()
874
    try:
875
      result.success = self._handler.getTransactionsForCustomer(args.customerId, args.from_date, args.to_date, args.status)
876
    except TransactionServiceException, ex:
877
      result.ex = ex
878
    oprot.writeMessageBegin("getTransactionsForCustomer", TMessageType.REPLY, seqid)
879
    result.write(oprot)
880
    oprot.writeMessageEnd()
881
    oprot.trans.flush()
882
 
883
  def process_getTransactionsForCustomerAndShipmentStatus(self, seqid, iprot, oprot):
884
    args = getTransactionsForCustomerAndShipmentStatus_args()
885
    args.read(iprot)
886
    iprot.readMessageEnd()
887
    result = getTransactionsForCustomerAndShipmentStatus_result()
888
    try:
889
      result.success = self._handler.getTransactionsForCustomerAndShipmentStatus(args.customerId, args.from_date, args.to_date, args.status)
890
    except TransactionServiceException, ex:
891
      result.ex = ex
892
    oprot.writeMessageBegin("getTransactionsForCustomerAndShipmentStatus", TMessageType.REPLY, seqid)
893
    result.write(oprot)
894
    oprot.writeMessageEnd()
895
    oprot.trans.flush()
896
 
897
  def process_getTransactionStatus(self, seqid, iprot, oprot):
898
    args = getTransactionStatus_args()
899
    args.read(iprot)
900
    iprot.readMessageEnd()
901
    result = getTransactionStatus_result()
902
    try:
903
      result.success = self._handler.getTransactionStatus(args.transactionId)
904
    except TransactionServiceException, ex:
905
      result.ex = ex
906
    oprot.writeMessageBegin("getTransactionStatus", TMessageType.REPLY, seqid)
907
    result.write(oprot)
908
    oprot.writeMessageEnd()
909
    oprot.trans.flush()
910
 
911
  def process_changeTransactionStatus(self, seqid, iprot, oprot):
912
    args = changeTransactionStatus_args()
913
    args.read(iprot)
914
    iprot.readMessageEnd()
915
    result = changeTransactionStatus_result()
916
    try:
917
      result.success = self._handler.changeTransactionStatus(args.transactionId, args.status, args.description)
918
    except TransactionServiceException, ex:
919
      result.ex = ex
920
    oprot.writeMessageBegin("changeTransactionStatus", TMessageType.REPLY, seqid)
921
    result.write(oprot)
922
    oprot.writeMessageEnd()
923
    oprot.trans.flush()
924
 
925
  def process_getOrderInfo(self, seqid, iprot, oprot):
926
    args = getOrderInfo_args()
927
    args.read(iprot)
928
    iprot.readMessageEnd()
929
    result = getOrderInfo_result()
930
    try:
931
      result.success = self._handler.getOrderInfo(args.transactionId)
932
    except TransactionServiceException, ex:
933
      result.ex = ex
934
    oprot.writeMessageBegin("getOrderInfo", TMessageType.REPLY, seqid)
935
    result.write(oprot)
936
    oprot.writeMessageEnd()
937
    oprot.trans.flush()
938
 
939
  def process_getShippingInfo(self, seqid, iprot, oprot):
940
    args = getShippingInfo_args()
941
    args.read(iprot)
942
    iprot.readMessageEnd()
943
    result = getShippingInfo_result()
944
    try:
945
      result.success = self._handler.getShippingInfo(args.transactionId)
946
    except TransactionServiceException, ex:
947
      result.ex = ex
948
    oprot.writeMessageBegin("getShippingInfo", TMessageType.REPLY, seqid)
949
    result.write(oprot)
950
    oprot.writeMessageEnd()
951
    oprot.trans.flush()
952
 
953
  def process_getBillingInfo(self, seqid, iprot, oprot):
954
    args = getBillingInfo_args()
955
    args.read(iprot)
956
    iprot.readMessageEnd()
957
    result = getBillingInfo_result()
958
    try:
959
      result.success = self._handler.getBillingInfo(args.transactionId)
960
    except TransactionServiceException, ex:
961
      result.ex = ex
962
    oprot.writeMessageBegin("getBillingInfo", TMessageType.REPLY, seqid)
963
    result.write(oprot)
964
    oprot.writeMessageEnd()
965
    oprot.trans.flush()
966
 
967
  def process_addBilling(self, seqid, iprot, oprot):
968
    args = addBilling_args()
969
    args.read(iprot)
970
    iprot.readMessageEnd()
971
    result = addBilling_result()
972
    try:
973
      result.success = self._handler.addBilling(args.tranactionId, args.billing)
974
    except TransactionServiceException, ex:
975
      result.ex = ex
976
    oprot.writeMessageBegin("addBilling", TMessageType.REPLY, seqid)
977
    result.write(oprot)
978
    oprot.writeMessageEnd()
979
    oprot.trans.flush()
980
 
981
  def process_setShippingTracker(self, seqid, iprot, oprot):
982
    args = setShippingTracker_args()
983
    args.read(iprot)
984
    iprot.readMessageEnd()
985
    result = setShippingTracker_result()
986
    try:
987
      result.success = self._handler.setShippingTracker(args.transactionId, args.shippingId, args.trackingId, args.airwayBillNo, args.provider)
988
    except TransactionServiceException, ex:
989
      result.ex = ex
990
    oprot.writeMessageBegin("setShippingTracker", TMessageType.REPLY, seqid)
991
    result.write(oprot)
992
    oprot.writeMessageEnd()
993
    oprot.trans.flush()
994
 
995
  def process_setShippingDate(self, seqid, iprot, oprot):
996
    args = setShippingDate_args()
997
    args.read(iprot)
998
    iprot.readMessageEnd()
999
    result = setShippingDate_result()
1000
    try:
1001
      result.success = self._handler.setShippingDate(args.transactionId, args.shippingId, args.timestamp)
1002
    except TransactionServiceException, ex:
1003
      result.ex = ex
1004
    oprot.writeMessageBegin("setShippingDate", TMessageType.REPLY, seqid)
1005
    result.write(oprot)
1006
    oprot.writeMessageEnd()
1007
    oprot.trans.flush()
1008
 
1009
  def process_setDeliveryDate(self, seqid, iprot, oprot):
1010
    args = setDeliveryDate_args()
1011
    args.read(iprot)
1012
    iprot.readMessageEnd()
1013
    result = setDeliveryDate_result()
1014
    try:
1015
      result.success = self._handler.setDeliveryDate(args.transactionId, args.shippingid, args.timestamp)
1016
    except TransactionServiceException, ex:
1017
      result.ex = ex
1018
    oprot.writeMessageBegin("setDeliveryDate", TMessageType.REPLY, seqid)
1019
    result.write(oprot)
1020
    oprot.writeMessageEnd()
1021
    oprot.trans.flush()
1022
 
1023
  def process_changeShippingStatus(self, seqid, iprot, oprot):
1024
    args = changeShippingStatus_args()
1025
    args.read(iprot)
1026
    iprot.readMessageEnd()
1027
    result = changeShippingStatus_result()
1028
    try:
1029
      result.success = self._handler.changeShippingStatus(args.transactionId, args.shippingId, args.status, args.description)
1030
    except TransactionServiceException, ex:
1031
      result.ex = ex
1032
    oprot.writeMessageBegin("changeShippingStatus", TMessageType.REPLY, seqid)
1033
    result.write(oprot)
1034
    oprot.writeMessageEnd()
1035
    oprot.trans.flush()
1036
 
1037
  def process_addTrail(self, seqid, iprot, oprot):
1038
    args = addTrail_args()
1039
    args.read(iprot)
1040
    iprot.readMessageEnd()
1041
    result = addTrail_result()
1042
    try:
1043
      result.success = self._handler.addTrail(args.transactionId, args.description)
1044
    except TransactionServiceException, ex:
1045
      result.ex = ex
1046
    oprot.writeMessageBegin("addTrail", TMessageType.REPLY, seqid)
1047
    result.write(oprot)
1048
    oprot.writeMessageEnd()
1049
    oprot.trans.flush()
1050
 
1051
 
1052
# HELPER FUNCTIONS AND STRUCTURES
1053
 
1054
class createTransaction_args:
1055
  """
1056
  Attributes:
1057
   - transaction
1058
  """
1059
 
1060
  thrift_spec = (
1061
    None, # 0
1062
    (1, TType.STRUCT, 'transaction', (Transaction, Transaction.thrift_spec), None, ), # 1
1063
  )
1064
 
1065
  def __init__(self, transaction=None,):
1066
    self.transaction = transaction
1067
 
1068
  def read(self, iprot):
1069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1071
      return
1072
    iprot.readStructBegin()
1073
    while True:
1074
      (fname, ftype, fid) = iprot.readFieldBegin()
1075
      if ftype == TType.STOP:
1076
        break
1077
      if fid == 1:
1078
        if ftype == TType.STRUCT:
1079
          self.transaction = Transaction()
1080
          self.transaction.read(iprot)
1081
        else:
1082
          iprot.skip(ftype)
1083
      else:
1084
        iprot.skip(ftype)
1085
      iprot.readFieldEnd()
1086
    iprot.readStructEnd()
1087
 
1088
  def write(self, oprot):
1089
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1090
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1091
      return
1092
    oprot.writeStructBegin('createTransaction_args')
1093
    if self.transaction != None:
1094
      oprot.writeFieldBegin('transaction', TType.STRUCT, 1)
1095
      self.transaction.write(oprot)
1096
      oprot.writeFieldEnd()
1097
    oprot.writeFieldStop()
1098
    oprot.writeStructEnd()
1099
 
1100
  def __repr__(self):
1101
    L = ['%s=%r' % (key, value)
1102
      for key, value in self.__dict__.iteritems()]
1103
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1104
 
1105
  def __eq__(self, other):
1106
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1107
 
1108
  def __ne__(self, other):
1109
    return not (self == other)
1110
 
1111
class createTransaction_result:
1112
  """
1113
  Attributes:
1114
   - ex
1115
  """
1116
 
1117
  thrift_spec = (
1118
    None, # 0
1119
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
1120
  )
1121
 
1122
  def __init__(self, ex=None,):
1123
    self.ex = ex
1124
 
1125
  def read(self, iprot):
1126
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1127
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1128
      return
1129
    iprot.readStructBegin()
1130
    while True:
1131
      (fname, ftype, fid) = iprot.readFieldBegin()
1132
      if ftype == TType.STOP:
1133
        break
1134
      if fid == 1:
1135
        if ftype == TType.STRUCT:
1136
          self.ex = TransactionServiceException()
1137
          self.ex.read(iprot)
1138
        else:
1139
          iprot.skip(ftype)
1140
      else:
1141
        iprot.skip(ftype)
1142
      iprot.readFieldEnd()
1143
    iprot.readStructEnd()
1144
 
1145
  def write(self, oprot):
1146
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1147
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1148
      return
1149
    oprot.writeStructBegin('createTransaction_result')
1150
    if self.ex != None:
1151
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
1152
      self.ex.write(oprot)
1153
      oprot.writeFieldEnd()
1154
    oprot.writeFieldStop()
1155
    oprot.writeStructEnd()
1156
 
1157
  def __repr__(self):
1158
    L = ['%s=%r' % (key, value)
1159
      for key, value in self.__dict__.iteritems()]
1160
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1161
 
1162
  def __eq__(self, other):
1163
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1164
 
1165
  def __ne__(self, other):
1166
    return not (self == other)
1167
 
1168
class getTransaction_args:
1169
  """
1170
  Attributes:
1171
   - id
1172
  """
1173
 
1174
  thrift_spec = (
1175
    None, # 0
1176
    (1, TType.I64, 'id', None, None, ), # 1
1177
  )
1178
 
1179
  def __init__(self, id=None,):
1180
    self.id = id
1181
 
1182
  def read(self, iprot):
1183
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1184
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1185
      return
1186
    iprot.readStructBegin()
1187
    while True:
1188
      (fname, ftype, fid) = iprot.readFieldBegin()
1189
      if ftype == TType.STOP:
1190
        break
1191
      if fid == 1:
1192
        if ftype == TType.I64:
1193
          self.id = iprot.readI64();
1194
        else:
1195
          iprot.skip(ftype)
1196
      else:
1197
        iprot.skip(ftype)
1198
      iprot.readFieldEnd()
1199
    iprot.readStructEnd()
1200
 
1201
  def write(self, oprot):
1202
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1203
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1204
      return
1205
    oprot.writeStructBegin('getTransaction_args')
1206
    if self.id != None:
1207
      oprot.writeFieldBegin('id', TType.I64, 1)
1208
      oprot.writeI64(self.id)
1209
      oprot.writeFieldEnd()
1210
    oprot.writeFieldStop()
1211
    oprot.writeStructEnd()
1212
 
1213
  def __repr__(self):
1214
    L = ['%s=%r' % (key, value)
1215
      for key, value in self.__dict__.iteritems()]
1216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1217
 
1218
  def __eq__(self, other):
1219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1220
 
1221
  def __ne__(self, other):
1222
    return not (self == other)
1223
 
1224
class getTransaction_result:
1225
  """
1226
  Attributes:
1227
   - success
1228
   - ex
1229
  """
1230
 
1231
  thrift_spec = (
1232
    (0, TType.STRUCT, 'success', (Transaction, Transaction.thrift_spec), None, ), # 0
1233
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
1234
  )
1235
 
1236
  def __init__(self, success=None, ex=None,):
1237
    self.success = success
1238
    self.ex = ex
1239
 
1240
  def read(self, iprot):
1241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1243
      return
1244
    iprot.readStructBegin()
1245
    while True:
1246
      (fname, ftype, fid) = iprot.readFieldBegin()
1247
      if ftype == TType.STOP:
1248
        break
1249
      if fid == 0:
1250
        if ftype == TType.STRUCT:
1251
          self.success = Transaction()
1252
          self.success.read(iprot)
1253
        else:
1254
          iprot.skip(ftype)
1255
      elif fid == 1:
1256
        if ftype == TType.STRUCT:
1257
          self.ex = TransactionServiceException()
1258
          self.ex.read(iprot)
1259
        else:
1260
          iprot.skip(ftype)
1261
      else:
1262
        iprot.skip(ftype)
1263
      iprot.readFieldEnd()
1264
    iprot.readStructEnd()
1265
 
1266
  def write(self, oprot):
1267
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1268
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1269
      return
1270
    oprot.writeStructBegin('getTransaction_result')
1271
    if self.success != None:
1272
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1273
      self.success.write(oprot)
1274
      oprot.writeFieldEnd()
1275
    if self.ex != None:
1276
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
1277
      self.ex.write(oprot)
1278
      oprot.writeFieldEnd()
1279
    oprot.writeFieldStop()
1280
    oprot.writeStructEnd()
1281
 
1282
  def __repr__(self):
1283
    L = ['%s=%r' % (key, value)
1284
      for key, value in self.__dict__.iteritems()]
1285
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1286
 
1287
  def __eq__(self, other):
1288
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1289
 
1290
  def __ne__(self, other):
1291
    return not (self == other)
1292
 
1293
class getAllTransactions_args:
1294
  """
1295
  Attributes:
1296
   - status
1297
   - from_date
1298
   - to_date
1299
  """
1300
 
1301
  thrift_spec = (
1302
    None, # 0
1303
    (1, TType.I32, 'status', None, None, ), # 1
1304
    (2, TType.I64, 'from_date', None, None, ), # 2
1305
    (3, TType.I64, 'to_date', None, None, ), # 3
1306
  )
1307
 
1308
  def __init__(self, status=None, from_date=None, to_date=None,):
1309
    self.status = status
1310
    self.from_date = from_date
1311
    self.to_date = to_date
1312
 
1313
  def read(self, iprot):
1314
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1315
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1316
      return
1317
    iprot.readStructBegin()
1318
    while True:
1319
      (fname, ftype, fid) = iprot.readFieldBegin()
1320
      if ftype == TType.STOP:
1321
        break
1322
      if fid == 1:
1323
        if ftype == TType.I32:
1324
          self.status = iprot.readI32();
1325
        else:
1326
          iprot.skip(ftype)
1327
      elif fid == 2:
1328
        if ftype == TType.I64:
1329
          self.from_date = iprot.readI64();
1330
        else:
1331
          iprot.skip(ftype)
1332
      elif fid == 3:
1333
        if ftype == TType.I64:
1334
          self.to_date = iprot.readI64();
1335
        else:
1336
          iprot.skip(ftype)
1337
      else:
1338
        iprot.skip(ftype)
1339
      iprot.readFieldEnd()
1340
    iprot.readStructEnd()
1341
 
1342
  def write(self, oprot):
1343
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1344
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1345
      return
1346
    oprot.writeStructBegin('getAllTransactions_args')
1347
    if self.status != None:
1348
      oprot.writeFieldBegin('status', TType.I32, 1)
1349
      oprot.writeI32(self.status)
1350
      oprot.writeFieldEnd()
1351
    if self.from_date != None:
1352
      oprot.writeFieldBegin('from_date', TType.I64, 2)
1353
      oprot.writeI64(self.from_date)
1354
      oprot.writeFieldEnd()
1355
    if self.to_date != None:
1356
      oprot.writeFieldBegin('to_date', TType.I64, 3)
1357
      oprot.writeI64(self.to_date)
1358
      oprot.writeFieldEnd()
1359
    oprot.writeFieldStop()
1360
    oprot.writeStructEnd()
1361
 
1362
  def __repr__(self):
1363
    L = ['%s=%r' % (key, value)
1364
      for key, value in self.__dict__.iteritems()]
1365
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1366
 
1367
  def __eq__(self, other):
1368
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1369
 
1370
  def __ne__(self, other):
1371
    return not (self == other)
1372
 
1373
class getAllTransactions_result:
1374
  """
1375
  Attributes:
1376
   - success
1377
   - ex
1378
  """
1379
 
1380
  thrift_spec = (
1381
    (0, TType.LIST, 'success', (TType.STRUCT,(Transaction, Transaction.thrift_spec)), None, ), # 0
1382
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
1383
  )
1384
 
1385
  def __init__(self, success=None, ex=None,):
1386
    self.success = success
1387
    self.ex = ex
1388
 
1389
  def read(self, iprot):
1390
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1391
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1392
      return
1393
    iprot.readStructBegin()
1394
    while True:
1395
      (fname, ftype, fid) = iprot.readFieldBegin()
1396
      if ftype == TType.STOP:
1397
        break
1398
      if fid == 0:
1399
        if ftype == TType.LIST:
1400
          self.success = []
1401
          (_etype49, _size46) = iprot.readListBegin()
1402
          for _i50 in xrange(_size46):
1403
            _elem51 = Transaction()
1404
            _elem51.read(iprot)
1405
            self.success.append(_elem51)
1406
          iprot.readListEnd()
1407
        else:
1408
          iprot.skip(ftype)
1409
      elif fid == 1:
1410
        if ftype == TType.STRUCT:
1411
          self.ex = TransactionServiceException()
1412
          self.ex.read(iprot)
1413
        else:
1414
          iprot.skip(ftype)
1415
      else:
1416
        iprot.skip(ftype)
1417
      iprot.readFieldEnd()
1418
    iprot.readStructEnd()
1419
 
1420
  def write(self, oprot):
1421
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1422
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1423
      return
1424
    oprot.writeStructBegin('getAllTransactions_result')
1425
    if self.success != None:
1426
      oprot.writeFieldBegin('success', TType.LIST, 0)
1427
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1428
      for iter52 in self.success:
1429
        iter52.write(oprot)
1430
      oprot.writeListEnd()
1431
      oprot.writeFieldEnd()
1432
    if self.ex != None:
1433
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
1434
      self.ex.write(oprot)
1435
      oprot.writeFieldEnd()
1436
    oprot.writeFieldStop()
1437
    oprot.writeStructEnd()
1438
 
1439
  def __repr__(self):
1440
    L = ['%s=%r' % (key, value)
1441
      for key, value in self.__dict__.iteritems()]
1442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1443
 
1444
  def __eq__(self, other):
1445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1446
 
1447
  def __ne__(self, other):
1448
    return not (self == other)
1449
 
1450
class getTransactionsForShipmentStatus_args:
1451
  """
1452
  Attributes:
1453
   - status
1454
   - from_date
1455
   - to_date
1456
  """
1457
 
1458
  thrift_spec = (
1459
    None, # 0
1460
    (1, TType.I32, 'status', None, None, ), # 1
1461
    (2, TType.I64, 'from_date', None, None, ), # 2
1462
    (3, TType.I64, 'to_date', None, None, ), # 3
1463
  )
1464
 
1465
  def __init__(self, status=None, from_date=None, to_date=None,):
1466
    self.status = status
1467
    self.from_date = from_date
1468
    self.to_date = to_date
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 == 1:
1480
        if ftype == TType.I32:
1481
          self.status = iprot.readI32();
1482
        else:
1483
          iprot.skip(ftype)
1484
      elif fid == 2:
1485
        if ftype == TType.I64:
1486
          self.from_date = iprot.readI64();
1487
        else:
1488
          iprot.skip(ftype)
1489
      elif fid == 3:
1490
        if ftype == TType.I64:
1491
          self.to_date = iprot.readI64();
1492
        else:
1493
          iprot.skip(ftype)
1494
      else:
1495
        iprot.skip(ftype)
1496
      iprot.readFieldEnd()
1497
    iprot.readStructEnd()
1498
 
1499
  def write(self, oprot):
1500
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1501
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1502
      return
1503
    oprot.writeStructBegin('getTransactionsForShipmentStatus_args')
1504
    if self.status != None:
1505
      oprot.writeFieldBegin('status', TType.I32, 1)
1506
      oprot.writeI32(self.status)
1507
      oprot.writeFieldEnd()
1508
    if self.from_date != None:
1509
      oprot.writeFieldBegin('from_date', TType.I64, 2)
1510
      oprot.writeI64(self.from_date)
1511
      oprot.writeFieldEnd()
1512
    if self.to_date != None:
1513
      oprot.writeFieldBegin('to_date', TType.I64, 3)
1514
      oprot.writeI64(self.to_date)
1515
      oprot.writeFieldEnd()
1516
    oprot.writeFieldStop()
1517
    oprot.writeStructEnd()
1518
 
1519
  def __repr__(self):
1520
    L = ['%s=%r' % (key, value)
1521
      for key, value in self.__dict__.iteritems()]
1522
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1523
 
1524
  def __eq__(self, other):
1525
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1526
 
1527
  def __ne__(self, other):
1528
    return not (self == other)
1529
 
1530
class getTransactionsForShipmentStatus_result:
1531
  """
1532
  Attributes:
1533
   - success
1534
   - ex
1535
  """
1536
 
1537
  thrift_spec = (
1538
    (0, TType.LIST, 'success', (TType.STRUCT,(Transaction, Transaction.thrift_spec)), None, ), # 0
1539
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
1540
  )
1541
 
1542
  def __init__(self, success=None, ex=None,):
1543
    self.success = success
1544
    self.ex = ex
1545
 
1546
  def read(self, iprot):
1547
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1548
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1549
      return
1550
    iprot.readStructBegin()
1551
    while True:
1552
      (fname, ftype, fid) = iprot.readFieldBegin()
1553
      if ftype == TType.STOP:
1554
        break
1555
      if fid == 0:
1556
        if ftype == TType.LIST:
1557
          self.success = []
1558
          (_etype56, _size53) = iprot.readListBegin()
1559
          for _i57 in xrange(_size53):
1560
            _elem58 = Transaction()
1561
            _elem58.read(iprot)
1562
            self.success.append(_elem58)
1563
          iprot.readListEnd()
1564
        else:
1565
          iprot.skip(ftype)
1566
      elif fid == 1:
1567
        if ftype == TType.STRUCT:
1568
          self.ex = TransactionServiceException()
1569
          self.ex.read(iprot)
1570
        else:
1571
          iprot.skip(ftype)
1572
      else:
1573
        iprot.skip(ftype)
1574
      iprot.readFieldEnd()
1575
    iprot.readStructEnd()
1576
 
1577
  def write(self, oprot):
1578
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1579
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1580
      return
1581
    oprot.writeStructBegin('getTransactionsForShipmentStatus_result')
1582
    if self.success != None:
1583
      oprot.writeFieldBegin('success', TType.LIST, 0)
1584
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1585
      for iter59 in self.success:
1586
        iter59.write(oprot)
1587
      oprot.writeListEnd()
1588
      oprot.writeFieldEnd()
1589
    if self.ex != None:
1590
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
1591
      self.ex.write(oprot)
1592
      oprot.writeFieldEnd()
1593
    oprot.writeFieldStop()
1594
    oprot.writeStructEnd()
1595
 
1596
  def __repr__(self):
1597
    L = ['%s=%r' % (key, value)
1598
      for key, value in self.__dict__.iteritems()]
1599
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1600
 
1601
  def __eq__(self, other):
1602
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1603
 
1604
  def __ne__(self, other):
1605
    return not (self == other)
1606
 
1607
class getTransactionsForCustomer_args:
1608
  """
1609
  Attributes:
1610
   - customerId
1611
   - from_date
1612
   - to_date
1613
   - status
1614
  """
1615
 
1616
  thrift_spec = (
1617
    None, # 0
1618
    (1, TType.I64, 'customerId', None, None, ), # 1
1619
    (2, TType.I64, 'from_date', None, None, ), # 2
1620
    (3, TType.I64, 'to_date', None, None, ), # 3
1621
    (4, TType.I32, 'status', None, None, ), # 4
1622
  )
1623
 
1624
  def __init__(self, customerId=None, from_date=None, to_date=None, status=None,):
1625
    self.customerId = customerId
1626
    self.from_date = from_date
1627
    self.to_date = to_date
1628
    self.status = status
1629
 
1630
  def read(self, iprot):
1631
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1632
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1633
      return
1634
    iprot.readStructBegin()
1635
    while True:
1636
      (fname, ftype, fid) = iprot.readFieldBegin()
1637
      if ftype == TType.STOP:
1638
        break
1639
      if fid == 1:
1640
        if ftype == TType.I64:
1641
          self.customerId = iprot.readI64();
1642
        else:
1643
          iprot.skip(ftype)
1644
      elif fid == 2:
1645
        if ftype == TType.I64:
1646
          self.from_date = iprot.readI64();
1647
        else:
1648
          iprot.skip(ftype)
1649
      elif fid == 3:
1650
        if ftype == TType.I64:
1651
          self.to_date = iprot.readI64();
1652
        else:
1653
          iprot.skip(ftype)
1654
      elif fid == 4:
1655
        if ftype == TType.I32:
1656
          self.status = iprot.readI32();
1657
        else:
1658
          iprot.skip(ftype)
1659
      else:
1660
        iprot.skip(ftype)
1661
      iprot.readFieldEnd()
1662
    iprot.readStructEnd()
1663
 
1664
  def write(self, oprot):
1665
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1666
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1667
      return
1668
    oprot.writeStructBegin('getTransactionsForCustomer_args')
1669
    if self.customerId != None:
1670
      oprot.writeFieldBegin('customerId', TType.I64, 1)
1671
      oprot.writeI64(self.customerId)
1672
      oprot.writeFieldEnd()
1673
    if self.from_date != None:
1674
      oprot.writeFieldBegin('from_date', TType.I64, 2)
1675
      oprot.writeI64(self.from_date)
1676
      oprot.writeFieldEnd()
1677
    if self.to_date != None:
1678
      oprot.writeFieldBegin('to_date', TType.I64, 3)
1679
      oprot.writeI64(self.to_date)
1680
      oprot.writeFieldEnd()
1681
    if self.status != None:
1682
      oprot.writeFieldBegin('status', TType.I32, 4)
1683
      oprot.writeI32(self.status)
1684
      oprot.writeFieldEnd()
1685
    oprot.writeFieldStop()
1686
    oprot.writeStructEnd()
1687
 
1688
  def __repr__(self):
1689
    L = ['%s=%r' % (key, value)
1690
      for key, value in self.__dict__.iteritems()]
1691
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1692
 
1693
  def __eq__(self, other):
1694
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1695
 
1696
  def __ne__(self, other):
1697
    return not (self == other)
1698
 
1699
class getTransactionsForCustomer_result:
1700
  """
1701
  Attributes:
1702
   - success
1703
   - ex
1704
  """
1705
 
1706
  thrift_spec = (
1707
    (0, TType.LIST, 'success', (TType.STRUCT,(Transaction, Transaction.thrift_spec)), None, ), # 0
1708
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
1709
  )
1710
 
1711
  def __init__(self, success=None, ex=None,):
1712
    self.success = success
1713
    self.ex = ex
1714
 
1715
  def read(self, iprot):
1716
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1717
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1718
      return
1719
    iprot.readStructBegin()
1720
    while True:
1721
      (fname, ftype, fid) = iprot.readFieldBegin()
1722
      if ftype == TType.STOP:
1723
        break
1724
      if fid == 0:
1725
        if ftype == TType.LIST:
1726
          self.success = []
1727
          (_etype63, _size60) = iprot.readListBegin()
1728
          for _i64 in xrange(_size60):
1729
            _elem65 = Transaction()
1730
            _elem65.read(iprot)
1731
            self.success.append(_elem65)
1732
          iprot.readListEnd()
1733
        else:
1734
          iprot.skip(ftype)
1735
      elif fid == 1:
1736
        if ftype == TType.STRUCT:
1737
          self.ex = TransactionServiceException()
1738
          self.ex.read(iprot)
1739
        else:
1740
          iprot.skip(ftype)
1741
      else:
1742
        iprot.skip(ftype)
1743
      iprot.readFieldEnd()
1744
    iprot.readStructEnd()
1745
 
1746
  def write(self, oprot):
1747
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1748
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1749
      return
1750
    oprot.writeStructBegin('getTransactionsForCustomer_result')
1751
    if self.success != None:
1752
      oprot.writeFieldBegin('success', TType.LIST, 0)
1753
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1754
      for iter66 in self.success:
1755
        iter66.write(oprot)
1756
      oprot.writeListEnd()
1757
      oprot.writeFieldEnd()
1758
    if self.ex != None:
1759
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
1760
      self.ex.write(oprot)
1761
      oprot.writeFieldEnd()
1762
    oprot.writeFieldStop()
1763
    oprot.writeStructEnd()
1764
 
1765
  def __repr__(self):
1766
    L = ['%s=%r' % (key, value)
1767
      for key, value in self.__dict__.iteritems()]
1768
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1769
 
1770
  def __eq__(self, other):
1771
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1772
 
1773
  def __ne__(self, other):
1774
    return not (self == other)
1775
 
1776
class getTransactionsForCustomerAndShipmentStatus_args:
1777
  """
1778
  Attributes:
1779
   - customerId
1780
   - from_date
1781
   - to_date
1782
   - status
1783
  """
1784
 
1785
  thrift_spec = (
1786
    None, # 0
1787
    (1, TType.I64, 'customerId', None, None, ), # 1
1788
    (2, TType.I64, 'from_date', None, None, ), # 2
1789
    (3, TType.I64, 'to_date', None, None, ), # 3
1790
    (4, TType.I32, 'status', None, None, ), # 4
1791
  )
1792
 
1793
  def __init__(self, customerId=None, from_date=None, to_date=None, status=None,):
1794
    self.customerId = customerId
1795
    self.from_date = from_date
1796
    self.to_date = to_date
1797
    self.status = status
1798
 
1799
  def read(self, iprot):
1800
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1801
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1802
      return
1803
    iprot.readStructBegin()
1804
    while True:
1805
      (fname, ftype, fid) = iprot.readFieldBegin()
1806
      if ftype == TType.STOP:
1807
        break
1808
      if fid == 1:
1809
        if ftype == TType.I64:
1810
          self.customerId = iprot.readI64();
1811
        else:
1812
          iprot.skip(ftype)
1813
      elif fid == 2:
1814
        if ftype == TType.I64:
1815
          self.from_date = iprot.readI64();
1816
        else:
1817
          iprot.skip(ftype)
1818
      elif fid == 3:
1819
        if ftype == TType.I64:
1820
          self.to_date = iprot.readI64();
1821
        else:
1822
          iprot.skip(ftype)
1823
      elif fid == 4:
1824
        if ftype == TType.I32:
1825
          self.status = iprot.readI32();
1826
        else:
1827
          iprot.skip(ftype)
1828
      else:
1829
        iprot.skip(ftype)
1830
      iprot.readFieldEnd()
1831
    iprot.readStructEnd()
1832
 
1833
  def write(self, oprot):
1834
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1835
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1836
      return
1837
    oprot.writeStructBegin('getTransactionsForCustomerAndShipmentStatus_args')
1838
    if self.customerId != None:
1839
      oprot.writeFieldBegin('customerId', TType.I64, 1)
1840
      oprot.writeI64(self.customerId)
1841
      oprot.writeFieldEnd()
1842
    if self.from_date != None:
1843
      oprot.writeFieldBegin('from_date', TType.I64, 2)
1844
      oprot.writeI64(self.from_date)
1845
      oprot.writeFieldEnd()
1846
    if self.to_date != None:
1847
      oprot.writeFieldBegin('to_date', TType.I64, 3)
1848
      oprot.writeI64(self.to_date)
1849
      oprot.writeFieldEnd()
1850
    if self.status != None:
1851
      oprot.writeFieldBegin('status', TType.I32, 4)
1852
      oprot.writeI32(self.status)
1853
      oprot.writeFieldEnd()
1854
    oprot.writeFieldStop()
1855
    oprot.writeStructEnd()
1856
 
1857
  def __repr__(self):
1858
    L = ['%s=%r' % (key, value)
1859
      for key, value in self.__dict__.iteritems()]
1860
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1861
 
1862
  def __eq__(self, other):
1863
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1864
 
1865
  def __ne__(self, other):
1866
    return not (self == other)
1867
 
1868
class getTransactionsForCustomerAndShipmentStatus_result:
1869
  """
1870
  Attributes:
1871
   - success
1872
   - ex
1873
  """
1874
 
1875
  thrift_spec = (
1876
    (0, TType.LIST, 'success', (TType.STRUCT,(Transaction, Transaction.thrift_spec)), None, ), # 0
1877
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
1878
  )
1879
 
1880
  def __init__(self, success=None, ex=None,):
1881
    self.success = success
1882
    self.ex = ex
1883
 
1884
  def read(self, iprot):
1885
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1886
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1887
      return
1888
    iprot.readStructBegin()
1889
    while True:
1890
      (fname, ftype, fid) = iprot.readFieldBegin()
1891
      if ftype == TType.STOP:
1892
        break
1893
      if fid == 0:
1894
        if ftype == TType.LIST:
1895
          self.success = []
1896
          (_etype70, _size67) = iprot.readListBegin()
1897
          for _i71 in xrange(_size67):
1898
            _elem72 = Transaction()
1899
            _elem72.read(iprot)
1900
            self.success.append(_elem72)
1901
          iprot.readListEnd()
1902
        else:
1903
          iprot.skip(ftype)
1904
      elif fid == 1:
1905
        if ftype == TType.STRUCT:
1906
          self.ex = TransactionServiceException()
1907
          self.ex.read(iprot)
1908
        else:
1909
          iprot.skip(ftype)
1910
      else:
1911
        iprot.skip(ftype)
1912
      iprot.readFieldEnd()
1913
    iprot.readStructEnd()
1914
 
1915
  def write(self, oprot):
1916
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1917
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1918
      return
1919
    oprot.writeStructBegin('getTransactionsForCustomerAndShipmentStatus_result')
1920
    if self.success != None:
1921
      oprot.writeFieldBegin('success', TType.LIST, 0)
1922
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1923
      for iter73 in self.success:
1924
        iter73.write(oprot)
1925
      oprot.writeListEnd()
1926
      oprot.writeFieldEnd()
1927
    if self.ex != None:
1928
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
1929
      self.ex.write(oprot)
1930
      oprot.writeFieldEnd()
1931
    oprot.writeFieldStop()
1932
    oprot.writeStructEnd()
1933
 
1934
  def __repr__(self):
1935
    L = ['%s=%r' % (key, value)
1936
      for key, value in self.__dict__.iteritems()]
1937
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1938
 
1939
  def __eq__(self, other):
1940
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1941
 
1942
  def __ne__(self, other):
1943
    return not (self == other)
1944
 
1945
class getTransactionStatus_args:
1946
  """
1947
  Attributes:
1948
   - transactionId
1949
  """
1950
 
1951
  thrift_spec = (
1952
    None, # 0
1953
    (1, TType.I64, 'transactionId', None, None, ), # 1
1954
  )
1955
 
1956
  def __init__(self, transactionId=None,):
1957
    self.transactionId = transactionId
1958
 
1959
  def read(self, iprot):
1960
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1961
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1962
      return
1963
    iprot.readStructBegin()
1964
    while True:
1965
      (fname, ftype, fid) = iprot.readFieldBegin()
1966
      if ftype == TType.STOP:
1967
        break
1968
      if fid == 1:
1969
        if ftype == TType.I64:
1970
          self.transactionId = iprot.readI64();
1971
        else:
1972
          iprot.skip(ftype)
1973
      else:
1974
        iprot.skip(ftype)
1975
      iprot.readFieldEnd()
1976
    iprot.readStructEnd()
1977
 
1978
  def write(self, oprot):
1979
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1980
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1981
      return
1982
    oprot.writeStructBegin('getTransactionStatus_args')
1983
    if self.transactionId != None:
1984
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
1985
      oprot.writeI64(self.transactionId)
1986
      oprot.writeFieldEnd()
1987
    oprot.writeFieldStop()
1988
    oprot.writeStructEnd()
1989
 
1990
  def __repr__(self):
1991
    L = ['%s=%r' % (key, value)
1992
      for key, value in self.__dict__.iteritems()]
1993
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1994
 
1995
  def __eq__(self, other):
1996
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1997
 
1998
  def __ne__(self, other):
1999
    return not (self == other)
2000
 
2001
class getTransactionStatus_result:
2002
  """
2003
  Attributes:
2004
   - success
2005
   - ex
2006
  """
2007
 
2008
  thrift_spec = (
2009
    (0, TType.I32, 'success', None, None, ), # 0
2010
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
2011
  )
2012
 
2013
  def __init__(self, success=None, ex=None,):
2014
    self.success = success
2015
    self.ex = ex
2016
 
2017
  def read(self, iprot):
2018
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2019
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2020
      return
2021
    iprot.readStructBegin()
2022
    while True:
2023
      (fname, ftype, fid) = iprot.readFieldBegin()
2024
      if ftype == TType.STOP:
2025
        break
2026
      if fid == 0:
2027
        if ftype == TType.I32:
2028
          self.success = iprot.readI32();
2029
        else:
2030
          iprot.skip(ftype)
2031
      elif fid == 1:
2032
        if ftype == TType.STRUCT:
2033
          self.ex = TransactionServiceException()
2034
          self.ex.read(iprot)
2035
        else:
2036
          iprot.skip(ftype)
2037
      else:
2038
        iprot.skip(ftype)
2039
      iprot.readFieldEnd()
2040
    iprot.readStructEnd()
2041
 
2042
  def write(self, oprot):
2043
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2044
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2045
      return
2046
    oprot.writeStructBegin('getTransactionStatus_result')
2047
    if self.success != None:
2048
      oprot.writeFieldBegin('success', TType.I32, 0)
2049
      oprot.writeI32(self.success)
2050
      oprot.writeFieldEnd()
2051
    if self.ex != None:
2052
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
2053
      self.ex.write(oprot)
2054
      oprot.writeFieldEnd()
2055
    oprot.writeFieldStop()
2056
    oprot.writeStructEnd()
2057
 
2058
  def __repr__(self):
2059
    L = ['%s=%r' % (key, value)
2060
      for key, value in self.__dict__.iteritems()]
2061
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2062
 
2063
  def __eq__(self, other):
2064
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2065
 
2066
  def __ne__(self, other):
2067
    return not (self == other)
2068
 
2069
class changeTransactionStatus_args:
2070
  """
2071
  Attributes:
2072
   - transactionId
2073
   - status
2074
   - description
2075
  """
2076
 
2077
  thrift_spec = (
2078
    None, # 0
2079
    (1, TType.I64, 'transactionId', None, None, ), # 1
2080
    (2, TType.I32, 'status', None, None, ), # 2
2081
    (3, TType.STRING, 'description', None, None, ), # 3
2082
  )
2083
 
2084
  def __init__(self, transactionId=None, status=None, description=None,):
2085
    self.transactionId = transactionId
2086
    self.status = status
2087
    self.description = description
2088
 
2089
  def read(self, iprot):
2090
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2091
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2092
      return
2093
    iprot.readStructBegin()
2094
    while True:
2095
      (fname, ftype, fid) = iprot.readFieldBegin()
2096
      if ftype == TType.STOP:
2097
        break
2098
      if fid == 1:
2099
        if ftype == TType.I64:
2100
          self.transactionId = iprot.readI64();
2101
        else:
2102
          iprot.skip(ftype)
2103
      elif fid == 2:
2104
        if ftype == TType.I32:
2105
          self.status = iprot.readI32();
2106
        else:
2107
          iprot.skip(ftype)
2108
      elif fid == 3:
2109
        if ftype == TType.STRING:
2110
          self.description = iprot.readString();
2111
        else:
2112
          iprot.skip(ftype)
2113
      else:
2114
        iprot.skip(ftype)
2115
      iprot.readFieldEnd()
2116
    iprot.readStructEnd()
2117
 
2118
  def write(self, oprot):
2119
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2120
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2121
      return
2122
    oprot.writeStructBegin('changeTransactionStatus_args')
2123
    if self.transactionId != None:
2124
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
2125
      oprot.writeI64(self.transactionId)
2126
      oprot.writeFieldEnd()
2127
    if self.status != None:
2128
      oprot.writeFieldBegin('status', TType.I32, 2)
2129
      oprot.writeI32(self.status)
2130
      oprot.writeFieldEnd()
2131
    if self.description != None:
2132
      oprot.writeFieldBegin('description', TType.STRING, 3)
2133
      oprot.writeString(self.description)
2134
      oprot.writeFieldEnd()
2135
    oprot.writeFieldStop()
2136
    oprot.writeStructEnd()
2137
 
2138
  def __repr__(self):
2139
    L = ['%s=%r' % (key, value)
2140
      for key, value in self.__dict__.iteritems()]
2141
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2142
 
2143
  def __eq__(self, other):
2144
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2145
 
2146
  def __ne__(self, other):
2147
    return not (self == other)
2148
 
2149
class changeTransactionStatus_result:
2150
  """
2151
  Attributes:
2152
   - success
2153
   - ex
2154
  """
2155
 
2156
  thrift_spec = (
2157
    (0, TType.BOOL, 'success', None, None, ), # 0
2158
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
2159
  )
2160
 
2161
  def __init__(self, success=None, ex=None,):
2162
    self.success = success
2163
    self.ex = ex
2164
 
2165
  def read(self, iprot):
2166
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2167
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2168
      return
2169
    iprot.readStructBegin()
2170
    while True:
2171
      (fname, ftype, fid) = iprot.readFieldBegin()
2172
      if ftype == TType.STOP:
2173
        break
2174
      if fid == 0:
2175
        if ftype == TType.BOOL:
2176
          self.success = iprot.readBool();
2177
        else:
2178
          iprot.skip(ftype)
2179
      elif fid == 1:
2180
        if ftype == TType.STRUCT:
2181
          self.ex = TransactionServiceException()
2182
          self.ex.read(iprot)
2183
        else:
2184
          iprot.skip(ftype)
2185
      else:
2186
        iprot.skip(ftype)
2187
      iprot.readFieldEnd()
2188
    iprot.readStructEnd()
2189
 
2190
  def write(self, oprot):
2191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2193
      return
2194
    oprot.writeStructBegin('changeTransactionStatus_result')
2195
    if self.success != None:
2196
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2197
      oprot.writeBool(self.success)
2198
      oprot.writeFieldEnd()
2199
    if self.ex != None:
2200
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
2201
      self.ex.write(oprot)
2202
      oprot.writeFieldEnd()
2203
    oprot.writeFieldStop()
2204
    oprot.writeStructEnd()
2205
 
2206
  def __repr__(self):
2207
    L = ['%s=%r' % (key, value)
2208
      for key, value in self.__dict__.iteritems()]
2209
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2210
 
2211
  def __eq__(self, other):
2212
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2213
 
2214
  def __ne__(self, other):
2215
    return not (self == other)
2216
 
2217
class getOrderInfo_args:
2218
  """
2219
  Attributes:
2220
   - transactionId
2221
  """
2222
 
2223
  thrift_spec = (
2224
    None, # 0
2225
    (1, TType.I64, 'transactionId', None, None, ), # 1
2226
  )
2227
 
2228
  def __init__(self, transactionId=None,):
2229
    self.transactionId = transactionId
2230
 
2231
  def read(self, iprot):
2232
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2233
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2234
      return
2235
    iprot.readStructBegin()
2236
    while True:
2237
      (fname, ftype, fid) = iprot.readFieldBegin()
2238
      if ftype == TType.STOP:
2239
        break
2240
      if fid == 1:
2241
        if ftype == TType.I64:
2242
          self.transactionId = iprot.readI64();
2243
        else:
2244
          iprot.skip(ftype)
2245
      else:
2246
        iprot.skip(ftype)
2247
      iprot.readFieldEnd()
2248
    iprot.readStructEnd()
2249
 
2250
  def write(self, oprot):
2251
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2252
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2253
      return
2254
    oprot.writeStructBegin('getOrderInfo_args')
2255
    if self.transactionId != None:
2256
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
2257
      oprot.writeI64(self.transactionId)
2258
      oprot.writeFieldEnd()
2259
    oprot.writeFieldStop()
2260
    oprot.writeStructEnd()
2261
 
2262
  def __repr__(self):
2263
    L = ['%s=%r' % (key, value)
2264
      for key, value in self.__dict__.iteritems()]
2265
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2266
 
2267
  def __eq__(self, other):
2268
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2269
 
2270
  def __ne__(self, other):
2271
    return not (self == other)
2272
 
2273
class getOrderInfo_result:
2274
  """
2275
  Attributes:
2276
   - success
2277
   - ex
2278
  """
2279
 
2280
  thrift_spec = (
2281
    (0, TType.STRUCT, 'success', (OrderInfo, OrderInfo.thrift_spec), None, ), # 0
2282
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
2283
  )
2284
 
2285
  def __init__(self, success=None, ex=None,):
2286
    self.success = success
2287
    self.ex = ex
2288
 
2289
  def read(self, iprot):
2290
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2291
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2292
      return
2293
    iprot.readStructBegin()
2294
    while True:
2295
      (fname, ftype, fid) = iprot.readFieldBegin()
2296
      if ftype == TType.STOP:
2297
        break
2298
      if fid == 0:
2299
        if ftype == TType.STRUCT:
2300
          self.success = OrderInfo()
2301
          self.success.read(iprot)
2302
        else:
2303
          iprot.skip(ftype)
2304
      elif fid == 1:
2305
        if ftype == TType.STRUCT:
2306
          self.ex = TransactionServiceException()
2307
          self.ex.read(iprot)
2308
        else:
2309
          iprot.skip(ftype)
2310
      else:
2311
        iprot.skip(ftype)
2312
      iprot.readFieldEnd()
2313
    iprot.readStructEnd()
2314
 
2315
  def write(self, oprot):
2316
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2317
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2318
      return
2319
    oprot.writeStructBegin('getOrderInfo_result')
2320
    if self.success != None:
2321
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2322
      self.success.write(oprot)
2323
      oprot.writeFieldEnd()
2324
    if self.ex != None:
2325
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
2326
      self.ex.write(oprot)
2327
      oprot.writeFieldEnd()
2328
    oprot.writeFieldStop()
2329
    oprot.writeStructEnd()
2330
 
2331
  def __repr__(self):
2332
    L = ['%s=%r' % (key, value)
2333
      for key, value in self.__dict__.iteritems()]
2334
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2335
 
2336
  def __eq__(self, other):
2337
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2338
 
2339
  def __ne__(self, other):
2340
    return not (self == other)
2341
 
2342
class getShippingInfo_args:
2343
  """
2344
  Attributes:
2345
   - transactionId
2346
  """
2347
 
2348
  thrift_spec = (
2349
    None, # 0
2350
    (1, TType.I64, 'transactionId', None, None, ), # 1
2351
  )
2352
 
2353
  def __init__(self, transactionId=None,):
2354
    self.transactionId = transactionId
2355
 
2356
  def read(self, iprot):
2357
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2358
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2359
      return
2360
    iprot.readStructBegin()
2361
    while True:
2362
      (fname, ftype, fid) = iprot.readFieldBegin()
2363
      if ftype == TType.STOP:
2364
        break
2365
      if fid == 1:
2366
        if ftype == TType.I64:
2367
          self.transactionId = iprot.readI64();
2368
        else:
2369
          iprot.skip(ftype)
2370
      else:
2371
        iprot.skip(ftype)
2372
      iprot.readFieldEnd()
2373
    iprot.readStructEnd()
2374
 
2375
  def write(self, oprot):
2376
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2377
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2378
      return
2379
    oprot.writeStructBegin('getShippingInfo_args')
2380
    if self.transactionId != None:
2381
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
2382
      oprot.writeI64(self.transactionId)
2383
      oprot.writeFieldEnd()
2384
    oprot.writeFieldStop()
2385
    oprot.writeStructEnd()
2386
 
2387
  def __repr__(self):
2388
    L = ['%s=%r' % (key, value)
2389
      for key, value in self.__dict__.iteritems()]
2390
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2391
 
2392
  def __eq__(self, other):
2393
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2394
 
2395
  def __ne__(self, other):
2396
    return not (self == other)
2397
 
2398
class getShippingInfo_result:
2399
  """
2400
  Attributes:
2401
   - success
2402
   - ex
2403
  """
2404
 
2405
  thrift_spec = (
2406
    (0, TType.STRUCT, 'success', (ShipmentInfo, ShipmentInfo.thrift_spec), None, ), # 0
2407
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
2408
  )
2409
 
2410
  def __init__(self, success=None, ex=None,):
2411
    self.success = success
2412
    self.ex = ex
2413
 
2414
  def read(self, iprot):
2415
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2416
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2417
      return
2418
    iprot.readStructBegin()
2419
    while True:
2420
      (fname, ftype, fid) = iprot.readFieldBegin()
2421
      if ftype == TType.STOP:
2422
        break
2423
      if fid == 0:
2424
        if ftype == TType.STRUCT:
2425
          self.success = ShipmentInfo()
2426
          self.success.read(iprot)
2427
        else:
2428
          iprot.skip(ftype)
2429
      elif fid == 1:
2430
        if ftype == TType.STRUCT:
2431
          self.ex = TransactionServiceException()
2432
          self.ex.read(iprot)
2433
        else:
2434
          iprot.skip(ftype)
2435
      else:
2436
        iprot.skip(ftype)
2437
      iprot.readFieldEnd()
2438
    iprot.readStructEnd()
2439
 
2440
  def write(self, oprot):
2441
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2442
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2443
      return
2444
    oprot.writeStructBegin('getShippingInfo_result')
2445
    if self.success != None:
2446
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2447
      self.success.write(oprot)
2448
      oprot.writeFieldEnd()
2449
    if self.ex != None:
2450
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
2451
      self.ex.write(oprot)
2452
      oprot.writeFieldEnd()
2453
    oprot.writeFieldStop()
2454
    oprot.writeStructEnd()
2455
 
2456
  def __repr__(self):
2457
    L = ['%s=%r' % (key, value)
2458
      for key, value in self.__dict__.iteritems()]
2459
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2460
 
2461
  def __eq__(self, other):
2462
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2463
 
2464
  def __ne__(self, other):
2465
    return not (self == other)
2466
 
2467
class getBillingInfo_args:
2468
  """
2469
  Attributes:
2470
   - transactionId
2471
  """
2472
 
2473
  thrift_spec = (
2474
    None, # 0
2475
    (1, TType.I64, 'transactionId', None, None, ), # 1
2476
  )
2477
 
2478
  def __init__(self, transactionId=None,):
2479
    self.transactionId = transactionId
2480
 
2481
  def read(self, iprot):
2482
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2483
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2484
      return
2485
    iprot.readStructBegin()
2486
    while True:
2487
      (fname, ftype, fid) = iprot.readFieldBegin()
2488
      if ftype == TType.STOP:
2489
        break
2490
      if fid == 1:
2491
        if ftype == TType.I64:
2492
          self.transactionId = iprot.readI64();
2493
        else:
2494
          iprot.skip(ftype)
2495
      else:
2496
        iprot.skip(ftype)
2497
      iprot.readFieldEnd()
2498
    iprot.readStructEnd()
2499
 
2500
  def write(self, oprot):
2501
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2502
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2503
      return
2504
    oprot.writeStructBegin('getBillingInfo_args')
2505
    if self.transactionId != None:
2506
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
2507
      oprot.writeI64(self.transactionId)
2508
      oprot.writeFieldEnd()
2509
    oprot.writeFieldStop()
2510
    oprot.writeStructEnd()
2511
 
2512
  def __repr__(self):
2513
    L = ['%s=%r' % (key, value)
2514
      for key, value in self.__dict__.iteritems()]
2515
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2516
 
2517
  def __eq__(self, other):
2518
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2519
 
2520
  def __ne__(self, other):
2521
    return not (self == other)
2522
 
2523
class getBillingInfo_result:
2524
  """
2525
  Attributes:
2526
   - success
2527
   - ex
2528
  """
2529
 
2530
  thrift_spec = (
2531
    (0, TType.STRUCT, 'success', (BillingInfo, BillingInfo.thrift_spec), None, ), # 0
2532
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
2533
  )
2534
 
2535
  def __init__(self, success=None, ex=None,):
2536
    self.success = success
2537
    self.ex = ex
2538
 
2539
  def read(self, iprot):
2540
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2541
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2542
      return
2543
    iprot.readStructBegin()
2544
    while True:
2545
      (fname, ftype, fid) = iprot.readFieldBegin()
2546
      if ftype == TType.STOP:
2547
        break
2548
      if fid == 0:
2549
        if ftype == TType.STRUCT:
2550
          self.success = BillingInfo()
2551
          self.success.read(iprot)
2552
        else:
2553
          iprot.skip(ftype)
2554
      elif fid == 1:
2555
        if ftype == TType.STRUCT:
2556
          self.ex = TransactionServiceException()
2557
          self.ex.read(iprot)
2558
        else:
2559
          iprot.skip(ftype)
2560
      else:
2561
        iprot.skip(ftype)
2562
      iprot.readFieldEnd()
2563
    iprot.readStructEnd()
2564
 
2565
  def write(self, oprot):
2566
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2567
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2568
      return
2569
    oprot.writeStructBegin('getBillingInfo_result')
2570
    if self.success != None:
2571
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2572
      self.success.write(oprot)
2573
      oprot.writeFieldEnd()
2574
    if self.ex != None:
2575
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
2576
      self.ex.write(oprot)
2577
      oprot.writeFieldEnd()
2578
    oprot.writeFieldStop()
2579
    oprot.writeStructEnd()
2580
 
2581
  def __repr__(self):
2582
    L = ['%s=%r' % (key, value)
2583
      for key, value in self.__dict__.iteritems()]
2584
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2585
 
2586
  def __eq__(self, other):
2587
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2588
 
2589
  def __ne__(self, other):
2590
    return not (self == other)
2591
 
2592
class addBilling_args:
2593
  """
2594
  Attributes:
2595
   - tranactionId
2596
   - billing
2597
  """
2598
 
2599
  thrift_spec = (
2600
    None, # 0
2601
    (1, TType.I64, 'tranactionId', None, None, ), # 1
2602
    (2, TType.STRUCT, 'billing', (Billing, Billing.thrift_spec), None, ), # 2
2603
  )
2604
 
2605
  def __init__(self, tranactionId=None, billing=None,):
2606
    self.tranactionId = tranactionId
2607
    self.billing = billing
2608
 
2609
  def read(self, iprot):
2610
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2611
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2612
      return
2613
    iprot.readStructBegin()
2614
    while True:
2615
      (fname, ftype, fid) = iprot.readFieldBegin()
2616
      if ftype == TType.STOP:
2617
        break
2618
      if fid == 1:
2619
        if ftype == TType.I64:
2620
          self.tranactionId = iprot.readI64();
2621
        else:
2622
          iprot.skip(ftype)
2623
      elif fid == 2:
2624
        if ftype == TType.STRUCT:
2625
          self.billing = Billing()
2626
          self.billing.read(iprot)
2627
        else:
2628
          iprot.skip(ftype)
2629
      else:
2630
        iprot.skip(ftype)
2631
      iprot.readFieldEnd()
2632
    iprot.readStructEnd()
2633
 
2634
  def write(self, oprot):
2635
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2636
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2637
      return
2638
    oprot.writeStructBegin('addBilling_args')
2639
    if self.tranactionId != None:
2640
      oprot.writeFieldBegin('tranactionId', TType.I64, 1)
2641
      oprot.writeI64(self.tranactionId)
2642
      oprot.writeFieldEnd()
2643
    if self.billing != None:
2644
      oprot.writeFieldBegin('billing', TType.STRUCT, 2)
2645
      self.billing.write(oprot)
2646
      oprot.writeFieldEnd()
2647
    oprot.writeFieldStop()
2648
    oprot.writeStructEnd()
2649
 
2650
  def __repr__(self):
2651
    L = ['%s=%r' % (key, value)
2652
      for key, value in self.__dict__.iteritems()]
2653
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2654
 
2655
  def __eq__(self, other):
2656
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2657
 
2658
  def __ne__(self, other):
2659
    return not (self == other)
2660
 
2661
class addBilling_result:
2662
  """
2663
  Attributes:
2664
   - success
2665
   - ex
2666
  """
2667
 
2668
  thrift_spec = (
2669
    (0, TType.BOOL, 'success', None, None, ), # 0
2670
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
2671
  )
2672
 
2673
  def __init__(self, success=None, ex=None,):
2674
    self.success = success
2675
    self.ex = ex
2676
 
2677
  def read(self, iprot):
2678
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2679
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2680
      return
2681
    iprot.readStructBegin()
2682
    while True:
2683
      (fname, ftype, fid) = iprot.readFieldBegin()
2684
      if ftype == TType.STOP:
2685
        break
2686
      if fid == 0:
2687
        if ftype == TType.BOOL:
2688
          self.success = iprot.readBool();
2689
        else:
2690
          iprot.skip(ftype)
2691
      elif fid == 1:
2692
        if ftype == TType.STRUCT:
2693
          self.ex = TransactionServiceException()
2694
          self.ex.read(iprot)
2695
        else:
2696
          iprot.skip(ftype)
2697
      else:
2698
        iprot.skip(ftype)
2699
      iprot.readFieldEnd()
2700
    iprot.readStructEnd()
2701
 
2702
  def write(self, oprot):
2703
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2704
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2705
      return
2706
    oprot.writeStructBegin('addBilling_result')
2707
    if self.success != None:
2708
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2709
      oprot.writeBool(self.success)
2710
      oprot.writeFieldEnd()
2711
    if self.ex != None:
2712
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
2713
      self.ex.write(oprot)
2714
      oprot.writeFieldEnd()
2715
    oprot.writeFieldStop()
2716
    oprot.writeStructEnd()
2717
 
2718
  def __repr__(self):
2719
    L = ['%s=%r' % (key, value)
2720
      for key, value in self.__dict__.iteritems()]
2721
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2722
 
2723
  def __eq__(self, other):
2724
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2725
 
2726
  def __ne__(self, other):
2727
    return not (self == other)
2728
 
2729
class setShippingTracker_args:
2730
  """
2731
  Attributes:
2732
   - transactionId
2733
   - shippingId
2734
   - trackingId
2735
   - airwayBillNo
2736
   - provider
2737
  """
2738
 
2739
  thrift_spec = (
2740
    None, # 0
2741
    (1, TType.I64, 'transactionId', None, None, ), # 1
2742
    (2, TType.I64, 'shippingId', None, None, ), # 2
2743
    (3, TType.STRING, 'trackingId', None, None, ), # 3
2744
    (4, TType.STRING, 'airwayBillNo', None, None, ), # 4
2745
    (5, TType.STRING, 'provider', None, None, ), # 5
2746
  )
2747
 
2748
  def __init__(self, transactionId=None, shippingId=None, trackingId=None, airwayBillNo=None, provider=None,):
2749
    self.transactionId = transactionId
2750
    self.shippingId = shippingId
2751
    self.trackingId = trackingId
2752
    self.airwayBillNo = airwayBillNo
2753
    self.provider = provider
2754
 
2755
  def read(self, iprot):
2756
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2757
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2758
      return
2759
    iprot.readStructBegin()
2760
    while True:
2761
      (fname, ftype, fid) = iprot.readFieldBegin()
2762
      if ftype == TType.STOP:
2763
        break
2764
      if fid == 1:
2765
        if ftype == TType.I64:
2766
          self.transactionId = iprot.readI64();
2767
        else:
2768
          iprot.skip(ftype)
2769
      elif fid == 2:
2770
        if ftype == TType.I64:
2771
          self.shippingId = iprot.readI64();
2772
        else:
2773
          iprot.skip(ftype)
2774
      elif fid == 3:
2775
        if ftype == TType.STRING:
2776
          self.trackingId = iprot.readString();
2777
        else:
2778
          iprot.skip(ftype)
2779
      elif fid == 4:
2780
        if ftype == TType.STRING:
2781
          self.airwayBillNo = iprot.readString();
2782
        else:
2783
          iprot.skip(ftype)
2784
      elif fid == 5:
2785
        if ftype == TType.STRING:
2786
          self.provider = iprot.readString();
2787
        else:
2788
          iprot.skip(ftype)
2789
      else:
2790
        iprot.skip(ftype)
2791
      iprot.readFieldEnd()
2792
    iprot.readStructEnd()
2793
 
2794
  def write(self, oprot):
2795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2796
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2797
      return
2798
    oprot.writeStructBegin('setShippingTracker_args')
2799
    if self.transactionId != None:
2800
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
2801
      oprot.writeI64(self.transactionId)
2802
      oprot.writeFieldEnd()
2803
    if self.shippingId != None:
2804
      oprot.writeFieldBegin('shippingId', TType.I64, 2)
2805
      oprot.writeI64(self.shippingId)
2806
      oprot.writeFieldEnd()
2807
    if self.trackingId != None:
2808
      oprot.writeFieldBegin('trackingId', TType.STRING, 3)
2809
      oprot.writeString(self.trackingId)
2810
      oprot.writeFieldEnd()
2811
    if self.airwayBillNo != None:
2812
      oprot.writeFieldBegin('airwayBillNo', TType.STRING, 4)
2813
      oprot.writeString(self.airwayBillNo)
2814
      oprot.writeFieldEnd()
2815
    if self.provider != None:
2816
      oprot.writeFieldBegin('provider', TType.STRING, 5)
2817
      oprot.writeString(self.provider)
2818
      oprot.writeFieldEnd()
2819
    oprot.writeFieldStop()
2820
    oprot.writeStructEnd()
2821
 
2822
  def __repr__(self):
2823
    L = ['%s=%r' % (key, value)
2824
      for key, value in self.__dict__.iteritems()]
2825
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2826
 
2827
  def __eq__(self, other):
2828
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2829
 
2830
  def __ne__(self, other):
2831
    return not (self == other)
2832
 
2833
class setShippingTracker_result:
2834
  """
2835
  Attributes:
2836
   - success
2837
   - ex
2838
  """
2839
 
2840
  thrift_spec = (
2841
    (0, TType.BOOL, 'success', None, None, ), # 0
2842
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
2843
  )
2844
 
2845
  def __init__(self, success=None, ex=None,):
2846
    self.success = success
2847
    self.ex = ex
2848
 
2849
  def read(self, iprot):
2850
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2851
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2852
      return
2853
    iprot.readStructBegin()
2854
    while True:
2855
      (fname, ftype, fid) = iprot.readFieldBegin()
2856
      if ftype == TType.STOP:
2857
        break
2858
      if fid == 0:
2859
        if ftype == TType.BOOL:
2860
          self.success = iprot.readBool();
2861
        else:
2862
          iprot.skip(ftype)
2863
      elif fid == 1:
2864
        if ftype == TType.STRUCT:
2865
          self.ex = TransactionServiceException()
2866
          self.ex.read(iprot)
2867
        else:
2868
          iprot.skip(ftype)
2869
      else:
2870
        iprot.skip(ftype)
2871
      iprot.readFieldEnd()
2872
    iprot.readStructEnd()
2873
 
2874
  def write(self, oprot):
2875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2877
      return
2878
    oprot.writeStructBegin('setShippingTracker_result')
2879
    if self.success != None:
2880
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2881
      oprot.writeBool(self.success)
2882
      oprot.writeFieldEnd()
2883
    if self.ex != None:
2884
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
2885
      self.ex.write(oprot)
2886
      oprot.writeFieldEnd()
2887
    oprot.writeFieldStop()
2888
    oprot.writeStructEnd()
2889
 
2890
  def __repr__(self):
2891
    L = ['%s=%r' % (key, value)
2892
      for key, value in self.__dict__.iteritems()]
2893
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2894
 
2895
  def __eq__(self, other):
2896
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2897
 
2898
  def __ne__(self, other):
2899
    return not (self == other)
2900
 
2901
class setShippingDate_args:
2902
  """
2903
  Attributes:
2904
   - transactionId
2905
   - shippingId
2906
   - timestamp
2907
  """
2908
 
2909
  thrift_spec = (
2910
    None, # 0
2911
    (1, TType.I64, 'transactionId', None, None, ), # 1
2912
    (2, TType.I64, 'shippingId', None, None, ), # 2
2913
    (3, TType.I64, 'timestamp', None, None, ), # 3
2914
  )
2915
 
2916
  def __init__(self, transactionId=None, shippingId=None, timestamp=None,):
2917
    self.transactionId = transactionId
2918
    self.shippingId = shippingId
2919
    self.timestamp = timestamp
2920
 
2921
  def read(self, iprot):
2922
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2923
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2924
      return
2925
    iprot.readStructBegin()
2926
    while True:
2927
      (fname, ftype, fid) = iprot.readFieldBegin()
2928
      if ftype == TType.STOP:
2929
        break
2930
      if fid == 1:
2931
        if ftype == TType.I64:
2932
          self.transactionId = iprot.readI64();
2933
        else:
2934
          iprot.skip(ftype)
2935
      elif fid == 2:
2936
        if ftype == TType.I64:
2937
          self.shippingId = iprot.readI64();
2938
        else:
2939
          iprot.skip(ftype)
2940
      elif fid == 3:
2941
        if ftype == TType.I64:
2942
          self.timestamp = iprot.readI64();
2943
        else:
2944
          iprot.skip(ftype)
2945
      else:
2946
        iprot.skip(ftype)
2947
      iprot.readFieldEnd()
2948
    iprot.readStructEnd()
2949
 
2950
  def write(self, oprot):
2951
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2952
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2953
      return
2954
    oprot.writeStructBegin('setShippingDate_args')
2955
    if self.transactionId != None:
2956
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
2957
      oprot.writeI64(self.transactionId)
2958
      oprot.writeFieldEnd()
2959
    if self.shippingId != None:
2960
      oprot.writeFieldBegin('shippingId', TType.I64, 2)
2961
      oprot.writeI64(self.shippingId)
2962
      oprot.writeFieldEnd()
2963
    if self.timestamp != None:
2964
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
2965
      oprot.writeI64(self.timestamp)
2966
      oprot.writeFieldEnd()
2967
    oprot.writeFieldStop()
2968
    oprot.writeStructEnd()
2969
 
2970
  def __repr__(self):
2971
    L = ['%s=%r' % (key, value)
2972
      for key, value in self.__dict__.iteritems()]
2973
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2974
 
2975
  def __eq__(self, other):
2976
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2977
 
2978
  def __ne__(self, other):
2979
    return not (self == other)
2980
 
2981
class setShippingDate_result:
2982
  """
2983
  Attributes:
2984
   - success
2985
   - ex
2986
  """
2987
 
2988
  thrift_spec = (
2989
    (0, TType.BOOL, 'success', None, None, ), # 0
2990
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
2991
  )
2992
 
2993
  def __init__(self, success=None, ex=None,):
2994
    self.success = success
2995
    self.ex = ex
2996
 
2997
  def read(self, iprot):
2998
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2999
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3000
      return
3001
    iprot.readStructBegin()
3002
    while True:
3003
      (fname, ftype, fid) = iprot.readFieldBegin()
3004
      if ftype == TType.STOP:
3005
        break
3006
      if fid == 0:
3007
        if ftype == TType.BOOL:
3008
          self.success = iprot.readBool();
3009
        else:
3010
          iprot.skip(ftype)
3011
      elif fid == 1:
3012
        if ftype == TType.STRUCT:
3013
          self.ex = TransactionServiceException()
3014
          self.ex.read(iprot)
3015
        else:
3016
          iprot.skip(ftype)
3017
      else:
3018
        iprot.skip(ftype)
3019
      iprot.readFieldEnd()
3020
    iprot.readStructEnd()
3021
 
3022
  def write(self, oprot):
3023
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3024
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3025
      return
3026
    oprot.writeStructBegin('setShippingDate_result')
3027
    if self.success != None:
3028
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3029
      oprot.writeBool(self.success)
3030
      oprot.writeFieldEnd()
3031
    if self.ex != None:
3032
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3033
      self.ex.write(oprot)
3034
      oprot.writeFieldEnd()
3035
    oprot.writeFieldStop()
3036
    oprot.writeStructEnd()
3037
 
3038
  def __repr__(self):
3039
    L = ['%s=%r' % (key, value)
3040
      for key, value in self.__dict__.iteritems()]
3041
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3042
 
3043
  def __eq__(self, other):
3044
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3045
 
3046
  def __ne__(self, other):
3047
    return not (self == other)
3048
 
3049
class setDeliveryDate_args:
3050
  """
3051
  Attributes:
3052
   - transactionId
3053
   - shippingid
3054
   - timestamp
3055
  """
3056
 
3057
  thrift_spec = (
3058
    None, # 0
3059
    (1, TType.I64, 'transactionId', None, None, ), # 1
3060
    (2, TType.I64, 'shippingid', None, None, ), # 2
3061
    (3, TType.I64, 'timestamp', None, None, ), # 3
3062
  )
3063
 
3064
  def __init__(self, transactionId=None, shippingid=None, timestamp=None,):
3065
    self.transactionId = transactionId
3066
    self.shippingid = shippingid
3067
    self.timestamp = timestamp
3068
 
3069
  def read(self, iprot):
3070
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3071
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3072
      return
3073
    iprot.readStructBegin()
3074
    while True:
3075
      (fname, ftype, fid) = iprot.readFieldBegin()
3076
      if ftype == TType.STOP:
3077
        break
3078
      if fid == 1:
3079
        if ftype == TType.I64:
3080
          self.transactionId = iprot.readI64();
3081
        else:
3082
          iprot.skip(ftype)
3083
      elif fid == 2:
3084
        if ftype == TType.I64:
3085
          self.shippingid = iprot.readI64();
3086
        else:
3087
          iprot.skip(ftype)
3088
      elif fid == 3:
3089
        if ftype == TType.I64:
3090
          self.timestamp = iprot.readI64();
3091
        else:
3092
          iprot.skip(ftype)
3093
      else:
3094
        iprot.skip(ftype)
3095
      iprot.readFieldEnd()
3096
    iprot.readStructEnd()
3097
 
3098
  def write(self, oprot):
3099
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3100
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3101
      return
3102
    oprot.writeStructBegin('setDeliveryDate_args')
3103
    if self.transactionId != None:
3104
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
3105
      oprot.writeI64(self.transactionId)
3106
      oprot.writeFieldEnd()
3107
    if self.shippingid != None:
3108
      oprot.writeFieldBegin('shippingid', TType.I64, 2)
3109
      oprot.writeI64(self.shippingid)
3110
      oprot.writeFieldEnd()
3111
    if self.timestamp != None:
3112
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
3113
      oprot.writeI64(self.timestamp)
3114
      oprot.writeFieldEnd()
3115
    oprot.writeFieldStop()
3116
    oprot.writeStructEnd()
3117
 
3118
  def __repr__(self):
3119
    L = ['%s=%r' % (key, value)
3120
      for key, value in self.__dict__.iteritems()]
3121
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3122
 
3123
  def __eq__(self, other):
3124
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3125
 
3126
  def __ne__(self, other):
3127
    return not (self == other)
3128
 
3129
class setDeliveryDate_result:
3130
  """
3131
  Attributes:
3132
   - success
3133
   - ex
3134
  """
3135
 
3136
  thrift_spec = (
3137
    (0, TType.BOOL, 'success', None, None, ), # 0
3138
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
3139
  )
3140
 
3141
  def __init__(self, success=None, ex=None,):
3142
    self.success = success
3143
    self.ex = ex
3144
 
3145
  def read(self, iprot):
3146
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3147
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3148
      return
3149
    iprot.readStructBegin()
3150
    while True:
3151
      (fname, ftype, fid) = iprot.readFieldBegin()
3152
      if ftype == TType.STOP:
3153
        break
3154
      if fid == 0:
3155
        if ftype == TType.BOOL:
3156
          self.success = iprot.readBool();
3157
        else:
3158
          iprot.skip(ftype)
3159
      elif fid == 1:
3160
        if ftype == TType.STRUCT:
3161
          self.ex = TransactionServiceException()
3162
          self.ex.read(iprot)
3163
        else:
3164
          iprot.skip(ftype)
3165
      else:
3166
        iprot.skip(ftype)
3167
      iprot.readFieldEnd()
3168
    iprot.readStructEnd()
3169
 
3170
  def write(self, oprot):
3171
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3172
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3173
      return
3174
    oprot.writeStructBegin('setDeliveryDate_result')
3175
    if self.success != None:
3176
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3177
      oprot.writeBool(self.success)
3178
      oprot.writeFieldEnd()
3179
    if self.ex != None:
3180
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3181
      self.ex.write(oprot)
3182
      oprot.writeFieldEnd()
3183
    oprot.writeFieldStop()
3184
    oprot.writeStructEnd()
3185
 
3186
  def __repr__(self):
3187
    L = ['%s=%r' % (key, value)
3188
      for key, value in self.__dict__.iteritems()]
3189
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3190
 
3191
  def __eq__(self, other):
3192
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3193
 
3194
  def __ne__(self, other):
3195
    return not (self == other)
3196
 
3197
class changeShippingStatus_args:
3198
  """
3199
  Attributes:
3200
   - transactionId
3201
   - shippingId
3202
   - status
3203
   - description
3204
  """
3205
 
3206
  thrift_spec = (
3207
    None, # 0
3208
    (1, TType.I64, 'transactionId', None, None, ), # 1
3209
    (2, TType.I64, 'shippingId', None, None, ), # 2
3210
    (3, TType.I32, 'status', None, None, ), # 3
3211
    (4, TType.STRING, 'description', None, None, ), # 4
3212
  )
3213
 
3214
  def __init__(self, transactionId=None, shippingId=None, status=None, description=None,):
3215
    self.transactionId = transactionId
3216
    self.shippingId = shippingId
3217
    self.status = status
3218
    self.description = description
3219
 
3220
  def read(self, iprot):
3221
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3222
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3223
      return
3224
    iprot.readStructBegin()
3225
    while True:
3226
      (fname, ftype, fid) = iprot.readFieldBegin()
3227
      if ftype == TType.STOP:
3228
        break
3229
      if fid == 1:
3230
        if ftype == TType.I64:
3231
          self.transactionId = iprot.readI64();
3232
        else:
3233
          iprot.skip(ftype)
3234
      elif fid == 2:
3235
        if ftype == TType.I64:
3236
          self.shippingId = iprot.readI64();
3237
        else:
3238
          iprot.skip(ftype)
3239
      elif fid == 3:
3240
        if ftype == TType.I32:
3241
          self.status = iprot.readI32();
3242
        else:
3243
          iprot.skip(ftype)
3244
      elif fid == 4:
3245
        if ftype == TType.STRING:
3246
          self.description = iprot.readString();
3247
        else:
3248
          iprot.skip(ftype)
3249
      else:
3250
        iprot.skip(ftype)
3251
      iprot.readFieldEnd()
3252
    iprot.readStructEnd()
3253
 
3254
  def write(self, oprot):
3255
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3256
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3257
      return
3258
    oprot.writeStructBegin('changeShippingStatus_args')
3259
    if self.transactionId != None:
3260
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
3261
      oprot.writeI64(self.transactionId)
3262
      oprot.writeFieldEnd()
3263
    if self.shippingId != None:
3264
      oprot.writeFieldBegin('shippingId', TType.I64, 2)
3265
      oprot.writeI64(self.shippingId)
3266
      oprot.writeFieldEnd()
3267
    if self.status != None:
3268
      oprot.writeFieldBegin('status', TType.I32, 3)
3269
      oprot.writeI32(self.status)
3270
      oprot.writeFieldEnd()
3271
    if self.description != None:
3272
      oprot.writeFieldBegin('description', TType.STRING, 4)
3273
      oprot.writeString(self.description)
3274
      oprot.writeFieldEnd()
3275
    oprot.writeFieldStop()
3276
    oprot.writeStructEnd()
3277
 
3278
  def __repr__(self):
3279
    L = ['%s=%r' % (key, value)
3280
      for key, value in self.__dict__.iteritems()]
3281
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3282
 
3283
  def __eq__(self, other):
3284
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3285
 
3286
  def __ne__(self, other):
3287
    return not (self == other)
3288
 
3289
class changeShippingStatus_result:
3290
  """
3291
  Attributes:
3292
   - success
3293
   - ex
3294
  """
3295
 
3296
  thrift_spec = (
3297
    (0, TType.BOOL, 'success', None, None, ), # 0
3298
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
3299
  )
3300
 
3301
  def __init__(self, success=None, ex=None,):
3302
    self.success = success
3303
    self.ex = ex
3304
 
3305
  def read(self, iprot):
3306
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3307
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3308
      return
3309
    iprot.readStructBegin()
3310
    while True:
3311
      (fname, ftype, fid) = iprot.readFieldBegin()
3312
      if ftype == TType.STOP:
3313
        break
3314
      if fid == 0:
3315
        if ftype == TType.BOOL:
3316
          self.success = iprot.readBool();
3317
        else:
3318
          iprot.skip(ftype)
3319
      elif fid == 1:
3320
        if ftype == TType.STRUCT:
3321
          self.ex = TransactionServiceException()
3322
          self.ex.read(iprot)
3323
        else:
3324
          iprot.skip(ftype)
3325
      else:
3326
        iprot.skip(ftype)
3327
      iprot.readFieldEnd()
3328
    iprot.readStructEnd()
3329
 
3330
  def write(self, oprot):
3331
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3332
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3333
      return
3334
    oprot.writeStructBegin('changeShippingStatus_result')
3335
    if self.success != None:
3336
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3337
      oprot.writeBool(self.success)
3338
      oprot.writeFieldEnd()
3339
    if self.ex != None:
3340
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3341
      self.ex.write(oprot)
3342
      oprot.writeFieldEnd()
3343
    oprot.writeFieldStop()
3344
    oprot.writeStructEnd()
3345
 
3346
  def __repr__(self):
3347
    L = ['%s=%r' % (key, value)
3348
      for key, value in self.__dict__.iteritems()]
3349
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3350
 
3351
  def __eq__(self, other):
3352
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3353
 
3354
  def __ne__(self, other):
3355
    return not (self == other)
3356
 
3357
class addTrail_args:
3358
  """
3359
  Attributes:
3360
   - transactionId
3361
   - description
3362
  """
3363
 
3364
  thrift_spec = (
3365
    None, # 0
3366
    (1, TType.I64, 'transactionId', None, None, ), # 1
3367
    (2, TType.STRING, 'description', None, None, ), # 2
3368
  )
3369
 
3370
  def __init__(self, transactionId=None, description=None,):
3371
    self.transactionId = transactionId
3372
    self.description = description
3373
 
3374
  def read(self, iprot):
3375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3377
      return
3378
    iprot.readStructBegin()
3379
    while True:
3380
      (fname, ftype, fid) = iprot.readFieldBegin()
3381
      if ftype == TType.STOP:
3382
        break
3383
      if fid == 1:
3384
        if ftype == TType.I64:
3385
          self.transactionId = iprot.readI64();
3386
        else:
3387
          iprot.skip(ftype)
3388
      elif fid == 2:
3389
        if ftype == TType.STRING:
3390
          self.description = iprot.readString();
3391
        else:
3392
          iprot.skip(ftype)
3393
      else:
3394
        iprot.skip(ftype)
3395
      iprot.readFieldEnd()
3396
    iprot.readStructEnd()
3397
 
3398
  def write(self, oprot):
3399
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3400
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3401
      return
3402
    oprot.writeStructBegin('addTrail_args')
3403
    if self.transactionId != None:
3404
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
3405
      oprot.writeI64(self.transactionId)
3406
      oprot.writeFieldEnd()
3407
    if self.description != None:
3408
      oprot.writeFieldBegin('description', TType.STRING, 2)
3409
      oprot.writeString(self.description)
3410
      oprot.writeFieldEnd()
3411
    oprot.writeFieldStop()
3412
    oprot.writeStructEnd()
3413
 
3414
  def __repr__(self):
3415
    L = ['%s=%r' % (key, value)
3416
      for key, value in self.__dict__.iteritems()]
3417
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3418
 
3419
  def __eq__(self, other):
3420
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3421
 
3422
  def __ne__(self, other):
3423
    return not (self == other)
3424
 
3425
class addTrail_result:
3426
  """
3427
  Attributes:
3428
   - success
3429
   - ex
3430
  """
3431
 
3432
  thrift_spec = (
3433
    (0, TType.BOOL, 'success', None, None, ), # 0
3434
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
3435
  )
3436
 
3437
  def __init__(self, success=None, ex=None,):
3438
    self.success = success
3439
    self.ex = ex
3440
 
3441
  def read(self, iprot):
3442
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3443
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3444
      return
3445
    iprot.readStructBegin()
3446
    while True:
3447
      (fname, ftype, fid) = iprot.readFieldBegin()
3448
      if ftype == TType.STOP:
3449
        break
3450
      if fid == 0:
3451
        if ftype == TType.BOOL:
3452
          self.success = iprot.readBool();
3453
        else:
3454
          iprot.skip(ftype)
3455
      elif fid == 1:
3456
        if ftype == TType.STRUCT:
3457
          self.ex = TransactionServiceException()
3458
          self.ex.read(iprot)
3459
        else:
3460
          iprot.skip(ftype)
3461
      else:
3462
        iprot.skip(ftype)
3463
      iprot.readFieldEnd()
3464
    iprot.readStructEnd()
3465
 
3466
  def write(self, oprot):
3467
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3468
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3469
      return
3470
    oprot.writeStructBegin('addTrail_result')
3471
    if self.success != None:
3472
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3473
      oprot.writeBool(self.success)
3474
      oprot.writeFieldEnd()
3475
    if self.ex != None:
3476
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3477
      self.ex.write(oprot)
3478
      oprot.writeFieldEnd()
3479
    oprot.writeFieldStop()
3480
    oprot.writeStructEnd()
3481
 
3482
  def __repr__(self):
3483
    L = ['%s=%r' % (key, value)
3484
      for key, value in self.__dict__.iteritems()]
3485
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3486
 
3487
  def __eq__(self, other):
3488
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3489
 
3490
  def __ne__(self, other):
3491
    return not (self == other)
3492
 
3493