Subversion Repositories SmartDukaan

Rev

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

Rev 7308 Rev 7311
Line 1606... Line 1606...
1606
    Parameters:
1606
    Parameters:
1607
     - frcIdsToDelete
1607
     - frcIdsToDelete
1608
    """
1608
    """
1609
    pass
1609
    pass
1610
 
1610
 
-
 
1611
  def addAmazonOrder(self, amazonOrder):
-
 
1612
    """
-
 
1613
    Parameters:
-
 
1614
     - amazonOrder
-
 
1615
    """
-
 
1616
    pass
-
 
1617
 
-
 
1618
  def getOrderForAmazonOrderCode(self, orderId, status):
-
 
1619
    """
-
 
1620
    Parameters:
-
 
1621
     - orderId
-
 
1622
     - status
-
 
1623
    """
-
 
1624
    pass
-
 
1625
 
-
 
1626
  def getAmazonOrdersShipped(self, interval):
-
 
1627
    """
-
 
1628
    Parameters:
-
 
1629
     - interval
-
 
1630
    """
-
 
1631
    pass
-
 
1632
 
-
 
1633
  def getAmazonOrdersCancelled(self, interval):
-
 
1634
    """
-
 
1635
    Parameters:
-
 
1636
     - interval
-
 
1637
    """
-
 
1638
    pass
-
 
1639
 
1611
 
1640
 
1612
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1641
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1613
  def __init__(self, iprot, oprot=None):
1642
  def __init__(self, iprot, oprot=None):
1614
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1643
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1615
 
1644
 
Line 7375... Line 7404...
7375
    self._iprot.readMessageEnd()
7404
    self._iprot.readMessageEnd()
7376
    if result.success is not None:
7405
    if result.success is not None:
7377
      return result.success
7406
      return result.success
7378
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteFrcs failed: unknown result");
7407
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteFrcs failed: unknown result");
7379
 
7408
 
-
 
7409
  def addAmazonOrder(self, amazonOrder):
-
 
7410
    """
-
 
7411
    Parameters:
-
 
7412
     - amazonOrder
-
 
7413
    """
-
 
7414
    self.send_addAmazonOrder(amazonOrder)
-
 
7415
    self.recv_addAmazonOrder()
-
 
7416
 
-
 
7417
  def send_addAmazonOrder(self, amazonOrder):
-
 
7418
    self._oprot.writeMessageBegin('addAmazonOrder', TMessageType.CALL, self._seqid)
-
 
7419
    args = addAmazonOrder_args()
-
 
7420
    args.amazonOrder = amazonOrder
-
 
7421
    args.write(self._oprot)
-
 
7422
    self._oprot.writeMessageEnd()
-
 
7423
    self._oprot.trans.flush()
-
 
7424
 
-
 
7425
  def recv_addAmazonOrder(self, ):
-
 
7426
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
7427
    if mtype == TMessageType.EXCEPTION:
-
 
7428
      x = TApplicationException()
-
 
7429
      x.read(self._iprot)
-
 
7430
      self._iprot.readMessageEnd()
-
 
7431
      raise x
-
 
7432
    result = addAmazonOrder_result()
-
 
7433
    result.read(self._iprot)
-
 
7434
    self._iprot.readMessageEnd()
-
 
7435
    return
-
 
7436
 
-
 
7437
  def getOrderForAmazonOrderCode(self, orderId, status):
-
 
7438
    """
-
 
7439
    Parameters:
-
 
7440
     - orderId
-
 
7441
     - status
-
 
7442
    """
-
 
7443
    self.send_getOrderForAmazonOrderCode(orderId, status)
-
 
7444
    return self.recv_getOrderForAmazonOrderCode()
-
 
7445
 
-
 
7446
  def send_getOrderForAmazonOrderCode(self, orderId, status):
-
 
7447
    self._oprot.writeMessageBegin('getOrderForAmazonOrderCode', TMessageType.CALL, self._seqid)
-
 
7448
    args = getOrderForAmazonOrderCode_args()
-
 
7449
    args.orderId = orderId
-
 
7450
    args.status = status
-
 
