Subversion Repositories SmartDukaan

Rev

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

Rev 5238 Rev 5348
Line 1084... Line 1084...
1084
    Parameters:
1084
    Parameters:
1085
     - orderIds
1085
     - orderIds
1086
    """
1086
    """
1087
    pass
1087
    pass
1088
 
1088
 
-
 
1089
  def updateOrdersAsPORaised(self, itemIdQuantityMap, purchaseOrderId, warehouseId):
-
 
1090
    """
-
 
1091
    Updates orders as PO raised. Also updates purchase order id in orders. Pass a map of items mapped to
-
 
1092
    the quantities for which the PO is raised.
-
 
1093
 
-
 
1094
    Parameters:
-
 
1095
     - itemIdQuantityMap
-
 
1096
     - purchaseOrderId
-
 
1097
     - warehouseId
-
 
1098
    """
-
 
1099
    pass
-
 
1100
 
1089
  def getOrdersWhereVendorNotPaid(self, vendorId):
1101
  def getOrdersWhereVendorNotPaid(self, vendorId):
1090
    """
1102
    """
1091
    Parameters:
1103
    Parameters:
1092
     - vendorId
1104
     - vendorId
1093
    """
1105
    """
Line 1108... Line 1120...
1108
     - startDatetime
1120
     - startDatetime
1109
     - endDatetime
1121
     - endDatetime
1110
    """
1122
    """
1111
    pass
1123
    pass
1112
 
1124
 
-
 
1125
  def updateCODAgent(self, agent, orderId):
-
 
1126
    """
-
 
1127
    Updates the agent who handled the COD verification call
-
 
1128
 
-
 
1129
    Parameters:
-
 
1130
     - agent
-
 
1131
     - orderId
-
 
1132
    """
-
 
1133
    pass
-
 
1134
 
1113
  def updateOrderAsPaidToVendor(self, orderId):
1135
  def updateOrderAsPaidToVendor(self, orderId):
1114
    """
1136
    """
1115
    Parameters:
1137
    Parameters:
1116
     - orderId
1138
     - orderId
1117
    """
1139
    """
Line 4795... Line 4817...
4795
      return result.success
4817
      return result.success
4796
    if result.ex is not None:
4818
    if result.ex is not None:
4797
      raise result.ex
4819
      raise result.ex
4798
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReshippedOrderIds failed: unknown result");
4820
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReshippedOrderIds failed: unknown result");
4799
 
4821
 
-
 
4822
  def updateOrdersAsPORaised(self, itemIdQuantityMap, purchaseOrderId, warehouseId):
-
 
4823
    """
-
 
4824
    Updates orders as PO raised. Also updates purchase order id in orders. Pass a map of items mapped to
-
 
4825
    the quantities for which the PO is raised.
-
 
4826
 
-
 
4827
    Parameters:
-
 
4828
     - itemIdQuantityMap
-
 
4829
     - purchaseOrderId
-
 
4830
     - warehouseId
-
 
4831
    """
-
 
4832
    self.send_updateOrdersAsPORaised(itemIdQuantityMap, purchaseOrderId, warehouseId)
-
 
4833
    self.recv_updateOrdersAsPORaised()
-
 
4834
 
-
 
4835
  def send_updateOrdersAsPORaised(self, itemIdQuantityMap, purchaseOrderId, warehouseId):
-
 
4836
    self._oprot.writeMessageBegin('updateOrdersAsPORaised', TMessageType.CALL, self._seqid)
-
 
4837
    args = updateOrdersAsPORaised_args()
-
 
4838
    args.itemIdQuantityMap = itemIdQuantityMap
-
 
4839
    args.purchaseOrderId = purchaseOrderId
-
 
4840
    args.warehouseId = warehouseId
-
 
4841
    args.write(self._oprot)
-
 
4842
    self._oprot.writeMessageEnd()
-
 
4843
    self._oprot.trans.flush()
-
 
4844
 
-
 
4845
  def recv_updateOrdersAsPORaised(self, ):
-
 
4846
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
4847
    if mtype == TMessageType.EXCEPTION:
-
 
4848
      x = TApplicationException()
-
 
4849
      x.read(self._iprot)
-
 
4850
      self._iprot.readMessageEnd()
-
 
4851
      raise x
-
 
4852
    result = updateOrdersAsPORaised_result()
-
 
4853
    result.read(self._iprot)
-
 
4854
    self._iprot.readMessageEnd()
-
 
4855
    if result.ex is not None:
