Subversion Repositories SmartDukaan

Rev

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

Rev 7216 Rev 7410
Line 35... Line 35...
35
     - itemId
35
     - itemId
36
     - fulfilmentWarehouseId
36
     - fulfilmentWarehouseId
37
    """
37
    """
38
    pass
38
    pass
39
 
39
 
40
  def scan(self, inventoryItem, type, quantity, billingWarehouseId):
40
  def scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
41
    """
41
    """
42
    Scan non-serialized items.
42
    Scan non-serialized items.
43
 
43
 
44
    Parameters:
44
    Parameters:
45
     - inventoryItem
45
     - inventoryItem
46
     - type
46
     - type
47
     - quantity
47
     - quantity
48
     - billingWarehouseId
48
     - billingWarehouseId
-
 
49
     - transferLotId
49
    """
50
    """
50
    pass
51
    pass
51
 
52
 
52
  def scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
53
  def scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
53
    """
54
    """
Line 312... Line 313...
312
     - freebieItemId
313
     - freebieItemId
313
     - scanType
314
     - scanType
314
    """
315
    """
315
    pass
316
    pass
316
 
317
 
-
 
318
  def isItemTransferAllowed(self, warehouseId, transferWarehouseId):
-
 
319
    """
-
 
320
    Parameters:
-
 
321
     - warehouseId
-
 
322
     - transferWarehouseId
-
 
323
    """
-
 
324
    pass
-
 
325
 
-
 
326
  def createTransferLot(self, originWarehouseId, destWarehouseId):
-
 
327
    """
-
 
328
    Parameters:
-
 
329
     - originWarehouseId
-
 
330
     - destWarehouseId
-
 
331
    """
-
 
332
    pass
-
 
333
 
-
 
334
  def getTransferLot(self, transferLotId):
-
 
335
    """
-
 
336
    Parameters:
-
 
337
     - transferLotId
-
 
338
    """
-
 
339
    pass
-
 
340
 
-
 
341
  def markTransferLotAsReceived(self, id, remoteTransferRefNumber):
-
 
342
    """
-
 
343
    Parameters:
-
 
344
     - id
-
 
345
     - remoteTransferRefNumber
-
 
346
    """
-
 
347
    pass
-
 
348
 
-
 
349
  def getTransferLotsByDate(self, fromDate, toDate):
-
 
350
    """
-
 
351
    Parameters:
-
 
352
     - fromDate
-
 
353
     - toDate
-
 
354
    """
-
 
355
    pass
-
 
356
 
-
 
357
  def getAllowedDestinationWarehousesForTransfer(self, warehouseId):
-
 
358
    """
-
 
359
    Parameters:
-
 
360
     - warehouseId
-
 
361
    """
-
 
362
    pass
-
 
363
 
-
 
364
  def getItemsInTransferLot(self, transferLotId):
-
 
365
    """
-
 
366
    Parameters:
-
 
367
     - transferLotId
-
 
368
    """
-
 
369
    pass
-
 
370
 
-
 
371
  def markItemsAsReceivedForTransferLot(self, id):
-
 
372
    """
-
 
373
    Parameters:
-
 
374
     - id
-
 
375
    """
-
 
376
    pass
-
 
377
 
-
 
378
  def updateTransferLotAfterItemReceive(self, id):
-
 
379
    """
-
 
380
    Parameters:
-
 
381
     - id
-
 
382
    """
-
 
383
    pass
-
 
384
 
-
 
385
  def scanForTransfer(self, inventoryItems, type, transferLotId):
-
 
386
    """
-
 
387
    Parameters:
-
 
388
     - inventoryItems
-
 
389
     - type
-
 
390
     - transferLotId
-
 
391
    """
-
 
392
    pass
-
 
393
 
317
 
394
 
318
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
395
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
319
  def __init__(self, iprot, oprot=None):
396
  def __init__(self, iprot, oprot=None):
320
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
397
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
321
 
398
 
Line 389... Line 466...
389
      return result.success
466
      return result.success
390
    if result.wex is not None:
467
    if result.wex is not None:
391
      raise result.wex
468
      raise result.wex
392
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
469
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
393
 
470
 
394
  def scan(self, inventoryItem, type, quantity, billingWarehouseId):
471
  def scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
395
    """
472
    """
396
    Scan non-serialized items.
473
    Scan non-serialized items.
397
 
474
 
398
    Parameters:
475
    Parameters:
399
     - inventoryItem
476
     - inventoryItem
400
     - type
477
     - type
401
     - quantity
478
     - quantity
402
     - billingWarehouseId
479
     - billingWarehouseId
-
 
480
     - transferLotId
403
    """
481
    """
404
    self.send_scan(inventoryItem, type, quantity, billingWarehouseId)
482
    self.send_scan(inventoryItem, type, quantity, billingWarehouseId, transferLotId)
405
    self.recv_scan()
483
    self.recv_scan()
406
 
484
 
407
  def send_scan(self, inventoryItem, type, quantity, billingWarehouseId):
485
  def send_scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
408
    self._oprot.writeMessageBegin('scan', TMessageType.CALL, self._seqid)
486
    self._oprot.writeMessageBegin('scan', TMessageType.CALL, self._seqid)
409
    args = scan_args()
487
    args = scan_args()
410
    args.inventoryItem = inventoryItem
488
    args.inventoryItem = inventoryItem
411
    args.type = type
489
    args.type = type
412
    args.quantity = quantity
490
    args.quantity = quantity
413
    args.billingWarehouseId = billingWarehouseId
491
    args.billingWarehouseId = billingWarehouseId
-
 
492
    args.transferLotId = transferLotId
414
    args.write(self._oprot)
493
    args.write(self._oprot)
415
    self._oprot.writeMessageEnd()
494
    self._oprot.writeMessageEnd()
416
    self._oprot.trans.flush()
495
    self._oprot.trans.flush()
417
 
496
 
418
  def recv_scan(self, ):
497
  def recv_scan(self, ):
Line 1173... Line 1252...
1173
      self._iprot.readMessageEnd()
1252
      self._iprot.readMessageEnd()
1174
      raise x
1253
      raise x
1175
    result = scanForOursExternalSaleReturn_result()
1254
    result = scanForOursExternalSaleReturn_result()
1176
    result.read(self._iprot)
1255
    result.read(self._iprot)
1177
    self._iprot.readMessageEnd()
1256
    self._iprot.readMessageEnd()
-
 
1257
    if result.ex is not None:
-
 
1258
      raise result.ex
1178
    return
1259
    return
1179
 
1260
 
1180
  def getMovementNonSerializedInventoryByScans(self, startDate, endDate):
1261
  def getMovementNonSerializedInventoryByScans(self, startDate, endDate):
1181
    """
1262
    """
1182
    Parameters:
1263
    Parameters:
Line 1377... Line 1458...
1377
    self._iprot.readMessageEnd()
1458
    self._iprot.readMessageEnd()
1378
    if result.wex is not None:
1459
    if result.wex is not None:
1379
      raise result.wex
1460
      raise result.wex
1380
    return
1461
    return
1381
 
1462
 
-
 
1463
  def isItemTransferAllowed(self, warehouseId, transferWarehouseId):
-
 
1464
    """
-
 
1465
    Parameters:
-
 
1466
     - warehouseId
-
 
1467
     - transferWarehouseId
-
 
1468
    """
-
 
1469
    self.send_isItemTransferAllowed(warehouseId, transferWarehouseId)
-
 
1470
    return self.recv_isItemTransferAllowed()
-
 
1471
 
-
 
1472
  def send_isItemTransferAllowed(self, warehouseId, transferWarehouseId):
-
 
1473
    self._oprot.writeMessageBegin('isItemTransferAllowed', TMessageType.CALL, self._seqid)
-
 
1474
    args = isItemTransferAllowed_args()
-
 
1475
    args.warehouseId = warehouseId
-
 
1476
    args.transferWarehouseId = transferWarehouseId
-
 
1477
    args.write(self._oprot)
-
 
1478
    self._oprot.writeMessageEnd()
-
 
1479
    self._oprot.trans.flush()
-
 
1480
 
-
 
1481
  def recv_isItemTransferAllowed(self, ):
-
 
1482
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1483
    if mtype == TMessageType.EXCEPTION:
-
 
1484
      x = TApplicationException()
-
 
1485
      x.read(self._iprot)
-
 
1486
      self._iprot.readMessageEnd()
-
 
1487
      raise x
-
 
1488
    result = isItemTransferAllowed_result()
-
 
1489
    result.read(self._iprot)
-
 
1490
    self._iprot.readMessageEnd()
-
 
1491
    if result.success is not None:
-
 
1492
      return result.success
-
 
1493
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isItemTransferAllowed failed: unknown result");
-
 
1494
 
-
 
1495
  def createTransferLot(self, originWarehouseId, destWarehouseId):
-
 
1496
    """
-
 
1497
    Parameters:
-
 
1498
     - originWarehouseId
-
 
1499
     - destWarehouseId
-
 
1500
    """
-
 
1501
    self.send_createTransferLot(originWarehouseId, destWarehouseId)
-
 
1502
    return self.recv_createTransferLot()
-
 
1503
 
-
 
1504
  def send_createTransferLot(self, originWarehouseId, destWarehouseId):
-
 
1505
    self._oprot.writeMessageBegin('createTransferLot', TMessageType.CALL, self._seqid)
-
 
1506
    args = createTransferLot_args()
-
 
1507
    args.originWarehouseId = originWarehouseId
-
 
1508
    args.destWarehouseId = destWarehouseId
-
 
1509
    args.write(self._oprot)
-
 
1510
    self._oprot.writeMessageEnd()
-
 
1511
    self._oprot.trans.flush()
-
 
1512
 
-
 
1513
  def recv_createTransferLot(self, ):
-
 
1514
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1515
    if mtype == TMessageType.EXCEPTION:
-
 
1516
      x = TApplicationException()
-
 
1517
      x.read(self._iprot)
-
 
1518
      self._iprot.readMessageEnd()
-
 
1519
      raise x
-
 
1520
    result = createTransferLot_result()
-
 
1521
    result.read(self._iprot)
-
 
1522
    self._iprot.readMessageEnd()
-
 
1523
    if result.success is not None:
-
 
1524
      return result.success
-
 
1525
    if result.wex is not None:
-
 
1526
      raise result.wex
-
 
1527
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createTransferLot failed: unknown result");
-
 
1528
 
-
 
1529
  def getTransferLot(self, transferLotId):
-
 
1530
    """
-
 
1531
    Parameters:
-
 
1532
     - transferLotId
-
 
1533
    """
-
 
1534
    self.send_getTransferLot(transferLotId)
-
 
1535
    return self.recv_getTransferLot()
-
 
1536
 
-
 
1537
  def send_getTransferLot(self, transferLotId):
-
 
1538
    self._oprot.writeMessageBegin('getTransferLot', TMessageType.CALL, self._seqid)
-
 
1539
    args = getTransferLot_args()
-
 
1540
    args.transferLotId = transferLotId
-
 
1541
    args.write(self._oprot)
-
 
1542
    self._oprot.writeMessageEnd()
-
 
1543
    self._oprot.trans.flush()
-
 
1544
 
-
 
1545
  def recv_getTransferLot(self, ):
-
 
1546
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1547
    if mtype == TMessageType.EXCEPTION:
-
 
1548
      x = TApplicationException()
-
 
1549
      x.read(self._iprot)
-
 
1550
      self._iprot.readMessageEnd()
-
 
1551
      raise x
-
 
1552
    result = getTransferLot_result()
-
 
1553
    result.read(self._iprot)
-
 
1554
    self._iprot.readMessageEnd()
-
 
1555
    if result.success is not None:
-
 
1556
      return result.success
-
 
1557
    if result.wex is not None:
-
 
1558
      raise result.wex
-
 
1559
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLot failed: unknown result");
-
 
1560
 
-
 
1561
  def markTransferLotAsReceived(self, id, remoteTransferRefNumber):
-
 
1562
    """
-
 
1563
    Parameters:
-
 
1564
     - id
-
 
1565
     - remoteTransferRefNumber
-
 
1566
    """
-
 
1567
    self.send_markTransferLotAsReceived(id, remoteTransferRefNumber)
-
 