7451
    args.write(self._oprot)
-
 
7452
    self._oprot.writeMessageEnd()
-
 
7453
    self._oprot.trans.flush()
-
 
7454
 
-
 
7455
  def recv_getOrderForAmazonOrderCode(self, ):
-
 
7456
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
7457
    if mtype == TMessageType.EXCEPTION:
-
 
7458
      x = TApplicationException()
-
 
7459
      x.read(self._iprot)
-
 
7460
      self._iprot.readMessageEnd()
-
 
7461
      raise x
-
 
7462
    result = getOrderForAmazonOrderCode_result()
-
 
7463
    result.read(self._iprot)
-
 
7464
    self._iprot.readMessageEnd()
-
 
7465
    if result.success is not None:
-
 
7466
      return result.success
-
 
7467
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderForAmazonOrderCode failed: unknown result");
-
 
7468
 
-
 
7469
  def getAmazonOrdersShipped(self, interval):
-
 
7470
    """
-
 
7471
    Parameters:
-
 
7472
     - interval
-
 
7473
    """
-
 
7474
    self.send_getAmazonOrdersShipped(interval)
-
 
7475
    return self.recv_getAmazonOrdersShipped()
-
 
7476
 
-
 
7477
  def send_getAmazonOrdersShipped(self, interval):
-
 
7478
    self._oprot.writeMessageBegin('getAmazonOrdersShipped', TMessageType.CALL, self._seqid)
-
 
7479
    args = getAmazonOrdersShipped_args()
-
 
7480
    args.interval = interval
-
 
7481
    args.write(self._oprot)
-
 
7482
    self._oprot.writeMessageEnd()
-
 
7483
    self._oprot.trans.flush()
-
 
7484
 
-
 
7485
  def recv_getAmazonOrdersShipped(self, ):
-
 
7486
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
7487
    if mtype == TMessageType.EXCEPTION:
-
 
7488
      x = TApplicationException()
-
 
7489
      x.read(self._iprot)
-
 
7490
      self._iprot.readMessageEnd()
-
 
7491
      raise x
-
 
7492
    result = getAmazonOrdersShipped_result()
-
 
7493
    result.read(self._iprot)
-
 
7494
    self._iprot.readMessageEnd()
-
 
7495
    if result.success is not None:
-
 
7496
      return result.success
-
 
7497
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonOrdersShipped failed: unknown result");
-
 
7498
 
-
 
7499
  def getAmazonOrdersCancelled(self, interval):
-
 
7500
    """
-
 
7501
    Parameters:
-
 
7502
     - interval
-
 
7503
    """
-
 
7504
    self.send_getAmazonOrdersCancelled(interval)
-
 
7505
    return self.recv_getAmazonOrdersCancelled()
-
 
7506
 
-
 
7507
  def send_getAmazonOrdersCancelled(self, interval):
-
 
7508
    self._oprot.writeMessageBegin('getAmazonOrdersCancelled', TMessageType.CALL, self._seqid)
-
 
7509
    args = getAmazonOrdersCancelled_args()
-
 
7510
    args.interval = interval
-
 
7511
    args.write(self._oprot)
-
 
7512
    self._oprot.writeMessageEnd()
-
 
7513
    self._oprot.trans.flush()
-
 
7514
 
-
 
7515
  def recv_getAmazonOrdersCancelled(self, ):
-
 
7516
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
7517
    if mtype == TMessageType.EXCEPTION:
-
 
7518
      x = TApplicationException()
-
 
7519
      x.read(self._iprot)
-
 
7520
      self._iprot.readMessageEnd()
-
 
7521
      raise x
-
 
7522
    result = getAmazonOrdersCancelled_result()
-
 
7523
    result.read(self._iprot)
-
 
7524
    self._iprot.readMessageEnd()
-
 
7525
    if result.success is not None:
-
 
7526
      return result.success
-
 
7527
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonOrdersCancelled failed: unknown result");
-
 
7528
 
7380
 
7529
 
7381
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
7530
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
7382
  def __init__(self, handler):
7531
  def __init__(self, handler):
7383
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
7532
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
7384
    self._processMap["createTransaction"] = Processor.process_createTransaction
