Subversion Repositories SmartDukaan

Rev

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

Rev 7607 Rev 7645
Line 558... Line 558...
558
    Parameters:
558
    Parameters:
559
     - orderId
559
     - orderId
560
    """
560
    """
561
    pass
561
    pass
562
 
562
 
563
  def markOrderDoaRequestAuthorized(self, orderId, isAuthorized):
563
  def markOrderDoaRequestAuthorized(self, orderId, isAuthorized, fromStore, isReship):
564
    """
564
    """
565
    CRM person can authorize or deny the request reised by customer. If he authorizes order will change from DOA_REQUEST_RECEIVED
565
    CRM person can authorize or deny the request reised by customer. If he authorizes order will change from DOA_REQUEST_RECEIVED
566
    to DOA_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
566
    to DOA_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
567
 
567
 
568
    Parameters:
568
    Parameters:
569
     - orderId
569
     - orderId
570
     - isAuthorized
570
     - isAuthorized
-
 
571
     - fromStore
-
 
572
     - isReship
571
    """
573
    """
572
    pass
574
    pass
573
 
575
 
574
  def markOrderReturnRequestReceived(self, orderId):
576
  def markOrderReturnRequestReceived(self, orderId):
575
    """
577
    """
Line 578... Line 580...
578
    Parameters:
580
    Parameters:
579
     - orderId
581
     - orderId
580
    """
582
    """
581
    pass
583
    pass
582
 
584
 
583
  def markOrderReturnRequestAuthorized(self, orderId, isAuthorized):
585
  def markOrderReturnRequestAuthorized(self, orderId, isAuthorized, fromStore, isReship):
584
    """
586
    """
585
    CRM person can authorize or deny the request reised by customer. If he authorizes order will change from RET_REQUEST_RECEIVED
587
    CRM person can authorize or deny the request reised by customer. If he authorizes order will change from RET_REQUEST_RECEIVED
586
    to RET_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
588
    to RET_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
587
 
589
 
588
    Parameters:
590
    Parameters:
589
     - orderId
591
     - orderId
590
     - isAuthorized
592
     - isAuthorized
-
 
593
     - fromStore
-
 
594
     - isReship
591
    """
595
    """
592
    pass
596
    pass
593
 
597
 
594
  def requestPickupNumber(self, orderId, providerId):
598
  def requestPickupNumber(self, orderId, providerId):
595
    """
599
    """
Line 1772... Line 1776...
1772
    Parameters:
1776
    Parameters:
1773
     - mobileNumber
1777
     - mobileNumber
1774
    """
1778
    """
1775
    pass
1779
    pass
1776
 
1780
 
1777
  def getOrdersByAmazonOrderItemCode(self, amazonId):
1781
  def getOrdersByAmazonOrderCode(self, amazonId):
1778
    """
1782
    """
1779
    Parameters:
1783
    Parameters:
1780
     - amazonId
1784
     - amazonId
1781
    """
1785
    """
1782
    pass
1786
    pass
Line 3711... Line 3715...
3711
      return result.success
3715
      return result.success
3712
    if result.ex is not None:
3716
    if result.ex is not None:
3713
      raise result.ex
3717
      raise result.ex
3714
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrderDoaRequestReceived failed: unknown result");
3718
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrderDoaRequestReceived failed: unknown result");
3715
 
3719
 
3716
  def markOrderDoaRequestAuthorized(self, orderId, isAuthorized):
3720
  def markOrderDoaRequestAuthorized(self, orderId, isAuthorized, fromStore, isReship):
3717
    """
3721
    """
3718
    CRM person can authorize or deny the request reised by customer. If he authorizes order will change from DOA_REQUEST_RECEIVED
3722
    CRM person can authorize or deny the request reised by customer. If he authorizes order will change from DOA_REQUEST_RECEIVED
3719
    to DOA_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
3723
    to DOA_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
3720
 
3724
 
3721
    Parameters:
3725
    Parameters:
3722
     - orderId
3726
     - orderId
3723
     - isAuthorized
3727
     - isAuthorized
-
 
3728
     - fromStore
-
 
3729
     - isReship
3724
    """
3730
    """
3725
    self.send_markOrderDoaRequestAuthorized(orderId, isAuthorized)
