Subversion Repositories SmartDukaan

Rev

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

Rev 7460 Rev 7530
Line 1742... Line 1742...
1742
     - expectedShipping
1742
     - expectedShipping
1743
     - promisedShipping
1743
     - promisedShipping
1744
    """
1744
    """
1745
    pass
1745
    pass
1746
 
1746
 
-
 
1747
  def updateSourceDetailTimestamp(self, id, lastUpdatedOn):
-
 
1748
    """
-
 
1749
    Parameters:
-
 
1750
     - id
-
 
1751
     - lastUpdatedOn
-
 
1752
    """
-
 
1753
    pass
-
 
1754
 
1747
 
1755
 
1748
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1756
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1749
  def __init__(self, iprot, oprot=None):
1757
  def __init__(self, iprot, oprot=None):
1750
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1758
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1751
 
1759
 
Line 8076... Line 8084...
8076
    self._iprot.readMessageEnd()
8084
    self._iprot.readMessageEnd()
8077
    if result.success is not None:
8085
    if result.success is not None:
8078
      return result.success
8086
      return result.success
8079
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTimestampForAmazonOrder failed: unknown result");
8087
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTimestampForAmazonOrder failed: unknown result");
8080
 
8088
 
-
 
8089
  def updateSourceDetailTimestamp(self, id, lastUpdatedOn):
-
 
8090
    """
-
 
8091
    Parameters:
-
 
8092
     - id
-
 
8093
     - lastUpdatedOn
-
 
8094
    """
-
 
8095
    self.send_updateSourceDetailTimestamp(id, lastUpdatedOn)
-
 
8096
    return self.recv_updateSourceDetailTimestamp()
-
 
8097
 
-
 
8098
  def send_updateSourceDetailTimestamp(self, id, lastUpdatedOn):
-
 
8099
    self._oprot.writeMessageBegin('updateSourceDetailTimestamp', TMessageType.CALL, self._seqid)
-
 
8100
    args = updateSourceDetailTimestamp_args()
-
 
8101
    args.id = id
-
 
8102
    args.lastUpdatedOn = lastUpdatedOn
-
 
8103
    args.write(self._oprot)
-
 
8104
    self._oprot.writeMessageEnd()
-
 
8105
    self._oprot.trans.flush()
-
 
8106
 
-
 
8107
  def recv_updateSourceDetailTimestamp(self, ):
-
 
8108
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
8109
    if mtype == TMessageType.EXCEPTION:
-
 
8110
      x = TApplicationException()
-
 
8111
      x.read(self._iprot)
-
 
8112
      self._iprot.readMessageEnd()
-
 
8113
      raise x
-
 
8114
    result = updateSourceDetailTimestamp_result()
-
 
8115
    result.read(self._iprot)
-
 
8116
    self._iprot.readMessageEnd()
-
 
8117
    if result.success is not None:
-
 
8118
      return result.success
-
 
8119
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateSourceDetailTimestamp failed: unknown result");
-
 
8120
 
8081
 
8121
 
8082
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
8122
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
8083
  def __init__(self, handler):
8123
  def __init__(self, handler):
8084
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
8124
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
8085
    self._processMap["createTransaction"] = Processor.process_createTransaction
8125
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 8267... Line 8307...
8267
    self._processMap["saveRefundAmountsForStoreOrder"] = Processor.process_saveRefundAmountsForStoreOrder
8307
    self._processMap["saveRefundAmountsForStoreOrder"] = Processor.process_saveRefundAmountsForStoreOrder
8268
    self._processMap["getCollectionsForStore"] = Processor.process_getCollectionsForStore
8308
    self._processMap["getCollectionsForStore"] = Processor.process_getCollectionsForStore
8269
    self._processMap["getAmazonOrdersToAcknowledge"] = Processor.process_getAmazonOrdersToAcknowledge
8309
    self._processMap["getAmazonOrdersToAcknowledge"] = Processor.process_getAmazonOrdersToAcknowledge
8270
    self._processMap["changeAmazonOrderStatus"] = Processor.process_changeAmazonOrderStatus
8310
    self._processMap["changeAmazonOrderStatus"] = Processor.process_changeAmazonOrderStatus
