Subversion Repositories SmartDukaan

Rev

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

Rev 5185 Rev 5361
Line 58... Line 58...
58
    Parameters:
58
    Parameters:
59
     - serialNumber
59
     - serialNumber
60
    """
60
    """
61
    pass
61
    pass
62
 
62
 
63
  def getNonSeralizedInventoryItems(self, itemId, quantity, supplierId):
63
  def getNonSeralizedInventoryItem(self, itemId, warehouseId):
64
    """
64
    """
65
    Retrieves non-serialized inventory items from a given supplier
65
    Retrieves non-serialized inventory item from a given supplier
66
 
66
 
67
    Parameters:
67
    Parameters:
68
     - itemId
68
     - itemId
69
     - quantity
-
 
70
     - supplierId
-
 
71
    """
-
 
72
    pass
-
 
73
 
-
 
74
  def getInventoryItems(self, itemId):
-
 
75
    """
-
 
76
    Retrieves inventory items for a given item
-
 
77
 
-
 
78
    Parameters:
-
 
79
     - itemId
-
 
80
    """
-
 
81
    pass
-
 
82
 
-
 
83
  def getScanForOrder(self, orderId):
-
 
84
    """
-
 
85
    Retrieves scans for a given order
-
 
86
 
-
 
87
    Parameters:
-
 
88
     - orderId
69
     - warehouseId
89
    """
-
 
90
    pass
-
 
91
 
-
 
92
  def getScan(self, inventoryItemId):
-
 
93
    """
-
 
94
    Retrieves scans for a given inventory item
-
 
95
 
-
 
96
    Parameters:
-
 
97
     - inventoryItemId
-
 
98
    """
70
    """
99
    pass
71
    pass
100
 
72
 
101
  def scanSerializedItem(self, inventoryItem, type, warehouseId):
73
  def scanSerializedItem(self, inventoryItem, type, billingWarehouseId):
102
    """
74
    """
103
    Scan serialized items.
75
    Scan serialized items.
104
 
76
 
105
    Parameters:
77
    Parameters:
106
     - inventoryItem
78
     - inventoryItem
107
     - type
79
     - type
108
     - warehouseId
80
     - billingWarehouseId
109
    """
81
    """
110
    pass
82
    pass
111
 
83
 
112
  def scan(self, inventoryItemId, type, quantity, warehouseId):
84
  def scan(self, inventoryItem, type, quantity, billingWarehouseId):
113
    """
85
    """
114
    Scan non-serialized items.
86
    Scan non-serialized items.
115
 
87
 
116
    Parameters:
88
    Parameters:
117
     - inventoryItemId
89
     - inventoryItem
118
     - type
90
     - type
119
     - quantity
91
     - quantity
120
     - warehouseId
92
     - billingWarehouseId
121
    """
93
    """
122
    pass
94
    pass
123
 
95
 
124
  def scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
96
  def scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
125
    """
97
    """
Line 133... Line 105...
133
     - quantity
105
     - quantity
134
     - billingWarehouseId
106
     - billingWarehouseId
135
    """
107
    """
136
    pass
108
    pass
137
 
109
 
138
  def scanForOrder(self, inventoryItemId, type, quantity, orderId, fulfilmentWarehouseId):
110
  def scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
139
    """
111
    """
140
    Scan non-serialized items linked with an order.
112
    Scan non-serialized items linked with an order.
141
 
113
 
142
    Parameters:
114
    Parameters:
143
     - inventoryItemId
115
     - inventoryItem
144
     - type
116
     - type
145
     - quantity
117
     - quantity
146
     - orderId
118
     - orderId
147
     - fulfilmentWarehouseId
119
     - fulfilmentWarehouseId
-
 
120
     - billingWarehouseId
148
    """
121
    """
149
    pass
122
    pass
150
 
123
 
151
  def createItemNumberMapping(self, itemNumber, itemId):
124
  def createItemNumberMapping(self, itemNumber, itemId):
152
    """
125
    """
Line 347... Line 320...
347
      return result.success
320
      return result.success
348
    if result.wex is not None:
321
    if result.wex is not None:
349
      raise result.wex
322
      raise result.wex
350
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
323
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
351
 
324
 
352
  def getNonSeralizedInventoryItems(self, itemId, quantity, supplierId):
325
  def getNonSeralizedInventoryItem(self, itemId, warehouseId):
353
    """
-
 
354
    Retrieves non-serialized inventory items from a given supplier
-
 
355
 
-
 
356
    Parameters:
-
 
357
     - itemId
-
 
358
     - quantity
-
 
359
     - supplierId
-
 
360
    """
-
 
361
    self.send_getNonSeralizedInventoryItems(itemId, quantity, supplierId)
-
 
362
    return self.recv_getNonSeralizedInventoryItems()
-
 
363
 
-
 
364
  def send_getNonSeralizedInventoryItems(self, itemId, quantity, supplierId):
-
 
365
    self._oprot.writeMessageBegin('getNonSeralizedInventoryItems', TMessageType.CALL, self._seqid)
-
 
366
    args = getNonSeralizedInventoryItems_args()
-
 
367
    args.itemId = itemId
-
 
368
    args.quantity = quantity
-
 
369
    args.supplierId = supplierId
-
 
370
    args.write(self._oprot)
-
 
371
    self._oprot.writeMessageEnd()
-
 
372
    self._oprot.trans.flush()
-
 
373
 
-
 
374
  def recv_getNonSeralizedInventoryItems(self, ):
-
 
375
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
376
    if mtype == TMessageType.EXCEPTION:
-
 
377
      x = TApplicationException()
-
 
378
      x.read(self._iprot)
-
 
379
      self._iprot.readMessageEnd()
-
 
380
      raise x
-
 
381
    result = getNonSeralizedInventoryItems_result()
-
 
382
    result.read(self._iprot)
-
 
383
    self._iprot.readMessageEnd()
-
 
384
    if result.success is not None:
-
 
385
      return result.success
-
 
386
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItems failed: unknown result");
-
 
387
 
-
 
388
  def getInventoryItems(self, itemId):
-
 
389
    """
326
    """
390
    Retrieves inventory items for a given item
327
    Retrieves non-serialized inventory item from a given supplier
391
 
328
 
392
    Parameters:
329
    Parameters:
393
     - itemId
330
     - itemId
-
 
331
     - warehouseId
394
    """
332
    """
395
    self.send_getInventoryItems(itemId)
333
    self.send_getNonSeralizedInventoryItem(itemId, warehouseId)
396
    return self.recv_getInventoryItems()
334
    return self.recv_getNonSeralizedInventoryItem()
397
 
335
 
398
  def send_getInventoryItems(self, itemId):
336
  def send_getNonSeralizedInventoryItem(self, itemId, warehouseId):
399
    self._oprot.writeMessageBegin('getInventoryItems', TMessageType.CALL, self._seqid)
337
    self._oprot.writeMessageBegin('getNonSeralizedInventoryItem', TMessageType.CALL, self._seqid)
400
    args = getInventoryItems_args()
338
    args = getNonSeralizedInventoryItem_args()
401
    args.itemId = itemId
339
    args.itemId = itemId
-
 
340
    args.warehouseId = warehouseId
402
    args.write(self._oprot)
341
    args.write(self._oprot)
403
    self._oprot.writeMessageEnd()
342
    self._oprot.writeMessageEnd()
404
    self._oprot.trans.flush()
343
    self._oprot.trans.flush()
405
 
344
 
406
  def recv_getInventoryItems(self, ):
345
  def recv_getNonSeralizedInventoryItem(self, ):
407
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
408
    if mtype == TMessageType.EXCEPTION:
-
 
409
      x = TApplicationException()
-
 
410
      x.read(self._iprot)
-
 
411
      self._iprot.readMessageEnd()
-
 
412
      raise x
-
 
413
    result = getInventoryItems_result()
-
 
414
    result.read(self._iprot)
-
 
415
    self._iprot.readMessageEnd()
-
 
416
    if result.success is not None:
-
 
417
      return result.success
-
 
418
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItems failed: unknown result");
-
 
419
 
-
 
420
  def getScanForOrder(self, orderId):
-
 
421
    """
-
 
422
    Retrieves scans for a given order
-
 
423
 
-
 
424
    Parameters:
-
 
425
     - orderId
-
 
426
    """
-
 
427
    self.send_getScanForOrder(orderId)
-
 
428
    return self.recv_getScanForOrder()
-
 
429
 
-
 
430
  def send_getScanForOrder(self, orderId):
-
 
431
    self._oprot.writeMessageBegin('getScanForOrder', TMessageType.CALL, self._seqid)
-
 
432
    args = getScanForOrder_args()
-
 
433
    args.orderId = orderId
-
 
434
    args.write(self._oprot)
-
 
435
    self._oprot.writeMessageEnd()
-
 
436
    self._oprot.trans.flush()
-
 
437
 
-
 
438
  def recv_getScanForOrder(self, ):
-
 
439
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
440
    if mtype == TMessageType.EXCEPTION:
-
 
441
      x = TApplicationException()
-
 
442
      x.read(self._iprot)
-
 
443
      self._iprot.readMessageEnd()
-
 
444
      raise x
