Subversion Repositories SmartDukaan

Rev

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

Rev 4133 Rev 4247
Line 673... Line 673...
673
    Returns a map containing the number of risky orders keyed by item id. A risky order
673
    Returns a map containing the number of risky orders keyed by item id. A risky order
674
    is defined as one whose shipping date is about to expire.
674
    is defined as one whose shipping date is about to expire.
675
    """
675
    """
676
    pass
676
    pass
677
 
677
 
-
 
678
  def markOrderCancellationRequestReceived(self, orderId):
-
 
679
    """
-
 
680
    Mark order as cancellation request received. If customer sends request of cancellation of
-
 
681
    a particular order, this method will be called. It will just change status of the order
-
 
682
    depending on its current status. It also records the previous status, so that we can move
-
 
683
    back to that status if cancellation request is denied.
-
 
684
 
-
 
685
    Parameters:
-
 
686
     - orderId
-
 
687
    """
-
 
688
    pass
-
 
689
 
-
 
690
  def markOrderCancellationRequestConfirmed(self, orderId):
-
 
691
    """
-
 
692
    If we decide to to cancel order, CRM will call this method to move the status of order to
-
 
693
    cancellation request confirmed. After this OM will be able to cancel the order.
-
 
694
 
-
 
695
    Parameters:
-
 
696
     - orderId
-
 
697
    """
-
 
698
    pass
-
 
699
 
-
 
700
  def markOrderCancellationRequestDenied(self, orderId):
-
 
701
    """
-
 
702
    If we decide to not to cancel order, we will move the order ro previous status.
-
 
703
 
-
 
704
    Parameters:
-
 
705
     - orderId
-
 
706
    """
-
 
707
    pass
-
 
708
 
-
 
709
  def markOrderAsPaymentFlagRemoved(self, orderId):
-
 
710
    """
-
 
711
    If we and/or payment has decided to accept the order, this method needs to be called.
-
 
712
    Changed order status and payment status
-
 
713
 
-
 
714
    Parameters:
-
 
715
     - orderId
-
 
716
    """
-
 
717
    pass
-
 
718
 
678
 
719
 
679
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
720
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
680
  def __init__(self, iprot, oprot=None):
721
  def __init__(self, iprot, oprot=None):
681
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
722
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
682
 
723
 
Line 2858... Line 2899...
2858
    self._iprot.readMessageEnd()
2899
    self._iprot.readMessageEnd()
2859
    if result.success is not None:
2900
    if result.success is not None:
2860
      return result.success
2901
      return result.success
2861
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemWiseRiskyOrdersCount failed: unknown result");
2902
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemWiseRiskyOrdersCount failed: unknown result");
2862
 
2903
 
-
 
2904
  def markOrderCancellationRequestReceived(self, orderId):
-
 
2905
    """
-
 
2906
    Mark order as cancellation request received. If customer sends request of cancellation of
-
 
2907
    a particular order, this method will be called. It will just change status of the order
-
 
2908
    depending on its current status. It also records the previous status, so that we can move
-
 
2909
    back to that status if cancellation request is denied.
-
 
2910
 
-
 
2911
    Parameters:
-
 
2912
     - orderId
-
 
2913
    """
-
 
2914
    self.send_markOrderCancellationRequestReceived(orderId)
-
 
2915
    self.recv_markOrderCancellationRequestReceived()
-
 
2916
 
-
 
2917
  def send_markOrderCancellationRequestReceived(self, orderId):
-
 
2918
    self._oprot.writeMessageBegin('markOrderCancellationRequestReceived', TMessageType.CALL, self._seqid)
-
 
2919
    args = markOrderCancellationRequestReceived_args()
-
 
2920
    args.orderId = orderId
-
 
2921
    args.write(self._oprot)
-
 
2922
    self._oprot.writeMessageEnd()
-
 
2923
    self._oprot.trans.flush()
-
 
2924
 
-
 
2925
  def recv_markOrderCancellationRequestReceived(self, ):
-
 
2926
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2927
    if mtype == TMessageType.EXCEPTION:
-
 
2928
      x = TApplicationException()
-
 
2929
      x.read(self._iprot)
-
 
2930
      self._iprot.readMessageEnd()
-
 
2931
      raise x
-
 
2932
    result = markOrderCancellationRequestReceived_result()
-
 