8271
    self._processMap["updateTimestampForAmazonOrder"] = Processor.process_updateTimestampForAmazonOrder
8311
    self._processMap["updateTimestampForAmazonOrder"] = Processor.process_updateTimestampForAmazonOrder
-
 
8312
    self._processMap["updateSourceDetailTimestamp"] = Processor.process_updateSourceDetailTimestamp
8272
 
8313
 
8273
  def process(self, iprot, oprot):
8314
  def process(self, iprot, oprot):
8274
    (name, type, seqid) = iprot.readMessageBegin()
8315
    (name, type, seqid) = iprot.readMessageBegin()
8275
    if name not in self._processMap:
8316
    if name not in self._processMap:
8276
      iprot.skip(TType.STRUCT)
8317
      iprot.skip(TType.STRUCT)
Line 10634... Line 10675...
10634
    oprot.writeMessageBegin("updateTimestampForAmazonOrder", TMessageType.REPLY, seqid)
10675
    oprot.writeMessageBegin("updateTimestampForAmazonOrder", TMessageType.REPLY, seqid)
10635
    result.write(oprot)
10676
    result.write(oprot)
10636
    oprot.writeMessageEnd()
10677
    oprot.writeMessageEnd()
10637
    oprot.trans.flush()
10678
    oprot.trans.flush()
10638
 
10679
 
-
 
10680
  def process_updateSourceDetailTimestamp(self, seqid, iprot, oprot):
-
 
10681
    args = updateSourceDetailTimestamp_args()
-
 
10682
    args.read(iprot)
-
 
10683
    iprot.readMessageEnd()
-
 
10684
    result = updateSourceDetailTimestamp_result()
-
 
10685
    result.success = self._handler.updateSourceDetailTimestamp(args.id, args.lastUpdatedOn)
-
 
10686
    oprot.writeMessageBegin("updateSourceDetailTimestamp", TMessageType.REPLY, seqid)
-
 
10687
    result.write(oprot)
-
 
10688
    oprot.writeMessageEnd()
-
 
10689
    oprot.trans.flush()
-
 
10690
 
10639
 
10691
 
10640
# HELPER FUNCTIONS AND STRUCTURES
10692
# HELPER FUNCTIONS AND STRUCTURES
10641
 
10693
 
10642
class createTransaction_args:
10694
class createTransaction_args:
10643
  """
10695
  """
Line 36645... Line 36697...
36645
    if self.success is not None:
36697
    if self.success is not None:
36646
      oprot.writeFieldBegin('success', TType.BOOL, 0)
36698
      oprot.writeFieldBegin('success', TType.BOOL, 0)
36647
      oprot.writeBool(self.success)
36699
      oprot.writeBool(self.success)
36648
      oprot.writeFieldEnd()
36700
      oprot.writeFieldEnd()
36649
    oprot.writeFieldStop()
36701
    oprot.writeFieldStop()
-
 
36702
    oprot.writeStructEnd()
-
 
36703
 
-
 
36704
  def validate(self):
-
 
36705
    return
-
 
36706
 
-
 
36707
 
-
 
36708
  def __repr__(self):
-
 
36709
    L = ['%s=%r' % (key, value)
-
 
36710
      for key, value in self.__dict__.iteritems()]
-
 
36711
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
36712
 
-
 
36713
  def __eq__(self, other):
-
 
36714
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
36715
 
-
 
36716
  def __ne__(self, other):
-
 
36717
    return not (self == other)
-
 
36718
 
-
 
36719
class updateSourceDetailTimestamp_args:
-
 
36720
  """
-
 
36721
  Attributes:
-
 
36722
   - id
-
 
36723
   - lastUpdatedOn
-
 
36724
  """
-
 
36725
 
-
 
36726
  thrift_spec = (
-
 
36727
    None, # 0
-
 
36728
    (1, TType.I64, 'id', None, None, ), # 1
-
 
36729
    (2, TType.I64, 'lastUpdatedOn', None, None, ), # 2
-
 
36730
  )
-
 
36731
 
-
 
36732
  def __init__(self, id=None, lastUpdatedOn=None,):
-
 