-
 
445
    result = getScanForOrder_result()
-
 
446
    result.read(self._iprot)
-
 
447
    self._iprot.readMessageEnd()
-
 
448
    if result.success is not None:
-
 
449
      return result.success
-
 
450
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScanForOrder failed: unknown result");
-
 
451
 
-
 
452
  def getScan(self, inventoryItemId):
-
 
453
    """
-
 
454
    Retrieves scans for a given inventory item
-
 
455
 
-
 
456
    Parameters:
-
 
457
     - inventoryItemId
-
 
458
    """
-
 
459
    self.send_getScan(inventoryItemId)
-
 
460
    return self.recv_getScan()
-
 
461
 
-
 
462
  def send_getScan(self, inventoryItemId):
-
 
463
    self._oprot.writeMessageBegin('getScan', TMessageType.CALL, self._seqid)
-
 
464
    args = getScan_args()
-
 
465
    args.inventoryItemId = inventoryItemId
-
 
466
    args.write(self._oprot)
-
 
467
    self._oprot.writeMessageEnd()
-
 
468
    self._oprot.trans.flush()
-
 
469
 
-
 
470
  def recv_getScan(self, ):
-
 
471
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
346
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
472
    if mtype == TMessageType.EXCEPTION:
347
    if mtype == TMessageType.EXCEPTION:
473
      x = TApplicationException()
348
      x = TApplicationException()
474
      x.read(self._iprot)
349
      x.read(self._iprot)
475
      self._iprot.readMessageEnd()
350
      self._iprot.readMessageEnd()
476
      raise x
351
      raise x
477
    result = getScan_result()
352
    result = getNonSeralizedInventoryItem_result()
478
    result.read(self._iprot)
353
    result.read(self._iprot)
479
    self._iprot.readMessageEnd()
354
    self._iprot.readMessageEnd()
480
    if result.success is not None:
355
    if result.success is not None:
481
      return result.success
356
      return result.success
-
 
357
    if result.wex is not None:
-
 
358
      raise result.wex
482
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScan failed: unknown result");
359
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
483
 
360
 
484
  def scanSerializedItem(self, inventoryItem, type, warehouseId):
361
  def scanSerializedItem(self, inventoryItem, type, billingWarehouseId):
485
    """
362
    """
486
    Scan serialized items.
363
    Scan serialized items.
487
 
364
 
488
    Parameters:
365
    Parameters:
489
     - inventoryItem
366
     - inventoryItem
490
     - type
367
     - type
491
     - warehouseId
368
     - billingWarehouseId
492
    """
369
    """
493
    self.send_scanSerializedItem(inventoryItem, type, warehouseId)
370
    self.send_scanSerializedItem(inventoryItem, type, billingWarehouseId)
494
    self.recv_scanSerializedItem()
371
    self.recv_scanSerializedItem()
495
 
372
 
496
  def send_scanSerializedItem(self, inventoryItem, type, warehouseId):
373
  def send_scanSerializedItem(self, inventoryItem, type, billingWarehouseId):
497
    self._oprot.writeMessageBegin('scanSerializedItem', TMessageType.CALL, self._seqid)
374
    self._oprot.writeMessageBegin('scanSerializedItem', TMessageType.CALL, self._seqid)
498
    args = scanSerializedItem_args()
375
    args = scanSerializedItem_args()
499
    args.inventoryItem = inventoryItem
376
    args.inventoryItem = inventoryItem
500
    args.type = type
377
    args.type = type
501
    args.warehouseId = warehouseId
378
    args.billingWarehouseId = billingWarehouseId
502
    args.write(self._oprot)
379
    args.write(self._oprot)
503
    self._oprot.writeMessageEnd()
380
    self._oprot.writeMessageEnd()
504
    self._oprot.trans.flush()
381
    self._oprot.trans.flush()
505
 
382
 
506
  def recv_scanSerializedItem(self, ):
383
  def recv_scanSerializedItem(self, ):
Line 515... Line 392...
515
    self._iprot.readMessageEnd()
392
    self._iprot.readMessageEnd()
516
    if result.wex is not None:
393
    if result.wex is not None:
517
      raise result.wex
394
      raise result.wex
518
    return
395
    return
519
 
396
 
520
  def scan(self, inventoryItemId, type, quantity, warehouseId):
397
  def scan(self, inventoryItem, type, quantity, billingWarehouseId):
521
    """
398
    """
522
    Scan non-serialized items.
399
    Scan non-serialized items.
523
 
400
 
524
    Parameters:
401
    Parameters:
525
     - inventoryItemId
402
     - inventoryItem
526
     - type
403
     - type
527
     - quantity
404
     - quantity
528
     - warehouseId
405
     - billingWarehouseId
529
    """
406
    """
530
    self.send_scan(inventoryItemId, type, quantity, warehouseId)
407
    self.send_scan(inventoryItem, type, quantity, billingWarehouseId)
531
    self.recv_scan()
408
    self.recv_scan()
532
 
409
 
533
  def send_scan(self, inventoryItemId, type, quantity, warehouseId):
410
  def send_scan(self, inventoryItem, type, quantity, billingWarehouseId):
534
    self._oprot.writeMessageBegin('scan', TMessageType.CALL, self._seqid)
411
    self._oprot.writeMessageBegin('scan', TMessageType.CALL, self._seqid)
535
    args = scan_args()
412
    args = scan_args()
536
    args.inventoryItemId = inventoryItemId
413
    args.inventoryItem = inventoryItem
537
    args.type = type
414
    args.type = type
538
    args.quantity = quantity
415
    args.quantity = quantity
539
    args.warehouseId = warehouseId
416
    args.billingWarehouseId = billingWarehouseId
540
    args.write(self._oprot)
417
    args.write(self._oprot)
541
    self._oprot.writeMessageEnd()
418
    self._oprot.writeMessageEnd()
542
    self._oprot.trans.flush()
419
    self._oprot.trans.flush()
543
 
420
 
544
  def recv_scan(self, ):
421
  def recv_scan(self, ):
Line 597... Line 474...
597
      return result.success
474
      return result.success
598
    if result.wex is not None:
475
    if result.wex is not None:
599
      raise result.wex
476
      raise result.wex
600
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
477
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
601
 
478
 
602
  def scanForOrder(self, inventoryItemId, type, quantity, orderId, fulfilmentWarehouseId):
479
  def scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
603
    """
480
    """
604
    Scan non-serialized items linked with an order.
481
    Scan non-serialized items linked with an order.
605
 
482
 
606
    Parameters:
483
    Parameters:
607
     - inventoryItemId
484
     - inventoryItem
608
     - type
485
     - type
609
     - quantity
486
     - quantity
610
     - orderId
487
     - orderId
611
     - fulfilmentWarehouseId
488
     - fulfilmentWarehouseId
-
 
489
     - billingWarehouseId
612
    """
490
    """
613
    self.send_scanForOrder(inventoryItemId, type, quantity, orderId, fulfilmentWarehouseId)
491
    self.send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId)
614
    self.recv_scanForOrder()
492
    return self.recv_scanForOrder()
615
 
493
 
616
  def send_scanForOrder(self, inventoryItemId, type, quantity, orderId, fulfilmentWarehouseId):
494
  def send_scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
617
    self._oprot.writeMessageBegin('scanForOrder', TMessageType.CALL, self._seqid)
495
    self._oprot.writeMessageBegin('scanForOrder', TMessageType.CALL, self._seqid)
618
    args = scanForOrder_args()
496
    args = scanForOrder_args()
619
    args.inventoryItemId = inventoryItemId
497
    args.inventoryItem = inventoryItem
620
    args.type = type
498
    args.type = type
621
    args.quantity = quantity
499
    args.quantity = quantity
622
    args.orderId = orderId
500
    args.orderId = orderId
623
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
501
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
-
 
502
    args.billingWarehouseId = billingWarehouseId
624
    args.write(self._oprot)
503
    args.write(self._oprot)
625
    self._oprot.writeMessageEnd()
504
    self._oprot.writeMessageEnd()
626
    self._oprot.trans.flush()
505
    self._oprot.trans.flush()
627
 
506
 
628
  def recv_scanForOrder(self, ):
507
  def recv_scanForOrder(self, ):
Line 633... Line 512...
633
      self._iprot.readMessageEnd()
512
      self._iprot.readMessageEnd()
634
      raise x
513
      raise x
635
    result = scanForOrder_result()
514
    result = scanForOrder_result()
636
    result.read(self._iprot)
515
    result.read(self._iprot)
637
    self._iprot.readMessageEnd()
516
    self._iprot.readMessageEnd()
-
 
517
    if result.success is not None:
-
 
518
      return result.success
638
    if result.wex is not None:
519
    if result.wex is not None:
639
      raise result.wex
520
      raise result.wex
640
    return
-
 
-
 
521
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");
641
 
522
 
642
  def createItemNumberMapping(self, itemNumber, itemId):
523
  def createItemNumberMapping(self, itemNumber, itemId):
643
    """
524
    """
644
    Created item number to item id mapping
525
    Created item number to item id mapping
645
 
526
 
Line 809... Line 690...
809
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
690
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
810
    self._processMap["createSerializedInventoryItem"] = Processor.process_createSerializedInventoryItem
691
    self._processMap["createSerializedInventoryItem"] = Processor.process_createSerializedInventoryItem
811
    self._processMap["createSerializedInventoryItemFromItemNumber"] = Processor.process_createSerializedInventoryItemFromItemNumber
692
    self._processMap["createSerializedInventoryItemFromItemNumber"] = Processor.process_createSerializedInventoryItemFromItemNumber
812
    self._processMap["createInventoryItem"] = Processor.process_createInventoryItem
693
    self._processMap["createInventoryItem"] = Processor.process_createInventoryItem
813
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
694
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
814
    self._processMap["getNonSeralizedInventoryItems"] = Processor.process_getNonSeralizedInventoryItems
695
    self._processMap["getNonSeralizedInventoryItem"] = Processor.process_getNonSeralizedInventoryItem
815
    self._processMap["getInventoryItems"] = Processor.process_getInventoryItems
-
 
816
    self._processMap["getScanForOrder"] = Processor.process_getScanForOrder
-
 
817
    self._processMap["getScan"] = Processor.process_getScan
-
 
818
    self._processMap["scanSerializedItem"] = Processor.process_scanSerializedItem
696
    self._processMap["scanSerializedItem"] = Processor.process_scanSerializedItem
819
    self._processMap["scan"] = Processor.process_scan
697
    self._processMap["scan"] = Processor.process_scan
820
    self._processMap["scanSerializedItemForOrder"] = Processor.process_scanSerializedItemForOrder
698
    self._processMap["scanSerializedItemForOrder"] = Processor.process_scanSerializedItemForOrder
821
    self._processMap["scanForOrder"] = Processor.process_scanForOrder
699
    self._processMap["scanForOrder"] = Processor.process_scanForOrder
822
    self._processMap["createItemNumberMapping"] = Processor.process_createItemNumberMapping
700
    self._processMap["createItemNumberMapping"] = Processor.process_createItemNumberMapping
Line 894... Line 772...
894
    oprot.writeMessageBegin("getInventoryItem", TMessageType.REPLY, seqid)
772
    oprot.writeMessageBegin("getInventoryItem", TMessageType.REPLY, seqid)
895
    result.write(oprot)
773
    result.write(oprot)
896
    oprot.writeMessageEnd()
774
    oprot.writeMessageEnd()
897
    oprot.trans.flush()
775
    oprot.trans.flush()
898
 
776
 
899
  def process_getNonSeralizedInventoryItems(self, seqid, iprot, oprot):
777
  def process_getNonSeralizedInventoryItem(self, seqid, iprot, oprot):
900
    args = getNonSeralizedInventoryItems_args()
778
    args = getNonSeralizedInventoryItem_args()
901
    args.read(iprot)
-
 
902
    iprot.readMessageEnd()
-
 
903
    result = getNonSeralizedInventoryItems_result()
-
 
904
    result.success = self._handler.getNonSeralizedInventoryItems(args.itemId, args.quantity, args.supplierId)
-
 
905
    oprot.writeMessageBegin("getNonSeralizedInventoryItems", TMessageType.REPLY, seqid)
-
 
906
    result.write(oprot)
-
 
907
    oprot.writeMessageEnd()
-
 
908
    oprot.trans.flush()
-
 
909
 
-
 
910
  def process_getInventoryItems(self, seqid, iprot, oprot):
-
 
911
    args = getInventoryItems_args()
-
 
912
    args.read(iprot)
-
 
913
    iprot.readMessageEnd()
-
 
914
    result = getInventoryItems_result()
-
 
915
    result.success = self._handler.getInventoryItems(args.itemId)
-
 
916
    oprot.writeMessageBegin("getInventoryItems", TMessageType.REPLY, seqid)
-
 
917
    result.write(oprot)
-
 
918
    oprot.writeMessageEnd()
-
 
919
    oprot.trans.flush()
-
 
920
 
-
 
921
  def process_getScanForOrder(self, seqid, iprot, oprot):
-
 
922
    args = getScanForOrder_args()
-
 
923
    args.read(iprot)
779
    args.read(iprot)
924
    iprot.readMessageEnd()
780
    iprot.readMessageEnd()
925
    result = getScanForOrder_result()
781
    result = getNonSeralizedInventoryItem_result()
926
    result.success = self._handler.getScanForOrder(args.orderId)
-
 
927
    oprot.writeMessageBegin("getScanForOrder", TMessageType.REPLY, seqid)
-
 
928
    result.write(oprot)
782
    try:
929
    oprot.writeMessageEnd()
-
 
930
    oprot.trans.flush()
-
 
931
 
-
 
932
  def process_getScan(self, seqid, iprot, oprot):
783
      result.success = self._handler.getNonSeralizedInventoryItem(args.itemId, args.warehouseId)
933
    args = getScan_args()
-
 
934
    args.read(iprot)
-
 
935
    iprot.readMessageEnd()
784
    except WarehouseServiceException, wex:
936
    result = getScan_result()
785
      result.wex = wex
937
    result.success = self._handler.getScan(args.inventoryItemId)
-
 
938
    oprot.writeMessageBegin("getScan", TMessageType.REPLY, seqid)
786
    oprot.writeMessageBegin("getNonSeralizedInventoryItem", TMessageType.REPLY, seqid)
939
    result.write(oprot)
787
    result.write(oprot)
940
    oprot.writeMessageEnd()
788
    oprot.writeMessageEnd()
941
    oprot.trans.flush()
789
    oprot.trans.flush()
942
 
790
 
943
  def process_scanSerializedItem(self, seqid, iprot, oprot):
791
  def process_scanSerializedItem(self, seqid, iprot, oprot):
944
    args = scanSerializedItem_args()
792
    args = scanSerializedItem_args()
945
    args.read(iprot)
793
    args.read(iprot)
946
    iprot.readMessageEnd()
794
    iprot.readMessageEnd()
947
    result = scanSerializedItem_result()
795
    result = scanSerializedItem_result()
948
    try:
796
    try:
949
      self._handler.scanSerializedItem(args.inventoryItem, args.type, args.warehouseId)
797
      self._handler.scanSerializedItem(args.inventoryItem, args.type, args.billingWarehouseId)
950
    except WarehouseServiceException, wex:
798
    except WarehouseServiceException, wex:
951
      result.wex = wex
799
      result.wex = wex
952
    oprot.writeMessageBegin("scanSerializedItem", TMessageType.REPLY, seqid)
800
    oprot.writeMessageBegin("scanSerializedItem", TMessageType.REPLY, seqid)
953
    result.write(oprot)
801
    result.write(oprot)
954
    oprot.writeMessageEnd()
802
    oprot.writeMessageEnd()
Line 958... Line 806...
958
    args = scan_args()
806
    args = scan_args()
959
    args.read(iprot)
807
    args.read(iprot)
960
    iprot.readMessageEnd()
808
    iprot.readMessageEnd()
961
    result = scan_result()
809
    result = scan_result()
962
    try:
810
    try:
963
      self._handler.scan(args.inventoryItemId, args.type, args.quantity, args.warehouseId)
811
      self._handler.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId)
964
    except WarehouseServiceException, wex:
812
    except WarehouseServiceException, wex:
965
      result.wex = wex
813
      result.wex = wex
966
    oprot.writeMessageBegin("scan", TMessageType.REPLY, seqid)
814
    oprot.writeMessageBegin("scan", TMessageType.REPLY, seqid)
967
    result.write(oprot)
815
    result.write(oprot)
968
    oprot.writeMessageEnd()
816
    oprot.writeMessageEnd()
Line 986... Line 834...
986
    args = scanForOrder_args()
834
    args = scanForOrder_args()
987
    args.read(iprot)
835
    args.read(iprot)
988
    iprot.readMessageEnd()
836
    iprot.readMessageEnd()
989
    result = scanForOrder_result()
837
    result = scanForOrder_result()
990
    try:
838
    try:
991
      self._handler.scanForOrder(args.inventoryItemId, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId)
839
      result.success = self._handler.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId)
992
    except WarehouseServiceException, wex:
840
    except WarehouseServiceException, wex:
993
      result.wex = wex
841
      result.wex = wex
994
    oprot.writeMessageBegin("scanForOrder", TMessageType.REPLY, seqid)
842
    oprot.writeMessageBegin("scanForOrder", TMessageType.REPLY, seqid)
995
    result.write(oprot)
843
    result.write(oprot)
996
    oprot.writeMessageEnd()
844
    oprot.writeMessageEnd()
Line 1674... Line 1522...
1674
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1522
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1675
 
1523
 
1676
  def __ne__(self, other):
1524
  def __ne__(self, other):
1677
    return not (self == other)
1525
    return not (self == other)
1678
 
1526
 
1679
class getNonSeralizedInventoryItems_args:
1527
class getNonSeralizedInventoryItem_args:
1680
  """
1528
  """
1681
  Attributes:
1529
  Attributes:
1682
   - itemId
1530
   - itemId
1683
   - quantity
-
 
1684
   - supplierId
1531
   - warehouseId
1685
  """
1532
  """
1686
 
1533
 
1687
  thrift_spec = (
1534
  thrift_spec = (
1688
    None, # 0
1535
    None, # 0
1689
    (1, TType.I64, 'itemId', None, None, ), # 1
1536
    (1, TType.I64, 'itemId', None, None, ), # 1
1690
    (2, TType.I64, 'quantity', None, None, ), # 2
-
 
1691
    (3, TType.I64, 'supplierId', None, None, ), # 3
1537
    (2, TType.I64, 'warehouseId', None, None, ), # 2
1692
  )
1538
  )
1693
 
1539
 
1694
  def __init__(self, itemId=None, quantity=None, supplierId=None,):
1540
  def __init__(self, itemId=None, warehouseId=None,):
1695
    self.itemId = itemId
1541
    self.itemId = itemId
1696
    self.quantity = quantity
-
 
1697
    self.supplierId = supplierId
1542
    self.warehouseId = warehouseId
1698
 
1543
 
1699
  def read(self, iprot):
1544
  def read(self, iprot):
1700
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1701
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1702
      return
1547
      return
Line 1710... Line 1555...
1710
          self.itemId = iprot.readI64();
1555
          self.itemId = iprot.readI64();
1711
        else:
1556
        else:
1712
          iprot.skip(ftype)
1557
          iprot.skip(ftype)
1713
      elif fid == 2:
1558
      elif fid == 2:
1714
        if ftype == TType.I64:
1559
        if ftype == TType.I64:
1715
          self.quantity = iprot.readI64();
-
 
1716
        else:
-
 
1717
          iprot.skip(ftype)
-
 
1718
      elif fid == 3:
-
 
1719
        if ftype == TType.I64:
-
 
1720
          self.supplierId = iprot.readI64();
1560
          self.warehouseId = iprot.readI64();
1721
        else:
1561
        else:
1722
          iprot.skip(ftype)
1562
          iprot.skip(ftype)
1723
      else:
1563
      else:
1724
        iprot.skip(ftype)
1564
        iprot.skip(ftype)
1725
      iprot.readFieldEnd()
1565
      iprot.readFieldEnd()
Line 1727... Line 1567...
1727
 
1567
 
1728
  def write(self, oprot):
1568
  def write(self, oprot):
1729
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1569
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1730
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1570
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1731
      return
1571
      return
1732
    oprot.writeStructBegin('getNonSeralizedInventoryItems_args')
1572
    oprot.writeStructBegin('getNonSeralizedInventoryItem_args')
1733
    if self.itemId is not None:
1573
    if self.itemId is not None:
1734
      oprot.writeFieldBegin('itemId', TType.I64, 1)
1574
      oprot.writeFieldBegin('itemId', TType.I64, 1)
1735
      oprot.writeI64(self.itemId)
1575
      oprot.writeI64(self.itemId)
1736
      oprot.writeFieldEnd()
1576
      oprot.writeFieldEnd()
1737
    if self.quantity is not None:
-
 
1738
      oprot.writeFieldBegin('quantity', TType.I64, 2)
-
 
1739
      oprot.writeI64(self.quantity)
-
 
1740
      oprot.writeFieldEnd()
-
 
1741
    if self.supplierId is not None:
-
 
1742
      oprot.writeFieldBegin('supplierId', TType.I64, 3)
-
 
1743
      oprot.writeI64(self.supplierId)
-
 
1744
      oprot.writeFieldEnd()
-
 
1745
    oprot.writeFieldStop()
-
 
1746
    oprot.writeStructEnd()
-
 
1747
 
-
 
1748
  def validate(self):
-
 
1749
    return
-
 
1750
 
-
 
1751
 
-
 
1752
  def __repr__(self):
-
 
1753
    L = ['%s=%r' % (key, value)
-
 
1754
      for key, value in self.__dict__.iteritems()]
-
 
1755
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
1756
 
-
 
1757
  def __eq__(self, other):
-
 
1758
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
1759
 
-
 
1760
  def __ne__(self, other):
-
 
1761
    return not (self == other)
-
 
1762
 
-
 
1763
class getNonSeralizedInventoryItems_result:
-
 
1764
  """
-
 
1765
  Attributes:
-
 
1766
   - success
-
 
1767
  """
-
 
1768
 
-
 
1769
  thrift_spec = (
-
 
1770
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
-
 
1771
  )
-
 
1772
 
-
 
1773
  def __init__(self, success=None,):
-
 
1774
    self.success = success
-
 
1775
 
-
 
1776
  def read(self, iprot):
-
 
1777
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
1778
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
1779
      return
-
 
1780
    iprot.readStructBegin()
-
 
1781
    while True:
-
 
1782
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
1783
      if ftype == TType.STOP:
-
 
1784
        break
-
 
1785
      if fid == 0:
-
 
1786
        if ftype == TType.LIST:
-
 
1787
          self.success = []
-
 
1788
          (_etype3, _size0) = iprot.readListBegin()
-
 
1789
          for _i4 in xrange(_size0):
-
 
1790
            _elem5 = InventoryItem()
-
 
1791
            _elem5.read(iprot)
-
 
1792
            self.success.append(_elem5)
-
 
1793
          iprot.readListEnd()
-
 
1794
        else:
-
 
1795
          iprot.skip(ftype)
-
 
1796
      else:
-
 
1797
        iprot.skip(ftype)
-
 
1798
      iprot.readFieldEnd()
-
 
1799
    iprot.readStructEnd()
-
 
1800
 
-
 
1801
  def write(self, oprot):
-
 
1802
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
1803
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
1804
      return
-
 
1805
    oprot.writeStructBegin('getNonSeralizedInventoryItems_result')
-
 
1806
    if self.success is not None:
-
 
1807
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
1808
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
1809
      for iter6 in self.success:
-
 
1810
        iter6.write(oprot)
-
 
1811
      oprot.writeListEnd()
-
 
1812
      oprot.writeFieldEnd()
-
 
1813
    oprot.writeFieldStop()
-
 
1814
    oprot.writeStructEnd()
-
 
1815
 
-
 
1816
  def validate(self):
-
 
1817
    return
-
 
1818
 
-
 
1819
 
-
 
1820
  def __repr__(self):
-
 
1821
    L = ['%s=%r' % (key, value)
-
 
1822
      for key, value in self.__dict__.iteritems()]
-
 
1823
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
1824
 
-
 
1825
  def __eq__(self, other):
-
 
1826
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
1827
 
-
 
1828
  def __ne__(self, other):
-
 
1829
    return not (self == other)
-
 
1830
 
-
 
1831
class getInventoryItems_args:
-
 
1832
  """
-
 
1833
  Attributes:
-
 
1834
   - itemId
-
 
1835
  """
-
 
1836
 
-
 
1837
  thrift_spec = (
-
 
1838
    None, # 0
-
 
1839
    (1, TType.I64, 'itemId', None, None, ), # 1
-
 
1840
  )
-
 
1841
 
-
 
1842
  def __init__(self, itemId=None,):
-
 
1843
    self.itemId = itemId
-
 
1844
 
-
 
1845
  def read(self, iprot):
-
 
1846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
1847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
1848
      return
-
 
1849
    iprot.readStructBegin()
-
 
1850
    while True:
-
 
1851
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
1852
      if ftype == TType.STOP:
-
 
1853
        break
-
 
1854
      if fid == 1:
-
 
1855
        if ftype == TType.I64:
-
 
1856
          self.itemId = iprot.readI64();
-
 
1857
        else:
-
 
1858
          iprot.skip(ftype)
-
 
1859
      else:
-
 
1860
        iprot.skip(ftype)
-
 
1861
      iprot.readFieldEnd()
-
 
1862
    iprot.readStructEnd()
-
 
1863
 
-
 
1864
  def write(self, oprot):
-
 
1865
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
1866
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
1867
      return
-
 
1868
    oprot.writeStructBegin('getInventoryItems_args')
-
 
1869
    if self.itemId is not None:
1577
    if self.warehouseId is not None:
1870
      oprot.writeFieldBegin('itemId', TType.I64, 1)
1578
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
1871
      oprot.writeI64(self.itemId)
1579
      oprot.writeI64(self.warehouseId)
1872
      oprot.writeFieldEnd()
1580
      oprot.writeFieldEnd()
1873
    oprot.writeFieldStop()
1581
    oprot.writeFieldStop()
1874
    oprot.writeStructEnd()
1582
    oprot.writeStructEnd()
1875
 
1583
 
1876
  def validate(self):
1584
  def validate(self):
Line 1886... Line 1594...
1886
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1594
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1887
 
1595
 
1888
  def __ne__(self, other):
1596
  def __ne__(self, other):
1889
    return not (self == other)
1597
    return not (self == other)
1890
 
1598
 
1891
class getInventoryItems_result:
1599
class getNonSeralizedInventoryItem_result:
1892
  """
1600
  """
1893
  Attributes:
1601
  Attributes:
1894
   - success
1602
   - success
-
 
1603
   - wex
1895
  """
1604
  """
1896
 
1605
 
1897
  thrift_spec = (
1606
  thrift_spec = (
1898
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
1607
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
-
 
1608
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
1899
  )
1609
  )
1900
 
1610
 
1901
  def __init__(self, success=None,):
1611
  def __init__(self, success=None, wex=None,):
1902
    self.success = success
1612
    self.success = success
-
 
1613
    self.wex = wex
1903
 
1614
 
1904
  def read(self, iprot):
1615
  def read(self, iprot):
1905
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1616
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1906
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1617
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1907
      return
1618
      return
Line 1909... Line 1620...
1909
    while True:
1620
    while True:
1910
      (fname, ftype, fid) = iprot.readFieldBegin()
1621
      (fname, ftype, fid) = iprot.readFieldBegin()
1911
      if ftype == TType.STOP:
1622
      if ftype == TType.STOP:
1912
        break
1623
        break
1913
      if fid == 0:
1624
      if fid == 0:
1914
        if ftype == TType.LIST:
1625
        if ftype == TType.STRUCT:
1915
          self.success = []
-
 
1916
          (_etype10, _size7) = iprot.readListBegin()
-
 
1917
          for _i11 in xrange(_size7):
-
 
1918
            _elem12 = InventoryItem()
1626
          self.success = InventoryItem()
1919
            _elem12.read(iprot)
-
 
1920
            self.success.append(_elem12)
1627
          self.success.read(iprot)
1921
          iprot.readListEnd()
-
 
1922
        else:
-
 
1923
          iprot.skip(ftype)
-
 
1924
      else:
-
 
1925
        iprot.skip(ftype)
-
 
1926
      iprot.readFieldEnd()
-
 
1927
    iprot.readStructEnd()
-
 
1928
 
-
 
1929
  def write(self, oprot):
-
 
1930
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
1931
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
1932
      return
-
 
1933
    oprot.writeStructBegin('getInventoryItems_result')
-
 
1934
    if self.success is not None:
-
 
1935
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
1936
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
1937
      for iter13 in self.success:
-
 
1938
        iter13.write(oprot)
-
 
1939
      oprot.writeListEnd()
-
 
1940
      oprot.writeFieldEnd()
-
 
1941
    oprot.writeFieldStop()
-
 
1942
    oprot.writeStructEnd()
-
 
1943
 
-
 
1944
  def validate(self):
-
 
1945
    return
-
 
1946
 
-
 
1947
 
-
 
1948
  def __repr__(self):
-
 
1949
    L = ['%s=%r' % (key, value)
-
 
1950
      for key, value in self.__dict__.iteritems()]
-
 
1951
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
1952
 
-
 
1953
  def __eq__(self, other):
-
 
1954
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
1955
 
-
 
1956
  def __ne__(self, other):
-
 
1957
    return not (self == other)
-
 
1958
 
-
 
1959
class getScanForOrder_args:
-
 
1960
  """
-
 
1961
  Attributes:
-
 
1962
   - orderId
-
 
1963
  """
-
 
1964
 
-
 
1965
  thrift_spec = (
-
 
1966
    None, # 0
-
 
1967
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
1968
  )
-
 
1969
 
-
 
1970
  def __init__(self, orderId=None,):
-
 
1971
    self.orderId = orderId
-
 
1972
 
-
 
1973
  def read(self, iprot):
-
 
1974
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
1975
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
1976
      return
-
 
1977
    iprot.readStructBegin()
-
 
1978
    while True:
-
 
1979
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
1980
      if ftype == TType.STOP:
-
 
1981
        break
-
 
1982
      if fid == 1:
-
 
1983
        if ftype == TType.I64:
-
 
1984
          self.orderId = iprot.readI64();
-
 
1985
        else:
1628
        else:
1986
          iprot.skip(ftype)
1629
          iprot.skip(ftype)
1987
      else:
-
 
1988
        iprot.skip(ftype)
-
 
1989
      iprot.readFieldEnd()
-
 
1990
    iprot.readStructEnd()
-
 
1991
 
-
 
1992
  def write(self, oprot):
-
 
1993
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
1994
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
1995
      return
-
 
1996
    oprot.writeStructBegin('getScanForOrder_args')
-
 
1997
    if self.orderId is not None:
-
 
1998
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
1999
      oprot.writeI64(self.orderId)
-
 
2000
      oprot.writeFieldEnd()
-
 
2001
    oprot.writeFieldStop()
-
 
2002
    oprot.writeStructEnd()
-
 
2003
 
-
 
2004
  def validate(self):
-
 
2005
    return
-
 
2006
 
-
 
2007
 
-
 
2008
  def __repr__(self):
-
 
2009
    L = ['%s=%r' % (key, value)
-
 
2010
      for key, value in self.__dict__.iteritems()]
-
 
2011
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2012
 
-
 
2013
  def __eq__(self, other):
-
 
2014
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2015
 
-
 
2016
  def __ne__(self, other):
-
 
2017
    return not (self == other)
-
 
2018
 
-
 
2019
class getScanForOrder_result:
-
 
2020
  """
-
 
2021
  Attributes:
-
 
2022
   - success
-
 
2023
  """
-
 
2024
 
-
 
2025
  thrift_spec = (
-
 
2026
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
-
 
2027
  )
-
 
2028
 
-
 
2029
  def __init__(self, success=None,):
-
 
2030
    self.success = success
-
 
2031
 
-
 
2032
  def read(self, iprot):
-
 
2033
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2034
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2035
      return
-
 
2036
    iprot.readStructBegin()
-
 
2037
    while True:
-
 
2038
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2039
      if ftype == TType.STOP:
-
 
2040
        break
-
 
2041
      if fid == 0:
1630
      elif fid == 1:
2042
        if ftype == TType.LIST:
1631
        if ftype == TType.STRUCT:
2043
          self.success = []
-
 
2044
          (_etype17, _size14) = iprot.readListBegin()
1632
          self.wex = WarehouseServiceException()
2045
          for _i18 in xrange(_size14):
-
 
2046
            _elem19 = Scan()
-
 
2047
            _elem19.read(iprot)
1633
          self.wex.read(iprot)
2048
            self.success.append(_elem19)
-
 
2049
          iprot.readListEnd()
-
 
2050
        else:
1634
        else:
2051
          iprot.skip(ftype)
1635
          iprot.skip(ftype)
2052
      else:
1636
      else:
2053
        iprot.skip(ftype)
1637
        iprot.skip(ftype)
2054
      iprot.readFieldEnd()
1638
      iprot.readFieldEnd()
Line 2056... Line 1640...
2056
 
1640
 
2057
  def write(self, oprot):
1641
  def write(self, oprot):
2058
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2059
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2060
      return
1644
      return
2061
    oprot.writeStructBegin('getScanForOrder_result')
1645
    oprot.writeStructBegin('getNonSeralizedInventoryItem_result')
2062
    if self.success is not None:
1646
    if self.success is not None:
2063
      oprot.writeFieldBegin('success', TType.LIST, 0)
1647
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2064
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
2065
      for iter20 in self.success:
-
 
2066
        iter20.write(oprot)
1648
      self.success.write(oprot)
2067
      oprot.writeListEnd()
-
 
2068
      oprot.writeFieldEnd()
-
 
2069
    oprot.writeFieldStop()
-
 
2070
    oprot.writeStructEnd()
-
 
2071
 
-
 
2072
  def validate(self):
-
 
2073
    return
-
 
2074
 
-
 
2075
 
-
 
2076
  def __repr__(self):
-
 
2077
    L = ['%s=%r' % (key, value)
-
 
2078
      for key, value in self.__dict__.iteritems()]
-
 
2079
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2080
 
-
 
2081
  def __eq__(self, other):
-
 
2082
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2083
 
-
 
2084
  def __ne__(self, other):
-
 
2085
    return not (self == other)
-
 
2086
 
-
 
2087
class getScan_args:
-
 
2088
  """
-
 
2089
  Attributes:
-
 
2090
   - inventoryItemId
-
 
2091
  """
-
 
2092
 
-
 
2093
  thrift_spec = (
-
 
2094
    None, # 0
-
 
2095
    (1, TType.I64, 'inventoryItemId', None, None, ), # 1
-
 
2096
  )
-
 
2097
 
-
 
2098
  def __init__(self, inventoryItemId=None,):
-
 
2099
    self.inventoryItemId = inventoryItemId
-
 
2100
 
-
 
2101
  def read(self, iprot):
-
 
2102
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2103
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2104
      return
-
 
2105
    iprot.readStructBegin()
-
 
2106
    while True:
-
 
2107
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2108
      if ftype == TType.STOP:
-
 
2109
        break
-
 
2110
      if fid == 1:
-
 
2111
        if ftype == TType.I64:
-
 
2112
          self.inventoryItemId = iprot.readI64();
-
 
2113
        else:
-
 
2114
          iprot.skip(ftype)
-
 
2115
      else:
-
 
2116
        iprot.skip(ftype)
-
 
2117
      iprot.readFieldEnd()
-
 
2118
    iprot.readStructEnd()
-
 
2119
 
-
 
2120
  def write(self, oprot):
-
 
2121
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2122
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2123
      return
-
 
2124
    oprot.writeStructBegin('getScan_args')
-
 
2125
    if self.inventoryItemId is not None:
-
 
2126
      oprot.writeFieldBegin('inventoryItemId', TType.I64, 1)
-
 
2127
      oprot.writeI64(self.inventoryItemId)
