Subversion Repositories SmartDukaan

Rev

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

Rev 20025 Rev 20028
Line 2609... Line 2609...
2609
     - itemCondition
2609
     - itemCondition
2610
     - overrideWarranty
2610
     - overrideWarranty
2611
    """
2611
    """
2612
    pass
2612
    pass
2613
 
2613
 
2614
  def markReturnNotRequiredOrdersProcessed(self, returnTransactionId):
2614
  def getPendingStoreOrders(self, storeId):
2615
    """
2615
    """
2616
    Parameters:
2616
    Parameters:
-
 
2617
     - storeId
-
 
2618
    """
-
 
2619
    pass
-
 
2620
 
-
 
2621
  def getSellerInfo(self, sellerId):
-
 
2622
    """
-
 
2623
    Parameters:
-
 
2624
     - sellerId
-
 
2625
    """
-
 
2626
    pass
-
 
2627
 
-
 
2628
  def getWarehouseAddress(self, address_id):
-
 
2629
    """
-
 
2630
    Parameters:
-
 
2631
     - address_id
-
 
2632
    """
-
 
2633
    pass
-
 
2634
 
-
 
2635
  def markReturnNotRequiredOrdersProcessed(self, returnOrderInfo):
-
 
2636
    """
-
 
2637
    Parameters:
2617
     - returnTransactionId
2638
     - returnOrderInfo
2618
    """
2639
    """
2619
    pass
2640
    pass
2620
 
2641
 
2621
  def getReturnPickupRequest(self, returnPickupId):
2642
  def getReturnPickupRequest(self, returnPickupId):
2622
    """
2643
    """
2623
    Parameters:
2644
    Parameters:
2624
     - returnPickupId
2645
     - returnPickupId
2625
    """
2646
    """
2626
    pass
2647
    pass
2627
 
2648
 
2628
  def getPendingStoreOrders(self, storeId):
2649
  def splitReturnOrderInfo(self, returnOrderId, splitOrderQty):
2629
    """
2650
    """
2630
    Parameters:
2651
    Parameters:
2631
     - storeId
2652
     - returnOrderId
-
 
2653
     - splitOrderQty
2632
    """
2654
    """
2633
    pass
2655
    pass
2634
 
2656
 
2635
  def getSellerInfo(self, sellerId):
2657
  def deleteReturnOrder(self, returnOrderId):
2636
    """
2658
    """
2637
    Parameters:
2659
    Parameters:
2638
     - sellerId
2660
     - returnOrderId
2639
    """
2661
    """
2640
    pass
2662
    pass
2641
 
2663
 
2642
  def getWarehouseAddress(self, address_id):
2664
  def refundReturnOrder(self, returnOrderInfo, attributes):
2643
    """
2665
    """
2644
    Parameters:
2666
    Parameters:
-
 
2667
     - returnOrderInfo
2645
     - address_id
2668
     - attributes
2646
    """
2669
    """
2647
    pass
2670
    pass
2648
 
2671
 
2649
  def getBuyerByWarehouse(self, warehouse_id):
2672
  def addShipmentDelay(self, shipmentDelayDetail):
2650
    """
2673
    """
2651
    Parameters:
2674
    Parameters:
2652
     - warehouse_id
2675
     - shipmentDelayDetail
2653
    """
2676
    """
2654
    pass
2677
    pass
2655
 
2678
 
2656
 
2679
 
2657
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2680
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
Line 12510... Line 12533...
12510
    self._iprot.readMessageEnd()
12533
    self._iprot.readMessageEnd()
12511
    if result.success is not None:
12534
    if result.success is not None:
12512
      return result.success
12535
      return result.success
12513
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateReturnTransaction failed: unknown result");
12536
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateReturnTransaction failed: unknown result");
12514
 
12537
 
12515
  def markReturnNotRequiredOrdersProcessed(self, returnTransactionId):
12538
  def getPendingStoreOrders(self, storeId):
12516
    """
12539
    """
12517
    Parameters:
12540
    Parameters:
-
 
12541
     - storeId
-
 
12542
    """
-
 
12543
    self.send_getPendingStoreOrders(storeId)
-
 
12544
    return self.recv_getPendingStoreOrders()
-
 
12545
 
-
 
12546
  def send_getPendingStoreOrders(self, storeId):
-
 
12547
    self._oprot.writeMessageBegin('getPendingStoreOrders', TMessageType.CALL, self._seqid)
-
 
12548
    args = getPendingStoreOrders_args()
-
 
12549
    args.storeId = storeId
-
 
12550
    args.write(self._oprot)
-
 
12551
    self._oprot.writeMessageEnd()
-
 
12552
    self._oprot.trans.flush()
-
 
12553
 
-
 
12554
  def recv_getPendingStoreOrders(self, ):
-
 
12555
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
12556
    if mtype == TMessageType.EXCEPTION:
-
 
12557
      x = TApplicationException()
-
 
12558
      x.read(self._iprot)
-
 
12559
      self._iprot.readMessageEnd()
-
 
12560
      raise x
-
 
12561
    result = getPendingStoreOrders_result()
-
 
12562
    result.read(self._iprot)
-
 
12563
    self._iprot.readMessageEnd()
-
 
12564
    if result.success is not None:
-
 
12565
      return result.success
-
 
12566
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPendingStoreOrders failed: unknown result");
-
 
12567
 
-
 
12568
  def getSellerInfo(self, sellerId):
-
 
12569
    """
-
 
12570
    Parameters:
-
 
12571
     - sellerId
-
 
12572
    """
-
 
12573
    self.send_getSellerInfo(sellerId)
-
 
12574
    return self.recv_getSellerInfo()
-
 
12575
 
-
 
12576
  def send_getSellerInfo(self, sellerId):
-
 
12577
    self._oprot.writeMessageBegin('getSellerInfo', TMessageType.CALL, self._seqid)
-
 
12578
    args = getSellerInfo_args()
-
 
12579
    args.sellerId = sellerId
-
 
12580
    args.write(self._oprot)
-
 
12581
    self._oprot.writeMessageEnd()
-
 
12582
    self._oprot.trans.flush()
-
 
12583
 
-
 
12584
  def recv_getSellerInfo(self, ):
-
 
12585
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
12586
    if mtype == TMessageType.EXCEPTION:
-
 
12587
      x = TApplicationException()
-
 
12588
      x.read(self._iprot)
-
 
12589
      self._iprot.readMessageEnd()
-
 
12590
      raise x
-
 
12591
    result = getSellerInfo_result()
-
 
12592
    result.read(self._iprot)
-
 
12593
    self._iprot.readMessageEnd()
-
 
12594
    if result.success is not None:
12518
     - returnTransactionId
12595
      return result.success
-
 
12596
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSellerInfo failed: unknown result");
-
 
12597
 
-
 
12598
  def getWarehouseAddress(self, address_id):
12519
    """
12599
    """
-
 
12600
    Parameters:
-
 
12601
     - address_id
-
 
12602
    """
-
 
12603
    self.send_getWarehouseAddress(address_id)
-
 
12604
    return self.recv_getWarehouseAddress()
-
 
12605
 
-
 
12606
  def send_getWarehouseAddress(self, address_id):
-
 
12607
    self._oprot.writeMessageBegin('getWarehouseAddress', TMessageType.CALL, self._seqid)
-
 
12608
    args = getWarehouseAddress_args()
-
 
12609
    args.address_id = address_id
-
 
12610
    args.write(self._oprot)
-
 
12611
    self._oprot.writeMessageEnd()
-
 
12612
    self._oprot.trans.flush()
-
 
12613
 
-
 
12614
  def recv_getWarehouseAddress(self, ):
-
 
12615
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
12616
    if mtype == TMessageType.EXCEPTION:
-
 
12617
      x = TApplicationException()
-
 
12618
      x.read(self._iprot)
-
 
12619
      self._iprot.readMessageEnd()
-
 
12620
      raise x
-
 
12621
    result = getWarehouseAddress_result()
-
 
12622
    result.read(self._iprot)
-
 
12623
    self._iprot.readMessageEnd()
-
 
12624
    if result.success is not None:
-
 
12625
      return result.success
-
 
12626
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouseAddress failed: unknown result");
-
 
12627
 
-
 
12628
  def markReturnNotRequiredOrdersProcessed(self, returnOrderInfo):
-
 
12629
    """
-
 
12630
    Parameters:
-
 
12631
     - returnOrderInfo
-
 
12632
    """
12520
    self.send_markReturnNotRequiredOrdersProcessed(returnTransactionId)
12633
    self.send_markReturnNotRequiredOrdersProcessed(returnOrderInfo)
12521
    return self.recv_markReturnNotRequiredOrdersProcessed()
12634
    return self.recv_markReturnNotRequiredOrdersProcessed()
12522
 
12635
 
12523
  def send_markReturnNotRequiredOrdersProcessed(self, returnTransactionId):
12636
  def send_markReturnNotRequiredOrdersProcessed(self, returnOrderInfo):
12524
    self._oprot.writeMessageBegin('markReturnNotRequiredOrdersProcessed', TMessageType.CALL, self._seqid)
12637
    self._oprot.writeMessageBegin('markReturnNotRequiredOrdersProcessed', TMessageType.CALL, self._seqid)
12525
    args = markReturnNotRequiredOrdersProcessed_args()
12638
    args = markReturnNotRequiredOrdersProcessed_args()
12526
    args.returnTransactionId = returnTransactionId
12639
    args.returnOrderInfo = returnOrderInfo
12527
    args.write(self._oprot)
12640
    args.write(self._oprot)
12528
    self._oprot.writeMessageEnd()
12641
    self._oprot.writeMessageEnd()
12529
    self._oprot.trans.flush()
