Subversion Repositories SmartDukaan

Rev

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

Rev 19421 Rev 19474
Line 2547... Line 2547...
2547
     - logisticsTransactionId
2547
     - logisticsTransactionId
2548
     - airwayBillNo
2548
     - airwayBillNo
2549
    """
2549
    """
2550
    pass
2550
    pass
2551
 
2551
 
-
 
2552
  def addOrUpdateShipmentLogisticsCostDetails(self, shipmentLogisticsCostDetails):
-
 
2553
    """
-
 
2554
    Parameters:
-
 
2555
     - shipmentLogisticsCostDetails
-
 
2556
    """
-
 
2557
    pass
-
 
2558
 
2552
 
2559
 
2553
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2560
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2554
  def __init__(self, iprot, oprot=None):
2561
  def __init__(self, iprot, oprot=None):
2555
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2562
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2556
 
2563
 
Line 12170... Line 12177...
12170
    self._iprot.readMessageEnd()
12177
    self._iprot.readMessageEnd()
12171
    if result.success is not None:
12178
    if result.success is not None:
12172
      return result.success
12179
      return result.success
12173
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMasterOrderAWB failed: unknown result");
12180
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMasterOrderAWB failed: unknown result");
12174
 
12181
 
-
 
12182
  def addOrUpdateShipmentLogisticsCostDetails(self, shipmentLogisticsCostDetails):
-
 
12183
    """
-
 
12184
    Parameters:
-
 
12185
     - shipmentLogisticsCostDetails
-
 
12186
    """
-
 
12187
    self.send_addOrUpdateShipmentLogisticsCostDetails(shipmentLogisticsCostDetails)
-
 
12188
    return self.recv_addOrUpdateShipmentLogisticsCostDetails()
-
 
12189
 
-
 
12190
  def send_addOrUpdateShipmentLogisticsCostDetails(self, shipmentLogisticsCostDetails):
-
 
12191
    self._oprot.writeMessageBegin('addOrUpdateShipmentLogisticsCostDetails', TMessageType.CALL, self._seqid)
-
 
12192
    args = addOrUpdateShipmentLogisticsCostDetails_args()
-
 
12193
    args.shipmentLogisticsCostDetails = shipmentLogisticsCostDetails
-
 
12194
    args.write(self._oprot)
-
 
12195
    self._oprot.writeMessageEnd()
-
 
12196
    self._oprot.trans.flush()
-
 
12197
 
-
 
12198
  def recv_addOrUpdateShipmentLogisticsCostDetails(self, ):
-
 
12199
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
12200
    if mtype == TMessageType.EXCEPTION:
-
 
12201
      x = TApplicationException()
-
 
12202
      x.read(self._iprot)
-
 
12203
      self._iprot.readMessageEnd()
-
 
12204
      raise x
-
 
12205
    result = addOrUpdateShipmentLogisticsCostDetails_result()
-
 
12206
    result.read(self._iprot)
-
 
12207
    self._iprot.readMessageEnd()
-
 
12208
    if result.success is not None:
-
 
12209
      return result.success
-
 
12210
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateShipmentLogisticsCostDetails failed: unknown result");
-
 
12211
 
12175
 
12212
 
12176
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
12213
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
12177
  def __init__(self, handler):
12214
  def __init__(self, handler):
12178
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
12215
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
12179
    self._processMap["createTransaction"] = Processor.process_createTransaction
12216
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 12463... Line 12500...
12463
    self._processMap["getReturnTransactionsForCustomer"] = Processor.process_getReturnTransactionsForCustomer
12500
    self._processMap["getReturnTransactionsForCustomer"] = Processor.process_getReturnTransactionsForCustomer
12464
    self._processMap["verifyOrderForTransaction"] = Processor.process_verifyOrderForTransaction
12501
    self._processMap["verifyOrderForTransaction"] = Processor.process_verifyOrderForTransaction
12465
    self._processMap["getOrdersInBatchAsPromisedShipping"] = Processor.process_getOrdersInBatchAsPromisedShipping
12502
    self._processMap["getOrdersInBatchAsPromisedShipping"] = Processor.process_getOrdersInBatchAsPromisedShipping
12466
    self._processMap["setOrderAttributeForMasterOrderId"] = Processor.process_setOrderAttributeForMasterOrderId
12503
    self._processMap["setOrderAttributeForMasterOrderId"] = Processor.process_setOrderAttributeForMasterOrderId
