Subversion Repositories SmartDukaan

Rev

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

Rev 132 Rev 304
Line 171... Line 171...
171
     - transactionId
171
     - transactionId
172
     - description
172
     - description
173
    """
173
    """
174
    pass
174
    pass
175
 
175
 
-
 
176
  def getAlerts(self, transactionId, valid):
-
 
177
    """
-
 
178
    Parameters:
-
 
179
     - transactionId
-
 
180
     - valid
-
 
181
    """
-
 
182
    pass
-
 
183
 
-
 
184
  def setAlert(self, transactionId, unset, type, comment):
-
 
185
    """
-
 
186
    Parameters:
-
 
187
     - transactionId
-
 
188
     - unset
-
 
189
     - type
-
 
190
     - comment
-
 
191
    """
-
 
192
    pass
-
 
193
 
-
 
194
  def getExtraInfo(self, transaction_id):
-
 
195
    """
-
 
196
    Parameters:
-
 
197
     - transaction_id
-
 
198
    """
-
 
199
    pass
-
 
200
 
-
 
201
  def setExtraInfo(self, transaction_id, sku_id, model, colour, vendor):
-
 
202
    """
-
 
203
    Parameters:
-
 
204
     - transaction_id
-
 
205
     - sku_id
-
 
206
     - model
-
 
207
     - colour
-
 
208
     - vendor
-
 
209
    """
-
 
210
    pass
-
 
211
 
176
 
212
 
177
class Client(Iface):
213
class Client(Iface):
178
  def __init__(self, iprot, oprot=None):
214
  def __init__(self, iprot, oprot=None):
179
    self._iprot = self._oprot = iprot
215
    self._iprot = self._oprot = iprot
180
    if oprot != None:
216
    if oprot != None:
Line 811... Line 847...
811
      return result.success
847
      return result.success
812
    if result.ex != None:
848
    if result.ex != None:
813
      raise result.ex
849
      raise result.ex
814
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrail failed: unknown result");
850
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrail failed: unknown result");
815
 
851
 
-
 
852
  def getAlerts(self, transactionId, valid):
-
 
853
    """
-
 
854
    Parameters:
-
 
855
     - transactionId
-
 
856
     - valid
-
 
857
    """
-
 
858
    self.send_getAlerts(transactionId, valid)
-
 
859
    return self.recv_getAlerts()
-
 
860
 
-
 
861
  def send_getAlerts(self, transactionId, valid):
-
 
862
    self._oprot.writeMessageBegin('getAlerts', TMessageType.CALL, self._seqid)
-
 
863
    args = getAlerts_args()
-
 
864
    args.transactionId = transactionId
-
 
865
    args.valid = valid
-
 
866
    args.write(self._oprot)
-
 
867
    self._oprot.writeMessageEnd()
-
 
868
    self._oprot.trans.flush()
-
 
869
 
-
 
870
  def recv_getAlerts(self, ):
-
 
871
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
872
    if mtype == TMessageType.EXCEPTION:
-
 
873
      x = TApplicationException()
-
 
874
      x.read(self._iprot)
-
 
875
      self._iprot.readMessageEnd()
-
 
876
      raise x
-
 
877
    result = getAlerts_result()
-
 
878
    result.read(self._iprot)
-
 
879
    self._iprot.readMessageEnd()
-
 
880
    if result.success != None:
-
 
881
      return result.success
-
 
882
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");
-
 
883
 
-
 
884
  def setAlert(self, transactionId, unset, type, comment):
-
 
885
    """
-
 
886
    Parameters:
-
 
887
     - transactionId
-
 
888
     - unset
-
 
889
     - type
-
 
890
     - comment
-
 
891
    """
-
 
892
    self.send_setAlert(transactionId, unset, type, comment)
-
 
893
    self.recv_setAlert()
-
 
894
 
-
 
895
  def send_setAlert(self, transactionId, unset, type, comment):
-
 
896
    self._oprot.writeMessageBegin('setAlert', TMessageType.CALL, self._seqid)
-
 
897
    args = setAlert_args()
-
 
898
    args.transactionId = transactionId
-
 
899
    args.unset = unset
-
 
900
    args.type = type
-
 
901
    args.comment = comment
-
 
902
    args.write(self._oprot)
-
 
903
    self._oprot.writeMessageEnd()
-
 
904
    self._oprot.trans.flush()
-
 
