Subversion Repositories SmartDukaan

Rev

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

Rev 5110 Rev 5189
Line 1041... Line 1041...
1041
     - transactionDateTo
1041
     - transactionDateTo
1042
     - amount
1042
     - amount
1043
    """
1043
    """
1044
    pass
1044
    pass
1045
 
1045
 
1046
  def getSettlementForPaymentId(self, paymentId):
1046
  def getSettlementForReferenceId(self, referenceId, isRefund):
1047
    """
1047
    """
1048
    Parameters:
1048
    Parameters:
1049
     - paymentId
1049
     - referenceId
-
 
1050
     - isRefund
1050
    """
1051
    """
1051
    pass
1052
    pass
1052
 
1053
 
1053
  def getEBSSettlementSummaries(self, ):
1054
  def getEBSSettlementSummaries(self, ):
1054
    pass
1055
    pass
Line 4610... Line 4611...
4610
    self._iprot.readMessageEnd()
4611
    self._iprot.readMessageEnd()
4611
    if result.ex is not None:
4612
    if result.ex is not None:
4612
      raise result.ex
4613
      raise result.ex
4613
    return
4614
    return
4614
 
4615
 
4615
  def getSettlementForPaymentId(self, paymentId):
4616
  def getSettlementForReferenceId(self, referenceId, isRefund):
4616
    """
4617
    """
4617
    Parameters:
4618
    Parameters:
4618
     - paymentId
4619
     - referenceId
-
 
4620
     - isRefund
4619
    """
4621
    """
4620
    self.send_getSettlementForPaymentId(paymentId)
4622
    self.send_getSettlementForReferenceId(referenceId, isRefund)
4621
    return self.recv_getSettlementForPaymentId()
4623
    return self.recv_getSettlementForReferenceId()
4622
 
4624
 
4623
  def send_getSettlementForPaymentId(self, paymentId):
4625
  def send_getSettlementForReferenceId(self, referenceId, isRefund):
4624
    self._oprot.writeMessageBegin('getSettlementForPaymentId', TMessageType.CALL, self._seqid)
4626
    self._oprot.writeMessageBegin('getSettlementForReferenceId', TMessageType.CALL, self._seqid)
4625
    args = getSettlementForPaymentId_args()
4627
    args = getSettlementForReferenceId_args()
4626
    args.paymentId = paymentId
4628
    args.referenceId = referenceId
-
 
4629
    args.isRefund = isRefund
4627
    args.write(self._oprot)
4630
    args.write(self._oprot)
4628
    self._oprot.writeMessageEnd()
4631
    self._oprot.writeMessageEnd()
4629
    self._oprot.trans.flush()
4632
    self._oprot.trans.flush()
4630
 
4633
 
4631
  def recv_getSettlementForPaymentId(self, ):
4634
  def recv_getSettlementForReferenceId(self, ):
4632
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4635
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4633
    if mtype == TMessageType.EXCEPTION:
4636
    if mtype == TMessageType.EXCEPTION:
4634
      x = TApplicationException()
4637
      x = TApplicationException()
4635
      x.read(self._iprot)
4638
      x.read(self._iprot)
4636
      self._iprot.readMessageEnd()
4639
      self._iprot.readMessageEnd()
4637
      raise x
4640
      raise x
4638
    result = getSettlementForPaymentId_result()
4641
    result = getSettlementForReferenceId_result()
4639
    result.read(self._iprot)
4642
    result.read(self._iprot)
4640
    self._iprot.readMessageEnd()
4643
    self._iprot.readMessageEnd()
4641
    if result.success is not None:
4644
    if result.success is not None:
4642
      return result.success
4645
      return result.success
4643
    if result.ex is not None:
4646
    if result.ex is not None:
4644
      raise result.ex
4647
      raise result.ex
4645
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSettlementForPaymentId failed: unknown result");
4648
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSettlementForReferenceId failed: unknown result");
4646
 
4649
 
4647
  def getEBSSettlementSummaries(self, ):
4650
  def getEBSSettlementSummaries(self, ):
4648
    self.send_getEBSSettlementSummaries()
4651
    self.send_getEBSSettlementSummaries()
4649
    return self.recv_getEBSSettlementSummaries()
4652
    return self.recv_getEBSSettlementSummaries()
4650
 
4653
 
Line 5072... Line 5075...
5072
    self._processMap["getSlippedSippingDateOrders"] = Processor.process_getSlippedSippingDateOrders
5075
    self._processMap["getSlippedSippingDateOrders"] = Processor.process_getSlippedSippingDateOrders