2933
    result.read(self._iprot)
-
 
2934
    self._iprot.readMessageEnd()
-
 
2935
    if result.ex is not None:
-
 
2936
      raise result.ex
-
 
2937
    return
-
 
2938
 
-
 
2939
  def markOrderCancellationRequestConfirmed(self, orderId):
-
 
2940
    """
-
 
2941
    If we decide to to cancel order, CRM will call this method to move the status of order to
-
 
2942
    cancellation request confirmed. After this OM will be able to cancel the order.
-
 
2943
 
-
 
2944
    Parameters:
-
 
2945
     - orderId
-
 
2946
    """
-
 
2947
    self.send_markOrderCancellationRequestConfirmed(orderId)
-
 
2948
    self.recv_markOrderCancellationRequestConfirmed()
-
 
2949
 
-
 
2950
  def send_markOrderCancellationRequestConfirmed(self, orderId):
-
 
2951
    self._oprot.writeMessageBegin('markOrderCancellationRequestConfirmed', TMessageType.CALL, self._seqid)
-
 
2952
    args = markOrderCancellationRequestConfirmed_args()
-
 
2953
    args.orderId = orderId
-
 
2954
    args.write(self._oprot)
-
 
2955
    self._oprot.writeMessageEnd()
-
 
2956
    self._oprot.trans.flush()
-
 
2957
 
-
 
2958
  def recv_markOrderCancellationRequestConfirmed(self, ):
-
 
2959
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2960
    if mtype == TMessageType.EXCEPTION:
-
 
2961
      x = TApplicationException()
-
 
2962
      x.read(self._iprot)
-
 
2963
      self._iprot.readMessageEnd()
-
 
2964
      raise x
-
 
2965
    result = markOrderCancellationRequestConfirmed_result()
-
 
2966
    result.read(self._iprot)
-
 
2967
    self._iprot.readMessageEnd()
-
 
2968
    if result.ex is not None:
-
 
2969
      raise result.ex
-
 
2970
    return
-
 
2971
 
-
 
2972
  def markOrderCancellationRequestDenied(self, orderId):
-
 
2973
    """
-
 
2974
    If we decide to not to cancel order, we will move the order ro previous status.
-
 
2975
 
-
 
2976
    Parameters:
-
 
2977
     - orderId
-
 
2978
    """
-
 
2979
    self.send_markOrderCancellationRequestDenied(orderId)
-
 
2980
    self.recv_markOrderCancellationRequestDenied()
-
 
2981
 
-
 
2982
  def send_markOrderCancellationRequestDenied(self, orderId):
-
 
2983
    self._oprot.writeMessageBegin('markOrderCancellationRequestDenied', TMessageType.CALL, self._seqid)
-
 
2984
    args = markOrderCancellationRequestDenied_args()
-
 
2985
    args.orderId = orderId
-
 
2986
    args.write(self._oprot)
-
 
2987
    self._oprot.writeMessageEnd()
-
 
2988
    self._oprot.trans.flush()
-
 
2989
 
-
 
2990
  def recv_markOrderCancellationRequestDenied(self, ):
-
 
2991
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2992
    if mtype == TMessageType.EXCEPTION:
-
 
2993
      x = TApplicationException()
-
 
2994
      x.read(self._iprot)
-
 
2995
      self._iprot.readMessageEnd()
-
 
2996
      raise x
-
 
2997
    result = markOrderCancellationRequestDenied_result()
-
 
2998
    result.read(self._iprot)
-
 
2999
    self._iprot.readMessageEnd()
-
 
3000
    if result.ex is not None:
-
 
3001
      raise result.ex
-
 
3002
    return
-
 
3003
 
-
 
3004
  def markOrderAsPaymentFlagRemoved(self, orderId):
-
 
3005
    """
-
 
3006
    If we and/or payment has decided to accept the order, this method needs to be called.
-
 
3007
    Changed order status and payment status
-
 
3008
 
-
 
3009
    Parameters:
-
 
3010
     - orderId
-
 
3011
    """
-
 
3012
    self.send_markOrderAsPaymentFlagRemoved(orderId)
-
 
3013
    self.recv_markOrderAsPaymentFlagRemoved()
-
 
3014
 
-
 
3015
  def send_markOrderAsPaymentFlagRemoved(self, orderId):
-
 
