Subversion Repositories SmartDukaan

Rev

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

Rev 6630 Rev 6762
Line 207... Line 207...
207
    """
207
    """
208
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
208
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
209
    """
209
    """
210
    pass
210
    pass
211
 
211
 
-
 
212
  def getHistoricSerializedInventoryByScans(self, date):
-
 
213
    """
-
 
214
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
-
 
215
 
-
 
216
    Parameters:
-
 
217
     - date
-
 
218
    """
-
 
219
    pass
-
 
220
 
-
 
221
  def getHistoricNonSerializedInventoryByScans(self, date):
-
 
222
    """
-
 
223
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
-
 
224
 
-
 
225
    Parameters:
-
 
226
     - date
-
 
227
    """
-
 
228
    pass
-
 
229
 
-
 
230
  def scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, orderId):
-
 
231
    """
-
 
232
    Insert Purchase/Scan Entries for product billed by Hotspot using OURS_EXTERNAL Billing
-
 
233
 
-
 
234
    Parameters:
-
 
235
     - itemId
-
 
236
     - serialNumber
-
 
237
     - itemNumber
-
 
238
     - invoiceNumber
-
 
239
     - warehouseId
-
 
240
     - unitPrice
-
 
241
     - orderId
-
 
242
    """
-
 
243
    pass
-
 
244
 
-
 
245
  def scanForOursExternalSaleReturn(self, orderId, unitPrice):
-
 
246
    """
-
 
247
    Insert Purchase_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
-
 
248
 
-
 
249
    Parameters:
-
 
250
     - orderId
-
 
251
     - unitPrice
-
 
252
    """
-
 
253
    pass
-
 
254
 
-
 
255
  def getMovementNonSerializedInventoryByScans(self, startDate, endDate):
-
 
256
    """
-
 
257
    Parameters:
-
 
258
     - startDate
-
 
259
     - endDate
-
 
260
    """
-
 
261
    pass
-
 
262
 
-
 
263
  def getMovementSerializedInventoryByScans(self, startDate, endDate):
-
 
264
    """
-
 
265
    Parameters:
-
 
266
     - startDate
-
 
267
     - endDate
-
 
268
    """
-
 
269
    pass
-
 
270
 
212
 
271
 
213
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
272
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
214
  def __init__(self, iprot, oprot=None):
273
  def __init__(self, iprot, oprot=None):
215
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
274
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
216
 
275
 
Line 894... Line 953...
894
    self._iprot.readMessageEnd()
953
    self._iprot.readMessageEnd()
895
    if result.success is not None:
954
    if result.success is not None:
896
      return result.success
955
      return result.success
897
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");
956
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");
898
 
957
 
-
 
958
  def getHistoricSerializedInventoryByScans(self, date):
-
 
959
    """
-
 
960
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
-
 
961
 
-
 
962
    Parameters:
-
 
963
     - date
-
 
964
    """
-
 
965
    self.send_getHistoricSerializedInventoryByScans(date)
-
 
966
    return self.recv_getHistoricSerializedInventoryByScans()
-
 
967
 
-
 
968
  def send_getHistoricSerializedInventoryByScans(self, date):
-
 
969
    self._oprot.writeMessageBegin('getHistoricSerializedInventoryByScans', TMessageType.CALL, self._seqid)
-
 
970
    args = getHistoricSerializedInventoryByScans_args()
-
 
971
    args.date = date
-
 
972
    args.write(self._oprot)
-
 
973
    self._oprot.writeMessageEnd()
-
 
974
    self._oprot.trans.flush()
-
 
975
 
-
 
976
  def recv_getHistoricSerializedInventoryByScans(self, ):
-
 
977
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
978
    if mtype == TMessageType.EXCEPTION:
-
 
979
      x = TApplicationException()
-
 
980
      x.read(self._iprot)
-
 
981
      self._iprot.readMessageEnd()
-
 
982
      raise x
-
 
983
    result = getHistoricSerializedInventoryByScans_result()
-
 
984
    result.read(self._iprot)
-
 
985
    self._iprot.readMessageEnd()
-
 
986
    if result.success is not None:
-
 
987
      return result.success
-
 
988
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricSerializedInventoryByScans failed: unknown result");
-
 
989
 
-
 
990
  def getHistoricNonSerializedInventoryByScans(self, date):
-
 
991
    """
-
 
992
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
-
 
993
 
-
 
994
    Parameters:
-
 
995
     - date
-
 
996
    """
-
 
997
    self.send_getHistoricNonSerializedInventoryByScans(date)
-
 
998
    return self.recv_getHistoricNonSerializedInventoryByScans()
-
 
999
 
-
 
1000
  def send_getHistoricNonSerializedInventoryByScans(self, date):
-
 
1001
    self._oprot.writeMessageBegin('getHistoricNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
-
 
1002
    args = getHistoricNonSerializedInventoryByScans_args()
-
 
1003
    args.date = date
-
 
1004
    args.write(self._oprot)
-
 
1005
    self._oprot.writeMessageEnd()
-
 
1006
    self._oprot.trans.flush()
-
 
1007
 
-
 
1008
  def recv_getHistoricNonSerializedInventoryByScans(self, ):
-
 
1009
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1010
    if mtype == TMessageType.EXCEPTION:
-
 
1011
      x = TApplicationException()
-
 
1012
      x.read(self._iprot)
-
 
1013
      self._iprot.readMessageEnd()
-
 
1014
      raise x
-
 
1015
    result = getHistoricNonSerializedInventoryByScans_result()
-
 
1016
    result.read(self._iprot)
-
 
1017
    self._iprot.readMessageEnd()
-
 
1018
    if result.success is not None:
-
 
1019
      return result.success
-
 
1020
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricNonSerializedInventoryByScans failed: unknown result");
-
 
1021
 
-
 
1022
  def scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, orderId):
-
 
1023
    """
-
 
1024
    Insert Purchase/Scan Entries for product billed by Hotspot using OURS_EXTERNAL Billing
-
 
1025
 
-
 
1026
    Parameters:
-
 
1027
     - itemId
-
 
1028
     - serialNumber
-
 
1029
     - itemNumber
-
 
1030
     - invoiceNumber
-
 
1031
     - warehouseId
-
 
1032
     - unitPrice
-
 
1033
     - orderId
-
 
1034
    """
-
 
1035
    self.send_scanForOursExternalSale(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, orderId)
-
 
1036
    return self.recv_scanForOursExternalSale()
-
 
1037
 
-
 
1038
  def send_scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, orderId):
-
 
1039
    self._oprot.writeMessageBegin('scanForOursExternalSale', TMessageType.CALL, self._seqid)
-
 
1040
    args = scanForOursExternalSale_args()
-
 
1041
    args.itemId = itemId
-
 
1042
    args.serialNumber = serialNumber
-
 
1043
    args.itemNumber = itemNumber
-
 
1044
    args.invoiceNumber = invoiceNumber
-
 
1045
    args.warehouseId = warehouseId
-
 
1046
    args.unitPrice = unitPrice
-
 
1047
    args.orderId = orderId
-
 
1048
    args.write(self._oprot)
-
 
1049
    self._oprot.writeMessageEnd()
-
 
1050
    self._oprot.trans.flush()
-
 
1051
 
-
 
1052
  def recv_scanForOursExternalSale(self, ):
-
 
1053
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1054
    if mtype == TMessageType.EXCEPTION:
-
 
1055
      x = TApplicationException()
-
 
1056
      x.read(self._iprot)
-
 
1057
      self._iprot.readMessageEnd()
-
 
1058
      raise x
-
 
1059
    result = scanForOursExternalSale_result()
-
 
1060
    result.read(self._iprot)
-
 
1061
    self._iprot.readMessageEnd()
-
 
1062
    if result.success is not None:
-
 
1063
      return result.success
-
 
1064
    if result.ex is not None:
-
 
1065
      raise result.ex
-
 
1066
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOursExternalSale failed: unknown result");
-
 
1067
 
-
 
1068
  def scanForOursExternalSaleReturn(self, orderId, unitPrice):
-
 
1069
    """
-
 
1070
    Insert Purchase_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
-
 
1071
 
-
 
1072
    Parameters:
-
 
1073
     - orderId
-
 
1074
     - unitPrice
-
 
1075
    """
-
 
1076
    self.send_scanForOursExternalSaleReturn(orderId, unitPrice)
-
 
1077
    self.recv_scanForOursExternalSaleReturn()
-
 
1078
 
-
 
1079
  def send_scanForOursExternalSaleReturn(self, orderId, unitPrice):
-
 
1080
    self._oprot.writeMessageBegin('scanForOursExternalSaleReturn', TMessageType.CALL, self._seqid)
-
 
1081
    args = scanForOursExternalSaleReturn_args()
-
 
1082
    args.orderId = orderId
-
 
1083
    args.unitPrice = unitPrice
-
 
1084
    args.write(self._oprot)
-
 
1085
    self._oprot.writeMessageEnd()
-
 
1086
    self._oprot.trans.flush()
-
 
1087
 
-
 
1088
  def recv_scanForOursExternalSaleReturn(self, ):
-
 
1089
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1090
    if mtype == TMessageType.EXCEPTION:
-
 
1091
      x = TApplicationException()
-
 
1092
      x.read(self._iprot)
-
 
1093
      self._iprot.readMessageEnd()
-
 
1094
      raise x
-
 
1095
    result = scanForOursExternalSaleReturn_result()
-
 
1096
    result.read(self._iprot)
-
 
1097
    self._iprot.readMessageEnd()
-
 
1098
    return
-
 
1099
 
-
 
1100
  def getMovementNonSerializedInventoryByScans(self, startDate, endDate):
-
 
1101
    """
-
 
1102
    Parameters:
-
 
1103
     - startDate
-
 
1104
     - endDate
-
 
1105
    """
-
 
1106
    self.send_getMovementNonSerializedInventoryByScans(startDate, endDate)
-
 
1107
    return self.recv_getMovementNonSerializedInventoryByScans()
-
 
1108
 
-
 
1109
  def send_getMovementNonSerializedInventoryByScans(self, startDate, endDate):
-
 
1110
    self._oprot.writeMessageBegin('getMovementNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
-
 
1111
    args = getMovementNonSerializedInventoryByScans_args()
-
 
1112
    args.startDate = startDate
-
 
1113
    args.endDate = endDate
-
 
1114
    args.write(self._oprot)
-
 
1115
    self._oprot.writeMessageEnd()
-
 
1116
    self._oprot.trans.flush()
-
 
1117
 
-
 
1118
  def recv_getMovementNonSerializedInventoryByScans(self, ):
-
 
1119
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1120
    if mtype == TMessageType.EXCEPTION:
-
 
1121
      x = TApplicationException()
-
 
1122
      x.read(self._iprot)
-
 
1123
      self._iprot.readMessageEnd()
-
 
1124
      raise x
-
 
1125
    result = getMovementNonSerializedInventoryByScans_result()
-
 
1126
    result.read(self._iprot)
-
 
1127
    self._iprot.readMessageEnd()
-
 
1128
    if result.success is not None:
-
 
1129
      return result.success
-
 
1130
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMovementNonSerializedInventoryByScans failed: unknown result");
-
 
1131
 
-
 
1132
  def getMovementSerializedInventoryByScans(self, startDate, endDate):
-
 
1133
    """
-
 
1134
    Parameters:
-
 
1135
     - startDate
-
 
1136
     - endDate
-
 
1137
    """
-
 
1138
    self.send_getMovementSerializedInventoryByScans(startDate, endDate)
-
 
1139
    return self.recv_getMovementSerializedInventoryByScans()
-
 
1140
 
-
 
1141
  def send_getMovementSerializedInventoryByScans(self, startDate, endDate):
-
 
1142
    self._oprot.writeMessageBegin('getMovementSerializedInventoryByScans', TMessageType.CALL, self._seqid)
-
 
1143
    args = getMovementSerializedInventoryByScans_args()
-
 
1144
    args.startDate = startDate
-
 
1145
    args.endDate = endDate
-
 
1146
    args.write(self._oprot)
-
 
1147
    self._oprot.writeMessageEnd()
-
 
1148
    self._oprot.trans.flush()
-
 
1149
 
-
 
1150
  def recv_getMovementSerializedInventoryByScans(self, ):
-
 
1151
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1152
    if mtype == TMessageType.EXCEPTION:
-
 
1153
      x = TApplicationException()
-
 
1154
      x.read(self._iprot)
-
 
1155
      self._iprot.readMessageEnd()
-
 
1156
      raise x
-
 
1157
    result = getMovementSerializedInventoryByScans_result()
-
 
1158
    result.read(self._iprot)
-
 
1159
    self._iprot.readMessageEnd()
-
 
1160
    if result.success is not None:
-
 
1161
      return result.success
-
 
1162
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMovementSerializedInventoryByScans failed: unknown result");
-
 
1163
 
899
 
1164
 
900
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
1165
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
901
  def __init__(self, handler):
1166
  def __init__(self, handler):
902
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1167
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
903
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
1168
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
Line 918... Line 1183...
918
    self._processMap["getScanRecordsForSerialNumber"] = Processor.process_getScanRecordsForSerialNumber
1183
    self._processMap["getScanRecordsForSerialNumber"] = Processor.process_getScanRecordsForSerialNumber
919
    self._processMap["scanForPurchaseReturn"] = Processor.process_scanForPurchaseReturn
1184
    self._processMap["scanForPurchaseReturn"] = Processor.process_scanForPurchaseReturn
920
    self._processMap["scanForLostItem"] = Processor.process_scanForLostItem
1185
    self._processMap["scanForLostItem"] = Processor.process_scanForLostItem
921
    self._processMap["getCurrentSerializedInventoryByScans"] = Processor.process_getCurrentSerializedInventoryByScans
1186
    self._processMap["getCurrentSerializedInventoryByScans"] = Processor.process_getCurrentSerializedInventoryByScans
922
    self._processMap["getCurrentNonSerializedInventoryByScans"] = Processor.process_getCurrentNonSerializedInventoryByScans
1187
    self._processMap["getCurrentNonSerializedInventoryByScans"] = Processor.process_getCurrentNonSerializedInventoryByScans
-
 
1188
    self._processMap["getHistoricSerializedInventoryByScans"] = Processor.process_getHistoricSerializedInventoryByScans
-
 
1189
    self._processMap["getHistoricNonSerializedInventoryByScans"] = Processor.process_getHistoricNonSerializedInventoryByScans
-
 
1190
    self._processMap["scanForOursExternalSale"] = Processor.process_scanForOursExternalSale
-
 
1191
    self._processMap["scanForOursExternalSaleReturn"] = Processor.process_scanForOursExternalSaleReturn
-
 
1192
    self._processMap["getMovementNonSerializedInventoryByScans"] = Processor.process_getMovementNonSerializedInventoryByScans
-
 
1193
    self._processMap["getMovementSerializedInventoryByScans"] = Processor.process_getMovementSerializedInventoryByScans
923
 
1194
 
924
  def process(self, iprot, oprot):
1195
  def process(self, iprot, oprot):
925
    (name, type, seqid) = iprot.readMessageBegin()
1196
    (name, type, seqid) = iprot.readMessageBegin()
926
    if name not in self._processMap:
1197
    if name not in self._processMap:
927
      iprot.skip(TType.STRUCT)
1198
      iprot.skip(TType.STRUCT)
Line 1184... Line 1455...
1184
    oprot.writeMessageBegin("getCurrentNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
1455
    oprot.writeMessageBegin("getCurrentNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
1185
    result.write(oprot)
1456
    result.write(oprot)
1186
    oprot.writeMessageEnd()
1457
    oprot.writeMessageEnd()
1187
    oprot.trans.flush()
1458
    oprot.trans.flush()
1188
 
1459
 
-
 
1460
  def process_getHistoricSerializedInventoryByScans(self, seqid, iprot, oprot):
-
 
1461
    args = getHistoricSerializedInventoryByScans_args()
-
 
1462
    args.read(iprot)
-
 
1463
    iprot.readMessageEnd()
-
 
1464
    result = getHistoricSerializedInventoryByScans_result()
-
 
1465
    result.success = self._handler.getHistoricSerializedInventoryByScans(args.date)
-
 
1466
    oprot.writeMessageBegin("getHistoricSerializedInventoryByScans", TMessageType.REPLY, seqid)
-
 
1467
    result.write(oprot)
-
 
1468
    oprot.writeMessageEnd()
-
 
1469
    oprot.trans.flush()
-
 
1470
 
-
 
1471
  def process_getHistoricNonSerializedInventoryByScans(self, seqid, iprot, oprot):
-
 
1472
    args = getHistoricNonSerializedInventoryByScans_args()
-
 
1473
    args.read(iprot)
-
 
1474
    iprot.readMessageEnd()
-
 
1475
    result = getHistoricNonSerializedInventoryByScans_result()
-
 
1476
    result.success = self._handler.getHistoricNonSerializedInventoryByScans(args.date)
-
 
1477
    oprot.writeMessageBegin("getHistoricNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
-
 
1478
    result.write(oprot)
-
 
1479
    oprot.writeMessageEnd()
-
 
1480
    oprot.trans.flush()
-
 
1481
 
-
 
1482
  def process_scanForOursExternalSale(self, seqid, iprot, oprot):
-
 
1483
    args = scanForOursExternalSale_args()
-
 
1484
    args.read(iprot)
-
 
1485
    iprot.readMessageEnd()
-
 
1486
    result = scanForOursExternalSale_result()
-
 
1487
    try:
-
 
1488
      result.success = self._handler.scanForOursExternalSale(args.itemId, args.serialNumber, args.itemNumber, args.invoiceNumber, args.warehouseId, args.unitPrice, args.orderId)
-
 
1489
    except WarehouseServiceException, ex:
-
 
1490
      result.ex = ex
-
 
1491
    oprot.writeMessageBegin("scanForOursExternalSale", TMessageType.REPLY, seqid)
-
 
1492
    result.write(oprot)
-
 
1493
    oprot.writeMessageEnd()
-
 
1494
    oprot.trans.flush()
-
 
1495
 
-
 
1496
  def process_scanForOursExternalSaleReturn(self, seqid, iprot, oprot):
-
 
1497
    args = scanForOursExternalSaleReturn_args()
-
 
1498
    args.read(iprot)
-
 
1499
    iprot.readMessageEnd()
-
 
1500
    result = scanForOursExternalSaleReturn_result()
-
 
1501
    self._handler.scanForOursExternalSaleReturn(args.orderId, args.unitPrice)
-
 
1502
    oprot.writeMessageBegin("scanForOursExternalSaleReturn", TMessageType.REPLY, seqid)
-
 
1503
    result.write(oprot)
-
 
1504
    oprot.writeMessageEnd()
-
 
1505
    oprot.trans.flush()
-
 
1506
 
-
 
1507
  def process_getMovementNonSerializedInventoryByScans(self, seqid, iprot, oprot):
-
 
1508
    args = getMovementNonSerializedInventoryByScans_args()
-
 
1509
    args.read(iprot)
-
 
1510
    iprot.readMessageEnd()
-
 
1511
    result = getMovementNonSerializedInventoryByScans_result()
-
 
1512
    result.success = self._handler.getMovementNonSerializedInventoryByScans(args.startDate, args.endDate)
-
 
1513
    oprot.writeMessageBegin("getMovementNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
-
 
1514
    result.write(oprot)
-
 
1515
    oprot.writeMessageEnd()
-
 
1516
    oprot.trans.flush()
-
 
1517
 
-
 
1518
  def process_getMovementSerializedInventoryByScans(self, seqid, iprot, oprot):
-
 
1519
    args = getMovementSerializedInventoryByScans_args()
-
 
1520
    args.read(iprot)
-
 
1521
    iprot.readMessageEnd()
-
 
1522
    result = getMovementSerializedInventoryByScans_result()
-
 
1523
    result.success = self._handler.getMovementSerializedInventoryByScans(args.startDate, args.endDate)
-
 
1524
    oprot.writeMessageBegin("getMovementSerializedInventoryByScans", TMessageType.REPLY, seqid)
-
 
1525
    result.write(oprot)
-
 
1526
    oprot.writeMessageEnd()
-
 
1527
    oprot.trans.flush()
-
 
1528
 
1189
 
1529
 
1190
# HELPER FUNCTIONS AND STRUCTURES
1530
# HELPER FUNCTIONS AND STRUCTURES
1191
 
1531
 
1192
class getInventoryItem_args:
1532
class getInventoryItem_args:
1193
  """
1533
  """
Line 3944... Line 4284...
3944
      oprot.writeListEnd()
4284
      oprot.writeListEnd()
3945
      oprot.writeFieldEnd()
4285
      oprot.writeFieldEnd()
3946
    oprot.writeFieldStop()
4286
    oprot.writeFieldStop()
3947
    oprot.writeStructEnd()
4287
    oprot.writeStructEnd()
3948
 
4288
 
-
 
4289
  def validate(self):
-
 
4290
    return
-
 
4291
 
-
 
4292
 
-
 
4293
  def __repr__(self):
-
 
4294
    L = ['%s=%r' % (key, value)
-
 
4295
      for key, value in self.__dict__.iteritems()]
-
 
4296
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4297
 
-
 
4298
  def __eq__(self, other):
-
 
4299
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4300
 
-
 
4301
  def __ne__(self, other):
-
 
4302
    return not (self == other)
-
 
4303
 
-
 
4304
class getHistoricSerializedInventoryByScans_args:
-
 
4305
  """
-
 
4306
  Attributes:
-
 
4307
   - date
-
 
4308
  """
-
 
4309
 
-
 
4310
  thrift_spec = (
-
 
4311
    None, # 0
-
 
4312
    (1, TType.I64, 'date', None, None, ), # 1
-
 
4313
  )
-
 
4314
 
-
 
4315
  def __init__(self, date=None,):
-
 
4316
    self.date = date
-
 
4317
 
-
 
4318
  def read(self, iprot):
-
 
4319
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4320
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4321
      return
-
 
4322
    iprot.readStructBegin()
-
 
4323
    while True:
-
 
4324
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4325
      if ftype == TType.STOP:
-
 
4326
        break
-
 
4327
      if fid == 1:
-
 
4328
        if ftype == TType.I64:
-
 
4329
          self.date = iprot.readI64();
-
 
4330
        else:
-
 
4331
          iprot.skip(ftype)
-
 
4332
      else:
-
 
4333
        iprot.skip(ftype)
-
 
4334
      iprot.readFieldEnd()
-
 
4335
    iprot.readStructEnd()
-
 
4336
 
-
 
4337
  def write(self, oprot):
-
 
4338
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4339
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4340
      return
-
 
4341
    oprot.writeStructBegin('getHistoricSerializedInventoryByScans_args')
-
 
4342
    if self.date is not None:
-
 
4343
      oprot.writeFieldBegin('date', TType.I64, 1)
-
 
4344
      oprot.writeI64(self.date)
-
 
4345
      oprot.writeFieldEnd()
-
 
4346
    oprot.writeFieldStop()
-
 
4347
    oprot.writeStructEnd()
-
 
4348
 
-
 
4349
  def validate(self):
-
 
4350
    return
-
 
4351
 
-
 
4352
 
-
 
4353
  def __repr__(self):
-
 
4354
    L = ['%s=%r' % (key, value)
-
 
4355
      for key, value in self.__dict__.iteritems()]
-
 
4356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4357
 
-
 
4358
  def __eq__(self, other):
-
 
4359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4360
 
-
 
4361
  def __ne__(self, other):
-
 
4362
    return not (self == other)
-
 
4363
 
-
 
4364
class getHistoricSerializedInventoryByScans_result:
-
 
4365
  """
-
 
4366
  Attributes:
-
 
4367
   - success
-
 
4368
  """
-
 
4369
 
-
 
4370
  thrift_spec = (
-
 
4371
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
-
 
4372
  )
-
 
4373
 
-
 
4374
  def __init__(self, success=None,):
-
 
4375
    self.success = success
-
 
4376
 
-
 
4377
  def read(self, iprot):
-
 
4378
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4379
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4380
      return
-
 
4381
    iprot.readStructBegin()
-
 
4382
    while True:
-
 
4383
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4384
      if ftype == TType.STOP:
-
 
4385
        break
-
 
4386
      if fid == 0:
-
 
4387
        if ftype == TType.LIST:
-
 
4388
          self.success = []
-
 
4389
          (_etype87, _size84) = iprot.readListBegin()
-
 
4390
          for _i88 in xrange(_size84):
-
 
4391
            _elem89 = InventoryAvailability()
-
 
4392
            _elem89.read(iprot)
-
 
4393
            self.success.append(_elem89)
-
 
4394
          iprot.readListEnd()
-
 
4395
        else:
-
 
4396
          iprot.skip(ftype)
-
 
4397
      else:
-
 
4398
        iprot.skip(ftype)
-
 
4399
      iprot.readFieldEnd()
-
 
4400
    iprot.readStructEnd()
-
 
4401
 
-
 
4402
  def write(self, oprot):
-
 
4403
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4404
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4405
      return
-
 
4406
    oprot.writeStructBegin('getHistoricSerializedInventoryByScans_result')
-
 
4407
    if self.success is not None:
-
 
4408
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
4409
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
4410
      for iter90 in self.success:
-
 
4411
        iter90.write(oprot)
-
 
4412
      oprot.writeListEnd()
-
 
4413
      oprot.writeFieldEnd()
-
 
4414
    oprot.writeFieldStop()
-
 
4415
    oprot.writeStructEnd()
-
 
4416
 
-
 
4417
  def validate(self):
-
 
4418
    return
-
 
4419
 
-
 
4420
 
-
 
4421
  def __repr__(self):
-
 
4422
    L = ['%s=%r' % (key, value)
-
 
4423
      for key, value in self.__dict__.iteritems()]
-
 
4424
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4425
 
-
 
4426
  def __eq__(self, other):
-
 
4427
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4428
 
-
 
4429
  def __ne__(self, other):
-
 
4430
    return not (self == other)
-
 
4431
 
-
 
4432
class getHistoricNonSerializedInventoryByScans_args:
-
 
4433
  """
-
 
4434
  Attributes:
-
 
4435
   - date
-
 
4436
  """
-
 
4437
 
-
 
4438
  thrift_spec = (
-
 
4439
    None, # 0
-
 
4440
    (1, TType.I64, 'date', None, None, ), # 1
-
 
4441
  )
-
 
4442
 
-
 
4443
  def __init__(self, date=None,):
-
 
4444
    self.date = date
-
 
4445
 
-
 
4446
  def read(self, iprot):
-
 
4447
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4448
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4449
      return
-
 
4450
    iprot.readStructBegin()
-
 
4451
    while True:
-
 
4452
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4453
      if ftype == TType.STOP:
-
 
4454
        break
-
 
4455
      if fid == 1:
-
 
4456
        if ftype == TType.I64:
-
 
4457
          self.date = iprot.readI64();
-
 
4458
        else:
-
 
4459
          iprot.skip(ftype)
-
 
4460
      else:
-
 
4461
        iprot.skip(ftype)
-
 
4462
      iprot.readFieldEnd()
-
 
4463
    iprot.readStructEnd()
-
 
4464
 
-
 
4465
  def write(self, oprot):
-
 
4466
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4467
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4468
      return
-
 
4469
    oprot.writeStructBegin('getHistoricNonSerializedInventoryByScans_args')
-
 
4470
    if self.date is not None:
-
 
4471
      oprot.writeFieldBegin('date', TType.I64, 1)
-
 
4472
      oprot.writeI64(self.date)
-
 
4473
      oprot.writeFieldEnd()
-
 
4474
    oprot.writeFieldStop()
-
 
4475
    oprot.writeStructEnd()
-
 
4476
 
-
 
4477
  def validate(self):
-
 
4478
    return
-
 
4479
 
-
 
4480
 
-
 
4481
  def __repr__(self):
-
 
4482
    L = ['%s=%r' % (key, value)
-
 
4483
      for key, value in self.__dict__.iteritems()]
-
 
4484
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4485
 
-
 
4486
  def __eq__(self, other):
-
 
4487
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4488
 
-
 
4489
  def __ne__(self, other):
-
 
4490
    return not (self == other)
-
 
4491
 
-
 
4492
class getHistoricNonSerializedInventoryByScans_result:
-
 
4493
  """
-
 
4494
  Attributes:
-
 
4495
   - success
-
 
4496
  """
-
 
4497
 
-
 
4498
  thrift_spec = (
-
 
4499
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
-
 
4500
  )
-
 
4501
 
-
 
4502
  def __init__(self, success=None,):
-
 
4503
    self.success = success
-
 
4504
 
-
 
4505
  def read(self, iprot):
-
 
4506
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4507
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4508
      return
-
 
4509
    iprot.readStructBegin()
-
 
4510
    while True:
-
 
4511
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4512
      if ftype == TType.STOP:
-
 
4513
        break
-
 
4514
      if fid == 0:
-
 
4515
        if ftype == TType.LIST:
-
 
4516
          self.success = []
-
 
4517
          (_etype94, _size91) = iprot.readListBegin()
-
 
4518
          for _i95 in xrange(_size91):
-
 
4519
            _elem96 = InventoryAvailability()
-
 
4520
            _elem96.read(iprot)
-
 
4521
            self.success.append(_elem96)
-
 
4522
          iprot.readListEnd()
-
 
4523
        else:
-
 
4524
          iprot.skip(ftype)
-
 
4525
      else:
-
 
4526
        iprot.skip(ftype)
-
 
4527
      iprot.readFieldEnd()
-
 
4528
    iprot.readStructEnd()
-
 
4529
 
-
 
4530
  def write(self, oprot):
-
 
4531
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4532
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4533
      return
-
 
4534
    oprot.writeStructBegin('getHistoricNonSerializedInventoryByScans_result')
-
 
4535
    if self.success is not None:
-
 
4536
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
4537
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
4538
      for iter97 in self.success:
-
 
4539
        iter97.write(oprot)
-
 
4540
      oprot.writeListEnd()
-
 
4541
      oprot.writeFieldEnd()
-
 
4542
    oprot.writeFieldStop()
-
 
4543
    oprot.writeStructEnd()
-
 
4544
 
-
 
4545
  def validate(self):
-
 
4546
    return
-
 
4547
 
-
 
4548
 
-
 
4549
  def __repr__(self):
-
 
4550
    L = ['%s=%r' % (key, value)
-
 
4551
      for key, value in self.__dict__.iteritems()]
-
 
4552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4553
 
-
 
4554
  def __eq__(self, other):
-
 
4555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4556
 
-
 
4557
  def __ne__(self, other):
-
 
4558
    return not (self == other)
-
 
4559
 
-
 
4560
class scanForOursExternalSale_args:
-
 
4561
  """
-
 
4562
  Attributes:
-
 
4563
   - itemId
-
 
4564
   - serialNumber
-
 
4565
   - itemNumber
-
 
4566
   - invoiceNumber
-
 
4567
   - warehouseId
-
 
4568
   - unitPrice
-
 
4569
   - orderId
-
 
4570
  """
-
 
4571
 
-
 
4572
  thrift_spec = (
-
 
4573
    None, # 0
-
 
4574
    (1, TType.I64, 'itemId', None, None, ), # 1
-
 
4575
    (2, TType.STRING, 'serialNumber', None, None, ), # 2
-
 
4576
    (3, TType.STRING, 'itemNumber', None, None, ), # 3
-
 
4577
    (4, TType.STRING, 'invoiceNumber', None, None, ), # 4
-
 
4578
    (5, TType.I64, 'warehouseId', None, None, ), # 5
-
 
4579
    (6, TType.DOUBLE, 'unitPrice', None, None, ), # 6
-
 
4580
    (7, TType.I64, 'orderId', None, None, ), # 7
-
 
4581
  )
-
 
4582
 
-
 
4583
  def __init__(self, itemId=None, serialNumber=None, itemNumber=None, invoiceNumber=None, warehouseId=None, unitPrice=None, orderId=None,):
-
 
4584
    self.itemId = itemId
-
 
4585
    self.serialNumber = serialNumber
-
 
4586
    self.itemNumber = itemNumber
-
 
4587
    self.invoiceNumber = invoiceNumber
-
 
4588
    self.warehouseId = warehouseId
-
 
4589
    self.unitPrice = unitPrice
-
 
4590
    self.orderId = orderId
-
 
4591
 
-
 
4592
  def read(self, iprot):
-
 
4593
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4594
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4595
      return
-
 
4596
    iprot.readStructBegin()
-
 
4597
    while True:
-
 
4598
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4599
      if ftype == TType.STOP:
-
 
4600
        break
-
 
4601
      if fid == 1:
-
 
4602
        if ftype == TType.I64:
-
 
4603
          self.itemId = iprot.readI64();
-
 
4604
        else:
-
 
4605
          iprot.skip(ftype)
-
 
4606
      elif fid == 2:
-
 
4607
        if ftype == TType.STRING:
-
 
4608
          self.serialNumber = iprot.readString();
-
 
4609
        else:
-
 
4610
          iprot.skip(ftype)
-
 
4611
      elif fid == 3:
-
 
4612
        if ftype == TType.STRING:
-
 
4613
          self.itemNumber = iprot.readString();
-
 
4614
        else:
-
 
4615
          iprot.skip(ftype)
-
 
4616
      elif fid == 4:
-
 
4617
        if ftype == TType.STRING:
-
 
4618
          self.invoiceNumber = iprot.readString();
-
 
4619
        else:
-
 
4620
          iprot.skip(ftype)
-
 
4621
      elif fid == 5:
-
 
4622
        if ftype == TType.I64:
-
 
4623
          self.warehouseId = iprot.readI64();
-
 
4624
        else:
-
 
4625
          iprot.skip(ftype)
-
 
4626
      elif fid == 6:
-
 
4627
        if ftype == TType.DOUBLE:
-
 
4628
          self.unitPrice = iprot.readDouble();
-
 
4629
        else:
-
 
4630
          iprot.skip(ftype)
-
 
4631
      elif fid == 7:
-
 
4632
        if ftype == TType.I64:
-
 
4633
          self.orderId = iprot.readI64();
-
 
4634
        else:
-
 
4635
          iprot.skip(ftype)
-
 
4636
      else:
-
 
4637
        iprot.skip(ftype)
-
 
4638
      iprot.readFieldEnd()
-
 
4639
    iprot.readStructEnd()
-
 
4640
 
-
 
4641
  def write(self, oprot):
-
 
4642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4644
      return
-
 
4645
    oprot.writeStructBegin('scanForOursExternalSale_args')
-
 
4646
    if self.itemId is not None:
-
 
4647
      oprot.writeFieldBegin('itemId', TType.I64, 1)
-
 
4648
      oprot.writeI64(self.itemId)
-
 
4649
      oprot.writeFieldEnd()
-
 
4650
    if self.serialNumber is not None:
-
 
4651
      oprot.writeFieldBegin('serialNumber', TType.STRING, 2)
-
 
4652
      oprot.writeString(self.serialNumber)
-
 
4653
      oprot.writeFieldEnd()
-
 
4654
    if self.itemNumber is not None:
-
 
4655
      oprot.writeFieldBegin('itemNumber', TType.STRING, 3)
-
 
4656
      oprot.writeString(self.itemNumber)
-
 
4657
      oprot.writeFieldEnd()
-
 
4658
    if self.invoiceNumber is not None:
-
 
4659
      oprot.writeFieldBegin('invoiceNumber', TType.STRING, 4)
-
 
4660
      oprot.writeString(self.invoiceNumber)
-
 
4661
      oprot.writeFieldEnd()
-
 
4662
    if self.warehouseId is not None:
-
 
4663
      oprot.writeFieldBegin('warehouseId', TType.I64, 5)
-
 
4664
      oprot.writeI64(self.warehouseId)
-
 
4665
      oprot.writeFieldEnd()
-
 
4666
    if self.unitPrice is not None:
-
 
4667
      oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 6)
-
 
4668
      oprot.writeDouble(self.unitPrice)
-
 
4669
      oprot.writeFieldEnd()
-
 
4670
    if self.orderId is not None:
-
 
4671
      oprot.writeFieldBegin('orderId', TType.I64, 7)
-
 
4672
      oprot.writeI64(self.orderId)
-
 
4673
      oprot.writeFieldEnd()
-
 
4674
    oprot.writeFieldStop()
-
 
4675
    oprot.writeStructEnd()
-
 
4676
 
-
 
4677
  def validate(self):
-
 
4678
    return
-
 
4679
 
-
 
4680
 
-
 
4681
  def __repr__(self):
-
 
4682
    L = ['%s=%r' % (key, value)
-
 
4683
      for key, value in self.__dict__.iteritems()]
-
 
4684
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4685
 
-
 
4686
  def __eq__(self, other):
-
 
4687
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4688
 
-
 
4689
  def __ne__(self, other):
-
 
4690
    return not (self == other)
-
 
4691
 
-
 
4692
class scanForOursExternalSale_result:
-
 
4693
  """
-
 
4694
  Attributes:
-
 
4695
   - success
-
 
4696
   - ex
-
 
4697
  """
-
 
4698
 
-
 
4699
  thrift_spec = (
-
 
4700
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
-
 
4701
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
-
 
4702
  )
-
 
4703
 
-
 
4704
  def __init__(self, success=None, ex=None,):
-
 
4705
    self.success = success
-
 
4706
    self.ex = ex
-
 
4707
 
-
 
4708
  def read(self, iprot):
-
 
4709
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4710
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4711
      return
-
 
4712
    iprot.readStructBegin()
-
 
4713
    while True:
-
 
4714
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4715
      if ftype == TType.STOP:
-
 
4716
        break
-
 
4717
      if fid == 0:
-
 
4718
        if ftype == TType.STRUCT:
-
 
4719
          self.success = InventoryItem()
-
 
4720
          self.success.read(iprot)
-
 
4721
        else:
-
 
4722
          iprot.skip(ftype)
-
 
4723
      elif fid == 1:
-
 
4724
        if ftype == TType.STRUCT:
-
 
4725
          self.ex = WarehouseServiceException()
-
 
4726
          self.ex.read(iprot)
-
 
4727
        else:
-
 
4728
          iprot.skip(ftype)
-
 
4729
      else:
-
 
4730
        iprot.skip(ftype)
-
 
4731
      iprot.readFieldEnd()
-
 
4732
    iprot.readStructEnd()
-
 
4733
 
-
 
4734
  def write(self, oprot):
-
 
4735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4737
      return
-
 
4738
    oprot.writeStructBegin('scanForOursExternalSale_result')
-
 
4739
    if self.success is not None:
-
 
4740
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
4741
      self.success.write(oprot)
-
 
4742
      oprot.writeFieldEnd()
-
 
4743
    if self.ex is not None:
-
 
4744
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
4745
      self.ex.write(oprot)
-
 
4746
      oprot.writeFieldEnd()
-
 
4747
    oprot.writeFieldStop()
-
 
4748
    oprot.writeStructEnd()
-
 
4749
 
-
 
4750
  def validate(self):
-
 
4751
    return
-
 
4752
 
-
 
4753
 
-
 
4754
  def __repr__(self):
-
 
4755
    L = ['%s=%r' % (key, value)
-
 
4756
      for key, value in self.__dict__.iteritems()]
-
 
4757
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4758
 
-
 
4759
  def __eq__(self, other):
-
 
4760
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4761
 
-
 
4762
  def __ne__(self, other):
-
 
4763
    return not (self == other)
-
 
4764
 
-
 
4765
class scanForOursExternalSaleReturn_args:
-
 
4766
  """
-
 
4767
  Attributes:
-
 
4768
   - orderId
-
 
4769
   - unitPrice
-
 
4770
  """
-
 
4771
 
-
 
4772
  thrift_spec = (
-
 
4773
    None, # 0
-
 
4774
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
4775
    (2, TType.DOUBLE, 'unitPrice', None, None, ), # 2
-
 
4776
  )
-
 
4777
 
-
 
4778
  def __init__(self, orderId=None, unitPrice=None,):
-
 
4779
    self.orderId = orderId
-
 
4780
    self.unitPrice = unitPrice
-
 
4781
 
-
 
4782
  def read(self, iprot):
-
 
4783
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4784
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4785
      return
-
 
4786
    iprot.readStructBegin()
-
 
4787
    while True:
-
 
4788
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4789
      if ftype == TType.STOP:
-
 
4790
        break
-
 
4791
      if fid == 1:
-
 
4792
        if ftype == TType.I64:
-
 
4793
          self.orderId = iprot.readI64();
-
 
4794
        else:
-
 
4795
          iprot.skip(ftype)
-
 
4796
      elif fid == 2:
-
 
4797
        if ftype == TType.DOUBLE:
-
 
4798
          self.unitPrice = iprot.readDouble();
-
 
4799
        else:
-
 
4800
          iprot.skip(ftype)
-
 
4801
      else:
-
 
4802
        iprot.skip(ftype)
-
 
4803
      iprot.readFieldEnd()
-
 
4804
    iprot.readStructEnd()
-
 
4805
 
-
 
4806
  def write(self, oprot):
-
 
4807
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4808
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4809
      return
-
 
4810
    oprot.writeStructBegin('scanForOursExternalSaleReturn_args')
-
 
4811
    if self.orderId is not None:
-
 
4812
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
4813
      oprot.writeI64(self.orderId)
-
 
4814
      oprot.writeFieldEnd()
-
 
4815
    if self.unitPrice is not None:
-
 
4816
      oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 2)
-
 
4817
      oprot.writeDouble(self.unitPrice)
-
 
4818
      oprot.writeFieldEnd()
-
 
4819
    oprot.writeFieldStop()
-
 
4820
    oprot.writeStructEnd()
-
 
4821
 
-
 
4822
  def validate(self):
-
 
4823
    return
-
 
4824
 
-
 
4825
 
-
 
4826
  def __repr__(self):
-
 
4827
    L = ['%s=%r' % (key, value)
-
 
4828
      for key, value in self.__dict__.iteritems()]
-
 
4829
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4830
 
-
 
4831
  def __eq__(self, other):
-
 
4832
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4833
 
-
 
4834
  def __ne__(self, other):
-
 
4835
    return not (self == other)
-
 
4836
 
-
 
4837
class scanForOursExternalSaleReturn_result:
-
 
4838
 
-
 
4839
  thrift_spec = (
-
 
4840
  )
-
 
4841
 
-
 
4842
  def read(self, iprot):
-
 
4843
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4844
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4845
      return
-
 
4846
    iprot.readStructBegin()
-
 
4847
    while True:
-
 
4848
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4849
      if ftype == TType.STOP:
-
 
4850
        break
-
 
4851
      else:
-
 
4852
        iprot.skip(ftype)
-
 
4853
      iprot.readFieldEnd()
-
 
4854
    iprot.readStructEnd()
-
 
4855
 
-
 
4856
  def write(self, oprot):
-
 
4857
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4858
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4859
      return
-
 
4860
    oprot.writeStructBegin('scanForOursExternalSaleReturn_result')
-
 
4861
    oprot.writeFieldStop()
-
 
4862
    oprot.writeStructEnd()
-
 
4863
 
-
 
4864
  def validate(self):
-
 
4865
    return
-
 
4866
 
-
 
4867
 
-
 
4868
  def __repr__(self):
-
 
4869
    L = ['%s=%r' % (key, value)
-
 
4870
      for key, value in self.__dict__.iteritems()]
-
 
4871
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4872
 
-
 
4873
  def __eq__(self, other):
-
 
4874
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4875
 
-
 
4876
  def __ne__(self, other):
-
 
4877
    return not (self == other)
-
 
4878
 
-
 
4879
class getMovementNonSerializedInventoryByScans_args:
-
 
4880
  """
-
 
4881
  Attributes:
-
 
4882
   - startDate
-
 
4883
   - endDate
-
 
4884
  """
-
 
4885
 
-
 
4886
  thrift_spec = (
-
 
4887
    None, # 0
-
 
4888
    (1, TType.I64, 'startDate', None, None, ), # 1
-
 
4889
    (2, TType.I64, 'endDate', None, None, ), # 2
-
 
4890
  )
-
 
4891
 
-
 
4892
  def __init__(self, startDate=None, endDate=None,):
-
 
4893
    self.startDate = startDate
-
 
4894
    self.endDate = endDate
-
 
4895
 
-
 
4896
  def read(self, iprot):
-
 
4897
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4898
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4899
      return
-
 
4900
    iprot.readStructBegin()
-
 
4901
    while True:
-
 
4902
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4903
      if ftype == TType.STOP:
-
 
4904
        break
-
 
4905
      if fid == 1:
-
 
4906
        if ftype == TType.I64:
-
 
4907
          self.startDate = iprot.readI64();
-
 
4908
        else:
-
 
4909
          iprot.skip(ftype)
-
 
4910
      elif fid == 2:
-
 
4911
        if ftype == TType.I64:
-
 
4912
          self.endDate = iprot.readI64();
-
 
4913
        else:
-
 
4914
          iprot.skip(ftype)
-
 
4915
      else:
-
 
4916
        iprot.skip(ftype)
-
 
4917
      iprot.readFieldEnd()
-
 
4918
    iprot.readStructEnd()
-
 
4919
 
-
 
4920
  def write(self, oprot):
-
 
4921
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4922
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4923
      return
-
 
4924
    oprot.writeStructBegin('getMovementNonSerializedInventoryByScans_args')
-
 
4925
    if self.startDate is not None:
-
 
4926
      oprot.writeFieldBegin('startDate', TType.I64, 1)
-
 
4927
      oprot.writeI64(self.startDate)
-
 
4928
      oprot.writeFieldEnd()
-
 
4929
    if self.endDate is not None:
-
 
4930
      oprot.writeFieldBegin('endDate', TType.I64, 2)
-
 
4931
      oprot.writeI64(self.endDate)
-
 
4932
      oprot.writeFieldEnd()
-
 
4933
    oprot.writeFieldStop()
-
 
4934
    oprot.writeStructEnd()
-
 
4935
 
-
 
4936
  def validate(self):
-
 
4937
    return
-
 
4938
 
-
 
4939
 
-
 
4940
  def __repr__(self):
-
 
4941
    L = ['%s=%r' % (key, value)
-
 
4942
      for key, value in self.__dict__.iteritems()]
-
 
4943
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4944
 
-
 
4945
  def __eq__(self, other):
-
 
4946
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4947
 
-
 
4948
  def __ne__(self, other):
-
 
4949
    return not (self == other)
-
 
4950
 
-
 
4951
class getMovementNonSerializedInventoryByScans_result:
-
 
4952
  """
-
 
4953
  Attributes:
-
 
4954
   - success
-
 
4955
  """
-
 
4956
 
-
 
4957
  thrift_spec = (
-
 
4958
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
-
 
4959
  )
-
 
4960
 
-
 
4961
  def __init__(self, success=None,):
-
 
4962
    self.success = success
-
 
4963
 
-
 
4964
  def read(self, iprot):
-
 
4965
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4966
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4967
      return
-
 
4968
    iprot.readStructBegin()
-
 
4969
    while True:
-
 
4970
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4971
      if ftype == TType.STOP:
-
 
4972
        break
-
 
4973
      if fid == 0:
-
 
4974
        if ftype == TType.LIST:
-
 
4975
          self.success = []
-
 
4976
          (_etype101, _size98) = iprot.readListBegin()
-
 
4977
          for _i102 in xrange(_size98):
-
 
4978
            _elem103 = InventoryMovement()
-
 
4979
            _elem103.read(iprot)
-
 
4980
            self.success.append(_elem103)
-
 
4981
          iprot.readListEnd()
-
 
4982
        else:
-
 
4983
          iprot.skip(ftype)
-
 
4984
      else:
-
 
4985
        iprot.skip(ftype)
-
 
4986
      iprot.readFieldEnd()
-
 
4987
    iprot.readStructEnd()
-
 
4988
 
-
 
4989
  def write(self, oprot):
-
 
4990
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4991
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4992
      return
-
 
4993
    oprot.writeStructBegin('getMovementNonSerializedInventoryByScans_result')
-
 
4994
    if self.success is not None:
-
 
4995
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
4996
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
4997
      for iter104 in self.success:
-
 
4998
        iter104.write(oprot)
-
 
4999
      oprot.writeListEnd()
-
 
5000
      oprot.writeFieldEnd()
-
 
5001
    oprot.writeFieldStop()
-
 
5002
    oprot.writeStructEnd()
-
 
5003
 
-
 
5004
  def validate(self):
-
 
5005
    return
-
 
5006
 
-
 
5007
 
-
 
5008
  def __repr__(self):
-
 
5009
    L = ['%s=%r' % (key, value)
-
 
5010
      for key, value in self.__dict__.iteritems()]
-
 
5011
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5012
 
-
 
5013
  def __eq__(self, other):
-
 
5014
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5015
 
-
 
5016
  def __ne__(self, other):
-
 
5017
    return not (self == other)
-
 
5018
 
-
 
5019
class getMovementSerializedInventoryByScans_args:
-
 
5020
  """
-
 
5021
  Attributes:
-
 
5022
   - startDate
-
 
5023
   - endDate
-
 
5024
  """
-
 
5025
 
-
 
5026
  thrift_spec = (
-
 
5027
    None, # 0
-
 
5028
    (1, TType.I64, 'startDate', None, None, ), # 1
-
 
5029
    (2, TType.I64, 'endDate', None, None, ), # 2
-
 
5030
  )
-
 
5031
 
-
 
5032
  def __init__(self, startDate=None, endDate=None,):
-
 
5033
    self.startDate = startDate
-
 
5034
    self.endDate = endDate
-
 
5035
 
-
 
5036
  def read(self, iprot):
-
 
5037
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5038
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5039
      return
-
 
5040
    iprot.readStructBegin()
-
 
5041
    while True:
-
 
5042
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5043
      if ftype == TType.STOP:
-
 
5044
        break
-
 
5045
      if fid == 1:
-
 
5046
        if ftype == TType.I64:
-
 
5047
          self.startDate = iprot.readI64();
-
 
5048
        else:
-
 
5049
          iprot.skip(ftype)
-
 
5050
      elif fid == 2:
-
 
5051
        if ftype == TType.I64:
-
 
5052
          self.endDate = iprot.readI64();
-
 
5053
        else:
-
 
5054
          iprot.skip(ftype)
-
 
5055
      else:
-
 
5056
        iprot.skip(ftype)
-
 
5057
      iprot.readFieldEnd()
-
 
5058
    iprot.readStructEnd()
-
 
5059
 
-
 
5060
  def write(self, oprot):
-
 
5061
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5062
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5063
      return
-
 
5064
    oprot.writeStructBegin('getMovementSerializedInventoryByScans_args')
-
 
5065
    if self.startDate is not None:
-
 
5066
      oprot.writeFieldBegin('startDate', TType.I64, 1)
-
 
5067
      oprot.writeI64(self.startDate)
-
 
5068
      oprot.writeFieldEnd()
-
 
5069
    if self.endDate is not None:
-
 
5070
      oprot.writeFieldBegin('endDate', TType.I64, 2)
-
 
5071
      oprot.writeI64(self.endDate)
-
 
5072
      oprot.writeFieldEnd()
-
 
5073
    oprot.writeFieldStop()
-
 
5074
    oprot.writeStructEnd()
-
 
5075
 
-
 
5076
  def validate(self):
-
 
5077
    return
-
 
5078
 
-
 
5079
 
-
 
5080
  def __repr__(self):
-
 
5081
    L = ['%s=%r' % (key, value)
-
 
5082
      for key, value in self.__dict__.iteritems()]
-
 
5083
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5084
 
-
 
5085
  def __eq__(self, other):
-
 
5086
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5087
 
-
 
5088
  def __ne__(self, other):
-
 
5089
    return not (self == other)
-
 
5090
 
-
 
5091
class getMovementSerializedInventoryByScans_result:
-
 
5092
  """
-
 
5093
  Attributes:
-
 
5094
   - success
-
 
5095
  """
-
 
5096
 
-
 
5097
  thrift_spec = (
-
 
5098
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
-
 
5099
  )
-
 
5100
 
-
 
5101
  def __init__(self, success=None,):
-
 
5102
    self.success = success
-
 
5103
 
-
 
5104
  def read(self, iprot):
-
 
5105
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5106
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5107
      return
-
 
5108
    iprot.readStructBegin()
-
 
5109
    while True:
-
 
5110
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5111
      if ftype == TType.STOP:
-
 
5112
        break
-
 
5113
      if fid == 0:
-
 
5114
        if ftype == TType.LIST:
-
 
5115
          self.success = []
-
 
5116
          (_etype108, _size105) = iprot.readListBegin()
-
 
5117
          for _i109 in xrange(_size105):
-
 
5118
            _elem110 = InventoryMovement()
-
 
5119
            _elem110.read(iprot)
-
 
5120
            self.success.append(_elem110)
-
 
5121
          iprot.readListEnd()
-
 
5122
        else:
-
 
5123
          iprot.skip(ftype)
-
 
5124
      else:
-
 
5125
        iprot.skip(ftype)
-
 
5126
      iprot.readFieldEnd()
-
 
5127
    iprot.readStructEnd()
-
 
5128
 
-
 
5129
  def write(self, oprot):
-
 
5130
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5131
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5132
      return
-
 
5133
    oprot.writeStructBegin('getMovementSerializedInventoryByScans_result')
-
 
5134
    if self.success is not None:
-
 
5135
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
5136
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
5137
      for iter111 in self.success:
-
 
5138
        iter111.write(oprot)
-
 
5139
      oprot.writeListEnd()
-
 
5140
      oprot.writeFieldEnd()
-
 
5141
    oprot.writeFieldStop()
-
 
5142
    oprot.writeStructEnd()
-
 
5143
 
3949
  def validate(self):
5144
  def validate(self):
3950
    return
5145
    return
3951
 
5146
 
3952
 
5147
 
3953
  def __repr__(self):
5148
  def __repr__(self):