1568
    self.recv_markTransferLotAsReceived()
-
 
1569
 
-
 
1570
  def send_markTransferLotAsReceived(self, id, remoteTransferRefNumber):
-
 
1571
    self._oprot.writeMessageBegin('markTransferLotAsReceived', TMessageType.CALL, self._seqid)
-
 
1572
    args = markTransferLotAsReceived_args()
-
 
1573
    args.id = id
-
 
1574
    args.remoteTransferRefNumber = remoteTransferRefNumber
-
 
1575
    args.write(self._oprot)
-
 
1576
    self._oprot.writeMessageEnd()
-
 
1577
    self._oprot.trans.flush()
-
 
1578
 
-
 
1579
  def recv_markTransferLotAsReceived(self, ):
-
 
1580
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1581
    if mtype == TMessageType.EXCEPTION:
-
 
1582
      x = TApplicationException()
-
 
1583
      x.read(self._iprot)
-
 
1584
      self._iprot.readMessageEnd()
-
 
1585
      raise x
-
 
1586
    result = markTransferLotAsReceived_result()
-
 
1587
    result.read(self._iprot)
-
 
1588
    self._iprot.readMessageEnd()
-
 
1589
    if result.wex is not None:
-
 
1590
      raise result.wex
-
 
1591
    return
-
 
1592
 
-
 
1593
  def getTransferLotsByDate(self, fromDate, toDate):
-
 
1594
    """
-
 
1595
    Parameters:
-
 
1596
     - fromDate
-
 
1597
     - toDate
-
 
1598
    """
-
 
1599
    self.send_getTransferLotsByDate(fromDate, toDate)
-
 
1600
    return self.recv_getTransferLotsByDate()
-
 
1601
 
-
 
1602
  def send_getTransferLotsByDate(self, fromDate, toDate):
-
 
1603
    self._oprot.writeMessageBegin('getTransferLotsByDate', TMessageType.CALL, self._seqid)
-
 
1604
    args = getTransferLotsByDate_args()
-
 
1605
    args.fromDate = fromDate
-
 
1606
    args.toDate = toDate
-
 
1607
    args.write(self._oprot)
-
 
1608
    self._oprot.writeMessageEnd()
-
 
1609
    self._oprot.trans.flush()
-
 
1610
 
-
 
1611
  def recv_getTransferLotsByDate(self, ):
-
 
1612
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1613
    if mtype == TMessageType.EXCEPTION:
-
 
1614
      x = TApplicationException()
-
 
1615
      x.read(self._iprot)
-
 
1616
      self._iprot.readMessageEnd()
-
 
1617
      raise x
-
 
1618
    result = getTransferLotsByDate_result()
-
 
1619
    result.read(self._iprot)
-
 
1620
    self._iprot.readMessageEnd()
-
 
1621
    if result.success is not None:
-
 
1622
      return result.success
-
 
1623
    if result.wex is not None:
-
 
1624
      raise result.wex
-
 
1625
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLotsByDate failed: unknown result");
-
 
1626
 
-
 
1627
  def getAllowedDestinationWarehousesForTransfer(self, warehouseId):
-
 
1628
    """
-
 
1629
    Parameters:
-
 
1630
     - warehouseId
-
 
1631
    """
-
 
1632
    self.send_getAllowedDestinationWarehousesForTransfer(warehouseId)
-
 
1633
    return self.recv_getAllowedDestinationWarehousesForTransfer()
-
 
1634
 
-
 
1635
  def send_getAllowedDestinationWarehousesForTransfer(self, warehouseId):
-
 
1636
    self._oprot.writeMessageBegin('getAllowedDestinationWarehousesForTransfer', TMessageType.CALL, self._seqid)
-
 
1637
    args = getAllowedDestinationWarehousesForTransfer_args()
-
 
1638
    args.warehouseId = warehouseId
-
 
1639
    args.write(self._oprot)
-
 
1640
    self._oprot.writeMessageEnd()
-
 
1641
    self._oprot.trans.flush()
-
 
1642
 
-
 
1643
  def recv_getAllowedDestinationWarehousesForTransfer(self, ):
-
 
1644
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1645
    if mtype == TMessageType.EXCEPTION:
-
 
1646
      x = TApplicationException()
-
 
1647
      x.read(self._iprot)
-
 
1648
      self._iprot.readMessageEnd()
-
 
1649
      raise x
-
 
1650
    result = getAllowedDestinationWarehousesForTransfer_result()
-
 
1651
    result.read(self._iprot)
-
 
1652
    self._iprot.readMessageEnd()
-
 
1653
    if result.success is not None:
-
 
1654
      return result.success
-
 
1655
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllowedDestinationWarehousesForTransfer failed: unknown result");
-
 
1656
 
-
 
1657
  def getItemsInTransferLot(self, transferLotId):
-
 
1658
    """
-
 
1659
    Parameters:
-
 
1660
     - transferLotId
-
 
1661
    """
-
 
1662
    self.send_getItemsInTransferLot(transferLotId)
-
 
1663
    return self.recv_getItemsInTransferLot()
-
 
1664
 
-
 
1665
  def send_getItemsInTransferLot(self, transferLotId):
-
 
1666
    self._oprot.writeMessageBegin('getItemsInTransferLot', TMessageType.CALL, self._seqid)
-
 
1667
    args = getItemsInTransferLot_args()
-
 
1668
    args.transferLotId = transferLotId
-
 
1669
    args.write(self._oprot)
-
 
1670
    self._oprot.writeMessageEnd()
-
 
1671
    self._oprot.trans.flush()
-
 
1672
 
-
 
1673
  def recv_getItemsInTransferLot(self, ):
-
 
1674
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1675
    if mtype == TMessageType.EXCEPTION:
-
 
1676
      x = TApplicationException()
-
 
1677
      x.read(self._iprot)
-
 
1678
      self._iprot.readMessageEnd()
-
 
1679
      raise x
-
 
1680
    result = getItemsInTransferLot_result()
-
 
1681
    result.read(self._iprot)
-
 
1682
    self._iprot.readMessageEnd()
-
 
1683
    if result.success is not None:
-
 
1684
      return result.success
-
 
1685
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsInTransferLot failed: unknown result");
-
 
1686
 
-
 
1687
  def markItemsAsReceivedForTransferLot(self, id):
-
 
1688
    """
-
 
1689
    Parameters:
-
 
1690
     - id
-
 
1691
    """
-
 
1692
    self.send_markItemsAsReceivedForTransferLot(id)
-
 
1693
    self.recv_markItemsAsReceivedForTransferLot()
-
 
1694
 
-
 
1695
  def send_markItemsAsReceivedForTransferLot(self, id):
-
 
1696
    self._oprot.writeMessageBegin('markItemsAsReceivedForTransferLot', TMessageType.CALL, self._seqid)
-
 
1697
    args = markItemsAsReceivedForTransferLot_args()
-
 
1698
    args.id = id
-
 
1699
    args.write(self._oprot)
-
 
1700
    self._oprot.writeMessageEnd()
-
 
1701
    self._oprot.trans.flush()
-
 
1702
 
-
 
1703
  def recv_markItemsAsReceivedForTransferLot(self, ):
-
 
1704
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1705
    if mtype == TMessageType.EXCEPTION:
-
 
1706
      x = TApplicationException()
-
 
1707
      x.read(self._iprot)
-
 
1708
      self._iprot.readMessageEnd()
-
 
1709
      raise x
-
 
1710
    result = markItemsAsReceivedForTransferLot_result()
-
 
1711
    result.read(self._iprot)
-
 
1712
    self._iprot.readMessageEnd()
-
 
1713
    if result.wex is not None:
-
 
1714
      raise result.wex
-
 
1715
    return
-
 
1716
 
-
 
1717
  def updateTransferLotAfterItemReceive(self, id):
-
 
1718
    """
-
 
1719
    Parameters:
-
 
1720
     - id
-
 
1721
    """
-
 
1722
    self.send_updateTransferLotAfterItemReceive(id)
-
 
1723
    return self.recv_updateTransferLotAfterItemReceive()
-
 
1724
 
-
 
1725
  def send_updateTransferLotAfterItemReceive(self, id):
-
 
1726
    self._oprot.writeMessageBegin('updateTransferLotAfterItemReceive', TMessageType.CALL, self._seqid)
-
 
1727
    args = updateTransferLotAfterItemReceive_args()
-
 
1728
    args.id = id
-
 
1729
    args.write(self._oprot)
-
 
1730
    self._oprot.writeMessageEnd()
-
 
1731
    self._oprot.trans.flush()
-
 
1732
 
-
 
1733
  def recv_updateTransferLotAfterItemReceive(self, ):
-
 
1734
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1735
    if mtype == TMessageType.EXCEPTION:
-
 
1736
      x = TApplicationException()
-
 
1737
      x.read(self._iprot)
-
 
1738
      self._iprot.readMessageEnd()
-
 
1739
      raise x
-
 
1740
    result = updateTransferLotAfterItemReceive_result()
-
 
1741
    result.read(self._iprot)
-
 
1742
    self._iprot.readMessageEnd()
-
 
1743
    if result.success is not None:
-
 
1744
      return result.success
-
 
1745
    if result.wex is not None:
-
 
1746
      raise result.wex
-
 
1747
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTransferLotAfterItemReceive failed: unknown result");
-
 
1748
 
-
 
1749
  def scanForTransfer(self, inventoryItems, type, transferLotId):
-
 
1750
    """
-
 
1751
    Parameters:
-
 
1752
     - inventoryItems
-
 
1753
     - type
-
 
1754
     - transferLotId
-
 
1755
    """
-
 
1756
    self.send_scanForTransfer(inventoryItems, type, transferLotId)
-
 
1757
    self.recv_scanForTransfer()
-
 
1758
 
-
 
1759
  def send_scanForTransfer(self, inventoryItems, type, transferLotId):
-
 
1760
    self._oprot.writeMessageBegin('scanForTransfer', TMessageType.CALL, self._seqid)
-
 
1761
    args = scanForTransfer_args()
-
 
1762
    args.inventoryItems = inventoryItems
-
 
1763
    args.type = type
-
 
1764
    args.transferLotId = transferLotId
-
 
1765
    args.write(self._oprot)
-
 
1766
    self._oprot.writeMessageEnd()
-
 
1767
    self._oprot.trans.flush()
-
 
1768
 
-
 
1769
  def recv_scanForTransfer(self, ):
-
 
1770
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1771
    if mtype == TMessageType.EXCEPTION:
-
 
1772
      x = TApplicationException()
-
 
1773
      x.read(self._iprot)
-
 
1774
      self._iprot.readMessageEnd()
-
 
1775
      raise x
-
 
1776
    result = scanForTransfer_result()
-
 
1777
    result.read(self._iprot)
-
 
1778
    self._iprot.readMessageEnd()
-
 
1779
    if result.wex is not None:
-
 
1780
      raise result.wex
-
 
1781
    return
-
 
1782
 
1382
 
1783
 
1383
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
1784
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
1384
  def __init__(self, handler):
1785
  def __init__(self, handler):
1385
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1786
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1386
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
1787
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
Line 1412... Line 1813...
1412
    self._processMap["getMovementSerializedInventoryByScans"] = Processor.process_getMovementSerializedInventoryByScans
1813
    self._processMap["getMovementSerializedInventoryByScans"] = Processor.process_getMovementSerializedInventoryByScans
1413
    self._processMap["getCompleteMovementSerializedInventoryByScans"] = Processor.process_getCompleteMovementSerializedInventoryByScans
1814
    self._processMap["getCompleteMovementSerializedInventoryByScans"] = Processor.process_getCompleteMovementSerializedInventoryByScans
1414
    self._processMap["getCompleteMovementNonSerializedInventoryByScans"] = Processor.process_getCompleteMovementNonSerializedInventoryByScans
1815
    self._processMap["getCompleteMovementNonSerializedInventoryByScans"] = Processor.process_getCompleteMovementNonSerializedInventoryByScans
1415
    self._processMap["scanfreebie"] = Processor.process_scanfreebie
1816
    self._processMap["scanfreebie"] = Processor.process_scanfreebie
1416
    self._processMap["reshipfreebie"] = Processor.process_reshipfreebie
1817
    self._processMap["reshipfreebie"] = Processor.process_reshipfreebie
-
 
1818
    self._processMap["isItemTransferAllowed"] = Processor.process_isItemTransferAllowed
-
 
1819
    self._processMap["createTransferLot"] = Processor.process_createTransferLot
-
 
1820
    self._processMap["getTransferLot"] = Processor.process_getTransferLot
-
 
1821
    self._processMap["markTransferLotAsReceived"] = Processor.process_markTransferLotAsReceived
-
 
1822
    self._processMap["getTransferLotsByDate"] = Processor.process_getTransferLotsByDate
-
 
1823
    self._processMap["getAllowedDestinationWarehousesForTransfer"] = Processor.process_getAllowedDestinationWarehousesForTransfer
-
 
1824
    self._processMap["getItemsInTransferLot"] = Processor.process_getItemsInTransferLot
-
 
1825
    self._processMap["markItemsAsReceivedForTransferLot"] = Processor.process_markItemsAsReceivedForTransferLot
-
 
1826
    self._processMap["updateTransferLotAfterItemReceive"] = Processor.process_updateTransferLotAfterItemReceive
-
 
1827
    self._processMap["scanForTransfer"] = Processor.process_scanForTransfer
1417
 
1828
 
1418
  def process(self, iprot, oprot):
1829
  def process(self, iprot, oprot):
1419
    (name, type, seqid) = iprot.readMessageBegin()
1830
    (name, type, seqid) = iprot.readMessageBegin()
1420
    if name not in self._processMap:
1831
    if name not in self._processMap:
1421
      iprot.skip(TType.STRUCT)
1832
      iprot.skip(TType.STRUCT)
Line 1462... Line 1873...
1462
    args = scan_args()
1873
    args = scan_args()
1463
    args.read(iprot)
1874
    args.read(iprot)
1464
    iprot.readMessageEnd()
1875
    iprot.readMessageEnd()
1465
    result = scan_result()
1876
    result = scan_result()
1466
    try:
1877
    try:
1467
      self._handler.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId)
1878
      self._handler.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId, args.transferLotId)
1468
    except WarehouseServiceException, wex:
1879
    except WarehouseServiceException, wex:
1469
      result.wex = wex
1880
      result.wex = wex
1470
    oprot.writeMessageBegin("scan", TMessageType.REPLY, seqid)
1881
    oprot.writeMessageBegin("scan", TMessageType.REPLY, seqid)
1471
    result.write(oprot)
1882
    result.write(oprot)
1472
    oprot.writeMessageEnd()
1883
    oprot.writeMessageEnd()
Line 1730... Line 2141...
1730
  def process_scanForOursExternalSaleReturn(self, seqid, iprot, oprot):
2141
  def process_scanForOursExternalSaleReturn(self, seqid, iprot, oprot):
1731
    args = scanForOursExternalSaleReturn_args()
2142
    args = scanForOursExternalSaleReturn_args()
1732
    args.read(iprot)
2143
    args.read(iprot)
1733
    iprot.readMessageEnd()
2144
    iprot.readMessageEnd()
1734
    result = scanForOursExternalSaleReturn_result()
2145
    result = scanForOursExternalSaleReturn_result()
-
 
2146
    try:
1735
    self._handler.scanForOursExternalSaleReturn(args.orderId, args.unitPrice)
2147
      self._handler.scanForOursExternalSaleReturn(args.orderId, args.unitPrice)
-
 
2148
    except WarehouseServiceException, ex:
-
 
2149
      result.ex = ex
1736
    oprot.writeMessageBegin("scanForOursExternalSaleReturn", TMessageType.REPLY, seqid)
2150
    oprot.writeMessageBegin("scanForOursExternalSaleReturn", TMessageType.REPLY, seqid)
1737
    result.write(oprot)
2151
    result.write(oprot)
1738
    oprot.writeMessageEnd()
2152
    oprot.writeMessageEnd()
1739
    oprot.trans.flush()
2153
    oprot.trans.flush()
1740
 
2154
 
Line 1808... Line 2222...
1808
    oprot.writeMessageBegin("reshipfreebie", TMessageType.REPLY, seqid)
2222
    oprot.writeMessageBegin("reshipfreebie", TMessageType.REPLY, seqid)
1809
    result.write(oprot)
2223
    result.write(oprot)
1810
    oprot.writeMessageEnd()
2224
    oprot.writeMessageEnd()
1811
    oprot.trans.flush()
2225
    oprot.trans.flush()
1812
 
2226
 
-
 
2227
  def process_isItemTransferAllowed(self, seqid, iprot, oprot):
-
 
2228
    args = isItemTransferAllowed_args()
-
 
2229
    args.read(iprot)
-
 
2230
    iprot.readMessageEnd()
-
 
2231
    result = isItemTransferAllowed_result()
-
 
2232
    result.success = self._handler.isItemTransferAllowed(args.warehouseId, args.transferWarehouseId)
-
 
2233
    oprot.writeMessageBegin("isItemTransferAllowed", TMessageType.REPLY, seqid)
-
 
2234
    result.write(oprot)
-
 
2235
    oprot.writeMessageEnd()
-
 
2236
    oprot.trans.flush()
-
 
2237
 
-
 
2238
  def process_createTransferLot(self, seqid, iprot, oprot):
-
 
2239
    args = createTransferLot_args()
-
 
2240
    args.read(iprot)
-
 
2241
    iprot.readMessageEnd()
-
 
2242
    result = createTransferLot_result()
-
 
2243
    try:
-
 
2244
      result.success = self._handler.createTransferLot(args.originWarehouseId, args.destWarehouseId)
-
 
2245
    except WarehouseServiceException, wex:
-
 
2246
      result.wex = wex
-
 
2247
    oprot.writeMessageBegin("createTransferLot", TMessageType.REPLY, seqid)
-
 
2248
    result.write(oprot)
-
 
2249
    oprot.writeMessageEnd()
-
 
2250
    oprot.trans.flush()
-
 
2251
 
-
 
2252
  def process_getTransferLot(self, seqid, iprot, oprot):
-
 
2253
    args = getTransferLot_args()
-
 
2254
    args.read(iprot)
-
 
2255
    iprot.readMessageEnd()
-
 
2256
    result = getTransferLot_result()
-
 
2257
    try:
-
 
2258
      result.success = self._handler.getTransferLot(args.transferLotId)
-
 
2259
    except WarehouseServiceException, wex:
-
 
2260
      result.wex = wex
-
 
2261
    oprot.writeMessageBegin("getTransferLot", TMessageType.REPLY, seqid)
-
 
2262
    result.write(oprot)
-
 
2263
    oprot.writeMessageEnd()
-
 
2264
    oprot.trans.flush()
-
 
2265
 
-
 
2266
  def process_markTransferLotAsReceived(self, seqid, iprot, oprot):
-
 
2267
    args = markTransferLotAsReceived_args()
-
 
2268
    args.read(iprot)
-
 
2269
    iprot.readMessageEnd()
-
 
2270
    result = markTransferLotAsReceived_result()
-
 
2271
    try:
-
 
2272
      self._handler.markTransferLotAsReceived(args.id, args.remoteTransferRefNumber)
-
 
2273
    except WarehouseServiceException, wex:
-
 
2274
      result.wex = wex
-
 
2275
    oprot.writeMessageBegin("markTransferLotAsReceived", TMessageType.REPLY, seqid)
-
 
2276
    result.write(oprot)
-
 
2277
    oprot.writeMessageEnd()
-
 
2278
    oprot.trans.flush()
-
 
2279
 
-
 
2280
  def process_getTransferLotsByDate(self, seqid, iprot, oprot):
-
 
2281
    args = getTransferLotsByDate_args()
-
 
2282
    args.read(iprot)
-
 
2283
    iprot.readMessageEnd()
-
 
2284
    result = getTransferLotsByDate_result()
-
 
2285
    try:
-
 
2286
      result.success = self._handler.getTransferLotsByDate(args.fromDate, args.toDate)
-
 
2287
    except WarehouseServiceException, wex:
-
 
2288
      result.wex = wex
-
 
2289
    oprot.writeMessageBegin("getTransferLotsByDate", TMessageType.REPLY, seqid)
-
 
2290
    result.write(oprot)
-
 
2291
    oprot.writeMessageEnd()
-
 
2292
    oprot.trans.flush()
-
 
2293
 
-
 
2294
  def process_getAllowedDestinationWarehousesForTransfer(self, seqid, iprot, oprot):
-
 
2295
    args = getAllowedDestinationWarehousesForTransfer_args()
-
 
2296
    args.read(iprot)
-
 
2297
    iprot.readMessageEnd()
-
 
2298
    result = getAllowedDestinationWarehousesForTransfer_result()
-
 
2299
    result.success = self._handler.getAllowedDestinationWarehousesForTransfer(args.warehouseId)
-
 
2300
    oprot.writeMessageBegin("getAllowedDestinationWarehousesForTransfer", TMessageType.REPLY, seqid)
-
 
2301
    result.write(oprot)
-
 
2302
    oprot.writeMessageEnd()
-
 
2303
    oprot.trans.flush()
-
 
2304
 
-
 
2305
  def process_getItemsInTransferLot(self, seqid, iprot, oprot):
-
 
2306
    args = getItemsInTransferLot_args()
-
 
2307
    args.read(iprot)
-
 
2308
    iprot.readMessageEnd()
-
 
2309
    result = getItemsInTransferLot_result()
-
 
2310
    result.success = self._handler.getItemsInTransferLot(args.transferLotId)
-
 
2311
    oprot.writeMessageBegin("getItemsInTransferLot", TMessageType.REPLY, seqid)
-
 
2312
    result.write(oprot)
-
 
2313
    oprot.writeMessageEnd()
-
 
2314
    oprot.trans.flush()
-
 
2315
 
-
 
2316
  def process_markItemsAsReceivedForTransferLot(self, seqid, iprot, oprot):
-
 
2317
    args = markItemsAsReceivedForTransferLot_args()
-
 
2318
    args.read(iprot)
-
 
2319
    iprot.readMessageEnd()
-
 
2320
    result = markItemsAsReceivedForTransferLot_result()
-
 
2321
    try:
-
 
2322
      self._handler.markItemsAsReceivedForTransferLot(args.id)
-
 
2323
    except WarehouseServiceException, wex:
-
 
2324
      result.wex = wex
-
 
2325
    oprot.writeMessageBegin("markItemsAsReceivedForTransferLot", TMessageType.REPLY, seqid)
-
 
2326
    result.write(oprot)
-
 
2327
    oprot.writeMessageEnd()
-
 
2328
    oprot.trans.flush()
-
 
2329
 
-
 
2330
  def process_updateTransferLotAfterItemReceive(self, seqid, iprot, oprot):
-
 
2331
    args = updateTransferLotAfterItemReceive_args()
-
 
2332
    args.read(iprot)
-
 
2333
    iprot.readMessageEnd()
-
 
2334
    result = updateTransferLotAfterItemReceive_result()
-
 
2335
    try:
-
 
2336
      result.success = self._handler.updateTransferLotAfterItemReceive(args.id)
-
 
2337
    except WarehouseServiceException, wex:
-
 
2338
      result.wex = wex
-
 
2339
    oprot.writeMessageBegin("updateTransferLotAfterItemReceive", TMessageType.REPLY, seqid)
-
 
2340
    result.write(oprot)
-
 
2341
    oprot.writeMessageEnd()
-
 
2342
    oprot.trans.flush()
-
 
2343
 
-
 
2344
  def process_scanForTransfer(self, seqid, iprot, oprot):
-
 
2345
    args = scanForTransfer_args()
-
 
2346
    args.read(iprot)
-
 
2347
    iprot.readMessageEnd()
-
 
2348
    result = scanForTransfer_result()
-
 
2349
    try:
-
 
2350
      self._handler.scanForTransfer(args.inventoryItems, args.type, args.transferLotId)
-
 
2351
    except WarehouseServiceException, wex:
-
 
2352
      result.wex = wex
-
 
2353
    oprot.writeMessageBegin("scanForTransfer", TMessageType.REPLY, seqid)
-
 
2354
    result.write(oprot)
-
 
2355
    oprot.writeMessageEnd()
-
 
2356
    oprot.trans.flush()
-
 
2357
 
1813
 
2358
 
1814
# HELPER FUNCTIONS AND STRUCTURES
2359
# HELPER FUNCTIONS AND STRUCTURES
1815
 
2360
 
1816
class getInventoryItem_args:
2361
class getInventoryItem_args:
1817
  """
2362
  """
Line 2108... Line 2653...
2108
  Attributes:
2653
  Attributes:
2109
   - inventoryItem
2654
   - inventoryItem
2110
   - type
2655
   - type
2111
   - quantity
2656
   - quantity
2112
   - billingWarehouseId
2657
   - billingWarehouseId
-
 
2658
   - transferLotId
2113
  """
2659
  """
2114
 
2660
 
2115
  thrift_spec = (
2661
  thrift_spec = (
2116
    None, # 0
2662
    None, # 0
2117
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
2663
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
2118
    (2, TType.I32, 'type', None, None, ), # 2
2664
    (2, TType.I32, 'type', None, None, ), # 2
2119
    (3, TType.I64, 'quantity', None, None, ), # 3
2665
    (3, TType.I64, 'quantity', None, None, ), # 3
2120
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
2666
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
-
 
2667
    (5, TType.I64, 'transferLotId', None, None, ), # 5
2121
  )
2668
  )
2122
 
2669
 
2123
  def __init__(self, inventoryItem=None, type=None, quantity=None, billingWarehouseId=None,):
2670
  def __init__(self, inventoryItem=None, type=None, quantity=None, billingWarehouseId=None, transferLotId=None,):
2124
    self.inventoryItem = inventoryItem
2671
    self.inventoryItem = inventoryItem
2125
    self.type = type
2672
    self.type = type
2126
    self.quantity = quantity
2673
    self.quantity = quantity
2127
    self.billingWarehouseId = billingWarehouseId
2674
    self.billingWarehouseId = billingWarehouseId
-
 
2675
    self.transferLotId = transferLotId
2128
 
2676
 
2129
  def read(self, iprot):
2677
  def read(self, iprot):
2130
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2678
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2131
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2679
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2132
      return
2680
      return
Line 2154... Line 2702...
2154
      elif fid == 4:
2702
      elif fid == 4:
2155
        if ftype == TType.I64:
2703
        if ftype == TType.I64:
2156
          self.billingWarehouseId = iprot.readI64();
2704
          self.billingWarehouseId = iprot.readI64();
2157
        else:
2705
        else:
2158
          iprot.skip(ftype)
2706
          iprot.skip(ftype)
-
 
2707
      elif fid == 5:
-
 
2708
        if ftype == TType.I64:
-
 
2709
          self.transferLotId = iprot.readI64();
-
 
2710
        else:
-
 
2711
          iprot.skip(ftype)
2159
      else:
2712
      else:
2160
        iprot.skip(ftype)
2713
        iprot.skip(ftype)
2161
      iprot.readFieldEnd()
2714
      iprot.readFieldEnd()
2162
    iprot.readStructEnd()
2715
    iprot.readStructEnd()
2163
 
2716
 
Line 2180... Line 2733...
2180
      oprot.writeFieldEnd()
2733
      oprot.writeFieldEnd()
2181
    if self.billingWarehouseId is not None:
2734
    if self.billingWarehouseId is not None:
2182
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
2735
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
2183
      oprot.writeI64(self.billingWarehouseId)
2736
      oprot.writeI64(self.billingWarehouseId)
2184
      oprot.writeFieldEnd()
2737
      oprot.writeFieldEnd()
-
 
2738
    if self.transferLotId is not None:
-
 
2739
      oprot.writeFieldBegin('transferLotId', TType.I64, 5)
-
 
2740
      oprot.writeI64(self.transferLotId)
-
 
2741
      oprot.writeFieldEnd()
2185
    oprot.writeFieldStop()
2742
    oprot.writeFieldStop()
2186
    oprot.writeStructEnd()
2743
    oprot.writeStructEnd()
2187
 
2744
 
2188
  def validate(self):
2745
  def validate(self):
2189
    return
2746
    return
Line 4099... Line 4656...
4099
   - serialNumber
4656
   - serialNumber
4100
  """
4657
  """
4101
 
4658
 
4102
  thrift_spec = (
4659
  thrift_spec = (
4103
    None, # 0
4660
    None, # 0
4104
    (1, TType.I64, 'serialNumber', None, None, ), # 1
4661
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
4105
  )
4662
  )
4106
 
4663
 
4107
  def __init__(self, serialNumber=None,):
4664
  def __init__(self, serialNumber=None,):
4108
    self.serialNumber = serialNumber
4665
    self.serialNumber = serialNumber
4109
 
4666
 
Line 4115... Line 4672...
4115
    while True:
4672
    while True:
4116
      (fname, ftype, fid) = iprot.readFieldBegin()
4673
      (fname, ftype, fid) = iprot.readFieldBegin()
4117
      if ftype == TType.STOP:
4674
      if ftype == TType.STOP:
4118
        break
4675
        break
4119
      if fid == 1:
4676
      if fid == 1:
4120
        if ftype == TType.I64:
4677
        if ftype == TType.STRING:
4121
          self.serialNumber = iprot.readI64();
4678
          self.serialNumber = iprot.readString();
4122
        else:
4679
        else:
4123
          iprot.skip(ftype)
4680
          iprot.skip(ftype)
4124
      else:
4681
      else:
4125
        iprot.skip(ftype)
4682
        iprot.skip(ftype)
4126
      iprot.readFieldEnd()
4683
      iprot.readFieldEnd()
Line 4130... Line 4687...
4130
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4687
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4131
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4688
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4132
      return
4689
      return
4133
    oprot.writeStructBegin('getScanRecordsForSerialNumber_args')
4690
    oprot.writeStructBegin('getScanRecordsForSerialNumber_args')
4134
    if self.serialNumber is not None:
4691
    if self.serialNumber is not None:
4135
      oprot.writeFieldBegin('serialNumber', TType.I64, 1)
4692
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
4136
      oprot.writeI64(self.serialNumber)
4693
      oprot.writeString(self.serialNumber)
4137
      oprot.writeFieldEnd()
4694
      oprot.writeFieldEnd()
4138
    oprot.writeFieldStop()
4695
    oprot.writeFieldStop()
4139
    oprot.writeStructEnd()
4696
    oprot.writeStructEnd()
4140
 
4697
 
4141
  def validate(self):
4698
  def validate(self):
Line 5257... Line 5814...
5257
 
5814
 
5258
  def __ne__(self, other):
5815
  def __ne__(self, other):
5259
    return not (self == other)
5816
    return not (self == other)
5260
 
5817
 
5261
class scanForOursExternalSaleReturn_result:
5818
class scanForOursExternalSaleReturn_result:
-
 
5819
  """
-
 
5820
  Attributes:
-
 
5821
   - ex
-
 
5822
  """
5262
 
5823
 
5263
  thrift_spec = (
5824
  thrift_spec = (
-
 
5825
    None, # 0
-
 
5826
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
5264
  )
5827
  )
5265
 
5828
 
-
 
5829
  def __init__(self, ex=None,):
-
 
5830
    self.ex = ex
-
 
5831
 
5266
  def read(self, iprot):
5832
  def read(self, iprot):
5267
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5833
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5268
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5834
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5269
      return
5835
      return
5270
    iprot.readStructBegin()
5836
    iprot.readStructBegin()
5271
    while True:
5837
    while True:
5272
      (fname, ftype, fid) = iprot.readFieldBegin()
5838
      (fname, ftype, fid) = iprot.readFieldBegin()
5273
      if ftype == TType.STOP:
5839
      if ftype == TType.STOP:
5274
        break
5840
        break
-
 
5841
      if fid == 1:
-
 
5842
        if ftype == TType.STRUCT:
-
 
5843
          self.ex = WarehouseServiceException()
-
 
5844
          self.ex.read(iprot)
-
 
5845
        else:
-
 
5846
          iprot.skip(ftype)
5275
      else:
5847
      else:
5276
        iprot.skip(ftype)
5848
        iprot.skip(ftype)
5277
      iprot.readFieldEnd()
5849
      iprot.readFieldEnd()
5278
    iprot.readStructEnd()
5850
    iprot.readStructEnd()
5279
 
5851
 
5280
  def write(self, oprot):
5852
  def write(self, oprot):
5281
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5853
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5282
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5854
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5283
      return
5855
      return
5284
    oprot.writeStructBegin('scanForOursExternalSaleReturn_result')
5856
    oprot.writeStructBegin('scanForOursExternalSaleReturn_result')
-
 
5857
    if self.ex is not None:
-
 
5858
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
5859
      self.ex.write(oprot)
-
 
5860
      oprot.writeFieldEnd()
5285
    oprot.writeFieldStop()
5861
    oprot.writeFieldStop()
5286
    oprot.writeStructEnd()
5862
    oprot.writeStructEnd()
5287
 
5863
 
5288
  def validate(self):
5864
  def validate(self):
5289
    return
5865
    return
Line 6167... Line 6743...
6167
    if self.wex is not None:
6743
    if self.wex is not None:
6168
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
6744
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
6169
      self.wex.write(oprot)
6745
      self.wex.write(oprot)
6170
      oprot.writeFieldEnd()
6746
      oprot.writeFieldEnd()
6171
    oprot.writeFieldStop()
6747
    oprot.writeFieldStop()
-
 
6748
    oprot.writeStructEnd()
-
 
6749
 
-
 
6750
  def validate(self):
-
 
6751
    return
-
 
6752
 
-
 
6753
 
-
 
6754
  def __repr__(self):
-
 
6755
    L = ['%s=%r' % (key, value)
-
 
6756
      for key, value in self.__dict__.iteritems()]
-
 
6757
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6758
 
-
 
6759
  def __eq__(self, other):
-
 
6760
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6761
 
-
 
6762
  def __ne__(self, other):
-
 
6763
    return not (self == other)
-
 
6764
 
-
 
6765
class isItemTransferAllowed_args:
-
 
6766
  """
-
 
6767
  Attributes:
-
 
6768
   - warehouseId
-
 
6769
   - transferWarehouseId
-
 
6770
  """
-
 
6771
 
-
 
6772
  thrift_spec = (
-
 
6773
    None, # 0
-
 
6774
    (1, TType.I64, 'warehouseId', None, None, ), # 1
-
 
6775
    (2, TType.I64, 'transferWarehouseId', None, None, ), # 2
-
 
6776
  )
-
 
6777
 
-
 
6778
  def __init__(self, warehouseId=None, transferWarehouseId=None,):
-
 
6779
    self.warehouseId = warehouseId
-
 
6780
    self.transferWarehouseId = transferWarehouseId
-
 
6781
 
-
 
6782
  def read(self, iprot):
-
 
6783
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6784
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6785
      return
-
 
6786
    iprot.readStructBegin()
-
 
6787
    while True:
-
 
6788
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6789
      if ftype == TType.STOP:
-
 
6790
        break
-
 
6791
      if fid == 1:
-
 
6792
        if ftype == TType.I64:
-
 
6793
          self.warehouseId = iprot.readI64();
-
 
6794
        else:
-
 
6795
          iprot.skip(ftype)
-
 
6796
      elif fid == 2:
-
 
6797
        if ftype == TType.I64:
-
 
6798
          self.transferWarehouseId = iprot.readI64();
-
 
6799
        else:
-
 
6800
          iprot.skip(ftype)
-
 
6801
      else:
-
 
6802
        iprot.skip(ftype)
-
 
6803
      iprot.readFieldEnd()
-
 
6804
    iprot.readStructEnd()
-
 
6805
 
-
 
6806
  def write(self, oprot):
-
 
6807
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6808
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6809
      return
-
 
6810
    oprot.writeStructBegin('isItemTransferAllowed_args')
-
 
6811
    if self.warehouseId is not None:
-
 
6812
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
-
 
6813
      oprot.writeI64(self.warehouseId)
-
 
6814
      oprot.writeFieldEnd()
-
 
6815
    if self.transferWarehouseId is not None:
-
 
6816
      oprot.writeFieldBegin('transferWarehouseId', TType.I64, 2)
-
 
6817
      oprot.writeI64(self.transferWarehouseId)
-
 
6818
      oprot.writeFieldEnd()
-
 
6819
    oprot.writeFieldStop()
-
 
6820
    oprot.writeStructEnd()
-
 
6821
 
-
 
6822
  def validate(self):
-
 
6823
    return
-
 
6824
 
-
 
6825
 
-
 
6826
  def __repr__(self):
-
 
6827
    L = ['%s=%r' % (key, value)
-
 
6828
      for key, value in self.__dict__.iteritems()]
-
 
6829
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6830
 
-
 
6831
  def __eq__(self, other):
-
 
6832
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6833
 
-
 
6834
  def __ne__(self, other):
-
 
6835
    return not (self == other)
-
 
6836
 
-
 
6837
class isItemTransferAllowed_result:
-
 
6838
  """
-
 
6839
  Attributes:
-
 
6840
   - success
-
 
6841
  """
-
 
6842
 
-
 
6843
  thrift_spec = (
-
 
6844
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
6845
  )
-
 
6846
 
-
 
6847
  def __init__(self, success=None,):
-
 
6848
    self.success = success
-
 
6849
 
-
 
6850
  def read(self, iprot):
-
 
6851
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6852
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6853
      return
-
 
6854
    iprot.readStructBegin()
-
 
6855
    while True:
-
 
6856
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6857
      if ftype == TType.STOP:
-
 
6858
        break
-
 
6859
      if fid == 0:
-
 
6860
        if ftype == TType.BOOL:
-
 
6861
          self.success = iprot.readBool();
-
 
6862
        else:
-
 
6863
          iprot.skip(ftype)
-
 
6864
      else:
-
 
6865
        iprot.skip(ftype)
-
 
6866
      iprot.readFieldEnd()
-
 
6867
    iprot.readStructEnd()
-
 
6868
 
-
 
6869
  def write(self, oprot):
-
 
6870
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6871
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6872
      return
-
 
6873
    oprot.writeStructBegin('isItemTransferAllowed_result')
-
 
6874
    if self.success is not None:
-
 
6875
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
6876
      oprot.writeBool(self.success)
-
 
6877
      oprot.writeFieldEnd()
-
 
6878
    oprot.writeFieldStop()
-
 
6879
    oprot.writeStructEnd()
-
 
6880
 
-
 
6881
  def validate(self):
-
 
6882
    return
-
 
6883
 
-
 
6884
 
-
 
6885
  def __repr__(self):
-
 
6886
    L = ['%s=%r' % (key, value)
-
 
6887
      for key, value in self.__dict__.iteritems()]
-
 
6888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6889
 
-
 
6890
  def __eq__(self, other):
-
 
6891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6892
 
-
 
6893
  def __ne__(self, other):
-
 
6894
    return not (self == other)
-
 
6895
 
-
 
6896
class createTransferLot_args:
-
 
6897
  """
-
 
6898
  Attributes:
-
 
6899
   - originWarehouseId
-
 
6900
   - destWarehouseId
-
 
6901
  """
-
 
6902
 
-
 
6903
  thrift_spec = (
-
 
6904
    None, # 0
-
 
6905
    (1, TType.I64, 'originWarehouseId', None, None, ), # 1
-
 
6906
    (2, TType.I64, 'destWarehouseId', None, None, ), # 2
-
 
6907
  )
-
 
6908
 
-
 
6909
  def __init__(self, originWarehouseId=None, destWarehouseId=None,):
-
 
6910
    self.originWarehouseId = originWarehouseId
-
 
6911
    self.destWarehouseId = destWarehouseId
-
 
6912
 
-
 
6913
  def read(self, iprot):
-
 
6914
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6915
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6916
      return
-
 
6917
    iprot.readStructBegin()
-
 
6918
    while True:
-
 
6919
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6920
      if ftype == TType.STOP:
-
 
6921
        break
-
 
6922
      if fid == 1:
-
 
6923
        if ftype == TType.I64:
-
 
6924
          self.originWarehouseId = iprot.readI64();
-
 
6925
        else:
-
 
6926
          iprot.skip(ftype)
-
 
6927
      elif fid == 2:
-
 
6928
        if ftype == TType.I64:
-
 
6929
          self.destWarehouseId = iprot.readI64();
-
 
6930
        else:
-
 
6931
          iprot.skip(ftype)
-
 
6932
      else:
-
 
6933
        iprot.skip(ftype)
-
 
6934
      iprot.readFieldEnd()
-
 
6935
    iprot.readStructEnd()
-
 
6936
 
-
 
6937
  def write(self, oprot):
-
 
6938
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6939
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6940
      return
-
 
6941
    oprot.writeStructBegin('createTransferLot_args')
-
 
6942
    if self.originWarehouseId is not None:
-
 
6943
      oprot.writeFieldBegin('originWarehouseId', TType.I64, 1)
-
 
6944
      oprot.writeI64(self.originWarehouseId)
-
 
6945
      oprot.writeFieldEnd()
-
 
6946
    if self.destWarehouseId is not None:
-
 
6947
      oprot.writeFieldBegin('destWarehouseId', TType.I64, 2)
-
 
6948
      oprot.writeI64(self.destWarehouseId)
-
 
6949
      oprot.writeFieldEnd()
-
 
6950
    oprot.writeFieldStop()
-
 
6951
    oprot.writeStructEnd()
-
 
6952
 
-
 
6953
  def validate(self):
-
 
6954
    return
-
 
6955
 
-
 
6956
 
-
 
6957
  def __repr__(self):
-
 
6958
    L = ['%s=%r' % (key, value)
-
 
6959
      for key, value in self.__dict__.iteritems()]
-
 
6960
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6961
 
-
 
6962
  def __eq__(self, other):
-
 
6963
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6964
 
-
 
6965
  def __ne__(self, other):
-
 
6966
    return not (self == other)
-
 
6967
 
-
 
6968
class createTransferLot_result:
-
 
6969
  """
-
 
6970
  Attributes:
-
 
6971
   - success
-
 
6972
   - wex
-
 
6973
  """
-
 
6974
 
-
 
6975
  thrift_spec = (
-
 
6976
    (0, TType.I64, 'success', None, None, ), # 0
-
 
6977
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
-
 
6978
  )
-
 
6979
 
-
 
6980
  def __init__(self, success=None, wex=None,):
-
 
6981
    self.success = success
-
 
6982
    self.wex = wex
-
 
6983
 
-
 
6984
  def read(self, iprot):
-
 
6985
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6986
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6987
      return
-
 
6988
    iprot.readStructBegin()
-
 
6989
    while True:
-
 
6990
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6991
      if ftype == TType.STOP:
-
 
6992
        break
-
 
6993
      if fid == 0:
-
 
6994
        if ftype == TType.I64:
-
 
6995
          self.success = iprot.readI64();
-
 
6996
        else:
-
 
6997
          iprot.skip(ftype)
-
 
6998
      elif fid == 1:
-
 
6999
        if ftype == TType.STRUCT:
-
 
7000
          self.wex = WarehouseServiceException()
-
 
7001
          self.wex.read(iprot)
-
 
7002
        else:
-
 
7003
          iprot.skip(ftype)
-
 
7004
      else:
-
 
7005
        iprot.skip(ftype)
-
 
7006
      iprot.readFieldEnd()
-
 
7007
    iprot.readStructEnd()
-
 
7008
 
-
 
7009
  def write(self, oprot):
-
 
7010
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7011
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7012
      return
-
 
7013
    oprot.writeStructBegin('createTransferLot_result')
-
 
7014
    if self.success is not None:
-
 
7015
      oprot.writeFieldBegin('success', TType.I64, 0)
-
 
7016
      oprot.writeI64(self.success)
-
 
7017
      oprot.writeFieldEnd()
-
 
7018
    if self.wex is not None:
-
 
7019
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
-
 
7020
      self.wex.write(oprot)
-
 
7021
      oprot.writeFieldEnd()
-
 
7022
    oprot.writeFieldStop()
-
 
7023
    oprot.writeStructEnd()
-
 
7024
 
-
 
7025
  def validate(self):
-
 
7026
    return
-
 
7027
 
-
 
7028
 
-
 
7029
  def __repr__(self):
-
 
7030
    L = ['%s=%r' % (key, value)
-
 
7031
      for key, value in self.__dict__.iteritems()]
-
 
7032
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7033
 
-
 
7034
  def __eq__(self, other):
-
 
7035
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7036
 
-
 
7037
  def __ne__(self, other):
-
 
7038
    return not (self == other)
-
 
7039
 
-
 
7040
class getTransferLot_args:
-
 
7041
  """
-
 
7042
  Attributes:
-
 
7043
   - transferLotId
-
 
7044
  """
-
 
7045
 
-
 
7046
  thrift_spec = (
-
 
7047
    None, # 0
-
 
7048
    (1, TType.I64, 'transferLotId', None, None, ), # 1
-
 
7049
  )
-
 
7050
 
-
 
7051
  def __init__(self, transferLotId=None,):
-
 
7052
    self.transferLotId = transferLotId
-
 
7053
 
-
 
7054
  def read(self, iprot):
-
 
7055
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7056
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7057
      return
-
 
7058
    iprot.readStructBegin()
-
 
7059
    while True:
-
 
7060
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7061
      if ftype == TType.STOP:
-
 
7062
        break
-
 
7063
      if fid == 1:
-
 
7064
        if ftype == TType.I64:
-
 
7065
          self.transferLotId = iprot.readI64();
-
 
7066
        else:
-
 
7067
          iprot.skip(ftype)
-
 
7068
      else:
-
 
7069
        iprot.skip(ftype)
-
 
7070
      iprot.readFieldEnd()
-
 
7071
    iprot.readStructEnd()
-
 
7072
 
-
 
7073
  def write(self, oprot):
-
 
7074
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7075
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7076
      return
-
 
7077
    oprot.writeStructBegin('getTransferLot_args')
-
 
7078
    if self.transferLotId is not None:
-
 
7079
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
-
 
7080
      oprot.writeI64(self.transferLotId)
-
 
7081
      oprot.writeFieldEnd()
-
 
7082
    oprot.writeFieldStop()
-
 
7083
    oprot.writeStructEnd()
-
 
7084
 
-
 
7085
  def validate(self):
-
 
7086
    return
-
 
7087
 
-
 
7088
 
-
 
7089
  def __repr__(self):
-
 
7090
    L = ['%s=%r' % (key, value)
-
 
7091
      for key, value in self.__dict__.iteritems()]
-
 
7092
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7093
 
-
 
7094
  def __eq__(self, other):
-
 
7095
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7096
 
-
 
7097
  def __ne__(self, other):
-
 
7098
    return not (self == other)
-
 
7099
 
-
 
7100
class getTransferLot_result:
-
 
7101
  """
-
 
7102
  Attributes:
-
 
7103
   - success
-
 
7104
   - wex
-
 
7105
  """
-
 
7106
 
-
 
7107
  thrift_spec = (
-
 
7108
    (0, TType.STRUCT, 'success', (TransferLot, TransferLot.thrift_spec), None, ), # 0
-
 
7109
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
-
 
7110
  )
-
 
7111
 
-
 
7112
  def __init__(self, success=None, wex=None,):
-
 
7113
    self.success = success
-
 
7114
    self.wex = wex
-
 
7115
 
-
 
7116
  def read(self, iprot):
-
 
7117
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7118
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7119
      return
-
 
7120
    iprot.readStructBegin()
-
 
7121
    while True:
-
 
7122
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7123
      if ftype == TType.STOP:
-
 
7124
        break
-
 
7125
      if fid == 0:
-
 
7126
        if ftype == TType.STRUCT:
-
 
7127
          self.success = TransferLot()
-
 
7128
          self.success.read(iprot)
-
 
7129
        else:
-
 
7130
          iprot.skip(ftype)
-
 
7131
      elif fid == 1:
-
 
7132
        if ftype == TType.STRUCT:
-
 
7133
          self.wex = WarehouseServiceException()
-
 
7134
          self.wex.read(iprot)
-
 
7135
        else:
-
 
7136
          iprot.skip(ftype)
-
 
7137
      else:
-
 
7138
        iprot.skip(ftype)
-
 
7139
      iprot.readFieldEnd()
-
 
7140
    iprot.readStructEnd()
-
 
7141
 
-
 
7142
  def write(self, oprot):
-
 
7143
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7144
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7145
      return
-
 
7146
    oprot.writeStructBegin('getTransferLot_result')
-
 
7147
    if self.success is not None:
-
 
7148
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
7149
      self.success.write(oprot)
-
 
7150
      oprot.writeFieldEnd()
-
 
7151
    if self.wex is not None:
-
 
7152
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
-
 
7153
      self.wex.write(oprot)
-
 
7154
      oprot.writeFieldEnd()
-
 
7155
    oprot.writeFieldStop()
-
 
7156
    oprot.writeStructEnd()
-
 
7157
 
-
 
7158
  def validate(self):
-
 
7159
    return
-
 
7160
 
-
 
7161
 
-
 
7162
  def __repr__(self):
-
 
7163
    L = ['%s=%r' % (key, value)
-
 
7164
      for key, value in self.__dict__.iteritems()]
-
 
7165
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7166
 
-
 
7167
  def __eq__(self, other):
-
 
7168
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7169
 
-
 
7170
  def __ne__(self, other):
-
 
7171
    return not (self == other)
-
 
7172
 
-
 
7173
class markTransferLotAsReceived_args:
-
 
7174
  """
-
 
7175
  Attributes:
-
 
7176
   - id
-
 
7177
   - remoteTransferRefNumber
-
 
7178
  """
-
 
7179
 
-
 
7180
  thrift_spec = (
-
 
7181
    None, # 0
-
 
7182
    (1, TType.I64, 'id', None, None, ), # 1
-
 
7183
    (2, TType.STRING, 'remoteTransferRefNumber', None, None, ), # 2
-
 
7184
  )
-
 
7185
 
-
 
7186
  def __init__(self, id=None, remoteTransferRefNumber=None,):
-
 
7187
    self.id = id
-
 
7188
    self.remoteTransferRefNumber = remoteTransferRefNumber
-
 
7189
 
-
 
7190
  def read(self, iprot):
-
 
7191
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7192
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7193
      return
-
 
7194
    iprot.readStructBegin()
-
 
7195
    while True:
-
 
7196
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7197
      if ftype == TType.STOP:
-
 
7198
        break
-
 
7199
      if fid == 1:
-
 
7200
        if ftype == TType.I64:
-
 
7201
          self.id = iprot.readI64();
-
 
7202
        else:
-
 
7203
          iprot.skip(ftype)
-
 
7204
      elif fid == 2:
-
 
7205
        if ftype == TType.STRING:
-
 
7206
          self.remoteTransferRefNumber = iprot.readString();
-
 
7207
        else:
-
 
7208
          iprot.skip(ftype)
-
 
7209
      else:
-
 
7210
        iprot.skip(ftype)
-
 
7211
      iprot.readFieldEnd()
-
 
7212
    iprot.readStructEnd()
-
 
7213
 
-
 
7214
  def write(self, oprot):
-
 
7215
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7216
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7217
      return
-
 
7218
    oprot.writeStructBegin('markTransferLotAsReceived_args')
-
 
7219
    if self.id is not None:
-
 
7220
      oprot.writeFieldBegin('id', TType.I64, 1)
-
 
7221
      oprot.writeI64(self.id)
-
 
7222
      oprot.writeFieldEnd()
-
 
7223
    if self.remoteTransferRefNumber is not None:
-
 
7224
      oprot.writeFieldBegin('remoteTransferRefNumber', TType.STRING, 2)
-
 
7225
      oprot.writeString(self.remoteTransferRefNumber)
-
 
7226
      oprot.writeFieldEnd()
-
 
7227
    oprot.writeFieldStop()
-
 
7228
    oprot.writeStructEnd()
-
 
7229
 
-
 
7230
  def validate(self):
-
 
7231
    return
-
 
7232
 
-
 
7233
 
-
 
7234
  def __repr__(self):
-
 
7235
    L = ['%s=%r' % (key, value)
-
 
7236
      for key, value in self.__dict__.iteritems()]
-
 
7237
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7238
 
-
 
7239
  def __eq__(self, other):
-
 
7240
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7241
 
-
 
7242
  def __ne__(self, other):
-
 
7243
    return not (self == other)
-
 
7244
 
-
 
7245
class markTransferLotAsReceived_result:
-
 
7246
  """
-
 
7247
  Attributes:
-
 
7248
   - wex
-
 
7249
  """
-
 
7250
 
-
 
7251
  thrift_spec = (
-
 
7252
    None, # 0
-
 
7253
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
-
 
7254
  )
-
 
7255
 
-
 
7256
  def __init__(self, wex=None,):
-
 
7257
    self.wex = wex
-
 
7258
 
-
 
7259
  def read(self, iprot):
-
 
7260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7262
      return
-
 
7263
    iprot.readStructBegin()
-
 
7264
    while True:
-
 
7265
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7266
      if ftype == TType.STOP:
-
 
7267
        break
-
 
7268
      if fid == 1:
-
 
7269
        if ftype == TType.STRUCT:
-
 
7270
          self.wex = WarehouseServiceException()
-
 
7271
          self.wex.read(iprot)
-
 
7272
        else:
-
 
7273
          iprot.skip(ftype)
-
 
7274
      else:
-
 
7275
        iprot.skip(ftype)
-
 
7276
      iprot.readFieldEnd()
-
 
7277
    iprot.readStructEnd()
-
 
7278
 
-
 
7279
  def write(self, oprot):
-
 
7280
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7281
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7282
      return
-
 
7283
    oprot.writeStructBegin('markTransferLotAsReceived_result')
-
 
7284
    if self.wex is not None:
-
 
7285
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
-
 
7286
      self.wex.write(oprot)
-
 
7287
      oprot.writeFieldEnd()
-
 
7288
    oprot.writeFieldStop()
-
 
7289
    oprot.writeStructEnd()
-
 
7290
 
-
 
7291
  def validate(self):
-
 
7292
    return
-
 
7293
 
-
 
7294
 
-
 
7295
  def __repr__(self):
-
 
7296
    L = ['%s=%r' % (key, value)
-
 
7297
      for key, value in self.__dict__.iteritems()]
-
 
7298
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7299
 
-
 
7300
  def __eq__(self, other):
-
 
7301
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7302
 
-
 
7303
  def __ne__(self, other):
-
 
7304
    return not (self == other)
-
 
7305
 
-
 
7306
class getTransferLotsByDate_args:
-
 
7307
  """
-
 
7308
  Attributes:
-
 
7309
   - fromDate
-
 
7310
   - toDate
-
 
7311
  """
-
 
7312
 
-
 
7313
  thrift_spec = (
-
 
7314
    None, # 0
-
 
7315
    (1, TType.I64, 'fromDate', None, None, ), # 1
-
 
7316
    (2, TType.I64, 'toDate', None, None, ), # 2
-
 
7317
  )
-
 
7318
 
-
 
7319
  def __init__(self, fromDate=None, toDate=None,):
-
 
7320
    self.fromDate = fromDate
-
 
7321
    self.toDate = toDate
-
 
7322
 
-
 
7323
  def read(self, iprot):
-
 
7324
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7325
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7326
      return
-
 
7327
    iprot.readStructBegin()
-
 
7328
    while True:
-
 
7329
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7330
      if ftype == TType.STOP:
-
 
7331
        break
-
 
7332
      if fid == 1:
-
 
7333
        if ftype == TType.I64:
-
 
7334
          self.fromDate = iprot.readI64();
-
 
7335
        else:
-
 
7336
          iprot.skip(ftype)
-
 
7337
      elif fid == 2:
-
 
7338
        if ftype == TType.I64:
-
 
7339
          self.toDate = iprot.readI64();
-
 
7340
        else:
-
 
7341
          iprot.skip(ftype)
-
 
7342
      else:
-
 
7343
        iprot.skip(ftype)
-
 
7344
      iprot.readFieldEnd()
-
 
7345
    iprot.readStructEnd()
-
 
7346
 
-
 
7347
  def write(self, oprot):
-
 
7348
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7349
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7350
      return
-
 
7351
    oprot.writeStructBegin('getTransferLotsByDate_args')
-
 
7352
    if self.fromDate is not None:
-
 
7353
      oprot.writeFieldBegin('fromDate', TType.I64, 1)
-
 
7354
      oprot.writeI64(self.fromDate)
-
 
7355
      oprot.writeFieldEnd()
-
 
7356
    if self.toDate is not None:
-
 
7357
      oprot.writeFieldBegin('toDate', TType.I64, 2)
-
 
7358
      oprot.writeI64(self.toDate)
-
 
7359
      oprot.writeFieldEnd()
-
 
7360
    oprot.writeFieldStop()
-
 
7361
    oprot.writeStructEnd()
-
 
7362
 
-
 
7363
  def validate(self):
-
 
7364
    return
-
 
7365
 
-
 
7366
 
-
 
7367
  def __repr__(self):
-
 
7368
    L = ['%s=%r' % (key, value)
-
 
7369
      for key, value in self.__dict__.iteritems()]
-
 
7370
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7371
 
-
 
7372
  def __eq__(self, other):
-
 
7373
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7374
 
-
 
7375
  def __ne__(self, other):
-
 
7376
    return not (self == other)
-
 
7377
 
-
 
7378
class getTransferLotsByDate_result:
-
 
7379
  """
-
 
7380
  Attributes:
-
 
7381
   - success
-
 
7382
   - wex
-
 
7383
  """
-
 
7384
 
-
 
7385
  thrift_spec = (
-
 
7386
    (0, TType.LIST, 'success', (TType.STRUCT,(TransferLot, TransferLot.thrift_spec)), None, ), # 0
-
 
7387
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
-
 
7388
  )
-
 
7389
 
-
 
7390
  def __init__(self, success=None, wex=None,):
-
 
7391
    self.success = success
-
 
7392
    self.wex = wex
-
 
7393
 
-
 
7394
  def read(self, iprot):
-
 
7395
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7396
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7397
      return
-
 
7398
    iprot.readStructBegin()
-
 
7399
    while True:
-
 
7400
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7401
      if ftype == TType.STOP:
-
 
7402
        break
-
 
7403
      if fid == 0:
-
 
7404
        if ftype == TType.LIST:
-
 
7405
          self.success = []
-
 
7406
          (_etype136, _size133) = iprot.readListBegin()
-
 
7407
          for _i137 in xrange(_size133):
-
 
7408
            _elem138 = TransferLot()
-
 
7409
            _elem138.read(iprot)
-
 
7410
            self.success.append(_elem138)
-
 
7411
          iprot.readListEnd()
-
 
7412
        else:
-
 
7413
          iprot.skip(ftype)
-
 
7414
      elif fid == 1:
-
 
7415
        if ftype == TType.STRUCT:
-
 
7416
          self.wex = WarehouseServiceException()
-
 
7417
          self.wex.read(iprot)
-
 
7418
        else:
-
 
7419
          iprot.skip(ftype)
-
 
7420
      else:
-
 
7421
        iprot.skip(ftype)
-
 
7422
      iprot.readFieldEnd()
-
 
7423
    iprot.readStructEnd()
-
 
7424
 
-
 
7425
  def write(self, oprot):
-
 
7426
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7427
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7428
      return
-
 
7429
    oprot.writeStructBegin('getTransferLotsByDate_result')
-
 
7430
    if self.success is not None:
-
 
7431
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
7432
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
7433
      for iter139 in self.success:
-
 
7434
        iter139.write(oprot)
-
 
7435
      oprot.writeListEnd()
-
 
7436
      oprot.writeFieldEnd()
-
 
7437
    if self.wex is not None:
-
 
7438
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
-
 
7439
      self.wex.write(oprot)
-
 
7440
      oprot.writeFieldEnd()
-
 
7441
    oprot.writeFieldStop()
-
 
7442
    oprot.writeStructEnd()
-
 
7443
 
-
 
7444
  def validate(self):
-
 
7445
    return
-
 
7446
 
-
 
7447
 
-
 
7448
  def __repr__(self):
-
 
7449
    L = ['%s=%r' % (key, value)
-
 
7450
      for key, value in self.__dict__.iteritems()]
-
 
7451
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7452
 
-
 
7453
  def __eq__(self, other):
-
 
7454
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7455
 
-
 
7456
  def __ne__(self, other):
-
 
7457
    return not (self == other)
-
 
7458
 
-
 
7459
class getAllowedDestinationWarehousesForTransfer_args:
-
 
7460
  """
-
 
7461
  Attributes:
-
 
7462
   - warehouseId
-
 
7463
  """
-
 
7464
 
-
 
7465
  thrift_spec = (
-
 
7466
    None, # 0
-
 
7467
    (1, TType.I64, 'warehouseId', None, None, ), # 1
-
 
7468
  )
-
 
7469
 
-
 
7470
  def __init__(self, warehouseId=None,):
-
 
7471
    self.warehouseId = warehouseId
-
 
7472
 
-
 
7473
  def read(self, iprot):
-
 
7474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7476
      return
-
 
7477
    iprot.readStructBegin()
-
 
7478
    while True:
-
 
7479
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7480
      if ftype == TType.STOP:
-
 
7481
        break
-
 
7482
      if fid == 1:
-
 
7483
        if ftype == TType.I64:
-
 
7484
          self.warehouseId = iprot.readI64();
-
 
7485
        else:
-
 
7486
          iprot.skip(ftype)
-
 
7487
      else:
-
 
7488
        iprot.skip(ftype)
-
 
7489
      iprot.readFieldEnd()
-
 
7490
    iprot.readStructEnd()
-
 
7491
 
-
 
7492
  def write(self, oprot):
-
 
7493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7495
      return
-
 
7496
    oprot.writeStructBegin('getAllowedDestinationWarehousesForTransfer_args')
-
 
7497
    if self.warehouseId is not None:
-
 
7498
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
-
 
7499
      oprot.writeI64(self.warehouseId)
-
 
7500
      oprot.writeFieldEnd()
-
 
7501
    oprot.writeFieldStop()
-
 
7502
    oprot.writeStructEnd()
-
 
7503
 
-
 
7504
  def validate(self):
-
 
7505
    return
-
 
7506
 
-
 
7507
 
-
 
7508
  def __repr__(self):
-
 
7509
    L = ['%s=%r' % (key, value)
-
 
7510
      for key, value in self.__dict__.iteritems()]
-
 
7511
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7512
 
-
 
7513
  def __eq__(self, other):
-
 
7514
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7515
 
-
 
7516
  def __ne__(self, other):
-
 
7517
    return not (self == other)
-
 
7518
 
-
 
7519
class getAllowedDestinationWarehousesForTransfer_result:
-
 
7520
  """
-
 
7521
  Attributes:
-
 
7522
   - success
-
 
7523
  """
-
 
7524
 
-
 
7525
  thrift_spec = (
-
 
7526
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
-
 
7527
  )
-
 
7528
 
-
 
7529
  def __init__(self, success=None,):
-
 
7530
    self.success = success
-
 
7531
 
-
 
7532
  def read(self, iprot):
-
 
7533
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7534
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7535
      return
-
 
7536
    iprot.readStructBegin()
-
 
7537
    while True:
-
 
7538
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7539
      if ftype == TType.STOP:
-
 
7540
        break
-
 
7541
      if fid == 0:
-
 
7542
        if ftype == TType.LIST:
-
 
7543
          self.success = []
-
 
7544
          (_etype143, _size140) = iprot.readListBegin()
-
 
7545
          for _i144 in xrange(_size140):
-
 
7546
            _elem145 = iprot.readI64();
-
 
7547
            self.success.append(_elem145)
-
 
7548
          iprot.readListEnd()
-
 
7549
        else:
-
 
7550
          iprot.skip(ftype)
-
 
7551
      else:
-
 
7552
        iprot.skip(ftype)
-
 
7553
      iprot.readFieldEnd()
-
 
7554
    iprot.readStructEnd()
-
 
7555
 
-
 
7556
  def write(self, oprot):
-
 
7557
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7558
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7559
      return
-
 
7560
    oprot.writeStructBegin('getAllowedDestinationWarehousesForTransfer_result')
-
 
7561
    if self.success is not None:
-
 
7562
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
7563
      oprot.writeListBegin(TType.I64, len(self.success))
-
 
7564
      for iter146 in self.success:
-
 
7565
        oprot.writeI64(iter146)
-
 
7566
      oprot.writeListEnd()
-
 
7567
      oprot.writeFieldEnd()
-
 
7568
    oprot.writeFieldStop()
-
 
7569
    oprot.writeStructEnd()
-
 
7570
 
-
 
7571
  def validate(self):
-
 
7572
    return
-
 
7573
 
-
 
7574
 
-
 
7575
  def __repr__(self):
-
 
7576
    L = ['%s=%r' % (key, value)
-
 
7577
      for key, value in self.__dict__.iteritems()]
-
 
7578
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7579
 
-
 
7580
  def __eq__(self, other):
-
 
7581
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7582
 
-
 
7583
  def __ne__(self, other):
-
 
7584
    return not (self == other)
-
 
7585
 
-
 
7586
class getItemsInTransferLot_args:
-
 
7587
  """
-
 
7588
  Attributes:
-
 
7589
   - transferLotId
-
 
7590
  """
-
 
7591
 
-
 
7592
  thrift_spec = (
-
 
7593
    None, # 0
-
 
7594
    (1, TType.I64, 'transferLotId', None, None, ), # 1
-
 
7595
  )
-
 
7596
 
-
 
7597
  def __init__(self, transferLotId=None,):
-
 
7598
    self.transferLotId = transferLotId
-
 
7599
 
-
 
7600
  def read(self, iprot):
-
 
7601
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7602
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7603
      return
-
 
7604
    iprot.readStructBegin()
-
 
7605
    while True:
-
 
7606
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7607
      if ftype == TType.STOP:
-
 
7608
        break
-
 
7609
      if fid == 1:
-
 
7610
        if ftype == TType.I64:
-
 
7611
          self.transferLotId = iprot.readI64();
-
 
7612
        else:
-
 
7613
          iprot.skip(ftype)
-
 
7614
      else:
-
 
7615
        iprot.skip(ftype)
-
 
7616
      iprot.readFieldEnd()
-
 
7617
    iprot.readStructEnd()
-
 
7618
 
-
 
7619
  def write(self, oprot):
-
 
7620
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7621
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7622
      return
-
 
7623
    oprot.writeStructBegin('getItemsInTransferLot_args')
-
 
7624
    if self.transferLotId is not None:
-
 
7625
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
-
 
7626
      oprot.writeI64(self.transferLotId)
-
 
7627
      oprot.writeFieldEnd()
-
 
7628
    oprot.writeFieldStop()
-
 
7629
    oprot.writeStructEnd()
-
 
7630
 
-
 
7631
  def validate(self):
-
 
7632
    return
-
 
7633
 
-
 
7634
 
-
 
7635
  def __repr__(self):
-
 
7636
    L = ['%s=%r' % (key, value)
-
 
7637
      for key, value in self.__dict__.iteritems()]
-
 
7638
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7639
 
-
 
7640
  def __eq__(self, other):
-
 
7641
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7642
 
-
 
7643
  def __ne__(self, other):
-
 
7644
    return not (self == other)
-
 
7645
 
-
 
7646
class getItemsInTransferLot_result:
-
 
7647
  """
-
 
7648
  Attributes:
-
 
7649
   - success
-
 
7650
  """
-
 
7651
 
-
 
7652
  thrift_spec = (
-
 
7653
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
-
 
7654
  )
-
 
7655
 
-
 
7656
  def __init__(self, success=None,):
-
 
7657
    self.success = success
-
 
7658
 
-
 
7659
  def read(self, iprot):
-
 
7660
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7661
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7662
      return
-
 
7663
    iprot.readStructBegin()
-
 
7664
    while True:
-
 
7665
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7666
      if ftype == TType.STOP:
-
 
7667
        break
-
 
7668
      if fid == 0:
-
 
7669
        if ftype == TType.MAP:
-
 
7670
          self.success = {}
-
 
7671
          (_ktype148, _vtype149, _size147 ) = iprot.readMapBegin() 
-
 
7672
          for _i151 in xrange(_size147):
-
 
7673
            _key152 = iprot.readI64();
-
 
7674
            _val153 = iprot.readI64();
-
 
7675
            self.success[_key152] = _val153
-
 
7676
          iprot.readMapEnd()
-
 
7677
        else:
-
 
7678
          iprot.skip(ftype)
-
 
7679
      else:
-
 
7680
        iprot.skip(ftype)
-
 
7681
      iprot.readFieldEnd()
-
 
7682
    iprot.readStructEnd()
-
 
7683
 
-
 
7684
  def write(self, oprot):
-
 
7685
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7686
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7687
      return
-
 
7688
    oprot.writeStructBegin('getItemsInTransferLot_result')
-
 
7689
    if self.success is not None:
-
 
7690
      oprot.writeFieldBegin('success', TType.MAP, 0)
-
 
7691
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
-
 
7692
      for kiter154,viter155 in self.success.items():
-
 
7693
        oprot.writeI64(kiter154)
-
 
7694
        oprot.writeI64(viter155)
-
 
7695
      oprot.writeMapEnd()
-
 
7696
      oprot.writeFieldEnd()
-
 
7697
    oprot.writeFieldStop()
-
 
7698
    oprot.writeStructEnd()
-
 
7699
 
-
 
7700
  def validate(self):
-
 
7701
    return
-
 
7702
 
-
 
7703
 
-
 
7704
  def __repr__(self):
-
 
7705
    L = ['%s=%r' % (key, value)
-
 
7706
      for key, value in self.__dict__.iteritems()]
-
 
7707
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7708
 
-
 
7709
  def __eq__(self, other):
-
 
7710
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7711
 
-
 
7712
  def __ne__(self, other):
-
 
7713
    return not (self == other)
-
 
7714
 
-
 
7715
class markItemsAsReceivedForTransferLot_args:
-
 
7716
  """
-
 
7717
  Attributes:
-
 
7718
   - id
-
 
7719
  """
-
 
7720
 
-
 
7721
  thrift_spec = (
-
 
7722
    None, # 0
-
 
7723
    (1, TType.I64, 'id', None, None, ), # 1
-
 
7724
  )
-
 
7725
 
-
 
7726
  def __init__(self, id=None,):
-
 
7727
    self.id = id
-
 
7728
 
-
 
7729
  def read(self, iprot):
-
 
7730
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7731
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7732
      return
-
 
7733
    iprot.readStructBegin()
-
 
7734
    while True:
-
 
7735
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7736
      if ftype == TType.STOP:
-
 
7737
        break
-
 
7738
      if fid == 1:
-
 
7739
        if ftype == TType.I64:
-
 
7740
          self.id = iprot.readI64();
-
 
7741
        else:
-
 
7742
          iprot.skip(ftype)
-
 
7743
      else:
-
 
7744
        iprot.skip(ftype)
-
 
7745
      iprot.readFieldEnd()
-
 
7746
    iprot.readStructEnd()
-
 
7747
 
-
 
7748
  def write(self, oprot):
-
 
7749
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7750
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7751
      return
-
 
7752
    oprot.writeStructBegin('markItemsAsReceivedForTransferLot_args')
-
 
7753
    if self.id is not None:
-
 
7754
      oprot.writeFieldBegin('id', TType.I64, 1)
-
 
7755
      oprot.writeI64(self.id)
-
 
7756
      oprot.writeFieldEnd()
-
 
7757
    oprot.writeFieldStop()
-
 
7758
    oprot.writeStructEnd()
-
 
7759
 
-
 
7760
  def validate(self):
-
 
7761
    return
-
 
7762
 
-
 
7763
 
-
 
7764
  def __repr__(self):
-
 
7765
    L = ['%s=%r' % (key, value)
-
 
7766
      for key, value in self.__dict__.iteritems()]
-
 
7767
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7768
 
-
 
7769
  def __eq__(self, other):
-
 
7770
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7771
 
-
 
7772
  def __ne__(self, other):
-
 
7773
    return not (self == other)
-
 
7774
 
-
 
7775
class markItemsAsReceivedForTransferLot_result:
-
 
7776
  """
-
 
7777
  Attributes:
-
 
7778
   - wex
-
 
7779
  """
-
 
7780
 
-
 
7781
  thrift_spec = (
-
 
7782
    None, # 0
-
 
7783
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
-
 
7784
  )
-
 
7785
 
-
 
7786
  def __init__(self, wex=None,):
-
 
7787
    self.wex = wex
-
 
7788
 
-
 
7789
  def read(self, iprot):
-
 
7790
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7791
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7792
      return
-
 
7793
    iprot.readStructBegin()
-
 
7794
    while True:
-
 
7795
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7796
      if ftype == TType.STOP:
-
 
7797
        break
-
 
7798
      if fid == 1:
-
 
7799
        if ftype == TType.STRUCT:
-
 
7800
          self.wex = WarehouseServiceException()
-
 
7801
          self.wex.read(iprot)
-
 
7802
        else:
-
 
7803
          iprot.skip(ftype)
-
 
7804
      else:
-
 
7805
        iprot.skip(ftype)
-
 
7806
      iprot.readFieldEnd()
-
 
7807
    iprot.readStructEnd()
-
 
7808
 
-
 
7809
  def write(self, oprot):
-
 
7810
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7811
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7812
      return
-
 
7813
    oprot.writeStructBegin('markItemsAsReceivedForTransferLot_result')
-
 
7814
    if self.wex is not None:
-
 
7815
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
-
 
7816
      self.wex.write(oprot)
-
 
7817
      oprot.writeFieldEnd()
-
 
7818
    oprot.writeFieldStop()
-
 
7819
    oprot.writeStructEnd()
-
 
7820
 
-
 
7821
  def validate(self):
-
 
7822
    return
-
 
7823
 
-
 
7824
 
-
 
7825
  def __repr__(self):
-
 
7826
    L = ['%s=%r' % (key, value)
-
 
7827
      for key, value in self.__dict__.iteritems()]
-
 
7828
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7829
 
-
 
7830
  def __eq__(self, other):
-
 
7831
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7832
 
-
 
7833
  def __ne__(self, other):
-
 
7834
    return not (self == other)
-
 
7835
 
-
 
7836
class updateTransferLotAfterItemReceive_args:
-
 
7837
  """
-
 
7838
  Attributes:
-
 
7839
   - id
-
 
7840
  """
-
 
7841
 
-
 
7842
  thrift_spec = (
-
 
7843
    None, # 0
-
 
7844
    (1, TType.I64, 'id', None, None, ), # 1
-
 
7845
  )
-
 
7846
 
-
 
7847
  def __init__(self, id=None,):
-
 
7848
    self.id = id
-
 
7849
 
-
 
7850
  def read(self, iprot):
-
 
7851
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7852
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7853
      return
-
 
7854
    iprot.readStructBegin()
-
 
7855
    while True:
-
 
7856
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7857
      if ftype == TType.STOP:
-
 
7858
        break
-
 
7859
      if fid == 1:
-
 
7860
        if ftype == TType.I64:
-
 
7861
          self.id = iprot.readI64();
-
 
7862
        else:
-
 
7863
          iprot.skip(ftype)
-
 
7864
      else:
-
 
7865
        iprot.skip(ftype)
-
 
7866
      iprot.readFieldEnd()
-
 
7867
    iprot.readStructEnd()
-
 
7868
 
-
 
7869
  def write(self, oprot):
-
 
7870
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7871
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7872
      return
-
 
7873
    oprot.writeStructBegin('updateTransferLotAfterItemReceive_args')
-
 
7874
    if self.id is not None:
-
 
7875
      oprot.writeFieldBegin('id', TType.I64, 1)
-
 
7876
      oprot.writeI64(self.id)
-
 
7877
      oprot.writeFieldEnd()
-
 
7878
    oprot.writeFieldStop()
-
 
7879
    oprot.writeStructEnd()
-
 
7880
 
-
 
7881
  def validate(self):
-
 
7882
    return
-
 
7883
 
-
 
7884
 
-
 
7885
  def __repr__(self):
-
 
7886
    L = ['%s=%r' % (key, value)
-
 
7887
      for key, value in self.__dict__.iteritems()]
-
 
7888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7889
 
-
 
7890
  def __eq__(self, other):
-
 
7891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7892
 
-
 
7893
  def __ne__(self, other):
-
 
7894
    return not (self == other)
-
 
7895
 
-
 
7896
class updateTransferLotAfterItemReceive_result:
-
 
7897
  """
-
 
7898
  Attributes:
-
 
7899
   - success
-
 
7900
   - wex
-
 
7901
  """
-
 
7902
 
-
 
7903
  thrift_spec = (
-
 
7904
    (0, TType.I32, 'success', None, None, ), # 0
-
 
7905
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
-
 
7906
  )
-
 
7907
 
-
 
7908
  def __init__(self, success=None, wex=None,):
-
 
7909
    self.success = success
-
 
7910
    self.wex = wex
-
 
7911
 
-
 
7912
  def read(self, iprot):
-
 
7913
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7914
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7915
      return
-
 
7916
    iprot.readStructBegin()
-
 
7917
    while True:
-
 
7918
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7919
      if ftype == TType.STOP:
-
 
7920
        break
-
 
7921
      if fid == 0:
-
 
7922
        if ftype == TType.I32:
-
 
7923
          self.success = iprot.readI32();
-
 
7924
        else:
-
 
7925
          iprot.skip(ftype)
-
 
7926
      elif fid == 1:
-
 
7927
        if ftype == TType.STRUCT:
-
 
7928
          self.wex = WarehouseServiceException()
-
 
7929
          self.wex.read(iprot)
-
 
7930
        else:
-
 
7931
          iprot.skip(ftype)
-
 
7932
      else:
-
 
7933
        iprot.skip(ftype)
-
 
7934
      iprot.readFieldEnd()
-
 
7935
    iprot.readStructEnd()
-
 
7936
 
-
 
7937
  def write(self, oprot):
-
 
7938
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7939
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7940
      return
-
 
7941
    oprot.writeStructBegin('updateTransferLotAfterItemReceive_result')
-
 
7942
    if self.success is not None:
-
 
7943
      oprot.writeFieldBegin('success', TType.I32, 0)
-
 
7944
      oprot.writeI32(self.success)
-
 
7945
      oprot.writeFieldEnd()
-
 
7946
    if self.wex is not None:
-
 
7947
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
-
 
7948
      self.wex.write(oprot)
-
 
7949
      oprot.writeFieldEnd()
-
 
7950
    oprot.writeFieldStop()
-
 
7951
    oprot.writeStructEnd()
-
 
7952
 
-
 
7953
  def validate(self):
-
 
7954
    return
-
 
7955
 
-
 
7956
 
-
 
7957
  def __repr__(self):
-
 
7958
    L = ['%s=%r' % (key, value)
-
 
7959
      for key, value in self.__dict__.iteritems()]
-
 
7960
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7961
 
-
 
7962
  def __eq__(self, other):
-
 
7963
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7964
 
-
 
7965
  def __ne__(self, other):
-
 
7966
    return not (self == other)
-
 
7967
 
-
 
7968
class scanForTransfer_args:
-
 
7969
  """
-
 
7970
  Attributes:
-
 
7971
   - inventoryItems
-
 
7972
   - type
-
 
7973
   - transferLotId
-
 
7974
  """
-
 
7975
 
-
 
7976
  thrift_spec = (
-
 
7977
    None, # 0
-
 
7978
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
-
 
7979
    (2, TType.I32, 'type', None, None, ), # 2
-
 
7980
    (3, TType.I64, 'transferLotId', None, None, ), # 3
-
 
7981
  )
-
 
7982
 
-
 
7983
  def __init__(self, inventoryItems=None, type=None, transferLotId=None,):
-
 
7984
    self.inventoryItems = inventoryItems
-
 
7985
    self.type = type
-
 
7986
    self.transferLotId = transferLotId
-
 
7987
 
-
 
7988
  def read(self, iprot):
-
 
7989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7991
      return
-
 
7992
    iprot.readStructBegin()
-
 
7993
    while True:
-
 
7994
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7995
      if ftype == TType.STOP:
-
 
7996
        break
-
 
7997
      if fid == 1:
-
 
7998
        if ftype == TType.LIST:
-
 
7999
          self.inventoryItems = []
-
 
8000
          (_etype159, _size156) = iprot.readListBegin()
-
 
8001
          for _i160 in xrange(_size156):
-
 
8002
            _elem161 = InventoryItem()
-
 
8003
            _elem161.read(iprot)
-
 
8004
            self.inventoryItems.append(_elem161)
-
 
8005
          iprot.readListEnd()
-
 
8006
        else:
-
 
8007
          iprot.skip(ftype)
-
 
8008
      elif fid == 2:
-
 
8009
        if ftype == TType.I32:
-
 
8010
          self.type = iprot.readI32();
-
 
8011
        else:
-
 
8012
          iprot.skip(ftype)
-
 
8013
      elif fid == 3:
-
 
8014
        if ftype == TType.I64:
-
 
8015
          self.transferLotId = iprot.readI64();
-
 
8016
        else:
-
 
8017
          iprot.skip(ftype)
-
 
8018
      else:
-
 
8019
        iprot.skip(ftype)
-
 
8020
      iprot.readFieldEnd()
-
 
8021
    iprot.readStructEnd()
-
 
8022
 
-
 
8023
  def write(self, oprot):
-
 
8024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
8025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
8026
      return
-
 
8027
    oprot.writeStructBegin('scanForTransfer_args')
-
 
8028
    if self.inventoryItems is not None:
-
 
8029
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
-
 
8030
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
-
 
8031
      for iter162 in self.inventoryItems:
-
 
8032
        iter162.write(oprot)
-
 
8033
      oprot.writeListEnd()
-
 
8034
      oprot.writeFieldEnd()
-
 
8035
    if self.type is not None:
-
 
8036
      oprot.writeFieldBegin('type', TType.I32, 2)
-
 
8037
      oprot.writeI32(self.type)
-
 
8038
      oprot.writeFieldEnd()
-
 
8039
    if self.transferLotId is not None:
-
 
8040
      oprot.writeFieldBegin('transferLotId', TType.I64, 3)
-
 
8041
      oprot.writeI64(self.transferLotId)
-
 
8042
      oprot.writeFieldEnd()
-
 
8043
    oprot.writeFieldStop()
-
 
8044
    oprot.writeStructEnd()
-
 
8045
 
-
 
8046
  def validate(self):
-
 
8047
    return
-
 
8048
 
-
 
8049
 
-
 
8050
  def __repr__(self):
-
 
8051
    L = ['%s=%r' % (key, value)
-
 
8052
      for key, value in self.__dict__.iteritems()]
-
 
8053
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
8054
 
-
 
8055
  def __eq__(self, other):
-
 
8056
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
8057
 
-
 
8058
  def __ne__(self, other):
-
 
8059
    return not (self == other)
-
 
8060
 
-
 
8061
class scanForTransfer_result:
-
 
8062
  """
-
 
8063
  Attributes:
-
 
8064
   - wex
-
 
8065
  """
-
 
8066
 
-
 
8067
  thrift_spec = (
-
 
8068
    None, # 0
-
 
8069
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
-
 
8070
  )
-
 
8071
 
-
 
8072
  def __init__(self, wex=None,):
-
 
8073
    self.wex = wex
-
 
8074
 
-
 
8075
  def read(self, iprot):
-
 
8076
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
8077
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
8078
      return
-
 
8079
    iprot.readStructBegin()
-
 
8080
    while True:
-
 
8081
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
8082
      if ftype == TType.STOP:
-
 
8083
        break
-
 
8084
      if fid == 1:
-
 
8085
        if ftype == TType.STRUCT:
-
 
8086
          self.wex = WarehouseServiceException()
-
 
8087
          self.wex.read(iprot)
-
 
8088
        else:
-
 
8089
          iprot.skip(ftype)
-
 
8090
      else:
-
 
8091
        iprot.skip(ftype)
-
 
8092
      iprot.readFieldEnd()
-
 
8093
    iprot.readStructEnd()
-
 
8094
 
-
 
8095
  def write(self, oprot):
-
 
8096
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
8097
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
8098
      return
-
 
8099
    oprot.writeStructBegin('scanForTransfer_result')
-
 
8100
    if self.wex is not None:
-
 
8101
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
-
 
8102
      self.wex.write(oprot)
-
 
8103
      oprot.writeFieldEnd()
-
 
8104
    oprot.writeFieldStop()
6172
    oprot.writeStructEnd()
8105
    oprot.writeStructEnd()
6173
 
8106
 
6174
  def validate(self):
8107
  def validate(self):
6175
    return
8108
    return
6176
 
8109