3016
    self._oprot.writeMessageBegin('markOrderAsPaymentFlagRemoved', TMessageType.CALL, self._seqid)
-
 
3017
    args = markOrderAsPaymentFlagRemoved_args()
-
 
3018
    args.orderId = orderId
-
 
3019
    args.write(self._oprot)
-
 
3020
    self._oprot.writeMessageEnd()
-
 
3021
    self._oprot.trans.flush()
-
 
3022
 
-
 
3023
  def recv_markOrderAsPaymentFlagRemoved(self, ):
-
 
3024
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3025
    if mtype == TMessageType.EXCEPTION:
-
 
3026
      x = TApplicationException()
-
 
3027
      x.read(self._iprot)
-
 
3028
      self._iprot.readMessageEnd()
-
 
3029
      raise x
-
 
3030
    result = markOrderAsPaymentFlagRemoved_result()
-
 
3031
    result.read(self._iprot)
-
 
3032
    self._iprot.readMessageEnd()
-
 
3033
    if result.ex is not None:
-
 
3034
      raise result.ex
-
 
3035
    return
-
 
3036
 
2863
 
3037
 
2864
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3038
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2865
  def __init__(self, handler):
3039
  def __init__(self, handler):
2866
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3040
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2867
    self._processMap["createTransaction"] = Processor.process_createTransaction
3041
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 2922... Line 3096...
2922
    self._processMap["addDelayReason"] = Processor.process_addDelayReason
3096
    self._processMap["addDelayReason"] = Processor.process_addDelayReason
2923
    self._processMap["reconcileCodCollection"] = Processor.process_reconcileCodCollection
3097
    self._processMap["reconcileCodCollection"] = Processor.process_reconcileCodCollection
2924
    self._processMap["getTransactionsRequiringExtraProcessing"] = Processor.process_getTransactionsRequiringExtraProcessing
3098
    self._processMap["getTransactionsRequiringExtraProcessing"] = Processor.process_getTransactionsRequiringExtraProcessing
2925
    self._processMap["markTransactionAsProcessed"] = Processor.process_markTransactionAsProcessed
3099
    self._processMap["markTransactionAsProcessed"] = Processor.process_markTransactionAsProcessed
2926
    self._processMap["getItemWiseRiskyOrdersCount"] = Processor.process_getItemWiseRiskyOrdersCount
3100
    self._processMap["getItemWiseRiskyOrdersCount"] = Processor.process_getItemWiseRiskyOrdersCount
-
 
3101
    self._processMap["markOrderCancellationRequestReceived"] = Processor.process_markOrderCancellationRequestReceived
-
 
3102
    self._processMap["markOrderCancellationRequestConfirmed"] = Processor.process_markOrderCancellationRequestConfirmed
-
 
3103
    self._processMap["markOrderCancellationRequestDenied"] = Processor.process_markOrderCancellationRequestDenied
-
 
3104
    self._processMap["markOrderAsPaymentFlagRemoved"] = Processor.process_markOrderAsPaymentFlagRemoved
2927
 
3105
 
2928
  def process(self, iprot, oprot):
3106
  def process(self, iprot, oprot):
2929
    (name, type, seqid) = iprot.readMessageBegin()
3107
    (name, type, seqid) = iprot.readMessageBegin()
2930
    if name not in self._processMap:
3108
    if name not in self._processMap:
2931
      iprot.skip(TType.STRUCT)
3109
      iprot.skip(TType.STRUCT)
Line 3742... Line 3920...
3742
    oprot.writeMessageBegin("getItemWiseRiskyOrdersCount", TMessageType.REPLY, seqid)
3920
    oprot.writeMessageBegin("getItemWiseRiskyOrdersCount", TMessageType.REPLY, seqid)
3743
    result.write(oprot)
3921
    result.write(oprot)
3744
    oprot.writeMessageEnd()
3922
    oprot.writeMessageEnd()
3745
    oprot.trans.flush()
3923
    oprot.trans.flush()
3746
 
3924
 
-
 
3925
  def process_markOrderCancellationRequestReceived(self, seqid, iprot, oprot):
-
 
3926
    args = markOrderCancellationRequestReceived_args()
-
 
3927
    args.read(iprot)
-
 
3928
    iprot.readMessageEnd()
-
 
3929
    result = markOrderCancellationRequestReceived_result()
-
 
3930
    try:
-
 
3931
      self._handler.markOrderCancellationRequestReceived(args.orderId)
-
 
3932
    except TransactionServiceException, ex:
-
 
3933
      result.ex = ex
-
 
3934
    oprot.writeMessageBegin("markOrderCancellationRequestReceived", TMessageType.REPLY, seqid)
-
 
3935
    result.write(oprot)
-
 
3936
    oprot.writeMessageEnd()
-
 
3937
    oprot.trans.flush()
-
 
3938
 
-
 
3939
  def process_markOrderCancellationRequestConfirmed(self, seqid, iprot, oprot):
-
 
3940
    args = markOrderCancellationRequestConfirmed_args()
-
 
3941
    args.read(iprot)
-
 
3942
    iprot.readMessageEnd()
-
 
3943
    result = markOrderCancellationRequestConfirmed_result()
-
 
3944
    try:
-
 
3945
      self._handler.markOrderCancellationRequestConfirmed(args.orderId)
-
 
3946
    except TransactionServiceException, ex:
-
 
3947
      result.ex = ex
-
 
3948
    oprot.writeMessageBegin("markOrderCancellationRequestConfirmed", TMessageType.REPLY, seqid)
-
 
3949
    result.write(oprot)
-
 
3950
    oprot.writeMessageEnd()
-
 
3951
    oprot.trans.flush()
-
 
3952
 
-
 
3953
  def process_markOrderCancellationRequestDenied(self, seqid, iprot, oprot):
-
 
3954
    args = markOrderCancellationRequestDenied_args()
-
 
3955
    args.read(iprot)
-
 
3956
    iprot.readMessageEnd()
-
 
3957
    result = markOrderCancellationRequestDenied_result()
-
 
3958
    try:
-
 
3959
      self._handler.markOrderCancellationRequestDenied(args.orderId)
-
 
3960
    except TransactionServiceException, ex:
-
 
3961
      result.ex = ex
-
 
3962
    oprot.writeMessageBegin("markOrderCancellationRequestDenied", TMessageType.REPLY, seqid)
-
 
3963
    result.write(oprot)
-
 
3964
    oprot.writeMessageEnd()
-
 
3965
    oprot.trans.flush()
-
 
3966
 
-
 
3967
  def process_markOrderAsPaymentFlagRemoved(self, seqid, iprot, oprot):
-
 
3968
    args = markOrderAsPaymentFlagRemoved_args()
-
 
3969
    args.read(iprot)
-
 
3970
    iprot.readMessageEnd()
-
 
3971
    result = markOrderAsPaymentFlagRemoved_result()
-
 
3972
    try:
-
 
3973
      self._handler.markOrderAsPaymentFlagRemoved(args.orderId)
-
 
3974
    except TransactionServiceException, ex:
-
 
3975
      result.ex = ex
-
 
3976
    oprot.writeMessageBegin("markOrderAsPaymentFlagRemoved", TMessageType.REPLY, seqid)
-
 
3977
    result.write(oprot)
-
 
3978
    oprot.writeMessageEnd()
-
 
3979
    oprot.trans.flush()
-
 
3980
 
3747
 
3981
 
3748
# HELPER FUNCTIONS AND STRUCTURES
3982
# HELPER FUNCTIONS AND STRUCTURES
3749
 
3983
 
3750
class createTransaction_args:
3984
class createTransaction_args:
3751
  """
3985
  """
Line 12378... Line 12612...
12378
      oprot.writeFieldEnd()
12612
      oprot.writeFieldEnd()
12379
    oprot.writeFieldStop()
12613
    oprot.writeFieldStop()
12380
    oprot.writeStructEnd()
12614
    oprot.writeStructEnd()
12381
 
12615
 
12382
  def validate(self):
12616
  def validate(self):
-
 
12617
    return
-
 
12618
 
-
 
12619
 
-
 
12620
  def __repr__(self):
-
 
12621
    L = ['%s=%r' % (key, value)
-
 
12622
      for key, value in self.__dict__.iteritems()]
-
 
12623
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
12624
 
-
 
12625
  def __eq__(self, other):
-
 
12626
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
12627
 
-
 
12628
  def __ne__(self, other):
-
 
12629
    return not (self == other)
-
 
12630
 
-
 
12631
class markOrderCancellationRequestReceived_args:
-
 