-
 
2128
      oprot.writeFieldEnd()
1649
      oprot.writeFieldEnd()
2129
    oprot.writeFieldStop()
-
 
2130
    oprot.writeStructEnd()
-
 
2131
 
-
 
2132
  def validate(self):
-
 
2133
    return
-
 
2134
 
-
 
2135
 
-
 
2136
  def __repr__(self):
-
 
2137
    L = ['%s=%r' % (key, value)
-
 
2138
      for key, value in self.__dict__.iteritems()]
-
 
2139
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2140
 
-
 
2141
  def __eq__(self, other):
-
 
2142
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2143
 
-
 
2144
  def __ne__(self, other):
-
 
2145
    return not (self == other)
-
 
2146
 
-
 
2147
class getScan_result:
-
 
2148
  """
-
 
2149
  Attributes:
-
 
2150
   - success
-
 
2151
  """
-
 
2152
 
-
 
2153
  thrift_spec = (
-
 
2154
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
-
 
2155
  )
-
 
2156
 
-
 
2157
  def __init__(self, success=None,):
-
 
2158
    self.success = success
-
 
2159
 
-
 
2160
  def read(self, iprot):
-
 
2161
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2162
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2163
      return
-
 
2164
    iprot.readStructBegin()
-
 
2165
    while True:
-
 
2166
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2167
      if ftype == TType.STOP:
-
 
2168
        break
-
 
2169
      if fid == 0:
-
 
2170
        if ftype == TType.LIST:
-
 
2171
          self.success = []
-
 
2172
          (_etype24, _size21) = iprot.readListBegin()
-
 
2173
          for _i25 in xrange(_size21):
-
 
2174
            _elem26 = Scan()
-
 
2175
            _elem26.read(iprot)
-
 
2176
            self.success.append(_elem26)
-
 
2177
          iprot.readListEnd()
-
 
2178
        else:
-
 
2179
          iprot.skip(ftype)
-
 
2180
      else:
-
 
2181
        iprot.skip(ftype)
-
 
2182
      iprot.readFieldEnd()
-
 
2183
    iprot.readStructEnd()
-
 
2184
 
-
 
2185
  def write(self, oprot):
-
 
2186
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2187
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2188
      return
-
 
2189
    oprot.writeStructBegin('getScan_result')
-
 
2190
    if self.success is not None:
1650
    if self.wex is not None:
2191
      oprot.writeFieldBegin('success', TType.LIST, 0)
1651
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
2192
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
2193
      for iter27 in self.success:
-
 
2194
        iter27.write(oprot)
1652
      self.wex.write(oprot)
2195
      oprot.writeListEnd()
-
 
2196
      oprot.writeFieldEnd()
1653
      oprot.writeFieldEnd()
2197
    oprot.writeFieldStop()
1654
    oprot.writeFieldStop()
2198
    oprot.writeStructEnd()
1655
    oprot.writeStructEnd()
2199
 
1656
 
2200
  def validate(self):
1657
  def validate(self):
Line 2215... Line 1672...
2215
class scanSerializedItem_args:
1672
class scanSerializedItem_args:
2216
  """
1673
  """
2217
  Attributes:
1674
  Attributes:
2218
   - inventoryItem
1675
   - inventoryItem
2219
   - type
1676
   - type
2220
   - warehouseId
1677
   - billingWarehouseId
2221
  """
1678
  """
2222
 
1679
 
2223
  thrift_spec = (
1680
  thrift_spec = (
2224
    None, # 0
1681
    None, # 0
2225
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
1682
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
2226
    (2, TType.I32, 'type', None, None, ), # 2
1683
    (2, TType.I32, 'type', None, None, ), # 2
2227
    (3, TType.I64, 'warehouseId', None, None, ), # 3
1684
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
2228
  )
1685
  )
2229
 
1686
 
2230
  def __init__(self, inventoryItem=None, type=None, warehouseId=None,):
1687
  def __init__(self, inventoryItem=None, type=None, billingWarehouseId=None,):
2231
    self.inventoryItem = inventoryItem
1688
    self.inventoryItem = inventoryItem
2232
    self.type = type
1689
    self.type = type
2233
    self.warehouseId = warehouseId
1690
    self.billingWarehouseId = billingWarehouseId
2234
 
1691
 
2235
  def read(self, iprot):
1692
  def read(self, iprot):
2236
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1693
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2237
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1694
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2238
      return
1695
      return
Line 2252... Line 1709...
2252
          self.type = iprot.readI32();
1709
          self.type = iprot.readI32();
2253
        else:
1710
        else:
2254
          iprot.skip(ftype)
1711
          iprot.skip(ftype)
2255
      elif fid == 3:
1712
      elif fid == 3:
2256
        if ftype == TType.I64:
1713
        if ftype == TType.I64:
2257
          self.warehouseId = iprot.readI64();
1714
          self.billingWarehouseId = iprot.readI64();
2258
        else:
1715
        else:
2259
          iprot.skip(ftype)
1716
          iprot.skip(ftype)
2260
      else:
1717
      else:
2261
        iprot.skip(ftype)
1718
        iprot.skip(ftype)
2262
      iprot.readFieldEnd()
1719
      iprot.readFieldEnd()
Line 2273... Line 1730...
2273
      oprot.writeFieldEnd()
1730
      oprot.writeFieldEnd()
2274
    if self.type is not None:
1731
    if self.type is not None:
2275
      oprot.writeFieldBegin('type', TType.I32, 2)
1732
      oprot.writeFieldBegin('type', TType.I32, 2)
2276
      oprot.writeI32(self.type)
1733
      oprot.writeI32(self.type)
2277
      oprot.writeFieldEnd()
1734
      oprot.writeFieldEnd()
2278
    if self.warehouseId is not None:
1735
    if self.billingWarehouseId is not None:
2279
      oprot.writeFieldBegin('warehouseId', TType.I64, 3)
1736
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
2280
      oprot.writeI64(self.warehouseId)
1737
      oprot.writeI64(self.billingWarehouseId)
2281
      oprot.writeFieldEnd()
1738
      oprot.writeFieldEnd()
2282
    oprot.writeFieldStop()
1739
    oprot.writeFieldStop()
2283
    oprot.writeStructEnd()
1740
    oprot.writeStructEnd()
2284
 
1741
 
2285
  def validate(self):
1742
  def validate(self):
Line 2359... Line 1816...
2359
    return not (self == other)
1816
    return not (self == other)
2360
 
1817
 
2361
class scan_args:
1818
class scan_args:
2362
  """
1819
  """
2363
  Attributes:
1820
  Attributes:
2364
   - inventoryItemId
1821
   - inventoryItem
2365
   - type
1822
   - type
2366
   - quantity
1823
   - quantity
2367
   - warehouseId
1824
   - billingWarehouseId
2368
  """
1825
  """
2369
 
1826
 
2370
  thrift_spec = (
1827
  thrift_spec = (
2371
    None, # 0
1828
    None, # 0
2372
    (1, TType.I64, 'inventoryItemId', None, None, ), # 1
1829
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
2373
    (2, TType.I32, 'type', None, None, ), # 2
1830
    (2, TType.I32, 'type', None, None, ), # 2
2374
    (3, TType.I64, 'quantity', None, None, ), # 3
1831
    (3, TType.I64, 'quantity', None, None, ), # 3
2375
    (4, TType.I64, 'warehouseId', None, None, ), # 4
1832
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
2376
  )
1833
  )
2377
 
1834
 
2378
  def __init__(self, inventoryItemId=None, type=None, quantity=None, warehouseId=None,):
1835
  def __init__(self, inventoryItem=None, type=None, quantity=None, billingWarehouseId=None,):
2379
    self.inventoryItemId = inventoryItemId
1836
    self.inventoryItem = inventoryItem
2380
    self.type = type
1837
    self.type = type
2381
    self.quantity = quantity
1838
    self.quantity = quantity
2382
    self.warehouseId = warehouseId
1839
    self.billingWarehouseId = billingWarehouseId
2383
 
1840
 
2384
  def read(self, iprot):
1841
  def read(self, iprot):
2385
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1842
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2386
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1843
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2387
      return
1844
      return
Line 2389... Line 1846...
2389
    while True:
1846
    while True:
2390
      (fname, ftype, fid) = iprot.readFieldBegin()
1847
      (fname, ftype, fid) = iprot.readFieldBegin()
2391
      if ftype == TType.STOP:
1848
      if ftype == TType.STOP:
2392
        break
1849
        break
2393
      if fid == 1:
1850
      if fid == 1:
2394
        if ftype == TType.I64:
1851
        if ftype == TType.STRUCT:
2395
          self.inventoryItemId = iprot.readI64();
1852
          self.inventoryItem = InventoryItem()
-
 
1853
          self.inventoryItem.read(iprot)
2396
        else:
1854
        else:
2397
          iprot.skip(ftype)
1855
          iprot.skip(ftype)
2398
      elif fid == 2:
1856
      elif fid == 2:
2399
        if ftype == TType.I32:
1857
        if ftype == TType.I32:
2400
          self.type = iprot.readI32();
1858
          self.type = iprot.readI32();
Line 2405... Line 1863...
2405
          self.quantity = iprot.readI64();