-
 
4856
      raise result.ex
-
 
4857
    return
-
 
4858
 
4800
  def getOrdersWhereVendorNotPaid(self, vendorId):
4859
  def getOrdersWhereVendorNotPaid(self, vendorId):
4801
    """
4860
    """
4802
    Parameters:
4861
    Parameters:
4803
     - vendorId
4862
     - vendorId
4804
    """
4863
    """
Line 4897... Line 4956...
4897
      return result.success
4956
      return result.success
4898
    if result.ex is not None:
4957
    if result.ex is not None:
4899
      raise result.ex
4958
      raise result.ex
4900
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderIdsForStatus failed: unknown result");
4959
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderIdsForStatus failed: unknown result");
4901
 
4960
 
-
 
4961
  def updateCODAgent(self, agent, orderId):
-
 
4962
    """
-
 
4963
    Updates the agent who handled the COD verification call
-
 
4964
 
-
 
4965
    Parameters:
-
 
4966
     - agent
-
 
4967
     - orderId
-
 
4968
    """
-
 
4969
    self.send_updateCODAgent(agent, orderId)
-
 
4970
    self.recv_updateCODAgent()
-
 
4971
 
-
 
4972
  def send_updateCODAgent(self, agent, orderId):
-
 
4973
    self._oprot.writeMessageBegin('updateCODAgent', TMessageType.CALL, self._seqid)
-
 
4974
    args = updateCODAgent_args()
-
 
4975
    args.agent = agent
-
 
4976
    args.orderId = orderId
-
 
4977
    args.write(self._oprot)
-
 
4978
    self._oprot.writeMessageEnd()
-
 
4979
    self._oprot.trans.flush()
-
 
4980
 
-
 
4981
  def recv_updateCODAgent(self, ):
-
 
4982
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
4983
    if mtype == TMessageType.EXCEPTION:
-
 
4984
      x = TApplicationException()
-
 
4985
      x.read(self._iprot)
-
 
4986
      self._iprot.readMessageEnd()
-
 
4987
      raise x
-
 
4988
    result = updateCODAgent_result()
-
 
4989
    result.read(self._iprot)
-
 
4990
    self._iprot.readMessageEnd()
-
 
4991
    if result.ex is not None:
-
 
4992
      raise result.ex
-
 
4993
    return
-
 
4994
 
4902
  def updateOrderAsPaidToVendor(self, orderId):
4995
  def updateOrderAsPaidToVendor(self, orderId):
4903
    """
4996
    """
4904
    Parameters:
4997
    Parameters:
4905
     - orderId
4998
     - orderId
4906
    """
4999
    """
Line 5062... Line 5155...
5062
    self._processMap["getEBSSettlementSummaries"] = Processor.process_getEBSSettlementSummaries
5155
    self._processMap["getEBSSettlementSummaries"] = Processor.process_getEBSSettlementSummaries
5063
    self._processMap["markEBSSettlementUploaded"] = Processor.process_markEBSSettlementUploaded
5156
    self._processMap["markEBSSettlementUploaded"] = Processor.process_markEBSSettlementUploaded
5064
    self._processMap["getEBSSettlementDate"] = Processor.process_getEBSSettlementDate
5157
    self._processMap["getEBSSettlementDate"] = Processor.process_getEBSSettlementDate
5065
    self._processMap["getSettlementsByDate"] = Processor.process_getSettlementsByDate
5158
    self._processMap["getSettlementsByDate"] = Processor.process_getSettlementsByDate
5066
    self._processMap["getReshippedOrderIds"] = Processor.process_getReshippedOrderIds
5159
    self._processMap["getReshippedOrderIds"] = Processor.process_getReshippedOrderIds
-
 
5160
    self._processMap["updateOrdersAsPORaised"] = Processor.process_updateOrdersAsPORaised
5067
    self._processMap["getOrdersWhereVendorNotPaid"] = Processor.process_getOrdersWhereVendorNotPaid
5161
    self._processMap["getOrdersWhereVendorNotPaid"] = Processor.process_getOrdersWhereVendorNotPaid
5068
    self._processMap["getStatusDistributionOfOrders"] = Processor.process_getStatusDistributionOfOrders
5162
    self._processMap["getStatusDistributionOfOrders"] = Processor.process_getStatusDistributionOfOrders
5069
    self._processMap["getOrderIdsForStatus"] = Processor.process_getOrderIdsForStatus
5163
    self._processMap["getOrderIdsForStatus"] = Processor.process_getOrderIdsForStatus