12467
    self._processMap["updateMasterOrderAWB"] = Processor.process_updateMasterOrderAWB
12504
    self._processMap["updateMasterOrderAWB"] = Processor.process_updateMasterOrderAWB
-
 
12505
    self._processMap["addOrUpdateShipmentLogisticsCostDetails"] = Processor.process_addOrUpdateShipmentLogisticsCostDetails
12468
 
12506
 
12469
  def process(self, iprot, oprot):
12507
  def process(self, iprot, oprot):
12470
    (name, type, seqid) = iprot.readMessageBegin()
12508
    (name, type, seqid) = iprot.readMessageBegin()
12471
    if name not in self._processMap:
12509
    if name not in self._processMap:
12472
      iprot.skip(TType.STRUCT)
12510
      iprot.skip(TType.STRUCT)
Line 16072... Line 16110...
16072
    oprot.writeMessageBegin("updateMasterOrderAWB", TMessageType.REPLY, seqid)
16110
    oprot.writeMessageBegin("updateMasterOrderAWB", TMessageType.REPLY, seqid)
16073
    result.write(oprot)
16111
    result.write(oprot)
16074
    oprot.writeMessageEnd()
16112
    oprot.writeMessageEnd()
16075
    oprot.trans.flush()
16113
    oprot.trans.flush()
16076
 
16114
 
-
 
16115
  def process_addOrUpdateShipmentLogisticsCostDetails(self, seqid, iprot, oprot):
-
 
16116
    args = addOrUpdateShipmentLogisticsCostDetails_args()
-
 
16117
    args.read(iprot)
-
 
16118
    iprot.readMessageEnd()
-
 
16119
    result = addOrUpdateShipmentLogisticsCostDetails_result()
-
 
16120
    result.success = self._handler.addOrUpdateShipmentLogisticsCostDetails(args.shipmentLogisticsCostDetails)
-
 
16121
    oprot.writeMessageBegin("addOrUpdateShipmentLogisticsCostDetails", TMessageType.REPLY, seqid)
-
 
16122
    result.write(oprot)
-
 
16123
    oprot.writeMessageEnd()
-
 
16124
    oprot.trans.flush()
-
 
16125
 
16077
 
16126
 
16078
# HELPER FUNCTIONS AND STRUCTURES
16127
# HELPER FUNCTIONS AND STRUCTURES
16079
 
16128
 
16080
class createTransaction_args:
16129
class createTransaction_args:
16081
  """
16130
  """
Line 56282... Line 56331...
56282
    if self.success is not None:
56331
    if self.success is not None:
56283
      oprot.writeFieldBegin('success', TType.BOOL, 0)
56332
      oprot.writeFieldBegin('success', TType.BOOL, 0)
56284
      oprot.writeBool(self.success)
56333
      oprot.writeBool(self.success)
56285
      oprot.writeFieldEnd()
56334
      oprot.writeFieldEnd()
56286
    oprot.writeFieldStop()
56335
    oprot.writeFieldStop()
-
 
56336
    oprot.writeStructEnd()
-
 
56337
 
-
 
56338
  def validate(self):
-
 
56339
    return
-
 
56340
 
-
 
56341
 
-
 
56342
  def __repr__(self):
-
 
56343
    L = ['%s=%r' % (key, value)
-
 
56344
      for key, value in self.__dict__.iteritems()]
-
 
56345
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
56346
 
-
 
56347
  def __eq__(self, other):
-
 
56348
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
56349
 
-
 
56350
  def __ne__(self, other):
-
 
56351
    return not (self == other)
-
 
56352
 
-
 
56353
class addOrUpdateShipmentLogisticsCostDetails_args:
-
 
56354
  """
-
 
56355
  Attributes:
-
 
56356
   - shipmentLogisticsCostDetails
-
 
56357
  """
-
 
56358
 
-
 
56359
  thrift_spec = (
-
 
56360
    None, # 0
-
 
56361
    (1, TType.LIST, 'shipmentLogisticsCostDetails', (TType.STRUCT,(ShipmentLogisticsCostDetail, ShipmentLogisticsCostDetail.thrift_spec)), None, ), # 1
-
 
56362
  )
-
 
56363
 
-
 
56364
  def __init__(self, shipmentLogisticsCostDetails=None,):
-
 