12632
  """
-
 
12633
  Attributes:
-
 
12634
   - orderId
-
 
12635
  """
-
 
12636
 
-
 
12637
  thrift_spec = (
-
 
12638
    None, # 0
-
 
12639
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
12640
  )
-
 
12641
 
-
 
12642
  def __init__(self, orderId=None,):
-
 
12643
    self.orderId = orderId
-
 
12644
 
-
 
12645
  def read(self, iprot):
-
 
12646
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
12647
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
12648
      return
-
 
12649
    iprot.readStructBegin()
-
 
12650
    while True:
-
 
12651
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
12652
      if ftype == TType.STOP:
-
 
12653
        break
-
 
12654
      if fid == 1:
-
 
12655
        if ftype == TType.I64:
-
 
12656
          self.orderId = iprot.readI64();
-
 
12657
        else:
-
 
12658
          iprot.skip(ftype)
-
 
12659
      else:
-
 
12660
        iprot.skip(ftype)
-
 
12661
      iprot.readFieldEnd()
-
 
12662
    iprot.readStructEnd()
-
 
12663
 
-
 
12664
  def write(self, oprot):
-
 
12665
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
12666
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
12667
      return
-
 
12668
    oprot.writeStructBegin('markOrderCancellationRequestReceived_args')
-
 
12669
    if self.orderId is not None:
-
 
12670
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
12671
      oprot.writeI64(self.orderId)
-
 
12672
      oprot.writeFieldEnd()
-
 
12673
    oprot.writeFieldStop()
-
 
12674
    oprot.writeStructEnd()
-
 
12675
 
-
 
12676
  def validate(self):
-
 
12677
    return
-
 
12678
 
-
 
12679
 
-
 
12680
  def __repr__(self):
-
 
12681
    L = ['%s=%r' % (key, value)
-
 
12682
      for key, value in self.__dict__.iteritems()]
-
 
12683
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
12684
 
-
 
12685
  def __eq__(self, other):
-
 
12686
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
12687
 
-
 
12688
  def __ne__(self, other):
-
 
12689
    return not (self == other)
-
 
12690
 
-
 
12691
class markOrderCancellationRequestReceived_result:
-
 
12692
  """
-
 
12693
  Attributes:
-
 
12694
   - ex
-
 
12695
  """
-
 
12696
 
-
 
12697
  thrift_spec = (
-
 
12698
    None, # 0
-
 
12699
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
12700
  )
-
 
12701
 
-
 
12702
  def __init__(self, ex=None,):
-
 
12703
    self.ex = ex
-
 
12704
 
-
 
12705
  def read(self, iprot):
-
 
12706
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
12707
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
12708
      return
-
 
12709
    iprot.readStructBegin()
-
 
12710
    while True:
-
 
12711
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
12712
      if ftype == TType.STOP:
-
 
12713
        break
-
 
12714
      if fid == 1:
-
 
12715
        if ftype == TType.STRUCT:
-
 
12716
          self.ex = TransactionServiceException()
-
 
12717
          self.ex.read(iprot)
-
 
12718
        else:
-
 
12719
          iprot.skip(ftype)
-
 
12720
      else:
-
 
12721
        iprot.skip(ftype)
-
 
12722
      iprot.readFieldEnd()
-
 
12723
    iprot.readStructEnd()
-
 
12724
 
-
 
12725
  def write(self, oprot):
-
 
12726
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
12727
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
12728
      return
-
 
12729
    oprot.writeStructBegin('markOrderCancellationRequestReceived_result')
-
 
12730
    if self.ex is not None:
-
 
12731
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
12732
      self.ex.write(oprot)
-
 
12733
      oprot.writeFieldEnd()
-
 
12734
    oprot.writeFieldStop()
-
 
12735
    oprot.writeStructEnd()
-
 
12736
 
-
 
12737
  def validate(self):
-
 
12738
    return
-
 
12739
 
-
 
12740
 
-
 
12741
  def __repr__(self):
-
 
12742
    L = ['%s=%r' % (key, value)
-
 
12743
      for key, value in self.__dict__.iteritems()]
-
 
12744
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
12745
 
-
 
12746
  def __eq__(self, other):
-
 
12747
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
12748
 
-
 
12749
  def __ne__(self, other):
-
 
12750
    return not (self == other)
-
 
12751
 
-
 