7533
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 7548... Line 7697...
7548
    self._processMap["topupCompanyWallet"] = Processor.process_topupCompanyWallet
7697
    self._processMap["topupCompanyWallet"] = Processor.process_topupCompanyWallet
7549
    self._processMap["getWalletBalanceForCompany"] = Processor.process_getWalletBalanceForCompany
7698
    self._processMap["getWalletBalanceForCompany"] = Processor.process_getWalletBalanceForCompany
7550
    self._processMap["getSourceDetail"] = Processor.process_getSourceDetail
7699
    self._processMap["getSourceDetail"] = Processor.process_getSourceDetail
7551
    self._processMap["getAllCircles"] = Processor.process_getAllCircles
7700
    self._processMap["getAllCircles"] = Processor.process_getAllCircles
7552
    self._processMap["deleteFrcs"] = Processor.process_deleteFrcs
7701
    self._processMap["deleteFrcs"] = Processor.process_deleteFrcs
-
 
7702
    self._processMap["addAmazonOrder"] = Processor.process_addAmazonOrder
-
 
7703
    self._processMap["getOrderForAmazonOrderCode"] = Processor.process_getOrderForAmazonOrderCode
-
 
7704
    self._processMap["getAmazonOrdersShipped"] = Processor.process_getAmazonOrdersShipped
-
 
7705
    self._processMap["getAmazonOrdersCancelled"] = Processor.process_getAmazonOrdersCancelled
7553
 
7706
 
7554
  def process(self, iprot, oprot):
7707
  def process(self, iprot, oprot):
7555
    (name, type, seqid) = iprot.readMessageBegin()
7708
    (name, type, seqid) = iprot.readMessageBegin()
7556
    if name not in self._processMap:
7709
    if name not in self._processMap:
7557
      iprot.skip(TType.STRUCT)
7710
      iprot.skip(TType.STRUCT)
Line 9717... Line 9870...
9717
    oprot.writeMessageBegin("deleteFrcs", TMessageType.REPLY, seqid)
9870
    oprot.writeMessageBegin("deleteFrcs", TMessageType.REPLY, seqid)
9718
    result.write(oprot)
9871
    result.write(oprot)
9719
    oprot.writeMessageEnd()
9872
    oprot.writeMessageEnd()
9720
    oprot.trans.flush()
9873
    oprot.trans.flush()
9721
 
9874
 
-
 
9875
  def process_addAmazonOrder(self, seqid, iprot, oprot):
-
 
9876
    args = addAmazonOrder_args()
-
 
9877
    args.read(iprot)
-
 
9878
    iprot.readMessageEnd()
-
 
9879
    result = addAmazonOrder_result()
-
 
9880
    self._handler.addAmazonOrder(args.amazonOrder)
-
 
9881
    oprot.writeMessageBegin("addAmazonOrder", TMessageType.REPLY, seqid)
-
 
9882
    result.write(oprot)
-
 
9883
    oprot.writeMessageEnd()
-
 
9884
    oprot.trans.flush()
-
 
9885
 
-
 
9886
  def process_getOrderForAmazonOrderCode(self, seqid, iprot, oprot):
-
 
9887
    args = getOrderForAmazonOrderCode_args()
-
 
9888
    args.read(iprot)
-
 
9889
    iprot.readMessageEnd()
-
 
9890
    result = getOrderForAmazonOrderCode_result()
-
 
9891
    result.success = self._handler.getOrderForAmazonOrderCode(args.orderId, args.status)
-
 
9892
    oprot.writeMessageBegin("getOrderForAmazonOrderCode", TMessageType.REPLY, seqid)
-
 
9893
    result.write(oprot)
-
 
9894
    oprot.writeMessageEnd()
-
 
9895
    oprot.trans.flush()
-
 
9896
 
-
 
9897
  def process_getAmazonOrdersShipped(self, seqid, iprot, oprot):
-
 
9898
    args = getAmazonOrdersShipped_args()
-
 
9899
    args.read(iprot)
-
 
9900
    iprot.readMessageEnd()
-
 