36733
    self.id = id
-
 
36734
    self.lastUpdatedOn = lastUpdatedOn
-
 
36735
 
-
 
36736
  def read(self, iprot):
-
 
36737
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
36738
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
36739
      return
-
 
36740
    iprot.readStructBegin()
-
 
36741
    while True:
-
 
36742
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
36743
      if ftype == TType.STOP:
-
 
36744
        break
-
 
36745
      if fid == 1:
-
 
36746
        if ftype == TType.I64:
-
 
36747
          self.id = iprot.readI64();
-
 
36748
        else:
-
 
36749
          iprot.skip(ftype)
-
 
36750
      elif fid == 2:
-
 
36751
        if ftype == TType.I64:
-
 
36752
          self.lastUpdatedOn = iprot.readI64();
-
 
36753
        else:
-
 
36754
          iprot.skip(ftype)
-
 
36755
      else:
-
 
36756
        iprot.skip(ftype)
-
 
36757
      iprot.readFieldEnd()
-
 
36758
    iprot.readStructEnd()
-
 
36759
 
-
 
36760
  def write(self, oprot):
-
 
36761
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
36762
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
36763
      return
-
 
36764
    oprot.writeStructBegin('updateSourceDetailTimestamp_args')
-
 
36765
    if self.id is not None:
-
 
36766
      oprot.writeFieldBegin('id', TType.I64, 1)
-
 
36767
      oprot.writeI64(self.id)
-
 
36768
      oprot.writeFieldEnd()
-
 
36769
    if self.lastUpdatedOn is not None:
-
 
36770
      oprot.writeFieldBegin('lastUpdatedOn', TType.I64, 2)
-
 
36771
      oprot.writeI64(self.lastUpdatedOn)
-
 
36772
      oprot.writeFieldEnd()
-
 
36773
    oprot.writeFieldStop()
-
 
36774
    oprot.writeStructEnd()
-
 
36775
 
-
 
36776
  def validate(self):
-
 
36777
    return
-
 
36778
 
-
 
36779
 
-
 
36780
  def __repr__(self):
-
 
36781
    L = ['%s=%r' % (key, value)
-
 
36782
      for key, value in self.__dict__.iteritems()]
-
 
36783
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
36784
 
-
 
36785
  def __eq__(self, other):
-
 
36786
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
36787
 
-
 
36788
  def __ne__(self, other):
-
 
36789
    return not (self == other)
-
 
36790
 
-
 
36791
class updateSourceDetailTimestamp_result:
-
 
36792
  """
-
 
36793
  Attributes:
-
 
36794
   - success
-
 
36795
  """
-
 
36796
 
-
 
36797
  thrift_spec = (
-
 
36798
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
36799
  )
-
 
36800
 
-
 
36801
  def __init__(self, success=None,):
-
 
36802
    self.success = success
-
 
36803
 
-
 
36804
  def read(self, iprot):
-
 
36805
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
36806
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
36807
      return
-
 
36808
    iprot.readStructBegin()
-
 
36809
    while True:
-
 
36810
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
36811
      if ftype == TType.STOP:
-
 
36812
        break
-
 
36813
      if fid == 0:
-
 
36814
        if ftype == TType.BOOL:
-
 
36815
          self.success = iprot.readBool();
-
 
36816
        else:
-
 
36817
          iprot.skip(ftype)
-
 
36818
      else:
-
 
36819
        iprot.skip(ftype)
-
 
36820
      iprot.readFieldEnd()
-
 
36821
    iprot.readStructEnd()
-
 
36822
 
-
 
36823
  def write(self, oprot):
-
 
36824
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
36825
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
36826
      return
-
 
36827
    oprot.writeStructBegin('updateSourceDetailTimestamp_result')
-
 
36828
    if self.success is not None:
-
 
36829
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
36830
      oprot.writeBool(self.success)
-
 
36831
      oprot.writeFieldEnd()
-
 
36832
    oprot.writeFieldStop()
36650
    oprot.writeStructEnd()
36833
    oprot.writeStructEnd()
36651
 
36834
 
36652
  def validate(self):
36835
  def validate(self):
36653
    return
36836
    return
36654
 
36837