56365
    self.shipmentLogisticsCostDetails = shipmentLogisticsCostDetails
-
 
56366
 
-
 
56367
  def read(self, iprot):
-
 
56368
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
56369
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
56370
      return
-
 
56371
    iprot.readStructBegin()
-
 
56372
    while True:
-
 
56373
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
56374
      if ftype == TType.STOP:
-
 
56375
        break
-
 
56376
      if fid == 1:
-
 
56377
        if ftype == TType.LIST:
-
 
56378
          self.shipmentLogisticsCostDetails = []
-
 
56379
          (_etype1433, _size1430) = iprot.readListBegin()
-
 
56380
          for _i1434 in xrange(_size1430):
-
 
56381
            _elem1435 = ShipmentLogisticsCostDetail()
-
 
56382
            _elem1435.read(iprot)
-
 
56383
            self.shipmentLogisticsCostDetails.append(_elem1435)
-
 
56384
          iprot.readListEnd()
-
 
56385
        else:
-
 
56386
          iprot.skip(ftype)
-
 
56387
      else:
-
 
56388
        iprot.skip(ftype)
-
 
56389
      iprot.readFieldEnd()
-
 
56390
    iprot.readStructEnd()
-
 
56391
 
-
 
56392
  def write(self, oprot):
-
 
56393
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
56394
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
56395
      return
-
 
56396
    oprot.writeStructBegin('addOrUpdateShipmentLogisticsCostDetails_args')
-
 
56397
    if self.shipmentLogisticsCostDetails is not None:
-
 
56398
      oprot.writeFieldBegin('shipmentLogisticsCostDetails', TType.LIST, 1)
-
 
56399
      oprot.writeListBegin(TType.STRUCT, len(self.shipmentLogisticsCostDetails))
-
 
56400
      for iter1436 in self.shipmentLogisticsCostDetails:
-
 
56401
        iter1436.write(oprot)
-
 
56402
      oprot.writeListEnd()
-
 
56403
      oprot.writeFieldEnd()
-
 
56404
    oprot.writeFieldStop()
-
 
56405
    oprot.writeStructEnd()
-
 
56406
 
-
 
56407
  def validate(self):
-
 
56408
    return
-
 
56409
 
-
 
56410
 
-
 
56411
  def __repr__(self):
-
 
56412
    L = ['%s=%r' % (key, value)
-
 
56413
      for key, value in self.__dict__.iteritems()]
-
 
56414
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
56415
 
-
 
56416
  def __eq__(self, other):
-
 
56417
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
56418
 
-
 
56419
  def __ne__(self, other):
-
 
56420
    return not (self == other)
-
 
56421
 
-
 
56422
class addOrUpdateShipmentLogisticsCostDetails_result:
-
 
56423
  """
-
 
56424
  Attributes:
-
 
56425
   - success
-
 
56426
  """
-
 
56427
 
-
 
56428
  thrift_spec = (
-
 
56429
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
56430
  )
-
 
56431
 
-
 
56432
  def __init__(self, success=None,):
-
 
56433
    self.success = success
-
 
56434
 
-
 
56435
  def read(self, iprot):
-
 
56436
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
56437
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
56438
      return
-
 
56439
    iprot.readStructBegin()
-
 
56440
    while True:
-
 
56441
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
56442
      if ftype == TType.STOP:
-
 
56443
        break
-
 
56444
      if fid == 0:
-
 
56445
        if ftype == TType.BOOL:
-
 
56446
          self.success = iprot.readBool();
-
 
56447
        else:
-
 
56448
          iprot.skip(ftype)
-
 
56449
      else:
-
 
56450
        iprot.skip(ftype)
-
 
56451
      iprot.readFieldEnd()
-
 
56452
    iprot.readStructEnd()
-
 
56453
 
-
 
56454
  def write(self, oprot):
-
 
56455
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
56456
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
56457
      return
-
 
56458
    oprot.writeStructBegin('addOrUpdateShipmentLogisticsCostDetails_result')
-
 
56459
    if self.success is not None:
-
 
56460
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
56461
      oprot.writeBool(self.success)
-
 
56462
      oprot.writeFieldEnd()
-
 
56463
    oprot.writeFieldStop()
56287
    oprot.writeStructEnd()
56464
    oprot.writeStructEnd()
56288
 
56465
 
56289
  def validate(self):
56466
  def validate(self):
56290
    return
56467
    return
56291
 
56468