3731
    self.send_markOrderDoaRequestAuthorized(orderId, isAuthorized, fromStore, isReship)
3726
    return self.recv_markOrderDoaRequestAuthorized()
3732
    return self.recv_markOrderDoaRequestAuthorized()
3727
 
3733
 
3728
  def send_markOrderDoaRequestAuthorized(self, orderId, isAuthorized):
3734
  def send_markOrderDoaRequestAuthorized(self, orderId, isAuthorized, fromStore, isReship):
3729
    self._oprot.writeMessageBegin('markOrderDoaRequestAuthorized', TMessageType.CALL, self._seqid)
3735
    self._oprot.writeMessageBegin('markOrderDoaRequestAuthorized', TMessageType.CALL, self._seqid)
3730
    args = markOrderDoaRequestAuthorized_args()
3736
    args = markOrderDoaRequestAuthorized_args()
3731
    args.orderId = orderId
3737
    args.orderId = orderId
3732
    args.isAuthorized = isAuthorized
3738
    args.isAuthorized = isAuthorized
-
 
3739
    args.fromStore = fromStore
-
 
3740
    args.isReship = isReship
3733
    args.write(self._oprot)
3741
    args.write(self._oprot)
3734
    self._oprot.writeMessageEnd()
3742
    self._oprot.writeMessageEnd()
3735
    self._oprot.trans.flush()
3743
    self._oprot.trans.flush()
3736
 
3744
 
3737
  def recv_markOrderDoaRequestAuthorized(self, ):
3745
  def recv_markOrderDoaRequestAuthorized(self, ):
Line 3782... Line 3790...
3782
      return result.success
3790
      return result.success
3783
    if result.ex is not None:
3791
    if result.ex is not None:
3784
      raise result.ex
3792
      raise result.ex
3785
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrderReturnRequestReceived failed: unknown result");
3793
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrderReturnRequestReceived failed: unknown result");
3786
 
3794
 
3787
  def markOrderReturnRequestAuthorized(self, orderId, isAuthorized):
3795
  def markOrderReturnRequestAuthorized(self, orderId, isAuthorized, fromStore, isReship):
3788
    """
3796
    """
3789
    CRM person can authorize or deny the request reised by customer. If he authorizes order will change from RET_REQUEST_RECEIVED
3797
    CRM person can authorize or deny the request reised by customer. If he authorizes order will change from RET_REQUEST_RECEIVED
3790
    to RET_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
3798
    to RET_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
3791
 
3799
 
3792
    Parameters:
3800
    Parameters:
3793
     - orderId
3801
     - orderId
3794
     - isAuthorized
3802
     - isAuthorized
-
 
3803
     - fromStore
-
 
3804
     - isReship
3795
    """
3805
    """
3796
    self.send_markOrderReturnRequestAuthorized(orderId, isAuthorized)
3806
    self.send_markOrderReturnRequestAuthorized(orderId, isAuthorized, fromStore, isReship)
3797
    return self.recv_markOrderReturnRequestAuthorized()
3807
    return self.recv_markOrderReturnRequestAuthorized()
3798
 
3808
 
3799
  def send_markOrderReturnRequestAuthorized(self, orderId, isAuthorized):
3809
  def send_markOrderReturnRequestAuthorized(self, orderId, isAuthorized, fromStore, isReship):
3800
    self._oprot.writeMessageBegin('markOrderReturnRequestAuthorized', TMessageType.CALL, self._seqid)
3810
    self._oprot.writeMessageBegin('markOrderReturnRequestAuthorized', TMessageType.CALL, self._seqid)
3801
    args = markOrderReturnRequestAuthorized_args()
3811
    args = markOrderReturnRequestAuthorized_args()
3802
    args.orderId = orderId
3812
    args.orderId = orderId
3803
    args.isAuthorized = isAuthorized
3813
    args.isAuthorized = isAuthorized
-
 
3814
    args.fromStore = fromStore
-
 
3815
    args.isReship = isReship
3804
    args.write(self._oprot)
3816
    args.write(self._oprot)
3805
    self._oprot.writeMessageEnd()
3817
    self._oprot.writeMessageEnd()
3806
    self._oprot.trans.flush()
3818
    self._oprot.trans.flush()
3807
 
3819
 