9901
    result = getAmazonOrdersShipped_result()
-
 
9902
    result.success = self._handler.getAmazonOrdersShipped(args.interval)
-
 
9903
    oprot.writeMessageBegin("getAmazonOrdersShipped", TMessageType.REPLY, seqid)
-
 
9904
    result.write(oprot)
-
 
9905
    oprot.writeMessageEnd()
-
 
9906
    oprot.trans.flush()
-
 
9907
 
-
 
9908
  def process_getAmazonOrdersCancelled(self, seqid, iprot, oprot):
-
 
9909
    args = getAmazonOrdersCancelled_args()
-
 
9910
    args.read(iprot)
-
 
9911
    iprot.readMessageEnd()
-
 
9912
    result = getAmazonOrdersCancelled_result()
-
 
9913
    result.success = self._handler.getAmazonOrdersCancelled(args.interval)
-
 
9914
    oprot.writeMessageBegin("getAmazonOrdersCancelled", TMessageType.REPLY, seqid)
-
 
9915
    result.write(oprot)
-
 
9916
    oprot.writeMessageEnd()
-
 
9917
    oprot.trans.flush()
-
 
9918
 
9722
 
9919
 
9723
# HELPER FUNCTIONS AND STRUCTURES
9920
# HELPER FUNCTIONS AND STRUCTURES
9724
 
9921
 
9725
class createTransaction_args:
9922
class createTransaction_args:
9726
  """
9923
  """
Line 33348... Line 33545...
33348
      oprot.writeFieldEnd()
33545
      oprot.writeFieldEnd()
33349
    oprot.writeFieldStop()
33546
    oprot.writeFieldStop()
33350
    oprot.writeStructEnd()
33547
    oprot.writeStructEnd()
33351
 
33548
 
33352
  def validate(self):
33549
  def validate(self):
-
 
33550
    return
-
 
33551
 
-
 
33552
 
-
 
33553
  def __repr__(self):
-
 
33554
    L = ['%s=%r' % (key, value)
-
 
33555
      for key, value in self.__dict__.iteritems()]
-
 
33556
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
33557
 
-
 
33558
  def __eq__(self, other):
-
 
33559
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
33560
 
-
 
33561
  def __ne__(self, other):
-
 
33562
    return not (self == other)
-
 
33563
 
-
 
33564
class addAmazonOrder_args:
-
 
33565
  """
-
 
33566
  Attributes:
-
 
33567
   - amazonOrder
-
 
33568
  """
-
 
33569
 
-
 
33570
  thrift_spec = (
-
 
33571
    None, # 0
-
 
33572
    (1, TType.STRUCT, 'amazonOrder', (AmazonOrder, AmazonOrder.thrift_spec), None, ), # 1
-
 
33573
  )
-
 
33574
 
-
 
33575
  def __init__(self, amazonOrder=None,):
-
 
33576
    self.amazonOrder = amazonOrder
-
 
33577
 
-
 
33578
  def read(self, iprot):
-
 
33579
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
33580
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
33581
      return
-
 
33582
    iprot.readStructBegin()
-
 
33583
    while True:
-
 
33584
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
33585
      if ftype == TType.STOP:
-
 
33586
        break
-
 
33587
      if fid == 1:
-
 
33588
        if ftype == TType.STRUCT:
-
 
33589
          self.amazonOrder = AmazonOrder()
-
 
33590
          self.amazonOrder.read(iprot)
-
 
33591
        else:
-
 
33592
          iprot.skip(ftype)
-
 
33593
      else:
-
 
33594
        iprot.skip(ftype)
-
 
33595
      iprot.readFieldEnd()
-
 
33596
    iprot.readStructEnd()
-
 
33597
 
-
 
33598
  def write(self, oprot):
-
 
33599
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
33600
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
33601
      return
-
 
33602
    oprot.writeStructBegin('addAmazonOrder_args')
-
 
33603
    if self.amazonOrder is not None:
-
 
33604
      oprot.writeFieldBegin('amazonOrder', TType.STRUCT, 1)
-
 
33605
      self.amazonOrder.write(oprot)
-
 
33606
      oprot.writeFieldEnd()
