Subversion Repositories SmartDukaan

Rev

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

Rev 12614 Rev 12653
Line 2089... Line 2089...
2089
    Parameters:
2089
    Parameters:
2090
     - faOrdersList
2090
     - faOrdersList
2091
    """
2091
    """
2092
    pass
2092
    pass
2093
 
2093
 
-
 
2094
  def addInvoiceDetailsToOrders(self, transactionId, customerId):
-
 
2095
    """
-
 
2096
    Parameters:
-
 
2097
     - transactionId
-
 
2098
     - customerId
-
 
2099
    """
-
 
2100
    pass
-
 
2101
 
2094
 
2102
 
2095
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2103
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2096
  def __init__(self, iprot, oprot=None):
2104
  def __init__(self, iprot, oprot=None):
2097
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2105
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2098
 
2106
 
Line 9878... Line 9886...
9878
    self._iprot.readMessageEnd()
9886
    self._iprot.readMessageEnd()
9879
    if result.ex is not None:
9887
    if result.ex is not None:
9880
      raise result.ex
9888
      raise result.ex
9881
    return
9889
    return
9882
 
9890
 
-
 
9891
  def addInvoiceDetailsToOrders(self, transactionId, customerId):
-
 
9892
    """
-
 
9893
    Parameters:
-
 
9894
     - transactionId
-
 
9895
     - customerId
-
 
9896
    """
-
 
9897
    self.send_addInvoiceDetailsToOrders(transactionId, customerId)
-
 
9898
    self.recv_addInvoiceDetailsToOrders()
-
 
9899
 
-
 
9900
  def send_addInvoiceDetailsToOrders(self, transactionId, customerId):
-
 
9901
    self._oprot.writeMessageBegin('addInvoiceDetailsToOrders', TMessageType.CALL, self._seqid)
-
 
9902
    args = addInvoiceDetailsToOrders_args()
-
 
9903
    args.transactionId = transactionId
-
 
9904
    args.customerId = customerId
-
 
9905
    args.write(self._oprot)
-
 
9906
    self._oprot.writeMessageEnd()
-
 
9907
    self._oprot.trans.flush()
-
 
9908
 
-
 
9909
  def recv_addInvoiceDetailsToOrders(self, ):
-
 
9910
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
9911
    if mtype == TMessageType.EXCEPTION:
-
 
9912
      x = TApplicationException()
-
 
9913
      x.read(self._iprot)
-
 
9914
      self._iprot.readMessageEnd()
-
 
9915
      raise x
-
 
9916
    result = addInvoiceDetailsToOrders_result()
-
 
9917
    result.read(self._iprot)
-
 
9918
    self._iprot.readMessageEnd()
-
 
9919
    if result.ex is not None:
-
 
9920
      raise result.ex
-
 
9921
    return
-
 
9922
 
9883
 
9923
 
9884
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
9924
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
9885
  def __init__(self, handler):
9925
  def __init__(self, handler):
9886
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
9926
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
9887
    self._processMap["createTransaction"] = Processor.process_createTransaction
9927
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 10116... Line 10156...
10116
    self._processMap["getTotalSaleReturnsFbaSkusCurentTime"] = Processor.process_getTotalSaleReturnsFbaSkusCurentTime
10156
    self._processMap["getTotalSaleReturnsFbaSkusCurentTime"] = Processor.process_getTotalSaleReturnsFbaSkusCurentTime
10117
    self._processMap["getVerificationPendingOrdersFK"] = Processor.process_getVerificationPendingOrdersFK
10157
    self._processMap["getVerificationPendingOrdersFK"] = Processor.process_getVerificationPendingOrdersFK
10118
    self._processMap["getFAOrderByFkOrderId"] = Processor.process_getFAOrderByFkOrderId
10158
    self._processMap["getFAOrderByFkOrderId"] = Processor.process_getFAOrderByFkOrderId
10119
    self._processMap["getAllFAOrdersList"] = Processor.process_getAllFAOrdersList
10159
    self._processMap["getAllFAOrdersList"] = Processor.process_getAllFAOrdersList
10120
    self._processMap["addUpdateFaOrdersBulk"] = Processor.process_addUpdateFaOrdersBulk
10160
    self._processMap["addUpdateFaOrdersBulk"] = Processor.process_addUpdateFaOrdersBulk
-
 
10161
    self._processMap["addInvoiceDetailsToOrders"] = Processor.process_addInvoiceDetailsToOrders
10121
 
10162
 
10122
  def process(self, iprot, oprot):
10163
  def process(self, iprot, oprot):
10123
    (name, type, seqid) = iprot.readMessageBegin()
10164
    (name, type, seqid) = iprot.readMessageBegin()
10124
    if name not in self._processMap:
10165
    if name not in self._processMap:
10125
      iprot.skip(TType.STRUCT)
10166
      iprot.skip(TType.STRUCT)
Line 13039... Line 13080...
13039
    oprot.writeMessageBegin("addUpdateFaOrdersBulk", TMessageType.REPLY, seqid)
13080
    oprot.writeMessageBegin("addUpdateFaOrdersBulk", TMessageType.REPLY, seqid)