12642
    self._oprot.trans.flush()
12530
 
12643
 
12531
  def recv_markReturnNotRequiredOrdersProcessed(self, ):
12644
  def recv_markReturnNotRequiredOrdersProcessed(self, ):
Line 12572... Line 12685...
12572
    self._iprot.readMessageEnd()
12685
    self._iprot.readMessageEnd()
12573
    if result.success is not None:
12686
    if result.success is not None:
12574
      return result.success
12687
      return result.success
12575
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReturnPickupRequest failed: unknown result");
12688
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReturnPickupRequest failed: unknown result");
12576
 
12689
 
12577
  def getPendingStoreOrders(self, storeId):
12690
  def splitReturnOrderInfo(self, returnOrderId, splitOrderQty):
12578
    """
12691
    """
12579
    Parameters:
12692
    Parameters:
12580
     - storeId
12693
     - returnOrderId
-
 
12694
     - splitOrderQty
12581
    """
12695
    """
12582
    self.send_getPendingStoreOrders(storeId)
12696
    self.send_splitReturnOrderInfo(returnOrderId, splitOrderQty)
12583
    return self.recv_getPendingStoreOrders()
12697
    return self.recv_splitReturnOrderInfo()
12584
 
12698
 
12585
  def send_getPendingStoreOrders(self, storeId):
12699
  def send_splitReturnOrderInfo(self, returnOrderId, splitOrderQty):
12586
    self._oprot.writeMessageBegin('getPendingStoreOrders', TMessageType.CALL, self._seqid)
12700
    self._oprot.writeMessageBegin('splitReturnOrderInfo', TMessageType.CALL, self._seqid)
12587
    args = getPendingStoreOrders_args()
12701
    args = splitReturnOrderInfo_args()
12588
    args.storeId = storeId
12702
    args.returnOrderId = returnOrderId
-
 
12703
    args.splitOrderQty = splitOrderQty
12589
    args.write(self._oprot)
12704
    args.write(self._oprot)
12590
    self._oprot.writeMessageEnd()
12705
    self._oprot.writeMessageEnd()
12591
    self._oprot.trans.flush()
12706
    self._oprot.trans.flush()
12592
 
12707
 
12593
  def recv_getPendingStoreOrders(self, ):
12708
  def recv_splitReturnOrderInfo(self, ):
12594
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
12709
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
12595
    if mtype == TMessageType.EXCEPTION:
12710
    if mtype == TMessageType.EXCEPTION:
12596
      x = TApplicationException()
12711
      x = TApplicationException()
12597
      x.read(self._iprot)
12712
      x.read(self._iprot)
12598
      self._iprot.readMessageEnd()
12713
      self._iprot.readMessageEnd()
12599
      raise x
12714
      raise x
12600
    result = getPendingStoreOrders_result()
12715
    result = splitReturnOrderInfo_result()
12601
    result.read(self._iprot)
12716
    result.read(self._iprot)
12602
    self._iprot.readMessageEnd()
12717
    self._iprot.readMessageEnd()
12603
    if result.success is not None:
12718
    if result.success is not None:
12604
      return result.success
12719
      return result.success
12605
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPendingStoreOrders failed: unknown result");
12720
    raise TApplicationException(TApplicationException.MISSING_RESULT, "splitReturnOrderInfo failed: unknown result");
12606
 
12721
 
12607
  def getSellerInfo(self, sellerId):
12722
  def deleteReturnOrder(self, returnOrderId):
12608
    """
12723
    """
12609
    Parameters:
12724
    Parameters:
12610
     - sellerId
12725
     - returnOrderId
12611
    """
12726
    """
12612
    self.send_getSellerInfo(sellerId)
12727
    self.send_deleteReturnOrder(returnOrderId)
12613
    return self.recv_getSellerInfo()
12728
    return self.recv_deleteReturnOrder()
12614
 
12729
 
12615
  def send_getSellerInfo(self, sellerId):
12730
  def send_deleteReturnOrder(self, returnOrderId):
12616
    self._oprot.writeMessageBegin('getSellerInfo', TMessageType.CALL, self._seqid)
12731
    self._oprot.writeMessageBegin('deleteReturnOrder', TMessageType.CALL, self._seqid)
12617
    args = getSellerInfo_args()
12732
    args = deleteReturnOrder_args()
12618
    args.sellerId = sellerId
12733
    args.returnOrderId = returnOrderId
12619
    args.write(self._oprot)
12734
    args.write(self._oprot)
12620
    self._oprot.writeMessageEnd()
12735
    self._oprot.writeMessageEnd()
12621
    self._oprot.trans.flush()
12736
    self._oprot.trans.flush()
12622
 
12737
 
12623
  def recv_getSellerInfo(self, ):
12738
  def recv_deleteReturnOrder(self, ):
12624
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
12739
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
12625
    if mtype == TMessageType.EXCEPTION:
12740
    if mtype == TMessageType.EXCEPTION:
12626
      x = TApplicationException()
12741
      x = TApplicationException()
12627
      x.read(self._iprot)
12742
      x.read(self._iprot)
12628
      self._iprot.readMessageEnd()
12743
      self._iprot.readMessageEnd()
12629
      raise x
12744
      raise x
12630
    result = getSellerInfo_result()
12745
    result = deleteReturnOrder_result()
12631
    result.read(self._iprot)
12746
    result.read(self._iprot)
12632
    self._iprot.readMessageEnd()
12747
    self._iprot.readMessageEnd()
12633
    if result.success is not None:
12748
    if result.success is not None:
12634
      return result.success
12749
      return result.success
12635
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSellerInfo failed: unknown result");
12750
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteReturnOrder failed: unknown result");
12636
 
12751
 
12637
  def getWarehouseAddress(self, address_id):
12752
  def refundReturnOrder(self, returnOrderInfo, attributes):
12638
    """
12753
    """
12639
    Parameters:
12754
    Parameters:
-
 
12755
     - returnOrderInfo
12640
     - address_id
12756
     - attributes
12641
    """
12757
    """
12642
    self.send_getWarehouseAddress(address_id)
12758
    self.send_refundReturnOrder(returnOrderInfo, attributes)
12643
    return self.recv_getWarehouseAddress()
12759
    return self.recv_refundReturnOrder()
12644
 
12760
 
12645
  def send_getWarehouseAddress(self, address_id):
12761
  def send_refundReturnOrder(self, returnOrderInfo, attributes):
12646
    self._oprot.writeMessageBegin('getWarehouseAddress', TMessageType.CALL, self._seqid)
12762
    self._oprot.writeMessageBegin('refundReturnOrder', TMessageType.CALL, self._seqid)
12647
    args = getWarehouseAddress_args()
12763
    args = refundReturnOrder_args()
-
 
12764
    args.returnOrderInfo = returnOrderInfo
12648
    args.address_id = address_id
12765
    args.attributes = attributes
12649
    args.write(self._oprot)
12766
    args.write(self._oprot)
12650
    self._oprot.writeMessageEnd()
12767
    self._oprot.writeMessageEnd()
12651
    self._oprot.trans.flush()
12768
    self._oprot.trans.flush()
12652
 
12769
 
12653
  def recv_getWarehouseAddress(self, ):
12770
  def recv_refundReturnOrder(self, ):
12654
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
12771
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
12655
    if mtype == TMessageType.EXCEPTION:
12772
    if mtype == TMessageType.EXCEPTION:
12656
      x = TApplicationException()
12773
      x = TApplicationException()
12657
      x.read(self._iprot)
12774
      x.read(self._iprot)
12658
      self._iprot.readMessageEnd()
12775
      self._iprot.readMessageEnd()
12659
      raise x
12776
      raise x
12660
    result = getWarehouseAddress_result()
12777
    result = refundReturnOrder_result()
12661
    result.read(self._iprot)
12778
    result.read(self._iprot)
12662
    self._iprot.readMessageEnd()
12779
    self._iprot.readMessageEnd()
12663
    if result.success is not None:
12780
    if result.success is not None:
12664
      return result.success
12781
      return result.success
12665
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouseAddress failed: unknown result");
12782
    raise TApplicationException(TApplicationException.MISSING_RESULT, "refundReturnOrder failed: unknown result");
12666
 
12783
 
12667
  def getBuyerByWarehouse(self, warehouse_id):
12784
  def addShipmentDelay(self, shipmentDelayDetail):
12668
    """
12785
    """
12669
    Parameters:
12786
    Parameters:
12670
     - warehouse_id
12787
     - shipmentDelayDetail
12671
    """
12788
    """
12672
    self.send_getBuyerByWarehouse(warehouse_id)
12789
    self.send_addShipmentDelay(shipmentDelayDetail)
12673
    return self.recv_getBuyerByWarehouse()
12790
    return self.recv_addShipmentDelay()
12674
 
12791
 
12675
  def send_getBuyerByWarehouse(self, warehouse_id):
12792
  def send_addShipmentDelay(self, shipmentDelayDetail):
12676
    self._oprot.writeMessageBegin('getBuyerByWarehouse', TMessageType.CALL, self._seqid)
12793
    self._oprot.writeMessageBegin('addShipmentDelay', TMessageType.CALL, self._seqid)
12677
    args = getBuyerByWarehouse_args()
12794
    args = addShipmentDelay_args()
12678
    args.warehouse_id = warehouse_id
12795
    args.shipmentDelayDetail = shipmentDelayDetail
12679
    args.write(self._oprot)
12796
    args.write(self._oprot)
12680
    self._oprot.writeMessageEnd()
12797
    self._oprot.writeMessageEnd()
12681
    self._oprot.trans.flush()
12798
    self._oprot.trans.flush()
12682
 
12799
 