-
 
33607
    oprot.writeFieldStop()
-
 
33608
    oprot.writeStructEnd()
-
 
33609
 
-
 
33610
  def validate(self):
-
 
33611
    return
-
 
33612
 
-
 
33613
 
-
 
33614
  def __repr__(self):
-
 
33615
    L = ['%s=%r' % (key, value)
-
 
33616
      for key, value in self.__dict__.iteritems()]
-
 
33617
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
33618
 
-
 
33619
  def __eq__(self, other):
-
 
33620
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
33621
 
-
 
33622
  def __ne__(self, other):
-
 
33623
    return not (self == other)
-
 
33624
 
-
 
33625
class addAmazonOrder_result:
-
 
33626
 
-
 
33627
  thrift_spec = (
-
 
33628
  )
-
 
33629
 
-
 
33630
  def read(self, iprot):
-
 
33631
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
33632
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
33633
      return
-
 
33634
    iprot.readStructBegin()
-
 
33635
    while True:
-
 
33636
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
33637
      if ftype == TType.STOP:
-
 
33638
        break
-
 
33639
      else:
-
 
33640
        iprot.skip(ftype)
-
 
33641
      iprot.readFieldEnd()
-
 
33642
    iprot.readStructEnd()
-
 
33643
 
-
 
33644
  def write(self, oprot):
-
 
33645
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
33646
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
33647
      return
-
 
33648
    oprot.writeStructBegin('addAmazonOrder_result')
-
 
33649
    oprot.writeFieldStop()
-
 
33650
    oprot.writeStructEnd()
-
 
33651
 
-
 
33652
  def validate(self):
-
 
33653
    return
-
 
33654
 
-
 
33655
 
-
 
33656
  def __repr__(self):
-
 
33657
    L = ['%s=%r' % (key, value)
-
 
33658
      for key, value in self.__dict__.iteritems()]
-
 
33659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
33660
 
-
 
33661
  def __eq__(self, other):
-
 
33662
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
33663
 
-
 
33664
  def __ne__(self, other):
-
 
33665
    return not (self == other)
-
 
33666
 
-
 
33667
class getOrderForAmazonOrderCode_args:
-
 
33668
  """
-
 
33669
  Attributes:
-
 
33670
   - orderId
-
 
33671
   - status
-
 
33672
  """
-
 
33673
 
-
 
33674
  thrift_spec = (
-
 
33675
    None, # 0
-
 
33676
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
33677
    (2, TType.STRING, 'status', None, None, ), # 2
-
 
33678
  )
-
 
33679
 
-
 
33680
  def __init__(self, orderId=None, status=None,):
-
 
33681
    self.orderId = orderId
-
 
33682
    self.status = status
-
 
33683
 
-
 
33684
  def read(self, iprot):
-
 
33685
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
33686
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
33687
      return
-
 
33688
    iprot.readStructBegin()
-
 
33689
    while True:
-
 
33690
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
33691
      if ftype == TType.STOP:
-
 
33692
        break
-
 
33693
      if fid == 1:
-
 
33694
        if ftype == TType.I64:
-
 
33695
          self.orderId = iprot.readI64();
-
 
33696
        else:
-
 
33697
          iprot.skip(ftype)
-
 
33698
      elif fid == 2:
-
 
33699
        if ftype == TType.STRING:
-
 
33700
          self.status = iprot.readString();
-
 
33701
        else:
-
 
33702
          iprot.skip(ftype)
-
 
33703
      else:
-
 
33704
        iprot.skip(ftype)
-
 
33705
      iprot.readFieldEnd()
-
 
33706
    iprot.readStructEnd()
-
 
33707
 
-
 
33708
  def write(self, oprot):
-
 
33709
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
33710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
33711
      return
-
 
33712
    oprot.writeStructBegin('getOrderForAmazonOrderCode_args')
-
 
33713
    if self.orderId is not None:
-
 
33714
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
33715
      oprot.writeI64(self.orderId)
-
 
33716
      oprot.writeFieldEnd()
-
 
33717
    if self.status is not None:
-
 