5073
    self._processMap["getCancelledOrders"] = Processor.process_getCancelledOrders
5076
    self._processMap["getCancelledOrders"] = Processor.process_getCancelledOrders
5074
    self._processMap["saveBluedartSettlements"] = Processor.process_saveBluedartSettlements
5077
    self._processMap["saveBluedartSettlements"] = Processor.process_saveBluedartSettlements
5075
    self._processMap["savePaymentSettlements"] = Processor.process_savePaymentSettlements
5078
    self._processMap["savePaymentSettlements"] = Processor.process_savePaymentSettlements
5076
    self._processMap["saveEBSSettlementSummary"] = Processor.process_saveEBSSettlementSummary
5079
    self._processMap["saveEBSSettlementSummary"] = Processor.process_saveEBSSettlementSummary
5077
    self._processMap["getSettlementForPaymentId"] = Processor.process_getSettlementForPaymentId
5080
    self._processMap["getSettlementForReferenceId"] = Processor.process_getSettlementForReferenceId
5078
    self._processMap["getEBSSettlementSummaries"] = Processor.process_getEBSSettlementSummaries
5081
    self._processMap["getEBSSettlementSummaries"] = Processor.process_getEBSSettlementSummaries
5079
    self._processMap["markEBSSettlementUploaded"] = Processor.process_markEBSSettlementUploaded
5082
    self._processMap["markEBSSettlementUploaded"] = Processor.process_markEBSSettlementUploaded
5080
    self._processMap["getEBSSettlementDate"] = Processor.process_getEBSSettlementDate
5083
    self._processMap["getEBSSettlementDate"] = Processor.process_getEBSSettlementDate
5081
    self._processMap["getSettlementsByDate"] = Processor.process_getSettlementsByDate
5084
    self._processMap["getSettlementsByDate"] = Processor.process_getSettlementsByDate
5082
    self._processMap["getReshippedOrderIds"] = Processor.process_getReshippedOrderIds
5085
    self._processMap["getReshippedOrderIds"] = Processor.process_getReshippedOrderIds
Line 6402... Line 6405...
6402
    oprot.writeMessageBegin("saveEBSSettlementSummary", TMessageType.REPLY, seqid)
6405
    oprot.writeMessageBegin("saveEBSSettlementSummary", TMessageType.REPLY, seqid)
6403
    result.write(oprot)
6406
    result.write(oprot)
6404
    oprot.writeMessageEnd()
6407
    oprot.writeMessageEnd()
6405
    oprot.trans.flush()
6408
    oprot.trans.flush()
6406
 
6409
 
6407
  def process_getSettlementForPaymentId(self, seqid, iprot, oprot):
6410
  def process_getSettlementForReferenceId(self, seqid, iprot, oprot):
6408
    args = getSettlementForPaymentId_args()
6411
    args = getSettlementForReferenceId_args()
6409
    args.read(iprot)
6412
    args.read(iprot)
6410
    iprot.readMessageEnd()
6413
    iprot.readMessageEnd()
6411
    result = getSettlementForPaymentId_result()
6414
    result = getSettlementForReferenceId_result()
6412
    try:
6415
    try:
6413
      result.success = self._handler.getSettlementForPaymentId(args.paymentId)
6416
      result.success = self._handler.getSettlementForReferenceId(args.referenceId, args.isRefund)
6414
    except TransactionServiceException, ex:
6417
    except TransactionServiceException, ex:
6415
      result.ex = ex
6418
      result.ex = ex
6416
    oprot.writeMessageBegin("getSettlementForPaymentId", TMessageType.REPLY, seqid)
6419
    oprot.writeMessageBegin("getSettlementForReferenceId", TMessageType.REPLY, seqid)
6417
    result.write(oprot)
6420
    result.write(oprot)
6418
    oprot.writeMessageEnd()
6421
    oprot.writeMessageEnd()
6419
    oprot.trans.flush()
6422
    oprot.trans.flush()
6420
 
6423
 
6421
  def process_getEBSSettlementSummaries(self, seqid, iprot, oprot):
6424
  def process_getEBSSettlementSummaries(self, seqid, iprot, oprot):
Line 20553... Line 20556...
20553
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20554
 
20557
 
20555
  def __ne__(self, other):
20558
  def __ne__(self, other):
20556
    return not (self == other)
20559
    return not (self == other)
20557
 
20560
 
20558
class getSettlementForPaymentId_args:
20561
class getSettlementForReferenceId_args:
20559
  """
20562
  """
20560
  Attributes:
20563
  Attributes:
20561
   - paymentId