12683
  def recv_getBuyerByWarehouse(self, ):
12800
  def recv_addShipmentDelay(self, ):
12684
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
12801
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
12685
    if mtype == TMessageType.EXCEPTION:
12802
    if mtype == TMessageType.EXCEPTION:
12686
      x = TApplicationException()
12803
      x = TApplicationException()
12687
      x.read(self._iprot)
12804
      x.read(self._iprot)
12688
      self._iprot.readMessageEnd()
12805
      self._iprot.readMessageEnd()
12689
      raise x
12806
      raise x
12690
    result = getBuyerByWarehouse_result()
12807
    result = addShipmentDelay_result()
12691
    result.read(self._iprot)
12808
    result.read(self._iprot)
12692
    self._iprot.readMessageEnd()
12809
    self._iprot.readMessageEnd()
12693
    if result.success is not None:
12810
    if result.success is not None:
12694
      return result.success
12811
      return result.success
12695
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBuyerByWarehouse failed: unknown result");
12812
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addShipmentDelay failed: unknown result");
12696
 
12813
 
12697
 
12814
 
12698
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
12815
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
12699
  def __init__(self, handler):
12816
  def __init__(self, handler):
12700
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
12817
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
Line 12992... Line 13109...
12992
    self._processMap["updateMasterOrderAWB"] = Processor.process_updateMasterOrderAWB
13109
    self._processMap["updateMasterOrderAWB"] = Processor.process_updateMasterOrderAWB
12993
    self._processMap["addOrUpdateShipmentLogisticsCostDetails"] = Processor.process_addOrUpdateShipmentLogisticsCostDetails
13110
    self._processMap["addOrUpdateShipmentLogisticsCostDetails"] = Processor.process_addOrUpdateShipmentLogisticsCostDetails
12994
    self._processMap["getEligibleOrdersForReturn"] = Processor.process_getEligibleOrdersForReturn
13111
    self._processMap["getEligibleOrdersForReturn"] = Processor.process_getEligibleOrdersForReturn
12995
    self._processMap["getEligibleReturnOrdersForPickup"] = Processor.process_getEligibleReturnOrdersForPickup
13112
    self._processMap["getEligibleReturnOrdersForPickup"] = Processor.process_getEligibleReturnOrdersForPickup
12996
    self._processMap["validateReturnTransaction"] = Processor.process_validateReturnTransaction
13113
    self._processMap["validateReturnTransaction"] = Processor.process_validateReturnTransaction
12997
    self._processMap["markReturnNotRequiredOrdersProcessed"] = Processor.process_markReturnNotRequiredOrdersProcessed
-
 
12998
    self._processMap["getReturnPickupRequest"] = Processor.process_getReturnPickupRequest
-
 
12999
    self._processMap["getPendingStoreOrders"] = Processor.process_getPendingStoreOrders
13114
    self._processMap["getPendingStoreOrders"] = Processor.process_getPendingStoreOrders
13000
    self._processMap["getSellerInfo"] = Processor.process_getSellerInfo
13115
    self._processMap["getSellerInfo"] = Processor.process_getSellerInfo
13001
    self._processMap["getWarehouseAddress"] = Processor.process_getWarehouseAddress
13116
    self._processMap["getWarehouseAddress"] = Processor.process_getWarehouseAddress
-
 
13117
    self._processMap["markReturnNotRequiredOrdersProcessed"] = Processor.process_markReturnNotRequiredOrdersProcessed
13002
    self._processMap["getBuyerByWarehouse"] = Processor.process_getBuyerByWarehouse
13118
    self._processMap["getReturnPickupRequest"] = Processor.process_getReturnPickupRequest
-
 
13119
    self._processMap["splitReturnOrderInfo"] = Processor.process_splitReturnOrderInfo
-
 
13120
    self._processMap["deleteReturnOrder"] = Processor.process_deleteReturnOrder
-
 
13121
    self._processMap["refundReturnOrder"] = Processor.process_refundReturnOrder
-
 
13122
    self._processMap["addShipmentDelay"] = Processor.process_addShipmentDelay
13003
 
13123
 
13004
  def process(self, iprot, oprot):
13124
  def process(self, iprot, oprot):
13005
    (name, type, seqid) = iprot.readMessageBegin()
13125
    (name, type, seqid) = iprot.readMessageBegin()
13006
    if name not in self._processMap:
13126
    if name not in self._processMap:
13007
      iprot.skip(TType.STRUCT)
13127
      iprot.skip(TType.STRUCT)
Line 16684... Line 16804...
16684
    oprot.writeMessageBegin("validateReturnTransaction", TMessageType.REPLY, seqid)
16804
    oprot.writeMessageBegin("validateReturnTransaction", TMessageType.REPLY, seqid)
16685
    result.write(oprot)
16805
    result.write(oprot)
16686
    oprot.writeMessageEnd()
16806
    oprot.writeMessageEnd()
16687
    oprot.trans.flush()
16807
    oprot.trans.flush()
16688
 
16808
 
-
 
16809
  def process_getPendingStoreOrders(self, seqid, iprot, oprot):
-
 
16810
    args = getPendingStoreOrders_args()
-
 
16811
    args.read(iprot)
-
 
16812
    iprot.readMessageEnd()
-
 
16813
    result = getPendingStoreOrders_result()
-
 
16814
    result.success = self._handler.getPendingStoreOrders(args.storeId)
-
 
16815
    oprot.writeMessageBegin("getPendingStoreOrders", TMessageType.REPLY, seqid)
-
 
16816
    result.write(oprot)
-
 
16817
    oprot.writeMessageEnd()
-
 
16818
    oprot.trans.flush()
-
 
16819
 
-
 
16820
  def process_getSellerInfo(self, seqid, iprot, oprot):
-
 
16821
    args = getSellerInfo_args()
-
 
16822
    args.read(iprot)
-
 
16823
    iprot.readMessageEnd()
-
 
16824
    result = getSellerInfo_result()
-
 
16825
    result.success = self._handler.getSellerInfo(args.sellerId)
-
 
16826
    oprot.writeMessageBegin("getSellerInfo", TMessageType.REPLY, seqid)
-
 
16827
    result.write(oprot)
-
 
16828
    oprot.writeMessageEnd()
-
 
16829
    oprot.trans.flush()
-
 
16830
 
-
 
16831
  def process_getWarehouseAddress(self, seqid, iprot, oprot):
-
 
16832
    args = getWarehouseAddress_args()
-
 
16833
    args.read(iprot)
-
 
16834
    iprot.readMessageEnd()
-
 
16835
    result = getWarehouseAddress_result()
-
 
16836
    result.success = self._handler.getWarehouseAddress(args.address_id)
-
 
16837
    oprot.writeMessageBegin("getWarehouseAddress", TMessageType.REPLY, seqid)
-
 
16838
    result.write(oprot)
-
 
16839
    oprot.writeMessageEnd()
-
 
16840
    oprot.trans.flush()
-
 
16841
 
16689
  def process_markReturnNotRequiredOrdersProcessed(self, seqid, iprot, oprot):
16842
  def process_markReturnNotRequiredOrdersProcessed(self, seqid, iprot, oprot):
16690
    args = markReturnNotRequiredOrdersProcessed_args()
16843
    args = markReturnNotRequiredOrdersProcessed_args()
16691
    args.read(iprot)
16844
    args.read(iprot)
16692
    iprot.readMessageEnd()
16845
    iprot.readMessageEnd()
16693
    result = markReturnNotRequiredOrdersProcessed_result()
16846
    result = markReturnNotRequiredOrdersProcessed_result()
16694
    try:
16847
    try:
16695
      result.success = self._handler.markReturnNotRequiredOrdersProcessed(args.returnTransactionId)
16848
      result.success = self._handler.markReturnNotRequiredOrdersProcessed(args.returnOrderInfo)
16696
    except TransactionServiceException, ex:
16849
    except TransactionServiceException, ex:
16697
      result.ex = ex
16850
      result.ex = ex
16698
    oprot.writeMessageBegin("markReturnNotRequiredOrdersProcessed", TMessageType.REPLY, seqid)
16851
    oprot.writeMessageBegin("markReturnNotRequiredOrdersProcessed", TMessageType.REPLY, seqid)
16699
    result.write(oprot)
16852
    result.write(oprot)
16700
    oprot.writeMessageEnd()
16853
    oprot.writeMessageEnd()
Line 16709... Line 16862...
16709
    oprot.writeMessageBegin("getReturnPickupRequest", TMessageType.REPLY, seqid)
16862
    oprot.writeMessageBegin("getReturnPickupRequest", TMessageType.REPLY, seqid)
16710
    result.write(oprot)
16863
    result.write(oprot)
16711
    oprot.writeMessageEnd()
16864
    oprot.writeMessageEnd()
16712
    oprot.trans.flush()
16865
    oprot.trans.flush()
16713
 
16866
 
16714
  def process_getPendingStoreOrders(self, seqid, iprot, oprot):
16867
  def process_splitReturnOrderInfo(self, seqid, iprot, oprot):
16715
    args = getPendingStoreOrders_args()
16868
    args = splitReturnOrderInfo_args()
16716
    args.read(iprot)
16869
    args.read(iprot)
16717
    iprot.readMessageEnd()
16870
    iprot.readMessageEnd()
16718
    result = getPendingStoreOrders_result()
16871
    result = splitReturnOrderInfo_result()
16719
    result.success = self._handler.getPendingStoreOrders(args.storeId)
16872
    result.success = self._handler.splitReturnOrderInfo(args.returnOrderId, args.splitOrderQty)
16720
    oprot.writeMessageBegin("getPendingStoreOrders", TMessageType.REPLY, seqid)