3808
  def recv_markOrderReturnRequestAuthorized(self, ):
3820
  def recv_markOrderReturnRequestAuthorized(self, ):
Line 8239... Line 8251...
8239
    self._iprot.readMessageEnd()
8251
    self._iprot.readMessageEnd()
8240
    if result.success is not None:
8252
    if result.success is not None:
8241
      return result.success
8253
      return result.success
8242
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersByMobileNumber failed: unknown result");
8254
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersByMobileNumber failed: unknown result");
8243
 
8255
 
8244
  def getOrdersByAmazonOrderItemCode(self, amazonId):
8256
  def getOrdersByAmazonOrderCode(self, amazonId):
8245
    """
8257
    """
8246
    Parameters:
8258
    Parameters:
8247
     - amazonId
8259
     - amazonId
8248
    """
8260
    """
8249
    self.send_getOrdersByAmazonOrderItemCode(amazonId)
8261
    self.send_getOrdersByAmazonOrderCode(amazonId)
8250
    return self.recv_getOrdersByAmazonOrderItemCode()
8262
    return self.recv_getOrdersByAmazonOrderCode()
8251
 
8263
 
8252
  def send_getOrdersByAmazonOrderItemCode(self, amazonId):
8264
  def send_getOrdersByAmazonOrderCode(self, amazonId):
8253
    self._oprot.writeMessageBegin('getOrdersByAmazonOrderItemCode', TMessageType.CALL, self._seqid)
8265
    self._oprot.writeMessageBegin('getOrdersByAmazonOrderCode', TMessageType.CALL, self._seqid)
8254
    args = getOrdersByAmazonOrderItemCode_args()
8266
    args = getOrdersByAmazonOrderCode_args()
8255
    args.amazonId = amazonId
8267
    args.amazonId = amazonId
8256
    args.write(self._oprot)
8268
    args.write(self._oprot)
8257
    self._oprot.writeMessageEnd()
8269
    self._oprot.writeMessageEnd()
8258
    self._oprot.trans.flush()
8270
    self._oprot.trans.flush()
8259
 
8271
 
8260
  def recv_getOrdersByAmazonOrderItemCode(self, ):
8272
  def recv_getOrdersByAmazonOrderCode(self, ):
8261
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
8273
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
8262
    if mtype == TMessageType.EXCEPTION:
8274
    if mtype == TMessageType.EXCEPTION:
8263
      x = TApplicationException()
8275
      x = TApplicationException()
8264
      x.read(self._iprot)
8276
      x.read(self._iprot)
8265
      self._iprot.readMessageEnd()
8277
      self._iprot.readMessageEnd()
8266
      raise x
8278
      raise x
8267
    result = getOrdersByAmazonOrderItemCode_result()
8279
    result = getOrdersByAmazonOrderCode_result()
8268
    result.read(self._iprot)
8280
    result.read(self._iprot)
8269
    self._iprot.readMessageEnd()
8281
    self._iprot.readMessageEnd()
8270
    if result.success is not None:
8282
    if result.success is not None:
8271
      return result.success
8283
      return result.success
8272
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersByAmazonOrderItemCode failed: unknown result");
8284
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersByAmazonOrderCode failed: unknown result");
8273
 
8285
 
8274
 
8286
 
8275
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
8287
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
8276
  def __init__(self, handler):
8288
  def __init__(self, handler):
8277
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
8289
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
Line 8464... Line 8476...
8464
    self._processMap["getAmazonOrdersToAcknowledge"] = Processor.process_getAmazonOrdersToAcknowledge
8476
    self._processMap["getAmazonOrdersToAcknowledge"] = Processor.process_getAmazonOrdersToAcknowledge
8465
    self._processMap["changeAmazonOrderStatus"] = Processor.process_changeAmazonOrderStatus
8477
    self._processMap["changeAmazonOrderStatus"] = Processor.process_changeAmazonOrderStatus
8466
    self._processMap["updateTimestampForAmazonOrder"] = Processor.process_updateTimestampForAmazonOrder
8478
    self._processMap["updateTimestampForAmazonOrder"] = Processor.process_updateTimestampForAmazonOrder
8467
    self._processMap["updateSourceDetailTimestamp"] = Processor.process_updateSourceDetailTimestamp
8479
    self._processMap["updateSourceDetailTimestamp"] = Processor.process_updateSourceDetailTimestamp
8468
    self._processMap["getOrdersByMobileNumber"] = Processor.process_getOrdersByMobileNumber
8480
    self._processMap["getOrdersByMobileNumber"] = Processor.process_getOrdersByMobileNumber
8469
    self._processMap["getOrdersByAmazonOrderItemCode"] = Processor.process_getOrdersByAmazonOrderItemCode
8481
    self._processMap["getOrdersByAmazonOrderCode"] = Processor.process_getOrdersByAmazonOrderCode
8470
 
8482
 
8471
  def process(self, iprot, oprot):
8483
  def process(self, iprot, oprot):
8472
    (name, type, seqid) = iprot.readMessageBegin()
8484
    (name, type, seqid) = iprot.readMessageBegin()
8473
    if name not in self._processMap:
8485
    if name not in self._processMap:
8474
      iprot.skip(TType.STRUCT)
8486
      iprot.skip(TType.STRUCT)
Line 9212... Line 9224...
9212
    args = markOrderDoaRequestAuthorized_args()
9224
    args = markOrderDoaRequestAuthorized_args()
9213
    args.read(iprot)
9225
    args.read(iprot)
9214
    iprot.readMessageEnd()
9226
    iprot.readMessageEnd()
9215
    result = markOrderDoaRequestAuthorized_result()
9227
    result = markOrderDoaRequestAuthorized_result()
9216
    try:
9228
    try:
9217
      result.success = self._handler.markOrderDoaRequestAuthorized(args.orderId, args.isAuthorized)
9229
      result.success = self._handler.markOrderDoaRequestAuthorized(args.orderId, args.isAuthorized, args.fromStore, args.isReship)
9218
    except TransactionServiceException, ex:
9230
    except TransactionServiceException, ex:
9219
      result.ex = ex
9231
      result.ex = ex
9220
    oprot.writeMessageBegin("markOrderDoaRequestAuthorized", TMessageType.REPLY, seqid)
9232
    oprot.writeMessageBegin("markOrderDoaRequestAuthorized", TMessageType.REPLY, seqid)
9221
    result.write(oprot)
9233
    result.write(oprot)
9222
    oprot.writeMessageEnd()
9234
    oprot.writeMessageEnd()
Line 9240... Line 9252...
9240
    args = markOrderReturnRequestAuthorized_args()
9252
    args = markOrderReturnRequestAuthorized_args()
9241
    args.read(iprot)
9253
    args.read(iprot)
9242
    iprot.readMessageEnd()
9254
    iprot.readMessageEnd()
9243
    result = markOrderReturnRequestAuthorized_result()
9255
    result = markOrderReturnRequestAuthorized_result()
9244
    try:
9256
    try:
9245
      result.success = self._handler.markOrderReturnRequestAuthorized(args.orderId, args.isAuthorized)
9257
      result.success = self._handler.markOrderReturnRequestAuthorized(args.orderId, args.isAuthorized, args.fromStore, args.isReship)
9246
    except TransactionServiceException, ex:
9258
    except TransactionServiceException, ex:
9247
      result.ex = ex
9259
      result.ex = ex
9248
    oprot.writeMessageBegin("markOrderReturnRequestAuthorized", TMessageType.REPLY, seqid)
9260
    oprot.writeMessageBegin("markOrderReturnRequestAuthorized", TMessageType.REPLY, seqid)
9249
    result.write(oprot)
9261
    result.write(oprot)
9250
    oprot.writeMessageEnd()
9262
    oprot.writeMessageEnd()
Line 10879... Line 10891...
10879
    oprot.writeMessageBegin("getOrdersByMobileNumber", TMessageType.REPLY, seqid)
10891
    oprot.writeMessageBegin("getOrdersByMobileNumber", TMessageType.REPLY, seqid)
10880
    result.write(oprot)
10892
    result.write(oprot)
10881
    oprot.writeMessageEnd()
10893
    oprot.writeMessageEnd()
10882
    oprot.trans.flush()
10894
    oprot.trans.flush()
10883
 
10895
 
10884
  def process_getOrdersByAmazonOrderItemCode(self, seqid, iprot, oprot):
10896
  def process_getOrdersByAmazonOrderCode(self, seqid, iprot, oprot):
10885
    args = getOrdersByAmazonOrderItemCode_args()
10897
    args = getOrdersByAmazonOrderCode_args()
10886
    args.read(iprot)
10898
    args.read(iprot)
10887
    iprot.readMessageEnd()
10899
    iprot.readMessageEnd()
10888
    result = getOrdersByAmazonOrderItemCode_result()
10900
    result = getOrdersByAmazonOrderCode_result()
10889
    result.success = self._handler.getOrdersByAmazonOrderItemCode(args.amazonId)
10901
    result.success = self._handler.getOrdersByAmazonOrderCode(args.amazonId)
10890
    oprot.writeMessageBegin("getOrdersByAmazonOrderItemCode", TMessageType.REPLY, seqid)
10902
    oprot.writeMessageBegin("getOrdersByAmazonOrderCode", TMessageType.REPLY, seqid)
10891
    result.write(oprot)
10903
    result.write(oprot)
10892
    oprot.writeMessageEnd()
10904
    oprot.writeMessageEnd()
10893
    oprot.trans.flush()
10905
    oprot.trans.flush()
10894
 
10906
 
10895
 
10907
 
Line 18912... Line 18924...
18912
class markOrderDoaRequestAuthorized_args:
18924
class markOrderDoaRequestAuthorized_args:
18913
  """
18925
  """
18914
  Attributes:
18926
  Attributes:
18915
   - orderId
18927
   - orderId
18916
   - isAuthorized
18928
   - isAuthorized
-
 
18929
   - fromStore
-
 
18930
   - isReship
18917
  """
18931
  """
18918
 
18932
 
18919
  thrift_spec = (
18933
  thrift_spec = (
18920
    None, # 0
18934
    None, # 0
18921
    (1, TType.I64, 'orderId', None, None, ), # 1
18935
    (1, TType.I64, 'orderId', None, None, ), # 1
18922
    (2, TType.BOOL, 'isAuthorized', None, None, ), # 2
18936
    (2, TType.BOOL, 'isAuthorized', None, None, ), # 2
-
 
18937
    (3, TType.BOOL, 'fromStore', None, None, ), # 3
-
 
18938
    (4, TType.BOOL, 'isReship', None, None, ), # 4
18923
  )
18939
  )
18924
 
18940
 
18925
  def __init__(self, orderId=None, isAuthorized=None,):
18941
  def __init__(self, orderId=None, isAuthorized=None, fromStore=None, isReship=None,):
18926
    self.orderId = orderId
18942
    self.orderId = orderId
18927
    self.isAuthorized = isAuthorized
18943
    self.isAuthorized = isAuthorized
-
 
18944
    self.fromStore = fromStore
-
 
18945
    self.isReship = isReship
18928
 
18946
 
18929
  def read(self, iprot):
18947
  def read(self, iprot):
18930
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18948
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18931
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18949
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18932
      return
18950
      return
Line 18943... Line 18961...
18943
      elif fid == 2:
18961
      elif fid == 2:
18944
        if ftype == TType.BOOL:
18962
        if ftype == TType.BOOL:
18945
          self.isAuthorized = iprot.readBool();
18963
          self.isAuthorized = iprot.readBool();
18946
        else:
18964
        else:
18947
          iprot.skip(ftype)
18965
          iprot.skip(ftype)
-
 
18966
      elif fid == 3:
-
 
18967
        if ftype == TType.BOOL:
-
 
18968
          self.fromStore = iprot.readBool();
-
 
18969
        else:
-
 
18970
          iprot.skip(ftype)
-
 
18971
      elif fid == 4:
-
 
18972
        if ftype == TType.BOOL:
-
 
18973
          self.isReship = iprot.readBool();
-
 
18974
        else:
-
 
18975
          iprot.skip(ftype)
18948
      else:
18976
      else:
18949
        iprot.skip(ftype)
18977
        iprot.skip(ftype)
18950
      iprot.readFieldEnd()
18978
      iprot.readFieldEnd()
18951
    iprot.readStructEnd()
18979
    iprot.readStructEnd()
18952
 
18980
 
Line 18961... Line 18989...
18961
      oprot.writeFieldEnd()
18989
      oprot.writeFieldEnd()
18962
    if self.isAuthorized is not None:
18990
    if self.isAuthorized is not None:
18963
      oprot.writeFieldBegin('isAuthorized', TType.BOOL, 2)
18991
      oprot.writeFieldBegin('isAuthorized', TType.BOOL, 2)
18964
      oprot.writeBool(self.isAuthorized)
18992
      oprot.writeBool(self.isAuthorized)
18965
      oprot.writeFieldEnd()
18993
      oprot.writeFieldEnd()
-
 
18994
    if self.fromStore is not None:
-
 
18995
      oprot.writeFieldBegin('fromStore', TType.BOOL, 3)
-
 
18996
      oprot.writeBool(self.fromStore)
-
 
18997
      oprot.writeFieldEnd()
-
 
18998
    if self.isReship is not None:
-
 
18999
      oprot.writeFieldBegin('isReship', TType.BOOL, 4)
-
 
19000
      oprot.writeBool(self.isReship)
-
 
19001
      oprot.writeFieldEnd()
18966
    oprot.writeFieldStop()
19002
    oprot.writeFieldStop()
18967
    oprot.writeStructEnd()
19003
    oprot.writeStructEnd()
18968
 
19004
 
18969
  def validate(self):
19005
  def validate(self):
18970
    return
19006
    return
Line 19188... Line 19224...
19188
class markOrderReturnRequestAuthorized_args:
19224
class markOrderReturnRequestAuthorized_args:
19189
  """
19225
  """
19190
  Attributes:
19226
  Attributes:
19191
   - orderId
19227
   - orderId
19192
   - isAuthorized
19228
   - isAuthorized
-
 
19229
   - fromStore
-
 
19230
   - isReship
19193
  """
19231
  """
19194
 
19232
 
19195
  thrift_spec = (
19233
  thrift_spec = (
19196
    None, # 0
19234
    None, # 0
19197
    (1, TType.I64, 'orderId', None, None, ), # 1
19235
    (1, TType.I64, 'orderId', None, None, ), # 1
19198
    (2, TType.BOOL, 'isAuthorized', None, None, ), # 2
19236
    (2, TType.BOOL, 'isAuthorized', None, None, ), # 2
-
 
19237
    (3, TType.BOOL, 'fromStore', None, None, ), # 3
-
 
19238
    (4, TType.BOOL, 'isReship', None, None, ), # 4
19199
  )
19239
  )
19200
 
19240
 
19201
  def __init__(self, orderId=None, isAuthorized=None,):
19241
  def __init__(self, orderId=None, isAuthorized=None, fromStore=None, isReship=None,):
19202
    self.orderId = orderId
19242
    self.orderId = orderId
19203
    self.isAuthorized = isAuthorized
19243
    self.isAuthorized = isAuthorized
-
 
19244
    self.fromStore = fromStore
-
 
19245
    self.isReship = isReship
19204
 
19246
 
19205
  def read(self, iprot):
19247
  def read(self, iprot):
19206
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19248
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19207
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19249
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19208
      return
19250
      return
Line 19219... Line 19261...
19219
      elif fid == 2:
19261
      elif fid == 2:
19220
        if ftype == TType.BOOL:
19262
        if ftype == TType.BOOL:
19221
          self.isAuthorized = iprot.readBool();
19263
          self.isAuthorized = iprot.readBool();
19222
        else:
19264
        else:
19223
          iprot.skip(ftype)
19265
          iprot.skip(ftype)
-
 
19266
      elif fid == 3:
-
 
19267
        if ftype == TType.BOOL:
-
 
19268
          self.fromStore = iprot.readBool();
-
 
19269
        else:
-
 
19270
          iprot.skip(ftype)
-
 
19271
      elif fid == 4:
-
 
19272
        if ftype == TType.BOOL:
-
 
19273
          self.isReship = iprot.readBool();
-
 
19274
        else:
-
 
19275
          iprot.skip(ftype)
19224
      else:
19276
      else:
19225
        iprot.skip(ftype)
19277
        iprot.skip(ftype)
19226
      iprot.readFieldEnd()
19278
      iprot.readFieldEnd()
19227
    iprot.readStructEnd()
19279
    iprot.readStructEnd()
19228
 
19280
 
Line 19237... Line 19289...
19237
      oprot.writeFieldEnd()