-
 
5164
    self._processMap["updateCODAgent"] = Processor.process_updateCODAgent
5070
    self._processMap["updateOrderAsPaidToVendor"] = Processor.process_updateOrderAsPaidToVendor
5165
    self._processMap["updateOrderAsPaidToVendor"] = Processor.process_updateOrderAsPaidToVendor
5071
    self._processMap["getRefundedOrdersMarkedPaid"] = Processor.process_getRefundedOrdersMarkedPaid
5166
    self._processMap["getRefundedOrdersMarkedPaid"] = Processor.process_getRefundedOrdersMarkedPaid
5072
 
5167
 
5073
  def process(self, iprot, oprot):
5168
  def process(self, iprot, oprot):
5074
    (name, type, seqid) = iprot.readMessageBegin()
5169
    (name, type, seqid) = iprot.readMessageBegin()
Line 6470... Line 6565...
6470
    oprot.writeMessageBegin("getReshippedOrderIds", TMessageType.REPLY, seqid)
6565
    oprot.writeMessageBegin("getReshippedOrderIds", TMessageType.REPLY, seqid)
6471
    result.write(oprot)
6566
    result.write(oprot)
6472
    oprot.writeMessageEnd()
6567
    oprot.writeMessageEnd()
6473
    oprot.trans.flush()
6568
    oprot.trans.flush()
6474
 
6569
 
-
 
6570
  def process_updateOrdersAsPORaised(self, seqid, iprot, oprot):
-
 
6571
    args = updateOrdersAsPORaised_args()
-
 
6572
    args.read(iprot)
-
 
6573
    iprot.readMessageEnd()
-
 
6574
    result = updateOrdersAsPORaised_result()
-
 
6575
    try:
-
 
6576
      self._handler.updateOrdersAsPORaised(args.itemIdQuantityMap, args.purchaseOrderId, args.warehouseId)
-
 
6577
    except TransactionServiceException, ex:
-
 
6578
      result.ex = ex
-
 
6579
    oprot.writeMessageBegin("updateOrdersAsPORaised", TMessageType.REPLY, seqid)
-
 
6580
    result.write(oprot)
-
 
6581
    oprot.writeMessageEnd()
-
 
6582
    oprot.trans.flush()
-
 
6583
 
6475
  def process_getOrdersWhereVendorNotPaid(self, seqid, iprot, oprot):
6584
  def process_getOrdersWhereVendorNotPaid(self, seqid, iprot, oprot):
6476
    args = getOrdersWhereVendorNotPaid_args()
6585
    args = getOrdersWhereVendorNotPaid_args()
6477
    args.read(iprot)
6586
    args.read(iprot)
6478
    iprot.readMessageEnd()
6587
    iprot.readMessageEnd()
6479
    result = getOrdersWhereVendorNotPaid_result()
6588
    result = getOrdersWhereVendorNotPaid_result()
Line 6512... Line 6621...
6512
    oprot.writeMessageBegin("getOrderIdsForStatus", TMessageType.REPLY, seqid)
6621
    oprot.writeMessageBegin("getOrderIdsForStatus", TMessageType.REPLY, seqid)
6513
    result.write(oprot)
6622
    result.write(oprot)
6514
    oprot.writeMessageEnd()
6623
    oprot.writeMessageEnd()
6515
    oprot.trans.flush()
6624
    oprot.trans.flush()
6516
 
6625
 
-
 
6626
  def process_updateCODAgent(self, seqid, iprot, oprot):
-
 
6627
    args = updateCODAgent_args()
-
 
6628
    args.read(iprot)
-
 
6629
    iprot.readMessageEnd()
-
 
6630
    result = updateCODAgent_result()
-
 
6631
    try:
-
 
6632
      self._handler.updateCODAgent(args.agent, args.orderId)
-
 
6633
    except TransactionServiceException, ex:
-
 
6634
      result.ex = ex
-
 
6635
    oprot.writeMessageBegin("updateCODAgent", TMessageType.REPLY, seqid)
-
 
6636
    result.write(oprot)
-
 
6637
    oprot.writeMessageEnd()
-
 
6638
    oprot.trans.flush()
-
 
6639
 
6517
  def process_updateOrderAsPaidToVendor(self, seqid, iprot, oprot):
6640
  def process_updateOrderAsPaidToVendor(self, seqid, iprot, oprot):
6518
    args = updateOrderAsPaidToVendor_args()