12752
class markOrderCancellationRequestConfirmed_args:
-
 
12753
  """
-
 
12754
  Attributes:
-
 
12755
   - orderId
-
 
12756
  """
-
 
12757
 
-
 
12758
  thrift_spec = (
-
 
12759
    None, # 0
-
 
12760
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
12761
  )
-
 
12762
 
-
 
12763
  def __init__(self, orderId=None,):
-
 
12764
    self.orderId = orderId
-
 
12765
 
-
 
12766
  def read(self, iprot):
-
 
12767
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
12768
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
12769
      return
-
 
12770
    iprot.readStructBegin()
-
 
12771
    while True:
-
 
12772
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
12773
      if ftype == TType.STOP:
-
 
12774
        break
-
 
12775
      if fid == 1:
-
 
12776
        if ftype == TType.I64:
-
 
12777
          self.orderId = iprot.readI64();
-
 
12778
        else:
-
 
12779
          iprot.skip(ftype)
-
 
12780
      else:
-
 
12781
        iprot.skip(ftype)
-
 
12782
      iprot.readFieldEnd()
-
 
12783
    iprot.readStructEnd()
-
 
12784
 
-
 
12785
  def write(self, oprot):
-
 
12786
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
12787
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
12788
      return
-
 
12789
    oprot.writeStructBegin('markOrderCancellationRequestConfirmed_args')
-
 
12790
    if self.orderId is not None:
-
 
12791
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
12792
      oprot.writeI64(self.orderId)
-
 
12793
      oprot.writeFieldEnd()
-
 
12794
    oprot.writeFieldStop()
-
 
12795
    oprot.writeStructEnd()
-
 
12796
 
-
 
12797
  def validate(self):
-
 
12798
    return
-
 
12799
 
-
 
12800
 
-
 
12801
  def __repr__(self):
-
 
12802
    L = ['%s=%r' % (key, value)
-
 
12803
      for key, value in self.__dict__.iteritems()]
-
 
12804
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
12805
 
-
 
12806
  def __eq__(self, other):
-
 
12807
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
12808
 
-
 
12809
  def __ne__(self, other):
-
 
12810
    return not (self == other)
-
 
12811
 
-
 
12812
class markOrderCancellationRequestConfirmed_result:
-
 
12813
  """
-
 
12814
  Attributes:
-
 
12815
   - ex
-
 
12816
  """
-
 
12817
 
-
 
12818
  thrift_spec = (
-
 
12819
    None, # 0
-
 
12820
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
12821
  )
-
 
12822
 
-
 
12823
  def __init__(self, ex=None,):
-
 
12824
    self.ex = ex
-
 
12825
 
-
 
12826
  def read(self, iprot):
-
 
12827
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
12828
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
12829
      return
-
 
12830
    iprot.readStructBegin()
-
 
12831
    while True:
-
 
12832
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
12833
      if ftype == TType.STOP:
-
 
12834
        break
-
 
12835
      if fid == 1:
-
 
12836
        if ftype == TType.STRUCT:
-
 
12837
          self.ex = TransactionServiceException()
-
 
12838
          self.ex.read(iprot)
-
 
12839
        else:
-
 
12840
          iprot.skip(ftype)
-
 
12841
      else:
-
 
12842
        iprot.skip(ftype)
-
 
12843
      iprot.readFieldEnd()
-
 
12844
    iprot.readStructEnd()
-
 
12845
 
-
 
12846
  def write(self, oprot):
-
 
12847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
12848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
12849
      return
-
 
12850
    oprot.writeStructBegin('markOrderCancellationRequestConfirmed_result')
-
 
12851
    if self.ex is not None:
-
 
12852
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
12853
      self.ex.write(oprot)
-
 
12854
      oprot.writeFieldEnd()
-
 
12855
    oprot.writeFieldStop()
-
 
12856
    oprot.writeStructEnd()
-
 
12857
 
-
 
12858
  def validate(self):
-
 
12859
    return
-
 
12860
 
-
 
12861
 
-
 
12862
  def __repr__(self):
-
 
12863
    L = ['%s=%r' % (key, value)
-
 
12864
      for key, value in self.__dict__.iteritems()]
-
 
12865
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
12866
 
-
 
12867
  def __eq__(self, other):
-
 
12868
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
12869
 
-
 
12870
  def __ne__(self, other):