905
 
-
 
906
  def recv_setAlert(self, ):
-
 
907
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
908
    if mtype == TMessageType.EXCEPTION:
-
 
909
      x = TApplicationException()
-
 
910
      x.read(self._iprot)
-
 
911
      self._iprot.readMessageEnd()
-
 
912
      raise x
-
 
913
    result = setAlert_result()
-
 
914
    result.read(self._iprot)
-
 
915
    self._iprot.readMessageEnd()
-
 
916
    return
-
 
917
 
-
 
918
  def getExtraInfo(self, transaction_id):
-
 
919
    """
-
 
920
    Parameters:
-
 
921
     - transaction_id
-
 
922
    """
-
 
923
    self.send_getExtraInfo(transaction_id)
-
 
924
    return self.recv_getExtraInfo()
-
 
925
 
-
 
926
  def send_getExtraInfo(self, transaction_id):
-
 
927
    self._oprot.writeMessageBegin('getExtraInfo', TMessageType.CALL, self._seqid)
-
 
928
    args = getExtraInfo_args()
-
 
929
    args.transaction_id = transaction_id
-
 
930
    args.write(self._oprot)
-
 
931
    self._oprot.writeMessageEnd()
-
 
932
    self._oprot.trans.flush()
-
 
933
 
-
 
934
  def recv_getExtraInfo(self, ):
-
 
935
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
936
    if mtype == TMessageType.EXCEPTION:
-
 
937
      x = TApplicationException()
-
 
938
      x.read(self._iprot)
-
 
939
      self._iprot.readMessageEnd()
-
 
940
      raise x
-
 
941
    result = getExtraInfo_result()
-
 
942
    result.read(self._iprot)
-
 
943
    self._iprot.readMessageEnd()
-
 
944
    if result.success != None:
-
 
945
      return result.success
-
 
946
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getExtraInfo failed: unknown result");
-
 
947
 
-
 
948
  def setExtraInfo(self, transaction_id, sku_id, model, colour, vendor):
-
 
949
    """
-
 
950
    Parameters:
-
 
951
     - transaction_id
-
 
952
     - sku_id
-
 
953
     - model
-
 
954
     - colour
-
 
955
     - vendor
-
 
956
    """
-
 
957
    self.send_setExtraInfo(transaction_id, sku_id, model, colour, vendor)
-
 
958
    self.recv_setExtraInfo()
-
 
959
 
-
 
960
  def send_setExtraInfo(self, transaction_id, sku_id, model, colour, vendor):
-
 
961
    self._oprot.writeMessageBegin('setExtraInfo', TMessageType.CALL, self._seqid)
-
 
962
    args = setExtraInfo_args()
-
 
963
    args.transaction_id = transaction_id
-
 
964
    args.sku_id = sku_id
-
 
965
    args.model = model
-
 
966
    args.colour = colour
-
 
967
    args.vendor = vendor
-
 
968
    args.write(self._oprot)
-
 
969
    self._oprot.writeMessageEnd()
-
 
970
    self._oprot.trans.flush()
-
 
971
 
-
 
972
  def recv_setExtraInfo(self, ):
-
 
973
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
974
    if mtype == TMessageType.EXCEPTION:
-
 
975
      x = TApplicationException()
-
 
976
      x.read(self._iprot)
-
 
977
      self._iprot.readMessageEnd()
-
 
978
      raise x
-
 
979
    result = setExtraInfo_result()
-
 
980
    result.read(self._iprot)
-
 
981
    self._iprot.readMessageEnd()
-
 
982
    return
-
 
983
 
816
 
984
 
817
class Processor(Iface, TProcessor):
985
class Processor(Iface, TProcessor):
818
  def __init__(self, handler):
986
  def __init__(self, handler):
819
    self._handler = handler
987
    self._handler = handler
820
    self._processMap = {}
988
    self._processMap = {}
Line 834... Line 1002...
834
    self._processMap["setShippingTracker"] = Processor.process_setShippingTracker
1002
    self._processMap["setShippingTracker"] = Processor.process_setShippingTracker
835
    self._processMap["setShippingDate"] = Processor.process_setShippingDate
1003
    self._processMap["setShippingDate"] = Processor.process_setShippingDate
836
    self._processMap["setDeliveryDate"] = Processor.process_setDeliveryDate
1004
    self._processMap["setDeliveryDate"] = Processor.process_setDeliveryDate