6641
    args = updateOrderAsPaidToVendor_args()
6519
    args.read(iprot)
6642
    args.read(iprot)
6520
    iprot.readMessageEnd()
6643
    iprot.readMessageEnd()
6521
    result = updateOrderAsPaidToVendor_result()
6644
    result = updateOrderAsPaidToVendor_result()
Line 21372... Line 21495...
21372
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21495
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21373
 
21496
 
21374
  def __ne__(self, other):
21497
  def __ne__(self, other):
21375
    return not (self == other)
21498
    return not (self == other)
21376
 
21499
 
-
 
21500
class updateOrdersAsPORaised_args:
-
 
21501
  """
-
 
21502
  Attributes:
-
 
21503
   - itemIdQuantityMap
-
 
21504
   - purchaseOrderId
-
 
21505
   - warehouseId
-
 
21506
  """
-
 
21507
 
-
 
21508
  thrift_spec = (
-
 
21509
    None, # 0
-
 
21510
    (1, TType.MAP, 'itemIdQuantityMap', (TType.I64,None,TType.I64,None), None, ), # 1
-
 
21511
    (2, TType.I64, 'purchaseOrderId', None, None, ), # 2
-
 
21512
    (3, TType.I64, 'warehouseId', None, None, ), # 3
-
 
21513
  )
-
 
21514
 
-
 
21515
  def __init__(self, itemIdQuantityMap=None, purchaseOrderId=None, warehouseId=None,):
-
 
21516
    self.itemIdQuantityMap = itemIdQuantityMap
-
 
21517
    self.purchaseOrderId = purchaseOrderId
-
 
21518
    self.warehouseId = warehouseId
-
 
21519
 
-
 
21520
  def read(self, iprot):
-
 
21521
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
21522
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
21523
      return
-
 
21524
    iprot.readStructBegin()
-
 
21525
    while True:
-
 
21526
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
21527
      if ftype == TType.STOP:
-
 
21528
        break
-
 
21529
      if fid == 1:
-
 
21530
        if ftype == TType.MAP:
-
 
21531
          self.itemIdQuantityMap = {}
-
 
21532
          (_ktype493, _vtype494, _size492 ) = iprot.readMapBegin() 
-
 
21533
          for _i496 in xrange(_size492):
-
 
21534
            _key497 = iprot.readI64();
-
 
21535
            _val498 = iprot.readI64();
-
 
21536
            self.itemIdQuantityMap[_key497] = _val498
-
 
21537
          iprot.readMapEnd()
-
 
21538
        else:
-
 
21539
          iprot.skip(ftype)
-
 
21540
      elif fid == 2:
-
 
21541
        if ftype == TType.I64:
-
 
21542
          self.purchaseOrderId = iprot.readI64();
-
 
21543
        else:
-
 
21544
          iprot.skip(ftype)
-
 
21545
      elif fid == 3:
-
 
21546
        if ftype == TType.I64:
-
 
21547
          self.warehouseId = iprot.readI64();
-
 
21548
        else:
-
 
21549
          iprot.skip(ftype)
-
 
21550
      else:
-
 
21551
        iprot.skip(ftype)
-
 
21552
      iprot.readFieldEnd()
-
 
21553
    iprot.readStructEnd()
-
 
21554
 
-
 
21555
  def write(self, oprot):
-
 
21556
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
21557
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
21558
      return
-
 
21559
    oprot.writeStructBegin('updateOrdersAsPORaised_args')
-
 
21560
    if self.itemIdQuantityMap is not None:
-
 
21561
      oprot.writeFieldBegin('itemIdQuantityMap', TType.MAP, 1)
-
 
21562
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.itemIdQuantityMap))
-
 
21563
      for kiter499,viter500 in self.itemIdQuantityMap.items():
-
 
21564
        oprot.writeI64(kiter499)
-
 
21565
        oprot.writeI64(viter500)
-
 
21566
      oprot.writeMapEnd()
-
 
21567
      oprot.writeFieldEnd()
-
 
21568
    if self.purchaseOrderId is not None:
-
 
21569
      oprot.writeFieldBegin('purchaseOrderId', TType.I64, 2)
-
 
21570
      oprot.writeI64(self.purchaseOrderId)
-
 
21571
      oprot.writeFieldEnd()
-
 
21572
    if self.warehouseId is not None:
-
 
21573
      oprot.writeFieldBegin('warehouseId', TType.I64, 3)
-
 
21574
      oprot.writeI64(self.warehouseId)
-
 