33718
      oprot.writeFieldBegin('status', TType.STRING, 2)
-
 
33719
      oprot.writeString(self.status)
-
 
33720
      oprot.writeFieldEnd()
-
 
33721
    oprot.writeFieldStop()
-
 
33722
    oprot.writeStructEnd()
-
 
33723
 
-
 
33724
  def validate(self):
-
 
33725
    return
-
 
33726
 
-
 
33727
 
-
 
33728
  def __repr__(self):
-
 
33729
    L = ['%s=%r' % (key, value)
-
 
33730
      for key, value in self.__dict__.iteritems()]
-
 
33731
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
33732
 
-
 
33733
  def __eq__(self, other):
-
 
33734
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
33735
 
-
 
33736
  def __ne__(self, other):
-
 
33737
    return not (self == other)
-
 
33738
 
-
 
33739
class getOrderForAmazonOrderCode_result:
-
 
33740
  """
-
 
33741
  Attributes:
-
 
33742
   - success
-
 
33743
  """
-
 
33744
 
-
 
33745
  thrift_spec = (
-
 
33746
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
33747
  )
-
 
33748
 
-
 
33749
  def __init__(self, success=None,):
-
 
33750
    self.success = success
-
 
33751
 
-
 
33752
  def read(self, iprot):
-
 
33753
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
33754
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
33755
      return
-
 
33756
    iprot.readStructBegin()
-
 
33757
    while True:
-
 
33758
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
33759
      if ftype == TType.STOP:
-
 
33760
        break
-
 
33761
      if fid == 0:
-
 
33762
        if ftype == TType.BOOL:
-
 
33763
          self.success = iprot.readBool();
-
 
33764
        else:
-
 
33765
          iprot.skip(ftype)
-
 
33766
      else:
-
 
33767
        iprot.skip(ftype)
-
 
33768
      iprot.readFieldEnd()
-
 
33769
    iprot.readStructEnd()
-
 
33770
 
-
 
33771
  def write(self, oprot):
-
 
33772
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
33773
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
33774
      return
-
 
33775
    oprot.writeStructBegin('getOrderForAmazonOrderCode_result')
-
 
33776
    if self.success is not None:
-
 
33777
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
33778
      oprot.writeBool(self.success)
-
 
33779
      oprot.writeFieldEnd()
-
 
33780
    oprot.writeFieldStop()
-
 
33781
    oprot.writeStructEnd()
-
 
33782
 
-
 
33783
  def validate(self):
-
 
33784
    return
-
 
33785
 
-
 
33786
 
-
 
33787
  def __repr__(self):
-
 
33788
    L = ['%s=%r' % (key, value)
-
 
33789
      for key, value in self.__dict__.iteritems()]
-
 
33790
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
33791
 
-
 
33792
  def __eq__(self, other):
-
 
33793
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
33794
 
-
 
33795
  def __ne__(self, other):
-
 
33796
    return not (self == other)
-
 
33797
 
-
 
33798
class getAmazonOrdersShipped_args:
-
 
33799
  """
-
 
33800
  Attributes:
-
 
33801
   - interval
-
 
33802
  """
-
 
33803
 
-
 
33804
  thrift_spec = (
-
 
33805
    None, # 0
-
 
33806
    (1, TType.I64, 'interval', None, None, ), # 1
-
 
33807
  )
-
 
33808
 
-
 
33809
  def __init__(self, interval=None,):
-
 
33810
    self.interval = interval
-
 
33811
 
-
 
33812
  def read(self, iprot):
-
 
33813
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
33814
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
33815
      return
-
 
33816
    iprot.readStructBegin()
-
 
33817
    while True:
-
 
33818
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
33819
      if ftype == TType.STOP:
-
 
33820
        break
-
 
33821
      if fid == 1:
-
 
33822
        if ftype == TType.I64:
-
 
33823
          self.interval = iprot.readI64();
-
 
33824
        else:
-
 
33825
          iprot.skip(ftype)
-
 
33826
      else:
-
 
33827
        iprot.skip(ftype)
-
 
33828
      iprot.readFieldEnd()
-
 
33829
    iprot.readStructEnd()