13040
    result.write(oprot)
13081
    result.write(oprot)
13041
    oprot.writeMessageEnd()
13082
    oprot.writeMessageEnd()
13042
    oprot.trans.flush()
13083
    oprot.trans.flush()
13043
 
13084
 
-
 
13085
  def process_addInvoiceDetailsToOrders(self, seqid, iprot, oprot):
-
 
13086
    args = addInvoiceDetailsToOrders_args()
-
 
13087
    args.read(iprot)
-
 
13088
    iprot.readMessageEnd()
-
 
13089
    result = addInvoiceDetailsToOrders_result()
-
 
13090
    try:
-
 
13091
      self._handler.addInvoiceDetailsToOrders(args.transactionId, args.customerId)
-
 
13092
    except TransactionServiceException, ex:
-
 
13093
      result.ex = ex
-
 
13094
    oprot.writeMessageBegin("addInvoiceDetailsToOrders", TMessageType.REPLY, seqid)
-
 
13095
    result.write(oprot)
-
 
13096
    oprot.writeMessageEnd()
-
 
13097
    oprot.trans.flush()
-
 
13098
 
13044
 
13099
 
13045
# HELPER FUNCTIONS AND STRUCTURES
13100
# HELPER FUNCTIONS AND STRUCTURES
13046
 
13101
 
13047
class createTransaction_args:
13102
class createTransaction_args:
13048
  """
13103
  """
Line 45081... Line 45136...
45081
  """
45136
  """
45082
  Attributes:
45137
  Attributes:
45083
   - faOrdersList
45138
   - faOrdersList
45084
  """
45139
  """
45085
 
45140
 
45086
  thrift_spec = None
45141
  thrift_spec = (
-
 
45142
    None, # 0
-
 
45143
    (1, TType.LIST, 'faOrdersList', (TType.STRUCT,(FlipkartAdvantageOrder, FlipkartAdvantageOrder.thrift_spec)), None, ), # 1
-
 
45144
  )
-
 
45145
 
45087
  def __init__(self, faOrdersList=None,):
45146
  def __init__(self, faOrdersList=None,):
45088
    self.faOrdersList = faOrdersList
45147
    self.faOrdersList = faOrdersList
45089
 
45148
 
45090
  def read(self, iprot):
45149
  def read(self, iprot):
45091
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
45150
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
Line 45094... Line 45153...
45094
    iprot.readStructBegin()
45153
    iprot.readStructBegin()
45095
    while True:
45154
    while True:
45096
      (fname, ftype, fid) = iprot.readFieldBegin()
45155
      (fname, ftype, fid) = iprot.readFieldBegin()
45097
      if ftype == TType.STOP:
45156
      if ftype == TType.STOP:
45098
        break
45157
        break
45099
      if fid == -1:
45158
      if fid == 1:
45100
        if ftype == TType.LIST:
45159
        if ftype == TType.LIST:
45101
          self.faOrdersList = []
45160
          self.faOrdersList = []
45102
          (_etype1034, _size1031) = iprot.readListBegin()
45161
          (_etype1034, _size1031) = iprot.readListBegin()
45103
          for _i1035 in xrange(_size1031):
45162
          for _i1035 in xrange(_size1031):
45104
            _elem1036 = FlipkartAdvantageOrder()
45163
            _elem1036 = FlipkartAdvantageOrder()
Line 45116... Line 45175...
45116
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
45175
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
45117
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
45176
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
45118
      return
45177
      return
45119
    oprot.writeStructBegin('addUpdateFaOrdersBulk_args')
45178
    oprot.writeStructBegin('addUpdateFaOrdersBulk_args')
45120
    if self.faOrdersList is not None:
45179
    if self.faOrdersList is not None:
45121
      oprot.writeFieldBegin('faOrdersList', TType.LIST, -1)
45180
      oprot.writeFieldBegin('faOrdersList', TType.LIST, 1)
45122
      oprot.writeListBegin(TType.STRUCT, len(self.faOrdersList))
45181
      oprot.writeListBegin(TType.STRUCT, len(self.faOrdersList))
45123
      for iter1037 in self.faOrdersList:
45182
      for iter1037 in self.faOrdersList:
45124
        iter1037.write(oprot)
45183
        iter1037.write(oprot)
45125
      oprot.writeListEnd()
45184
      oprot.writeListEnd()
45126
      oprot.writeFieldEnd()
45185
      oprot.writeFieldEnd()
Line 45184... Line 45243...
45184
    if self.ex is not None:
45243
    if self.ex is not None:
45185
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
45244
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
45186
      self.ex.write(oprot)
45245
      self.ex.write(oprot)
45187
      oprot.writeFieldEnd()
45246
      oprot.writeFieldEnd()
45188
    oprot.writeFieldStop()
45247
    oprot.writeFieldStop()
-
 
45248
    oprot.writeStructEnd()
-
 
45249
 
-
 
45250
  def validate(self):
-
 
45251
    return
-
 
45252
 
-
 
45253
 
-
 
45254
  def __repr__(self):
-
 