20564
   - referenceId
-
 
20565
   - isRefund
20562
  """
20566
  """
20563
 
20567
 
20564
  thrift_spec = (
20568
  thrift_spec = (
20565
    None, # 0
20569
    None, # 0
20566
    (1, TType.I64, 'paymentId', None, None, ), # 1
20570
    (1, TType.I64, 'referenceId', None, None, ), # 1
-
 
20571
    (2, TType.BOOL, 'isRefund', None, None, ), # 2
20567
  )
20572
  )
20568
 
20573
 
20569
  def __init__(self, paymentId=None,):
20574
  def __init__(self, referenceId=None, isRefund=None,):
20570
    self.paymentId = paymentId
20575
    self.referenceId = referenceId
-
 
20576
    self.isRefund = isRefund
20571
 
20577
 
20572
  def read(self, iprot):
20578
  def read(self, iprot):
20573
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20579
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20574
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20580
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20575
      return
20581
      return
Line 20578... Line 20584...
20578
      (fname, ftype, fid) = iprot.readFieldBegin()
20584
      (fname, ftype, fid) = iprot.readFieldBegin()
20579
      if ftype == TType.STOP:
20585
      if ftype == TType.STOP:
20580
        break
20586
        break
20581
      if fid == 1:
20587
      if fid == 1:
20582
        if ftype == TType.I64:
20588
        if ftype == TType.I64:
20583
          self.paymentId = iprot.readI64();
20589
          self.referenceId = iprot.readI64();
-
 
20590
        else:
-
 
20591
          iprot.skip(ftype)
-
 
20592
      elif fid == 2:
-
 
20593
        if ftype == TType.BOOL:
-
 
20594
          self.isRefund = iprot.readBool();
20584
        else:
20595
        else:
20585
          iprot.skip(ftype)
20596
          iprot.skip(ftype)
20586
      else:
20597
      else:
20587
        iprot.skip(ftype)
20598
        iprot.skip(ftype)
20588
      iprot.readFieldEnd()
20599
      iprot.readFieldEnd()
Line 20590... Line 20601...
20590
 
20601
 
20591
  def write(self, oprot):
20602
  def write(self, oprot):
20592
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20603
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20593
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20604
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20594
      return
20605
      return
20595
    oprot.writeStructBegin('getSettlementForPaymentId_args')
20606
    oprot.writeStructBegin('getSettlementForReferenceId_args')
20596
    if self.paymentId is not None:
20607
    if self.referenceId is not None:
20597
      oprot.writeFieldBegin('paymentId', TType.I64, 1)
20608
      oprot.writeFieldBegin('referenceId', TType.I64, 1)
20598
      oprot.writeI64(self.paymentId)
20609
      oprot.writeI64(self.referenceId)
-
 
20610
      oprot.writeFieldEnd()
-
 
20611
    if self.isRefund is not None:
-
 
20612
      oprot.writeFieldBegin('isRefund', TType.BOOL, 2)
-
 
20613
      oprot.writeBool(self.isRefund)
20599
      oprot.writeFieldEnd()
20614
      oprot.writeFieldEnd()
20600
    oprot.writeFieldStop()
20615
    oprot.writeFieldStop()
20601
    oprot.writeStructEnd()
20616
    oprot.writeStructEnd()
20602
 
20617
 
20603
  def validate(self):
20618
  def validate(self):
Line 20613... Line 20628...
20613
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20628
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20614
 
20629
 
20615
  def __ne__(self, other):
20630
  def __ne__(self, other):
20616
    return not (self == other)
20631
    return not (self == other)
20617
 
20632
 
20618
class getSettlementForPaymentId_result:
20633
class getSettlementForReferenceId_result:
20619
  """
20634
  """
20620
  Attributes:
20635
  Attributes:
20621
   - success
20636
   - success
20622
   - ex
20637
   - ex
20623
  """
20638
  """
Line 20659... Line 20674...
20659
 
20674
 
20660
  def write(self, oprot):
20675
  def write(self, oprot):
20661
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20676
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20662
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20677
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20663
      return
20678
      return
20664
    oprot.writeStructBegin('getSettlementForPaymentId_result')
20679
    oprot.writeStructBegin('getSettlementForReferenceId_result')
20665
    if self.success is not None:
20680
    if self.success is not None:
20666
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
20681
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
20667
      self.success.write(oprot)
20682
      self.success.write(oprot)
20668
      oprot.writeFieldEnd()
20683
      oprot.writeFieldEnd()
20669
    if self.ex is not None:
20684
    if self.ex is not None: