Subversion Repositories SmartDukaan

Rev

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

Rev 4452 Rev 4454
Line 427... Line 427...
427
    Parameters:
427
    Parameters:
428
     - orderId
428
     - orderId
429
    """
429
    """
430
    pass
430
    pass
431
 
431
 
-
 
432
  def markOrderDoaRequestReceived(self, orderId):
-
 
433
    """
-
 
434
    Once user raise the request for a DOA, order status will be changed from DELVIERY_SUCCESS to DOA_REQUEST_RECEIVED
-
 
435
 
-
 
436
    Parameters:
-
 
437
     - orderId
-
 
438
    """
-
 
439
    pass
-
 
440
 
-
 
441
  def markOrderDoaRequestAuthorized(self, orderId, isAuthorized):
-
 
442
    """
-
 
443
    CRM person can authorize or deny the request reised by customer. If he authorizes order will change from DOA_REQUEST_RECEIVED
-
 
444
    to DOA_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
-
 
445
 
-
 
446
    Parameters:
-
 
447
     - orderId
-
 
448
     - isAuthorized
-
 
449
    """
-
 
450
    pass
-
 
451
 
432
  def requestPickupNumber(self, orderId):
452
  def requestPickupNumber(self, orderId):
433
    """
453
    """
434
    Sends out an email to the account manager of the original courier provider used to ship the order.
454
    Sends out an email to the account manager of the original courier provider used to ship the order.
435
    If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUEST_RAISED.
455
    If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUEST_RAISED.
436
    If the order status was DOA_PICKUP_REQUEST_RAISED, it is left unchanged.
456
    If the order status was DOA_PICKUP_REQUEST_RAISED, it is left unchanged.
Line 2273... Line 2293...
2273
      return result.success
2293
      return result.success
2274
    if result.ex is not None:
2294
    if result.ex is not None:
2275
      raise result.ex
2295
      raise result.ex
2276
    raise TApplicationException(TApplicationException.MISSING_RESULT, "toggleDOAFlag failed: unknown result");
2296
    raise TApplicationException(TApplicationException.MISSING_RESULT, "toggleDOAFlag failed: unknown result");
2277
 
2297
 
-
 
2298
  def markOrderDoaRequestReceived(self, orderId):
-
 
2299
    """
-
 
2300
    Once user raise the request for a DOA, order status will be changed from DELVIERY_SUCCESS to DOA_REQUEST_RECEIVED
-
 
2301
 
-
 
2302
    Parameters:
-
 
2303
     - orderId
-
 
2304
    """
-
 
2305
    self.send_markOrderDoaRequestReceived(orderId)
-
 
2306
    return self.recv_markOrderDoaRequestReceived()
-
 
2307
 
-
 
2308
  def send_markOrderDoaRequestReceived(self, orderId):
-
 
2309
    self._oprot.writeMessageBegin('markOrderDoaRequestReceived', TMessageType.CALL, self._seqid)
-
 
2310
    args = markOrderDoaRequestReceived_args()
-
 
2311
    args.orderId = orderId
-
 
2312
    args.write(self._oprot)
-
 
2313
    self._oprot.writeMessageEnd()
-
 
2314
    self._oprot.trans.flush()
-
 
2315
 
-
 
2316
  def recv_markOrderDoaRequestReceived(self, ):
-
 
2317
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2318
    if mtype == TMessageType.EXCEPTION:
-
 
2319
      x = TApplicationException()
-
 
2320
      x.read(self._iprot)
-
 
2321
      self._iprot.readMessageEnd()
-
 
2322
      raise x
-
 
2323
    result = markOrderDoaRequestReceived_result()
-
 
2324
    result.read(self._iprot)
-
 
2325
    self._iprot.readMessageEnd()
-
 
2326
    if result.success is not None:
-
 
2327
      return result.success
-
 
2328
    if result.ex is not None:
-
 
2329
      raise result.ex
-
 
2330
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrderDoaRequestReceived failed: unknown result");
-
 
2331
 
-
 
2332
  def markOrderDoaRequestAuthorized(self, orderId, isAuthorized):
-
 
2333
    """
-
 
2334
    CRM person can authorize or deny the request reised by customer. If he authorizes order will change from DOA_REQUEST_RECEIVED
-
 
2335
    to DOA_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
-
 
2336
 
-
 
2337
    Parameters:
-
 
2338
     - orderId
-
 
2339
     - isAuthorized
-
 
2340
    """
-
 
2341
    self.send_markOrderDoaRequestAuthorized(orderId, isAuthorized)
-
 
2342
    return self.recv_markOrderDoaRequestAuthorized()
-
 
2343
 
-
 
2344
  def send_markOrderDoaRequestAuthorized(self, orderId, isAuthorized):
-
 
2345
    self._oprot.writeMessageBegin('markOrderDoaRequestAuthorized', TMessageType.CALL, self._seqid)
-
 
2346
    args = markOrderDoaRequestAuthorized_args()
-
 
2347
    args.orderId = orderId
-
 
2348
    args.isAuthorized = isAuthorized
-
 
2349
    args.write(self._oprot)
-
 
2350
    self._oprot.writeMessageEnd()
-
 
2351
    self._oprot.trans.flush()
-
 
2352
 
-
 
2353
  def recv_markOrderDoaRequestAuthorized(self, ):
-
 
2354
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2355
    if mtype == TMessageType.EXCEPTION:
-
 
2356
      x = TApplicationException()
-
 
2357
      x.read(self._iprot)
-
 
2358
      self._iprot.readMessageEnd()
-
 
2359
      raise x
-
 
2360
    result = markOrderDoaRequestAuthorized_result()
-
 
2361
    result.read(self._iprot)
-
 
2362
    self._iprot.readMessageEnd()
-
 
2363
    if result.success is not None:
-
 
2364
      return result.success
-
 
2365
    if result.ex is not None:
-
 
2366
      raise result.ex
-
 
2367
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrderDoaRequestAuthorized failed: unknown result");
-
 
2368
 
2278
  def requestPickupNumber(self, orderId):
2369
  def requestPickupNumber(self, orderId):
2279
    """
2370
    """
2280
    Sends out an email to the account manager of the original courier provider used to ship the order.
2371
    Sends out an email to the account manager of the original courier provider used to ship the order.
2281
    If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUEST_RAISED.
2372
    If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUEST_RAISED.
2282
    If the order status was DOA_PICKUP_REQUEST_RAISED, it is left unchanged.
2373
    If the order status was DOA_PICKUP_REQUEST_RAISED, it is left unchanged.
Line 3499... Line 3590...
3499
    self._processMap["markOrdersAsDelivered"] = Processor.process_markOrdersAsDelivered
3590
    self._processMap["markOrdersAsDelivered"] = Processor.process_markOrdersAsDelivered
3500
    self._processMap["markOrdersAsFailed"] = Processor.process_markOrdersAsFailed
3591
    self._processMap["markOrdersAsFailed"] = Processor.process_markOrdersAsFailed
3501
    self._processMap["updateNonDeliveryReason"] = Processor.process_updateNonDeliveryReason
3592
    self._processMap["updateNonDeliveryReason"] = Processor.process_updateNonDeliveryReason
3502
    self._processMap["getUndeliveredOrders"] = Processor.process_getUndeliveredOrders
3593
    self._processMap["getUndeliveredOrders"] = Processor.process_getUndeliveredOrders
3503
    self._processMap["toggleDOAFlag"] = Processor.process_toggleDOAFlag
3594
    self._processMap["toggleDOAFlag"] = Processor.process_toggleDOAFlag
-
 
3595
    self._processMap["markOrderDoaRequestReceived"] = Processor.process_markOrderDoaRequestReceived
-
 
3596
    self._processMap["markOrderDoaRequestAuthorized"] = Processor.process_markOrderDoaRequestAuthorized
3504
    self._processMap["requestPickupNumber"] = Processor.process_requestPickupNumber
3597
    self._processMap["requestPickupNumber"] = Processor.process_requestPickupNumber
3505
    self._processMap["authorizePickup"] = Processor.process_authorizePickup
3598
    self._processMap["authorizePickup"] = Processor.process_authorizePickup
3506
    self._processMap["markDoasAsPickedUp"] = Processor.process_markDoasAsPickedUp
3599
    self._processMap["markDoasAsPickedUp"] = Processor.process_markDoasAsPickedUp
3507
    self._processMap["receiveReturn"] = Processor.process_receiveReturn
3600
    self._processMap["receiveReturn"] = Processor.process_receiveReturn
3508
    self._processMap["validateDoa"] = Processor.process_validateDoa
3601
    self._processMap["validateDoa"] = Processor.process_validateDoa
Line 4097... Line 4190...
4097
    oprot.writeMessageBegin("toggleDOAFlag", TMessageType.REPLY, seqid)
4190
    oprot.writeMessageBegin("toggleDOAFlag", TMessageType.REPLY, seqid)
4098
    result.write(oprot)
4191
    result.write(oprot)
4099
    oprot.writeMessageEnd()
4192
    oprot.writeMessageEnd()
4100
    oprot.trans.flush()
4193
    oprot.trans.flush()
4101
 
4194
 
-
 
4195
  def process_markOrderDoaRequestReceived(self, seqid, iprot, oprot):
-
 
4196
    args = markOrderDoaRequestReceived_args()
-
 
4197
    args.read(iprot)
-
 
4198
    iprot.readMessageEnd()
-
 
4199
    result = markOrderDoaRequestReceived_result()
-
 
4200
    try:
-
 
4201
      result.success = self._handler.markOrderDoaRequestReceived(args.orderId)
-
 
4202
    except TransactionServiceException, ex:
-
 
4203
      result.ex = ex
-
 
4204
    oprot.writeMessageBegin("markOrderDoaRequestReceived", TMessageType.REPLY, seqid)
-
 
4205
    result.write(oprot)
-
 
4206
    oprot.writeMessageEnd()
-
 
4207
    oprot.trans.flush()
-
 
4208
 
-
 
4209
  def process_markOrderDoaRequestAuthorized(self, seqid, iprot, oprot):
-
 
4210
    args = markOrderDoaRequestAuthorized_args()
-
 
4211
    args.read(iprot)
-
 
4212
    iprot.readMessageEnd()
-
 
4213
    result = markOrderDoaRequestAuthorized_result()
-
 
4214
    try:
-
 
4215
      result.success = self._handler.markOrderDoaRequestAuthorized(args.orderId, args.isAuthorized)
-
 
4216
    except TransactionServiceException, ex:
-
 
4217
      result.ex = ex
-
 
4218
    oprot.writeMessageBegin("markOrderDoaRequestAuthorized", TMessageType.REPLY, seqid)
-
 
4219
    result.write(oprot)
-
 
4220
    oprot.writeMessageEnd()
-
 
4221
    oprot.trans.flush()
-
 
4222
 
4102
  def process_requestPickupNumber(self, seqid, iprot, oprot):
4223
  def process_requestPickupNumber(self, seqid, iprot, oprot):
4103
    args = requestPickupNumber_args()
4224
    args = requestPickupNumber_args()
4104
    args.read(iprot)
4225
    args.read(iprot)
4105
    iprot.readMessageEnd()
4226
    iprot.readMessageEnd()
4106
    result = requestPickupNumber_result()
4227
    result = requestPickupNumber_result()
Line 10503... Line 10624...
10503
    if self.success is not None:
10624
    if self.success is not None:
10504
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10625
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10505
      oprot.writeBool(self.success)
10626
      oprot.writeBool(self.success)
10506
      oprot.writeFieldEnd()
10627
      oprot.writeFieldEnd()
10507
    if self.ex is not None:
10628
    if self.ex is not None:
-
 
10629
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
10630
      self.ex.write(oprot)
-
 
10631
      oprot.writeFieldEnd()
-
 
10632
    oprot.writeFieldStop()
-
 
10633
    oprot.writeStructEnd()
-
 
10634
 
-
 
10635
  def validate(self):
-
 
10636
    return
-
 
10637
 
-
 
10638
 
-
 
10639
  def __repr__(self):
-
 
10640
    L = ['%s=%r' % (key, value)
-
 
10641
      for key, value in self.__dict__.iteritems()]
-
 
10642
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
10643
 
-
 
10644
  def __eq__(self, other):
-
 
10645
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
10646
 
-
 
10647
  def __ne__(self, other):
-
 
10648
    return not (self == other)
-
 
10649
 
-
 
10650
class markOrderDoaRequestReceived_args:
-
 
10651
  """
-
 
10652
  Attributes:
-
 
10653
   - orderId
-
 
10654
  """
-
 
10655
 
-
 
10656
  thrift_spec = (
-
 
10657
    None, # 0
-
 
10658
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
10659
  )
-
 
10660
 
-
 
10661
  def __init__(self, orderId=None,):
-
 
10662
    self.orderId = orderId
-
 
10663
 
-
 
10664
  def read(self, iprot):
-
 
10665
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
10666
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
10667
      return
-
 
10668
    iprot.readStructBegin()
-
 
10669
    while True:
-
 
10670
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
10671
      if ftype == TType.STOP:
-
 
10672
        break
-
 
10673
      if fid == 1:
-
 
10674
        if ftype == TType.I64:
-
 
10675
          self.orderId = iprot.readI64();
-
 
10676
        else:
-
 
10677
          iprot.skip(ftype)
-
 
10678
      else:
-
 
10679
        iprot.skip(ftype)
-
 
10680
      iprot.readFieldEnd()
-
 
10681
    iprot.readStructEnd()
-
 
10682
 
-
 
10683
  def write(self, oprot):
-
 
10684
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
10685
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
10686
      return
-
 
10687
    oprot.writeStructBegin('markOrderDoaRequestReceived_args')
-
 
10688
    if self.orderId is not None:
-
 
10689
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
10690
      oprot.writeI64(self.orderId)
-
 
10691
      oprot.writeFieldEnd()
-
 
10692
    oprot.writeFieldStop()
-
 
10693
    oprot.writeStructEnd()
-
 
10694
 
-
 
10695
  def validate(self):
-
 
10696
    return
-
 
10697
 
-
 
10698
 
-
 
10699
  def __repr__(self):
-
 
10700
    L = ['%s=%r' % (key, value)
-
 
10701
      for key, value in self.__dict__.iteritems()]
-
 
10702
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
10703
 
-
 
10704
  def __eq__(self, other):
-
 
10705
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
10706
 
-
 
10707
  def __ne__(self, other):
-
 
10708
    return not (self == other)
-
 
10709
 
-
 
10710
class markOrderDoaRequestReceived_result:
-
 
10711
  """
-
 
10712
  Attributes:
-
 
10713
   - success
-
 
10714
   - ex
-
 
10715
  """
-
 
10716
 
-
 
10717
  thrift_spec = (
-
 
10718
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
10719
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
10720
  )
-
 
10721
 
-
 
10722
  def __init__(self, success=None, ex=None,):
-
 
10723
    self.success = success
-
 
10724
    self.ex = ex
-
 
10725
 
-
 
10726
  def read(self, iprot):
-
 
10727
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
10728
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
10729
      return
-
 
10730
    iprot.readStructBegin()
-
 
10731
    while True:
-
 
10732
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
10733
      if ftype == TType.STOP:
-
 
10734
        break
-
 
10735
      if fid == 0:
-
 
10736
        if ftype == TType.BOOL:
-
 
10737
          self.success = iprot.readBool();
-
 
10738
        else:
-
 
10739
          iprot.skip(ftype)
-
 
10740
      elif fid == 1:
-
 
10741
        if ftype == TType.STRUCT:
-
 
10742
          self.ex = TransactionServiceException()
-
 
10743
          self.ex.read(iprot)
-
 
10744
        else:
-
 
10745
          iprot.skip(ftype)
-
 
10746
      else:
-
 
10747
        iprot.skip(ftype)
-
 
10748
      iprot.readFieldEnd()
-
 
10749
    iprot.readStructEnd()
-
 
10750
 
-
 
10751
  def write(self, oprot):
-
 
10752
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
10753
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
10754
      return
-
 
10755
    oprot.writeStructBegin('markOrderDoaRequestReceived_result')
-
 
10756
    if self.success is not None:
-
 
10757
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
10758
      oprot.writeBool(self.success)
-
 
10759
      oprot.writeFieldEnd()
-
 
10760
    if self.ex is not None:
-
 
10761
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
10762
      self.ex.write(oprot)
-
 
10763
      oprot.writeFieldEnd()
-
 
10764
    oprot.writeFieldStop()
-
 
10765
    oprot.writeStructEnd()
-
 
10766
 
-
 
10767
  def validate(self):
-
 
10768
    return
-
 
10769
 
-
 
10770
 
-
 
10771
  def __repr__(self):
-
 
10772
    L = ['%s=%r' % (key, value)
-
 
10773
      for key, value in self.__dict__.iteritems()]
-
 
10774
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
10775
 
-
 
10776
  def __eq__(self, other):
-
 
10777
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
10778
 
-
 
10779
  def __ne__(self, other):
-
 
10780
    return not (self == other)
-
 
10781
 
-
 
10782
class markOrderDoaRequestAuthorized_args:
-
 
10783
  """
-
 
10784
  Attributes:
-
 
10785
   - orderId
-
 
10786
   - isAuthorized
-
 
10787
  """
-
 
10788
 
-
 
10789
  thrift_spec = (
-
 
10790
    None, # 0
-
 
10791
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
10792
    (2, TType.BOOL, 'isAuthorized', None, None, ), # 2
-
 
10793
  )
-
 
10794
 
-
 
10795
  def __init__(self, orderId=None, isAuthorized=None,):
-
 
10796
    self.orderId = orderId
-
 
10797
    self.isAuthorized = isAuthorized
-
 
10798
 
-
 
10799
  def read(self, iprot):
-
 
10800
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
10801
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
10802
      return
-
 
10803
    iprot.readStructBegin()
-
 
10804
    while True:
-
 
10805
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
10806
      if ftype == TType.STOP:
-
 
10807
        break
-
 
10808
      if fid == 1:
-
 
10809
        if ftype == TType.I64:
-
 
10810
          self.orderId = iprot.readI64();
-
 
10811
        else:
-
 
10812
          iprot.skip(ftype)
-
 
10813
      elif fid == 2:
-
 
10814
        if ftype == TType.BOOL:
-
 
10815
          self.isAuthorized = iprot.readBool();
-
 
10816
        else:
-
 
10817
          iprot.skip(ftype)
-
 
10818
      else:
-
 
10819
        iprot.skip(ftype)
-
 
10820
      iprot.readFieldEnd()
-
 
10821
    iprot.readStructEnd()
-
 
10822
 
-
 
10823
  def write(self, oprot):
-
 
10824
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
10825
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
10826
      return
-
 
10827
    oprot.writeStructBegin('markOrderDoaRequestAuthorized_args')
-
 
10828
    if self.orderId is not None:
-
 
10829
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
10830
      oprot.writeI64(self.orderId)
-
 
10831
      oprot.writeFieldEnd()
-
 
10832
    if self.isAuthorized is not None:
-
 
10833
      oprot.writeFieldBegin('isAuthorized', TType.BOOL, 2)
-
 
10834
      oprot.writeBool(self.isAuthorized)
-
 
10835
      oprot.writeFieldEnd()
-
 
10836
    oprot.writeFieldStop()
-
 
10837
    oprot.writeStructEnd()
-
 
10838
 
-
 
10839
  def validate(self):
-
 
10840
    return
-
 
10841
 
-
 
10842
 
-
 
10843
  def __repr__(self):
-
 
10844
    L = ['%s=%r' % (key, value)
-
 
10845
      for key, value in self.__dict__.iteritems()]
-
 
10846
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
10847
 
-
 
10848
  def __eq__(self, other):
-
 
10849
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
10850
 
-
 
10851
  def __ne__(self, other):
-
 
10852
    return not (self == other)
-
 
10853
 
-
 
10854
class markOrderDoaRequestAuthorized_result:
-
 
10855
  """
-
 
10856
  Attributes:
-
 
10857
   - success
-
 
10858
   - ex
-
 
10859
  """
-
 
10860
 
-
 
10861
  thrift_spec = (
-
 
10862
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
10863
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
10864
  )
-
 
10865
 
-
 
10866
  def __init__(self, success=None, ex=None,):
-
 
10867
    self.success = success
-
 
10868
    self.ex = ex
-
 
10869
 
-
 
10870
  def read(self, iprot):
-
 
10871
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
10872
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
10873
      return
-
 
10874
    iprot.readStructBegin()
-
 
10875
    while True:
-
 
10876
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
10877
      if ftype == TType.STOP:
-
 
10878
        break
-
 
10879
      if fid == 0:
-
 
10880
        if ftype == TType.BOOL:
-
 
10881
          self.success = iprot.readBool();
-
 
10882
        else:
-
 
10883
          iprot.skip(ftype)
-
 
10884
      elif fid == 1:
-
 
10885
        if ftype == TType.STRUCT:
-
 
10886
          self.ex = TransactionServiceException()
-
 
10887
          self.ex.read(iprot)
-
 
10888
        else:
-
 
10889
          iprot.skip(ftype)
-
 
10890
      else:
-
 
10891
        iprot.skip(ftype)
-
 
10892
      iprot.readFieldEnd()
-
 
10893
    iprot.readStructEnd()
-
 
10894
 
-
 
10895
  def write(self, oprot):
-
 
10896
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
10897
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
10898
      return
-
 
10899
    oprot.writeStructBegin('markOrderDoaRequestAuthorized_result')
-
 
10900
    if self.success is not None:
-
 
10901
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
10902
      oprot.writeBool(self.success)
-
 
10903
      oprot.writeFieldEnd()
-
 
10904
    if self.ex is not None:
10508
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
10905
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
10509
      self.ex.write(oprot)
10906
      self.ex.write(oprot)
10510
      oprot.writeFieldEnd()
10907
      oprot.writeFieldEnd()
10511
    oprot.writeFieldStop()
10908
    oprot.writeFieldStop()
10512
    oprot.writeStructEnd()
10909
    oprot.writeStructEnd()