21575
      oprot.writeFieldEnd()
-
 
21576
    oprot.writeFieldStop()
-
 
21577
    oprot.writeStructEnd()
-
 
21578
 
-
 
21579
  def validate(self):
-
 
21580
    return
-
 
21581
 
-
 
21582
 
-
 
21583
  def __repr__(self):
-
 
21584
    L = ['%s=%r' % (key, value)
-
 
21585
      for key, value in self.__dict__.iteritems()]
-
 
21586
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
21587
 
-
 
21588
  def __eq__(self, other):
-
 
21589
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
21590
 
-
 
21591
  def __ne__(self, other):
-
 
21592
    return not (self == other)
-
 
21593
 
-
 
21594
class updateOrdersAsPORaised_result:
-
 
21595
  """
-
 
21596
  Attributes:
-
 
21597
   - ex
-
 
21598
  """
-
 
21599
 
-
 
21600
  thrift_spec = (
-
 
21601
    None, # 0
-
 
21602
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
21603
  )
-
 
21604
 
-
 
21605
  def __init__(self, ex=None,):
-
 
21606
    self.ex = ex
-
 
21607
 
-
 
21608
  def read(self, iprot):
-
 
21609
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
21610
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
21611
      return
-
 
21612
    iprot.readStructBegin()
-
 
21613
    while True:
-
 
21614
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
21615
      if ftype == TType.STOP:
-
 
21616
        break
-
 
21617
      if fid == 1:
-
 
21618
        if ftype == TType.STRUCT:
-
 
21619
          self.ex = TransactionServiceException()
-
 
21620
          self.ex.read(iprot)
-
 
21621
        else:
-
 
21622
          iprot.skip(ftype)
-
 
21623
      else:
-
 
21624
        iprot.skip(ftype)
-
 
21625
      iprot.readFieldEnd()
-
 
21626
    iprot.readStructEnd()
-
 
21627
 
-
 
21628
  def write(self, oprot):
-
 
21629
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
21630
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
21631
      return
-
 
21632
    oprot.writeStructBegin('updateOrdersAsPORaised_result')
-
 
21633
    if self.ex is not None:
-
 
21634
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
21635
      self.ex.write(oprot)
-
 
21636
      oprot.writeFieldEnd()
-
 
21637
    oprot.writeFieldStop()
-
 
21638
    oprot.writeStructEnd()
-
 
21639
 
-
 
21640
  def validate(self):
-
 
21641
    return
-
 
21642
 
-
 
21643
 
-
 
21644
  def __repr__(self):
-
 
21645
    L = ['%s=%r' % (key, value)
-
 
21646
      for key, value in self.__dict__.iteritems()]
-
 
21647
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
21648
 
-
 
21649
  def __eq__(self, other):
-
 
21650
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
21651
 
-
 
21652
  def __ne__(self, other):
-
 
21653
    return not (self == other)
-
 
21654
 
21377
class getOrdersWhereVendorNotPaid_args:
21655
class getOrdersWhereVendorNotPaid_args:
21378
  """
21656
  """
21379
  Attributes:
21657
  Attributes:
21380
   - vendorId
21658
   - vendorId
21381
  """
21659
  """
Line 21460... Line 21738...
21460
      if ftype == TType.STOP:
21738
      if ftype == TType.STOP:
21461
        break
21739
        break
21462
      if fid == 0:
21740
      if fid == 0:
21463
        if ftype == TType.LIST:
21741
        if ftype == TType.LIST:
21464
          self.success = []
21742
          self.success = []
21465
          (_etype495, _size492) = iprot.readListBegin()
21743
          (_etype504, _size501) = iprot.readListBegin()
21466
          for _i496 in xrange(_size492):
21744
          for _i505 in xrange(_size501):
21467
            _elem497 = Order()
21745
            _elem506 = Order()
21468
            _elem497.read(iprot)
21746
            _elem506.read(iprot)
21469
            self.success.append(_elem497)
21747
            self.success.append(_elem506)
21470
          iprot.readListEnd()
21748
          iprot.readListEnd()
21471
        else:
21749
        else:
21472
          iprot.skip(ftype)
21750
          iprot.skip(ftype)
21473
      elif fid == 1:
21751
      elif fid == 1:
21474
        if ftype == TType.STRUCT:
21752
        if ftype == TType.STRUCT:
Line 21487... Line 21765...
21487
      return
21765
      return
21488
    oprot.writeStructBegin('getOrdersWhereVendorNotPaid_result')