1863
          self.quantity = iprot.readI64();
2406
        else:
1864
        else:
2407
          iprot.skip(ftype)
1865
          iprot.skip(ftype)
2408
      elif fid == 4:
1866
      elif fid == 4:
2409
        if ftype == TType.I64:
1867
        if ftype == TType.I64:
2410
          self.warehouseId = iprot.readI64();
1868
          self.billingWarehouseId = iprot.readI64();
2411
        else:
1869
        else:
2412
          iprot.skip(ftype)
1870
          iprot.skip(ftype)
2413
      else:
1871
      else:
2414
        iprot.skip(ftype)
1872
        iprot.skip(ftype)
2415
      iprot.readFieldEnd()
1873
      iprot.readFieldEnd()
Line 2418... Line 1876...
2418
  def write(self, oprot):
1876
  def write(self, oprot):
2419
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1877
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2420
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1878
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2421
      return
1879
      return
2422
    oprot.writeStructBegin('scan_args')
1880
    oprot.writeStructBegin('scan_args')
2423
    if self.inventoryItemId is not None:
1881
    if self.inventoryItem is not None:
2424
      oprot.writeFieldBegin('inventoryItemId', TType.I64, 1)
1882
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
2425
      oprot.writeI64(self.inventoryItemId)
1883
      self.inventoryItem.write(oprot)
2426
      oprot.writeFieldEnd()
1884
      oprot.writeFieldEnd()
2427
    if self.type is not None:
1885
    if self.type is not None:
2428
      oprot.writeFieldBegin('type', TType.I32, 2)
1886
      oprot.writeFieldBegin('type', TType.I32, 2)
2429
      oprot.writeI32(self.type)
1887
      oprot.writeI32(self.type)
2430
      oprot.writeFieldEnd()
1888
      oprot.writeFieldEnd()
2431
    if self.quantity is not None:
1889
    if self.quantity is not None:
2432
      oprot.writeFieldBegin('quantity', TType.I64, 3)
1890
      oprot.writeFieldBegin('quantity', TType.I64, 3)
2433
      oprot.writeI64(self.quantity)
1891
      oprot.writeI64(self.quantity)
2434
      oprot.writeFieldEnd()
1892
      oprot.writeFieldEnd()
2435
    if self.warehouseId is not None:
1893
    if self.billingWarehouseId is not None:
2436
      oprot.writeFieldBegin('warehouseId', TType.I64, 4)
1894
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
2437
      oprot.writeI64(self.warehouseId)
1895
      oprot.writeI64(self.billingWarehouseId)
2438
      oprot.writeFieldEnd()
1896
      oprot.writeFieldEnd()
2439
    oprot.writeFieldStop()
1897
    oprot.writeFieldStop()
2440
    oprot.writeStructEnd()
1898
    oprot.writeStructEnd()
2441
 
1899
 
2442
  def validate(self):
1900
  def validate(self):
Line 2709... Line 2167...
2709
    return not (self == other)
2167
    return not (self == other)
2710
 
2168
 
2711
class scanForOrder_args:
2169
class scanForOrder_args:
2712
  """
2170
  """
2713
  Attributes:
2171
  Attributes:
2714
   - inventoryItemId
2172
   - inventoryItem
2715
   - type
2173
   - type
2716
   - quantity
2174
   - quantity
2717
   - orderId
2175
   - orderId
2718
   - fulfilmentWarehouseId
2176
   - fulfilmentWarehouseId
-
 
2177
   - billingWarehouseId
2719
  """
2178
  """
2720
 
2179
 
2721
  thrift_spec = (
2180
  thrift_spec = (
2722
    None, # 0
2181
    None, # 0
2723
    (1, TType.I64, 'inventoryItemId', None, None, ), # 1
2182
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
2724
    (2, TType.I32, 'type', None, None, ), # 2
2183
    (2, TType.I32, 'type', None, None, ), # 2
2725
    (3, TType.I64, 'quantity', None, None, ), # 3
2184
    (3, TType.I64, 'quantity', None, None, ), # 3
2726
    (4, TType.I64, 'orderId', None, None, ), # 4
2185
    (4, TType.I64, 'orderId', None, None, ), # 4
2727
    (5, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 5
2186
    (5, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 5
-
 
2187
    (6, TType.I64, 'billingWarehouseId', None, None, ), # 6
2728
  )
2188
  )
2729
 
2189
 
2730
  def __init__(self, inventoryItemId=None, type=None, quantity=None, orderId=None, fulfilmentWarehouseId=None,):
2190
  def __init__(self, inventoryItem=None, type=None, quantity=None, orderId=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):
2731
    self.inventoryItemId = inventoryItemId
2191
    self.inventoryItem = inventoryItem
2732
    self.type = type
2192
    self.type = type
2733
    self.quantity = quantity
2193
    self.quantity = quantity
2734
    self.orderId = orderId
2194
    self.orderId = orderId
2735
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
2195
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
-
 
2196
    self.billingWarehouseId = billingWarehouseId
2736
 
2197
 
2737
  def read(self, iprot):
2198
  def read(self, iprot):
2738
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2199
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2739
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2200
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2740
      return
2201
      return
Line 2742... Line 2203...
2742
    while True:
2203
    while True:
2743
      (fname, ftype, fid) = iprot.readFieldBegin()
2204
      (fname, ftype, fid) = iprot.readFieldBegin()
2744
      if ftype == TType.STOP:
2205
      if ftype == TType.STOP:
2745
        break
2206
        break
2746
      if fid == 1:
2207
      if fid == 1:
2747
        if ftype == TType.I64:
2208
        if ftype == TType.STRUCT:
2748
          self.inventoryItemId = iprot.readI64();
2209
          self.inventoryItem = InventoryItem()
-
 
2210
          self.inventoryItem.read(iprot)
2749
        else:
2211
        else:
2750
          iprot.skip(ftype)
2212
          iprot.skip(ftype)
2751
      elif fid == 2:
2213
      elif fid == 2:
2752
        if ftype == TType.I32:
2214
        if ftype == TType.I32:
2753
          self.type = iprot.readI32();
2215
          self.type = iprot.readI32();
Line 2766... Line 2228...
2766
      elif fid == 5:
2228
      elif fid == 5:
2767
        if ftype == TType.I64:
2229
        if ftype == TType.I64:
2768
          self.fulfilmentWarehouseId = iprot.readI64();
2230
          self.fulfilmentWarehouseId = iprot.readI64();
2769
        else:
2231
        else:
2770
          iprot.skip(ftype)
2232
          iprot.skip(ftype)
-
 
2233
      elif fid == 6:
-
 
2234
        if ftype == TType.I64:
-
 
2235
          self.billingWarehouseId = iprot.readI64();
-
 
2236
        else:
-
 
2237
          iprot.skip(ftype)
2771
      else:
2238
      else:
2772
        iprot.skip(ftype)
2239
        iprot.skip(ftype)
2773
      iprot.readFieldEnd()
2240
      iprot.readFieldEnd()
2774
    iprot.readStructEnd()
2241
    iprot.readStructEnd()
2775
 
2242
 
2776
  def write(self, oprot):
2243
  def write(self, oprot):
2777
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2244
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2778
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2245
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2779
      return
2246
      return
2780
    oprot.writeStructBegin('scanForOrder_args')
2247
    oprot.writeStructBegin('scanForOrder_args')
2781
    if self.inventoryItemId is not None:
2248
    if self.inventoryItem is not None:
2782
      oprot.writeFieldBegin('inventoryItemId', TType.I64, 1)
2249
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
2783
      oprot.writeI64(self.inventoryItemId)
2250
      self.inventoryItem.write(oprot)
2784
      oprot.writeFieldEnd()
2251
      oprot.writeFieldEnd()
2785
    if self.type is not None:
2252
    if self.type is not None:
2786
      oprot.writeFieldBegin('type', TType.I32, 2)
2253
      oprot.writeFieldBegin('type', TType.I32, 2)
2787
      oprot.writeI32(self.type)
2254
      oprot.writeI32(self.type)
2788
      oprot.writeFieldEnd()
2255
      oprot.writeFieldEnd()
Line 2796... Line 2263...
2796
      oprot.writeFieldEnd()
2263
      oprot.writeFieldEnd()
2797
    if self.fulfilmentWarehouseId is not None:
2264
    if self.fulfilmentWarehouseId is not None:
2798
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 5)
2265
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 5)
2799
      oprot.writeI64(self.fulfilmentWarehouseId)
2266
      oprot.writeI64(self.fulfilmentWarehouseId)
2800
      oprot.writeFieldEnd()
2267
      oprot.writeFieldEnd()
-
 
2268
    if self.billingWarehouseId is not None:
-
 
2269
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)
-
 
2270
      oprot.writeI64(self.billingWarehouseId)
-
 
2271
      oprot.writeFieldEnd()
2801
    oprot.writeFieldStop()
2272
    oprot.writeFieldStop()
2802
    oprot.writeStructEnd()
2273
    oprot.writeStructEnd()
2803
 
2274
 
2804
  def validate(self):
2275
  def validate(self):
2805
    return
2276
    return
Line 2817... Line 2288...
2817
    return not (self == other)
2288
    return not (self == other)
2818
 
2289
 
2819
class scanForOrder_result:
2290
class scanForOrder_result:
2820
  """
2291
  """
2821
  Attributes:
2292
  Attributes:
-
 
2293
   - success
2822
   - wex
2294
   - wex
2823
  """
2295
  """
2824
 
2296
 
2825
  thrift_spec = (
2297
  thrift_spec = (
2826
    None, # 0
2298
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
2827
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
2299
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
2828
  )
2300
  )
2829
 
2301
 
2830
  def __init__(self, wex=None,):
2302
  def __init__(self, success=None, wex=None,):
-
 
2303
    self.success = success
2831
    self.wex = wex
2304
    self.wex = wex
2832
 
2305
 
2833
  def read(self, iprot):
2306
  def read(self, iprot):
2834
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2307
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2835
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2308
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
Line 2837... Line 2310...
2837
    iprot.readStructBegin()
2310
    iprot.readStructBegin()
2838
    while True:
2311
    while True:
2839
      (fname, ftype, fid) = iprot.readFieldBegin()
2312
      (fname, ftype, fid) = iprot.readFieldBegin()
2840
      if ftype == TType.STOP:
2313
      if ftype == TType.STOP:
2841
        break
2314
        break
2842
      if fid == 1:
2315
      if fid == 0:
-
 
2316
        if ftype == TType.STRUCT:
-
 
2317
          self.success = InventoryItem()
-
 
2318
          self.success.read(iprot)
-
 
2319
        else:
-
 
2320
          iprot.skip(ftype)
-
 
2321
      elif fid == 1:
2843
        if ftype == TType.STRUCT:
2322
        if ftype == TType.STRUCT:
2844
          self.wex = WarehouseServiceException()
2323
          self.wex = WarehouseServiceException()
2845
          self.wex.read(iprot)
2324
          self.wex.read(iprot)
2846
        else:
2325
        else:
2847
          iprot.skip(ftype)
2326
          iprot.skip(ftype)
Line 2853... Line 2332...
2853
  def write(self, oprot):
2332
  def write(self, oprot):
2854
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2333
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2855
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2334
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2856
      return
2335
      return
2857
    oprot.writeStructBegin('scanForOrder_result')
2336
    oprot.writeStructBegin('scanForOrder_result')
-
 
2337
    if self.success is not None:
-
 
2338
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
2339
      self.success.write(oprot)
-
 
2340
      oprot.writeFieldEnd()
2858
    if self.wex is not None:
2341
    if self.wex is not None:
2859
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
2342
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
2860
      self.wex.write(oprot)
2343
      self.wex.write(oprot)
2861
      oprot.writeFieldEnd()
2344
      oprot.writeFieldEnd()
2862
    oprot.writeFieldStop()
2345
    oprot.writeFieldStop()
Line 3074... Line 2557...
3074
      if ftype == TType.STOP:
2557
      if ftype == TType.STOP:
3075
        break
2558
        break
3076
      if fid == 0:
2559
      if fid == 0:
3077
        if ftype == TType.LIST:
2560
        if ftype == TType.LIST:
3078
          self.success = []
2561
          self.success = []
3079
          (_etype31, _size28) = iprot.readListBegin()
2562
          (_etype3, _size0) = iprot.readListBegin()
3080
          for _i32 in xrange(_size28):
2563
          for _i4 in xrange(_size0):
3081
            _elem33 = iprot.readString();
2564
            _elem5 = iprot.readString();
3082
            self.success.append(_elem33)
2565
            self.success.append(_elem5)
3083
          iprot.readListEnd()
2566
          iprot.readListEnd()
3084
        else:
2567
        else:
3085
          iprot.skip(ftype)
2568
          iprot.skip(ftype)
3086
      else:
2569
      else:
3087
        iprot.skip(ftype)
2570
        iprot.skip(ftype)
Line 3094... Line 2577...
3094
      return
2577
      return
3095
    oprot.writeStructBegin('getItemNumbers_result')
2578
    oprot.writeStructBegin('getItemNumbers_result')
3096
    if self.success is not None:
2579
    if self.success is not None:
3097
      oprot.writeFieldBegin('success', TType.LIST, 0)
2580
      oprot.writeFieldBegin('success', TType.LIST, 0)
3098
      oprot.writeListBegin(TType.STRING, len(self.success))
2581
      oprot.writeListBegin(TType.STRING, len(self.success))
3099
      for iter34 in self.success:
2582
      for iter6 in self.success:
3100
        oprot.writeString(iter34)
2583
        oprot.writeString(iter6)
3101
      oprot.writeListEnd()
2584
      oprot.writeListEnd()
3102
      oprot.writeFieldEnd()
2585
      oprot.writeFieldEnd()
3103
    oprot.writeFieldStop()
2586
    oprot.writeFieldStop()
3104
    oprot.writeStructEnd()
2587
    oprot.writeStructEnd()
3105
 
2588
 
Line 3201... Line 2684...
3201
      if ftype == TType.STOP:
2684
      if ftype == TType.STOP:
3202
        break
2685
        break
3203
      if fid == 0:
2686
      if fid == 0:
3204
        if ftype == TType.LIST:
2687
        if ftype == TType.LIST:
3205
          self.success = []
2688
          self.success = []
3206
          (_etype38, _size35) = iprot.readListBegin()
2689
          (_etype10, _size7) = iprot.readListBegin()
3207
          for _i39 in xrange(_size35):
2690
          for _i11 in xrange(_size7):
3208
            _elem40 = iprot.readI64();
2691
            _elem12 = iprot.readI64();
3209
            self.success.append(_elem40)
2692
            self.success.append(_elem12)
3210
          iprot.readListEnd()
2693
          iprot.readListEnd()
3211
        else:
2694
        else:
3212
          iprot.skip(ftype)
2695
          iprot.skip(ftype)
3213
      else:
2696
      else:
3214
        iprot.skip(ftype)
2697
        iprot.skip(ftype)
Line 3221... Line 2704...
3221
      return
2704
      return
3222
    oprot.writeStructBegin('getItemIds_result')
2705
    oprot.writeStructBegin('getItemIds_result')
3223
    if self.success is not None:
2706
    if self.success is not None:
3224
      oprot.writeFieldBegin('success', TType.LIST, 0)
2707
      oprot.writeFieldBegin('success', TType.LIST, 0)
3225
      oprot.writeListBegin(TType.I64, len(self.success))
2708
      oprot.writeListBegin(TType.I64, len(self.success))
3226
      for iter41 in self.success:
2709
      for iter13 in self.success:
3227
        oprot.writeI64(iter41)
2710
        oprot.writeI64(iter13)
3228
      oprot.writeListEnd()
2711
      oprot.writeListEnd()
3229
      oprot.writeFieldEnd()
2712
      oprot.writeFieldEnd()
3230
    oprot.writeFieldStop()
2713
    oprot.writeFieldStop()
3231
    oprot.writeStructEnd()
2714
    oprot.writeStructEnd()
3232
 
2715
 
Line 3331... Line 2814...
3331
      if ftype == TType.STOP:
2814
      if ftype == TType.STOP:
3332
        break
2815
        break
3333
      if fid == 0:
2816
      if fid == 0:
3334
        if ftype == TType.LIST:
2817
        if ftype == TType.LIST:
3335
          self.success = []
2818
          self.success = []
3336
          (_etype45, _size42) = iprot.readListBegin()
2819
          (_etype17, _size14) = iprot.readListBegin()
3337
          for _i46 in xrange(_size42):
2820
          for _i18 in xrange(_size14):
3338
            _elem47 = InventoryItem()
2821
            _elem19 = InventoryItem()
3339
            _elem47.read(iprot)
2822
            _elem19.read(iprot)
3340
            self.success.append(_elem47)
2823
            self.success.append(_elem19)
3341
          iprot.readListEnd()
2824
          iprot.readListEnd()
3342
        else:
2825
        else:
3343
          iprot.skip(ftype)
2826
          iprot.skip(ftype)
3344
      elif fid == 1:
2827
      elif fid == 1:
3345
        if ftype == TType.STRUCT:
2828
        if ftype == TType.STRUCT:
Line 3358... Line 2841...
3358
      return
2841
      return
3359
    oprot.writeStructBegin('getInventoryItemsFromLastScanType_result')
2842
    oprot.writeStructBegin('getInventoryItemsFromLastScanType_result')
3360
    if self.success is not None:
2843
    if self.success is not None:
3361
      oprot.writeFieldBegin('success', TType.LIST, 0)
2844
      oprot.writeFieldBegin('success', TType.LIST, 0)
3362
      oprot.writeListBegin(TType.STRUCT, len(self.success))
2845
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3363
      for iter48 in self.success:
2846
      for iter20 in self.success:
3364
        iter48.write(oprot)
2847
        iter20.write(oprot)
3365
      oprot.writeListEnd()
2848
      oprot.writeListEnd()
3366
      oprot.writeFieldEnd()
2849
      oprot.writeFieldEnd()
3367
    if self.wex is not None:
2850
    if self.wex is not None:
3368
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
2851
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
3369
      self.wex.write(oprot)
2852
      self.wex.write(oprot)