837
    self._processMap["changeShippingStatus"] = Processor.process_changeShippingStatus
1005
    self._processMap["changeShippingStatus"] = Processor.process_changeShippingStatus
838
    self._processMap["addTrail"] = Processor.process_addTrail
1006
    self._processMap["addTrail"] = Processor.process_addTrail
-
 
1007
    self._processMap["getAlerts"] = Processor.process_getAlerts
-
 
1008
    self._processMap["setAlert"] = Processor.process_setAlert
-
 
1009
    self._processMap["getExtraInfo"] = Processor.process_getExtraInfo
-
 
1010
    self._processMap["setExtraInfo"] = Processor.process_setExtraInfo
839
 
1011
 
840
  def process(self, iprot, oprot):
1012
  def process(self, iprot, oprot):
841
    (name, type, seqid) = iprot.readMessageBegin()
1013
    (name, type, seqid) = iprot.readMessageBegin()
842
    if name not in self._processMap:
1014
    if name not in self._processMap:
843
      iprot.skip(TType.STRUCT)
1015
      iprot.skip(TType.STRUCT)
Line 1102... Line 1274...
1102
    oprot.writeMessageBegin("addTrail", TMessageType.REPLY, seqid)
1274
    oprot.writeMessageBegin("addTrail", TMessageType.REPLY, seqid)
1103
    result.write(oprot)
1275
    result.write(oprot)
1104
    oprot.writeMessageEnd()
1276
    oprot.writeMessageEnd()
1105
    oprot.trans.flush()
1277
    oprot.trans.flush()
1106
 
1278
 
-
 
1279
  def process_getAlerts(self, seqid, iprot, oprot):
-
 
1280
    args = getAlerts_args()
-
 
1281
    args.read(iprot)
-
 
1282
    iprot.readMessageEnd()
-
 
1283
    result = getAlerts_result()
-
 
1284
    result.success = self._handler.getAlerts(args.transactionId, args.valid)
-
 
1285
    oprot.writeMessageBegin("getAlerts", TMessageType.REPLY, seqid)
-
 
1286
    result.write(oprot)
-
 
1287
    oprot.writeMessageEnd()
-
 
1288
    oprot.trans.flush()
-
 
1289
 
-
 
1290
  def process_setAlert(self, seqid, iprot, oprot):
-
 
1291
    args = setAlert_args()
-
 
1292
    args.read(iprot)
-
 
1293
    iprot.readMessageEnd()
-
 
1294
    result = setAlert_result()
-
 
1295
    self._handler.setAlert(args.transactionId, args.unset, args.type, args.comment)
-
 
1296
    oprot.writeMessageBegin("setAlert", TMessageType.REPLY, seqid)
-
 
1297
    result.write(oprot)
-
 
1298
    oprot.writeMessageEnd()
-
 
1299
    oprot.trans.flush()
-
 
1300
 
-
 
1301
  def process_getExtraInfo(self, seqid, iprot, oprot):
-
 
1302
    args = getExtraInfo_args()
-
 
1303
    args.read(iprot)
-
 
1304
    iprot.readMessageEnd()
-
 
1305
    result = getExtraInfo_result()
-
 
1306
    result.success = self._handler.getExtraInfo(args.transaction_id)
-
 
1307
    oprot.writeMessageBegin("getExtraInfo", TMessageType.REPLY, seqid)
-
 
1308
    result.write(oprot)
-
 
1309
    oprot.writeMessageEnd()
-
 
1310
    oprot.trans.flush()
-
 
1311
 
-
 
1312
  def process_setExtraInfo(self, seqid, iprot, oprot):
-
 
1313
    args = setExtraInfo_args()
-
 
1314
    args.read(iprot)
-
 
1315
    iprot.readMessageEnd()
-
 
1316
    result = setExtraInfo_result()
-
 
1317
    self._handler.setExtraInfo(args.transaction_id, args.sku_id, args.model, args.colour, args.vendor)
-
 
1318
    oprot.writeMessageBegin("setExtraInfo", TMessageType.REPLY, seqid)
-
 
1319
    result.write(oprot)
-
 
1320
    oprot.writeMessageEnd()
-
 
1321
    oprot.trans.flush()
-
 
1322
 
1107
 
1323
 
1108
# HELPER FUNCTIONS AND STRUCTURES
1324
# HELPER FUNCTIONS AND STRUCTURES
1109
 