21766
    oprot.writeStructBegin('getOrdersWhereVendorNotPaid_result')
21489
    if self.success is not None:
21767
    if self.success is not None:
21490
      oprot.writeFieldBegin('success', TType.LIST, 0)
21768
      oprot.writeFieldBegin('success', TType.LIST, 0)
21491
      oprot.writeListBegin(TType.STRUCT, len(self.success))
21769
      oprot.writeListBegin(TType.STRUCT, len(self.success))
21492
      for iter498 in self.success:
21770
      for iter507 in self.success:
21493
        iter498.write(oprot)
21771
        iter507.write(oprot)
21494
      oprot.writeListEnd()
21772
      oprot.writeListEnd()
21495
      oprot.writeFieldEnd()
21773
      oprot.writeFieldEnd()
21496
    if self.ex is not None:
21774
    if self.ex is not None:
21497
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
21775
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
21498
      self.ex.write(oprot)
21776
      self.ex.write(oprot)
Line 21613... Line 21891...
21613
      if ftype == TType.STOP:
21891
      if ftype == TType.STOP:
21614
        break
21892
        break
21615
      if fid == 0:
21893
      if fid == 0:
21616
        if ftype == TType.MAP:
21894
        if ftype == TType.MAP:
21617
          self.success = {}
21895
          self.success = {}
21618
          (_ktype500, _vtype501, _size499 ) = iprot.readMapBegin() 
21896
          (_ktype509, _vtype510, _size508 ) = iprot.readMapBegin() 
21619
          for _i503 in xrange(_size499):
21897
          for _i512 in xrange(_size508):
21620
            _key504 = iprot.readI64();
21898
            _key513 = iprot.readI64();
21621
            _val505 = iprot.readI64();
21899
            _val514 = iprot.readI64();
21622
            self.success[_key504] = _val505
21900
            self.success[_key513] = _val514
21623
          iprot.readMapEnd()
21901
          iprot.readMapEnd()
21624
        else:
21902
        else:
21625
          iprot.skip(ftype)
21903
          iprot.skip(ftype)
21626
      elif fid == 1:
21904
      elif fid == 1:
21627
        if ftype == TType.STRUCT:
21905
        if ftype == TType.STRUCT:
Line 21640... Line 21918...
21640
      return
21918
      return
21641
    oprot.writeStructBegin('getStatusDistributionOfOrders_result')
21919
    oprot.writeStructBegin('getStatusDistributionOfOrders_result')
21642
    if self.success is not None:
21920
    if self.success is not None:
21643
      oprot.writeFieldBegin('success', TType.MAP, 0)
21921
      oprot.writeFieldBegin('success', TType.MAP, 0)
21644
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
21922
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
21645
      for kiter506,viter507 in self.success.items():
21923
      for kiter515,viter516 in self.success.items():
21646
        oprot.writeI64(kiter506)
21924
        oprot.writeI64(kiter515)
21647
        oprot.writeI64(viter507)
21925
        oprot.writeI64(viter516)
21648
      oprot.writeMapEnd()
21926
      oprot.writeMapEnd()
21649
      oprot.writeFieldEnd()
21927
      oprot.writeFieldEnd()
21650
    if self.ex is not None:
21928
    if self.ex is not None:
21651
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
21929
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
21652
      self.ex.write(oprot)
21930
      self.ex.write(oprot)
Line 21779... Line 22057...
21779
      if ftype == TType.STOP:
22057
      if ftype == TType.STOP:
21780
        break
22058
        break
21781
      if fid == 0:
22059
      if fid == 0:
21782
        if ftype == TType.LIST:
22060
        if ftype == TType.LIST:
21783
          self.success = []
22061
          self.success = []
21784
          (_etype511, _size508) = iprot.readListBegin()
22062
          (_etype520, _size517) = iprot.readListBegin()
21785
          for _i512 in xrange(_size508):
22063
          for _i521 in xrange(_size517):
21786
            _elem513 = iprot.readI64();
22064
            _elem522 = iprot.readI64();
21787
            self.success.append(_elem513)
22065
            self.success.append(_elem522)
21788
          iprot.readListEnd()
22066
          iprot.readListEnd()
21789
        else:
22067
        else:
21790
          iprot.skip(ftype)
22068
          iprot.skip(ftype)
21791
      elif fid == 1:
22069
      elif fid == 1:
21792
        if ftype == TType.STRUCT:
22070
        if ftype == TType.STRUCT:
Line 21805... Line 22083...
21805
      return