16873
    oprot.writeMessageBegin("splitReturnOrderInfo", TMessageType.REPLY, seqid)
16721
    result.write(oprot)
16874
    result.write(oprot)
16722
    oprot.writeMessageEnd()
16875
    oprot.writeMessageEnd()
16723
    oprot.trans.flush()
16876
    oprot.trans.flush()
16724
 
16877
 
16725
  def process_getSellerInfo(self, seqid, iprot, oprot):
16878
  def process_deleteReturnOrder(self, seqid, iprot, oprot):
16726
    args = getSellerInfo_args()
16879
    args = deleteReturnOrder_args()
16727
    args.read(iprot)
16880
    args.read(iprot)
16728
    iprot.readMessageEnd()
16881
    iprot.readMessageEnd()
16729
    result = getSellerInfo_result()
16882
    result = deleteReturnOrder_result()
16730
    result.success = self._handler.getSellerInfo(args.sellerId)
16883
    result.success = self._handler.deleteReturnOrder(args.returnOrderId)
16731
    oprot.writeMessageBegin("getSellerInfo", TMessageType.REPLY, seqid)
16884
    oprot.writeMessageBegin("deleteReturnOrder", TMessageType.REPLY, seqid)
16732
    result.write(oprot)
16885
    result.write(oprot)
16733
    oprot.writeMessageEnd()
16886
    oprot.writeMessageEnd()
16734
    oprot.trans.flush()
16887
    oprot.trans.flush()
16735
 
16888
 
16736
  def process_getWarehouseAddress(self, seqid, iprot, oprot):
16889
  def process_refundReturnOrder(self, seqid, iprot, oprot):
16737
    args = getWarehouseAddress_args()
16890
    args = refundReturnOrder_args()
16738
    args.read(iprot)
16891
    args.read(iprot)
16739
    iprot.readMessageEnd()
16892
    iprot.readMessageEnd()
16740
    result = getWarehouseAddress_result()
16893
    result = refundReturnOrder_result()
16741
    result.success = self._handler.getWarehouseAddress(args.address_id)
16894
    result.success = self._handler.refundReturnOrder(args.returnOrderInfo, args.attributes)
16742
    oprot.writeMessageBegin("getWarehouseAddress", TMessageType.REPLY, seqid)
16895
    oprot.writeMessageBegin("refundReturnOrder", TMessageType.REPLY, seqid)
16743
    result.write(oprot)
16896
    result.write(oprot)
16744
    oprot.writeMessageEnd()
16897
    oprot.writeMessageEnd()
16745
    oprot.trans.flush()
16898
    oprot.trans.flush()
16746
 
16899
 
16747
  def process_getBuyerByWarehouse(self, seqid, iprot, oprot):
16900
  def process_addShipmentDelay(self, seqid, iprot, oprot):
16748
    args = getBuyerByWarehouse_args()
16901
    args = addShipmentDelay_args()
16749
    args.read(iprot)
16902
    args.read(iprot)
16750
    iprot.readMessageEnd()
16903
    iprot.readMessageEnd()
16751
    result = getBuyerByWarehouse_result()
16904
    result = addShipmentDelay_result()
16752
    result.success = self._handler.getBuyerByWarehouse(args.warehouse_id)
16905
    result.success = self._handler.addShipmentDelay(args.shipmentDelayDetail)
16753
    oprot.writeMessageBegin("getBuyerByWarehouse", TMessageType.REPLY, seqid)
16906
    oprot.writeMessageBegin("addShipmentDelay", TMessageType.REPLY, seqid)
16754
    result.write(oprot)
16907
    result.write(oprot)
16755
    oprot.writeMessageEnd()
16908
    oprot.writeMessageEnd()
16756
    oprot.trans.flush()
16909
    oprot.trans.flush()
16757
 
16910
 
16758
 
16911
 
Line 58026... Line 58179...
58026
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
58179
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
58027
 
58180
 
58028
  def __ne__(self, other):
58181
  def __ne__(self, other):
58029
    return not (self == other)
58182
    return not (self == other)
58030
 
58183
 
58031
class markReturnNotRequiredOrdersProcessed_args:
58184
class getPendingStoreOrders_args:
58032
  """
58185
  """
58033
  Attributes:
58186
  Attributes:
58034
   - returnTransactionId
58187
   - storeId
58035
  """
58188
  """
58036
 
58189
 
58037
  thrift_spec = (
58190
  thrift_spec = (
58038
    None, # 0
58191
    None, # 0
58039
    (1, TType.I64, 'returnTransactionId', None, None, ), # 1
58192
    (1, TType.I64, 'storeId', None, None, ), # 1
58040
  )
58193
  )
58041
 
58194
 
58042
  def __init__(self, returnTransactionId=None,):
58195
  def __init__(self, storeId=None,):
58043
    self.returnTransactionId = returnTransactionId
58196
    self.storeId = storeId
58044
 
58197
 
58045
  def read(self, iprot):
58198
  def read(self, iprot):
58046
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
58199
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
58047
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
58200
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
58048
      return
58201
      return
Line 58051... Line 58204...
58051
      (fname, ftype, fid) = iprot.readFieldBegin()
58204
      (fname, ftype, fid) = iprot.readFieldBegin()
58052
      if ftype == TType.STOP:
58205
      if ftype == TType.STOP:
58053
        break
58206
        break
58054
      if fid == 1:
58207
      if fid == 1:
58055
        if ftype == TType.I64:
58208
        if ftype == TType.I64:
-
 
58209
          self.storeId = iprot.readI64();
-
 
58210
        else:
-
 
58211
          iprot.skip(ftype)
-
 
58212
      else:
-
 
58213
        iprot.skip(ftype)
-
 
58214
      iprot.readFieldEnd()
-
 
58215
    iprot.readStructEnd()
-
 
58216
 
-
 
58217
  def write(self, oprot):
-
 
58218
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
58219
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
58220
      return
-
 
58221
    oprot.writeStructBegin('getPendingStoreOrders_args')
-
 
58222
    if self.storeId is not None:
-
 
58223
      oprot.writeFieldBegin('storeId', TType.I64, 1)
-
 
58224
      oprot.writeI64(self.storeId)
-
 
58225
      oprot.writeFieldEnd()
-
 
58226
    oprot.writeFieldStop()
-
 
58227
    oprot.writeStructEnd()
-
 
58228
 
-
 
58229
  def validate(self):
-
 
58230
    return
-
 
58231
 
-
 
58232
 
-
 
58233
  def __repr__(self):
-
 
58234
    L = ['%s=%r' % (key, value)
-
 
58235
      for key, value in self.__dict__.iteritems()]
-
 
58236
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
58237
 
-
 
58238
  def __eq__(self, other):
-
 
58239
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
58240
 
-
 
58241
  def __ne__(self, other):
-
 
58242
    return not (self == other)
-
 
58243
 
-
 
58244
class getPendingStoreOrders_result:
-
 
58245
  """
-
 
58246
  Attributes:
-
 
58247
   - success
-
 
58248
  """
-
 
58249
 
-
 
58250
  thrift_spec = (
-
 
58251
    (0, TType.LIST, 'success', (TType.STRUCT,(PendingStoreOrder, PendingStoreOrder.thrift_spec)), None, ), # 0
-
 
58252
  )
-
 
58253
 
-
 
58254
  def __init__(self, success=None,):
-
 
58255
    self.success = success
-
 
58256
 
-
 
58257
  def read(self, iprot):
-
 
58258
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
58259
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
58260
      return
-
 
58261
    iprot.readStructBegin()
-
 
58262
    while True:
-
 
58263
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
58264
      if ftype == TType.STOP:
-
 
58265
        break
-
 
58266
      if fid == 0:
-
 
58267
        if ftype == TType.LIST:
-
 
58268
          self.success = []
-
 
58269
          (_etype1479, _size1476) = iprot.readListBegin()
-
 
58270
          for _i1480 in xrange(_size1476):
-
 
58271
            _elem1481 = PendingStoreOrder()
-
 
58272
            _elem1481.read(iprot)
-
 
58273
            self.success.append(_elem1481)
-
 
58274
          iprot.readListEnd()
-
 
58275
        else:
-
 
58276
          iprot.skip(ftype)
-
 
58277
      else:
-
 
58278
        iprot.skip(ftype)
-
 
58279
      iprot.readFieldEnd()
-
 
58280
    iprot.readStructEnd()
-
 
58281
 
-
 
58282
  def write(self, oprot):
-
 
58283
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
58284
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
58285
      return
-
 
58286
    oprot.writeStructBegin('getPendingStoreOrders_result')
-
 
58287
    if self.success is not None:
-
 
58288
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
58289
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
58290
      for iter1482 in self.success:
-
 
58291
        iter1482.write(oprot)
-
 
58292
      oprot.writeListEnd()
-
 
58293
      oprot.writeFieldEnd()
-
 
58294
    oprot.writeFieldStop()
-
 
58295
    oprot.writeStructEnd()
-
 
58296
 
-
 
58297
  def validate(self):
-
 
58298
    return
-
 
58299
 
-
 
58300
 
-
 
58301
  def __repr__(self):
-
 
58302
    L = ['%s=%r' % (key, value)
-
 
58303
      for key, value in self.__dict__.iteritems()]
-
 
58304
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
58305
 
-
 
58306
  def __eq__(self, other):
-
 
58307
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
58308
 
-
 
58309
  def __ne__(self, other):
-
 
58310
    return not (self == other)
-
 
58311
 
-
 
58312
class getSellerInfo_args:
-
 
58313
  """
-
 
58314
  Attributes:
-
 
58315
   - sellerId
-
 
58316
  """
-
 
58317
 
-
 