-
 
33830
 
-
 
33831
  def write(self, oprot):
-
 
33832
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
33833
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
33834
      return
-
 
33835
    oprot.writeStructBegin('getAmazonOrdersShipped_args')
-
 
33836
    if self.interval is not None:
-
 
33837
      oprot.writeFieldBegin('interval', TType.I64, 1)
-
 
33838
      oprot.writeI64(self.interval)
-
 
33839
      oprot.writeFieldEnd()
-
 
33840
    oprot.writeFieldStop()
-
 
33841
    oprot.writeStructEnd()
-
 
33842
 
-
 
33843
  def validate(self):
-
 
33844
    return
-
 
33845
 
-
 
33846
 
-
 
33847
  def __repr__(self):
-
 
33848
    L = ['%s=%r' % (key, value)
-
 
33849
      for key, value in self.__dict__.iteritems()]
-
 
33850
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
33851
 
-
 
33852
  def __eq__(self, other):
-
 
33853
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
33854
 
-
 
33855
  def __ne__(self, other):
-
 
33856
    return not (self == other)
-
 
33857
 
-
 
33858
class getAmazonOrdersShipped_result:
-
 
33859
  """
-
 
33860
  Attributes:
-
 
33861
   - success
-
 
33862
  """
-
 
33863
 
-
 
33864
  thrift_spec = (
-
 
33865
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
-
 
33866
  )
-
 
33867
 
-
 
33868
  def __init__(self, success=None,):
-
 
33869
    self.success = success
-
 
33870
 
-
 
33871
  def read(self, iprot):
-
 
33872
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
33873
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
33874
      return
-
 
33875
    iprot.readStructBegin()
-
 
33876
    while True:
-
 
33877
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
33878
      if ftype == TType.STOP:
-
 
33879
        break
-
 
33880
      if fid == 0:
-
 
33881
        if ftype == TType.LIST:
-
 
33882
          self.success = []
-
 
33883
          (_etype782, _size779) = iprot.readListBegin()
-
 
33884
          for _i783 in xrange(_size779):
-
 
33885
            _elem784 = Order()
-
 
33886
            _elem784.read(iprot)
-
 
33887
            self.success.append(_elem784)
-
 
33888
          iprot.readListEnd()
-
 
33889
        else:
-
 
33890
          iprot.skip(ftype)
-
 
33891
      else:
-
 
33892
        iprot.skip(ftype)
-
 
33893
      iprot.readFieldEnd()
-
 
33894
    iprot.readStructEnd()
-
 
33895
 
-
 
33896
  def write(self, oprot):
-
 
33897
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
33898
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
33899
      return
-
 
33900
    oprot.writeStructBegin('getAmazonOrdersShipped_result')
-
 
33901
    if self.success is not None:
-
 
33902
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
33903
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
33904
      for iter785 in self.success:
-
 
33905
        iter785.write(oprot)
-
 
33906
      oprot.writeListEnd()
-
 
33907
      oprot.writeFieldEnd()
-
 
33908
    oprot.writeFieldStop()
-
 
33909
    oprot.writeStructEnd()
-
 
33910
 
-
 
33911
  def validate(self):
-
 
33912
    return
-
 
33913
 
-
 
33914
 
-
 
33915
  def __repr__(self):
-
 
33916
    L = ['%s=%r' % (key, value)
-
 
33917
      for key, value in self.__dict__.iteritems()]
-
 
33918
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
33919
 
-
 
33920
  def __eq__(self, other):
-
 
33921
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
33922
 
-
 
33923
  def __ne__(self, other):
-
 
33924
    return not (self == other)
-
 
33925
 
-
 
33926
class getAmazonOrdersCancelled_args:
-
 
33927
  """
-
 
33928
  Attributes:
-
 
33929
   - interval
-
 
33930
  """
-
 
33931
 
-
 
33932
  thrift_spec = (
-
 
33933
    None, # 0
-
 
33934
    (1, TType.I64, 'interval', None, None, ), # 1
-
 
33935
  )
-
 
33936
 
-
 
33937
  def __init__(self, interval=None,):
-
 
33938
    self.interval = interval