22083
      return
21806
    oprot.writeStructBegin('getOrderIdsForStatus_result')
22084
    oprot.writeStructBegin('getOrderIdsForStatus_result')
21807
    if self.success is not None:
22085
    if self.success is not None:
21808
      oprot.writeFieldBegin('success', TType.LIST, 0)
22086
      oprot.writeFieldBegin('success', TType.LIST, 0)
21809
      oprot.writeListBegin(TType.I64, len(self.success))
22087
      oprot.writeListBegin(TType.I64, len(self.success))
21810
      for iter514 in self.success:
22088
      for iter523 in self.success:
21811
        oprot.writeI64(iter514)
22089
        oprot.writeI64(iter523)
21812
      oprot.writeListEnd()
22090
      oprot.writeListEnd()
21813
      oprot.writeFieldEnd()
22091
      oprot.writeFieldEnd()
21814
    if self.ex is not None:
22092
    if self.ex is not None:
21815
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
22093
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
21816
      self.ex.write(oprot)
22094
      self.ex.write(oprot)
Line 21831... Line 22109...
21831
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22109
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21832
 
22110
 
21833
  def __ne__(self, other):
22111
  def __ne__(self, other):
21834
    return not (self == other)
22112
    return not (self == other)
21835
 
22113
 
-
 
22114
class updateCODAgent_args:
-
 
22115
  """
-
 
22116
  Attributes:
-
 
22117
   - agent
-
 
22118
   - orderId
-
 
22119
  """
-
 
22120
 
-
 
22121
  thrift_spec = (
-
 
22122
    None, # 0
-
 
22123
    (1, TType.STRING, 'agent', None, None, ), # 1
-
 
22124
    (2, TType.I64, 'orderId', None, None, ), # 2
-
 
22125
  )
-
 
22126
 
-
 
22127
  def __init__(self, agent=None, orderId=None,):
-
 
22128
    self.agent = agent
-
 
22129
    self.orderId = orderId
-
 
22130
 
-
 
22131
  def read(self, iprot):
-
 
22132
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
22133
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
22134
      return
-
 
22135
    iprot.readStructBegin()
-
 
22136
    while True:
-
 
22137
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
22138
      if ftype == TType.STOP:
-
 
22139
        break
-
 
22140
      if fid == 1:
-
 
22141
        if ftype == TType.STRING:
-
 
22142
          self.agent = iprot.readString();
-
 
22143
        else:
-
 
22144
          iprot.skip(ftype)
-
 
22145
      elif fid == 2:
-
 
22146
        if ftype == TType.I64:
-
 
22147
          self.orderId = iprot.readI64();
-
 
22148
        else:
-
 
22149
          iprot.skip(ftype)
-
 
22150
      else:
-
 
22151
        iprot.skip(ftype)
-
 
22152
      iprot.readFieldEnd()
-
 
22153
    iprot.readStructEnd()
-
 
22154
 
-
 
22155
  def write(self, oprot):
-
 
22156
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
22157
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
22158
      return
-
 
22159
    oprot.writeStructBegin('updateCODAgent_args')
-
 
22160
    if self.agent is not None:
-
 
22161
      oprot.writeFieldBegin('agent', TType.STRING, 1)
-
 
22162
      oprot.writeString(self.agent)
-
 
22163
      oprot.writeFieldEnd()
-
 
22164
    if self.orderId is not None:
-
 
22165
      oprot.writeFieldBegin('orderId', TType.I64, 2)
-
 
22166
      oprot.writeI64(self.orderId)
-
 
22167
      oprot.writeFieldEnd()
-
 
22168
    oprot.writeFieldStop()
-
 
22169
    oprot.writeStructEnd()
-
 
22170
 
-
 
22171
  def validate(self):
-
 
22172
    return
-
 
22173
 
-
 
22174
 
-
 
22175
  def __repr__(self):
-
 
22176
    L = ['%s=%r' % (key, value)
-
 
22177
      for key, value in self.__dict__.iteritems()]
-
 
22178
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
22179
 
-
 
22180
  def __eq__(self, other):
-
 
22181
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
22182
 
-
 
22183
  def __ne__(self, other):
-
 
22184
    return not (self == other)
-
 
22185
 
-
 
22186
class updateCODAgent_result:
-
 
22187
  """
-
 
22188
  Attributes:
-
 
22189
   - ex
-
 
22190
  """
-
 
22191
 
-
 