-
 
12871
    return not (self == other)
-
 
12872
 
-
 
12873
class markOrderCancellationRequestDenied_args:
-
 
12874
  """
-
 
12875
  Attributes:
-
 
12876
   - orderId
-
 
12877
  """
-
 
12878
 
-
 
12879
  thrift_spec = (
-
 
12880
    None, # 0
-
 
12881
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
12882
  )
-
 
12883
 
-
 
12884
  def __init__(self, orderId=None,):
-
 
12885
    self.orderId = orderId
-
 
12886
 
-
 
12887
  def read(self, iprot):
-
 
12888
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
12889
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
12890
      return
-
 
12891
    iprot.readStructBegin()
-
 
12892
    while True:
-
 
12893
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
12894
      if ftype == TType.STOP:
-
 
12895
        break
-
 
12896
      if fid == 1:
-
 
12897
        if ftype == TType.I64:
-
 
12898
          self.orderId = iprot.readI64();
-
 
12899
        else:
-
 
12900
          iprot.skip(ftype)
-
 
12901
      else:
-
 
12902
        iprot.skip(ftype)
-
 
12903
      iprot.readFieldEnd()
-
 
12904
    iprot.readStructEnd()
-
 
12905
 
-
 
12906
  def write(self, oprot):
-
 
12907
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
12908
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
12909
      return
-
 
12910
    oprot.writeStructBegin('markOrderCancellationRequestDenied_args')
-
 
12911
    if self.orderId is not None:
-
 
12912
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
12913
      oprot.writeI64(self.orderId)
-
 
12914
      oprot.writeFieldEnd()
-
 
12915
    oprot.writeFieldStop()
-
 
12916
    oprot.writeStructEnd()
-
 
12917
 
-
 
12918
  def validate(self):
-
 
12919
    return
-
 
12920
 
-
 
12921
 
-
 
12922
  def __repr__(self):
-
 
12923
    L = ['%s=%r' % (key, value)
-
 
12924
      for key, value in self.__dict__.iteritems()]
-
 
12925
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
12926
 
-
 
12927
  def __eq__(self, other):
-
 
12928
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
12929
 
-
 
12930
  def __ne__(self, other):
-
 
12931
    return not (self == other)
-
 
12932
 
-
 
12933
class markOrderCancellationRequestDenied_result:
-
 
12934
  """
-
 
12935
  Attributes:
-
 
12936
   - ex
-
 
12937
  """
-
 
12938
 
-
 
12939
  thrift_spec = (
-
 
12940
    None, # 0
-
 
12941
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
12942
  )
-
 
12943
 
-
 
12944
  def __init__(self, ex=None,):
-
 
12945
    self.ex = ex
-
 
12946
 
-
 
12947
  def read(self, iprot):
-
 
12948
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
12949
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
12950
      return
-
 
12951
    iprot.readStructBegin()
-
 
12952
    while True:
-
 
12953
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
12954
      if ftype == TType.STOP:
-
 
12955
        break
-
 
12956
      if fid == 1:
-
 
12957
        if ftype == TType.STRUCT:
-
 
12958
          self.ex = TransactionServiceException()
-
 
12959
          self.ex.read(iprot)
-
 
12960
        else:
-
 
12961
          iprot.skip(ftype)
-
 
12962
      else:
-
 
12963
        iprot.skip(ftype)
-
 
12964
      iprot.readFieldEnd()
-
 
12965
    iprot.readStructEnd()
-
 
12966
 
-
 
12967
  def write(self, oprot):
-
 
12968
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
12969
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
12970
      return
-
 
12971
    oprot.writeStructBegin('markOrderCancellationRequestDenied_result')
-
 
12972
    if self.ex is not None:
-
 
12973
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
12974
      self.ex.write(oprot)
-
 
12975
      oprot.writeFieldEnd()
-
 
12976
    oprot.writeFieldStop()
-
 
12977
    oprot.writeStructEnd()
-
 
12978
 
-
 
12979
  def validate(self):
-
 
12980
    return
-
 
12981
 
-
 
12982
 
-
 
12983
  def __repr__(self):
-
 
12984
    L = ['%s=%r' % (key, value)
-
 
12985
      for key, value in self.__dict__.iteritems()]
-
 
12986
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
12987
 
-
 
12988
  def __eq__(self, other):
-
 