-
 
33939
 
-
 
33940
  def read(self, iprot):
-
 
33941
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
33942
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
33943
      return
-
 
33944
    iprot.readStructBegin()
-
 
33945
    while True:
-
 
33946
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
33947
      if ftype == TType.STOP:
-
 
33948
        break
-
 
33949
      if fid == 1:
-
 
33950
        if ftype == TType.I64:
-
 
33951
          self.interval = iprot.readI64();
-
 
33952
        else:
-
 
33953
          iprot.skip(ftype)
-
 
33954
      else:
-
 
33955
        iprot.skip(ftype)
-
 
33956
      iprot.readFieldEnd()
-
 
33957
    iprot.readStructEnd()
-
 
33958
 
-
 
33959
  def write(self, oprot):
-
 
33960
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
33961
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
33962
      return
-
 
33963
    oprot.writeStructBegin('getAmazonOrdersCancelled_args')
-
 
33964
    if self.interval is not None:
-
 
33965
      oprot.writeFieldBegin('interval', TType.I64, 1)
-
 
33966
      oprot.writeI64(self.interval)
-
 
33967
      oprot.writeFieldEnd()
-
 
33968
    oprot.writeFieldStop()
-
 
33969
    oprot.writeStructEnd()
-
 
33970
 
-
 
33971
  def validate(self):
-
 
33972
    return
-
 
33973
 
-
 
33974
 
-
 
33975
  def __repr__(self):
-
 
33976
    L = ['%s=%r' % (key, value)
-
 
33977
      for key, value in self.__dict__.iteritems()]
-
 
33978
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
33979
 
-
 
33980
  def __eq__(self, other):
-
 
33981
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
33982
 
-
 
33983
  def __ne__(self, other):
-
 
33984
    return not (self == other)
-
 
33985
 
-
 
33986
class getAmazonOrdersCancelled_result:
-
 
33987
  """
-
 
33988
  Attributes:
-
 
33989
   - success
-
 
33990
  """
-
 
33991
 
-
 
33992
  thrift_spec = (
-
 
33993
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
-
 
33994
  )
-
 
33995
 
-
 
33996
  def __init__(self, success=None,):
-
 
33997
    self.success = success
-
 
33998
 
-
 
33999
  def read(self, iprot):
-
 
34000
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
34001
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
34002
      return
-
 
34003
    iprot.readStructBegin()
-
 
34004
    while True:
-
 
34005
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
34006
      if ftype == TType.STOP:
-
 
34007
        break
-
 
34008
      if fid == 0:
-
 
34009
        if ftype == TType.LIST:
-
 
34010
          self.success = []
-
 
34011
          (_etype789, _size786) = iprot.readListBegin()
-
 
34012
          for _i790 in xrange(_size786):
-
 
34013
            _elem791 = Order()
-
 
34014
            _elem791.read(iprot)
-
 
34015
            self.success.append(_elem791)
-
 
34016
          iprot.readListEnd()
-
 
34017
        else:
-
 
34018
          iprot.skip(ftype)
-
 
34019
      else:
-
 
34020
        iprot.skip(ftype)
-
 
34021
      iprot.readFieldEnd()
-
 
34022
    iprot.readStructEnd()
-
 
34023
 
-
 
34024
  def write(self, oprot):
-
 
34025
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
34026
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
34027
      return
-
 
34028
    oprot.writeStructBegin('getAmazonOrdersCancelled_result')
-
 
34029
    if self.success is not None:
-
 
34030
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
34031
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
34032
      for iter792 in self.success:
-
 
34033
        iter792.write(oprot)
-
 
34034
      oprot.writeListEnd()
-
 
34035
      oprot.writeFieldEnd()
-
 
34036
    oprot.writeFieldStop()
-
 
34037
    oprot.writeStructEnd()
-
 
34038
 
-
 
34039
  def validate(self):
33353
    return
34040
    return
33354
 
34041
 
33355
 
34042
 
33356
  def __repr__(self):
34043
  def __repr__(self):
33357
    L = ['%s=%r' % (key, value)
34044
    L = ['%s=%r' % (key, value)