45255
    L = ['%s=%r' % (key, value)
-
 
45256
      for key, value in self.__dict__.iteritems()]
-
 
45257
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
45258
 
-
 
45259
  def __eq__(self, other):
-
 
45260
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
45261
 
-
 
45262
  def __ne__(self, other):
-
 
45263
    return not (self == other)
-
 
45264
 
-
 
45265
class addInvoiceDetailsToOrders_args:
-
 
45266
  """
-
 
45267
  Attributes:
-
 
45268
   - transactionId
-
 
45269
   - customerId
-
 
45270
  """
-
 
45271
 
-
 
45272
  thrift_spec = (
-
 
45273
    None, # 0
-
 
45274
    (1, TType.I64, 'transactionId', None, None, ), # 1
-
 
45275
    (2, TType.I64, 'customerId', None, None, ), # 2
-
 
45276
  )
-
 
45277
 
-
 
45278
  def __init__(self, transactionId=None, customerId=None,):
-
 
45279
    self.transactionId = transactionId
-
 
45280
    self.customerId = customerId
-
 
45281
 
-
 
45282
  def read(self, iprot):
-
 
45283
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
45284
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
45285
      return
-
 
45286
    iprot.readStructBegin()
-
 
45287
    while True:
-
 
45288
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
45289
      if ftype == TType.STOP:
-
 
45290
        break
-
 
45291
      if fid == 1:
-
 
45292
        if ftype == TType.I64:
-
 
45293
          self.transactionId = iprot.readI64();
-
 
45294
        else:
-
 
45295
          iprot.skip(ftype)
-
 
45296
      elif fid == 2:
-
 
45297
        if ftype == TType.I64:
-
 
45298
          self.customerId = iprot.readI64();
-
 
45299
        else:
-
 
45300
          iprot.skip(ftype)
-
 
45301
      else:
-
 
45302
        iprot.skip(ftype)
-
 
45303
      iprot.readFieldEnd()
-
 
45304
    iprot.readStructEnd()
-
 
45305
 
-
 
45306
  def write(self, oprot):
-
 
45307
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
45308
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
45309
      return
-
 
45310
    oprot.writeStructBegin('addInvoiceDetailsToOrders_args')
-
 
45311
    if self.transactionId is not None:
-
 
45312
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
-
 
45313
      oprot.writeI64(self.transactionId)
-
 
45314
      oprot.writeFieldEnd()
-
 
45315
    if self.customerId is not None:
-
 
45316
      oprot.writeFieldBegin('customerId', TType.I64, 2)
-
 
45317
      oprot.writeI64(self.customerId)
-
 
45318
      oprot.writeFieldEnd()
-
 
45319
    oprot.writeFieldStop()
-
 
45320
    oprot.writeStructEnd()
-
 
45321
 
-
 
45322
  def validate(self):
-
 
45323
    return
-
 
45324
 
-
 
45325
 
-
 
45326
  def __repr__(self):
-
 
45327
    L = ['%s=%r' % (key, value)
-
 
45328
      for key, value in self.__dict__.iteritems()]
-
 
45329
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
45330
 
-
 
45331
  def __eq__(self, other):
-
 
45332
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
45333
 
-
 
45334
  def __ne__(self, other):
-
 
45335
    return not (self == other)
-
 
45336
 
-
 
45337
class addInvoiceDetailsToOrders_result:
-
 
45338
  """
-
 
45339
  Attributes:
-
 
45340
   - ex
-
 
45341
  """
-
 
45342
 
-
 
45343
  thrift_spec = (
-
 
45344
    None, # 0
-
 
45345
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
45346
  )
-
 
45347
 
-
 
45348
  def __init__(self, ex=None,):
-
 
45349
    self.ex = ex
-
 
45350
 
-
 
45351
  def read(self, iprot):
-
 
45352
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
45353
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
45354
      return
-
 
45355
    iprot.readStructBegin()
-
 
45356
    while True:
-
 
45357
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
45358
      if ftype == TType.STOP:
-
 
45359
        break
-
 
45360
      if fid == 1:
-
 
45361
        if ftype == TType.STRUCT:
-
 
45362
          self.ex = TransactionServiceException()
-
 
45363
          self.ex.read(iprot)
-
 
45364
        else:
-
 
45365
          iprot.skip(ftype)
-
 
45366
      else:
-
 
45367
        iprot.skip(ftype)
-
 
45368
      iprot.readFieldEnd()
-
 
45369
    iprot.readStructEnd()
-
 
45370
 
-
 
45371
  def write(self, oprot):
-
 
45372
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
45373
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
45374
      return
-
 
45375
    oprot.writeStructBegin('addInvoiceDetailsToOrders_result')
-
 
45376
    if self.ex is not None:
-
 
45377
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
45378
      self.ex.write(oprot)
-
 
45379
      oprot.writeFieldEnd()
-
 
45380
    oprot.writeFieldStop()
45189
    oprot.writeStructEnd()
45381
    oprot.writeStructEnd()
45190
 
45382
 
45191
  def validate(self):
45383
  def validate(self):
45192
    return
45384
    return
45193
 
45385