1325
 
1110
class createTransaction_args:
1326
class createTransaction_args:
1111
  """
1327
  """
Line 3679... Line 3895...
3679
    oprot.writeFieldStop()
3895
    oprot.writeFieldStop()
3680
    oprot.writeStructEnd()
3896
    oprot.writeStructEnd()
3681
 
3897
 
3682
  def __repr__(self):
3898
  def __repr__(self):
3683
    L = ['%s=%r' % (key, value)
3899
    L = ['%s=%r' % (key, value)
-
 
3900
      for key, value in self.__dict__.iteritems()]
-
 
3901
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3902
 
-
 
3903
  def __eq__(self, other):
-
 
3904
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3905
 
-
 
3906
  def __ne__(self, other):
-
 
3907
    return not (self == other)
-
 
3908
 
-
 
3909
class getAlerts_args:
-
 
3910
  """
-
 
3911
  Attributes:
-
 
3912
   - transactionId
-
 
3913
   - valid
-
 
3914
  """
-
 
3915
 
-
 
3916
  thrift_spec = (
-
 
3917
    None, # 0
-
 
3918
    (1, TType.I64, 'transactionId', None, None, ), # 1
-
 
3919
    (2, TType.BOOL, 'valid', None, None, ), # 2
-
 
3920
  )
-
 
3921
 
-
 
3922
  def __init__(self, transactionId=None, valid=None,):
-
 
3923
    self.transactionId = transactionId
-
 
3924
    self.valid = valid
-
 
3925
 
-
 
3926
  def read(self, iprot):
-
 
3927
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3928
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3929
      return
-
 
3930
    iprot.readStructBegin()
-
 
3931
    while True:
-
 
3932
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3933
      if ftype == TType.STOP:
-
 
3934
        break
-
 
3935
      if fid == 1:
-
 
3936
        if ftype == TType.I64:
-
 
3937
          self.transactionId = iprot.readI64();
-
 
3938
        else:
-
 
3939
          iprot.skip(ftype)
-
 
3940
      elif fid == 2:
-
 
3941
        if ftype == TType.BOOL:
-
 
3942
          self.valid = iprot.readBool();
-
 
3943
        else:
-
 
3944
          iprot.skip(ftype)
-
 
3945
      else:
-
 
3946
        iprot.skip(ftype)
-
 
3947
      iprot.readFieldEnd()
-
 
3948
    iprot.readStructEnd()
-
 
3949
 
-
 
3950
  def write(self, oprot):
-
 
3951
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3952
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3953
      return
-
 
3954
    oprot.writeStructBegin('getAlerts_args')
-
 
3955
    if self.transactionId != None:
-
 
3956
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
-
 
3957
      oprot.writeI64(self.transactionId)
-
 
3958
      oprot.writeFieldEnd()
-
 
3959
    if self.valid != None:
-
 
3960
      oprot.writeFieldBegin('valid', TType.BOOL, 2)
-
 
3961
      oprot.writeBool(self.valid)
-
 
3962
      oprot.writeFieldEnd()
-
 
3963
    oprot.writeFieldStop()
-
 
3964
    oprot.writeStructEnd()
-
 
3965
 
-
 
3966
  def __repr__(self):
-
 
3967
    L = ['%s=%r' % (key, value)
-
 
3968
      for key, value in self.__dict__.iteritems()]
-
 
3969
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3970
 
-
 
3971
  def __eq__(self, other):
-
 
3972
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3973
 
-
 
3974
  def __ne__(self, other):
-
 
3975
    return not (self == other)
-
 
3976
 
-
 
3977
class getAlerts_result:
-
 
3978
  """
-
 
3979
  Attributes:
-
 
3980
   - success
-
 
3981
  """
-
 
3982
 
-
 
3983
  thrift_spec = (
-
 
3984
    (0, TType.LIST, 'success', (TType.STRUCT,(Alert, Alert.thrift_spec)), None, ), # 0
-
 
3985
  )
-
 
3986
 
-
 
3987
  def __init__(self, success=None,):
-
 
3988
    self.success = success
-
 
3989
 
-
 
3990
  def read(self, iprot):
-
 
3991
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3992
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3993
      return
-
 
3994
    iprot.readStructBegin()
-
 
3995
    while True:
-
 
3996
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3997
      if ftype == TType.STOP:
-
 
3998
        break
-
 
3999
      if fid == 0:
-
 
4000
        if ftype == TType.LIST:
-
 
4001
          self.success = []
-
 
4002
          (_etype91, _size88) = iprot.readListBegin()
-
 
4003
          for _i92 in xrange(_size88):
-
 
4004
            _elem93 = Alert()
-
 
4005
            _elem93.read(iprot)
-
 
4006
            self.success.append(_elem93)
-
 
4007
          iprot.readListEnd()
-
 
4008
        else:
-
 
4009
          iprot.skip(ftype)
-
 
4010
      else:
-
 
4011
        iprot.skip(ftype)
-
 
4012
      iprot.readFieldEnd()
-
 
4013
    iprot.readStructEnd()
-
 
4014
 
-
 
4015
  def write(self, oprot):
-
 
4016
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4017
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4018
      return
-
 
4019
    oprot.writeStructBegin('getAlerts_result')
-
 
4020
    if self.success != None:
-
 
4021
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
4022
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
4023
      for iter94 in self.success:
-
 
4024
        iter94.write(oprot)
-
 
4025
      oprot.writeListEnd()
-
 
4026
      oprot.writeFieldEnd()
-
 
4027
    oprot.writeFieldStop()
-
 
4028
    oprot.writeStructEnd()
-
 
4029
 
-
 
4030
  def __repr__(self):
-
 
4031
    L = ['%s=%r' % (key, value)
-
 
4032
      for key, value in self.__dict__.iteritems()]
-
 
4033
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4034
 
-
 
4035
  def __eq__(self, other):
-
 
4036
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4037
 
-
 
4038
  def __ne__(self, other):
-
 
4039
    return not (self == other)
-
 
4040
 
-
 
4041
class setAlert_args:
-
 
4042
  """
-
 
4043
  Attributes:
-
 
4044
   - transactionId
-
 
4045
   - unset
-
 
4046
   - type
-
 
4047
   - comment
-
 
4048
  """
-
 
4049
 
-
 
4050
  thrift_spec = (
-
 
4051
    None, # 0
-
 
4052
    (1, TType.I64, 'transactionId', None, None, ), # 1
-
 
4053
    (2, TType.BOOL, 'unset', None, None, ), # 2
-
 
4054
    (3, TType.I64, 'type', None, None, ), # 3
-
 
4055
    (4, TType.STRING, 'comment', None, None, ), # 4
-
 
4056
  )
-
 
4057
 
-
 
4058
  def __init__(self, transactionId=None, unset=None, type=None, comment=None,):
-
 
4059
    self.transactionId = transactionId
-
 
4060
    self.unset = unset
-
 
4061
    self.type = type
-
 
4062
    self.comment = comment
-
 
4063
 
-
 
4064
  def read(self, iprot):
-
 
4065
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4066
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4067
      return
-
 
4068
    iprot.readStructBegin()
-
 
4069
    while True:
-
 
4070
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4071
      if ftype == TType.STOP:
-
 
4072
        break
-
 
4073
      if fid == 1:
-
 
4074
        if ftype == TType.I64:
-
 
4075
          self.transactionId = iprot.readI64();
-
 
4076
        else:
-
 
4077
          iprot.skip(ftype)
-
 
4078
      elif fid == 2:
-
 
4079
        if ftype == TType.BOOL:
-
 
4080
          self.unset = iprot.readBool();
-
 
4081
        else:
-
 
4082
          iprot.skip(ftype)
-
 
4083
      elif fid == 3:
-
 
4084
        if ftype == TType.I64:
-
 
4085
          self.type = iprot.readI64();
-
 
4086
        else:
-
 
4087
          iprot.skip(ftype)
-
 
4088
      elif fid == 4:
-
 
4089
        if ftype == TType.STRING:
-
 
4090
          self.comment = iprot.readString();
-
 
4091
        else:
-
 
4092
          iprot.skip(ftype)
-
 
4093
      else:
-
 
4094
        iprot.skip(ftype)
-
 
4095
      iprot.readFieldEnd()
-
 
4096
    iprot.readStructEnd()
-
 
4097
 
-
 
4098
  def write(self, oprot):
-
 
4099
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4100
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4101
      return
-
 
4102
    oprot.writeStructBegin('setAlert_args')
-
 
4103
    if self.transactionId != None:
-
 
4104
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
-
 
4105
      oprot.writeI64(self.transactionId)
-
 
4106
      oprot.writeFieldEnd()
-
 
4107
    if self.unset != None:
-
 
4108
      oprot.writeFieldBegin('unset', TType.BOOL, 2)
-
 
4109
      oprot.writeBool(self.unset)
-
 
4110
      oprot.writeFieldEnd()
-
 
4111
    if self.type != None:
-
 
4112
      oprot.writeFieldBegin('type', TType.I64, 3)
-
 
4113
      oprot.writeI64(self.type)
-
 
4114
      oprot.writeFieldEnd()
-
 
4115
    if self.comment != None:
-
 
4116
      oprot.writeFieldBegin('comment', TType.STRING, 4)
-
 
4117
      oprot.writeString(self.comment)
-
 
4118
      oprot.writeFieldEnd()
-
 
4119
    oprot.writeFieldStop()
-
 
4120
    oprot.writeStructEnd()
-
 
4121
 
-
 
4122
  def __repr__(self):
-
 
4123
    L = ['%s=%r' % (key, value)
-
 
4124
      for key, value in self.__dict__.iteritems()]
-
 
4125
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4126
 
-
 
4127
  def __eq__(self, other):
-
 
4128
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4129
 
-
 
4130
  def __ne__(self, other):
-
 
4131
    return not (self == other)
-
 
4132
 
-
 
4133
class setAlert_result:
-
 
4134
 
-
 
4135
  thrift_spec = (
-
 
4136
  )
-
 
4137
 
-
 
4138
  def read(self, iprot):
-
 
4139
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4140
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4141
      return
-
 
4142
    iprot.readStructBegin()
-
 
4143
    while True:
-
 
4144
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4145
      if ftype == TType.STOP:
-
 
4146
        break
-
 
4147
      else:
-
 
4148
        iprot.skip(ftype)
-
 
4149
      iprot.readFieldEnd()
-
 
4150
    iprot.readStructEnd()
-
 
4151
 
-
 
4152
  def write(self, oprot):
-
 
4153
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4154
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4155
      return
-
 
4156
    oprot.writeStructBegin('setAlert_result')
-
 
4157
    oprot.writeFieldStop()
-
 
4158
    oprot.writeStructEnd()
-
 
4159
 
-
 
4160
  def __repr__(self):
-
 
4161
    L = ['%s=%r' % (key, value)
-
 
4162
      for key, value in self.__dict__.iteritems()]
-
 
4163
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4164
 
-
 
4165
  def __eq__(self, other):
-
 
4166
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4167
 
-
 
4168
  def __ne__(self, other):
-
 
4169
    return not (self == other)
-
 
4170
 
-
 
4171
class getExtraInfo_args:
-
 
4172
  """
-
 
4173
  Attributes:
-
 
4174
   - transaction_id
-
 
4175
  """
-
 
4176
 
-
 
4177
  thrift_spec = (
-
 
4178
    None, # 0
-
 
4179
    (1, TType.I64, 'transaction_id', None, None, ), # 1
-
 
4180
  )
-
 
4181
 
-
 
4182
  def __init__(self, transaction_id=None,):
-
 
4183
    self.transaction_id = transaction_id
-
 
4184
 
-
 
4185
  def read(self, iprot):
-
 
4186
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4187
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4188
      return
-
 
4189
    iprot.readStructBegin()
-
 
4190
    while True:
-
 
4191
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4192
      if ftype == TType.STOP:
-
 
4193
        break
-
 
4194
      if fid == 1:
-
 
4195
        if ftype == TType.I64:
-
 
4196
          self.transaction_id = iprot.readI64();
-
 
4197
        else:
-
 
4198
          iprot.skip(ftype)
-
 
4199
      else:
-
 
4200
        iprot.skip(ftype)
-
 
4201
      iprot.readFieldEnd()
-
 
4202
    iprot.readStructEnd()
-
 
4203
 
-
 
4204
  def write(self, oprot):
-
 
4205
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4206
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4207
      return
-
 
4208
    oprot.writeStructBegin('getExtraInfo_args')
-
 
4209
    if self.transaction_id != None:
-
 
4210
      oprot.writeFieldBegin('transaction_id', TType.I64, 1)
-
 
4211
      oprot.writeI64(self.transaction_id)
-
 
4212
      oprot.writeFieldEnd()
-
 
4213
    oprot.writeFieldStop()
-
 
4214
    oprot.writeStructEnd()
-
 
4215
 
-
 
4216
  def __repr__(self):
-
 
4217
    L = ['%s=%r' % (key, value)
-
 
4218
      for key, value in self.__dict__.iteritems()]
-
 
4219
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4220
 
-
 
4221
  def __eq__(self, other):
-
 
4222
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4223
 
-
 
4224
  def __ne__(self, other):
-
 
4225
    return not (self == other)
-
 
4226
 
-
 
4227
class getExtraInfo_result:
-
 
4228
  """
-
 
4229
  Attributes:
-
 
4230
   - success
-
 
4231
  """
-
 
4232
 
-
 
4233
  thrift_spec = (
-
 
4234
    (0, TType.STRUCT, 'success', (ExtraOrderInfo, ExtraOrderInfo.thrift_spec), None, ), # 0
-
 
4235
  )
-
 
4236
 
-
 
4237
  def __init__(self, success=None,):
-
 
4238
    self.success = success
-
 
4239
 
-
 
4240
  def read(self, iprot):
-
 
4241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4243
      return
-
 
4244
    iprot.readStructBegin()
-
 
4245
    while True:
-
 
4246
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4247
      if ftype == TType.STOP:
-
 
4248
        break
-
 
4249
      if fid == 0:
-
 
4250
        if ftype == TType.STRUCT:
-
 
4251
          self.success = ExtraOrderInfo()
-
 
4252
          self.success.read(iprot)
-
 
4253
        else:
-
 
4254
          iprot.skip(ftype)
-
 
4255
      else:
-
 
4256
        iprot.skip(ftype)
-
 
4257
      iprot.readFieldEnd()
-
 
4258
    iprot.readStructEnd()
-
 
4259
 
-
 
4260
  def write(self, oprot):
-
 
4261
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4262
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4263
      return
-
 
4264
    oprot.writeStructBegin('getExtraInfo_result')
-
 
4265
    if self.success != None:
-
 
4266
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
4267
      self.success.write(oprot)
-
 
4268
      oprot.writeFieldEnd()
-
 
4269
    oprot.writeFieldStop()
-
 
4270
    oprot.writeStructEnd()
-
 
4271
 
-
 
4272
  def __repr__(self):
-
 
4273
    L = ['%s=%r' % (key, value)
-
 
4274
      for key, value in self.__dict__.iteritems()]
-
 
4275
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4276
 
-
 
4277
  def __eq__(self, other):
-
 
4278
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4279
 
-
 
4280
  def __ne__(self, other):
-
 
4281
    return not (self == other)
-
 
4282
 
-
 
4283
class setExtraInfo_args:
-
 
4284
  """
-
 
4285
  Attributes:
-
 
4286
   - transaction_id
-
 
4287
   - sku_id
-
 
4288
   - model
-
 
4289
   - colour
-
 
4290
   - vendor
-
 
4291
  """
-
 
4292
 
-
 
4293
  thrift_spec = (
-
 
4294
    None, # 0
-
 
4295
    (1, TType.I64, 'transaction_id', None, None, ), # 1
-
 
4296
    (2, TType.I64, 'sku_id', None, None, ), # 2
-
 
4297
    (3, TType.STRING, 'model', None, None, ), # 3
-
 
4298
    (4, TType.STRING, 'colour', None, None, ), # 4
-
 
4299
    (5, TType.STRING, 'vendor', None, None, ), # 5
-
 
4300
  )
-
 
4301
 
-
 
4302
  def __init__(self, transaction_id=None, sku_id=None, model=None, colour=None, vendor=None,):
-
 
4303
    self.transaction_id = transaction_id
-
 
4304
    self.sku_id = sku_id
-
 
4305
    self.model = model
-
 
4306
    self.colour = colour
-
 
4307
    self.vendor = vendor
-
 
4308
 
-
 
4309
  def read(self, iprot):
-
 
4310
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4311
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4312
      return
-
 
4313
    iprot.readStructBegin()
-
 
4314
    while True:
-
 
4315
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4316
      if ftype == TType.STOP:
-
 
4317
        break
-
 
4318
      if fid == 1:
-
 
4319
        if ftype == TType.I64:
-
 
4320
          self.transaction_id = iprot.readI64();
-
 
4321
        else:
-
 
4322
          iprot.skip(ftype)
-
 
4323
      elif fid == 2:
-
 
4324
        if ftype == TType.I64:
-
 
4325
          self.sku_id = iprot.readI64();
-
 
4326
        else:
-
 
4327
          iprot.skip(ftype)
-
 
4328
      elif fid == 3:
-
 
4329
        if ftype == TType.STRING:
-
 
4330
          self.model = iprot.readString();
-
 
4331
        else:
-
 
4332
          iprot.skip(ftype)
-
 
4333
      elif fid == 4:
-
 
4334
        if ftype == TType.STRING:
-
 
4335
          self.colour = iprot.readString();
-
 
4336
        else:
-
 
4337
          iprot.skip(ftype)
-
 
4338
      elif fid == 5:
-
 
4339
        if ftype == TType.STRING:
-
 
4340
          self.vendor = iprot.readString();
-
 
4341
        else:
-
 
4342
          iprot.skip(ftype)
-
 
4343
      else:
-
 
4344
        iprot.skip(ftype)
-
 
4345
      iprot.readFieldEnd()
-
 
4346
    iprot.readStructEnd()
-
 
4347
 
-
 
4348
  def write(self, oprot):
-
 
4349
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4350
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4351
      return
-
 
4352
    oprot.writeStructBegin('setExtraInfo_args')
-
 
4353
    if self.transaction_id != None:
-
 
4354
      oprot.writeFieldBegin('transaction_id', TType.I64, 1)
-
 
4355
      oprot.writeI64(self.transaction_id)
-
 
4356
      oprot.writeFieldEnd()
-
 
4357
    if self.sku_id != None:
-
 
4358
      oprot.writeFieldBegin('sku_id', TType.I64, 2)
-
 
4359
      oprot.writeI64(self.sku_id)
-
 
4360
      oprot.writeFieldEnd()
-
 
4361
    if self.model != None:
-
 
4362
      oprot.writeFieldBegin('model', TType.STRING, 3)
-
 
4363
      oprot.writeString(self.model)
-
 
4364
      oprot.writeFieldEnd()
-
 
4365
    if self.colour != None:
-
 
4366
      oprot.writeFieldBegin('colour', TType.STRING, 4)
-
 
4367
      oprot.writeString(self.colour)
-
 
4368
      oprot.writeFieldEnd()
-
 
4369
    if self.vendor != None:
-
 
4370
      oprot.writeFieldBegin('vendor', TType.STRING, 5)
-
 
4371
      oprot.writeString(self.vendor)
-
 
4372
      oprot.writeFieldEnd()
-
 
4373
    oprot.writeFieldStop()
-
 
4374
    oprot.writeStructEnd()
-
 
4375
 
-
 
4376
  def __repr__(self):
-
 
4377
    L = ['%s=%r' % (key, value)
-
 
4378
      for key, value in self.__dict__.iteritems()]
-
 
4379
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4380
 
-
 
4381
  def __eq__(self, other):
-
 
4382
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4383
 
-
 
4384
  def __ne__(self, other):
-
 
4385
    return not (self == other)
-
 
4386
 
-
 
4387
class setExtraInfo_result:
-
 
4388
 
-
 
4389
  thrift_spec = (
-
 
4390
  )
-
 
4391
 
-
 
4392
  def read(self, iprot):
-
 
4393
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4394
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4395
      return
-
 
4396
    iprot.readStructBegin()
-
 
4397
    while True:
-
 
4398
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4399
      if ftype == TType.STOP:
-
 
4400
        break
-
 
4401
      else:
-
 
4402
        iprot.skip(ftype)
-
 
4403
      iprot.readFieldEnd()
-
 
4404
    iprot.readStructEnd()
-
 
4405
 
-
 
4406
  def write(self, oprot):
-
 
4407
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4408
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4409
      return
-
 
4410
    oprot.writeStructBegin('setExtraInfo_result')
-
 
4411
    oprot.writeFieldStop()
-
 
4412
    oprot.writeStructEnd()
-
 
4413
 
-
 
4414
  def __repr__(self):
-
 
4415
    L = ['%s=%r' % (key, value)
3684
      for key, value in self.__dict__.iteritems()]
4416
      for key, value in self.__dict__.iteritems()]
3685
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4417
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3686
 
4418
 
3687
  def __eq__(self, other):
4419
  def __eq__(self, other):
3688
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4420
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__