58318
  thrift_spec = (
-
 
58319
    None, # 0
-
 
58320
    (1, TType.I64, 'sellerId', None, None, ), # 1
-
 
58321
  )
-
 
58322
 
-
 
58323
  def __init__(self, sellerId=None,):
-
 
58324
    self.sellerId = sellerId
-
 
58325
 
-
 
58326
  def read(self, iprot):
-
 
58327
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
58328
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
58329
      return
-
 
58330
    iprot.readStructBegin()
-
 
58331
    while True:
-
 
58332
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
58333
      if ftype == TType.STOP:
-
 
58334
        break
-
 
58335
      if fid == 1:
-
 
58336
        if ftype == TType.I64:
-
 
58337
          self.sellerId = iprot.readI64();
-
 
58338
        else:
-
 
58339
          iprot.skip(ftype)
-
 
58340
      else:
-
 
58341
        iprot.skip(ftype)
-
 
58342
      iprot.readFieldEnd()
-
 
58343
    iprot.readStructEnd()
-
 
58344
 
-
 
58345
  def write(self, oprot):
-
 
58346
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
58347
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
58348
      return
-
 
58349
    oprot.writeStructBegin('getSellerInfo_args')
-
 
58350
    if self.sellerId is not None:
-
 
58351
      oprot.writeFieldBegin('sellerId', TType.I64, 1)
-
 
58352
      oprot.writeI64(self.sellerId)
-
 
58353
      oprot.writeFieldEnd()
-
 
58354
    oprot.writeFieldStop()
-
 
58355
    oprot.writeStructEnd()
-
 
58356
 
-
 
58357
  def validate(self):
-
 
58358
    return
-
 
58359
 
-
 
58360
 
-
 
58361
  def __repr__(self):
-
 
58362
    L = ['%s=%r' % (key, value)
-
 
58363
      for key, value in self.__dict__.iteritems()]
-
 
58364
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
58365
 
-
 
58366
  def __eq__(self, other):
-
 
58367
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
58368
 
-
 
58369
  def __ne__(self, other):
-
 
58370
    return not (self == other)
-
 
58371
 
-
 
58372
class getSellerInfo_result:
-
 
58373
  """
-
 
58374
  Attributes:
-
 
58375
   - success
-
 
58376
  """
-
 
58377
 
-
 
58378
  thrift_spec = (
-
 
58379
    (0, TType.STRUCT, 'success', (SellerInfo, SellerInfo.thrift_spec), None, ), # 0
-
 
58380
  )
-
 
58381
 
-
 
58382
  def __init__(self, success=None,):
-
 
58383
    self.success = success
-
 
58384
 
-
 
58385
  def read(self, iprot):
-
 
58386
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
58387
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
58388
      return
-
 
58389
    iprot.readStructBegin()
-
 
58390
    while True:
-
 
58391
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
58392
      if ftype == TType.STOP:
-
 
58393
        break
-
 
58394
      if fid == 0:
-
 
58395
        if ftype == TType.STRUCT:
-
 
58396
          self.success = SellerInfo()
-
 
58397
          self.success.read(iprot)
-
 
58398
        else:
-
 
58399
          iprot.skip(ftype)
-
 
58400
      else:
-
 
58401
        iprot.skip(ftype)
-
 
58402
      iprot.readFieldEnd()
-
 
58403
    iprot.readStructEnd()
-
 
58404
 
-
 
58405
  def write(self, oprot):
-
 
58406
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
58407
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
58408
      return
-
 
58409
    oprot.writeStructBegin('getSellerInfo_result')
-
 
58410
    if self.success is not None:
-
 
58411
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
58412
      self.success.write(oprot)
-
 
58413
      oprot.writeFieldEnd()
-
 
58414
    oprot.writeFieldStop()
-
 
58415
    oprot.writeStructEnd()
-
 
58416
 
-
 
58417
  def validate(self):
-
 
58418
    return
-
 
58419
 
-
 
58420
 
-
 
58421
  def __repr__(self):
-
 
58422
    L = ['%s=%r' % (key, value)
-
 
58423
      for key, value in self.__dict__.iteritems()]
-
 
58424
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
58425
 
-
 
58426
  def __eq__(self, other):
-
 
58427
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
58428
 
-
 
58429
  def __ne__(self, other):
-
 
58430
    return not (self == other)
-
 
58431
 
-
 
58432
class getWarehouseAddress_args:
-
 
58433
  """
-
 
58434
  Attributes:
-
 
58435
   - address_id
-
 
58436
  """
-
 
58437
 
-
 
58438
  thrift_spec = (
-
 
58439
    None, # 0
-
 
58440
    (1, TType.I64, 'address_id', None, None, ), # 1
-
 
58441
  )
-
 
58442
 
-
 
58443
  def __init__(self, address_id=None,):
-
 
58444
    self.address_id = address_id
-
 
58445
 
-
 
58446
  def read(self, iprot):
-
 
58447
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
58448
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
58449
      return
-
 
58450
    iprot.readStructBegin()
-
 
58451
    while True:
-
 
58452
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
58453
      if ftype == TType.STOP:
-
 
58454
        break
-
 
58455
      if fid == 1:
-
 
58456
        if ftype == TType.I64:
58056
          self.returnTransactionId = iprot.readI64();
58457
          self.address_id = iprot.readI64();
-
 
58458
        else:
-
 
58459
          iprot.skip(ftype)
-
 
58460
      else:
-
 
58461
        iprot.skip(ftype)
-
 
58462
      iprot.readFieldEnd()
-
 
58463
    iprot.readStructEnd()
-
 
58464
 
-
 
58465
  def write(self, oprot):
-
 
58466
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
58467
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
58468
      return
-
 
58469
    oprot.writeStructBegin('getWarehouseAddress_args')
-
 
58470
    if self.address_id is not None:
-
 
58471
      oprot.writeFieldBegin('address_id', TType.I64, 1)
-
 
58472
      oprot.writeI64(self.address_id)
-
 
58473
      oprot.writeFieldEnd()
-
 
58474
    oprot.writeFieldStop()
-
 
58475
    oprot.writeStructEnd()
-
 
58476
 
-
 
58477
  def validate(self):
-
 
58478
    return
-
 
58479
 
-
 
58480
 
-
 
58481
  def __repr__(self):
-
 
58482
    L = ['%s=%r' % (key, value)
-
 
58483
      for key, value in self.__dict__.iteritems()]
-
 
58484
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
58485
 
-
 
58486
  def __eq__(self, other):
-
 
58487
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
58488
 
-
 
58489
  def __ne__(self, other):
-
 
58490
    return not (self == other)
-
 
58491
 
-
 
58492
class getWarehouseAddress_result:
-
 
58493
  """
-
 
58494
  Attributes:
-
 
58495
   - success
-
 
58496
  """
-
 
58497
 
-
 
58498
  thrift_spec = (
-
 
58499
    (0, TType.STRUCT, 'success', (WarehouseAddress, WarehouseAddress.thrift_spec), None, ), # 0
-
 
58500
  )
-
 
58501
 
-
 
58502
  def __init__(self, success=None,):
-
 
58503
    self.success = success
-
 
58504
 
-
 
58505
  def read(self, iprot):
-
 
58506
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
58507
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
58508
      return
-
 
58509
    iprot.readStructBegin()
-
 
58510
    while True:
-
 
58511
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
58512
      if ftype == TType.STOP:
-
 
58513
        break
-
 
58514
      if fid == 0:
-
 
58515
        if ftype == TType.STRUCT:
-
 
58516
          self.success = WarehouseAddress()
-
 
58517
          self.success.read(iprot)
-
 
58518
        else:
-
 
58519
          iprot.skip(ftype)
-
 
58520
      else:
-
 
58521
        iprot.skip(ftype)
-
 
58522
      iprot.readFieldEnd()
-
 
58523
    iprot.readStructEnd()
-
 
58524
 
-
 
58525
  def write(self, oprot):
-
 
58526
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
58527
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
58528
      return
-
 
58529
    oprot.writeStructBegin('getWarehouseAddress_result')
-
 
58530
    if self.success is not None:
-
 
58531
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
58532
      self.success.write(oprot)
-
 
58533
      oprot.writeFieldEnd()
-
 
58534
    oprot.writeFieldStop()
-
 
58535
    oprot.writeStructEnd()
-
 
58536
 
-
 
58537
  def validate(self):
-
 
58538
    return
-
 
58539
 
-
 
58540
 
-
 
58541
  def __repr__(self):
-
 
58542
    L = ['%s=%r' % (key, value)
-
 
58543
      for key, value in self.__dict__.iteritems()]
-
 
58544
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
58545
 
-
 
58546
  def __eq__(self, other):
-
 
58547
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
58548
 
-
 
58549
  def __ne__(self, other):
-
 
58550
    return not (self == other)
-
 
58551
 
-
 
58552
class markReturnNotRequiredOrdersProcessed_args:
-
 
58553
  """
-
 
58554
  Attributes:
-
 
58555
   - returnOrderInfo
-
 
58556
  """
-
 
58557
 
-
 
58558
  thrift_spec = (
-
 
58559
    None, # 0
-
 
58560
    (1, TType.STRUCT, 'returnOrderInfo', (ReturnOrderInfo, ReturnOrderInfo.thrift_spec), None, ), # 1
-
 
58561
  )
-
 
58562
 
-
 
58563
  def __init__(self, returnOrderInfo=None,):
-
 
58564
    self.returnOrderInfo = returnOrderInfo
-
 
58565
 
-
 
58566
  def read(self, iprot):
-
 
58567
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
58568
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
58569
      return
-
 
58570
    iprot.readStructBegin()
-
 
58571
    while True:
-
 
58572
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
58573
      if ftype == TType.STOP:
-
 
58574
        break
-
 
58575
      if fid == 1:
-
 
58576
        if ftype == TType.STRUCT:
-
 
58577
          self.returnOrderInfo = ReturnOrderInfo()
-
 
58578
          self.returnOrderInfo.read(iprot)
58057
        else:
58579
        else:
58058
          iprot.skip(ftype)
58580
          iprot.skip(ftype)
58059
      else:
58581
      else:
58060
        iprot.skip(ftype)
58582
        iprot.skip(ftype)
58061
      iprot.readFieldEnd()
58583
      iprot.readFieldEnd()
Line 58064... Line 58586...
58064
  def write(self, oprot):
58586
  def write(self, oprot):
58065
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
58587
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
58066
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
58588
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
58067
      return
58589
      return
58068
    oprot.writeStructBegin('markReturnNotRequiredOrdersProcessed_args')
58590
    oprot.writeStructBegin('markReturnNotRequiredOrdersProcessed_args')
58069
    if self.returnTransactionId is not None:
58591
    if self.returnOrderInfo is not None:
58070
      oprot.writeFieldBegin('returnTransactionId', TType.I64, 1)
58592
      oprot.writeFieldBegin('returnOrderInfo', TType.STRUCT, 1)
58071
      oprot.writeI64(self.returnTransactionId)
58593
      self.returnOrderInfo.write(oprot)
58072
      oprot.writeFieldEnd()
58594
      oprot.writeFieldEnd()
58073
    oprot.writeFieldStop()
58595
    oprot.writeFieldStop()
58074
    oprot.writeStructEnd()
58596
    oprot.writeStructEnd()
58075
 
58597
 
58076
  def validate(self):
58598
  def validate(self):
Line 58278... Line 58800...
58278
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
58800
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
58279
 
58801
 
58280
  def __ne__(self, other):
58802
  def __ne__(self, other):
58281
    return not (self == other)
58803
    return not (self == other)
58282
 
58804
 
58283
class getPendingStoreOrders_args:
58805
class splitReturnOrderInfo_args:
58284
  """
58806
  """
58285
  Attributes:
58807
  Attributes:
58286
   - storeId
58808
   - returnOrderId
-
 
58809
   - splitOrderQty
58287
  """
58810
  """
58288
 
58811
 
58289
  thrift_spec = (
58812
  thrift_spec = (
58290
    None, # 0
58813
    None, # 0
58291
    (1, TType.I64, 'storeId', None, None, ), # 1
58814
    (1, TType.I64, 'returnOrderId', None, None, ), # 1
-
 
58815
    (2, TType.I64, 'splitOrderQty', None, None, ), # 2
58292
  )
58816
  )
58293
 
58817
 
58294
  def __init__(self, storeId=None,):
58818
  def __init__(self, returnOrderId=None, splitOrderQty=None,):
58295
    self.storeId = storeId
58819
    self.returnOrderId = returnOrderId
-
 
58820
    self.splitOrderQty = splitOrderQty
58296
 
58821
 
58297
  def read(self, iprot):
58822
  def read(self, iprot):
58298
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
58823
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
58299
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
58824
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
58300
      return
58825
      return
Line 58303... Line 58828...
58303
      (fname, ftype, fid) = iprot.readFieldBegin()
58828
      (fname, ftype, fid) = iprot.readFieldBegin()
58304
      if ftype == TType.STOP:
58829
      if ftype == TType.STOP:
58305
        break
58830
        break
58306
      if fid == 1:
58831
      if fid == 1:
58307
        if ftype == TType.I64:
58832
        if ftype == TType.I64:
58308
          self.storeId = iprot.readI64();
58833
          self.returnOrderId = iprot.readI64();
-
 
58834
        else:
-
 
58835
          iprot.skip(ftype)
-
 
58836
      elif fid == 2:
-
 
58837
        if ftype == TType.I64:
-
 
58838
          self.splitOrderQty = iprot.readI64();
58309
        else:
58839
        else:
58310
          iprot.skip(ftype)
58840
          iprot.skip(ftype)
58311
      else:
58841
      else:
58312
        iprot.skip(ftype)
58842
        iprot.skip(ftype)
58313
      iprot.readFieldEnd()
58843
      iprot.readFieldEnd()
Line 58315... Line 58845...
58315
 
58845
 
58316
  def write(self, oprot):
58846
  def write(self, oprot):
58317
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
58847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
58318
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
58848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
58319
      return
58849
      return
58320
    oprot.writeStructBegin('getPendingStoreOrders_args')
58850
    oprot.writeStructBegin('splitReturnOrderInfo_args')
58321
    if self.storeId is not None:
58851
    if self.returnOrderId is not None:
58322
      oprot.writeFieldBegin('storeId', TType.I64, 1)
58852
      oprot.writeFieldBegin('returnOrderId', TType.I64, 1)
58323
      oprot.writeI64(self.storeId)
58853
      oprot.writeI64(self.returnOrderId)
-
 
58854
      oprot.writeFieldEnd()
-
 
58855
    if self.splitOrderQty is not None:
-
 
58856
      oprot.writeFieldBegin('splitOrderQty', TType.I64, 2)
-
 
58857
      oprot.writeI64(self.splitOrderQty)
58324
      oprot.writeFieldEnd()
58858
      oprot.writeFieldEnd()
58325
    oprot.writeFieldStop()
58859
    oprot.writeFieldStop()
58326
    oprot.writeStructEnd()
58860
    oprot.writeStructEnd()
58327
 
58861
 
58328
  def validate(self):
58862
  def validate(self):
Line 58338... Line 58872...
58338
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
58872
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
58339
 
58873
 
58340
  def __ne__(self, other):
58874
  def __ne__(self, other):
58341
    return not (self == other)
58875
    return not (self == other)
58342
 
58876
 
58343
class getPendingStoreOrders_result:
58877
class splitReturnOrderInfo_result:
58344
  """
58878
  """
58345
  Attributes:
58879
  Attributes:
58346
   - success
58880
   - success
58347
  """
58881
  """
58348
 
58882
 
58349
  thrift_spec = (
58883
  thrift_spec = (
58350
    (0, TType.LIST, 'success', (TType.STRUCT,(PendingStoreOrder, PendingStoreOrder.thrift_spec)), None, ), # 0
58884
    (0, TType.STRUCT, 'success', (ReturnOrderInfo, ReturnOrderInfo.thrift_spec), None, ), # 0
58351
  )
58885
  )
58352
 
58886
 
58353
  def __init__(self, success=None,):
58887
  def __init__(self, success=None,):
58354
    self.success = success
58888
    self.success = success
58355
 
58889
 
Line 58361... Line 58895...
58361
    while True:
58895
    while True:
58362
      (fname, ftype, fid) = iprot.readFieldBegin()
58896
      (fname, ftype, fid) = iprot.readFieldBegin()
58363
      if ftype == TType.STOP:
58897
      if ftype == TType.STOP:
58364
        break
58898
        break
58365
      if fid == 0:
58899
      if fid == 0:
58366
        if ftype == TType.LIST:
58900
        if ftype == TType.STRUCT:
58367
          self.success = []
58901
          self.success = ReturnOrderInfo()
58368
          (_etype1479, _size1476) = iprot.readListBegin()
-
 
58369
          for _i1480 in xrange(_size1476):
-
 
58370
            _elem1481 = PendingStoreOrder()
-
 
58371
            _elem1481.read(iprot)
58902
          self.success.read(iprot)
58372
            self.success.append(_elem1481)
-
 
58373
          iprot.readListEnd()
-
 
58374
        else:
58903
        else:
58375
          iprot.skip(ftype)
58904
          iprot.skip(ftype)
58376
      else:
58905
      else:
58377
        iprot.skip(ftype)
58906
        iprot.skip(ftype)
58378
      iprot.readFieldEnd()
58907
      iprot.readFieldEnd()
Line 58380... Line 58909...
58380
 
58909
 
58381
  def write(self, oprot):
58910
  def write(self, oprot):
58382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
58911
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
58383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
58912
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
58384
      return
58913
      return
58385
    oprot.writeStructBegin('getPendingStoreOrders_result')
58914
    oprot.writeStructBegin('splitReturnOrderInfo_result')
58386
    if self.success is not None:
58915
    if self.success is not None:
58387
      oprot.writeFieldBegin('success', TType.LIST, 0)
58916
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
58388
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
58389
      for iter1482 in self.success:
-
 
58390
        iter1482.write(oprot)
58917
      self.success.write(oprot)
58391
      oprot.writeListEnd()
-
 
58392
      oprot.writeFieldEnd()
58918
      oprot.writeFieldEnd()
58393
    oprot.writeFieldStop()
58919
    oprot.writeFieldStop()
58394
    oprot.writeStructEnd()
58920
    oprot.writeStructEnd()
58395
 
58921
 
58396
  def validate(self):
58922
  def validate(self):
Line 58406... Line 58932...
58406
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
58932
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
58407
 
58933
 
58408
  def __ne__(self, other):
58934
  def __ne__(self, other):
58409
    return not (self == other)
58935
    return not (self == other)
58410
 
58936
 
58411
class getSellerInfo_args:
58937
class deleteReturnOrder_args:
58412
  """
58938
  """
58413
  Attributes:
58939
  Attributes:
58414
   - sellerId
58940
   - returnOrderId
58415
  """
58941
  """
58416
 
58942
 
58417
  thrift_spec = (
58943
  thrift_spec = (
58418
    None, # 0
58944
    None, # 0
58419
    (1, TType.I64, 'sellerId', None, None, ), # 1
58945
    (1, TType.I64, 'returnOrderId', None, None, ), # 1
58420
  )
58946
  )
58421
 