19289
      oprot.writeFieldEnd()
19238
    if self.isAuthorized is not None:
19290
    if self.isAuthorized is not None:
19239
      oprot.writeFieldBegin('isAuthorized', TType.BOOL, 2)
19291
      oprot.writeFieldBegin('isAuthorized', TType.BOOL, 2)
19240
      oprot.writeBool(self.isAuthorized)
19292
      oprot.writeBool(self.isAuthorized)
19241
      oprot.writeFieldEnd()
19293
      oprot.writeFieldEnd()
-
 
19294
    if self.fromStore is not None:
-
 
19295
      oprot.writeFieldBegin('fromStore', TType.BOOL, 3)
-
 
19296
      oprot.writeBool(self.fromStore)
-
 
19297
      oprot.writeFieldEnd()
-
 
19298
    if self.isReship is not None:
-
 
19299
      oprot.writeFieldBegin('isReship', TType.BOOL, 4)
-
 
19300
      oprot.writeBool(self.isReship)
-
 
19301
      oprot.writeFieldEnd()
19242
    oprot.writeFieldStop()
19302
    oprot.writeFieldStop()
19243
    oprot.writeStructEnd()
19303
    oprot.writeStructEnd()
19244
 
19304
 
19245
  def validate(self):
19305
  def validate(self):
19246
    return
19306
    return
Line 37450... Line 37510...
37450
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
37510
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
37451
 
37511
 
37452
  def __ne__(self, other):
37512
  def __ne__(self, other):
37453
    return not (self == other)
37513
    return not (self == other)
37454
 
37514
 
37455
class getOrdersByAmazonOrderItemCode_args:
37515
class getOrdersByAmazonOrderCode_args:
37456
  """
37516
  """
37457
  Attributes:
37517
  Attributes:
37458
   - amazonId
37518
   - amazonId
37459
  """
37519
  """
37460
 
37520
 
Line 37487... Line 37547...
37487
 
37547
 
37488
  def write(self, oprot):
37548
  def write(self, oprot):
37489
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
37549
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
37490
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
37550
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
37491
      return
37551
      return
37492
    oprot.writeStructBegin('getOrdersByAmazonOrderItemCode_args')
37552
    oprot.writeStructBegin('getOrdersByAmazonOrderCode_args')
37493
    if self.amazonId is not None:
37553
    if self.amazonId is not None:
37494
      oprot.writeFieldBegin('amazonId', TType.STRING, 1)
37554
      oprot.writeFieldBegin('amazonId', TType.STRING, 1)
37495
      oprot.writeString(self.amazonId)
37555
      oprot.writeString(self.amazonId)
37496
      oprot.writeFieldEnd()
37556
      oprot.writeFieldEnd()
37497
    oprot.writeFieldStop()
37557
    oprot.writeFieldStop()
Line 37510... Line 37570...
37510
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
37570
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
37511
 
37571
 
37512
  def __ne__(self, other):
37572
  def __ne__(self, other):
37513
    return not (self == other)
37573
    return not (self == other)
37514
 
37574
 
37515
class getOrdersByAmazonOrderItemCode_result:
37575
class getOrdersByAmazonOrderCode_result:
37516
  """
37576
  """
37517
  Attributes:
37577
  Attributes:
37518
   - success
37578
   - success
37519
  """
37579
  """
37520
 
37580
 
Line 37552... Line 37612...
37552
 
37612
 
37553
  def write(self, oprot):
37613
  def write(self, oprot):
37554
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
37614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
37555
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
37615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
37556
      return
37616
      return
37557
    oprot.writeStructBegin('getOrdersByAmazonOrderItemCode_result')
37617
    oprot.writeStructBegin('getOrdersByAmazonOrderCode_result')
37558
    if self.success is not None:
37618
    if self.success is not None:
37559
      oprot.writeFieldBegin('success', TType.LIST, 0)
37619
      oprot.writeFieldBegin('success', TType.LIST, 0)
37560
      oprot.writeListBegin(TType.STRUCT, len(self.success))
37620
      oprot.writeListBegin(TType.STRUCT, len(self.success))
37561
      for iter848 in self.success:
37621
      for iter848 in self.success:
37562
        iter848.write(oprot)
37622
        iter848.write(oprot)