12989
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
12990
 
-
 
12991
  def __ne__(self, other):
-
 
12992
    return not (self == other)
-
 
12993
 
-
 
12994
class markOrderAsPaymentFlagRemoved_args:
-
 
12995
  """
-
 
12996
  Attributes:
-
 
12997
   - orderId
-
 
12998
  """
-
 
12999
 
-
 
13000
  thrift_spec = (
-
 
13001
    None, # 0
-
 
13002
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
13003
  )
-
 
13004
 
-
 
13005
  def __init__(self, orderId=None,):
-
 
13006
    self.orderId = orderId
-
 
13007
 
-
 
13008
  def read(self, iprot):
-
 
13009
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
13010
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
13011
      return
-
 
13012
    iprot.readStructBegin()
-
 
13013
    while True:
-
 
13014
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
13015
      if ftype == TType.STOP:
-
 
13016
        break
-
 
13017
      if fid == 1:
-
 
13018
        if ftype == TType.I64:
-
 
13019
          self.orderId = iprot.readI64();
-
 
13020
        else:
-
 
13021
          iprot.skip(ftype)
-
 
13022
      else:
-
 
13023
        iprot.skip(ftype)
-
 
13024
      iprot.readFieldEnd()
-
 
13025
    iprot.readStructEnd()
-
 
13026
 
-
 
13027
  def write(self, oprot):
-
 
13028
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
13029
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
13030
      return
-
 
13031
    oprot.writeStructBegin('markOrderAsPaymentFlagRemoved_args')
-
 
13032
    if self.orderId is not None:
-
 
13033
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
13034
      oprot.writeI64(self.orderId)
-
 
13035
      oprot.writeFieldEnd()
-
 
13036
    oprot.writeFieldStop()
-
 
13037
    oprot.writeStructEnd()
-
 
13038
 
-
 
13039
  def validate(self):
-
 
13040
    return
-
 
13041
 
-
 
13042
 
-
 
13043
  def __repr__(self):
-
 
13044
    L = ['%s=%r' % (key, value)
-
 
13045
      for key, value in self.__dict__.iteritems()]
-
 
13046
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
13047
 
-
 
13048
  def __eq__(self, other):
-
 
13049
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
13050
 
-
 
13051
  def __ne__(self, other):
-
 
13052
    return not (self == other)
-
 
13053
 
-
 
13054
class markOrderAsPaymentFlagRemoved_result:
-
 
13055
  """
-
 
13056
  Attributes:
-
 
13057
   - ex
-
 
13058
  """
-
 
13059
 
-
 
13060
  thrift_spec = (
-
 
13061
    None, # 0
-
 
13062
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
13063
  )
-
 
13064
 
-
 
13065
  def __init__(self, ex=None,):
-
 
13066
    self.ex = ex
-
 
13067
 
-
 
13068
  def read(self, iprot):
-
 
13069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
13070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
13071
      return
-
 
13072
    iprot.readStructBegin()
-
 
13073
    while True:
-
 
13074
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
13075
      if ftype == TType.STOP:
-
 
13076
        break
-
 
13077
      if fid == 1:
-
 
13078
        if ftype == TType.STRUCT:
-
 
13079
          self.ex = TransactionServiceException()
-
 
13080
          self.ex.read(iprot)
-
 
13081
        else:
-
 
13082
          iprot.skip(ftype)
-
 
13083
      else:
-
 
13084
        iprot.skip(ftype)
-
 
13085
      iprot.readFieldEnd()
-
 
13086
    iprot.readStructEnd()
-
 
13087
 
-
 
13088
  def write(self, oprot):
-
 
13089
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
13090
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
13091
      return
-
 
13092
    oprot.writeStructBegin('markOrderAsPaymentFlagRemoved_result')
-
 
13093
    if self.ex is not None:
-
 
13094
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
13095
      self.ex.write(oprot)
-
 
13096
      oprot.writeFieldEnd()
-
 
13097
    oprot.writeFieldStop()
-
 
13098
    oprot.writeStructEnd()
-
 
13099
 
-
 
13100
  def validate(self):
12383
    return
13101
    return
12384
 
13102
 
12385
 
13103
 
12386
  def __repr__(self):
13104
  def __repr__(self):
12387
    L = ['%s=%r' % (key, value)
13105
    L = ['%s=%r' % (key, value)