58947
 
58422
  def __init__(self, sellerId=None,):
58948
  def __init__(self, returnOrderId=None,):
58423
    self.sellerId = sellerId
58949
    self.returnOrderId = returnOrderId
58424
 
58950
 
58425
  def read(self, iprot):
58951
  def read(self, iprot):
58426
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
58952
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
58427
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
58953
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
58428
      return
58954
      return
Line 58431... Line 58957...
58431
      (fname, ftype, fid) = iprot.readFieldBegin()
58957
      (fname, ftype, fid) = iprot.readFieldBegin()
58432
      if ftype == TType.STOP:
58958
      if ftype == TType.STOP:
58433
        break
58959
        break
58434
      if fid == 1:
58960
      if fid == 1:
58435
        if ftype == TType.I64:
58961
        if ftype == TType.I64:
58436
          self.sellerId = iprot.readI64();
58962
          self.returnOrderId = iprot.readI64();
58437
        else:
58963
        else:
58438
          iprot.skip(ftype)
58964
          iprot.skip(ftype)
58439
      else:
58965
      else:
58440
        iprot.skip(ftype)
58966
        iprot.skip(ftype)
58441
      iprot.readFieldEnd()
58967
      iprot.readFieldEnd()
Line 58443... Line 58969...
58443
 
58969
 
58444
  def write(self, oprot):
58970
  def write(self, oprot):
58445
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
58971
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
58446
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
58972
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
58447
      return
58973
      return
58448
    oprot.writeStructBegin('getSellerInfo_args')
58974
    oprot.writeStructBegin('deleteReturnOrder_args')
58449
    if self.sellerId is not None:
58975
    if self.returnOrderId is not None:
58450
      oprot.writeFieldBegin('sellerId', TType.I64, 1)
58976
      oprot.writeFieldBegin('returnOrderId', TType.I64, 1)
58451
      oprot.writeI64(self.sellerId)
58977
      oprot.writeI64(self.returnOrderId)
58452
      oprot.writeFieldEnd()
58978
      oprot.writeFieldEnd()
58453
    oprot.writeFieldStop()
58979
    oprot.writeFieldStop()
58454
    oprot.writeStructEnd()
58980
    oprot.writeStructEnd()
58455
 
58981
 
58456
  def validate(self):
58982
  def validate(self):
Line 58466... Line 58992...
58466
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
58992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
58467
 
58993
 
58468
  def __ne__(self, other):
58994
  def __ne__(self, other):
58469
    return not (self == other)
58995
    return not (self == other)
58470
 
58996
 
58471
class getSellerInfo_result:
58997
class deleteReturnOrder_result:
58472
  """
58998
  """
58473
  Attributes:
58999
  Attributes:
58474
   - success
59000
   - success
58475
  """
59001
  """
58476
 
59002
 
58477
  thrift_spec = (
59003
  thrift_spec = (
58478
    (0, TType.STRUCT, 'success', (SellerInfo, SellerInfo.thrift_spec), None, ), # 0
59004
    (0, TType.BOOL, 'success', None, None, ), # 0
58479
  )
59005
  )
58480
 
59006
 
58481
  def __init__(self, success=None,):
59007
  def __init__(self, success=None,):
58482
    self.success = success
59008
    self.success = success
58483
 
59009
 
Line 58489... Line 59015...
58489
    while True:
59015
    while True:
58490
      (fname, ftype, fid) = iprot.readFieldBegin()
59016
      (fname, ftype, fid) = iprot.readFieldBegin()
58491
      if ftype == TType.STOP:
59017
      if ftype == TType.STOP:
58492
        break
59018
        break
58493
      if fid == 0:
59019
      if fid == 0:
58494
        if ftype == TType.STRUCT:
59020
        if ftype == TType.BOOL:
58495
          self.success = SellerInfo()
59021
          self.success = iprot.readBool();
58496
          self.success.read(iprot)
-
 
58497
        else:
59022
        else:
58498
          iprot.skip(ftype)
59023
          iprot.skip(ftype)
58499
      else:
59024
      else:
58500
        iprot.skip(ftype)
59025
        iprot.skip(ftype)
58501
      iprot.readFieldEnd()
59026
      iprot.readFieldEnd()
Line 58503... Line 59028...
58503
 
59028
 
58504
  def write(self, oprot):
59029
  def write(self, oprot):
58505
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
59030
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
58506
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
59031
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
58507
      return
59032
      return
58508
    oprot.writeStructBegin('getSellerInfo_result')
59033
    oprot.writeStructBegin('deleteReturnOrder_result')
58509
    if self.success is not None:
59034
    if self.success is not None:
58510
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
59035
      oprot.writeFieldBegin('success', TType.BOOL, 0)
58511
      self.success.write(oprot)
59036
      oprot.writeBool(self.success)
58512
      oprot.writeFieldEnd()
59037
      oprot.writeFieldEnd()
58513
    oprot.writeFieldStop()
59038
    oprot.writeFieldStop()
58514
    oprot.writeStructEnd()
59039
    oprot.writeStructEnd()
58515
 
59040
 
58516
  def validate(self):
59041
  def validate(self):
Line 58526... Line 59051...
58526
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
59051
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
58527
 
59052
 
58528
  def __ne__(self, other):
59053
  def __ne__(self, other):
58529
    return not (self == other)
59054
    return not (self == other)
58530
 
59055
 
58531
class getWarehouseAddress_args:
59056
class refundReturnOrder_args:
58532
  """
59057
  """
58533
  Attributes:
59058
  Attributes:
-
 
59059
   - returnOrderInfo
58534
   - address_id
59060
   - attributes
58535
  """
59061
  """
58536
 
59062
 
58537
  thrift_spec = (
59063
  thrift_spec = (
58538
    None, # 0
59064
    None, # 0
-
 
59065
    (1, TType.STRUCT, 'returnOrderInfo', (ReturnOrderInfo, ReturnOrderInfo.thrift_spec), None, ), # 1
58539
    (1, TType.I64, 'address_id', None, None, ), # 1
59066
    (2, TType.LIST, 'attributes', (TType.STRUCT,(Attribute, Attribute.thrift_spec)), None, ), # 2
58540
  )
59067
  )
58541
 
59068
 
58542
  def __init__(self, address_id=None,):
59069
  def __init__(self, returnOrderInfo=None, attributes=None,):
-
 
59070
    self.returnOrderInfo = returnOrderInfo
58543
    self.address_id = address_id
59071
    self.attributes = attributes
58544
 
59072
 
58545
  def read(self, iprot):
59073
  def read(self, iprot):
58546
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
59074
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
58547
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
59075
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
58548
      return
59076
      return
Line 58550... Line 59078...
58550
    while True:
59078
    while True:
58551
      (fname, ftype, fid) = iprot.readFieldBegin()
59079
      (fname, ftype, fid) = iprot.readFieldBegin()
58552
      if ftype == TType.STOP:
59080
      if ftype == TType.STOP:
58553
        break
59081
        break
58554
      if fid == 1:
59082
      if fid == 1:
-
 
59083
        if ftype == TType.STRUCT:
-
 
59084
          self.returnOrderInfo = ReturnOrderInfo()
-
 
59085
          self.returnOrderInfo.read(iprot)
-
 
59086
        else:
-
 
59087
          iprot.skip(ftype)
-
 
59088
      elif fid == 2:
58555
        if ftype == TType.I64:
59089
        if ftype == TType.LIST:
-
 
59090
          self.attributes = []
-
 
59091
          (_etype1486, _size1483) = iprot.readListBegin()
-
 
59092
          for _i1487 in xrange(_size1483):
-
 
59093
            _elem1488 = Attribute()
-
 
59094
            _elem1488.read(iprot)
58556
          self.address_id = iprot.readI64();
59095
            self.attributes.append(_elem1488)
-
 
59096
          iprot.readListEnd()
58557
        else:
59097
        else:
58558
          iprot.skip(ftype)
59098
          iprot.skip(ftype)
58559
      else:
59099
      else:
58560
        iprot.skip(ftype)
59100
        iprot.skip(ftype)
58561
      iprot.readFieldEnd()
59101
      iprot.readFieldEnd()
Line 58563... Line 59103...
58563
 
59103
 
58564
  def write(self, oprot):
59104
  def write(self, oprot):
58565
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
59105
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
58566
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
59106
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
58567
      return
59107
      return
58568
    oprot.writeStructBegin('getWarehouseAddress_args')
59108
    oprot.writeStructBegin('refundReturnOrder_args')
-
 
59109
    if self.returnOrderInfo is not None:
-
 
59110
      oprot.writeFieldBegin('returnOrderInfo', TType.STRUCT, 1)
-
 
59111
      self.returnOrderInfo.write(oprot)
-
 
59112
      oprot.writeFieldEnd()
58569
    if self.address_id is not None:
59113
    if self.attributes is not None:
58570
      oprot.writeFieldBegin('address_id', TType.I64, 1)
59114
      oprot.writeFieldBegin('attributes', TType.LIST, 2)
-
 
59115
      oprot.writeListBegin(TType.STRUCT, len(self.attributes))
-
 
59116
      for iter1489 in self.attributes:
-
 
59117
        iter1489.write(oprot)
58571
      oprot.writeI64(self.address_id)
59118
      oprot.writeListEnd()
58572
      oprot.writeFieldEnd()
59119
      oprot.writeFieldEnd()
58573
    oprot.writeFieldStop()
59120
    oprot.writeFieldStop()
58574
    oprot.writeStructEnd()
59121
    oprot.writeStructEnd()
58575
 
59122
 
58576
  def validate(self):
59123
  def validate(self):
Line 58586... Line 59133...
58586
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
59133
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
58587
 
59134
 