22192
  thrift_spec = (
-
 
22193
    None, # 0
-
 
22194
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
22195
  )
-
 
22196
 
-
 
22197
  def __init__(self, ex=None,):
-
 
22198
    self.ex = ex
-
 
22199
 
-
 
22200
  def read(self, iprot):
-
 
22201
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
22202
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
22203
      return
-
 
22204
    iprot.readStructBegin()
-
 
22205
    while True:
-
 
22206
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
22207
      if ftype == TType.STOP:
-
 
22208
        break
-
 
22209
      if fid == 1:
-
 
22210
        if ftype == TType.STRUCT:
-
 
22211
          self.ex = TransactionServiceException()
-
 
22212
          self.ex.read(iprot)
-
 
22213
        else:
-
 
22214
          iprot.skip(ftype)
-
 
22215
      else:
-
 
22216
        iprot.skip(ftype)
-
 
22217
      iprot.readFieldEnd()
-
 
22218
    iprot.readStructEnd()
-
 
22219
 
-
 
22220
  def write(self, oprot):
-
 
22221
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
22222
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
22223
      return
-
 
22224
    oprot.writeStructBegin('updateCODAgent_result')
-
 
22225
    if self.ex is not None:
-
 
22226
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
22227
      self.ex.write(oprot)
-
 
22228
      oprot.writeFieldEnd()
-
 
22229
    oprot.writeFieldStop()
-
 
22230
    oprot.writeStructEnd()
-
 
22231
 
-
 
22232
  def validate(self):
-
 
22233
    return
-
 
22234
 
-
 
22235
 
-
 
22236
  def __repr__(self):
-
 
22237
    L = ['%s=%r' % (key, value)
-
 
22238
      for key, value in self.__dict__.iteritems()]
-
 
22239
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
22240
 
-
 
22241
  def __eq__(self, other):
-
 
22242
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
22243
 
-
 
22244
  def __ne__(self, other):
-
 
22245
    return not (self == other)
-
 
22246
 
21836
class updateOrderAsPaidToVendor_args:
22247
class updateOrderAsPaidToVendor_args:
21837
  """
22248
  """
21838
  Attributes:
22249
  Attributes:
21839
   - orderId
22250
   - orderId
21840
  """
22251
  """
Line 22022... Line 22433...
22022
      if ftype == TType.STOP:
22433
      if ftype == TType.STOP:
22023
        break
22434
        break
22024
      if fid == 0:
22435
      if fid == 0:
22025
        if ftype == TType.LIST:
22436
        if ftype == TType.LIST:
22026
          self.success = []
22437
          self.success = []
22027
          (_etype518, _size515) = iprot.readListBegin()
22438
          (_etype527, _size524) = iprot.readListBegin()
22028
          for _i519 in xrange(_size515):
22439
          for _i528 in xrange(_size524):
22029
            _elem520 = Order()
22440
            _elem529 = Order()
22030
            _elem520.read(iprot)
22441
            _elem529.read(iprot)
22031
            self.success.append(_elem520)
22442
            self.success.append(_elem529)
22032
          iprot.readListEnd()
22443
          iprot.readListEnd()
22033
        else:
22444
        else:
22034
          iprot.skip(ftype)
22445
          iprot.skip(ftype)
22035
      elif fid == 1:
22446
      elif fid == 1:
22036
        if ftype == TType.STRUCT:
22447
        if ftype == TType.STRUCT:
Line 22049... Line 22460...
22049
      return
22460
      return
22050
    oprot.writeStructBegin('getRefundedOrdersMarkedPaid_result')
22461
    oprot.writeStructBegin('getRefundedOrdersMarkedPaid_result')
22051
    if self.success is not None:
22462
    if self.success is not None:
22052
      oprot.writeFieldBegin('success', TType.LIST, 0)
22463
      oprot.writeFieldBegin('success', TType.LIST, 0)
22053
      oprot.writeListBegin(TType.STRUCT, len(self.success))
22464
      oprot.writeListBegin(TType.STRUCT, len(self.success))
22054
      for iter521 in self.success:
22465
      for iter530 in self.success:
22055
        iter521.write(oprot)
22466
        iter530.write(oprot)
22056
      oprot.writeListEnd()
22467
      oprot.writeListEnd()
22057
      oprot.writeFieldEnd()
22468
      oprot.writeFieldEnd()
22058
    if self.ex is not None:
22469
    if self.ex is not None:
22059
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
22470
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
22060
      self.ex.write(oprot)
22471
      self.ex.write(oprot)