58588
  def __ne__(self, other):
59135
  def __ne__(self, other):
58589
    return not (self == other)
59136
    return not (self == other)
58590
 
59137
 
58591
class getWarehouseAddress_result:
59138
class refundReturnOrder_result:
58592
  """
59139
  """
58593
  Attributes:
59140
  Attributes:
58594
   - success
59141
   - success
58595
  """
59142
  """
58596
 
59143
 
58597
  thrift_spec = (
59144
  thrift_spec = (
58598
    (0, TType.STRUCT, 'success', (WarehouseAddress, WarehouseAddress.thrift_spec), None, ), # 0
59145
    (0, TType.BOOL, 'success', None, None, ), # 0
58599
  )
59146
  )
58600
 
59147
 
58601
  def __init__(self, success=None,):
59148
  def __init__(self, success=None,):
58602
    self.success = success
59149
    self.success = success
58603
 
59150
 
Line 58609... Line 59156...
58609
    while True:
59156
    while True:
58610
      (fname, ftype, fid) = iprot.readFieldBegin()
59157
      (fname, ftype, fid) = iprot.readFieldBegin()
58611
      if ftype == TType.STOP:
59158
      if ftype == TType.STOP:
58612
        break
59159
        break
58613
      if fid == 0:
59160
      if fid == 0:
58614
        if ftype == TType.STRUCT:
59161
        if ftype == TType.BOOL:
58615
          self.success = WarehouseAddress()
59162
          self.success = iprot.readBool();
58616
          self.success.read(iprot)
-
 
58617
        else:
59163
        else:
58618
          iprot.skip(ftype)
59164
          iprot.skip(ftype)
58619
      else:
59165
      else:
58620
        iprot.skip(ftype)
59166
        iprot.skip(ftype)
58621
      iprot.readFieldEnd()
59167
      iprot.readFieldEnd()
Line 58623... Line 59169...
58623
 
59169
 
58624
  def write(self, oprot):
59170
  def write(self, oprot):
58625
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
59171
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
58626
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
59172
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
58627
      return
59173
      return
58628
    oprot.writeStructBegin('getWarehouseAddress_result')
59174
    oprot.writeStructBegin('refundReturnOrder_result')
58629
    if self.success is not None:
59175
    if self.success is not None:
58630
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
59176
      oprot.writeFieldBegin('success', TType.BOOL, 0)
58631
      self.success.write(oprot)
59177
      oprot.writeBool(self.success)
58632
      oprot.writeFieldEnd()
59178
      oprot.writeFieldEnd()
58633
    oprot.writeFieldStop()
59179
    oprot.writeFieldStop()
58634
    oprot.writeStructEnd()
59180
    oprot.writeStructEnd()
58635
 
59181
 
58636
  def validate(self):
59182
  def validate(self):
Line 58646... Line 59192...
58646
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
59192
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
58647
 
59193
 
58648
  def __ne__(self, other):
59194
  def __ne__(self, other):
58649
    return not (self == other)
59195
    return not (self == other)
58650
 
59196
 
58651
class getBuyerByWarehouse_args:
59197
class addShipmentDelay_args:
58652
  """
59198
  """
58653
  Attributes:
59199
  Attributes:
58654
   - warehouse_id
59200
   - shipmentDelayDetail
58655
  """
59201
  """
58656
 
59202
 
58657
  thrift_spec = (
59203
  thrift_spec = (
58658
    None, # 0
59204
    None, # 0
58659
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
59205
    (1, TType.LIST, 'shipmentDelayDetail', (TType.STRUCT,(ShipmentDelayDetail, ShipmentDelayDetail.thrift_spec)), None, ), # 1
58660
  )
59206
  )
58661
 
59207
 
58662
  def __init__(self, warehouse_id=None,):
59208
  def __init__(self, shipmentDelayDetail=None,):
58663
    self.warehouse_id = warehouse_id
59209
    self.shipmentDelayDetail = shipmentDelayDetail
58664
 
59210
 
58665
  def read(self, iprot):
59211
  def read(self, iprot):
58666
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
59212
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
58667
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
59213
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
58668
      return
59214
      return
Line 58670... Line 59216...
58670
    while True:
59216
    while True:
58671
      (fname, ftype, fid) = iprot.readFieldBegin()
59217
      (fname, ftype, fid) = iprot.readFieldBegin()
58672
      if ftype == TType.STOP:
59218
      if ftype == TType.STOP:
58673
        break
59219
        break
58674
      if fid == 1:
59220
      if fid == 1:
58675
        if ftype == TType.I64:
59221
        if ftype == TType.LIST:
-
 
59222
          self.shipmentDelayDetail = []
58676
          self.warehouse_id = iprot.readI64();
59223
          (_etype1493, _size1490) = iprot.readListBegin()
-
 
59224
          for _i1494 in xrange(_size1490):
-
 
59225
            _elem1495 = ShipmentDelayDetail()
-
 
59226
            _elem1495.read(iprot)
-
 
59227
            self.shipmentDelayDetail.append(_elem1495)
-
 
59228
          iprot.readListEnd()
58677
        else:
59229
        else:
58678
          iprot.skip(ftype)
59230
          iprot.skip(ftype)
58679
      else:
59231
      else:
58680
        iprot.skip(ftype)
59232
        iprot.skip(ftype)
58681
      iprot.readFieldEnd()
59233
      iprot.readFieldEnd()
Line 58683... Line 59235...
58683
 
59235
 
58684
  def write(self, oprot):
59236
  def write(self, oprot):
58685
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
59237
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
58686
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
59238
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
58687
      return
59239
      return
58688
    oprot.writeStructBegin('getBuyerByWarehouse_args')
59240
    oprot.writeStructBegin('addShipmentDelay_args')
58689
    if self.warehouse_id is not None:
59241
    if self.shipmentDelayDetail is not None:
58690
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
59242
      oprot.writeFieldBegin('shipmentDelayDetail', TType.LIST, 1)
-
 
59243
      oprot.writeListBegin(TType.STRUCT, len(self.shipmentDelayDetail))
-
 
59244
      for iter1496 in self.shipmentDelayDetail:
-
 
59245
        iter1496.write(oprot)
58691
      oprot.writeI64(self.warehouse_id)
59246
      oprot.writeListEnd()
58692
      oprot.writeFieldEnd()
59247
      oprot.writeFieldEnd()
58693
    oprot.writeFieldStop()
59248
    oprot.writeFieldStop()
58694
    oprot.writeStructEnd()
59249
    oprot.writeStructEnd()
58695
 
59250
 
58696
  def validate(self):
59251
  def validate(self):
Line 58706... Line 59261...
58706
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
59261
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
58707
 
59262
 
58708
  def __ne__(self, other):
59263
  def __ne__(self, other):
58709
    return not (self == other)
59264
    return not (self == other)
58710
 
59265
 
58711
class getBuyerByWarehouse_result:
59266
class addShipmentDelay_result:
58712
  """
59267
  """
58713
  Attributes:
59268
  Attributes:
58714
   - success
59269
   - success
58715
  """
59270
  """
58716
 
59271
 
58717
  thrift_spec = (
59272
  thrift_spec = (
58718
    (0, TType.STRUCT, 'success', (BuyerInfo, BuyerInfo.thrift_spec), None, ), # 0
59273
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
58719
  )
59274
  )
58720
 
59275
 
58721
  def __init__(self, success=None,):
59276
  def __init__(self, success=None,):
58722
    self.success = success
59277
    self.success = success
58723
 
59278
 
Line 58729... Line 59284...
58729
    while True:
59284
    while True:
58730
      (fname, ftype, fid) = iprot.readFieldBegin()
59285
      (fname, ftype, fid) = iprot.readFieldBegin()
58731
      if ftype == TType.STOP:
59286
      if ftype == TType.STOP:
58732
        break
59287
        break
58733
      if fid == 0:
59288
      if fid == 0:
58734
        if ftype == TType.STRUCT:
59289
        if ftype == TType.LIST:
58735
          self.success = BuyerInfo()
59290
          self.success = []
-
 
59291
          (_etype1500, _size1497) = iprot.readListBegin()
-
 
59292
          for _i1501 in xrange(_size1497):
-
 
59293
            _elem1502 = iprot.readI64();
58736
          self.success.read(iprot)
59294
            self.success.append(_elem1502)
-
 
59295
          iprot.readListEnd()
58737
        else:
59296
        else:
58738
          iprot.skip(ftype)
59297
          iprot.skip(ftype)
58739
      else:
59298
      else:
58740
        iprot.skip(ftype)
59299
        iprot.skip(ftype)
58741
      iprot.readFieldEnd()
59300
      iprot.readFieldEnd()
Line 58743... Line 59302...
58743
 
59302
 
58744
  def write(self, oprot):
59303
  def write(self, oprot):
58745
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
59304
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
58746
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
59305
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
58747
      return
59306
      return
58748
    oprot.writeStructBegin('getBuyerByWarehouse_result')
59307
    oprot.writeStructBegin('addShipmentDelay_result')
58749
    if self.success is not None:
59308
    if self.success is not None:
58750
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
59309
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
59310
      oprot.writeListBegin(TType.I64, len(self.success))
-
 
59311
      for iter1503 in self.success:
-
 
59312
        oprot.writeI64(iter1503)
58751
      self.success.write(oprot)
59313
      oprot.writeListEnd()
58752
      oprot.writeFieldEnd()
59314
      oprot.writeFieldEnd()
58753
    oprot.writeFieldStop()
59315
    oprot.writeFieldStop()
58754
    oprot.writeStructEnd()
59316
    oprot.writeStructEnd()
58755
 
59317
 
58756
  def validate(self):
59318
  def validate(self):