Subversion Repositories SmartDukaan

Rev

Rev 15045 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2821 chandransh 1
#
3431 rajveer 2
# Autogenerated by Thrift Compiler (0.7.0)
2821 chandransh 3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
3376 rajveer 8
import shop2020.thriftpy.generic.GenericService
2821 chandransh 9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
3431 rajveer 12
from thrift.protocol import TBinaryProtocol, TProtocol
2821 chandransh 13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
3376 rajveer 19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
4501 mandeep.dh 20
  def getInventoryItem(self, serialNumber):
2832 chandransh 21
    """
4501 mandeep.dh 22
    Retrieves serialized inventory item given a serial number
3431 rajveer 23
 
2832 chandransh 24
    Parameters:
4501 mandeep.dh 25
     - serialNumber
2832 chandransh 26
    """
27
    pass
28
 
8565 amar.kumar 29
  def getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId):
2821 chandransh 30
    """
5361 mandeep.dh 31
    Retrieves non-serialized inventory item from a given supplier
3431 rajveer 32
 
2821 chandransh 33
    Parameters:
5530 mandeep.dh 34
     - itemNumber
4501 mandeep.dh 35
     - itemId
5530 mandeep.dh 36
     - fulfilmentWarehouseId
8565 amar.kumar 37
     - billingWarehouseId
2821 chandransh 38
    """
39
    pass
40
 
7410 amar.kumar 41
  def scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
2821 chandransh 42
    """
4501 mandeep.dh 43
    Scan non-serialized items.
3431 rajveer 44
 
2821 chandransh 45
    Parameters:
5361 mandeep.dh 46
     - inventoryItem
2821 chandransh 47
     - type
4501 mandeep.dh 48
     - quantity
5361 mandeep.dh 49
     - billingWarehouseId
7410 amar.kumar 50
     - transferLotId
2821 chandransh 51
    """
52
    pass
53
 
10489 amar.kumar 54
  def genericScan(self, inventoryItem, scan):
55
    """
56
    Scan non-serialized items.
57
 
58
    Parameters:
59
     - inventoryItem
60
     - scan
61
    """
62
    pass
63
 
5110 mandeep.dh 64
  def scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
4501 mandeep.dh 65
    """
66
    Scan serialized items linked with an order. Returns its price.
2821 chandransh 67
 
4501 mandeep.dh 68
    Parameters:
4555 mandeep.dh 69
     - serialNumber
4501 mandeep.dh 70
     - type
71
     - orderId
5110 mandeep.dh 72
     - fulfilmentWarehouseId
73
     - quantity
74
     - billingWarehouseId
4501 mandeep.dh 75
    """
76
    pass
77
 
5361 mandeep.dh 78
  def scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
4501 mandeep.dh 79
    """
80
    Scan non-serialized items linked with an order.
81
 
82
    Parameters:
5361 mandeep.dh 83
     - inventoryItem
4501 mandeep.dh 84
     - type
85
     - quantity
86
     - orderId
5110 mandeep.dh 87
     - fulfilmentWarehouseId
5361 mandeep.dh 88
     - billingWarehouseId
4501 mandeep.dh 89
    """
90
    pass
91
 
92
  def createItemNumberMapping(self, itemNumber, itemId):
93
    """
94
    Created item number to item id mapping
95
 
96
    Parameters:
97
     - itemNumber
98
     - itemId
99
    """
100
    pass
101
 
4620 amit.gupta 102
  def getItemNumbers(self, itemId):
103
    """
104
    Get itemNumber mappings for itemId
4501 mandeep.dh 105
 
4620 amit.gupta 106
    Parameters:
107
     - itemId
108
    """
109
    pass
110
 
5110 mandeep.dh 111
  def getItemIds(self, itemNumber):
112
    """
113
    Gets item ids for a given item number
4620 amit.gupta 114
 
5110 mandeep.dh 115
    Parameters:
116
     - itemNumber
117
    """
118
    pass
119
 
5185 mandeep.dh 120
  def getInventoryItemsFromLastScanType(self, lastScanType):
121
    """
122
    Retrieves all inventory items given a last scan type
5110 mandeep.dh 123
 
5185 mandeep.dh 124
    Parameters:
125
     - lastScanType
126
    """
127
    pass
128
 
129
  def getInventoryItemFromId(self, inventoryItemId):
130
    """
131
    Retrieves inventory item given a inventoryItem id
132
 
133
    Parameters:
134
     - inventoryItemId
135
    """
136
    pass
137
 
5372 mandeep.dh 138
  def getPurchaseScans(self, startDate, endDate):
139
    """
140
    Returns the purchase scans grouped by items for Purchase register reconciliation
5185 mandeep.dh 141
 
5372 mandeep.dh 142
    Parameters:
143
     - startDate
144
     - endDate
145
    """
146
    pass
147
 
7216 amar.kumar 148
  def getPurchaseScansByGrnDate(self, startDate, endDate):
149
    """
150
    Returns the purchase scans between grn dates grouped by items for Purchase register reconciliation
151
 
152
    Parameters:
153
     - startDate
154
     - endDate
155
    """
156
    pass
157
 
10407 amar.kumar 158
  def getEmptyGrnsByDate(self, startDate, endDate):
159
    """
160
    Returns the empty grn-ids between grn dates
161
 
162
    Parameters:
163
     - startDate
164
     - endDate
165
    """
166
    pass
167
 
5496 mandeep.dh 168
  def fetchScansPerInvoiceNumber(self, date):
169
    """
170
    Returns the invoices and the count of scans against on a given day.
5372 mandeep.dh 171
 
5496 mandeep.dh 172
    Parameters:
173
     - date
174
    """
175
    pass
176
 
5620 mandeep.dh 177
  def getInventoryItemFromOrder(self, orderId):
178
    """
179
    Returns inventory item for a given order
5496 mandeep.dh 180
 
5620 mandeep.dh 181
    Parameters:
182
     - orderId
183
    """
184
    pass
185
 
5711 mandeep.dh 186
  def getInventoryAge(self, ):
187
    """
188
    Fetches the stock inventory age week-wise
189
    """
190
    pass
5620 mandeep.dh 191
 
6361 rajveer 192
  def getInventoryScansForItem(self, itemId, fromDate, toDate):
193
    """
194
    Fetches the scanRecords for a given item for a given time interval
5711 mandeep.dh 195
 
6361 rajveer 196
    Parameters:
197
     - itemId
198
     - fromDate
199
     - toDate
200
    """
201
    pass
202
 
203
  def getScanRecordsForSerialNumber(self, serialNumber):
204
    """
205
    Fetches the scanRecords for a given serialNumber for a given time interval
206
 
207
    Parameters:
208
     - serialNumber
209
    """
210
    pass
211
 
7718 amar.kumar 212
  def scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
6467 amar.kumar 213
    """
6630 amar.kumar 214
    Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
6361 rajveer 215
 
6467 amar.kumar 216
    Parameters:
217
     - saleReturnItems
218
     - vendorId
7718 amar.kumar 219
     - billingWarehouseId
6467 amar.kumar 220
    """
221
    pass
222
 
7718 amar.kumar 223
  def scanForLostItem(self, lostItems, vendorId, billingWarehouseId):
6630 amar.kumar 224
    """
225
    Inserts scans for lost Items and updates lastScanType in InventoryItems
6467 amar.kumar 226
 
6630 amar.kumar 227
    Parameters:
228
     - lostItems
229
     - vendorId
7718 amar.kumar 230
     - billingWarehouseId
6630 amar.kumar 231
    """
232
    pass
233
 
7715 vikram.rag 234
  def getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 235
    """
236
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
7715 vikram.rag 237
 
238
    Parameters:
239
     - physicalWarehouseId
6630 amar.kumar 240
    """
241
    pass
242
 
7715 vikram.rag 243
  def getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 244
    """
245
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
7715 vikram.rag 246
 
247
    Parameters:
248
     - physicalWarehouseId
6630 amar.kumar 249
    """
250
    pass
251
 
6762 amar.kumar 252
  def getHistoricSerializedInventoryByScans(self, date):
253
    """
254
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
6630 amar.kumar 255
 
6762 amar.kumar 256
    Parameters:
257
     - date
258
    """
259
    pass
260
 
261
  def getHistoricNonSerializedInventoryByScans(self, date):
262
    """
263
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
264
 
265
    Parameters:
266
     - date
267
    """
268
    pass
269
 
10407 amar.kumar 270
  def getOurHistoricSerializedInventoryByScans(self, date):
271
    """
272
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
273
 
274
    Parameters:
275
     - date
276
    """
277
    pass
278
 
279
  def getOurHistoricNonSerializedInventoryByScans(self, date):
280
    """
281
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
282
 
283
    Parameters:
284
     - date
285
    """
286
    pass
287
 
7672 rajveer 288
  def scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):
6762 amar.kumar 289
    """
6880 amar.kumar 290
    Insert Purchase/Sale Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 291
 
292
    Parameters:
293
     - itemId
294
     - serialNumber
295
     - itemNumber
296
     - invoiceNumber
297
     - warehouseId
298
     - unitPrice
7672 rajveer 299
     - nlc
6762 amar.kumar 300
     - orderId
301
    """
302
    pass
303
 
304
  def scanForOursExternalSaleReturn(self, orderId, unitPrice):
305
    """
6880 amar.kumar 306
    Insert Purchase_Ret/Sale_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 307
 
308
    Parameters:
309
     - orderId
310
     - unitPrice
311
    """
312
    pass
313
 
6880 amar.kumar 314
  def getMovementNonSerializedInventoryByScans(self, startDate, endDate):
315
    """
10407 amar.kumar 316
    This returns movement for each non serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)
317
 
6880 amar.kumar 318
    Parameters:
319
     - startDate
320
     - endDate
321
    """
322
    pass
6762 amar.kumar 323
 
6880 amar.kumar 324
  def getMovementSerializedInventoryByScans(self, startDate, endDate):
325
    """
10407 amar.kumar 326
    This returns movement for each serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)
327
 
6880 amar.kumar 328
    Parameters:
329
     - startDate
330
     - endDate
331
    """
332
    pass
333
 
7216 amar.kumar 334
  def getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):
335
    """
10407 amar.kumar 336
    This returns movement for each serialized item in the specified window.(Doesn't include Amazon w/h)
337
 
7216 amar.kumar 338
    Parameters:
339
     - startDate
340
     - endDate
341
    """
342
    pass
343
 
344
  def getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):
345
    """
10407 amar.kumar 346
    This returns movement for each non serialized item in the specified window.(Doesn't include Amazon w/h)
347
 
7216 amar.kumar 348
    Parameters:
349
     - startDate
350
     - endDate
351
    """
352
    pass
353
 
7190 amar.kumar 354
  def scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):
355
    """
356
    Parameters:
357
     - orderId
358
     - freebieItemId
359
     - freebieWarehouseId
360
     - scanType
361
    """
362
    pass
6880 amar.kumar 363
 
7199 amar.kumar 364
  def reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):
365
    """
366
    Parameters:
367
     - oldOrderId
368
     - newOrderId
369
     - freebieItemId
370
     - scanType
371
    """
372
    pass
7190 amar.kumar 373
 
7410 amar.kumar 374
  def isItemTransferAllowed(self, warehouseId, transferWarehouseId):
375
    """
376
    Parameters:
377
     - warehouseId
378
     - transferWarehouseId
379
    """
380
    pass
7199 amar.kumar 381
 
7410 amar.kumar 382
  def createTransferLot(self, originWarehouseId, destWarehouseId):
383
    """
384
    Parameters:
385
     - originWarehouseId
386
     - destWarehouseId
387
    """
388
    pass
389
 
390
  def getTransferLot(self, transferLotId):
391
    """
392
    Parameters:
393
     - transferLotId
394
    """
395
    pass
396
 
397
  def markTransferLotAsReceived(self, id, remoteTransferRefNumber):
398
    """
399
    Parameters:
400
     - id
401
     - remoteTransferRefNumber
402
    """
403
    pass
404
 
405
  def getTransferLotsByDate(self, fromDate, toDate):
406
    """
407
    Parameters:
408
     - fromDate
409
     - toDate
410
    """
411
    pass
412
 
413
  def getAllowedDestinationWarehousesForTransfer(self, warehouseId):
414
    """
415
    Parameters:
416
     - warehouseId
417
    """
418
    pass
419
 
420
  def getItemsInTransferLot(self, transferLotId):
421
    """
422
    Parameters:
423
     - transferLotId
424
    """
425
    pass
426
 
427
  def markItemsAsReceivedForTransferLot(self, id):
428
    """
429
    Parameters:
430
     - id
431
    """
432
    pass
433
 
434
  def updateTransferLotAfterItemReceive(self, id):
435
    """
436
    Parameters:
437
     - id
438
    """
439
    pass
440
 
7459 amar.kumar 441
  def scanForTransferOut(self, inventoryItems, type, transferLotId):
7410 amar.kumar 442
    """
443
    Parameters:
444
     - inventoryItems
445
     - type
446
     - transferLotId
447
    """
448
    pass
449
 
7459 amar.kumar 450
  def scanForTransferIn(self, inventoryItems, type, transferLotId):
451
    """
452
    Parameters:
453
     - inventoryItems
454
     - type
455
     - transferLotId
456
    """
457
    pass
7410 amar.kumar 458
 
7459 amar.kumar 459
  def scanForOursThirdPartyReceive(self, inventoryItems, id):
460
    """
461
    Parameters:
462
     - inventoryItems
463
     - id
464
    """
465
    pass
466
 
7574 amar.kumar 467
  def getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
468
    """
469
    Parameters:
470
     - itemId
471
     - physicalWarehouseId
472
    """
473
    pass
7459 amar.kumar 474
 
7672 rajveer 475
  def getInTransitInventory(self, originWarehouseId):
476
    """
477
    Parameters:
478
     - originWarehouseId
479
    """
480
    pass
7574 amar.kumar 481
 
7968 amar.kumar 482
  def isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
483
    """
484
    Parameters:
485
     - itemId
486
     - serialNumber
487
     - warehouseId
488
    """
489
    pass
7672 rajveer 490
 
7968 amar.kumar 491
  def getHistoricBadInventoryByScans(self, date):
492
    """
493
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
494
 
495
    Parameters:
496
     - date
497
    """
498
    pass
499
 
8717 amar.kumar 500
  def scanForBadSale(self, serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
8565 amar.kumar 501
    """
502
    Parameters:
8717 amar.kumar 503
     - serialNumber
504
     - itemNumber
505
     - itemId
8565 amar.kumar 506
     - orderId
8717 amar.kumar 507
     - fulfilmentWarehouseId
8565 amar.kumar 508
     - quantity
509
     - billingWarehouseId
510
    """
511
    pass
7968 amar.kumar 512
 
10120 manish.sha 513
  def getTransferLotItemsForMarkReceive(self, transferLotId, scanType):
514
    """
515
    Parameters:
516
     - transferLotId
517
     - scanType
518
    """
519
    pass
8565 amar.kumar 520
 
10120 manish.sha 521
  def markItemsAsReceivedForTransferLotPartial(self, inventoryItems, transferLotId):
522
    """
523
    Parameters:
524
     - inventoryItems
525
     - transferLotId
526
    """
527
    pass
528
 
529
  def markTransferLotAsReceivedPartial(self, id, remoteTransferRefNumber):
530
    """
531
    Parameters:
532
     - id
533
     - remoteTransferRefNumber
534
    """
535
    pass
536
 
10690 manish.sha 537
  def getInventoryItemScannedInForPO(self, itemId, purchaseIds):
538
    """
539
    Parameters:
540
     - itemId
541
     - purchaseIds
542
    """
543
    pass
10120 manish.sha 544
 
10690 manish.sha 545
  def getAmazonTransferredSkuDetails(self, itemIds):
546
    """
547
    Parameters:
548
     - itemIds
549
    """
550
    pass
551
 
552
  def getScansforPurchase(self, purchaseId, scanType):
553
    """
554
    Parameters:
555
     - purchaseId
556
     - scanType
557
    """
558
    pass
559
 
10864 manish.sha 560
  def getCurrentBadQuantityForItem(self, itemId, currentWarehouseId, physicalWarehouseId):
561
    """
562
    Parameters:
563
     - itemId
564
     - currentWarehouseId
565
     - physicalWarehouseId
566
    """
567
    pass
10690 manish.sha 568
 
10864 manish.sha 569
  def scanForBadPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
570
    """
571
    Parameters:
572
     - saleReturnItems
573
     - vendorId
574
     - billingWarehouseId
575
    """
576
    pass
577
 
13504 manish.sha 578
  def getItemsInPurchaseReturn(self, purchaseReturnId, type, returnTime):
10864 manish.sha 579
    """
580
    Parameters:
581
     - purchaseReturnId
11751 manish.sha 582
     - type
13504 manish.sha 583
     - returnTime
10864 manish.sha 584
    """
585
    pass
586
 
10886 manish.sha 587
  def getScansForInventoryItem(self, inventoryItemId, type):
588
    """
589
    Parameters:
590
     - inventoryItemId
591
     - type
592
    """
593
    pass
10864 manish.sha 594
 
12531 manish.sha 595
  def checkGrnImeiStatus(self, imeiNos):
596
    """
597
    Parameters:
598
     - imeiNos
599
    """
600
    pass
10886 manish.sha 601
 
12800 manish.sha 602
  def getInventoryAgeConsideredItems(self, itemId):
603
    """
604
    Parameters:
605
     - itemId
606
    """
607
    pass
12531 manish.sha 608
 
13529 manish.sha 609
  def getCompleteMovementForThirdPartyWarehouse(self, startDate, endDate):
610
    """
611
    Parameters:
612
     - startDate
613
     - endDate
614
    """
615
    pass
12800 manish.sha 616
 
14491 manish.sha 617
  def getAllDoaOutInventoryItems(self, ):
618
    pass
13529 manish.sha 619
 
15045 manish.sha 620
  def getAllUnCompletedStockShipments(self, source):
621
    """
622
    Parameters:
623
     - source
624
    """
625
    pass
14491 manish.sha 626
 
15045 manish.sha 627
  def getRemovalStockShipmentReferenceById(self, id):
628
    """
629
    Parameters:
630
     - id
631
    """
632
    pass
633
 
634
  def createRemovalStockShipmentReference(self, removalStockShipmentReference):
635
    """
636
    Parameters:
637
     - removalStockShipmentReference
638
    """
639
    pass
640
 
641
  def updateShipmentReferenceTransferLot(self, transferLotId, shipmentReferenceId):
642
    """
643
    Parameters:
644
     - transferLotId
645
     - shipmentReferenceId
646
    """
647
    pass
648
 
16264 manish.sha 649
  def fetchScansPerTransferInvoiceNumber(self, date):
650
    """
651
    Returns the shipment references and the count of scans against on a given day.
15045 manish.sha 652
 
16264 manish.sha 653
    Parameters:
654
     - date
655
    """
656
    pass
657
 
658
 
3376 rajveer 659
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2821 chandransh 660
  def __init__(self, iprot, oprot=None):
3376 rajveer 661
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2821 chandransh 662
 
4501 mandeep.dh 663
  def getInventoryItem(self, serialNumber):
2832 chandransh 664
    """
4501 mandeep.dh 665
    Retrieves serialized inventory item given a serial number
3431 rajveer 666
 
2832 chandransh 667
    Parameters:
4501 mandeep.dh 668
     - serialNumber
2832 chandransh 669
    """
4501 mandeep.dh 670
    self.send_getInventoryItem(serialNumber)
671
    return self.recv_getInventoryItem()
2832 chandransh 672
 
4501 mandeep.dh 673
  def send_getInventoryItem(self, serialNumber):
674
    self._oprot.writeMessageBegin('getInventoryItem', TMessageType.CALL, self._seqid)
675
    args = getInventoryItem_args()
676
    args.serialNumber = serialNumber
2832 chandransh 677
    args.write(self._oprot)
678
    self._oprot.writeMessageEnd()
679
    self._oprot.trans.flush()
680
 
4501 mandeep.dh 681
  def recv_getInventoryItem(self, ):
2832 chandransh 682
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
683
    if mtype == TMessageType.EXCEPTION:
684
      x = TApplicationException()
685
      x.read(self._iprot)
686
      self._iprot.readMessageEnd()
687
      raise x
4501 mandeep.dh 688
    result = getInventoryItem_result()
2832 chandransh 689
    result.read(self._iprot)
690
    self._iprot.readMessageEnd()
3431 rajveer 691
    if result.success is not None:
2832 chandransh 692
      return result.success
4541 mandeep.dh 693
    if result.wex is not None:
694
      raise result.wex
4501 mandeep.dh 695
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
2832 chandransh 696
 
8565 amar.kumar 697
  def getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId):
2821 chandransh 698
    """
5361 mandeep.dh 699
    Retrieves non-serialized inventory item from a given supplier
3431 rajveer 700
 
2821 chandransh 701
    Parameters:
5530 mandeep.dh 702
     - itemNumber
4501 mandeep.dh 703
     - itemId
5530 mandeep.dh 704
     - fulfilmentWarehouseId
8565 amar.kumar 705
     - billingWarehouseId
2821 chandransh 706
    """
8565 amar.kumar 707
    self.send_getNonSeralizedInventoryItem(itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId)
5361 mandeep.dh 708
    return self.recv_getNonSeralizedInventoryItem()
2821 chandransh 709
 
8565 amar.kumar 710
  def send_getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId):
5361 mandeep.dh 711
    self._oprot.writeMessageBegin('getNonSeralizedInventoryItem', TMessageType.CALL, self._seqid)
712
    args = getNonSeralizedInventoryItem_args()
5530 mandeep.dh 713
    args.itemNumber = itemNumber
4501 mandeep.dh 714
    args.itemId = itemId
5530 mandeep.dh 715
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 716
    args.billingWarehouseId = billingWarehouseId
2821 chandransh 717
    args.write(self._oprot)
718
    self._oprot.writeMessageEnd()
719
    self._oprot.trans.flush()
720
 
5361 mandeep.dh 721
  def recv_getNonSeralizedInventoryItem(self, ):
2821 chandransh 722
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
723
    if mtype == TMessageType.EXCEPTION:
724
      x = TApplicationException()
725
      x.read(self._iprot)
726
      self._iprot.readMessageEnd()
727
      raise x
5361 mandeep.dh 728
    result = getNonSeralizedInventoryItem_result()
2821 chandransh 729
    result.read(self._iprot)
730
    self._iprot.readMessageEnd()
3431 rajveer 731
    if result.success is not None:
2821 chandransh 732
      return result.success
5361 mandeep.dh 733
    if result.wex is not None:
734
      raise result.wex
735
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
2821 chandransh 736
 
7410 amar.kumar 737
  def scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
3383 chandransh 738
    """
4501 mandeep.dh 739
    Scan non-serialized items.
3431 rajveer 740
 
2821 chandransh 741
    Parameters:
5361 mandeep.dh 742
     - inventoryItem
2821 chandransh 743
     - type
4501 mandeep.dh 744
     - quantity
5361 mandeep.dh 745
     - billingWarehouseId
7410 amar.kumar 746
     - transferLotId
2821 chandransh 747
    """
7410 amar.kumar 748
    self.send_scan(inventoryItem, type, quantity, billingWarehouseId, transferLotId)
4501 mandeep.dh 749
    self.recv_scan()
2821 chandransh 750
 
7410 amar.kumar 751
  def send_scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
4501 mandeep.dh 752
    self._oprot.writeMessageBegin('scan', TMessageType.CALL, self._seqid)
753
    args = scan_args()
5361 mandeep.dh 754
    args.inventoryItem = inventoryItem
2821 chandransh 755
    args.type = type
4501 mandeep.dh 756
    args.quantity = quantity
5361 mandeep.dh 757
    args.billingWarehouseId = billingWarehouseId
7410 amar.kumar 758
    args.transferLotId = transferLotId
2821 chandransh 759
    args.write(self._oprot)
760
    self._oprot.writeMessageEnd()
761
    self._oprot.trans.flush()
762
 
4501 mandeep.dh 763
  def recv_scan(self, ):
2821 chandransh 764
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
765
    if mtype == TMessageType.EXCEPTION:
766
      x = TApplicationException()
767
      x.read(self._iprot)
768
      self._iprot.readMessageEnd()
769
      raise x
4501 mandeep.dh 770
    result = scan_result()
2821 chandransh 771
    result.read(self._iprot)
772
    self._iprot.readMessageEnd()
3431 rajveer 773
    if result.wex is not None:
2821 chandransh 774
      raise result.wex
775
    return
776
 
10489 amar.kumar 777
  def genericScan(self, inventoryItem, scan):
778
    """
779
    Scan non-serialized items.
780
 
781
    Parameters:
782
     - inventoryItem
783
     - scan
784
    """
785
    self.send_genericScan(inventoryItem, scan)
786
    self.recv_genericScan()
787
 
788
  def send_genericScan(self, inventoryItem, scan):
789
    self._oprot.writeMessageBegin('genericScan', TMessageType.CALL, self._seqid)
790
    args = genericScan_args()
791
    args.inventoryItem = inventoryItem
792
    args.scan = scan
793
    args.write(self._oprot)
794
    self._oprot.writeMessageEnd()
795
    self._oprot.trans.flush()
796
 
797
  def recv_genericScan(self, ):
798
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
799
    if mtype == TMessageType.EXCEPTION:
800
      x = TApplicationException()
801
      x.read(self._iprot)
802
      self._iprot.readMessageEnd()
803
      raise x
804
    result = genericScan_result()
805
    result.read(self._iprot)
806
    self._iprot.readMessageEnd()
807
    if result.wex is not None:
808
      raise result.wex
809
    return
810
 
5110 mandeep.dh 811
  def scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
2821 chandransh 812
    """
4501 mandeep.dh 813
    Scan serialized items linked with an order. Returns its price.
3431 rajveer 814
 
2821 chandransh 815
    Parameters:
4555 mandeep.dh 816
     - serialNumber
2821 chandransh 817
     - type
4501 mandeep.dh 818
     - orderId
5110 mandeep.dh 819
     - fulfilmentWarehouseId
820
     - quantity
821
     - billingWarehouseId
2821 chandransh 822
    """
5110 mandeep.dh 823
    self.send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId)
4501 mandeep.dh 824
    return self.recv_scanSerializedItemForOrder()
2821 chandransh 825
 
5110 mandeep.dh 826
  def send_scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
4501 mandeep.dh 827
    self._oprot.writeMessageBegin('scanSerializedItemForOrder', TMessageType.CALL, self._seqid)
828
    args = scanSerializedItemForOrder_args()
4555 mandeep.dh 829
    args.serialNumber = serialNumber
2821 chandransh 830
    args.type = type
4501 mandeep.dh 831
    args.orderId = orderId
5110 mandeep.dh 832
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
833
    args.quantity = quantity
834
    args.billingWarehouseId = billingWarehouseId
2821 chandransh 835
    args.write(self._oprot)
836
    self._oprot.writeMessageEnd()
837
    self._oprot.trans.flush()
838
 
4501 mandeep.dh 839
  def recv_scanSerializedItemForOrder(self, ):
2821 chandransh 840
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
841
    if mtype == TMessageType.EXCEPTION:
842
      x = TApplicationException()
843
      x.read(self._iprot)
844
      self._iprot.readMessageEnd()
845
      raise x
4501 mandeep.dh 846
    result = scanSerializedItemForOrder_result()
2821 chandransh 847
    result.read(self._iprot)
848
    self._iprot.readMessageEnd()
4501 mandeep.dh 849
    if result.success is not None:
850
      return result.success
3431 rajveer 851
    if result.wex is not None:
2821 chandransh 852
      raise result.wex
4501 mandeep.dh 853
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
854
 
5361 mandeep.dh 855
  def scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
4501 mandeep.dh 856
    """
857
    Scan non-serialized items linked with an order.
858
 
859
    Parameters:
5361 mandeep.dh 860
     - inventoryItem
4501 mandeep.dh 861
     - type
862
     - quantity
863
     - orderId
5110 mandeep.dh 864
     - fulfilmentWarehouseId
5361 mandeep.dh 865
     - billingWarehouseId
4501 mandeep.dh 866
    """
5361 mandeep.dh 867
    self.send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId)
868
    return self.recv_scanForOrder()
4501 mandeep.dh 869
 
5361 mandeep.dh 870
  def send_scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
4501 mandeep.dh 871
    self._oprot.writeMessageBegin('scanForOrder', TMessageType.CALL, self._seqid)
872
    args = scanForOrder_args()
5361 mandeep.dh 873
    args.inventoryItem = inventoryItem
4501 mandeep.dh 874
    args.type = type
875
    args.quantity = quantity
876
    args.orderId = orderId
5110 mandeep.dh 877
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
5361 mandeep.dh 878
    args.billingWarehouseId = billingWarehouseId
4501 mandeep.dh 879
    args.write(self._oprot)
880
    self._oprot.writeMessageEnd()
881
    self._oprot.trans.flush()
882
 
883
  def recv_scanForOrder(self, ):
884
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
885
    if mtype == TMessageType.EXCEPTION:
886
      x = TApplicationException()
887
      x.read(self._iprot)
888
      self._iprot.readMessageEnd()
889
      raise x
890
    result = scanForOrder_result()
891
    result.read(self._iprot)
892
    self._iprot.readMessageEnd()
5361 mandeep.dh 893
    if result.success is not None:
894
      return result.success
4501 mandeep.dh 895
    if result.wex is not None:
896
      raise result.wex
5361 mandeep.dh 897
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");
2821 chandransh 898
 
4501 mandeep.dh 899
  def createItemNumberMapping(self, itemNumber, itemId):
900
    """
901
    Created item number to item id mapping
2821 chandransh 902
 
4501 mandeep.dh 903
    Parameters:
904
     - itemNumber
905
     - itemId
906
    """
907
    self.send_createItemNumberMapping(itemNumber, itemId)
908
    self.recv_createItemNumberMapping()
909
 
910
  def send_createItemNumberMapping(self, itemNumber, itemId):
911
    self._oprot.writeMessageBegin('createItemNumberMapping', TMessageType.CALL, self._seqid)
912
    args = createItemNumberMapping_args()
913
    args.itemNumber = itemNumber
914
    args.itemId = itemId
915
    args.write(self._oprot)
916
    self._oprot.writeMessageEnd()
917
    self._oprot.trans.flush()
918
 
919
  def recv_createItemNumberMapping(self, ):
920
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
921
    if mtype == TMessageType.EXCEPTION:
922
      x = TApplicationException()
923
      x.read(self._iprot)
924
      self._iprot.readMessageEnd()
925
      raise x
926
    result = createItemNumberMapping_result()
927
    result.read(self._iprot)
928
    self._iprot.readMessageEnd()
929
    return
930
 
4620 amit.gupta 931
  def getItemNumbers(self, itemId):
932
    """
933
    Get itemNumber mappings for itemId
4501 mandeep.dh 934
 
4620 amit.gupta 935
    Parameters:
936
     - itemId
937
    """
938
    self.send_getItemNumbers(itemId)
939
    return self.recv_getItemNumbers()
940
 
941
  def send_getItemNumbers(self, itemId):
942
    self._oprot.writeMessageBegin('getItemNumbers', TMessageType.CALL, self._seqid)
943
    args = getItemNumbers_args()
944
    args.itemId = itemId
945
    args.write(self._oprot)
946
    self._oprot.writeMessageEnd()
947
    self._oprot.trans.flush()
948
 
949
  def recv_getItemNumbers(self, ):
950
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
951
    if mtype == TMessageType.EXCEPTION:
952
      x = TApplicationException()
953
      x.read(self._iprot)
954
      self._iprot.readMessageEnd()
955
      raise x
956
    result = getItemNumbers_result()
957
    result.read(self._iprot)
958
    self._iprot.readMessageEnd()
959
    if result.success is not None:
960
      return result.success
961
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
962
 
5110 mandeep.dh 963
  def getItemIds(self, itemNumber):
964
    """
965
    Gets item ids for a given item number
4620 amit.gupta 966
 
5110 mandeep.dh 967
    Parameters:
968
     - itemNumber
969
    """
970
    self.send_getItemIds(itemNumber)
971
    return self.recv_getItemIds()
972
 
973
  def send_getItemIds(self, itemNumber):
974
    self._oprot.writeMessageBegin('getItemIds', TMessageType.CALL, self._seqid)
975
    args = getItemIds_args()
976
    args.itemNumber = itemNumber
977
    args.write(self._oprot)
978
    self._oprot.writeMessageEnd()
979
    self._oprot.trans.flush()
980
 
981
  def recv_getItemIds(self, ):
982
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
983
    if mtype == TMessageType.EXCEPTION:
984
      x = TApplicationException()
985
      x.read(self._iprot)
986
      self._iprot.readMessageEnd()
987
      raise x
988
    result = getItemIds_result()
989
    result.read(self._iprot)
990
    self._iprot.readMessageEnd()
991
    if result.success is not None:
992
      return result.success
993
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
994
 
5185 mandeep.dh 995
  def getInventoryItemsFromLastScanType(self, lastScanType):
996
    """
997
    Retrieves all inventory items given a last scan type
5110 mandeep.dh 998
 
5185 mandeep.dh 999
    Parameters:
1000
     - lastScanType
1001
    """
1002
    self.send_getInventoryItemsFromLastScanType(lastScanType)
1003
    return self.recv_getInventoryItemsFromLastScanType()
1004
 
1005
  def send_getInventoryItemsFromLastScanType(self, lastScanType):
1006
    self._oprot.writeMessageBegin('getInventoryItemsFromLastScanType', TMessageType.CALL, self._seqid)
1007
    args = getInventoryItemsFromLastScanType_args()
1008
    args.lastScanType = lastScanType
1009
    args.write(self._oprot)
1010
    self._oprot.writeMessageEnd()
1011
    self._oprot.trans.flush()
1012
 
1013
  def recv_getInventoryItemsFromLastScanType(self, ):
1014
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1015
    if mtype == TMessageType.EXCEPTION:
1016
      x = TApplicationException()
1017
      x.read(self._iprot)
1018
      self._iprot.readMessageEnd()
1019
      raise x
1020
    result = getInventoryItemsFromLastScanType_result()
1021
    result.read(self._iprot)
1022
    self._iprot.readMessageEnd()
1023
    if result.success is not None:
1024
      return result.success
1025
    if result.wex is not None:
1026
      raise result.wex
1027
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemsFromLastScanType failed: unknown result");
1028
 
1029
  def getInventoryItemFromId(self, inventoryItemId):
1030
    """
1031
    Retrieves inventory item given a inventoryItem id
1032
 
1033
    Parameters:
1034
     - inventoryItemId
1035
    """
1036
    self.send_getInventoryItemFromId(inventoryItemId)
1037
    return self.recv_getInventoryItemFromId()
1038
 
1039
  def send_getInventoryItemFromId(self, inventoryItemId):
1040
    self._oprot.writeMessageBegin('getInventoryItemFromId', TMessageType.CALL, self._seqid)
1041
    args = getInventoryItemFromId_args()
1042
    args.inventoryItemId = inventoryItemId
1043
    args.write(self._oprot)
1044
    self._oprot.writeMessageEnd()
1045
    self._oprot.trans.flush()
1046
 
1047
  def recv_getInventoryItemFromId(self, ):
1048
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1049
    if mtype == TMessageType.EXCEPTION:
1050
      x = TApplicationException()
1051
      x.read(self._iprot)
1052
      self._iprot.readMessageEnd()
1053
      raise x
1054
    result = getInventoryItemFromId_result()
1055
    result.read(self._iprot)
1056
    self._iprot.readMessageEnd()
1057
    if result.success is not None:
1058
      return result.success
1059
    if result.wex is not None:
1060
      raise result.wex
1061
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");
1062
 
5372 mandeep.dh 1063
  def getPurchaseScans(self, startDate, endDate):
1064
    """
1065
    Returns the purchase scans grouped by items for Purchase register reconciliation
5185 mandeep.dh 1066
 
5372 mandeep.dh 1067
    Parameters:
1068
     - startDate
1069
     - endDate
1070
    """
1071
    self.send_getPurchaseScans(startDate, endDate)
1072
    return self.recv_getPurchaseScans()
1073
 
1074
  def send_getPurchaseScans(self, startDate, endDate):
1075
    self._oprot.writeMessageBegin('getPurchaseScans', TMessageType.CALL, self._seqid)
1076
    args = getPurchaseScans_args()
1077
    args.startDate = startDate
1078
    args.endDate = endDate
1079
    args.write(self._oprot)
1080
    self._oprot.writeMessageEnd()
1081
    self._oprot.trans.flush()
1082
 
1083
  def recv_getPurchaseScans(self, ):
1084
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1085
    if mtype == TMessageType.EXCEPTION:
1086
      x = TApplicationException()
1087
      x.read(self._iprot)
1088
      self._iprot.readMessageEnd()
1089
      raise x
1090
    result = getPurchaseScans_result()
1091
    result.read(self._iprot)
1092
    self._iprot.readMessageEnd()
1093
    if result.success is not None:
1094
      return result.success
1095
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseScans failed: unknown result");
1096
 
7216 amar.kumar 1097
  def getPurchaseScansByGrnDate(self, startDate, endDate):
1098
    """
1099
    Returns the purchase scans between grn dates grouped by items for Purchase register reconciliation
1100
 
1101
    Parameters:
1102
     - startDate
1103
     - endDate
1104
    """
1105
    self.send_getPurchaseScansByGrnDate(startDate, endDate)
1106
    return self.recv_getPurchaseScansByGrnDate()
1107
 
1108
  def send_getPurchaseScansByGrnDate(self, startDate, endDate):
1109
    self._oprot.writeMessageBegin('getPurchaseScansByGrnDate', TMessageType.CALL, self._seqid)
1110
    args = getPurchaseScansByGrnDate_args()
1111
    args.startDate = startDate
1112
    args.endDate = endDate
1113
    args.write(self._oprot)
1114
    self._oprot.writeMessageEnd()
1115
    self._oprot.trans.flush()
1116
 
1117
  def recv_getPurchaseScansByGrnDate(self, ):
1118
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1119
    if mtype == TMessageType.EXCEPTION:
1120
      x = TApplicationException()
1121
      x.read(self._iprot)
1122
      self._iprot.readMessageEnd()
1123
      raise x
1124
    result = getPurchaseScansByGrnDate_result()
1125
    result.read(self._iprot)
1126
    self._iprot.readMessageEnd()
1127
    if result.success is not None:
1128
      return result.success
1129
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseScansByGrnDate failed: unknown result");
1130
 
10407 amar.kumar 1131
  def getEmptyGrnsByDate(self, startDate, endDate):
1132
    """
1133
    Returns the empty grn-ids between grn dates
1134
 
1135
    Parameters:
1136
     - startDate
1137
     - endDate
1138
    """
1139
    self.send_getEmptyGrnsByDate(startDate, endDate)
1140
    return self.recv_getEmptyGrnsByDate()
1141
 
1142
  def send_getEmptyGrnsByDate(self, startDate, endDate):
1143
    self._oprot.writeMessageBegin('getEmptyGrnsByDate', TMessageType.CALL, self._seqid)
1144
    args = getEmptyGrnsByDate_args()
1145
    args.startDate = startDate
1146
    args.endDate = endDate
1147
    args.write(self._oprot)
1148
    self._oprot.writeMessageEnd()
1149
    self._oprot.trans.flush()
1150
 
1151
  def recv_getEmptyGrnsByDate(self, ):
1152
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1153
    if mtype == TMessageType.EXCEPTION:
1154
      x = TApplicationException()
1155
      x.read(self._iprot)
1156
      self._iprot.readMessageEnd()
1157
      raise x
1158
    result = getEmptyGrnsByDate_result()
1159
    result.read(self._iprot)
1160
    self._iprot.readMessageEnd()
1161
    if result.success is not None:
1162
      return result.success
1163
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmptyGrnsByDate failed: unknown result");
1164
 
5496 mandeep.dh 1165
  def fetchScansPerInvoiceNumber(self, date):
1166
    """
1167
    Returns the invoices and the count of scans against on a given day.
5372 mandeep.dh 1168
 
5496 mandeep.dh 1169
    Parameters:
1170
     - date
1171
    """
1172
    self.send_fetchScansPerInvoiceNumber(date)
1173
    return self.recv_fetchScansPerInvoiceNumber()
1174
 
1175
  def send_fetchScansPerInvoiceNumber(self, date):
1176
    self._oprot.writeMessageBegin('fetchScansPerInvoiceNumber', TMessageType.CALL, self._seqid)
1177
    args = fetchScansPerInvoiceNumber_args()
1178
    args.date = date
1179
    args.write(self._oprot)
1180
    self._oprot.writeMessageEnd()
1181
    self._oprot.trans.flush()
1182
 
1183
  def recv_fetchScansPerInvoiceNumber(self, ):
1184
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1185
    if mtype == TMessageType.EXCEPTION:
1186
      x = TApplicationException()
1187
      x.read(self._iprot)
1188
      self._iprot.readMessageEnd()
1189
      raise x
1190
    result = fetchScansPerInvoiceNumber_result()
1191
    result.read(self._iprot)
1192
    self._iprot.readMessageEnd()
1193
    if result.success is not None:
1194
      return result.success
1195
    raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchScansPerInvoiceNumber failed: unknown result");
1196
 
5620 mandeep.dh 1197
  def getInventoryItemFromOrder(self, orderId):
1198
    """
1199
    Returns inventory item for a given order
5496 mandeep.dh 1200
 
5620 mandeep.dh 1201
    Parameters:
1202
     - orderId
1203
    """
1204
    self.send_getInventoryItemFromOrder(orderId)
1205
    return self.recv_getInventoryItemFromOrder()
1206
 
1207
  def send_getInventoryItemFromOrder(self, orderId):
1208
    self._oprot.writeMessageBegin('getInventoryItemFromOrder', TMessageType.CALL, self._seqid)
1209
    args = getInventoryItemFromOrder_args()
1210
    args.orderId = orderId
1211
    args.write(self._oprot)
1212
    self._oprot.writeMessageEnd()
1213
    self._oprot.trans.flush()
1214
 
1215
  def recv_getInventoryItemFromOrder(self, ):
1216
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1217
    if mtype == TMessageType.EXCEPTION:
1218
      x = TApplicationException()
1219
      x.read(self._iprot)
1220
      self._iprot.readMessageEnd()
1221
      raise x
1222
    result = getInventoryItemFromOrder_result()
1223
    result.read(self._iprot)
1224
    self._iprot.readMessageEnd()
1225
    if result.success is not None:
1226
      return result.success
1227
    if result.we is not None:
1228
      raise result.we
1229
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemFromOrder failed: unknown result");
1230
 
5711 mandeep.dh 1231
  def getInventoryAge(self, ):
1232
    """
1233
    Fetches the stock inventory age week-wise
1234
    """
1235
    self.send_getInventoryAge()
1236
    return self.recv_getInventoryAge()
5620 mandeep.dh 1237
 
5711 mandeep.dh 1238
  def send_getInventoryAge(self, ):
1239
    self._oprot.writeMessageBegin('getInventoryAge', TMessageType.CALL, self._seqid)
1240
    args = getInventoryAge_args()
1241
    args.write(self._oprot)
1242
    self._oprot.writeMessageEnd()
1243
    self._oprot.trans.flush()
1244
 
1245
  def recv_getInventoryAge(self, ):
1246
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1247
    if mtype == TMessageType.EXCEPTION:
1248
      x = TApplicationException()
1249
      x.read(self._iprot)
1250
      self._iprot.readMessageEnd()
1251
      raise x
1252
    result = getInventoryAge_result()
1253
    result.read(self._iprot)
1254
    self._iprot.readMessageEnd()
1255
    if result.success is not None:
1256
      return result.success
1257
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryAge failed: unknown result");
1258
 
6361 rajveer 1259
  def getInventoryScansForItem(self, itemId, fromDate, toDate):
1260
    """
1261
    Fetches the scanRecords for a given item for a given time interval
5711 mandeep.dh 1262
 
6361 rajveer 1263
    Parameters:
1264
     - itemId
1265
     - fromDate
1266
     - toDate
1267
    """
1268
    self.send_getInventoryScansForItem(itemId, fromDate, toDate)
1269
    return self.recv_getInventoryScansForItem()
1270
 
1271
  def send_getInventoryScansForItem(self, itemId, fromDate, toDate):
1272
    self._oprot.writeMessageBegin('getInventoryScansForItem', TMessageType.CALL, self._seqid)
1273
    args = getInventoryScansForItem_args()
1274
    args.itemId = itemId
1275
    args.fromDate = fromDate
1276
    args.toDate = toDate
1277
    args.write(self._oprot)
1278
    self._oprot.writeMessageEnd()
1279
    self._oprot.trans.flush()
1280
 
1281
  def recv_getInventoryScansForItem(self, ):
1282
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1283
    if mtype == TMessageType.EXCEPTION:
1284
      x = TApplicationException()
1285
      x.read(self._iprot)
1286
      self._iprot.readMessageEnd()
1287
      raise x
1288
    result = getInventoryScansForItem_result()
1289
    result.read(self._iprot)
1290
    self._iprot.readMessageEnd()
1291
    if result.success is not None:
1292
      return result.success
1293
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryScansForItem failed: unknown result");
1294
 
1295
  def getScanRecordsForSerialNumber(self, serialNumber):
1296
    """
1297
    Fetches the scanRecords for a given serialNumber for a given time interval
1298
 
1299
    Parameters:
1300
     - serialNumber
1301
    """
1302
    self.send_getScanRecordsForSerialNumber(serialNumber)
1303
    return self.recv_getScanRecordsForSerialNumber()
1304
 
1305
  def send_getScanRecordsForSerialNumber(self, serialNumber):
1306
    self._oprot.writeMessageBegin('getScanRecordsForSerialNumber', TMessageType.CALL, self._seqid)
1307
    args = getScanRecordsForSerialNumber_args()
1308
    args.serialNumber = serialNumber
1309
    args.write(self._oprot)
1310
    self._oprot.writeMessageEnd()
1311
    self._oprot.trans.flush()
1312
 
1313
  def recv_getScanRecordsForSerialNumber(self, ):
1314
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1315
    if mtype == TMessageType.EXCEPTION:
1316
      x = TApplicationException()
1317
      x.read(self._iprot)
1318
      self._iprot.readMessageEnd()
1319
      raise x
1320
    result = getScanRecordsForSerialNumber_result()
1321
    result.read(self._iprot)
1322
    self._iprot.readMessageEnd()
1323
    if result.success is not None:
1324
      return result.success
1325
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScanRecordsForSerialNumber failed: unknown result");
1326
 
7718 amar.kumar 1327
  def scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
6467 amar.kumar 1328
    """
6630 amar.kumar 1329
    Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
6361 rajveer 1330
 
6467 amar.kumar 1331
    Parameters:
1332
     - saleReturnItems
1333
     - vendorId
7718 amar.kumar 1334
     - billingWarehouseId
6467 amar.kumar 1335
    """
7718 amar.kumar 1336
    self.send_scanForPurchaseReturn(saleReturnItems, vendorId, billingWarehouseId)
10864 manish.sha 1337
    return self.recv_scanForPurchaseReturn()
6467 amar.kumar 1338
 
7718 amar.kumar 1339
  def send_scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
6467 amar.kumar 1340
    self._oprot.writeMessageBegin('scanForPurchaseReturn', TMessageType.CALL, self._seqid)
1341
    args = scanForPurchaseReturn_args()
1342
    args.saleReturnItems = saleReturnItems
1343
    args.vendorId = vendorId
7718 amar.kumar 1344
    args.billingWarehouseId = billingWarehouseId
6467 amar.kumar 1345
    args.write(self._oprot)
1346
    self._oprot.writeMessageEnd()
1347
    self._oprot.trans.flush()
1348
 
1349
  def recv_scanForPurchaseReturn(self, ):
1350
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1351
    if mtype == TMessageType.EXCEPTION:
1352
      x = TApplicationException()
1353
      x.read(self._iprot)
1354
      self._iprot.readMessageEnd()
1355
      raise x
1356
    result = scanForPurchaseReturn_result()
1357
    result.read(self._iprot)
1358
    self._iprot.readMessageEnd()
10864 manish.sha 1359
    if result.success is not None:
1360
      return result.success
6467 amar.kumar 1361
    if result.ex is not None:
1362
      raise result.ex
10864 manish.sha 1363
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForPurchaseReturn failed: unknown result");
6467 amar.kumar 1364
 
7718 amar.kumar 1365
  def scanForLostItem(self, lostItems, vendorId, billingWarehouseId):
6630 amar.kumar 1366
    """
1367
    Inserts scans for lost Items and updates lastScanType in InventoryItems
6467 amar.kumar 1368
 
6630 amar.kumar 1369
    Parameters:
1370
     - lostItems
1371
     - vendorId
7718 amar.kumar 1372
     - billingWarehouseId
6630 amar.kumar 1373
    """
7718 amar.kumar 1374
    self.send_scanForLostItem(lostItems, vendorId, billingWarehouseId)
6630 amar.kumar 1375
    self.recv_scanForLostItem()
1376
 
7718 amar.kumar 1377
  def send_scanForLostItem(self, lostItems, vendorId, billingWarehouseId):
6630 amar.kumar 1378
    self._oprot.writeMessageBegin('scanForLostItem', TMessageType.CALL, self._seqid)
1379
    args = scanForLostItem_args()
1380
    args.lostItems = lostItems
1381
    args.vendorId = vendorId
7718 amar.kumar 1382
    args.billingWarehouseId = billingWarehouseId
6630 amar.kumar 1383
    args.write(self._oprot)
1384
    self._oprot.writeMessageEnd()
1385
    self._oprot.trans.flush()
1386
 
1387
  def recv_scanForLostItem(self, ):
1388
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1389
    if mtype == TMessageType.EXCEPTION:
1390
      x = TApplicationException()
1391
      x.read(self._iprot)
1392
      self._iprot.readMessageEnd()
1393
      raise x
1394
    result = scanForLostItem_result()
1395
    result.read(self._iprot)
1396
    self._iprot.readMessageEnd()
1397
    if result.ex is not None:
1398
      raise result.ex
1399
    return
1400
 
7715 vikram.rag 1401
  def getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1402
    """
1403
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
7715 vikram.rag 1404
 
1405
    Parameters:
1406
     - physicalWarehouseId
6630 amar.kumar 1407
    """
7715 vikram.rag 1408
    self.send_getCurrentSerializedInventoryByScans(physicalWarehouseId)
6630 amar.kumar 1409
    return self.recv_getCurrentSerializedInventoryByScans()
1410
 
7715 vikram.rag 1411
  def send_getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1412
    self._oprot.writeMessageBegin('getCurrentSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1413
    args = getCurrentSerializedInventoryByScans_args()
7715 vikram.rag 1414
    args.physicalWarehouseId = physicalWarehouseId
6630 amar.kumar 1415
    args.write(self._oprot)
1416
    self._oprot.writeMessageEnd()
1417
    self._oprot.trans.flush()
1418
 
1419
  def recv_getCurrentSerializedInventoryByScans(self, ):
1420
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1421
    if mtype == TMessageType.EXCEPTION:
1422
      x = TApplicationException()
1423
      x.read(self._iprot)
1424
      self._iprot.readMessageEnd()
1425
      raise x
1426
    result = getCurrentSerializedInventoryByScans_result()
1427
    result.read(self._iprot)
1428
    self._iprot.readMessageEnd()
1429
    if result.success is not None:
1430
      return result.success
1431
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");
1432
 
7715 vikram.rag 1433
  def getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1434
    """
1435
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
7715 vikram.rag 1436
 
1437
    Parameters:
1438
     - physicalWarehouseId
6630 amar.kumar 1439
    """
7715 vikram.rag 1440
    self.send_getCurrentNonSerializedInventoryByScans(physicalWarehouseId)
6630 amar.kumar 1441
    return self.recv_getCurrentNonSerializedInventoryByScans()
1442
 
7715 vikram.rag 1443
  def send_getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1444
    self._oprot.writeMessageBegin('getCurrentNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1445
    args = getCurrentNonSerializedInventoryByScans_args()
7715 vikram.rag 1446
    args.physicalWarehouseId = physicalWarehouseId
6630 amar.kumar 1447
    args.write(self._oprot)
1448
    self._oprot.writeMessageEnd()
1449
    self._oprot.trans.flush()
1450
 
1451
  def recv_getCurrentNonSerializedInventoryByScans(self, ):
1452
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1453
    if mtype == TMessageType.EXCEPTION:
1454
      x = TApplicationException()
1455
      x.read(self._iprot)
1456
      self._iprot.readMessageEnd()
1457
      raise x
1458
    result = getCurrentNonSerializedInventoryByScans_result()
1459
    result.read(self._iprot)
1460
    self._iprot.readMessageEnd()
1461
    if result.success is not None:
1462
      return result.success
1463
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");
1464
 
6762 amar.kumar 1465
  def getHistoricSerializedInventoryByScans(self, date):
1466
    """
1467
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
6630 amar.kumar 1468
 
6762 amar.kumar 1469
    Parameters:
1470
     - date
1471
    """
1472
    self.send_getHistoricSerializedInventoryByScans(date)
1473
    return self.recv_getHistoricSerializedInventoryByScans()
1474
 
1475
  def send_getHistoricSerializedInventoryByScans(self, date):
1476
    self._oprot.writeMessageBegin('getHistoricSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1477
    args = getHistoricSerializedInventoryByScans_args()
1478
    args.date = date
1479
    args.write(self._oprot)
1480
    self._oprot.writeMessageEnd()
1481
    self._oprot.trans.flush()
1482
 
1483
  def recv_getHistoricSerializedInventoryByScans(self, ):
1484
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1485
    if mtype == TMessageType.EXCEPTION:
1486
      x = TApplicationException()
1487
      x.read(self._iprot)
1488
      self._iprot.readMessageEnd()
1489
      raise x
1490
    result = getHistoricSerializedInventoryByScans_result()
1491
    result.read(self._iprot)
1492
    self._iprot.readMessageEnd()
1493
    if result.success is not None:
1494
      return result.success
1495
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricSerializedInventoryByScans failed: unknown result");
1496
 
1497
  def getHistoricNonSerializedInventoryByScans(self, date):
1498
    """
1499
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
1500
 
1501
    Parameters:
1502
     - date
1503
    """
1504
    self.send_getHistoricNonSerializedInventoryByScans(date)
1505
    return self.recv_getHistoricNonSerializedInventoryByScans()
1506
 
1507
  def send_getHistoricNonSerializedInventoryByScans(self, date):
1508
    self._oprot.writeMessageBegin('getHistoricNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1509
    args = getHistoricNonSerializedInventoryByScans_args()
1510
    args.date = date
1511
    args.write(self._oprot)
1512
    self._oprot.writeMessageEnd()
1513
    self._oprot.trans.flush()
1514
 
1515
  def recv_getHistoricNonSerializedInventoryByScans(self, ):
1516
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1517
    if mtype == TMessageType.EXCEPTION:
1518
      x = TApplicationException()
1519
      x.read(self._iprot)
1520
      self._iprot.readMessageEnd()
1521
      raise x
1522
    result = getHistoricNonSerializedInventoryByScans_result()
1523
    result.read(self._iprot)
1524
    self._iprot.readMessageEnd()
1525
    if result.success is not None:
1526
      return result.success
1527
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricNonSerializedInventoryByScans failed: unknown result");
1528
 
10407 amar.kumar 1529
  def getOurHistoricSerializedInventoryByScans(self, date):
1530
    """
1531
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
1532
 
1533
    Parameters:
1534
     - date
1535
    """
1536
    self.send_getOurHistoricSerializedInventoryByScans(date)
1537
    return self.recv_getOurHistoricSerializedInventoryByScans()
1538
 
1539
  def send_getOurHistoricSerializedInventoryByScans(self, date):
1540
    self._oprot.writeMessageBegin('getOurHistoricSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1541
    args = getOurHistoricSerializedInventoryByScans_args()
1542
    args.date = date
1543
    args.write(self._oprot)
1544
    self._oprot.writeMessageEnd()
1545
    self._oprot.trans.flush()
1546
 
1547
  def recv_getOurHistoricSerializedInventoryByScans(self, ):
1548
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1549
    if mtype == TMessageType.EXCEPTION:
1550
      x = TApplicationException()
1551
      x.read(self._iprot)
1552
      self._iprot.readMessageEnd()
1553
      raise x
1554
    result = getOurHistoricSerializedInventoryByScans_result()
1555
    result.read(self._iprot)
1556
    self._iprot.readMessageEnd()
1557
    if result.success is not None:
1558
      return result.success
1559
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurHistoricSerializedInventoryByScans failed: unknown result");
1560
 
1561
  def getOurHistoricNonSerializedInventoryByScans(self, date):
1562
    """
1563
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
1564
 
1565
    Parameters:
1566
     - date
1567
    """
1568
    self.send_getOurHistoricNonSerializedInventoryByScans(date)
1569
    return self.recv_getOurHistoricNonSerializedInventoryByScans()
1570
 
1571
  def send_getOurHistoricNonSerializedInventoryByScans(self, date):
1572
    self._oprot.writeMessageBegin('getOurHistoricNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1573
    args = getOurHistoricNonSerializedInventoryByScans_args()
1574
    args.date = date
1575
    args.write(self._oprot)
1576
    self._oprot.writeMessageEnd()
1577
    self._oprot.trans.flush()
1578
 
1579
  def recv_getOurHistoricNonSerializedInventoryByScans(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 = getOurHistoricNonSerializedInventoryByScans_result()
1587
    result.read(self._iprot)
1588
    self._iprot.readMessageEnd()
1589
    if result.success is not None:
1590
      return result.success
1591
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurHistoricNonSerializedInventoryByScans failed: unknown result");
1592
 
7672 rajveer 1593
  def scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):
6762 amar.kumar 1594
    """
6880 amar.kumar 1595
    Insert Purchase/Sale Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 1596
 
1597
    Parameters:
1598
     - itemId
1599
     - serialNumber
1600
     - itemNumber
1601
     - invoiceNumber
1602
     - warehouseId
1603
     - unitPrice
7672 rajveer 1604
     - nlc
6762 amar.kumar 1605
     - orderId
1606
    """
7672 rajveer 1607
    self.send_scanForOursExternalSale(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId)
6762 amar.kumar 1608
    return self.recv_scanForOursExternalSale()
1609
 
7672 rajveer 1610
  def send_scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):
6762 amar.kumar 1611
    self._oprot.writeMessageBegin('scanForOursExternalSale', TMessageType.CALL, self._seqid)
1612
    args = scanForOursExternalSale_args()
1613
    args.itemId = itemId
1614
    args.serialNumber = serialNumber
1615
    args.itemNumber = itemNumber
1616
    args.invoiceNumber = invoiceNumber
1617
    args.warehouseId = warehouseId
1618
    args.unitPrice = unitPrice
7672 rajveer 1619
    args.nlc = nlc
6762 amar.kumar 1620
    args.orderId = orderId
1621
    args.write(self._oprot)
1622
    self._oprot.writeMessageEnd()
1623
    self._oprot.trans.flush()
1624
 
1625
  def recv_scanForOursExternalSale(self, ):
1626
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1627
    if mtype == TMessageType.EXCEPTION:
1628
      x = TApplicationException()
1629
      x.read(self._iprot)
1630
      self._iprot.readMessageEnd()
1631
      raise x
1632
    result = scanForOursExternalSale_result()
1633
    result.read(self._iprot)
1634
    self._iprot.readMessageEnd()
1635
    if result.success is not None:
1636
      return result.success
1637
    if result.ex is not None:
1638
      raise result.ex
1639
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOursExternalSale failed: unknown result");
1640
 
1641
  def scanForOursExternalSaleReturn(self, orderId, unitPrice):
1642
    """
6880 amar.kumar 1643
    Insert Purchase_Ret/Sale_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 1644
 
1645
    Parameters:
1646
     - orderId
1647
     - unitPrice
1648
    """
1649
    self.send_scanForOursExternalSaleReturn(orderId, unitPrice)
1650
    self.recv_scanForOursExternalSaleReturn()
1651
 
1652
  def send_scanForOursExternalSaleReturn(self, orderId, unitPrice):
1653
    self._oprot.writeMessageBegin('scanForOursExternalSaleReturn', TMessageType.CALL, self._seqid)
1654
    args = scanForOursExternalSaleReturn_args()
1655
    args.orderId = orderId
1656
    args.unitPrice = unitPrice
1657
    args.write(self._oprot)
1658
    self._oprot.writeMessageEnd()
1659
    self._oprot.trans.flush()
1660
 
1661
  def recv_scanForOursExternalSaleReturn(self, ):
1662
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1663
    if mtype == TMessageType.EXCEPTION:
1664
      x = TApplicationException()
1665
      x.read(self._iprot)
1666
      self._iprot.readMessageEnd()
1667
      raise x
1668
    result = scanForOursExternalSaleReturn_result()
1669
    result.read(self._iprot)
1670
    self._iprot.readMessageEnd()
7410 amar.kumar 1671
    if result.ex is not None:
1672
      raise result.ex
6762 amar.kumar 1673
    return
1674
 
6880 amar.kumar 1675
  def getMovementNonSerializedInventoryByScans(self, startDate, endDate):
1676
    """
10407 amar.kumar 1677
    This returns movement for each non serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)
1678
 
6880 amar.kumar 1679
    Parameters:
1680
     - startDate
1681
     - endDate
1682
    """
1683
    self.send_getMovementNonSerializedInventoryByScans(startDate, endDate)
1684
    return self.recv_getMovementNonSerializedInventoryByScans()
6762 amar.kumar 1685
 
6880 amar.kumar 1686
  def send_getMovementNonSerializedInventoryByScans(self, startDate, endDate):
1687
    self._oprot.writeMessageBegin('getMovementNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1688
    args = getMovementNonSerializedInventoryByScans_args()
1689
    args.startDate = startDate
1690
    args.endDate = endDate
1691
    args.write(self._oprot)
1692
    self._oprot.writeMessageEnd()
1693
    self._oprot.trans.flush()
1694
 
1695
  def recv_getMovementNonSerializedInventoryByScans(self, ):
1696
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1697
    if mtype == TMessageType.EXCEPTION:
1698
      x = TApplicationException()
1699
      x.read(self._iprot)
1700
      self._iprot.readMessageEnd()
1701
      raise x
1702
    result = getMovementNonSerializedInventoryByScans_result()
1703
    result.read(self._iprot)
1704
    self._iprot.readMessageEnd()
1705
    if result.success is not None:
1706
      return result.success
1707
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMovementNonSerializedInventoryByScans failed: unknown result");
1708
 
1709
  def getMovementSerializedInventoryByScans(self, startDate, endDate):
1710
    """
10407 amar.kumar 1711
    This returns movement for each serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)
1712
 
6880 amar.kumar 1713
    Parameters:
1714
     - startDate
1715
     - endDate
1716
    """
1717
    self.send_getMovementSerializedInventoryByScans(startDate, endDate)
1718
    return self.recv_getMovementSerializedInventoryByScans()
1719
 
1720
  def send_getMovementSerializedInventoryByScans(self, startDate, endDate):
1721
    self._oprot.writeMessageBegin('getMovementSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1722
    args = getMovementSerializedInventoryByScans_args()
1723
    args.startDate = startDate
1724
    args.endDate = endDate
1725
    args.write(self._oprot)
1726
    self._oprot.writeMessageEnd()
1727
    self._oprot.trans.flush()
1728
 
1729
  def recv_getMovementSerializedInventoryByScans(self, ):
1730
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1731
    if mtype == TMessageType.EXCEPTION:
1732
      x = TApplicationException()
1733
      x.read(self._iprot)
1734
      self._iprot.readMessageEnd()
1735
      raise x
1736
    result = getMovementSerializedInventoryByScans_result()
1737
    result.read(self._iprot)
1738
    self._iprot.readMessageEnd()
1739
    if result.success is not None:
1740
      return result.success
1741
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMovementSerializedInventoryByScans failed: unknown result");
1742
 
7216 amar.kumar 1743
  def getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):
1744
    """
10407 amar.kumar 1745
    This returns movement for each serialized item in the specified window.(Doesn't include Amazon w/h)
1746
 
7216 amar.kumar 1747
    Parameters:
1748
     - startDate
1749
     - endDate
1750
    """
1751
    self.send_getCompleteMovementSerializedInventoryByScans(startDate, endDate)
1752
    return self.recv_getCompleteMovementSerializedInventoryByScans()
1753
 
1754
  def send_getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):
1755
    self._oprot.writeMessageBegin('getCompleteMovementSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1756
    args = getCompleteMovementSerializedInventoryByScans_args()
1757
    args.startDate = startDate
1758
    args.endDate = endDate
1759
    args.write(self._oprot)
1760
    self._oprot.writeMessageEnd()
1761
    self._oprot.trans.flush()
1762
 
1763
  def recv_getCompleteMovementSerializedInventoryByScans(self, ):
1764
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1765
    if mtype == TMessageType.EXCEPTION:
1766
      x = TApplicationException()
1767
      x.read(self._iprot)
1768
      self._iprot.readMessageEnd()
1769
      raise x
1770
    result = getCompleteMovementSerializedInventoryByScans_result()
1771
    result.read(self._iprot)
1772
    self._iprot.readMessageEnd()
1773
    if result.success is not None:
1774
      return result.success
1775
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementSerializedInventoryByScans failed: unknown result");
1776
 
1777
  def getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):
1778
    """
10407 amar.kumar 1779
    This returns movement for each non serialized item in the specified window.(Doesn't include Amazon w/h)
1780
 
7216 amar.kumar 1781
    Parameters:
1782
     - startDate
1783
     - endDate
1784
    """
1785
    self.send_getCompleteMovementNonSerializedInventoryByScans(startDate, endDate)
1786
    return self.recv_getCompleteMovementNonSerializedInventoryByScans()
1787
 
1788
  def send_getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):
1789
    self._oprot.writeMessageBegin('getCompleteMovementNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1790
    args = getCompleteMovementNonSerializedInventoryByScans_args()
1791
    args.startDate = startDate
1792
    args.endDate = endDate
1793
    args.write(self._oprot)
1794
    self._oprot.writeMessageEnd()
1795
    self._oprot.trans.flush()
1796
 
1797
  def recv_getCompleteMovementNonSerializedInventoryByScans(self, ):
1798
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1799
    if mtype == TMessageType.EXCEPTION:
1800
      x = TApplicationException()
1801
      x.read(self._iprot)
1802
      self._iprot.readMessageEnd()
1803
      raise x
1804
    result = getCompleteMovementNonSerializedInventoryByScans_result()
1805
    result.read(self._iprot)
1806
    self._iprot.readMessageEnd()
1807
    if result.success is not None:
1808
      return result.success
1809
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementNonSerializedInventoryByScans failed: unknown result");
1810
 
7190 amar.kumar 1811
  def scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):
1812
    """
1813
    Parameters:
1814
     - orderId
1815
     - freebieItemId
1816
     - freebieWarehouseId
1817
     - scanType
1818
    """
1819
    self.send_scanfreebie(orderId, freebieItemId, freebieWarehouseId, scanType)
1820
    return self.recv_scanfreebie()
6880 amar.kumar 1821
 
7190 amar.kumar 1822
  def send_scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):
1823
    self._oprot.writeMessageBegin('scanfreebie', TMessageType.CALL, self._seqid)
1824
    args = scanfreebie_args()
1825
    args.orderId = orderId
1826
    args.freebieItemId = freebieItemId
1827
    args.freebieWarehouseId = freebieWarehouseId
1828
    args.scanType = scanType
1829
    args.write(self._oprot)
1830
    self._oprot.writeMessageEnd()
1831
    self._oprot.trans.flush()
1832
 
1833
  def recv_scanfreebie(self, ):
1834
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1835
    if mtype == TMessageType.EXCEPTION:
1836
      x = TApplicationException()
1837
      x.read(self._iprot)
1838
      self._iprot.readMessageEnd()
1839
      raise x
1840
    result = scanfreebie_result()
1841
    result.read(self._iprot)
1842
    self._iprot.readMessageEnd()
1843
    if result.success is not None:
1844
      return result.success
1845
    if result.wex is not None:
1846
      raise result.wex
1847
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanfreebie failed: unknown result");
1848
 
7199 amar.kumar 1849
  def reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):
1850
    """
1851
    Parameters:
1852
     - oldOrderId
1853
     - newOrderId
1854
     - freebieItemId
1855
     - scanType
1856
    """
1857
    self.send_reshipfreebie(oldOrderId, newOrderId, freebieItemId, scanType)
1858
    self.recv_reshipfreebie()
7190 amar.kumar 1859
 
7199 amar.kumar 1860
  def send_reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):
1861
    self._oprot.writeMessageBegin('reshipfreebie', TMessageType.CALL, self._seqid)
1862
    args = reshipfreebie_args()
1863
    args.oldOrderId = oldOrderId
1864
    args.newOrderId = newOrderId
1865
    args.freebieItemId = freebieItemId
1866
    args.scanType = scanType
1867
    args.write(self._oprot)
1868
    self._oprot.writeMessageEnd()
1869
    self._oprot.trans.flush()
1870
 
1871
  def recv_reshipfreebie(self, ):
1872
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1873
    if mtype == TMessageType.EXCEPTION:
1874
      x = TApplicationException()
1875
      x.read(self._iprot)
1876
      self._iprot.readMessageEnd()
1877
      raise x
1878
    result = reshipfreebie_result()
1879
    result.read(self._iprot)
1880
    self._iprot.readMessageEnd()
1881
    if result.wex is not None:
1882
      raise result.wex
1883
    return
1884
 
7410 amar.kumar 1885
  def isItemTransferAllowed(self, warehouseId, transferWarehouseId):
1886
    """
1887
    Parameters:
1888
     - warehouseId
1889
     - transferWarehouseId
1890
    """
1891
    self.send_isItemTransferAllowed(warehouseId, transferWarehouseId)
1892
    return self.recv_isItemTransferAllowed()
7199 amar.kumar 1893
 
7410 amar.kumar 1894
  def send_isItemTransferAllowed(self, warehouseId, transferWarehouseId):
1895
    self._oprot.writeMessageBegin('isItemTransferAllowed', TMessageType.CALL, self._seqid)
1896
    args = isItemTransferAllowed_args()
1897
    args.warehouseId = warehouseId
1898
    args.transferWarehouseId = transferWarehouseId
1899
    args.write(self._oprot)
1900
    self._oprot.writeMessageEnd()
1901
    self._oprot.trans.flush()
1902
 
1903
  def recv_isItemTransferAllowed(self, ):
1904
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1905
    if mtype == TMessageType.EXCEPTION:
1906
      x = TApplicationException()
1907
      x.read(self._iprot)
1908
      self._iprot.readMessageEnd()
1909
      raise x
1910
    result = isItemTransferAllowed_result()
1911
    result.read(self._iprot)
1912
    self._iprot.readMessageEnd()
1913
    if result.success is not None:
1914
      return result.success
1915
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isItemTransferAllowed failed: unknown result");
1916
 
1917
  def createTransferLot(self, originWarehouseId, destWarehouseId):
1918
    """
1919
    Parameters:
1920
     - originWarehouseId
1921
     - destWarehouseId
1922
    """
1923
    self.send_createTransferLot(originWarehouseId, destWarehouseId)
1924
    return self.recv_createTransferLot()
1925
 
1926
  def send_createTransferLot(self, originWarehouseId, destWarehouseId):
1927
    self._oprot.writeMessageBegin('createTransferLot', TMessageType.CALL, self._seqid)
1928
    args = createTransferLot_args()
1929
    args.originWarehouseId = originWarehouseId
1930
    args.destWarehouseId = destWarehouseId
1931
    args.write(self._oprot)
1932
    self._oprot.writeMessageEnd()
1933
    self._oprot.trans.flush()
1934
 
1935
  def recv_createTransferLot(self, ):
1936
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1937
    if mtype == TMessageType.EXCEPTION:
1938
      x = TApplicationException()
1939
      x.read(self._iprot)
1940
      self._iprot.readMessageEnd()
1941
      raise x
1942
    result = createTransferLot_result()
1943
    result.read(self._iprot)
1944
    self._iprot.readMessageEnd()
1945
    if result.success is not None:
1946
      return result.success
1947
    if result.wex is not None:
1948
      raise result.wex
1949
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createTransferLot failed: unknown result");
1950
 
1951
  def getTransferLot(self, transferLotId):
1952
    """
1953
    Parameters:
1954
     - transferLotId
1955
    """
1956
    self.send_getTransferLot(transferLotId)
1957
    return self.recv_getTransferLot()
1958
 
1959
  def send_getTransferLot(self, transferLotId):
1960
    self._oprot.writeMessageBegin('getTransferLot', TMessageType.CALL, self._seqid)
1961
    args = getTransferLot_args()
1962
    args.transferLotId = transferLotId
1963
    args.write(self._oprot)
1964
    self._oprot.writeMessageEnd()
1965
    self._oprot.trans.flush()
1966
 
1967
  def recv_getTransferLot(self, ):
1968
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1969
    if mtype == TMessageType.EXCEPTION:
1970
      x = TApplicationException()
1971
      x.read(self._iprot)
1972
      self._iprot.readMessageEnd()
1973
      raise x
1974
    result = getTransferLot_result()
1975
    result.read(self._iprot)
1976
    self._iprot.readMessageEnd()
1977
    if result.success is not None:
1978
      return result.success
1979
    if result.wex is not None:
1980
      raise result.wex
1981
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLot failed: unknown result");
1982
 
1983
  def markTransferLotAsReceived(self, id, remoteTransferRefNumber):
1984
    """
1985
    Parameters:
1986
     - id
1987
     - remoteTransferRefNumber
1988
    """
1989
    self.send_markTransferLotAsReceived(id, remoteTransferRefNumber)
1990
    self.recv_markTransferLotAsReceived()
1991
 
1992
  def send_markTransferLotAsReceived(self, id, remoteTransferRefNumber):
1993
    self._oprot.writeMessageBegin('markTransferLotAsReceived', TMessageType.CALL, self._seqid)
1994
    args = markTransferLotAsReceived_args()
1995
    args.id = id
1996
    args.remoteTransferRefNumber = remoteTransferRefNumber
1997
    args.write(self._oprot)
1998
    self._oprot.writeMessageEnd()
1999
    self._oprot.trans.flush()
2000
 
2001
  def recv_markTransferLotAsReceived(self, ):
2002
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2003
    if mtype == TMessageType.EXCEPTION:
2004
      x = TApplicationException()
2005
      x.read(self._iprot)
2006
      self._iprot.readMessageEnd()
2007
      raise x
2008
    result = markTransferLotAsReceived_result()
2009
    result.read(self._iprot)
2010
    self._iprot.readMessageEnd()
2011
    if result.wex is not None:
2012
      raise result.wex
2013
    return
2014
 
2015
  def getTransferLotsByDate(self, fromDate, toDate):
2016
    """
2017
    Parameters:
2018
     - fromDate
2019
     - toDate
2020
    """
2021
    self.send_getTransferLotsByDate(fromDate, toDate)
2022
    return self.recv_getTransferLotsByDate()
2023
 
2024
  def send_getTransferLotsByDate(self, fromDate, toDate):
2025
    self._oprot.writeMessageBegin('getTransferLotsByDate', TMessageType.CALL, self._seqid)
2026
    args = getTransferLotsByDate_args()
2027
    args.fromDate = fromDate
2028
    args.toDate = toDate
2029
    args.write(self._oprot)
2030
    self._oprot.writeMessageEnd()
2031
    self._oprot.trans.flush()
2032
 
2033
  def recv_getTransferLotsByDate(self, ):
2034
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2035
    if mtype == TMessageType.EXCEPTION:
2036
      x = TApplicationException()
2037
      x.read(self._iprot)
2038
      self._iprot.readMessageEnd()
2039
      raise x
2040
    result = getTransferLotsByDate_result()
2041
    result.read(self._iprot)
2042
    self._iprot.readMessageEnd()
2043
    if result.success is not None:
2044
      return result.success
2045
    if result.wex is not None:
2046
      raise result.wex
2047
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLotsByDate failed: unknown result");
2048
 
2049
  def getAllowedDestinationWarehousesForTransfer(self, warehouseId):
2050
    """
2051
    Parameters:
2052
     - warehouseId
2053
    """
2054
    self.send_getAllowedDestinationWarehousesForTransfer(warehouseId)
2055
    return self.recv_getAllowedDestinationWarehousesForTransfer()
2056
 
2057
  def send_getAllowedDestinationWarehousesForTransfer(self, warehouseId):
2058
    self._oprot.writeMessageBegin('getAllowedDestinationWarehousesForTransfer', TMessageType.CALL, self._seqid)
2059
    args = getAllowedDestinationWarehousesForTransfer_args()
2060
    args.warehouseId = warehouseId
2061
    args.write(self._oprot)
2062
    self._oprot.writeMessageEnd()
2063
    self._oprot.trans.flush()
2064
 
2065
  def recv_getAllowedDestinationWarehousesForTransfer(self, ):
2066
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2067
    if mtype == TMessageType.EXCEPTION:
2068
      x = TApplicationException()
2069
      x.read(self._iprot)
2070
      self._iprot.readMessageEnd()
2071
      raise x
2072
    result = getAllowedDestinationWarehousesForTransfer_result()
2073
    result.read(self._iprot)
2074
    self._iprot.readMessageEnd()
2075
    if result.success is not None:
2076
      return result.success
2077
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllowedDestinationWarehousesForTransfer failed: unknown result");
2078
 
2079
  def getItemsInTransferLot(self, transferLotId):
2080
    """
2081
    Parameters:
2082
     - transferLotId
2083
    """
2084
    self.send_getItemsInTransferLot(transferLotId)
2085
    return self.recv_getItemsInTransferLot()
2086
 
2087
  def send_getItemsInTransferLot(self, transferLotId):
2088
    self._oprot.writeMessageBegin('getItemsInTransferLot', TMessageType.CALL, self._seqid)
2089
    args = getItemsInTransferLot_args()
2090
    args.transferLotId = transferLotId
2091
    args.write(self._oprot)
2092
    self._oprot.writeMessageEnd()
2093
    self._oprot.trans.flush()
2094
 
2095
  def recv_getItemsInTransferLot(self, ):
2096
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2097
    if mtype == TMessageType.EXCEPTION:
2098
      x = TApplicationException()
2099
      x.read(self._iprot)
2100
      self._iprot.readMessageEnd()
2101
      raise x
2102
    result = getItemsInTransferLot_result()
2103
    result.read(self._iprot)
2104
    self._iprot.readMessageEnd()
2105
    if result.success is not None:
2106
      return result.success
2107
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsInTransferLot failed: unknown result");
2108
 
2109
  def markItemsAsReceivedForTransferLot(self, id):
2110
    """
2111
    Parameters:
2112
     - id
2113
    """
2114
    self.send_markItemsAsReceivedForTransferLot(id)
2115
    self.recv_markItemsAsReceivedForTransferLot()
2116
 
2117
  def send_markItemsAsReceivedForTransferLot(self, id):
2118
    self._oprot.writeMessageBegin('markItemsAsReceivedForTransferLot', TMessageType.CALL, self._seqid)
2119
    args = markItemsAsReceivedForTransferLot_args()
2120
    args.id = id
2121
    args.write(self._oprot)
2122
    self._oprot.writeMessageEnd()
2123
    self._oprot.trans.flush()
2124
 
2125
  def recv_markItemsAsReceivedForTransferLot(self, ):
2126
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2127
    if mtype == TMessageType.EXCEPTION:
2128
      x = TApplicationException()
2129
      x.read(self._iprot)
2130
      self._iprot.readMessageEnd()
2131
      raise x
2132
    result = markItemsAsReceivedForTransferLot_result()
2133
    result.read(self._iprot)
2134
    self._iprot.readMessageEnd()
2135
    if result.wex is not None:
2136
      raise result.wex
2137
    return
2138
 
2139
  def updateTransferLotAfterItemReceive(self, id):
2140
    """
2141
    Parameters:
2142
     - id
2143
    """
2144
    self.send_updateTransferLotAfterItemReceive(id)
2145
    return self.recv_updateTransferLotAfterItemReceive()
2146
 
2147
  def send_updateTransferLotAfterItemReceive(self, id):
2148
    self._oprot.writeMessageBegin('updateTransferLotAfterItemReceive', TMessageType.CALL, self._seqid)
2149
    args = updateTransferLotAfterItemReceive_args()
2150
    args.id = id
2151
    args.write(self._oprot)
2152
    self._oprot.writeMessageEnd()
2153
    self._oprot.trans.flush()
2154
 
2155
  def recv_updateTransferLotAfterItemReceive(self, ):
2156
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2157
    if mtype == TMessageType.EXCEPTION:
2158
      x = TApplicationException()
2159
      x.read(self._iprot)
2160
      self._iprot.readMessageEnd()
2161
      raise x
2162
    result = updateTransferLotAfterItemReceive_result()
2163
    result.read(self._iprot)
2164
    self._iprot.readMessageEnd()
2165
    if result.success is not None:
2166
      return result.success
2167
    if result.wex is not None:
2168
      raise result.wex
2169
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTransferLotAfterItemReceive failed: unknown result");
2170
 
7459 amar.kumar 2171
  def scanForTransferOut(self, inventoryItems, type, transferLotId):
7410 amar.kumar 2172
    """
2173
    Parameters:
2174
     - inventoryItems
2175
     - type
2176
     - transferLotId
2177
    """
7459 amar.kumar 2178
    self.send_scanForTransferOut(inventoryItems, type, transferLotId)
2179
    self.recv_scanForTransferOut()
7410 amar.kumar 2180
 
7459 amar.kumar 2181
  def send_scanForTransferOut(self, inventoryItems, type, transferLotId):
2182
    self._oprot.writeMessageBegin('scanForTransferOut', TMessageType.CALL, self._seqid)
2183
    args = scanForTransferOut_args()
7410 amar.kumar 2184
    args.inventoryItems = inventoryItems
2185
    args.type = type
2186
    args.transferLotId = transferLotId
2187
    args.write(self._oprot)
2188
    self._oprot.writeMessageEnd()
2189
    self._oprot.trans.flush()
2190
 
7459 amar.kumar 2191
  def recv_scanForTransferOut(self, ):
7410 amar.kumar 2192
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2193
    if mtype == TMessageType.EXCEPTION:
2194
      x = TApplicationException()
2195
      x.read(self._iprot)
2196
      self._iprot.readMessageEnd()
2197
      raise x
7459 amar.kumar 2198
    result = scanForTransferOut_result()
7410 amar.kumar 2199
    result.read(self._iprot)
2200
    self._iprot.readMessageEnd()
2201
    if result.wex is not None:
2202
      raise result.wex
2203
    return
2204
 
7459 amar.kumar 2205
  def scanForTransferIn(self, inventoryItems, type, transferLotId):
2206
    """
2207
    Parameters:
2208
     - inventoryItems
2209
     - type
2210
     - transferLotId
2211
    """
2212
    self.send_scanForTransferIn(inventoryItems, type, transferLotId)
2213
    self.recv_scanForTransferIn()
7410 amar.kumar 2214
 
7459 amar.kumar 2215
  def send_scanForTransferIn(self, inventoryItems, type, transferLotId):
2216
    self._oprot.writeMessageBegin('scanForTransferIn', TMessageType.CALL, self._seqid)
2217
    args = scanForTransferIn_args()
2218
    args.inventoryItems = inventoryItems
2219
    args.type = type
2220
    args.transferLotId = transferLotId
2221
    args.write(self._oprot)
2222
    self._oprot.writeMessageEnd()
2223
    self._oprot.trans.flush()
2224
 
2225
  def recv_scanForTransferIn(self, ):
2226
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2227
    if mtype == TMessageType.EXCEPTION:
2228
      x = TApplicationException()
2229
      x.read(self._iprot)
2230
      self._iprot.readMessageEnd()
2231
      raise x
2232
    result = scanForTransferIn_result()
2233
    result.read(self._iprot)
2234
    self._iprot.readMessageEnd()
2235
    if result.wex is not None:
2236
      raise result.wex
2237
    return
2238
 
2239
  def scanForOursThirdPartyReceive(self, inventoryItems, id):
2240
    """
2241
    Parameters:
2242
     - inventoryItems
2243
     - id
2244
    """
2245
    self.send_scanForOursThirdPartyReceive(inventoryItems, id)
2246
    self.recv_scanForOursThirdPartyReceive()
2247
 
2248
  def send_scanForOursThirdPartyReceive(self, inventoryItems, id):
2249
    self._oprot.writeMessageBegin('scanForOursThirdPartyReceive', TMessageType.CALL, self._seqid)
2250
    args = scanForOursThirdPartyReceive_args()
2251
    args.inventoryItems = inventoryItems
2252
    args.id = id
2253
    args.write(self._oprot)
2254
    self._oprot.writeMessageEnd()
2255
    self._oprot.trans.flush()
2256
 
2257
  def recv_scanForOursThirdPartyReceive(self, ):
2258
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2259
    if mtype == TMessageType.EXCEPTION:
2260
      x = TApplicationException()
2261
      x.read(self._iprot)
2262
      self._iprot.readMessageEnd()
2263
      raise x
2264
    result = scanForOursThirdPartyReceive_result()
2265
    result.read(self._iprot)
2266
    self._iprot.readMessageEnd()
2267
    if result.wex is not None:
2268
      raise result.wex
2269
    return
2270
 
7574 amar.kumar 2271
  def getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
2272
    """
2273
    Parameters:
2274
     - itemId
2275
     - physicalWarehouseId
2276
    """
2277
    self.send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(itemId, physicalWarehouseId)
2278
    return self.recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse()
7459 amar.kumar 2279
 
7574 amar.kumar 2280
  def send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
2281
    self._oprot.writeMessageBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse', TMessageType.CALL, self._seqid)
2282
    args = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args()
2283
    args.itemId = itemId
2284
    args.physicalWarehouseId = physicalWarehouseId
2285
    args.write(self._oprot)
2286
    self._oprot.writeMessageEnd()
2287
    self._oprot.trans.flush()
2288
 
2289
  def recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, ):
2290
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2291
    if mtype == TMessageType.EXCEPTION:
2292
      x = TApplicationException()
2293
      x.read(self._iprot)
2294
      self._iprot.readMessageEnd()
2295
      raise x
2296
    result = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result()
2297
    result.read(self._iprot)
2298
    self._iprot.readMessageEnd()
2299
    if result.success is not None:
2300
      return result.success
2301
    if result.wex is not None:
2302
      raise result.wex
2303
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse failed: unknown result");
2304
 
7672 rajveer 2305
  def getInTransitInventory(self, originWarehouseId):
2306
    """
2307
    Parameters:
2308
     - originWarehouseId
2309
    """
2310
    self.send_getInTransitInventory(originWarehouseId)
2311
    return self.recv_getInTransitInventory()
7574 amar.kumar 2312
 
7672 rajveer 2313
  def send_getInTransitInventory(self, originWarehouseId):
2314
    self._oprot.writeMessageBegin('getInTransitInventory', TMessageType.CALL, self._seqid)
2315
    args = getInTransitInventory_args()
2316
    args.originWarehouseId = originWarehouseId
2317
    args.write(self._oprot)
2318
    self._oprot.writeMessageEnd()
2319
    self._oprot.trans.flush()
2320
 
2321
  def recv_getInTransitInventory(self, ):
2322
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2323
    if mtype == TMessageType.EXCEPTION:
2324
      x = TApplicationException()
2325
      x.read(self._iprot)
2326
      self._iprot.readMessageEnd()
2327
      raise x
2328
    result = getInTransitInventory_result()
2329
    result.read(self._iprot)
2330
    self._iprot.readMessageEnd()
2331
    if result.success is not None:
2332
      return result.success
2333
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInTransitInventory failed: unknown result");
2334
 
7968 amar.kumar 2335
  def isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
2336
    """
2337
    Parameters:
2338
     - itemId
2339
     - serialNumber
2340
     - warehouseId
2341
    """
2342
    self.send_isItemAvailableForSale(itemId, serialNumber, warehouseId)
2343
    return self.recv_isItemAvailableForSale()
7672 rajveer 2344
 
7968 amar.kumar 2345
  def send_isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
2346
    self._oprot.writeMessageBegin('isItemAvailableForSale', TMessageType.CALL, self._seqid)
2347
    args = isItemAvailableForSale_args()
2348
    args.itemId = itemId
2349
    args.serialNumber = serialNumber
2350
    args.warehouseId = warehouseId
2351
    args.write(self._oprot)
2352
    self._oprot.writeMessageEnd()
2353
    self._oprot.trans.flush()
2354
 
2355
  def recv_isItemAvailableForSale(self, ):
2356
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2357
    if mtype == TMessageType.EXCEPTION:
2358
      x = TApplicationException()
2359
      x.read(self._iprot)
2360
      self._iprot.readMessageEnd()
2361
      raise x
2362
    result = isItemAvailableForSale_result()
2363
    result.read(self._iprot)
2364
    self._iprot.readMessageEnd()
2365
    if result.success is not None:
2366
      return result.success
2367
    if result.wex is not None:
2368
      raise result.wex
2369
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isItemAvailableForSale failed: unknown result");
2370
 
2371
  def getHistoricBadInventoryByScans(self, date):
2372
    """
2373
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
2374
 
2375
    Parameters:
2376
     - date
2377
    """
2378
    self.send_getHistoricBadInventoryByScans(date)
2379
    return self.recv_getHistoricBadInventoryByScans()
2380
 
2381
  def send_getHistoricBadInventoryByScans(self, date):
2382
    self._oprot.writeMessageBegin('getHistoricBadInventoryByScans', TMessageType.CALL, self._seqid)
2383
    args = getHistoricBadInventoryByScans_args()
2384
    args.date = date
2385
    args.write(self._oprot)
2386
    self._oprot.writeMessageEnd()
2387
    self._oprot.trans.flush()
2388
 
2389
  def recv_getHistoricBadInventoryByScans(self, ):
2390
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2391
    if mtype == TMessageType.EXCEPTION:
2392
      x = TApplicationException()
2393
      x.read(self._iprot)
2394
      self._iprot.readMessageEnd()
2395
      raise x
2396
    result = getHistoricBadInventoryByScans_result()
2397
    result.read(self._iprot)
2398
    self._iprot.readMessageEnd()
2399
    if result.success is not None:
2400
      return result.success
2401
    if result.wex is not None:
2402
      raise result.wex
2403
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricBadInventoryByScans failed: unknown result");
2404
 
8717 amar.kumar 2405
  def scanForBadSale(self, serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
8565 amar.kumar 2406
    """
2407
    Parameters:
8717 amar.kumar 2408
     - serialNumber
2409
     - itemNumber
2410
     - itemId
8565 amar.kumar 2411
     - orderId
8717 amar.kumar 2412
     - fulfilmentWarehouseId
8565 amar.kumar 2413
     - quantity
2414
     - billingWarehouseId
2415
    """
8717 amar.kumar 2416
    self.send_scanForBadSale(serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId)
2417
    return self.recv_scanForBadSale()
7968 amar.kumar 2418
 
8717 amar.kumar 2419
  def send_scanForBadSale(self, serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
8565 amar.kumar 2420
    self._oprot.writeMessageBegin('scanForBadSale', TMessageType.CALL, self._seqid)
2421
    args = scanForBadSale_args()
8717 amar.kumar 2422
    args.serialNumber = serialNumber
2423
    args.itemNumber = itemNumber
2424
    args.itemId = itemId
8565 amar.kumar 2425
    args.orderId = orderId
8717 amar.kumar 2426
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 2427
    args.quantity = quantity
2428
    args.billingWarehouseId = billingWarehouseId
2429
    args.write(self._oprot)
2430
    self._oprot.writeMessageEnd()
2431
    self._oprot.trans.flush()
2432
 
2433
  def recv_scanForBadSale(self, ):
2434
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2435
    if mtype == TMessageType.EXCEPTION:
2436
      x = TApplicationException()
2437
      x.read(self._iprot)
2438
      self._iprot.readMessageEnd()
2439
      raise x
2440
    result = scanForBadSale_result()
2441
    result.read(self._iprot)
2442
    self._iprot.readMessageEnd()
8717 amar.kumar 2443
    if result.success is not None:
2444
      return result.success
2445
    if result.wex is not None:
2446
      raise result.wex
2447
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForBadSale failed: unknown result");
8565 amar.kumar 2448
 
10120 manish.sha 2449
  def getTransferLotItemsForMarkReceive(self, transferLotId, scanType):
2450
    """
2451
    Parameters:
2452
     - transferLotId
2453
     - scanType
2454
    """
2455
    self.send_getTransferLotItemsForMarkReceive(transferLotId, scanType)
2456
    return self.recv_getTransferLotItemsForMarkReceive()
8565 amar.kumar 2457
 
10120 manish.sha 2458
  def send_getTransferLotItemsForMarkReceive(self, transferLotId, scanType):
2459
    self._oprot.writeMessageBegin('getTransferLotItemsForMarkReceive', TMessageType.CALL, self._seqid)
2460
    args = getTransferLotItemsForMarkReceive_args()
2461
    args.transferLotId = transferLotId
2462
    args.scanType = scanType
2463
    args.write(self._oprot)
2464
    self._oprot.writeMessageEnd()
2465
    self._oprot.trans.flush()
2466
 
2467
  def recv_getTransferLotItemsForMarkReceive(self, ):
2468
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2469
    if mtype == TMessageType.EXCEPTION:
2470
      x = TApplicationException()
2471
      x.read(self._iprot)
2472
      self._iprot.readMessageEnd()
2473
      raise x
2474
    result = getTransferLotItemsForMarkReceive_result()
2475
    result.read(self._iprot)
2476
    self._iprot.readMessageEnd()
2477
    if result.success is not None:
2478
      return result.success
2479
    if result.wex is not None:
2480
      raise result.wex
2481
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLotItemsForMarkReceive failed: unknown result");
2482
 
2483
  def markItemsAsReceivedForTransferLotPartial(self, inventoryItems, transferLotId):
2484
    """
2485
    Parameters:
2486
     - inventoryItems
2487
     - transferLotId
2488
    """
2489
    self.send_markItemsAsReceivedForTransferLotPartial(inventoryItems, transferLotId)
2490
    self.recv_markItemsAsReceivedForTransferLotPartial()
2491
 
2492
  def send_markItemsAsReceivedForTransferLotPartial(self, inventoryItems, transferLotId):
2493
    self._oprot.writeMessageBegin('markItemsAsReceivedForTransferLotPartial', TMessageType.CALL, self._seqid)
2494
    args = markItemsAsReceivedForTransferLotPartial_args()
2495
    args.inventoryItems = inventoryItems
2496
    args.transferLotId = transferLotId
2497
    args.write(self._oprot)
2498
    self._oprot.writeMessageEnd()
2499
    self._oprot.trans.flush()
2500
 
2501
  def recv_markItemsAsReceivedForTransferLotPartial(self, ):
2502
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2503
    if mtype == TMessageType.EXCEPTION:
2504
      x = TApplicationException()
2505
      x.read(self._iprot)
2506
      self._iprot.readMessageEnd()
2507
      raise x
2508
    result = markItemsAsReceivedForTransferLotPartial_result()
2509
    result.read(self._iprot)
2510
    self._iprot.readMessageEnd()
2511
    if result.wex is not None:
2512
      raise result.wex
2513
    return
2514
 
2515
  def markTransferLotAsReceivedPartial(self, id, remoteTransferRefNumber):
2516
    """
2517
    Parameters:
2518
     - id
2519
     - remoteTransferRefNumber
2520
    """
2521
    self.send_markTransferLotAsReceivedPartial(id, remoteTransferRefNumber)
2522
    self.recv_markTransferLotAsReceivedPartial()
2523
 
2524
  def send_markTransferLotAsReceivedPartial(self, id, remoteTransferRefNumber):
2525
    self._oprot.writeMessageBegin('markTransferLotAsReceivedPartial', TMessageType.CALL, self._seqid)
2526
    args = markTransferLotAsReceivedPartial_args()
2527
    args.id = id
2528
    args.remoteTransferRefNumber = remoteTransferRefNumber
2529
    args.write(self._oprot)
2530
    self._oprot.writeMessageEnd()
2531
    self._oprot.trans.flush()
2532
 
2533
  def recv_markTransferLotAsReceivedPartial(self, ):
2534
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2535
    if mtype == TMessageType.EXCEPTION:
2536
      x = TApplicationException()
2537
      x.read(self._iprot)
2538
      self._iprot.readMessageEnd()
2539
      raise x
2540
    result = markTransferLotAsReceivedPartial_result()
2541
    result.read(self._iprot)
2542
    self._iprot.readMessageEnd()
2543
    if result.wex is not None:
2544
      raise result.wex
2545
    return
2546
 
10690 manish.sha 2547
  def getInventoryItemScannedInForPO(self, itemId, purchaseIds):
2548
    """
2549
    Parameters:
2550
     - itemId
2551
     - purchaseIds
2552
    """
2553
    self.send_getInventoryItemScannedInForPO(itemId, purchaseIds)
2554
    return self.recv_getInventoryItemScannedInForPO()
10120 manish.sha 2555
 
10690 manish.sha 2556
  def send_getInventoryItemScannedInForPO(self, itemId, purchaseIds):
2557
    self._oprot.writeMessageBegin('getInventoryItemScannedInForPO', TMessageType.CALL, self._seqid)
2558
    args = getInventoryItemScannedInForPO_args()
2559
    args.itemId = itemId
2560
    args.purchaseIds = purchaseIds
2561
    args.write(self._oprot)
2562
    self._oprot.writeMessageEnd()
2563
    self._oprot.trans.flush()
2564
 
2565
  def recv_getInventoryItemScannedInForPO(self, ):
2566
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2567
    if mtype == TMessageType.EXCEPTION:
2568
      x = TApplicationException()
2569
      x.read(self._iprot)
2570
      self._iprot.readMessageEnd()
2571
      raise x
2572
    result = getInventoryItemScannedInForPO_result()
2573
    result.read(self._iprot)
2574
    self._iprot.readMessageEnd()
2575
    if result.success is not None:
2576
      return result.success
2577
    if result.wex is not None:
2578
      raise result.wex
2579
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemScannedInForPO failed: unknown result");
2580
 
2581
  def getAmazonTransferredSkuDetails(self, itemIds):
2582
    """
2583
    Parameters:
2584
     - itemIds
2585
    """
2586
    self.send_getAmazonTransferredSkuDetails(itemIds)
2587
    return self.recv_getAmazonTransferredSkuDetails()
2588
 
2589
  def send_getAmazonTransferredSkuDetails(self, itemIds):
2590
    self._oprot.writeMessageBegin('getAmazonTransferredSkuDetails', TMessageType.CALL, self._seqid)
2591
    args = getAmazonTransferredSkuDetails_args()
2592
    args.itemIds = itemIds
2593
    args.write(self._oprot)
2594
    self._oprot.writeMessageEnd()
2595
    self._oprot.trans.flush()
2596
 
2597
  def recv_getAmazonTransferredSkuDetails(self, ):
2598
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2599
    if mtype == TMessageType.EXCEPTION:
2600
      x = TApplicationException()
2601
      x.read(self._iprot)
2602
      self._iprot.readMessageEnd()
2603
      raise x
2604
    result = getAmazonTransferredSkuDetails_result()
2605
    result.read(self._iprot)
2606
    self._iprot.readMessageEnd()
2607
    if result.success is not None:
2608
      return result.success
2609
    if result.wex is not None:
2610
      raise result.wex
2611
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonTransferredSkuDetails failed: unknown result");
2612
 
2613
  def getScansforPurchase(self, purchaseId, scanType):
2614
    """
2615
    Parameters:
2616
     - purchaseId
2617
     - scanType
2618
    """
2619
    self.send_getScansforPurchase(purchaseId, scanType)
2620
    return self.recv_getScansforPurchase()
2621
 
2622
  def send_getScansforPurchase(self, purchaseId, scanType):
2623
    self._oprot.writeMessageBegin('getScansforPurchase', TMessageType.CALL, self._seqid)
2624
    args = getScansforPurchase_args()
2625
    args.purchaseId = purchaseId
2626
    args.scanType = scanType
2627
    args.write(self._oprot)
2628
    self._oprot.writeMessageEnd()
2629
    self._oprot.trans.flush()
2630
 
2631
  def recv_getScansforPurchase(self, ):
2632
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2633
    if mtype == TMessageType.EXCEPTION:
2634
      x = TApplicationException()
2635
      x.read(self._iprot)
2636
      self._iprot.readMessageEnd()
2637
      raise x
2638
    result = getScansforPurchase_result()
2639
    result.read(self._iprot)
2640
    self._iprot.readMessageEnd()
2641
    if result.success is not None:
2642
      return result.success
2643
    if result.wex is not None:
2644
      raise result.wex
2645
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScansforPurchase failed: unknown result");
2646
 
10864 manish.sha 2647
  def getCurrentBadQuantityForItem(self, itemId, currentWarehouseId, physicalWarehouseId):
2648
    """
2649
    Parameters:
2650
     - itemId
2651
     - currentWarehouseId
2652
     - physicalWarehouseId
2653
    """
2654
    self.send_getCurrentBadQuantityForItem(itemId, currentWarehouseId, physicalWarehouseId)
2655
    return self.recv_getCurrentBadQuantityForItem()
10690 manish.sha 2656
 
10864 manish.sha 2657
  def send_getCurrentBadQuantityForItem(self, itemId, currentWarehouseId, physicalWarehouseId):
2658
    self._oprot.writeMessageBegin('getCurrentBadQuantityForItem', TMessageType.CALL, self._seqid)
2659
    args = getCurrentBadQuantityForItem_args()
2660
    args.itemId = itemId
2661
    args.currentWarehouseId = currentWarehouseId
2662
    args.physicalWarehouseId = physicalWarehouseId
2663
    args.write(self._oprot)
2664
    self._oprot.writeMessageEnd()
2665
    self._oprot.trans.flush()
2666
 
2667
  def recv_getCurrentBadQuantityForItem(self, ):
2668
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2669
    if mtype == TMessageType.EXCEPTION:
2670
      x = TApplicationException()
2671
      x.read(self._iprot)
2672
      self._iprot.readMessageEnd()
2673
      raise x
2674
    result = getCurrentBadQuantityForItem_result()
2675
    result.read(self._iprot)
2676
    self._iprot.readMessageEnd()
2677
    if result.success is not None:
2678
      return result.success
2679
    if result.wex is not None:
2680
      raise result.wex
2681
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentBadQuantityForItem failed: unknown result");
2682
 
2683
  def scanForBadPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
2684
    """
2685
    Parameters:
2686
     - saleReturnItems
2687
     - vendorId
2688
     - billingWarehouseId
2689
    """
2690
    self.send_scanForBadPurchaseReturn(saleReturnItems, vendorId, billingWarehouseId)
2691
    return self.recv_scanForBadPurchaseReturn()
2692
 
2693
  def send_scanForBadPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
2694
    self._oprot.writeMessageBegin('scanForBadPurchaseReturn', TMessageType.CALL, self._seqid)
2695
    args = scanForBadPurchaseReturn_args()
2696
    args.saleReturnItems = saleReturnItems
2697
    args.vendorId = vendorId
2698
    args.billingWarehouseId = billingWarehouseId
2699
    args.write(self._oprot)
2700
    self._oprot.writeMessageEnd()
2701
    self._oprot.trans.flush()
2702
 
2703
  def recv_scanForBadPurchaseReturn(self, ):
2704
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2705
    if mtype == TMessageType.EXCEPTION:
2706
      x = TApplicationException()
2707
      x.read(self._iprot)
2708
      self._iprot.readMessageEnd()
2709
      raise x
2710
    result = scanForBadPurchaseReturn_result()
2711
    result.read(self._iprot)
2712
    self._iprot.readMessageEnd()
2713
    if result.success is not None:
2714
      return result.success
2715
    if result.ex is not None:
2716
      raise result.ex
2717
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForBadPurchaseReturn failed: unknown result");
2718
 
13504 manish.sha 2719
  def getItemsInPurchaseReturn(self, purchaseReturnId, type, returnTime):
10864 manish.sha 2720
    """
2721
    Parameters:
2722
     - purchaseReturnId
11751 manish.sha 2723
     - type
13504 manish.sha 2724
     - returnTime
10864 manish.sha 2725
    """
13504 manish.sha 2726
    self.send_getItemsInPurchaseReturn(purchaseReturnId, type, returnTime)
10864 manish.sha 2727
    return self.recv_getItemsInPurchaseReturn()
2728
 
13504 manish.sha 2729
  def send_getItemsInPurchaseReturn(self, purchaseReturnId, type, returnTime):
10864 manish.sha 2730
    self._oprot.writeMessageBegin('getItemsInPurchaseReturn', TMessageType.CALL, self._seqid)
2731
    args = getItemsInPurchaseReturn_args()
2732
    args.purchaseReturnId = purchaseReturnId
11751 manish.sha 2733
    args.type = type
13504 manish.sha 2734
    args.returnTime = returnTime
10864 manish.sha 2735
    args.write(self._oprot)
2736
    self._oprot.writeMessageEnd()
2737
    self._oprot.trans.flush()
2738
 
2739
  def recv_getItemsInPurchaseReturn(self, ):
2740
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2741
    if mtype == TMessageType.EXCEPTION:
2742
      x = TApplicationException()
2743
      x.read(self._iprot)
2744
      self._iprot.readMessageEnd()
2745
      raise x
2746
    result = getItemsInPurchaseReturn_result()
2747
    result.read(self._iprot)
2748
    self._iprot.readMessageEnd()
2749
    if result.success is not None:
2750
      return result.success
2751
    if result.ex is not None:
2752
      raise result.ex
2753
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsInPurchaseReturn failed: unknown result");
2754
 
10886 manish.sha 2755
  def getScansForInventoryItem(self, inventoryItemId, type):
2756
    """
2757
    Parameters:
2758
     - inventoryItemId
2759
     - type
2760
    """
2761
    self.send_getScansForInventoryItem(inventoryItemId, type)
2762
    return self.recv_getScansForInventoryItem()
10864 manish.sha 2763
 
10886 manish.sha 2764
  def send_getScansForInventoryItem(self, inventoryItemId, type):
2765
    self._oprot.writeMessageBegin('getScansForInventoryItem', TMessageType.CALL, self._seqid)
2766
    args = getScansForInventoryItem_args()
2767
    args.inventoryItemId = inventoryItemId
2768
    args.type = type
2769
    args.write(self._oprot)
2770
    self._oprot.writeMessageEnd()
2771
    self._oprot.trans.flush()
2772
 
2773
  def recv_getScansForInventoryItem(self, ):
2774
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2775
    if mtype == TMessageType.EXCEPTION:
2776
      x = TApplicationException()
2777
      x.read(self._iprot)
2778
      self._iprot.readMessageEnd()
2779
      raise x
2780
    result = getScansForInventoryItem_result()
2781
    result.read(self._iprot)
2782
    self._iprot.readMessageEnd()
2783
    if result.success is not None:
2784
      return result.success
2785
    if result.ex is not None:
2786
      raise result.ex
2787
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScansForInventoryItem failed: unknown result");
2788
 
12531 manish.sha 2789
  def checkGrnImeiStatus(self, imeiNos):
2790
    """
2791
    Parameters:
2792
     - imeiNos
2793
    """
2794
    self.send_checkGrnImeiStatus(imeiNos)
2795
    return self.recv_checkGrnImeiStatus()
10886 manish.sha 2796
 
12531 manish.sha 2797
  def send_checkGrnImeiStatus(self, imeiNos):
2798
    self._oprot.writeMessageBegin('checkGrnImeiStatus', TMessageType.CALL, self._seqid)
2799
    args = checkGrnImeiStatus_args()
2800
    args.imeiNos = imeiNos
2801
    args.write(self._oprot)
2802
    self._oprot.writeMessageEnd()
2803
    self._oprot.trans.flush()
2804
 
2805
  def recv_checkGrnImeiStatus(self, ):
2806
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2807
    if mtype == TMessageType.EXCEPTION:
2808
      x = TApplicationException()
2809
      x.read(self._iprot)
2810
      self._iprot.readMessageEnd()
2811
      raise x
2812
    result = checkGrnImeiStatus_result()
2813
    result.read(self._iprot)
2814
    self._iprot.readMessageEnd()
2815
    if result.success is not None:
2816
      return result.success
2817
    if result.ex is not None:
2818
      raise result.ex
2819
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkGrnImeiStatus failed: unknown result");
2820
 
12800 manish.sha 2821
  def getInventoryAgeConsideredItems(self, itemId):
2822
    """
2823
    Parameters:
2824
     - itemId
2825
    """
2826
    self.send_getInventoryAgeConsideredItems(itemId)
2827
    return self.recv_getInventoryAgeConsideredItems()
12531 manish.sha 2828
 
12800 manish.sha 2829
  def send_getInventoryAgeConsideredItems(self, itemId):
2830
    self._oprot.writeMessageBegin('getInventoryAgeConsideredItems', TMessageType.CALL, self._seqid)
2831
    args = getInventoryAgeConsideredItems_args()
2832
    args.itemId = itemId
2833
    args.write(self._oprot)
2834
    self._oprot.writeMessageEnd()
2835
    self._oprot.trans.flush()
2836
 
2837
  def recv_getInventoryAgeConsideredItems(self, ):
2838
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2839
    if mtype == TMessageType.EXCEPTION:
2840
      x = TApplicationException()
2841
      x.read(self._iprot)
2842
      self._iprot.readMessageEnd()
2843
      raise x
2844
    result = getInventoryAgeConsideredItems_result()
2845
    result.read(self._iprot)
2846
    self._iprot.readMessageEnd()
2847
    if result.success is not None:
2848
      return result.success
2849
    if result.ex is not None:
2850
      raise result.ex
2851
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryAgeConsideredItems failed: unknown result");
2852
 
13529 manish.sha 2853
  def getCompleteMovementForThirdPartyWarehouse(self, startDate, endDate):
2854
    """
2855
    Parameters:
2856
     - startDate
2857
     - endDate
2858
    """
2859
    self.send_getCompleteMovementForThirdPartyWarehouse(startDate, endDate)
2860
    return self.recv_getCompleteMovementForThirdPartyWarehouse()
12800 manish.sha 2861
 
13529 manish.sha 2862
  def send_getCompleteMovementForThirdPartyWarehouse(self, startDate, endDate):
2863
    self._oprot.writeMessageBegin('getCompleteMovementForThirdPartyWarehouse', TMessageType.CALL, self._seqid)
2864
    args = getCompleteMovementForThirdPartyWarehouse_args()
2865
    args.startDate = startDate
2866
    args.endDate = endDate
2867
    args.write(self._oprot)
2868
    self._oprot.writeMessageEnd()
2869
    self._oprot.trans.flush()
2870
 
2871
  def recv_getCompleteMovementForThirdPartyWarehouse(self, ):
2872
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2873
    if mtype == TMessageType.EXCEPTION:
2874
      x = TApplicationException()
2875
      x.read(self._iprot)
2876
      self._iprot.readMessageEnd()
2877
      raise x
2878
    result = getCompleteMovementForThirdPartyWarehouse_result()
2879
    result.read(self._iprot)
2880
    self._iprot.readMessageEnd()
2881
    if result.success is not None:
2882
      return result.success
2883
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementForThirdPartyWarehouse failed: unknown result");
2884
 
14491 manish.sha 2885
  def getAllDoaOutInventoryItems(self, ):
2886
    self.send_getAllDoaOutInventoryItems()
2887
    return self.recv_getAllDoaOutInventoryItems()
13529 manish.sha 2888
 
14491 manish.sha 2889
  def send_getAllDoaOutInventoryItems(self, ):
2890
    self._oprot.writeMessageBegin('getAllDoaOutInventoryItems', TMessageType.CALL, self._seqid)
2891
    args = getAllDoaOutInventoryItems_args()
2892
    args.write(self._oprot)
2893
    self._oprot.writeMessageEnd()
2894
    self._oprot.trans.flush()
2895
 
2896
  def recv_getAllDoaOutInventoryItems(self, ):
2897
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2898
    if mtype == TMessageType.EXCEPTION:
2899
      x = TApplicationException()
2900
      x.read(self._iprot)
2901
      self._iprot.readMessageEnd()
2902
      raise x
2903
    result = getAllDoaOutInventoryItems_result()
2904
    result.read(self._iprot)
2905
    self._iprot.readMessageEnd()
2906
    if result.success is not None:
2907
      return result.success
2908
    if result.ex is not None:
2909
      raise result.ex
2910
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllDoaOutInventoryItems failed: unknown result");
2911
 
15045 manish.sha 2912
  def getAllUnCompletedStockShipments(self, source):
2913
    """
2914
    Parameters:
2915
     - source
2916
    """
2917
    self.send_getAllUnCompletedStockShipments(source)
2918
    return self.recv_getAllUnCompletedStockShipments()
14491 manish.sha 2919
 
15045 manish.sha 2920
  def send_getAllUnCompletedStockShipments(self, source):
2921
    self._oprot.writeMessageBegin('getAllUnCompletedStockShipments', TMessageType.CALL, self._seqid)
2922
    args = getAllUnCompletedStockShipments_args()
2923
    args.source = source
2924
    args.write(self._oprot)
2925
    self._oprot.writeMessageEnd()
2926
    self._oprot.trans.flush()
2927
 
2928
  def recv_getAllUnCompletedStockShipments(self, ):
2929
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2930
    if mtype == TMessageType.EXCEPTION:
2931
      x = TApplicationException()
2932
      x.read(self._iprot)
2933
      self._iprot.readMessageEnd()
2934
      raise x
2935
    result = getAllUnCompletedStockShipments_result()
2936
    result.read(self._iprot)
2937
    self._iprot.readMessageEnd()
2938
    if result.success is not None:
2939
      return result.success
2940
    if result.ex is not None:
2941
      raise result.ex
2942
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUnCompletedStockShipments failed: unknown result");
2943
 
2944
  def getRemovalStockShipmentReferenceById(self, id):
2945
    """
2946
    Parameters:
2947
     - id
2948
    """
2949
    self.send_getRemovalStockShipmentReferenceById(id)
2950
    return self.recv_getRemovalStockShipmentReferenceById()
2951
 
2952
  def send_getRemovalStockShipmentReferenceById(self, id):
2953
    self._oprot.writeMessageBegin('getRemovalStockShipmentReferenceById', TMessageType.CALL, self._seqid)
2954
    args = getRemovalStockShipmentReferenceById_args()
2955
    args.id = id
2956
    args.write(self._oprot)
2957
    self._oprot.writeMessageEnd()
2958
    self._oprot.trans.flush()
2959
 
2960
  def recv_getRemovalStockShipmentReferenceById(self, ):
2961
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2962
    if mtype == TMessageType.EXCEPTION:
2963
      x = TApplicationException()
2964
      x.read(self._iprot)
2965
      self._iprot.readMessageEnd()
2966
      raise x
2967
    result = getRemovalStockShipmentReferenceById_result()
2968
    result.read(self._iprot)
2969
    self._iprot.readMessageEnd()
2970
    if result.success is not None:
2971
      return result.success
2972
    if result.ex is not None:
2973
      raise result.ex
2974
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRemovalStockShipmentReferenceById failed: unknown result");
2975
 
2976
  def createRemovalStockShipmentReference(self, removalStockShipmentReference):
2977
    """
2978
    Parameters:
2979
     - removalStockShipmentReference
2980
    """
2981
    self.send_createRemovalStockShipmentReference(removalStockShipmentReference)
2982
    return self.recv_createRemovalStockShipmentReference()
2983
 
2984
  def send_createRemovalStockShipmentReference(self, removalStockShipmentReference):
2985
    self._oprot.writeMessageBegin('createRemovalStockShipmentReference', TMessageType.CALL, self._seqid)
2986
    args = createRemovalStockShipmentReference_args()
2987
    args.removalStockShipmentReference = removalStockShipmentReference
2988
    args.write(self._oprot)
2989
    self._oprot.writeMessageEnd()
2990
    self._oprot.trans.flush()
2991
 
2992
  def recv_createRemovalStockShipmentReference(self, ):
2993
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2994
    if mtype == TMessageType.EXCEPTION:
2995
      x = TApplicationException()
2996
      x.read(self._iprot)
2997
      self._iprot.readMessageEnd()
2998
      raise x
2999
    result = createRemovalStockShipmentReference_result()
3000
    result.read(self._iprot)
3001
    self._iprot.readMessageEnd()
3002
    if result.success is not None:
3003
      return result.success
3004
    if result.ex is not None:
3005
      raise result.ex
3006
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createRemovalStockShipmentReference failed: unknown result");
3007
 
3008
  def updateShipmentReferenceTransferLot(self, transferLotId, shipmentReferenceId):
3009
    """
3010
    Parameters:
3011
     - transferLotId
3012
     - shipmentReferenceId
3013
    """
3014
    self.send_updateShipmentReferenceTransferLot(transferLotId, shipmentReferenceId)
3015
    self.recv_updateShipmentReferenceTransferLot()
3016
 
3017
  def send_updateShipmentReferenceTransferLot(self, transferLotId, shipmentReferenceId):
3018
    self._oprot.writeMessageBegin('updateShipmentReferenceTransferLot', TMessageType.CALL, self._seqid)
3019
    args = updateShipmentReferenceTransferLot_args()
3020
    args.transferLotId = transferLotId
3021
    args.shipmentReferenceId = shipmentReferenceId
3022
    args.write(self._oprot)
3023
    self._oprot.writeMessageEnd()
3024
    self._oprot.trans.flush()
3025
 
3026
  def recv_updateShipmentReferenceTransferLot(self, ):
3027
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3028
    if mtype == TMessageType.EXCEPTION:
3029
      x = TApplicationException()
3030
      x.read(self._iprot)
3031
      self._iprot.readMessageEnd()
3032
      raise x
3033
    result = updateShipmentReferenceTransferLot_result()
3034
    result.read(self._iprot)
3035
    self._iprot.readMessageEnd()
3036
    if result.ex is not None:
3037
      raise result.ex
3038
    return
3039
 
16264 manish.sha 3040
  def fetchScansPerTransferInvoiceNumber(self, date):
3041
    """
3042
    Returns the shipment references and the count of scans against on a given day.
15045 manish.sha 3043
 
16264 manish.sha 3044
    Parameters:
3045
     - date
3046
    """
3047
    self.send_fetchScansPerTransferInvoiceNumber(date)
3048
    return self.recv_fetchScansPerTransferInvoiceNumber()
3049
 
3050
  def send_fetchScansPerTransferInvoiceNumber(self, date):
3051
    self._oprot.writeMessageBegin('fetchScansPerTransferInvoiceNumber', TMessageType.CALL, self._seqid)
3052
    args = fetchScansPerTransferInvoiceNumber_args()
3053
    args.date = date
3054
    args.write(self._oprot)
3055
    self._oprot.writeMessageEnd()
3056
    self._oprot.trans.flush()
3057
 
3058
  def recv_fetchScansPerTransferInvoiceNumber(self, ):
3059
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3060
    if mtype == TMessageType.EXCEPTION:
3061
      x = TApplicationException()
3062
      x.read(self._iprot)
3063
      self._iprot.readMessageEnd()
3064
      raise x
3065
    result = fetchScansPerTransferInvoiceNumber_result()
3066
    result.read(self._iprot)
3067
    self._iprot.readMessageEnd()
3068
    if result.success is not None:
3069
      return result.success
3070
    raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchScansPerTransferInvoiceNumber failed: unknown result");
3071
 
3072
 
3376 rajveer 3073
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2821 chandransh 3074
  def __init__(self, handler):
3376 rajveer 3075
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
4501 mandeep.dh 3076
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
5361 mandeep.dh 3077
    self._processMap["getNonSeralizedInventoryItem"] = Processor.process_getNonSeralizedInventoryItem
4501 mandeep.dh 3078
    self._processMap["scan"] = Processor.process_scan
10489 amar.kumar 3079
    self._processMap["genericScan"] = Processor.process_genericScan
4501 mandeep.dh 3080
    self._processMap["scanSerializedItemForOrder"] = Processor.process_scanSerializedItemForOrder
3081
    self._processMap["scanForOrder"] = Processor.process_scanForOrder
3082
    self._processMap["createItemNumberMapping"] = Processor.process_createItemNumberMapping
4620 amit.gupta 3083
    self._processMap["getItemNumbers"] = Processor.process_getItemNumbers
5110 mandeep.dh 3084
    self._processMap["getItemIds"] = Processor.process_getItemIds
5185 mandeep.dh 3085
    self._processMap["getInventoryItemsFromLastScanType"] = Processor.process_getInventoryItemsFromLastScanType
3086
    self._processMap["getInventoryItemFromId"] = Processor.process_getInventoryItemFromId
5372 mandeep.dh 3087
    self._processMap["getPurchaseScans"] = Processor.process_getPurchaseScans
7216 amar.kumar 3088
    self._processMap["getPurchaseScansByGrnDate"] = Processor.process_getPurchaseScansByGrnDate
10407 amar.kumar 3089
    self._processMap["getEmptyGrnsByDate"] = Processor.process_getEmptyGrnsByDate
5496 mandeep.dh 3090
    self._processMap["fetchScansPerInvoiceNumber"] = Processor.process_fetchScansPerInvoiceNumber
5620 mandeep.dh 3091
    self._processMap["getInventoryItemFromOrder"] = Processor.process_getInventoryItemFromOrder
5711 mandeep.dh 3092
    self._processMap["getInventoryAge"] = Processor.process_getInventoryAge
6361 rajveer 3093
    self._processMap["getInventoryScansForItem"] = Processor.process_getInventoryScansForItem
3094
    self._processMap["getScanRecordsForSerialNumber"] = Processor.process_getScanRecordsForSerialNumber
6467 amar.kumar 3095
    self._processMap["scanForPurchaseReturn"] = Processor.process_scanForPurchaseReturn
6630 amar.kumar 3096
    self._processMap["scanForLostItem"] = Processor.process_scanForLostItem
3097
    self._processMap["getCurrentSerializedInventoryByScans"] = Processor.process_getCurrentSerializedInventoryByScans
3098
    self._processMap["getCurrentNonSerializedInventoryByScans"] = Processor.process_getCurrentNonSerializedInventoryByScans
6762 amar.kumar 3099
    self._processMap["getHistoricSerializedInventoryByScans"] = Processor.process_getHistoricSerializedInventoryByScans
3100
    self._processMap["getHistoricNonSerializedInventoryByScans"] = Processor.process_getHistoricNonSerializedInventoryByScans
10407 amar.kumar 3101
    self._processMap["getOurHistoricSerializedInventoryByScans"] = Processor.process_getOurHistoricSerializedInventoryByScans
3102
    self._processMap["getOurHistoricNonSerializedInventoryByScans"] = Processor.process_getOurHistoricNonSerializedInventoryByScans
6762 amar.kumar 3103
    self._processMap["scanForOursExternalSale"] = Processor.process_scanForOursExternalSale
3104
    self._processMap["scanForOursExternalSaleReturn"] = Processor.process_scanForOursExternalSaleReturn
6880 amar.kumar 3105
    self._processMap["getMovementNonSerializedInventoryByScans"] = Processor.process_getMovementNonSerializedInventoryByScans
3106
    self._processMap["getMovementSerializedInventoryByScans"] = Processor.process_getMovementSerializedInventoryByScans
7216 amar.kumar 3107
    self._processMap["getCompleteMovementSerializedInventoryByScans"] = Processor.process_getCompleteMovementSerializedInventoryByScans
3108
    self._processMap["getCompleteMovementNonSerializedInventoryByScans"] = Processor.process_getCompleteMovementNonSerializedInventoryByScans
7190 amar.kumar 3109
    self._processMap["scanfreebie"] = Processor.process_scanfreebie
7199 amar.kumar 3110
    self._processMap["reshipfreebie"] = Processor.process_reshipfreebie
7410 amar.kumar 3111
    self._processMap["isItemTransferAllowed"] = Processor.process_isItemTransferAllowed
3112
    self._processMap["createTransferLot"] = Processor.process_createTransferLot
3113
    self._processMap["getTransferLot"] = Processor.process_getTransferLot
3114
    self._processMap["markTransferLotAsReceived"] = Processor.process_markTransferLotAsReceived
3115
    self._processMap["getTransferLotsByDate"] = Processor.process_getTransferLotsByDate
3116
    self._processMap["getAllowedDestinationWarehousesForTransfer"] = Processor.process_getAllowedDestinationWarehousesForTransfer
3117
    self._processMap["getItemsInTransferLot"] = Processor.process_getItemsInTransferLot
3118
    self._processMap["markItemsAsReceivedForTransferLot"] = Processor.process_markItemsAsReceivedForTransferLot
3119
    self._processMap["updateTransferLotAfterItemReceive"] = Processor.process_updateTransferLotAfterItemReceive
7459 amar.kumar 3120
    self._processMap["scanForTransferOut"] = Processor.process_scanForTransferOut
3121
    self._processMap["scanForTransferIn"] = Processor.process_scanForTransferIn
3122
    self._processMap["scanForOursThirdPartyReceive"] = Processor.process_scanForOursThirdPartyReceive
7574 amar.kumar 3123
    self._processMap["getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse"] = Processor.process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse
7672 rajveer 3124
    self._processMap["getInTransitInventory"] = Processor.process_getInTransitInventory
7968 amar.kumar 3125
    self._processMap["isItemAvailableForSale"] = Processor.process_isItemAvailableForSale
3126
    self._processMap["getHistoricBadInventoryByScans"] = Processor.process_getHistoricBadInventoryByScans
8565 amar.kumar 3127
    self._processMap["scanForBadSale"] = Processor.process_scanForBadSale
10120 manish.sha 3128
    self._processMap["getTransferLotItemsForMarkReceive"] = Processor.process_getTransferLotItemsForMarkReceive
3129
    self._processMap["markItemsAsReceivedForTransferLotPartial"] = Processor.process_markItemsAsReceivedForTransferLotPartial
3130
    self._processMap["markTransferLotAsReceivedPartial"] = Processor.process_markTransferLotAsReceivedPartial
10690 manish.sha 3131
    self._processMap["getInventoryItemScannedInForPO"] = Processor.process_getInventoryItemScannedInForPO
3132
    self._processMap["getAmazonTransferredSkuDetails"] = Processor.process_getAmazonTransferredSkuDetails
3133
    self._processMap["getScansforPurchase"] = Processor.process_getScansforPurchase
10864 manish.sha 3134
    self._processMap["getCurrentBadQuantityForItem"] = Processor.process_getCurrentBadQuantityForItem
3135
    self._processMap["scanForBadPurchaseReturn"] = Processor.process_scanForBadPurchaseReturn
3136
    self._processMap["getItemsInPurchaseReturn"] = Processor.process_getItemsInPurchaseReturn
10886 manish.sha 3137
    self._processMap["getScansForInventoryItem"] = Processor.process_getScansForInventoryItem
12531 manish.sha 3138
    self._processMap["checkGrnImeiStatus"] = Processor.process_checkGrnImeiStatus
12800 manish.sha 3139
    self._processMap["getInventoryAgeConsideredItems"] = Processor.process_getInventoryAgeConsideredItems
13529 manish.sha 3140
    self._processMap["getCompleteMovementForThirdPartyWarehouse"] = Processor.process_getCompleteMovementForThirdPartyWarehouse
14491 manish.sha 3141
    self._processMap["getAllDoaOutInventoryItems"] = Processor.process_getAllDoaOutInventoryItems
15045 manish.sha 3142
    self._processMap["getAllUnCompletedStockShipments"] = Processor.process_getAllUnCompletedStockShipments
3143
    self._processMap["getRemovalStockShipmentReferenceById"] = Processor.process_getRemovalStockShipmentReferenceById
3144
    self._processMap["createRemovalStockShipmentReference"] = Processor.process_createRemovalStockShipmentReference
3145
    self._processMap["updateShipmentReferenceTransferLot"] = Processor.process_updateShipmentReferenceTransferLot
16264 manish.sha 3146
    self._processMap["fetchScansPerTransferInvoiceNumber"] = Processor.process_fetchScansPerTransferInvoiceNumber
2821 chandransh 3147
 
3148
  def process(self, iprot, oprot):
3149
    (name, type, seqid) = iprot.readMessageBegin()
3150
    if name not in self._processMap:
3151
      iprot.skip(TType.STRUCT)
3152
      iprot.readMessageEnd()
3153
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3154
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3155
      x.write(oprot)
3156
      oprot.writeMessageEnd()
3157
      oprot.trans.flush()
3158
      return
3159
    else:
3160
      self._processMap[name](self, seqid, iprot, oprot)
3161
    return True
3162
 
4501 mandeep.dh 3163
  def process_getInventoryItem(self, seqid, iprot, oprot):
3164
    args = getInventoryItem_args()
2832 chandransh 3165
    args.read(iprot)
3166
    iprot.readMessageEnd()
4501 mandeep.dh 3167
    result = getInventoryItem_result()
4541 mandeep.dh 3168
    try:
3169
      result.success = self._handler.getInventoryItem(args.serialNumber)
3170
    except WarehouseServiceException, wex:
3171
      result.wex = wex
4501 mandeep.dh 3172
    oprot.writeMessageBegin("getInventoryItem", TMessageType.REPLY, seqid)
2832 chandransh 3173
    result.write(oprot)
3174
    oprot.writeMessageEnd()
3175
    oprot.trans.flush()
3176
 
5361 mandeep.dh 3177
  def process_getNonSeralizedInventoryItem(self, seqid, iprot, oprot):
3178
    args = getNonSeralizedInventoryItem_args()
2821 chandransh 3179
    args.read(iprot)
3180
    iprot.readMessageEnd()
5361 mandeep.dh 3181
    result = getNonSeralizedInventoryItem_result()
3182
    try:
8565 amar.kumar 3183
      result.success = self._handler.getNonSeralizedInventoryItem(args.itemNumber, args.itemId, args.fulfilmentWarehouseId, args.billingWarehouseId)
5361 mandeep.dh 3184
    except WarehouseServiceException, wex:
3185
      result.wex = wex
3186
    oprot.writeMessageBegin("getNonSeralizedInventoryItem", TMessageType.REPLY, seqid)
2821 chandransh 3187
    result.write(oprot)
3188
    oprot.writeMessageEnd()
3189
    oprot.trans.flush()
3190
 
4501 mandeep.dh 3191
  def process_scan(self, seqid, iprot, oprot):
3192
    args = scan_args()
3383 chandransh 3193
    args.read(iprot)
3194
    iprot.readMessageEnd()
4501 mandeep.dh 3195
    result = scan_result()
3383 chandransh 3196
    try:
7410 amar.kumar 3197
      self._handler.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId, args.transferLotId)
3383 chandransh 3198
    except WarehouseServiceException, wex:
3199
      result.wex = wex
4501 mandeep.dh 3200
    oprot.writeMessageBegin("scan", TMessageType.REPLY, seqid)
3383 chandransh 3201
    result.write(oprot)
3202
    oprot.writeMessageEnd()
3203
    oprot.trans.flush()
3204
 
10489 amar.kumar 3205
  def process_genericScan(self, seqid, iprot, oprot):
3206
    args = genericScan_args()
3207
    args.read(iprot)
3208
    iprot.readMessageEnd()
3209
    result = genericScan_result()
3210
    try:
3211
      self._handler.genericScan(args.inventoryItem, args.scan)
3212
    except WarehouseServiceException, wex:
3213
      result.wex = wex
3214
    oprot.writeMessageBegin("genericScan", TMessageType.REPLY, seqid)
3215
    result.write(oprot)
3216
    oprot.writeMessageEnd()
3217
    oprot.trans.flush()
3218
 
4501 mandeep.dh 3219
  def process_scanSerializedItemForOrder(self, seqid, iprot, oprot):
3220
    args = scanSerializedItemForOrder_args()
2821 chandransh 3221
    args.read(iprot)
3222
    iprot.readMessageEnd()
4501 mandeep.dh 3223
    result = scanSerializedItemForOrder_result()
2821 chandransh 3224
    try:
5110 mandeep.dh 3225
      result.success = self._handler.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId)
2821 chandransh 3226
    except WarehouseServiceException, wex:
3227
      result.wex = wex
4501 mandeep.dh 3228
    oprot.writeMessageBegin("scanSerializedItemForOrder", TMessageType.REPLY, seqid)
2821 chandransh 3229
    result.write(oprot)
3230
    oprot.writeMessageEnd()
3231
    oprot.trans.flush()
3232
 
4501 mandeep.dh 3233
  def process_scanForOrder(self, seqid, iprot, oprot):
3234
    args = scanForOrder_args()
2821 chandransh 3235
    args.read(iprot)
3236
    iprot.readMessageEnd()
4501 mandeep.dh 3237
    result = scanForOrder_result()
2821 chandransh 3238
    try:
5361 mandeep.dh 3239
      result.success = self._handler.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId)
2821 chandransh 3240
    except WarehouseServiceException, wex:
3241
      result.wex = wex
4501 mandeep.dh 3242
    oprot.writeMessageBegin("scanForOrder", TMessageType.REPLY, seqid)
2821 chandransh 3243
    result.write(oprot)
3244
    oprot.writeMessageEnd()
3245
    oprot.trans.flush()
3246
 
4501 mandeep.dh 3247
  def process_createItemNumberMapping(self, seqid, iprot, oprot):
3248
    args = createItemNumberMapping_args()
3249
    args.read(iprot)
3250
    iprot.readMessageEnd()
3251
    result = createItemNumberMapping_result()
3252
    self._handler.createItemNumberMapping(args.itemNumber, args.itemId)
3253
    oprot.writeMessageBegin("createItemNumberMapping", TMessageType.REPLY, seqid)
3254
    result.write(oprot)
3255
    oprot.writeMessageEnd()
3256
    oprot.trans.flush()
2821 chandransh 3257
 
4620 amit.gupta 3258
  def process_getItemNumbers(self, seqid, iprot, oprot):
3259
    args = getItemNumbers_args()
3260
    args.read(iprot)
3261
    iprot.readMessageEnd()
3262
    result = getItemNumbers_result()
3263
    result.success = self._handler.getItemNumbers(args.itemId)
3264
    oprot.writeMessageBegin("getItemNumbers", TMessageType.REPLY, seqid)
3265
    result.write(oprot)
3266
    oprot.writeMessageEnd()
3267
    oprot.trans.flush()
4501 mandeep.dh 3268
 
5110 mandeep.dh 3269
  def process_getItemIds(self, seqid, iprot, oprot):
3270
    args = getItemIds_args()
3271
    args.read(iprot)
3272
    iprot.readMessageEnd()
3273
    result = getItemIds_result()
3274
    result.success = self._handler.getItemIds(args.itemNumber)
3275
    oprot.writeMessageBegin("getItemIds", TMessageType.REPLY, seqid)
3276
    result.write(oprot)
3277
    oprot.writeMessageEnd()
3278
    oprot.trans.flush()
4620 amit.gupta 3279
 
5185 mandeep.dh 3280
  def process_getInventoryItemsFromLastScanType(self, seqid, iprot, oprot):
3281
    args = getInventoryItemsFromLastScanType_args()
3282
    args.read(iprot)
3283
    iprot.readMessageEnd()
3284
    result = getInventoryItemsFromLastScanType_result()
3285
    try:
3286
      result.success = self._handler.getInventoryItemsFromLastScanType(args.lastScanType)
3287
    except WarehouseServiceException, wex:
3288
      result.wex = wex
3289
    oprot.writeMessageBegin("getInventoryItemsFromLastScanType", TMessageType.REPLY, seqid)
3290
    result.write(oprot)
3291
    oprot.writeMessageEnd()
3292
    oprot.trans.flush()
5110 mandeep.dh 3293
 
5185 mandeep.dh 3294
  def process_getInventoryItemFromId(self, seqid, iprot, oprot):
3295
    args = getInventoryItemFromId_args()
3296
    args.read(iprot)
3297
    iprot.readMessageEnd()
3298
    result = getInventoryItemFromId_result()
3299
    try:
3300
      result.success = self._handler.getInventoryItemFromId(args.inventoryItemId)
3301
    except WarehouseServiceException, wex:
3302
      result.wex = wex
3303
    oprot.writeMessageBegin("getInventoryItemFromId", TMessageType.REPLY, seqid)
3304
    result.write(oprot)
3305
    oprot.writeMessageEnd()
3306
    oprot.trans.flush()
3307
 
5372 mandeep.dh 3308
  def process_getPurchaseScans(self, seqid, iprot, oprot):
3309
    args = getPurchaseScans_args()
3310
    args.read(iprot)
3311
    iprot.readMessageEnd()
3312
    result = getPurchaseScans_result()
3313
    result.success = self._handler.getPurchaseScans(args.startDate, args.endDate)
3314
    oprot.writeMessageBegin("getPurchaseScans", TMessageType.REPLY, seqid)
3315
    result.write(oprot)
3316
    oprot.writeMessageEnd()
3317
    oprot.trans.flush()
5185 mandeep.dh 3318
 
7216 amar.kumar 3319
  def process_getPurchaseScansByGrnDate(self, seqid, iprot, oprot):
3320
    args = getPurchaseScansByGrnDate_args()
3321
    args.read(iprot)
3322
    iprot.readMessageEnd()
3323
    result = getPurchaseScansByGrnDate_result()
3324
    result.success = self._handler.getPurchaseScansByGrnDate(args.startDate, args.endDate)
3325
    oprot.writeMessageBegin("getPurchaseScansByGrnDate", TMessageType.REPLY, seqid)
3326
    result.write(oprot)
3327
    oprot.writeMessageEnd()
3328
    oprot.trans.flush()
3329
 
10407 amar.kumar 3330
  def process_getEmptyGrnsByDate(self, seqid, iprot, oprot):
3331
    args = getEmptyGrnsByDate_args()
3332
    args.read(iprot)
3333
    iprot.readMessageEnd()
3334
    result = getEmptyGrnsByDate_result()
3335
    result.success = self._handler.getEmptyGrnsByDate(args.startDate, args.endDate)
3336
    oprot.writeMessageBegin("getEmptyGrnsByDate", TMessageType.REPLY, seqid)
3337
    result.write(oprot)
3338
    oprot.writeMessageEnd()
3339
    oprot.trans.flush()
3340
 
5496 mandeep.dh 3341
  def process_fetchScansPerInvoiceNumber(self, seqid, iprot, oprot):
3342
    args = fetchScansPerInvoiceNumber_args()
3343
    args.read(iprot)
3344
    iprot.readMessageEnd()
3345
    result = fetchScansPerInvoiceNumber_result()
3346
    result.success = self._handler.fetchScansPerInvoiceNumber(args.date)
3347
    oprot.writeMessageBegin("fetchScansPerInvoiceNumber", TMessageType.REPLY, seqid)
3348
    result.write(oprot)
3349
    oprot.writeMessageEnd()
3350
    oprot.trans.flush()
5372 mandeep.dh 3351
 
5620 mandeep.dh 3352
  def process_getInventoryItemFromOrder(self, seqid, iprot, oprot):
3353
    args = getInventoryItemFromOrder_args()
3354
    args.read(iprot)
3355
    iprot.readMessageEnd()
3356
    result = getInventoryItemFromOrder_result()
3357
    try:
3358
      result.success = self._handler.getInventoryItemFromOrder(args.orderId)
3359
    except WarehouseServiceException, we:
3360
      result.we = we
3361
    oprot.writeMessageBegin("getInventoryItemFromOrder", TMessageType.REPLY, seqid)
3362
    result.write(oprot)
3363
    oprot.writeMessageEnd()
3364
    oprot.trans.flush()
5496 mandeep.dh 3365
 
5711 mandeep.dh 3366
  def process_getInventoryAge(self, seqid, iprot, oprot):
3367
    args = getInventoryAge_args()
3368
    args.read(iprot)
3369
    iprot.readMessageEnd()
3370
    result = getInventoryAge_result()
3371
    result.success = self._handler.getInventoryAge()
3372
    oprot.writeMessageBegin("getInventoryAge", TMessageType.REPLY, seqid)
3373
    result.write(oprot)
3374
    oprot.writeMessageEnd()
3375
    oprot.trans.flush()
5620 mandeep.dh 3376
 
6361 rajveer 3377
  def process_getInventoryScansForItem(self, seqid, iprot, oprot):
3378
    args = getInventoryScansForItem_args()
3379
    args.read(iprot)
3380
    iprot.readMessageEnd()
3381
    result = getInventoryScansForItem_result()
3382
    result.success = self._handler.getInventoryScansForItem(args.itemId, args.fromDate, args.toDate)
3383
    oprot.writeMessageBegin("getInventoryScansForItem", TMessageType.REPLY, seqid)
3384
    result.write(oprot)
3385
    oprot.writeMessageEnd()
3386
    oprot.trans.flush()
5711 mandeep.dh 3387
 
6361 rajveer 3388
  def process_getScanRecordsForSerialNumber(self, seqid, iprot, oprot):
3389
    args = getScanRecordsForSerialNumber_args()
3390
    args.read(iprot)
3391
    iprot.readMessageEnd()
3392
    result = getScanRecordsForSerialNumber_result()
3393
    result.success = self._handler.getScanRecordsForSerialNumber(args.serialNumber)
3394
    oprot.writeMessageBegin("getScanRecordsForSerialNumber", TMessageType.REPLY, seqid)
3395
    result.write(oprot)
3396
    oprot.writeMessageEnd()
3397
    oprot.trans.flush()
3398
 
6467 amar.kumar 3399
  def process_scanForPurchaseReturn(self, seqid, iprot, oprot):
3400
    args = scanForPurchaseReturn_args()
3401
    args.read(iprot)
3402
    iprot.readMessageEnd()
3403
    result = scanForPurchaseReturn_result()
3404
    try:
10864 manish.sha 3405
      result.success = self._handler.scanForPurchaseReturn(args.saleReturnItems, args.vendorId, args.billingWarehouseId)
6467 amar.kumar 3406
    except WarehouseServiceException, ex:
3407
      result.ex = ex
3408
    oprot.writeMessageBegin("scanForPurchaseReturn", TMessageType.REPLY, seqid)
3409
    result.write(oprot)
3410
    oprot.writeMessageEnd()
3411
    oprot.trans.flush()
6361 rajveer 3412
 
6630 amar.kumar 3413
  def process_scanForLostItem(self, seqid, iprot, oprot):
3414
    args = scanForLostItem_args()
3415
    args.read(iprot)
3416
    iprot.readMessageEnd()
3417
    result = scanForLostItem_result()
3418
    try:
7718 amar.kumar 3419
      self._handler.scanForLostItem(args.lostItems, args.vendorId, args.billingWarehouseId)
6630 amar.kumar 3420
    except WarehouseServiceException, ex:
3421
      result.ex = ex
3422
    oprot.writeMessageBegin("scanForLostItem", TMessageType.REPLY, seqid)
3423
    result.write(oprot)
3424
    oprot.writeMessageEnd()
3425
    oprot.trans.flush()
6467 amar.kumar 3426
 
6630 amar.kumar 3427
  def process_getCurrentSerializedInventoryByScans(self, seqid, iprot, oprot):
3428
    args = getCurrentSerializedInventoryByScans_args()
3429
    args.read(iprot)
3430
    iprot.readMessageEnd()
3431
    result = getCurrentSerializedInventoryByScans_result()
7715 vikram.rag 3432
    result.success = self._handler.getCurrentSerializedInventoryByScans(args.physicalWarehouseId)
6630 amar.kumar 3433
    oprot.writeMessageBegin("getCurrentSerializedInventoryByScans", TMessageType.REPLY, seqid)
3434
    result.write(oprot)
3435
    oprot.writeMessageEnd()
3436
    oprot.trans.flush()
3437
 
3438
  def process_getCurrentNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3439
    args = getCurrentNonSerializedInventoryByScans_args()
3440
    args.read(iprot)
3441
    iprot.readMessageEnd()
3442
    result = getCurrentNonSerializedInventoryByScans_result()
7715 vikram.rag 3443
    result.success = self._handler.getCurrentNonSerializedInventoryByScans(args.physicalWarehouseId)
6630 amar.kumar 3444
    oprot.writeMessageBegin("getCurrentNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3445
    result.write(oprot)
3446
    oprot.writeMessageEnd()
3447
    oprot.trans.flush()
3448
 
6762 amar.kumar 3449
  def process_getHistoricSerializedInventoryByScans(self, seqid, iprot, oprot):
3450
    args = getHistoricSerializedInventoryByScans_args()
3451
    args.read(iprot)
3452
    iprot.readMessageEnd()
3453
    result = getHistoricSerializedInventoryByScans_result()
3454
    result.success = self._handler.getHistoricSerializedInventoryByScans(args.date)
3455
    oprot.writeMessageBegin("getHistoricSerializedInventoryByScans", TMessageType.REPLY, seqid)
3456
    result.write(oprot)
3457
    oprot.writeMessageEnd()
3458
    oprot.trans.flush()
6630 amar.kumar 3459
 
6762 amar.kumar 3460
  def process_getHistoricNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3461
    args = getHistoricNonSerializedInventoryByScans_args()
3462
    args.read(iprot)
3463
    iprot.readMessageEnd()
3464
    result = getHistoricNonSerializedInventoryByScans_result()
3465
    result.success = self._handler.getHistoricNonSerializedInventoryByScans(args.date)
3466
    oprot.writeMessageBegin("getHistoricNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3467
    result.write(oprot)
3468
    oprot.writeMessageEnd()
3469
    oprot.trans.flush()
3470
 
10407 amar.kumar 3471
  def process_getOurHistoricSerializedInventoryByScans(self, seqid, iprot, oprot):
3472
    args = getOurHistoricSerializedInventoryByScans_args()
3473
    args.read(iprot)
3474
    iprot.readMessageEnd()
3475
    result = getOurHistoricSerializedInventoryByScans_result()
3476
    result.success = self._handler.getOurHistoricSerializedInventoryByScans(args.date)
3477
    oprot.writeMessageBegin("getOurHistoricSerializedInventoryByScans", TMessageType.REPLY, seqid)
3478
    result.write(oprot)
3479
    oprot.writeMessageEnd()
3480
    oprot.trans.flush()
3481
 
3482
  def process_getOurHistoricNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3483
    args = getOurHistoricNonSerializedInventoryByScans_args()
3484
    args.read(iprot)
3485
    iprot.readMessageEnd()
3486
    result = getOurHistoricNonSerializedInventoryByScans_result()
3487
    result.success = self._handler.getOurHistoricNonSerializedInventoryByScans(args.date)
3488
    oprot.writeMessageBegin("getOurHistoricNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3489
    result.write(oprot)
3490
    oprot.writeMessageEnd()
3491
    oprot.trans.flush()
3492
 
6762 amar.kumar 3493
  def process_scanForOursExternalSale(self, seqid, iprot, oprot):
3494
    args = scanForOursExternalSale_args()
3495
    args.read(iprot)
3496
    iprot.readMessageEnd()
3497
    result = scanForOursExternalSale_result()
3498
    try:
7672 rajveer 3499
      result.success = self._handler.scanForOursExternalSale(args.itemId, args.serialNumber, args.itemNumber, args.invoiceNumber, args.warehouseId, args.unitPrice, args.nlc, args.orderId)
6762 amar.kumar 3500
    except WarehouseServiceException, ex:
3501
      result.ex = ex
3502
    oprot.writeMessageBegin("scanForOursExternalSale", TMessageType.REPLY, seqid)
3503
    result.write(oprot)
3504
    oprot.writeMessageEnd()
3505
    oprot.trans.flush()
3506
 
3507
  def process_scanForOursExternalSaleReturn(self, seqid, iprot, oprot):
3508
    args = scanForOursExternalSaleReturn_args()
3509
    args.read(iprot)
3510
    iprot.readMessageEnd()
3511
    result = scanForOursExternalSaleReturn_result()
7410 amar.kumar 3512
    try:
3513
      self._handler.scanForOursExternalSaleReturn(args.orderId, args.unitPrice)
3514
    except WarehouseServiceException, ex:
3515
      result.ex = ex
6762 amar.kumar 3516
    oprot.writeMessageBegin("scanForOursExternalSaleReturn", TMessageType.REPLY, seqid)
3517
    result.write(oprot)
3518
    oprot.writeMessageEnd()
3519
    oprot.trans.flush()
3520
 
6880 amar.kumar 3521
  def process_getMovementNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3522
    args = getMovementNonSerializedInventoryByScans_args()
3523
    args.read(iprot)
3524
    iprot.readMessageEnd()
3525
    result = getMovementNonSerializedInventoryByScans_result()
3526
    result.success = self._handler.getMovementNonSerializedInventoryByScans(args.startDate, args.endDate)
3527
    oprot.writeMessageBegin("getMovementNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3528
    result.write(oprot)
3529
    oprot.writeMessageEnd()
3530
    oprot.trans.flush()
6762 amar.kumar 3531
 
6880 amar.kumar 3532
  def process_getMovementSerializedInventoryByScans(self, seqid, iprot, oprot):
3533
    args = getMovementSerializedInventoryByScans_args()
3534
    args.read(iprot)
3535
    iprot.readMessageEnd()
3536
    result = getMovementSerializedInventoryByScans_result()
3537
    result.success = self._handler.getMovementSerializedInventoryByScans(args.startDate, args.endDate)
3538
    oprot.writeMessageBegin("getMovementSerializedInventoryByScans", TMessageType.REPLY, seqid)
3539
    result.write(oprot)
3540
    oprot.writeMessageEnd()
3541
    oprot.trans.flush()
3542
 
7216 amar.kumar 3543
  def process_getCompleteMovementSerializedInventoryByScans(self, seqid, iprot, oprot):
3544
    args = getCompleteMovementSerializedInventoryByScans_args()
3545
    args.read(iprot)
3546
    iprot.readMessageEnd()
3547
    result = getCompleteMovementSerializedInventoryByScans_result()
3548
    result.success = self._handler.getCompleteMovementSerializedInventoryByScans(args.startDate, args.endDate)
3549
    oprot.writeMessageBegin("getCompleteMovementSerializedInventoryByScans", TMessageType.REPLY, seqid)
3550
    result.write(oprot)
3551
    oprot.writeMessageEnd()
3552
    oprot.trans.flush()
3553
 
3554
  def process_getCompleteMovementNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3555
    args = getCompleteMovementNonSerializedInventoryByScans_args()
3556
    args.read(iprot)
3557
    iprot.readMessageEnd()
3558
    result = getCompleteMovementNonSerializedInventoryByScans_result()
3559
    result.success = self._handler.getCompleteMovementNonSerializedInventoryByScans(args.startDate, args.endDate)
3560
    oprot.writeMessageBegin("getCompleteMovementNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3561
    result.write(oprot)
3562
    oprot.writeMessageEnd()
3563
    oprot.trans.flush()
3564
 
7190 amar.kumar 3565
  def process_scanfreebie(self, seqid, iprot, oprot):
3566
    args = scanfreebie_args()
3567
    args.read(iprot)
3568
    iprot.readMessageEnd()
3569
    result = scanfreebie_result()
3570
    try:
3571
      result.success = self._handler.scanfreebie(args.orderId, args.freebieItemId, args.freebieWarehouseId, args.scanType)
3572
    except WarehouseServiceException, wex:
3573
      result.wex = wex
3574
    oprot.writeMessageBegin("scanfreebie", TMessageType.REPLY, seqid)
3575
    result.write(oprot)
3576
    oprot.writeMessageEnd()
3577
    oprot.trans.flush()
6880 amar.kumar 3578
 
7199 amar.kumar 3579
  def process_reshipfreebie(self, seqid, iprot, oprot):
3580
    args = reshipfreebie_args()
3581
    args.read(iprot)
3582
    iprot.readMessageEnd()
3583
    result = reshipfreebie_result()
3584
    try:
3585
      self._handler.reshipfreebie(args.oldOrderId, args.newOrderId, args.freebieItemId, args.scanType)
3586
    except WarehouseServiceException, wex:
3587
      result.wex = wex
3588
    oprot.writeMessageBegin("reshipfreebie", TMessageType.REPLY, seqid)
3589
    result.write(oprot)
3590
    oprot.writeMessageEnd()
3591
    oprot.trans.flush()
7190 amar.kumar 3592
 
7410 amar.kumar 3593
  def process_isItemTransferAllowed(self, seqid, iprot, oprot):
3594
    args = isItemTransferAllowed_args()
3595
    args.read(iprot)
3596
    iprot.readMessageEnd()
3597
    result = isItemTransferAllowed_result()
3598
    result.success = self._handler.isItemTransferAllowed(args.warehouseId, args.transferWarehouseId)
3599
    oprot.writeMessageBegin("isItemTransferAllowed", TMessageType.REPLY, seqid)
3600
    result.write(oprot)
3601
    oprot.writeMessageEnd()
3602
    oprot.trans.flush()
7199 amar.kumar 3603
 
7410 amar.kumar 3604
  def process_createTransferLot(self, seqid, iprot, oprot):
3605
    args = createTransferLot_args()
3606
    args.read(iprot)
3607
    iprot.readMessageEnd()
3608
    result = createTransferLot_result()
3609
    try:
3610
      result.success = self._handler.createTransferLot(args.originWarehouseId, args.destWarehouseId)
3611
    except WarehouseServiceException, wex:
3612
      result.wex = wex
3613
    oprot.writeMessageBegin("createTransferLot", TMessageType.REPLY, seqid)
3614
    result.write(oprot)
3615
    oprot.writeMessageEnd()
3616
    oprot.trans.flush()
3617
 
3618
  def process_getTransferLot(self, seqid, iprot, oprot):
3619
    args = getTransferLot_args()
3620
    args.read(iprot)
3621
    iprot.readMessageEnd()
3622
    result = getTransferLot_result()
3623
    try:
3624
      result.success = self._handler.getTransferLot(args.transferLotId)
3625
    except WarehouseServiceException, wex:
3626
      result.wex = wex
3627
    oprot.writeMessageBegin("getTransferLot", TMessageType.REPLY, seqid)
3628
    result.write(oprot)
3629
    oprot.writeMessageEnd()
3630
    oprot.trans.flush()
3631
 
3632
  def process_markTransferLotAsReceived(self, seqid, iprot, oprot):
3633
    args = markTransferLotAsReceived_args()
3634
    args.read(iprot)
3635
    iprot.readMessageEnd()
3636
    result = markTransferLotAsReceived_result()
3637
    try:
3638
      self._handler.markTransferLotAsReceived(args.id, args.remoteTransferRefNumber)
3639
    except WarehouseServiceException, wex:
3640
      result.wex = wex
3641
    oprot.writeMessageBegin("markTransferLotAsReceived", TMessageType.REPLY, seqid)
3642
    result.write(oprot)
3643
    oprot.writeMessageEnd()
3644
    oprot.trans.flush()
3645
 
3646
  def process_getTransferLotsByDate(self, seqid, iprot, oprot):
3647
    args = getTransferLotsByDate_args()
3648
    args.read(iprot)
3649
    iprot.readMessageEnd()
3650
    result = getTransferLotsByDate_result()
3651
    try:
3652
      result.success = self._handler.getTransferLotsByDate(args.fromDate, args.toDate)
3653
    except WarehouseServiceException, wex:
3654
      result.wex = wex
3655
    oprot.writeMessageBegin("getTransferLotsByDate", TMessageType.REPLY, seqid)
3656
    result.write(oprot)
3657
    oprot.writeMessageEnd()
3658
    oprot.trans.flush()
3659
 
3660
  def process_getAllowedDestinationWarehousesForTransfer(self, seqid, iprot, oprot):
3661
    args = getAllowedDestinationWarehousesForTransfer_args()
3662
    args.read(iprot)
3663
    iprot.readMessageEnd()
3664
    result = getAllowedDestinationWarehousesForTransfer_result()
3665
    result.success = self._handler.getAllowedDestinationWarehousesForTransfer(args.warehouseId)
3666
    oprot.writeMessageBegin("getAllowedDestinationWarehousesForTransfer", TMessageType.REPLY, seqid)
3667
    result.write(oprot)
3668
    oprot.writeMessageEnd()
3669
    oprot.trans.flush()
3670
 
3671
  def process_getItemsInTransferLot(self, seqid, iprot, oprot):
3672
    args = getItemsInTransferLot_args()
3673
    args.read(iprot)
3674
    iprot.readMessageEnd()
3675
    result = getItemsInTransferLot_result()
3676
    result.success = self._handler.getItemsInTransferLot(args.transferLotId)
3677
    oprot.writeMessageBegin("getItemsInTransferLot", TMessageType.REPLY, seqid)
3678
    result.write(oprot)
3679
    oprot.writeMessageEnd()
3680
    oprot.trans.flush()
3681
 
3682
  def process_markItemsAsReceivedForTransferLot(self, seqid, iprot, oprot):
3683
    args = markItemsAsReceivedForTransferLot_args()
3684
    args.read(iprot)
3685
    iprot.readMessageEnd()
3686
    result = markItemsAsReceivedForTransferLot_result()
3687
    try:
3688
      self._handler.markItemsAsReceivedForTransferLot(args.id)
3689
    except WarehouseServiceException, wex:
3690
      result.wex = wex
3691
    oprot.writeMessageBegin("markItemsAsReceivedForTransferLot", TMessageType.REPLY, seqid)
3692
    result.write(oprot)
3693
    oprot.writeMessageEnd()
3694
    oprot.trans.flush()
3695
 
3696
  def process_updateTransferLotAfterItemReceive(self, seqid, iprot, oprot):
3697
    args = updateTransferLotAfterItemReceive_args()
3698
    args.read(iprot)
3699
    iprot.readMessageEnd()
3700
    result = updateTransferLotAfterItemReceive_result()
3701
    try:
3702
      result.success = self._handler.updateTransferLotAfterItemReceive(args.id)
3703
    except WarehouseServiceException, wex:
3704
      result.wex = wex
3705
    oprot.writeMessageBegin("updateTransferLotAfterItemReceive", TMessageType.REPLY, seqid)
3706
    result.write(oprot)
3707
    oprot.writeMessageEnd()
3708
    oprot.trans.flush()
3709
 
7459 amar.kumar 3710
  def process_scanForTransferOut(self, seqid, iprot, oprot):
3711
    args = scanForTransferOut_args()
7410 amar.kumar 3712
    args.read(iprot)
3713
    iprot.readMessageEnd()
7459 amar.kumar 3714
    result = scanForTransferOut_result()
7410 amar.kumar 3715
    try:
7459 amar.kumar 3716
      self._handler.scanForTransferOut(args.inventoryItems, args.type, args.transferLotId)
7410 amar.kumar 3717
    except WarehouseServiceException, wex:
3718
      result.wex = wex
7459 amar.kumar 3719
    oprot.writeMessageBegin("scanForTransferOut", TMessageType.REPLY, seqid)
7410 amar.kumar 3720
    result.write(oprot)
3721
    oprot.writeMessageEnd()
3722
    oprot.trans.flush()
3723
 
7459 amar.kumar 3724
  def process_scanForTransferIn(self, seqid, iprot, oprot):
3725
    args = scanForTransferIn_args()
3726
    args.read(iprot)
3727
    iprot.readMessageEnd()
3728
    result = scanForTransferIn_result()
3729
    try:
3730
      self._handler.scanForTransferIn(args.inventoryItems, args.type, args.transferLotId)
3731
    except WarehouseServiceException, wex:
3732
      result.wex = wex
3733
    oprot.writeMessageBegin("scanForTransferIn", TMessageType.REPLY, seqid)
3734
    result.write(oprot)
3735
    oprot.writeMessageEnd()
3736
    oprot.trans.flush()
7410 amar.kumar 3737
 
7459 amar.kumar 3738
  def process_scanForOursThirdPartyReceive(self, seqid, iprot, oprot):
3739
    args = scanForOursThirdPartyReceive_args()
3740
    args.read(iprot)
3741
    iprot.readMessageEnd()
3742
    result = scanForOursThirdPartyReceive_result()
3743
    try:
3744
      self._handler.scanForOursThirdPartyReceive(args.inventoryItems, args.id)
3745
    except WarehouseServiceException, wex:
3746
      result.wex = wex
3747
    oprot.writeMessageBegin("scanForOursThirdPartyReceive", TMessageType.REPLY, seqid)
3748
    result.write(oprot)
3749
    oprot.writeMessageEnd()
3750
    oprot.trans.flush()
3751
 
7574 amar.kumar 3752
  def process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, seqid, iprot, oprot):
3753
    args = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args()
3754
    args.read(iprot)
3755
    iprot.readMessageEnd()
3756
    result = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result()
3757
    try:
3758
      result.success = self._handler.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(args.itemId, args.physicalWarehouseId)
3759
    except WarehouseServiceException, wex:
3760
      result.wex = wex
3761
    oprot.writeMessageBegin("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", TMessageType.REPLY, seqid)
3762
    result.write(oprot)
3763
    oprot.writeMessageEnd()
3764
    oprot.trans.flush()
7459 amar.kumar 3765
 
7672 rajveer 3766
  def process_getInTransitInventory(self, seqid, iprot, oprot):
3767
    args = getInTransitInventory_args()
3768
    args.read(iprot)
3769
    iprot.readMessageEnd()
3770
    result = getInTransitInventory_result()
3771
    result.success = self._handler.getInTransitInventory(args.originWarehouseId)
3772
    oprot.writeMessageBegin("getInTransitInventory", TMessageType.REPLY, seqid)
3773
    result.write(oprot)
3774
    oprot.writeMessageEnd()
3775
    oprot.trans.flush()
7574 amar.kumar 3776
 
7968 amar.kumar 3777
  def process_isItemAvailableForSale(self, seqid, iprot, oprot):
3778
    args = isItemAvailableForSale_args()
3779
    args.read(iprot)
3780
    iprot.readMessageEnd()
3781
    result = isItemAvailableForSale_result()
3782
    try:
3783
      result.success = self._handler.isItemAvailableForSale(args.itemId, args.serialNumber, args.warehouseId)
3784
    except WarehouseServiceException, wex:
3785
      result.wex = wex
3786
    oprot.writeMessageBegin("isItemAvailableForSale", TMessageType.REPLY, seqid)
3787
    result.write(oprot)
3788
    oprot.writeMessageEnd()
3789
    oprot.trans.flush()
7672 rajveer 3790
 
7968 amar.kumar 3791
  def process_getHistoricBadInventoryByScans(self, seqid, iprot, oprot):
3792
    args = getHistoricBadInventoryByScans_args()
3793
    args.read(iprot)
3794
    iprot.readMessageEnd()
3795
    result = getHistoricBadInventoryByScans_result()
3796
    try:
3797
      result.success = self._handler.getHistoricBadInventoryByScans(args.date)
3798
    except WarehouseServiceException, wex:
3799
      result.wex = wex
3800
    oprot.writeMessageBegin("getHistoricBadInventoryByScans", TMessageType.REPLY, seqid)
3801
    result.write(oprot)
3802
    oprot.writeMessageEnd()
3803
    oprot.trans.flush()
3804
 
8565 amar.kumar 3805
  def process_scanForBadSale(self, seqid, iprot, oprot):
3806
    args = scanForBadSale_args()
3807
    args.read(iprot)
3808
    iprot.readMessageEnd()
3809
    result = scanForBadSale_result()
8717 amar.kumar 3810
    try:
3811
      result.success = self._handler.scanForBadSale(args.serialNumber, args.itemNumber, args.itemId, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId)
3812
    except WarehouseServiceException, wex:
3813
      result.wex = wex
8565 amar.kumar 3814
    oprot.writeMessageBegin("scanForBadSale", TMessageType.REPLY, seqid)
3815
    result.write(oprot)
3816
    oprot.writeMessageEnd()
3817
    oprot.trans.flush()
7968 amar.kumar 3818
 
10120 manish.sha 3819
  def process_getTransferLotItemsForMarkReceive(self, seqid, iprot, oprot):
3820
    args = getTransferLotItemsForMarkReceive_args()
3821
    args.read(iprot)
3822
    iprot.readMessageEnd()
3823
    result = getTransferLotItemsForMarkReceive_result()
3824
    try:
3825
      result.success = self._handler.getTransferLotItemsForMarkReceive(args.transferLotId, args.scanType)
3826
    except WarehouseServiceException, wex:
3827
      result.wex = wex
3828
    oprot.writeMessageBegin("getTransferLotItemsForMarkReceive", TMessageType.REPLY, seqid)
3829
    result.write(oprot)
3830
    oprot.writeMessageEnd()
3831
    oprot.trans.flush()
8565 amar.kumar 3832
 
10120 manish.sha 3833
  def process_markItemsAsReceivedForTransferLotPartial(self, seqid, iprot, oprot):
3834
    args = markItemsAsReceivedForTransferLotPartial_args()
3835
    args.read(iprot)
3836
    iprot.readMessageEnd()
3837
    result = markItemsAsReceivedForTransferLotPartial_result()
3838
    try:
3839
      self._handler.markItemsAsReceivedForTransferLotPartial(args.inventoryItems, args.transferLotId)
3840
    except WarehouseServiceException, wex:
3841
      result.wex = wex
3842
    oprot.writeMessageBegin("markItemsAsReceivedForTransferLotPartial", TMessageType.REPLY, seqid)
3843
    result.write(oprot)
3844
    oprot.writeMessageEnd()
3845
    oprot.trans.flush()
3846
 
3847
  def process_markTransferLotAsReceivedPartial(self, seqid, iprot, oprot):
3848
    args = markTransferLotAsReceivedPartial_args()
3849
    args.read(iprot)
3850
    iprot.readMessageEnd()
3851
    result = markTransferLotAsReceivedPartial_result()
3852
    try:
3853
      self._handler.markTransferLotAsReceivedPartial(args.id, args.remoteTransferRefNumber)
3854
    except WarehouseServiceException, wex:
3855
      result.wex = wex
3856
    oprot.writeMessageBegin("markTransferLotAsReceivedPartial", TMessageType.REPLY, seqid)
3857
    result.write(oprot)
3858
    oprot.writeMessageEnd()
3859
    oprot.trans.flush()
3860
 
10690 manish.sha 3861
  def process_getInventoryItemScannedInForPO(self, seqid, iprot, oprot):
3862
    args = getInventoryItemScannedInForPO_args()
3863
    args.read(iprot)
3864
    iprot.readMessageEnd()
3865
    result = getInventoryItemScannedInForPO_result()
3866
    try:
3867
      result.success = self._handler.getInventoryItemScannedInForPO(args.itemId, args.purchaseIds)
3868
    except WarehouseServiceException, wex:
3869
      result.wex = wex
3870
    oprot.writeMessageBegin("getInventoryItemScannedInForPO", TMessageType.REPLY, seqid)
3871
    result.write(oprot)
3872
    oprot.writeMessageEnd()
3873
    oprot.trans.flush()
10120 manish.sha 3874
 
10690 manish.sha 3875
  def process_getAmazonTransferredSkuDetails(self, seqid, iprot, oprot):
3876
    args = getAmazonTransferredSkuDetails_args()
3877
    args.read(iprot)
3878
    iprot.readMessageEnd()
3879
    result = getAmazonTransferredSkuDetails_result()
3880
    try:
3881
      result.success = self._handler.getAmazonTransferredSkuDetails(args.itemIds)
3882
    except WarehouseServiceException, wex:
3883
      result.wex = wex
3884
    oprot.writeMessageBegin("getAmazonTransferredSkuDetails", TMessageType.REPLY, seqid)
3885
    result.write(oprot)
3886
    oprot.writeMessageEnd()
3887
    oprot.trans.flush()
3888
 
3889
  def process_getScansforPurchase(self, seqid, iprot, oprot):
3890
    args = getScansforPurchase_args()
3891
    args.read(iprot)
3892
    iprot.readMessageEnd()
3893
    result = getScansforPurchase_result()
3894
    try:
3895
      result.success = self._handler.getScansforPurchase(args.purchaseId, args.scanType)
3896
    except WarehouseServiceException, wex:
3897
      result.wex = wex
3898
    oprot.writeMessageBegin("getScansforPurchase", TMessageType.REPLY, seqid)
3899
    result.write(oprot)
3900
    oprot.writeMessageEnd()
3901
    oprot.trans.flush()
3902
 
10864 manish.sha 3903
  def process_getCurrentBadQuantityForItem(self, seqid, iprot, oprot):
3904
    args = getCurrentBadQuantityForItem_args()
3905
    args.read(iprot)
3906
    iprot.readMessageEnd()
3907
    result = getCurrentBadQuantityForItem_result()
3908
    try:
3909
      result.success = self._handler.getCurrentBadQuantityForItem(args.itemId, args.currentWarehouseId, args.physicalWarehouseId)
3910
    except WarehouseServiceException, wex:
3911
      result.wex = wex
3912
    oprot.writeMessageBegin("getCurrentBadQuantityForItem", TMessageType.REPLY, seqid)
3913
    result.write(oprot)
3914
    oprot.writeMessageEnd()
3915
    oprot.trans.flush()
10690 manish.sha 3916
 
10864 manish.sha 3917
  def process_scanForBadPurchaseReturn(self, seqid, iprot, oprot):
3918
    args = scanForBadPurchaseReturn_args()
3919
    args.read(iprot)
3920
    iprot.readMessageEnd()
3921
    result = scanForBadPurchaseReturn_result()
3922
    try:
3923
      result.success = self._handler.scanForBadPurchaseReturn(args.saleReturnItems, args.vendorId, args.billingWarehouseId)
3924
    except WarehouseServiceException, ex:
3925
      result.ex = ex
3926
    oprot.writeMessageBegin("scanForBadPurchaseReturn", TMessageType.REPLY, seqid)
3927
    result.write(oprot)
3928
    oprot.writeMessageEnd()
3929
    oprot.trans.flush()
3930
 
3931
  def process_getItemsInPurchaseReturn(self, seqid, iprot, oprot):
3932
    args = getItemsInPurchaseReturn_args()
3933
    args.read(iprot)
3934
    iprot.readMessageEnd()
3935
    result = getItemsInPurchaseReturn_result()
3936
    try:
13504 manish.sha 3937
      result.success = self._handler.getItemsInPurchaseReturn(args.purchaseReturnId, args.type, args.returnTime)
10864 manish.sha 3938
    except WarehouseServiceException, ex:
3939
      result.ex = ex
3940
    oprot.writeMessageBegin("getItemsInPurchaseReturn", TMessageType.REPLY, seqid)
3941
    result.write(oprot)
3942
    oprot.writeMessageEnd()
3943
    oprot.trans.flush()
3944
 
10886 manish.sha 3945
  def process_getScansForInventoryItem(self, seqid, iprot, oprot):
3946
    args = getScansForInventoryItem_args()
3947
    args.read(iprot)
3948
    iprot.readMessageEnd()
3949
    result = getScansForInventoryItem_result()
3950
    try:
3951
      result.success = self._handler.getScansForInventoryItem(args.inventoryItemId, args.type)
3952
    except WarehouseServiceException, ex:
3953
      result.ex = ex
3954
    oprot.writeMessageBegin("getScansForInventoryItem", TMessageType.REPLY, seqid)
3955
    result.write(oprot)
3956
    oprot.writeMessageEnd()
3957
    oprot.trans.flush()
10864 manish.sha 3958
 
12531 manish.sha 3959
  def process_checkGrnImeiStatus(self, seqid, iprot, oprot):
3960
    args = checkGrnImeiStatus_args()
3961
    args.read(iprot)
3962
    iprot.readMessageEnd()
3963
    result = checkGrnImeiStatus_result()
3964
    try:
3965
      result.success = self._handler.checkGrnImeiStatus(args.imeiNos)
3966
    except WarehouseServiceException, ex:
3967
      result.ex = ex
3968
    oprot.writeMessageBegin("checkGrnImeiStatus", TMessageType.REPLY, seqid)
3969
    result.write(oprot)
3970
    oprot.writeMessageEnd()
3971
    oprot.trans.flush()
10886 manish.sha 3972
 
12800 manish.sha 3973
  def process_getInventoryAgeConsideredItems(self, seqid, iprot, oprot):
3974
    args = getInventoryAgeConsideredItems_args()
3975
    args.read(iprot)
3976
    iprot.readMessageEnd()
3977
    result = getInventoryAgeConsideredItems_result()
3978
    try:
3979
      result.success = self._handler.getInventoryAgeConsideredItems(args.itemId)
3980
    except WarehouseServiceException, ex:
3981
      result.ex = ex
3982
    oprot.writeMessageBegin("getInventoryAgeConsideredItems", TMessageType.REPLY, seqid)
3983
    result.write(oprot)
3984
    oprot.writeMessageEnd()
3985
    oprot.trans.flush()
12531 manish.sha 3986
 
13529 manish.sha 3987
  def process_getCompleteMovementForThirdPartyWarehouse(self, seqid, iprot, oprot):
3988
    args = getCompleteMovementForThirdPartyWarehouse_args()
3989
    args.read(iprot)
3990
    iprot.readMessageEnd()
3991
    result = getCompleteMovementForThirdPartyWarehouse_result()
3992
    result.success = self._handler.getCompleteMovementForThirdPartyWarehouse(args.startDate, args.endDate)
3993
    oprot.writeMessageBegin("getCompleteMovementForThirdPartyWarehouse", TMessageType.REPLY, seqid)
3994
    result.write(oprot)
3995
    oprot.writeMessageEnd()
3996
    oprot.trans.flush()
12800 manish.sha 3997
 
14491 manish.sha 3998
  def process_getAllDoaOutInventoryItems(self, seqid, iprot, oprot):
3999
    args = getAllDoaOutInventoryItems_args()
4000
    args.read(iprot)
4001
    iprot.readMessageEnd()
4002
    result = getAllDoaOutInventoryItems_result()
4003
    try:
4004
      result.success = self._handler.getAllDoaOutInventoryItems()
4005
    except WarehouseServiceException, ex:
4006
      result.ex = ex
4007
    oprot.writeMessageBegin("getAllDoaOutInventoryItems", TMessageType.REPLY, seqid)
4008
    result.write(oprot)
4009
    oprot.writeMessageEnd()
4010
    oprot.trans.flush()
13529 manish.sha 4011
 
15045 manish.sha 4012
  def process_getAllUnCompletedStockShipments(self, seqid, iprot, oprot):
4013
    args = getAllUnCompletedStockShipments_args()
4014
    args.read(iprot)
4015
    iprot.readMessageEnd()
4016
    result = getAllUnCompletedStockShipments_result()
4017
    try:
4018
      result.success = self._handler.getAllUnCompletedStockShipments(args.source)
4019
    except WarehouseServiceException, ex:
4020
      result.ex = ex
4021
    oprot.writeMessageBegin("getAllUnCompletedStockShipments", TMessageType.REPLY, seqid)
4022
    result.write(oprot)
4023
    oprot.writeMessageEnd()
4024
    oprot.trans.flush()
14491 manish.sha 4025
 
15045 manish.sha 4026
  def process_getRemovalStockShipmentReferenceById(self, seqid, iprot, oprot):
4027
    args = getRemovalStockShipmentReferenceById_args()
4028
    args.read(iprot)
4029
    iprot.readMessageEnd()
4030
    result = getRemovalStockShipmentReferenceById_result()
4031
    try:
4032
      result.success = self._handler.getRemovalStockShipmentReferenceById(args.id)
4033
    except WarehouseServiceException, ex:
4034
      result.ex = ex
4035
    oprot.writeMessageBegin("getRemovalStockShipmentReferenceById", TMessageType.REPLY, seqid)
4036
    result.write(oprot)
4037
    oprot.writeMessageEnd()
4038
    oprot.trans.flush()
4039
 
4040
  def process_createRemovalStockShipmentReference(self, seqid, iprot, oprot):
4041
    args = createRemovalStockShipmentReference_args()
4042
    args.read(iprot)
4043
    iprot.readMessageEnd()
4044
    result = createRemovalStockShipmentReference_result()
4045
    try:
4046
      result.success = self._handler.createRemovalStockShipmentReference(args.removalStockShipmentReference)
4047
    except WarehouseServiceException, ex:
4048
      result.ex = ex
4049
    oprot.writeMessageBegin("createRemovalStockShipmentReference", TMessageType.REPLY, seqid)
4050
    result.write(oprot)
4051
    oprot.writeMessageEnd()
4052
    oprot.trans.flush()
4053
 
4054
  def process_updateShipmentReferenceTransferLot(self, seqid, iprot, oprot):
4055
    args = updateShipmentReferenceTransferLot_args()
4056
    args.read(iprot)
4057
    iprot.readMessageEnd()
4058
    result = updateShipmentReferenceTransferLot_result()
4059
    try:
4060
      self._handler.updateShipmentReferenceTransferLot(args.transferLotId, args.shipmentReferenceId)
4061
    except WarehouseServiceException, ex:
4062
      result.ex = ex
4063
    oprot.writeMessageBegin("updateShipmentReferenceTransferLot", TMessageType.REPLY, seqid)
4064
    result.write(oprot)
4065
    oprot.writeMessageEnd()
4066
    oprot.trans.flush()
4067
 
16264 manish.sha 4068
  def process_fetchScansPerTransferInvoiceNumber(self, seqid, iprot, oprot):
4069
    args = fetchScansPerTransferInvoiceNumber_args()
4070
    args.read(iprot)
4071
    iprot.readMessageEnd()
4072
    result = fetchScansPerTransferInvoiceNumber_result()
4073
    result.success = self._handler.fetchScansPerTransferInvoiceNumber(args.date)
4074
    oprot.writeMessageBegin("fetchScansPerTransferInvoiceNumber", TMessageType.REPLY, seqid)
4075
    result.write(oprot)
4076
    oprot.writeMessageEnd()
4077
    oprot.trans.flush()
15045 manish.sha 4078
 
16264 manish.sha 4079
 
2821 chandransh 4080
# HELPER FUNCTIONS AND STRUCTURES
4081
 
4501 mandeep.dh 4082
class getInventoryItem_args:
2832 chandransh 4083
  """
4084
  Attributes:
4501 mandeep.dh 4085
   - serialNumber
2832 chandransh 4086
  """
4087
 
4088
  thrift_spec = (
4089
    None, # 0
4501 mandeep.dh 4090
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
2832 chandransh 4091
  )
4092
 
4501 mandeep.dh 4093
  def __init__(self, serialNumber=None,):
4094
    self.serialNumber = serialNumber
2832 chandransh 4095
 
4096
  def read(self, iprot):
4097
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4098
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4099
      return
4100
    iprot.readStructBegin()
4101
    while True:
4102
      (fname, ftype, fid) = iprot.readFieldBegin()
4103
      if ftype == TType.STOP:
4104
        break
4105
      if fid == 1:
4501 mandeep.dh 4106
        if ftype == TType.STRING:
4107
          self.serialNumber = iprot.readString();
2832 chandransh 4108
        else:
4109
          iprot.skip(ftype)
4110
      else:
4111
        iprot.skip(ftype)
4112
      iprot.readFieldEnd()
4113
    iprot.readStructEnd()
4114
 
4115
  def write(self, oprot):
4116
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4117
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4118
      return
4501 mandeep.dh 4119
    oprot.writeStructBegin('getInventoryItem_args')
4120
    if self.serialNumber is not None:
4121
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
4122
      oprot.writeString(self.serialNumber)
2832 chandransh 4123
      oprot.writeFieldEnd()
4124
    oprot.writeFieldStop()
4125
    oprot.writeStructEnd()
4126
 
3431 rajveer 4127
  def validate(self):
4128
    return
4129
 
4130
 
2832 chandransh 4131
  def __repr__(self):
4132
    L = ['%s=%r' % (key, value)
4133
      for key, value in self.__dict__.iteritems()]
4134
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4135
 
4136
  def __eq__(self, other):
4137
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4138
 
4139
  def __ne__(self, other):
4140
    return not (self == other)
4141
 
4501 mandeep.dh 4142
class getInventoryItem_result:
2832 chandransh 4143
  """
4144
  Attributes:
4145
   - success
4541 mandeep.dh 4146
   - wex
2832 chandransh 4147
  """
4148
 
4149
  thrift_spec = (
4501 mandeep.dh 4150
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
4541 mandeep.dh 4151
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
2832 chandransh 4152
  )
4153
 
4541 mandeep.dh 4154
  def __init__(self, success=None, wex=None,):
2832 chandransh 4155
    self.success = success
4541 mandeep.dh 4156
    self.wex = wex
2832 chandransh 4157
 
4158
  def read(self, iprot):
4159
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4160
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4161
      return
4162
    iprot.readStructBegin()
4163
    while True:
4164
      (fname, ftype, fid) = iprot.readFieldBegin()
4165
      if ftype == TType.STOP:
4166
        break
4167
      if fid == 0:
4168
        if ftype == TType.STRUCT:
4501 mandeep.dh 4169
          self.success = InventoryItem()
2832 chandransh 4170
          self.success.read(iprot)
4171
        else:
4172
          iprot.skip(ftype)
4541 mandeep.dh 4173
      elif fid == 1:
4174
        if ftype == TType.STRUCT:
4175
          self.wex = WarehouseServiceException()
4176
          self.wex.read(iprot)
4177
        else:
4178
          iprot.skip(ftype)
2832 chandransh 4179
      else:
4180
        iprot.skip(ftype)
4181
      iprot.readFieldEnd()
4182
    iprot.readStructEnd()
4183
 
4184
  def write(self, oprot):
4185
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4186
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4187
      return
4501 mandeep.dh 4188
    oprot.writeStructBegin('getInventoryItem_result')
3431 rajveer 4189
    if self.success is not None:
2832 chandransh 4190
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4191
      self.success.write(oprot)
4192
      oprot.writeFieldEnd()
4541 mandeep.dh 4193
    if self.wex is not None:
4194
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4195
      self.wex.write(oprot)
4196
      oprot.writeFieldEnd()
2832 chandransh 4197
    oprot.writeFieldStop()
4198
    oprot.writeStructEnd()
4199
 
3431 rajveer 4200
  def validate(self):
4201
    return
4202
 
4203
 
2832 chandransh 4204
  def __repr__(self):
4205
    L = ['%s=%r' % (key, value)
4206
      for key, value in self.__dict__.iteritems()]
4207
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4208
 
4209
  def __eq__(self, other):
4210
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4211
 
4212
  def __ne__(self, other):
4213
    return not (self == other)
4214
 
5361 mandeep.dh 4215
class getNonSeralizedInventoryItem_args:
2821 chandransh 4216
  """
4217
  Attributes:
5530 mandeep.dh 4218
   - itemNumber
4501 mandeep.dh 4219
   - itemId
5530 mandeep.dh 4220
   - fulfilmentWarehouseId
8565 amar.kumar 4221
   - billingWarehouseId
2821 chandransh 4222
  """
4223
 
4224
  thrift_spec = (
4225
    None, # 0
5530 mandeep.dh 4226
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
4227
    (2, TType.I64, 'itemId', None, None, ), # 2
4228
    (3, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 3
8565 amar.kumar 4229
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
2821 chandransh 4230
  )
4231
 
8565 amar.kumar 4232
  def __init__(self, itemNumber=None, itemId=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):
5530 mandeep.dh 4233
    self.itemNumber = itemNumber
4501 mandeep.dh 4234
    self.itemId = itemId
5530 mandeep.dh 4235
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 4236
    self.billingWarehouseId = billingWarehouseId
2821 chandransh 4237
 
4238
  def read(self, iprot):
4239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4241
      return
4242
    iprot.readStructBegin()
4243
    while True:
4244
      (fname, ftype, fid) = iprot.readFieldBegin()
4245
      if ftype == TType.STOP:
4246
        break
4247
      if fid == 1:
5530 mandeep.dh 4248
        if ftype == TType.STRING:
4249
          self.itemNumber = iprot.readString();
4250
        else:
4251
          iprot.skip(ftype)
4252
      elif fid == 2:
2821 chandransh 4253
        if ftype == TType.I64:
4501 mandeep.dh 4254
          self.itemId = iprot.readI64();
2821 chandransh 4255
        else:
4256
          iprot.skip(ftype)
5530 mandeep.dh 4257
      elif fid == 3:
4501 mandeep.dh 4258
        if ftype == TType.I64:
5530 mandeep.dh 4259
          self.fulfilmentWarehouseId = iprot.readI64();
2821 chandransh 4260
        else:
4261
          iprot.skip(ftype)
8565 amar.kumar 4262
      elif fid == 4:
4263
        if ftype == TType.I64:
4264
          self.billingWarehouseId = iprot.readI64();
4265
        else:
4266
          iprot.skip(ftype)
2821 chandransh 4267
      else:
4268
        iprot.skip(ftype)
4269
      iprot.readFieldEnd()
4270
    iprot.readStructEnd()
4271
 
4272
  def write(self, oprot):
4273
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4274
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4275
      return
5361 mandeep.dh 4276
    oprot.writeStructBegin('getNonSeralizedInventoryItem_args')
5530 mandeep.dh 4277
    if self.itemNumber is not None:
4278
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
4279
      oprot.writeString(self.itemNumber)
4280
      oprot.writeFieldEnd()
4501 mandeep.dh 4281
    if self.itemId is not None:
5530 mandeep.dh 4282
      oprot.writeFieldBegin('itemId', TType.I64, 2)
4501 mandeep.dh 4283
      oprot.writeI64(self.itemId)
2821 chandransh 4284
      oprot.writeFieldEnd()
5530 mandeep.dh 4285
    if self.fulfilmentWarehouseId is not None:
4286
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 3)
4287
      oprot.writeI64(self.fulfilmentWarehouseId)
2821 chandransh 4288
      oprot.writeFieldEnd()
8565 amar.kumar 4289
    if self.billingWarehouseId is not None:
4290
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
4291
      oprot.writeI64(self.billingWarehouseId)
4292
      oprot.writeFieldEnd()
2821 chandransh 4293
    oprot.writeFieldStop()
4294
    oprot.writeStructEnd()
4295
 
3431 rajveer 4296
  def validate(self):
4297
    return
4298
 
4299
 
2821 chandransh 4300
  def __repr__(self):
4301
    L = ['%s=%r' % (key, value)
4302
      for key, value in self.__dict__.iteritems()]
4303
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4304
 
4305
  def __eq__(self, other):
4306
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4307
 
4308
  def __ne__(self, other):
4309
    return not (self == other)
4310
 
5361 mandeep.dh 4311
class getNonSeralizedInventoryItem_result:
2821 chandransh 4312
  """
4313
  Attributes:
4314
   - success
5361 mandeep.dh 4315
   - wex
2821 chandransh 4316
  """
4317
 
4318
  thrift_spec = (
5361 mandeep.dh 4319
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
4320
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
2821 chandransh 4321
  )
4322
 
5361 mandeep.dh 4323
  def __init__(self, success=None, wex=None,):
2821 chandransh 4324
    self.success = success
5361 mandeep.dh 4325
    self.wex = wex
2821 chandransh 4326
 
4327
  def read(self, iprot):
4328
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4329
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4330
      return
4331
    iprot.readStructBegin()
4332
    while True:
4333
      (fname, ftype, fid) = iprot.readFieldBegin()
4334
      if ftype == TType.STOP:
4335
        break
4336
      if fid == 0:
5361 mandeep.dh 4337
        if ftype == TType.STRUCT:
4338
          self.success = InventoryItem()
4339
          self.success.read(iprot)
2821 chandransh 4340
        else:
4341
          iprot.skip(ftype)
5361 mandeep.dh 4342
      elif fid == 1:
4343
        if ftype == TType.STRUCT:
4344
          self.wex = WarehouseServiceException()
4345
          self.wex.read(iprot)
2821 chandransh 4346
        else:
4347
          iprot.skip(ftype)
4348
      else:
4349
        iprot.skip(ftype)
4350
      iprot.readFieldEnd()
4351
    iprot.readStructEnd()
4352
 
4353
  def write(self, oprot):
4354
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4355
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4356
      return
5361 mandeep.dh 4357
    oprot.writeStructBegin('getNonSeralizedInventoryItem_result')
3431 rajveer 4358
    if self.success is not None:
5361 mandeep.dh 4359
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4360
      self.success.write(oprot)
2821 chandransh 4361
      oprot.writeFieldEnd()
5361 mandeep.dh 4362
    if self.wex is not None:
4363
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4364
      self.wex.write(oprot)
3383 chandransh 4365
      oprot.writeFieldEnd()
4366
    oprot.writeFieldStop()
4367
    oprot.writeStructEnd()
4368
 
3431 rajveer 4369
  def validate(self):
4370
    return
4371
 
4372
 
3383 chandransh 4373
  def __repr__(self):
4374
    L = ['%s=%r' % (key, value)
4375
      for key, value in self.__dict__.iteritems()]
4376
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4377
 
4378
  def __eq__(self, other):
4379
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4380
 
4381
  def __ne__(self, other):
4382
    return not (self == other)
4383
 
4501 mandeep.dh 4384
class scan_args:
2821 chandransh 4385
  """
4386
  Attributes:
5361 mandeep.dh 4387
   - inventoryItem
2821 chandransh 4388
   - type
4501 mandeep.dh 4389
   - quantity
5361 mandeep.dh 4390
   - billingWarehouseId
7410 amar.kumar 4391
   - transferLotId
2821 chandransh 4392
  """
4393
 
4394
  thrift_spec = (
4395
    None, # 0
5361 mandeep.dh 4396
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4501 mandeep.dh 4397
    (2, TType.I32, 'type', None, None, ), # 2
4398
    (3, TType.I64, 'quantity', None, None, ), # 3
5361 mandeep.dh 4399
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
7410 amar.kumar 4400
    (5, TType.I64, 'transferLotId', None, None, ), # 5
2821 chandransh 4401
  )
4402
 
7410 amar.kumar 4403
  def __init__(self, inventoryItem=None, type=None, quantity=None, billingWarehouseId=None, transferLotId=None,):
5361 mandeep.dh 4404
    self.inventoryItem = inventoryItem
2821 chandransh 4405
    self.type = type
4501 mandeep.dh 4406
    self.quantity = quantity
5361 mandeep.dh 4407
    self.billingWarehouseId = billingWarehouseId
7410 amar.kumar 4408
    self.transferLotId = transferLotId
2821 chandransh 4409
 
4410
  def read(self, iprot):
4411
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4412
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4413
      return
4414
    iprot.readStructBegin()
4415
    while True:
4416
      (fname, ftype, fid) = iprot.readFieldBegin()
4417
      if ftype == TType.STOP:
4418
        break
4419
      if fid == 1:
5361 mandeep.dh 4420
        if ftype == TType.STRUCT:
4421
          self.inventoryItem = InventoryItem()
4422
          self.inventoryItem.read(iprot)
2821 chandransh 4423
        else:
4424
          iprot.skip(ftype)
4425
      elif fid == 2:
4501 mandeep.dh 4426
        if ftype == TType.I32:
4427
          self.type = iprot.readI32();
2821 chandransh 4428
        else:
4429
          iprot.skip(ftype)
3383 chandransh 4430
      elif fid == 3:
4501 mandeep.dh 4431
        if ftype == TType.I64:
4432
          self.quantity = iprot.readI64();
2821 chandransh 4433
        else:
4434
          iprot.skip(ftype)
3383 chandransh 4435
      elif fid == 4:
4501 mandeep.dh 4436
        if ftype == TType.I64:
5361 mandeep.dh 4437
          self.billingWarehouseId = iprot.readI64();
2821 chandransh 4438
        else:
4439
          iprot.skip(ftype)
7410 amar.kumar 4440
      elif fid == 5:
4441
        if ftype == TType.I64:
4442
          self.transferLotId = iprot.readI64();
4443
        else:
4444
          iprot.skip(ftype)
2821 chandransh 4445
      else:
4446
        iprot.skip(ftype)
4447
      iprot.readFieldEnd()
4448
    iprot.readStructEnd()
4449
 
4450
  def write(self, oprot):
4451
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4452
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4453
      return
4501 mandeep.dh 4454
    oprot.writeStructBegin('scan_args')
5361 mandeep.dh 4455
    if self.inventoryItem is not None:
4456
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
4457
      self.inventoryItem.write(oprot)
2821 chandransh 4458
      oprot.writeFieldEnd()
3431 rajveer 4459
    if self.type is not None:
4501 mandeep.dh 4460
      oprot.writeFieldBegin('type', TType.I32, 2)
2821 chandransh 4461
      oprot.writeI32(self.type)
4462
      oprot.writeFieldEnd()
4501 mandeep.dh 4463
    if self.quantity is not None:
4464
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4465
      oprot.writeI64(self.quantity)
4466
      oprot.writeFieldEnd()
5361 mandeep.dh 4467
    if self.billingWarehouseId is not None:
4468
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
4469
      oprot.writeI64(self.billingWarehouseId)
4501 mandeep.dh 4470
      oprot.writeFieldEnd()
7410 amar.kumar 4471
    if self.transferLotId is not None:
4472
      oprot.writeFieldBegin('transferLotId', TType.I64, 5)
4473
      oprot.writeI64(self.transferLotId)
4474
      oprot.writeFieldEnd()
2821 chandransh 4475
    oprot.writeFieldStop()
4476
    oprot.writeStructEnd()
4477
 
3431 rajveer 4478
  def validate(self):
4479
    return
4480
 
4481
 
2821 chandransh 4482
  def __repr__(self):
4483
    L = ['%s=%r' % (key, value)
4484
      for key, value in self.__dict__.iteritems()]
4485
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4486
 
4487
  def __eq__(self, other):
4488
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4489
 
4490
  def __ne__(self, other):
4491
    return not (self == other)
4492
 
4501 mandeep.dh 4493
class scan_result:
2821 chandransh 4494
  """
4495
  Attributes:
4496
   - wex
4497
  """
4498
 
4499
  thrift_spec = (
4500
    None, # 0
4501
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4502
  )
4503
 
4504
  def __init__(self, wex=None,):
4505
    self.wex = wex
4506
 
4507
  def read(self, iprot):
4508
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4509
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4510
      return
4511
    iprot.readStructBegin()
4512
    while True:
4513
      (fname, ftype, fid) = iprot.readFieldBegin()
4514
      if ftype == TType.STOP:
4515
        break
4516
      if fid == 1:
4517
        if ftype == TType.STRUCT:
4518
          self.wex = WarehouseServiceException()
4519
          self.wex.read(iprot)
4520
        else:
4521
          iprot.skip(ftype)
4522
      else:
4523
        iprot.skip(ftype)
4524
      iprot.readFieldEnd()
4525
    iprot.readStructEnd()
4526
 
4527
  def write(self, oprot):
4528
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4529
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4530
      return
4501 mandeep.dh 4531
    oprot.writeStructBegin('scan_result')
3431 rajveer 4532
    if self.wex is not None:
2821 chandransh 4533
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4534
      self.wex.write(oprot)
4535
      oprot.writeFieldEnd()
4536
    oprot.writeFieldStop()
4537
    oprot.writeStructEnd()
4538
 
3431 rajveer 4539
  def validate(self):
4540
    return
4541
 
4542
 
2821 chandransh 4543
  def __repr__(self):
4544
    L = ['%s=%r' % (key, value)
4545
      for key, value in self.__dict__.iteritems()]
4546
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4547
 
4548
  def __eq__(self, other):
4549
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4550
 
4551
  def __ne__(self, other):
4552
    return not (self == other)
4553
 
10489 amar.kumar 4554
class genericScan_args:
4555
  """
4556
  Attributes:
4557
   - inventoryItem
4558
   - scan
4559
  """
4560
 
4561
  thrift_spec = (
4562
    None, # 0
4563
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4564
    (2, TType.STRUCT, 'scan', (Scan, Scan.thrift_spec), None, ), # 2
4565
  )
4566
 
4567
  def __init__(self, inventoryItem=None, scan=None,):
4568
    self.inventoryItem = inventoryItem
4569
    self.scan = scan
4570
 
4571
  def read(self, iprot):
4572
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4573
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4574
      return
4575
    iprot.readStructBegin()
4576
    while True:
4577
      (fname, ftype, fid) = iprot.readFieldBegin()
4578
      if ftype == TType.STOP:
4579
        break
4580
      if fid == 1:
4581
        if ftype == TType.STRUCT:
4582
          self.inventoryItem = InventoryItem()
4583
          self.inventoryItem.read(iprot)
4584
        else:
4585
          iprot.skip(ftype)
4586
      elif fid == 2:
4587
        if ftype == TType.STRUCT:
4588
          self.scan = Scan()
4589
          self.scan.read(iprot)
4590
        else:
4591
          iprot.skip(ftype)
4592
      else:
4593
        iprot.skip(ftype)
4594
      iprot.readFieldEnd()
4595
    iprot.readStructEnd()
4596
 
4597
  def write(self, oprot):
4598
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4599
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4600
      return
4601
    oprot.writeStructBegin('genericScan_args')
4602
    if self.inventoryItem is not None:
4603
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
4604
      self.inventoryItem.write(oprot)
4605
      oprot.writeFieldEnd()
4606
    if self.scan is not None:
4607
      oprot.writeFieldBegin('scan', TType.STRUCT, 2)
4608
      self.scan.write(oprot)
4609
      oprot.writeFieldEnd()
4610
    oprot.writeFieldStop()
4611
    oprot.writeStructEnd()
4612
 
4613
  def validate(self):
4614
    return
4615
 
4616
 
4617
  def __repr__(self):
4618
    L = ['%s=%r' % (key, value)
4619
      for key, value in self.__dict__.iteritems()]
4620
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4621
 
4622
  def __eq__(self, other):
4623
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4624
 
4625
  def __ne__(self, other):
4626
    return not (self == other)
4627
 
4628
class genericScan_result:
4629
  """
4630
  Attributes:
4631
   - wex
4632
  """
4633
 
4634
  thrift_spec = (
4635
    None, # 0
4636
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4637
  )
4638
 
4639
  def __init__(self, wex=None,):
4640
    self.wex = wex
4641
 
4642
  def read(self, iprot):
4643
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4644
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4645
      return
4646
    iprot.readStructBegin()
4647
    while True:
4648
      (fname, ftype, fid) = iprot.readFieldBegin()
4649
      if ftype == TType.STOP:
4650
        break
4651
      if fid == 1:
4652
        if ftype == TType.STRUCT:
4653
          self.wex = WarehouseServiceException()
4654
          self.wex.read(iprot)
4655
        else:
4656
          iprot.skip(ftype)
4657
      else:
4658
        iprot.skip(ftype)
4659
      iprot.readFieldEnd()
4660
    iprot.readStructEnd()
4661
 
4662
  def write(self, oprot):
4663
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4664
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4665
      return
4666
    oprot.writeStructBegin('genericScan_result')
4667
    if self.wex is not None:
4668
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4669
      self.wex.write(oprot)
4670
      oprot.writeFieldEnd()
4671
    oprot.writeFieldStop()
4672
    oprot.writeStructEnd()
4673
 
4674
  def validate(self):
4675
    return
4676
 
4677
 
4678
  def __repr__(self):
4679
    L = ['%s=%r' % (key, value)
4680
      for key, value in self.__dict__.iteritems()]
4681
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4682
 
4683
  def __eq__(self, other):
4684
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4685
 
4686
  def __ne__(self, other):
4687
    return not (self == other)
4688
 
4501 mandeep.dh 4689
class scanSerializedItemForOrder_args:
2821 chandransh 4690
  """
4691
  Attributes:
4555 mandeep.dh 4692
   - serialNumber
2821 chandransh 4693
   - type
4501 mandeep.dh 4694
   - orderId
5110 mandeep.dh 4695
   - fulfilmentWarehouseId
4696
   - quantity
4697
   - billingWarehouseId
2821 chandransh 4698
  """
4699
 
4700
  thrift_spec = (
4701
    None, # 0
4555 mandeep.dh 4702
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
4501 mandeep.dh 4703
    (2, TType.I32, 'type', None, None, ), # 2
4704
    (3, TType.I64, 'orderId', None, None, ), # 3
5110 mandeep.dh 4705
    (4, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 4
4706
    (5, TType.DOUBLE, 'quantity', None, None, ), # 5
4707
    (6, TType.I64, 'billingWarehouseId', None, None, ), # 6
2821 chandransh 4708
  )
4709
 
5110 mandeep.dh 4710
  def __init__(self, serialNumber=None, type=None, orderId=None, fulfilmentWarehouseId=None, quantity=None, billingWarehouseId=None,):
4555 mandeep.dh 4711
    self.serialNumber = serialNumber
2821 chandransh 4712
    self.type = type
4501 mandeep.dh 4713
    self.orderId = orderId
5110 mandeep.dh 4714
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
4715
    self.quantity = quantity
4716
    self.billingWarehouseId = billingWarehouseId
2821 chandransh 4717
 
4718
  def read(self, iprot):
4719
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4720
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4721
      return
4722
    iprot.readStructBegin()
4723
    while True:
4724
      (fname, ftype, fid) = iprot.readFieldBegin()
4725
      if ftype == TType.STOP:
4726
        break
4727
      if fid == 1:
4555 mandeep.dh 4728
        if ftype == TType.STRING:
4729
          self.serialNumber = iprot.readString();
2821 chandransh 4730
        else:
4731
          iprot.skip(ftype)
4732
      elif fid == 2:
4501 mandeep.dh 4733
        if ftype == TType.I32:
4734
          self.type = iprot.readI32();
2821 chandransh 4735
        else:
4736
          iprot.skip(ftype)
4737
      elif fid == 3:
4501 mandeep.dh 4738
        if ftype == TType.I64:
4739
          self.orderId = iprot.readI64();
4740
        else:
4741
          iprot.skip(ftype)
4742
      elif fid == 4:
4743
        if ftype == TType.I64:
5110 mandeep.dh 4744
          self.fulfilmentWarehouseId = iprot.readI64();
4501 mandeep.dh 4745
        else:
4746
          iprot.skip(ftype)
5110 mandeep.dh 4747
      elif fid == 5:
4748
        if ftype == TType.DOUBLE:
4749
          self.quantity = iprot.readDouble();
4750
        else:
4751
          iprot.skip(ftype)
4752
      elif fid == 6:
4753
        if ftype == TType.I64:
4754
          self.billingWarehouseId = iprot.readI64();
4755
        else:
4756
          iprot.skip(ftype)
4501 mandeep.dh 4757
      else:
4758
        iprot.skip(ftype)
4759
      iprot.readFieldEnd()
4760
    iprot.readStructEnd()
4761
 
4762
  def write(self, oprot):
4763
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4764
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4765
      return
4766
    oprot.writeStructBegin('scanSerializedItemForOrder_args')
4555 mandeep.dh 4767
    if self.serialNumber is not None:
4768
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
4769
      oprot.writeString(self.serialNumber)
4501 mandeep.dh 4770
      oprot.writeFieldEnd()
4771
    if self.type is not None:
4772
      oprot.writeFieldBegin('type', TType.I32, 2)
4773
      oprot.writeI32(self.type)
4774
      oprot.writeFieldEnd()
4775
    if self.orderId is not None:
4776
      oprot.writeFieldBegin('orderId', TType.I64, 3)
4777
      oprot.writeI64(self.orderId)
4778
      oprot.writeFieldEnd()
5110 mandeep.dh 4779
    if self.fulfilmentWarehouseId is not None:
4780
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 4)
4781
      oprot.writeI64(self.fulfilmentWarehouseId)
4501 mandeep.dh 4782
      oprot.writeFieldEnd()
5110 mandeep.dh 4783
    if self.quantity is not None:
4784
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
4785
      oprot.writeDouble(self.quantity)
4786
      oprot.writeFieldEnd()
4787
    if self.billingWarehouseId is not None:
4788
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)
4789
      oprot.writeI64(self.billingWarehouseId)
4790
      oprot.writeFieldEnd()
4501 mandeep.dh 4791
    oprot.writeFieldStop()
4792
    oprot.writeStructEnd()
4793
 
4794
  def validate(self):
4795
    return
4796
 
4797
 
4798
  def __repr__(self):
4799
    L = ['%s=%r' % (key, value)
4800
      for key, value in self.__dict__.iteritems()]
4801
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4802
 
4803
  def __eq__(self, other):
4804
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4805
 
4806
  def __ne__(self, other):
4807
    return not (self == other)
4808
 
4809
class scanSerializedItemForOrder_result:
4810
  """
4811
  Attributes:
4812
   - success
4813
   - wex
4814
  """
4815
 
4816
  thrift_spec = (
4555 mandeep.dh 4817
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
4501 mandeep.dh 4818
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4819
  )
4820
 
4821
  def __init__(self, success=None, wex=None,):
4822
    self.success = success
4823
    self.wex = wex
4824
 
4825
  def read(self, iprot):
4826
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4827
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4828
      return
4829
    iprot.readStructBegin()
4830
    while True:
4831
      (fname, ftype, fid) = iprot.readFieldBegin()
4832
      if ftype == TType.STOP:
4833
        break
4834
      if fid == 0:
4555 mandeep.dh 4835
        if ftype == TType.STRUCT:
4836
          self.success = InventoryItem()
4837
          self.success.read(iprot)
4501 mandeep.dh 4838
        else:
4839
          iprot.skip(ftype)
4840
      elif fid == 1:
4841
        if ftype == TType.STRUCT:
4842
          self.wex = WarehouseServiceException()
4843
          self.wex.read(iprot)
4844
        else:
4845
          iprot.skip(ftype)
4846
      else:
4847
        iprot.skip(ftype)
4848
      iprot.readFieldEnd()
4849
    iprot.readStructEnd()
4850
 
4851
  def write(self, oprot):
4852
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4853
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4854
      return
4855
    oprot.writeStructBegin('scanSerializedItemForOrder_result')
4856
    if self.success is not None:
4555 mandeep.dh 4857
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4858
      self.success.write(oprot)
4501 mandeep.dh 4859
      oprot.writeFieldEnd()
4860
    if self.wex is not None:
4861
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4862
      self.wex.write(oprot)
4863
      oprot.writeFieldEnd()
4864
    oprot.writeFieldStop()
4865
    oprot.writeStructEnd()
4866
 
4867
  def validate(self):
4868
    return
4869
 
4870
 
4871
  def __repr__(self):
4872
    L = ['%s=%r' % (key, value)
4873
      for key, value in self.__dict__.iteritems()]
4874
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4875
 
4876
  def __eq__(self, other):
4877
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4878
 
4879
  def __ne__(self, other):
4880
    return not (self == other)
4881
 
4882
class scanForOrder_args:
4883
  """
4884
  Attributes:
5361 mandeep.dh 4885
   - inventoryItem
4501 mandeep.dh 4886
   - type
4887
   - quantity
4888
   - orderId
5110 mandeep.dh 4889
   - fulfilmentWarehouseId
5361 mandeep.dh 4890
   - billingWarehouseId
4501 mandeep.dh 4891
  """
4892
 
4893
  thrift_spec = (
4894
    None, # 0
5361 mandeep.dh 4895
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4501 mandeep.dh 4896
    (2, TType.I32, 'type', None, None, ), # 2
4897
    (3, TType.I64, 'quantity', None, None, ), # 3
4898
    (4, TType.I64, 'orderId', None, None, ), # 4
5110 mandeep.dh 4899
    (5, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 5
5361 mandeep.dh 4900
    (6, TType.I64, 'billingWarehouseId', None, None, ), # 6
4501 mandeep.dh 4901
  )
4902
 
5361 mandeep.dh 4903
  def __init__(self, inventoryItem=None, type=None, quantity=None, orderId=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):
4904
    self.inventoryItem = inventoryItem
4501 mandeep.dh 4905
    self.type = type
4906
    self.quantity = quantity
4907
    self.orderId = orderId
5110 mandeep.dh 4908
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
5361 mandeep.dh 4909
    self.billingWarehouseId = billingWarehouseId
4501 mandeep.dh 4910
 
4911
  def read(self, iprot):
4912
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4913
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4914
      return
4915
    iprot.readStructBegin()
4916
    while True:
4917
      (fname, ftype, fid) = iprot.readFieldBegin()
4918
      if ftype == TType.STOP:
4919
        break
4920
      if fid == 1:
5361 mandeep.dh 4921
        if ftype == TType.STRUCT:
4922
          self.inventoryItem = InventoryItem()
4923
          self.inventoryItem.read(iprot)
4501 mandeep.dh 4924
        else:
4925
          iprot.skip(ftype)
4926
      elif fid == 2:
2821 chandransh 4927
        if ftype == TType.I32:
4928
          self.type = iprot.readI32();
4929
        else:
4930
          iprot.skip(ftype)
4501 mandeep.dh 4931
      elif fid == 3:
4932
        if ftype == TType.I64:
4933
          self.quantity = iprot.readI64();
4934
        else:
4935
          iprot.skip(ftype)
4936
      elif fid == 4:
4937
        if ftype == TType.I64:
4938
          self.orderId = iprot.readI64();
4939
        else:
4940
          iprot.skip(ftype)
4941
      elif fid == 5:
4942
        if ftype == TType.I64:
5110 mandeep.dh 4943
          self.fulfilmentWarehouseId = iprot.readI64();
4501 mandeep.dh 4944
        else:
4945
          iprot.skip(ftype)
5361 mandeep.dh 4946
      elif fid == 6:
4947
        if ftype == TType.I64:
4948
          self.billingWarehouseId = iprot.readI64();
4949
        else:
4950
          iprot.skip(ftype)
2821 chandransh 4951
      else:
4952
        iprot.skip(ftype)
4953
      iprot.readFieldEnd()
4954
    iprot.readStructEnd()
4955
 
4956
  def write(self, oprot):
4957
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4958
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4959
      return
4501 mandeep.dh 4960
    oprot.writeStructBegin('scanForOrder_args')
5361 mandeep.dh 4961
    if self.inventoryItem is not None:
4962
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
4963
      self.inventoryItem.write(oprot)
2821 chandransh 4964
      oprot.writeFieldEnd()
3431 rajveer 4965
    if self.type is not None:
4501 mandeep.dh 4966
      oprot.writeFieldBegin('type', TType.I32, 2)
2821 chandransh 4967
      oprot.writeI32(self.type)
4968
      oprot.writeFieldEnd()
4501 mandeep.dh 4969
    if self.quantity is not None:
4970
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4971
      oprot.writeI64(self.quantity)
4972
      oprot.writeFieldEnd()
4973
    if self.orderId is not None:
4974
      oprot.writeFieldBegin('orderId', TType.I64, 4)
4975
      oprot.writeI64(self.orderId)
4976
      oprot.writeFieldEnd()
5110 mandeep.dh 4977
    if self.fulfilmentWarehouseId is not None:
4978
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 5)
4979
      oprot.writeI64(self.fulfilmentWarehouseId)
4501 mandeep.dh 4980
      oprot.writeFieldEnd()
5361 mandeep.dh 4981
    if self.billingWarehouseId is not None:
4982
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)
4983
      oprot.writeI64(self.billingWarehouseId)
4984
      oprot.writeFieldEnd()
2821 chandransh 4985
    oprot.writeFieldStop()
4986
    oprot.writeStructEnd()
4987
 
3431 rajveer 4988
  def validate(self):
4989
    return
4990
 
4991
 
2821 chandransh 4992
  def __repr__(self):
4993
    L = ['%s=%r' % (key, value)
4994
      for key, value in self.__dict__.iteritems()]
4995
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4996
 
4997
  def __eq__(self, other):
4998
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4999
 
5000
  def __ne__(self, other):
5001
    return not (self == other)
5002
 
4501 mandeep.dh 5003
class scanForOrder_result:
2821 chandransh 5004
  """
5005
  Attributes:
5361 mandeep.dh 5006
   - success
2821 chandransh 5007
   - wex
5008
  """
5009
 
5010
  thrift_spec = (
5361 mandeep.dh 5011
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
2821 chandransh 5012
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
5013
  )
5014
 
5361 mandeep.dh 5015
  def __init__(self, success=None, wex=None,):
5016
    self.success = success
2821 chandransh 5017
    self.wex = wex
5018
 
5019
  def read(self, iprot):
5020
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5021
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5022
      return
5023
    iprot.readStructBegin()
5024
    while True:
5025
      (fname, ftype, fid) = iprot.readFieldBegin()
5026
      if ftype == TType.STOP:
5027
        break
5361 mandeep.dh 5028
      if fid == 0:
2821 chandransh 5029
        if ftype == TType.STRUCT:
5361 mandeep.dh 5030
          self.success = InventoryItem()
5031
          self.success.read(iprot)
5032
        else:
5033
          iprot.skip(ftype)
5034
      elif fid == 1:
5035
        if ftype == TType.STRUCT:
2821 chandransh 5036
          self.wex = WarehouseServiceException()
5037
          self.wex.read(iprot)
5038
        else:
5039
          iprot.skip(ftype)
5040
      else:
5041
        iprot.skip(ftype)
5042
      iprot.readFieldEnd()
5043
    iprot.readStructEnd()
5044
 
5045
  def write(self, oprot):
5046
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5047
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5048
      return
4501 mandeep.dh 5049
    oprot.writeStructBegin('scanForOrder_result')
5361 mandeep.dh 5050
    if self.success is not None:
5051
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5052
      self.success.write(oprot)
5053
      oprot.writeFieldEnd()
3431 rajveer 5054
    if self.wex is not None:
2821 chandransh 5055
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
5056
      self.wex.write(oprot)
5057
      oprot.writeFieldEnd()
5058
    oprot.writeFieldStop()
5059
    oprot.writeStructEnd()
5060
 
3431 rajveer 5061
  def validate(self):
5062
    return
5063
 
5064
 
2821 chandransh 5065
  def __repr__(self):
5066
    L = ['%s=%r' % (key, value)
5067
      for key, value in self.__dict__.iteritems()]
5068
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5069
 
5070
  def __eq__(self, other):
5071
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5072
 
5073
  def __ne__(self, other):
5074
    return not (self == other)
4501 mandeep.dh 5075
 
5076
class createItemNumberMapping_args:
5077
  """
5078
  Attributes:
5079
   - itemNumber
5080
   - itemId
5081
  """
5082
 
5083
  thrift_spec = (
5084
    None, # 0
5085
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
5086
    (2, TType.I64, 'itemId', None, None, ), # 2
5087
  )
5088
 
5089
  def __init__(self, itemNumber=None, itemId=None,):
5090
    self.itemNumber = itemNumber
5091
    self.itemId = itemId
5092
 
5093
  def read(self, iprot):
5094
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5095
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5096
      return
5097
    iprot.readStructBegin()
5098
    while True:
5099
      (fname, ftype, fid) = iprot.readFieldBegin()
5100
      if ftype == TType.STOP:
5101
        break
5102
      if fid == 1:
5103
        if ftype == TType.STRING:
5104
          self.itemNumber = iprot.readString();
5105
        else:
5106
          iprot.skip(ftype)
5107
      elif fid == 2:
5108
        if ftype == TType.I64:
5109
          self.itemId = iprot.readI64();
5110
        else:
5111
          iprot.skip(ftype)
5112
      else:
5113
        iprot.skip(ftype)
5114
      iprot.readFieldEnd()
5115
    iprot.readStructEnd()
5116
 
5117
  def write(self, oprot):
5118
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5119
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5120
      return
5121
    oprot.writeStructBegin('createItemNumberMapping_args')
5122
    if self.itemNumber is not None:
5123
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
5124
      oprot.writeString(self.itemNumber)
5125
      oprot.writeFieldEnd()
5126
    if self.itemId is not None:
5127
      oprot.writeFieldBegin('itemId', TType.I64, 2)
5128
      oprot.writeI64(self.itemId)
5129
      oprot.writeFieldEnd()
5130
    oprot.writeFieldStop()
5131
    oprot.writeStructEnd()
5132
 
5133
  def validate(self):
5134
    return
5135
 
5136
 
5137
  def __repr__(self):
5138
    L = ['%s=%r' % (key, value)
5139
      for key, value in self.__dict__.iteritems()]
5140
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5141
 
5142
  def __eq__(self, other):
5143
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5144
 
5145
  def __ne__(self, other):
5146
    return not (self == other)
5147
 
5148
class createItemNumberMapping_result:
5149
 
5150
  thrift_spec = (
5151
  )
5152
 
5153
  def read(self, iprot):
5154
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5155
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5156
      return
5157
    iprot.readStructBegin()
5158
    while True:
5159
      (fname, ftype, fid) = iprot.readFieldBegin()
5160
      if ftype == TType.STOP:
5161
        break
5162
      else:
5163
        iprot.skip(ftype)
5164
      iprot.readFieldEnd()
5165
    iprot.readStructEnd()
5166
 
5167
  def write(self, oprot):
5168
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5169
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5170
      return
5171
    oprot.writeStructBegin('createItemNumberMapping_result')
5172
    oprot.writeFieldStop()
5173
    oprot.writeStructEnd()
5174
 
5175
  def validate(self):
5176
    return
5177
 
5178
 
5179
  def __repr__(self):
5180
    L = ['%s=%r' % (key, value)
5181
      for key, value in self.__dict__.iteritems()]
5182
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5183
 
5184
  def __eq__(self, other):
5185
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5186
 
5187
  def __ne__(self, other):
5188
    return not (self == other)
4620 amit.gupta 5189
 
5190
class getItemNumbers_args:
5191
  """
5192
  Attributes:
5193
   - itemId
5194
  """
5195
 
5196
  thrift_spec = (
5197
    None, # 0
5198
    (1, TType.I64, 'itemId', None, None, ), # 1
5199
  )
5200
 
5201
  def __init__(self, itemId=None,):
5202
    self.itemId = itemId
5203
 
5204
  def read(self, iprot):
5205
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5206
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5207
      return
5208
    iprot.readStructBegin()
5209
    while True:
5210
      (fname, ftype, fid) = iprot.readFieldBegin()
5211
      if ftype == TType.STOP:
5212
        break
5213
      if fid == 1:
5214
        if ftype == TType.I64:
5215
          self.itemId = iprot.readI64();
5216
        else:
5217
          iprot.skip(ftype)
5218
      else:
5219
        iprot.skip(ftype)
5220
      iprot.readFieldEnd()
5221
    iprot.readStructEnd()
5222
 
5223
  def write(self, oprot):
5224
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5225
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5226
      return
5227
    oprot.writeStructBegin('getItemNumbers_args')
5228
    if self.itemId is not None:
5229
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5230
      oprot.writeI64(self.itemId)
5231
      oprot.writeFieldEnd()
5232
    oprot.writeFieldStop()
5233
    oprot.writeStructEnd()
5234
 
5235
  def validate(self):
5236
    return
5237
 
5238
 
5239
  def __repr__(self):
5240
    L = ['%s=%r' % (key, value)
5241
      for key, value in self.__dict__.iteritems()]
5242
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5243
 
5244
  def __eq__(self, other):
5245
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5246
 
5247
  def __ne__(self, other):
5248
    return not (self == other)
5249
 
5250
class getItemNumbers_result:
5251
  """
5252
  Attributes:
5253
   - success
5254
  """
5255
 
5256
  thrift_spec = (
5257
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
5258
  )
5259
 
5260
  def __init__(self, success=None,):
5261
    self.success = success
5262
 
5263
  def read(self, iprot):
5264
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5265
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5266
      return
5267
    iprot.readStructBegin()
5268
    while True:
5269
      (fname, ftype, fid) = iprot.readFieldBegin()
5270
      if ftype == TType.STOP:
5271
        break
5272
      if fid == 0:
5273
        if ftype == TType.LIST:
5274
          self.success = []
5361 mandeep.dh 5275
          (_etype3, _size0) = iprot.readListBegin()
5276
          for _i4 in xrange(_size0):
5277
            _elem5 = iprot.readString();
5278
            self.success.append(_elem5)
4620 amit.gupta 5279
          iprot.readListEnd()
5280
        else:
5281
          iprot.skip(ftype)
5282
      else:
5283
        iprot.skip(ftype)
5284
      iprot.readFieldEnd()
5285
    iprot.readStructEnd()
5286
 
5287
  def write(self, oprot):
5288
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5289
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5290
      return
5291
    oprot.writeStructBegin('getItemNumbers_result')
5292
    if self.success is not None:
5293
      oprot.writeFieldBegin('success', TType.LIST, 0)
5294
      oprot.writeListBegin(TType.STRING, len(self.success))
5361 mandeep.dh 5295
      for iter6 in self.success:
5296
        oprot.writeString(iter6)
4620 amit.gupta 5297
      oprot.writeListEnd()
5298
      oprot.writeFieldEnd()
5299
    oprot.writeFieldStop()
5300
    oprot.writeStructEnd()
5301
 
5302
  def validate(self):
5303
    return
5304
 
5305
 
5306
  def __repr__(self):
5307
    L = ['%s=%r' % (key, value)
5308
      for key, value in self.__dict__.iteritems()]
5309
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5310
 
5311
  def __eq__(self, other):
5312
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5313
 
5314
  def __ne__(self, other):
5315
    return not (self == other)
5110 mandeep.dh 5316
 
5317
class getItemIds_args:
5318
  """
5319
  Attributes:
5320
   - itemNumber
5321
  """
5322
 
5323
  thrift_spec = (
5324
    None, # 0
5325
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
5326
  )
5327
 
5328
  def __init__(self, itemNumber=None,):
5329
    self.itemNumber = itemNumber
5330
 
5331
  def read(self, iprot):
5332
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5333
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5334
      return
5335
    iprot.readStructBegin()
5336
    while True:
5337
      (fname, ftype, fid) = iprot.readFieldBegin()
5338
      if ftype == TType.STOP:
5339
        break
5340
      if fid == 1:
5341
        if ftype == TType.STRING:
5342
          self.itemNumber = iprot.readString();
5343
        else:
5344
          iprot.skip(ftype)
5345
      else:
5346
        iprot.skip(ftype)
5347
      iprot.readFieldEnd()
5348
    iprot.readStructEnd()
5349
 
5350
  def write(self, oprot):
5351
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5352
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5353
      return
5354
    oprot.writeStructBegin('getItemIds_args')
5355
    if self.itemNumber is not None:
5356
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
5357
      oprot.writeString(self.itemNumber)
5358
      oprot.writeFieldEnd()
5359
    oprot.writeFieldStop()
5360
    oprot.writeStructEnd()
5361
 
5362
  def validate(self):
5363
    return
5364
 
5365
 
5366
  def __repr__(self):
5367
    L = ['%s=%r' % (key, value)
5368
      for key, value in self.__dict__.iteritems()]
5369
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5370
 
5371
  def __eq__(self, other):
5372
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5373
 
5374
  def __ne__(self, other):
5375
    return not (self == other)
5376
 
5377
class getItemIds_result:
5378
  """
5379
  Attributes:
5380
   - success
5381
  """
5382
 
5383
  thrift_spec = (
5384
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5385
  )
5386
 
5387
  def __init__(self, success=None,):
5388
    self.success = success
5389
 
5390
  def read(self, iprot):
5391
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5392
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5393
      return
5394
    iprot.readStructBegin()
5395
    while True:
5396
      (fname, ftype, fid) = iprot.readFieldBegin()
5397
      if ftype == TType.STOP:
5398
        break
5399
      if fid == 0:
5400
        if ftype == TType.LIST:
5401
          self.success = []
5361 mandeep.dh 5402
          (_etype10, _size7) = iprot.readListBegin()
5403
          for _i11 in xrange(_size7):
5404
            _elem12 = iprot.readI64();
5405
            self.success.append(_elem12)
5110 mandeep.dh 5406
          iprot.readListEnd()
5407
        else:
5408
          iprot.skip(ftype)
5409
      else:
5410
        iprot.skip(ftype)
5411
      iprot.readFieldEnd()
5412
    iprot.readStructEnd()
5413
 
5414
  def write(self, oprot):
5415
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5416
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5417
      return
5418
    oprot.writeStructBegin('getItemIds_result')
5419
    if self.success is not None:
5420
      oprot.writeFieldBegin('success', TType.LIST, 0)
5421
      oprot.writeListBegin(TType.I64, len(self.success))
5361 mandeep.dh 5422
      for iter13 in self.success:
5423
        oprot.writeI64(iter13)
5110 mandeep.dh 5424
      oprot.writeListEnd()
5425
      oprot.writeFieldEnd()
5426
    oprot.writeFieldStop()
5427
    oprot.writeStructEnd()
5428
 
5429
  def validate(self):
5430
    return
5431
 
5432
 
5433
  def __repr__(self):
5434
    L = ['%s=%r' % (key, value)
5435
      for key, value in self.__dict__.iteritems()]
5436
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5437
 
5438
  def __eq__(self, other):
5439
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5440
 
5441
  def __ne__(self, other):
5442
    return not (self == other)
5185 mandeep.dh 5443
 
5444
class getInventoryItemsFromLastScanType_args:
5445
  """
5446
  Attributes:
5447
   - lastScanType
5448
  """
5449
 
5450
  thrift_spec = (
5451
    None, # 0
5452
    (1, TType.I32, 'lastScanType', None, None, ), # 1
5453
  )
5454
 
5455
  def __init__(self, lastScanType=None,):
5456
    self.lastScanType = lastScanType
5457
 
5458
  def read(self, iprot):
5459
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5460
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5461
      return
5462
    iprot.readStructBegin()
5463
    while True:
5464
      (fname, ftype, fid) = iprot.readFieldBegin()
5465
      if ftype == TType.STOP:
5466
        break
5467
      if fid == 1:
5468
        if ftype == TType.I32:
5469
          self.lastScanType = iprot.readI32();
5470
        else:
5471
          iprot.skip(ftype)
5472
      else:
5473
        iprot.skip(ftype)
5474
      iprot.readFieldEnd()
5475
    iprot.readStructEnd()
5476
 
5477
  def write(self, oprot):
5478
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5479
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5480
      return
5481
    oprot.writeStructBegin('getInventoryItemsFromLastScanType_args')
5482
    if self.lastScanType is not None:
5483
      oprot.writeFieldBegin('lastScanType', TType.I32, 1)
5484
      oprot.writeI32(self.lastScanType)
5485
      oprot.writeFieldEnd()
5486
    oprot.writeFieldStop()
5487
    oprot.writeStructEnd()
5488
 
5489
  def validate(self):
5490
    return
5491
 
5492
 
5493
  def __repr__(self):
5494
    L = ['%s=%r' % (key, value)
5495
      for key, value in self.__dict__.iteritems()]
5496
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5497
 
5498
  def __eq__(self, other):
5499
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5500
 
5501
  def __ne__(self, other):
5502
    return not (self == other)
5503
 
5504
class getInventoryItemsFromLastScanType_result:
5505
  """
5506
  Attributes:
5507
   - success
5508
   - wex
5509
  """
5510
 
5511
  thrift_spec = (
5512
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
5513
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
5514
  )
5515
 
5516
  def __init__(self, success=None, wex=None,):
5517
    self.success = success
5518
    self.wex = wex
5519
 
5520
  def read(self, iprot):
5521
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5522
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5523
      return
5524
    iprot.readStructBegin()
5525
    while True:
5526
      (fname, ftype, fid) = iprot.readFieldBegin()
5527
      if ftype == TType.STOP:
5528
        break
5529
      if fid == 0:
5530
        if ftype == TType.LIST:
5531
          self.success = []
5361 mandeep.dh 5532
          (_etype17, _size14) = iprot.readListBegin()
5533
          for _i18 in xrange(_size14):
5534
            _elem19 = InventoryItem()
5535
            _elem19.read(iprot)
5536
            self.success.append(_elem19)
5185 mandeep.dh 5537
          iprot.readListEnd()
5538
        else:
5539
          iprot.skip(ftype)
5540
      elif fid == 1:
5541
        if ftype == TType.STRUCT:
5542
          self.wex = WarehouseServiceException()
5543
          self.wex.read(iprot)
5544
        else:
5545
          iprot.skip(ftype)
5546
      else:
5547
        iprot.skip(ftype)
5548
      iprot.readFieldEnd()
5549
    iprot.readStructEnd()
5550
 
5551
  def write(self, oprot):
5552
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5553
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5554
      return
5555
    oprot.writeStructBegin('getInventoryItemsFromLastScanType_result')
5556
    if self.success is not None:
5557
      oprot.writeFieldBegin('success', TType.LIST, 0)
5558
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5361 mandeep.dh 5559
      for iter20 in self.success:
5560
        iter20.write(oprot)
5185 mandeep.dh 5561
      oprot.writeListEnd()
5562
      oprot.writeFieldEnd()
5563
    if self.wex is not None:
5564
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
5565
      self.wex.write(oprot)
5566
      oprot.writeFieldEnd()
5567
    oprot.writeFieldStop()
5568
    oprot.writeStructEnd()
5569
 
5570
  def validate(self):
5571
    return
5572
 
5573
 
5574
  def __repr__(self):
5575
    L = ['%s=%r' % (key, value)
5576
      for key, value in self.__dict__.iteritems()]
5577
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5578
 
5579
  def __eq__(self, other):
5580
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5581
 
5582
  def __ne__(self, other):
5583
    return not (self == other)
5584
 
5585
class getInventoryItemFromId_args:
5586
  """
5587
  Attributes:
5588
   - inventoryItemId
5589
  """
5590
 
5591
  thrift_spec = (
5592
    None, # 0
5593
    (1, TType.I64, 'inventoryItemId', None, None, ), # 1
5594
  )
5595
 
5596
  def __init__(self, inventoryItemId=None,):
5597
    self.inventoryItemId = inventoryItemId
5598
 
5599
  def read(self, iprot):
5600
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5601
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5602
      return
5603
    iprot.readStructBegin()
5604
    while True:
5605
      (fname, ftype, fid) = iprot.readFieldBegin()
5606
      if ftype == TType.STOP:
5607
        break
5608
      if fid == 1:
5609
        if ftype == TType.I64:
5610
          self.inventoryItemId = iprot.readI64();
5611
        else:
5612
          iprot.skip(ftype)
5613
      else:
5614
        iprot.skip(ftype)
5615
      iprot.readFieldEnd()
5616
    iprot.readStructEnd()
5617
 
5618
  def write(self, oprot):
5619
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5620
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5621
      return
5622
    oprot.writeStructBegin('getInventoryItemFromId_args')
5623
    if self.inventoryItemId is not None:
5624
      oprot.writeFieldBegin('inventoryItemId', TType.I64, 1)
5625
      oprot.writeI64(self.inventoryItemId)
5626
      oprot.writeFieldEnd()
5627
    oprot.writeFieldStop()
5628
    oprot.writeStructEnd()
5629
 
5630
  def validate(self):
5631
    return
5632
 
5633
 
5634
  def __repr__(self):
5635
    L = ['%s=%r' % (key, value)
5636
      for key, value in self.__dict__.iteritems()]
5637
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5638
 
5639
  def __eq__(self, other):
5640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5641
 
5642
  def __ne__(self, other):
5643
    return not (self == other)
5644
 
5645
class getInventoryItemFromId_result:
5646
  """
5647
  Attributes:
5648
   - success
5649
   - wex
5650
  """
5651
 
5652
  thrift_spec = (
5653
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
5654
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
5655
  )
5656
 
5657
  def __init__(self, success=None, wex=None,):
5658
    self.success = success
5659
    self.wex = wex
5660
 
5661
  def read(self, iprot):
5662
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5663
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5664
      return
5665
    iprot.readStructBegin()
5666
    while True:
5667
      (fname, ftype, fid) = iprot.readFieldBegin()
5668
      if ftype == TType.STOP:
5669
        break
5670
      if fid == 0:
5671
        if ftype == TType.STRUCT:
5672
          self.success = InventoryItem()
5673
          self.success.read(iprot)
5674
        else:
5675
          iprot.skip(ftype)
5676
      elif fid == 1:
5677
        if ftype == TType.STRUCT:
5678
          self.wex = WarehouseServiceException()
5679
          self.wex.read(iprot)
5680
        else:
5681
          iprot.skip(ftype)
5682
      else:
5683
        iprot.skip(ftype)
5684
      iprot.readFieldEnd()
5685
    iprot.readStructEnd()
5686
 
5687
  def write(self, oprot):
5688
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5689
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5690
      return
5691
    oprot.writeStructBegin('getInventoryItemFromId_result')
5692
    if self.success is not None:
5693
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5694
      self.success.write(oprot)
5695
      oprot.writeFieldEnd()
5696
    if self.wex is not None:
5697
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
5698
      self.wex.write(oprot)
5699
      oprot.writeFieldEnd()
5700
    oprot.writeFieldStop()
5701
    oprot.writeStructEnd()
5702
 
5703
  def validate(self):
5704
    return
5705
 
5706
 
5707
  def __repr__(self):
5708
    L = ['%s=%r' % (key, value)
5709
      for key, value in self.__dict__.iteritems()]
5710
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5711
 
5712
  def __eq__(self, other):
5713
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5714
 
5715
  def __ne__(self, other):
5716
    return not (self == other)
5372 mandeep.dh 5717
 
5718
class getPurchaseScans_args:
5719
  """
5720
  Attributes:
5721
   - startDate
5722
   - endDate
5723
  """
5724
 
5725
  thrift_spec = (
5726
    None, # 0
5727
    (1, TType.I64, 'startDate', None, None, ), # 1
5728
    (2, TType.I64, 'endDate', None, None, ), # 2
5729
  )
5730
 
5731
  def __init__(self, startDate=None, endDate=None,):
5732
    self.startDate = startDate
5733
    self.endDate = endDate
5734
 
5735
  def read(self, iprot):
5736
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5737
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5738
      return
5739
    iprot.readStructBegin()
5740
    while True:
5741
      (fname, ftype, fid) = iprot.readFieldBegin()
5742
      if ftype == TType.STOP:
5743
        break
5744
      if fid == 1:
5745
        if ftype == TType.I64:
5746
          self.startDate = iprot.readI64();
5747
        else:
5748
          iprot.skip(ftype)
5749
      elif fid == 2:
5750
        if ftype == TType.I64:
5751
          self.endDate = iprot.readI64();
5752
        else:
5753
          iprot.skip(ftype)
5754
      else:
5755
        iprot.skip(ftype)
5756
      iprot.readFieldEnd()
5757
    iprot.readStructEnd()
5758
 
5759
  def write(self, oprot):
5760
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5761
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5762
      return
5763
    oprot.writeStructBegin('getPurchaseScans_args')
5764
    if self.startDate is not None:
5765
      oprot.writeFieldBegin('startDate', TType.I64, 1)
5766
      oprot.writeI64(self.startDate)
5767
      oprot.writeFieldEnd()
5768
    if self.endDate is not None:
5769
      oprot.writeFieldBegin('endDate', TType.I64, 2)
5770
      oprot.writeI64(self.endDate)
5771
      oprot.writeFieldEnd()
5772
    oprot.writeFieldStop()
5773
    oprot.writeStructEnd()
5774
 
5775
  def validate(self):
5776
    return
5777
 
5778
 
5779
  def __repr__(self):
5780
    L = ['%s=%r' % (key, value)
5781
      for key, value in self.__dict__.iteritems()]
5782
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5783
 
5784
  def __eq__(self, other):
5785
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5786
 
5787
  def __ne__(self, other):
5788
    return not (self == other)
5789
 
5790
class getPurchaseScans_result:
5791
  """
5792
  Attributes:
5793
   - success
5794
  """
5795
 
5796
  thrift_spec = (
5797
    (0, TType.LIST, 'success', (TType.STRUCT,(DetailedPurchaseScan, DetailedPurchaseScan.thrift_spec)), None, ), # 0
5798
  )
5799
 
5800
  def __init__(self, success=None,):
5801
    self.success = success
5802
 
5803
  def read(self, iprot):
5804
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5805
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5806
      return
5807
    iprot.readStructBegin()
5808
    while True:
5809
      (fname, ftype, fid) = iprot.readFieldBegin()
5810
      if ftype == TType.STOP:
5811
        break
5812
      if fid == 0:
5813
        if ftype == TType.LIST:
5814
          self.success = []
5815
          (_etype24, _size21) = iprot.readListBegin()
5816
          for _i25 in xrange(_size21):
5817
            _elem26 = DetailedPurchaseScan()
5818
            _elem26.read(iprot)
5819
            self.success.append(_elem26)
5820
          iprot.readListEnd()
5821
        else:
5822
          iprot.skip(ftype)
5823
      else:
5824
        iprot.skip(ftype)
5825
      iprot.readFieldEnd()
5826
    iprot.readStructEnd()
5827
 
5828
  def write(self, oprot):
5829
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5830
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5831
      return
5832
    oprot.writeStructBegin('getPurchaseScans_result')
5833
    if self.success is not None:
5834
      oprot.writeFieldBegin('success', TType.LIST, 0)
5835
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5836
      for iter27 in self.success:
5837
        iter27.write(oprot)
5838
      oprot.writeListEnd()
5839
      oprot.writeFieldEnd()
5840
    oprot.writeFieldStop()
5841
    oprot.writeStructEnd()
5842
 
5843
  def validate(self):
5844
    return
5845
 
5846
 
5847
  def __repr__(self):
5848
    L = ['%s=%r' % (key, value)
5849
      for key, value in self.__dict__.iteritems()]
5850
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5851
 
5852
  def __eq__(self, other):
5853
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5854
 
5855
  def __ne__(self, other):
5856
    return not (self == other)
5496 mandeep.dh 5857
 
7216 amar.kumar 5858
class getPurchaseScansByGrnDate_args:
5859
  """
5860
  Attributes:
5861
   - startDate
5862
   - endDate
5863
  """
5864
 
5865
  thrift_spec = (
5866
    None, # 0
5867
    (1, TType.I64, 'startDate', None, None, ), # 1
5868
    (2, TType.I64, 'endDate', None, None, ), # 2
5869
  )
5870
 
5871
  def __init__(self, startDate=None, endDate=None,):
5872
    self.startDate = startDate
5873
    self.endDate = endDate
5874
 
5875
  def read(self, iprot):
5876
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5877
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5878
      return
5879
    iprot.readStructBegin()
5880
    while True:
5881
      (fname, ftype, fid) = iprot.readFieldBegin()
5882
      if ftype == TType.STOP:
5883
        break
5884
      if fid == 1:
5885
        if ftype == TType.I64:
5886
          self.startDate = iprot.readI64();
5887
        else:
5888
          iprot.skip(ftype)
5889
      elif fid == 2:
5890
        if ftype == TType.I64:
5891
          self.endDate = iprot.readI64();
5892
        else:
5893
          iprot.skip(ftype)
5894
      else:
5895
        iprot.skip(ftype)
5896
      iprot.readFieldEnd()
5897
    iprot.readStructEnd()
5898
 
5899
  def write(self, oprot):
5900
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5901
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5902
      return
5903
    oprot.writeStructBegin('getPurchaseScansByGrnDate_args')
5904
    if self.startDate is not None:
5905
      oprot.writeFieldBegin('startDate', TType.I64, 1)
5906
      oprot.writeI64(self.startDate)
5907
      oprot.writeFieldEnd()
5908
    if self.endDate is not None:
5909
      oprot.writeFieldBegin('endDate', TType.I64, 2)
5910
      oprot.writeI64(self.endDate)
5911
      oprot.writeFieldEnd()
5912
    oprot.writeFieldStop()
5913
    oprot.writeStructEnd()
5914
 
5915
  def validate(self):
5916
    return
5917
 
5918
 
5919
  def __repr__(self):
5920
    L = ['%s=%r' % (key, value)
5921
      for key, value in self.__dict__.iteritems()]
5922
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5923
 
5924
  def __eq__(self, other):
5925
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5926
 
5927
  def __ne__(self, other):
5928
    return not (self == other)
5929
 
5930
class getPurchaseScansByGrnDate_result:
5931
  """
5932
  Attributes:
5933
   - success
5934
  """
5935
 
5936
  thrift_spec = (
5937
    (0, TType.LIST, 'success', (TType.STRUCT,(DetailedPurchaseScan, DetailedPurchaseScan.thrift_spec)), None, ), # 0
5938
  )
5939
 
5940
  def __init__(self, success=None,):
5941
    self.success = success
5942
 
5943
  def read(self, iprot):
5944
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5945
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5946
      return
5947
    iprot.readStructBegin()
5948
    while True:
5949
      (fname, ftype, fid) = iprot.readFieldBegin()
5950
      if ftype == TType.STOP:
5951
        break
5952
      if fid == 0:
5953
        if ftype == TType.LIST:
5954
          self.success = []
5955
          (_etype31, _size28) = iprot.readListBegin()
5956
          for _i32 in xrange(_size28):
5957
            _elem33 = DetailedPurchaseScan()
5958
            _elem33.read(iprot)
5959
            self.success.append(_elem33)
5960
          iprot.readListEnd()
5961
        else:
5962
          iprot.skip(ftype)
5963
      else:
5964
        iprot.skip(ftype)
5965
      iprot.readFieldEnd()
5966
    iprot.readStructEnd()
5967
 
5968
  def write(self, oprot):
5969
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5970
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5971
      return
5972
    oprot.writeStructBegin('getPurchaseScansByGrnDate_result')
5973
    if self.success is not None:
5974
      oprot.writeFieldBegin('success', TType.LIST, 0)
5975
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5976
      for iter34 in self.success:
5977
        iter34.write(oprot)
5978
      oprot.writeListEnd()
5979
      oprot.writeFieldEnd()
5980
    oprot.writeFieldStop()
5981
    oprot.writeStructEnd()
5982
 
5983
  def validate(self):
5984
    return
5985
 
5986
 
5987
  def __repr__(self):
5988
    L = ['%s=%r' % (key, value)
5989
      for key, value in self.__dict__.iteritems()]
5990
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5991
 
5992
  def __eq__(self, other):
5993
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5994
 
5995
  def __ne__(self, other):
5996
    return not (self == other)
5997
 
10407 amar.kumar 5998
class getEmptyGrnsByDate_args:
5999
  """
6000
  Attributes:
6001
   - startDate
6002
   - endDate
6003
  """
6004
 
6005
  thrift_spec = (
6006
    None, # 0
6007
    (1, TType.I64, 'startDate', None, None, ), # 1
6008
    (2, TType.I64, 'endDate', None, None, ), # 2
6009
  )
6010
 
6011
  def __init__(self, startDate=None, endDate=None,):
6012
    self.startDate = startDate
6013
    self.endDate = endDate
6014
 
6015
  def read(self, iprot):
6016
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6017
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6018
      return
6019
    iprot.readStructBegin()
6020
    while True:
6021
      (fname, ftype, fid) = iprot.readFieldBegin()
6022
      if ftype == TType.STOP:
6023
        break
6024
      if fid == 1:
6025
        if ftype == TType.I64:
6026
          self.startDate = iprot.readI64();
6027
        else:
6028
          iprot.skip(ftype)
6029
      elif fid == 2:
6030
        if ftype == TType.I64:
6031
          self.endDate = iprot.readI64();
6032
        else:
6033
          iprot.skip(ftype)
6034
      else:
6035
        iprot.skip(ftype)
6036
      iprot.readFieldEnd()
6037
    iprot.readStructEnd()
6038
 
6039
  def write(self, oprot):
6040
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6041
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6042
      return
6043
    oprot.writeStructBegin('getEmptyGrnsByDate_args')
6044
    if self.startDate is not None:
6045
      oprot.writeFieldBegin('startDate', TType.I64, 1)
6046
      oprot.writeI64(self.startDate)
6047
      oprot.writeFieldEnd()
6048
    if self.endDate is not None:
6049
      oprot.writeFieldBegin('endDate', TType.I64, 2)
6050
      oprot.writeI64(self.endDate)
6051
      oprot.writeFieldEnd()
6052
    oprot.writeFieldStop()
6053
    oprot.writeStructEnd()
6054
 
6055
  def validate(self):
6056
    return
6057
 
6058
 
6059
  def __repr__(self):
6060
    L = ['%s=%r' % (key, value)
6061
      for key, value in self.__dict__.iteritems()]
6062
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6063
 
6064
  def __eq__(self, other):
6065
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6066
 
6067
  def __ne__(self, other):
6068
    return not (self == other)
6069
 
6070
class getEmptyGrnsByDate_result:
6071
  """
6072
  Attributes:
6073
   - success
6074
  """
6075
 
6076
  thrift_spec = (
6077
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6078
  )
6079
 
6080
  def __init__(self, success=None,):
6081
    self.success = success
6082
 
6083
  def read(self, iprot):
6084
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6085
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6086
      return
6087
    iprot.readStructBegin()
6088
    while True:
6089
      (fname, ftype, fid) = iprot.readFieldBegin()
6090
      if ftype == TType.STOP:
6091
        break
6092
      if fid == 0:
6093
        if ftype == TType.LIST:
6094
          self.success = []
6095
          (_etype38, _size35) = iprot.readListBegin()
6096
          for _i39 in xrange(_size35):
6097
            _elem40 = iprot.readI64();
6098
            self.success.append(_elem40)
6099
          iprot.readListEnd()
6100
        else:
6101
          iprot.skip(ftype)
6102
      else:
6103
        iprot.skip(ftype)
6104
      iprot.readFieldEnd()
6105
    iprot.readStructEnd()
6106
 
6107
  def write(self, oprot):
6108
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6109
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6110
      return
6111
    oprot.writeStructBegin('getEmptyGrnsByDate_result')
6112
    if self.success is not None:
6113
      oprot.writeFieldBegin('success', TType.LIST, 0)
6114
      oprot.writeListBegin(TType.I64, len(self.success))
6115
      for iter41 in self.success:
6116
        oprot.writeI64(iter41)
6117
      oprot.writeListEnd()
6118
      oprot.writeFieldEnd()
6119
    oprot.writeFieldStop()
6120
    oprot.writeStructEnd()
6121
 
6122
  def validate(self):
6123
    return
6124
 
6125
 
6126
  def __repr__(self):
6127
    L = ['%s=%r' % (key, value)
6128
      for key, value in self.__dict__.iteritems()]
6129
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6130
 
6131
  def __eq__(self, other):
6132
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6133
 
6134
  def __ne__(self, other):
6135
    return not (self == other)
6136
 
5496 mandeep.dh 6137
class fetchScansPerInvoiceNumber_args:
6138
  """
6139
  Attributes:
6140
   - date
6141
  """
6142
 
6143
  thrift_spec = (
6144
    None, # 0
6145
    (1, TType.I64, 'date', None, None, ), # 1
6146
  )
6147
 
6148
  def __init__(self, date=None,):
6149
    self.date = date
6150
 
6151
  def read(self, iprot):
6152
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6153
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6154
      return
6155
    iprot.readStructBegin()
6156
    while True:
6157
      (fname, ftype, fid) = iprot.readFieldBegin()
6158
      if ftype == TType.STOP:
6159
        break
6160
      if fid == 1:
6161
        if ftype == TType.I64:
6162
          self.date = iprot.readI64();
6163
        else:
6164
          iprot.skip(ftype)
6165
      else:
6166
        iprot.skip(ftype)
6167
      iprot.readFieldEnd()
6168
    iprot.readStructEnd()
6169
 
6170
  def write(self, oprot):
6171
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6172
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6173
      return
6174
    oprot.writeStructBegin('fetchScansPerInvoiceNumber_args')
6175
    if self.date is not None:
6176
      oprot.writeFieldBegin('date', TType.I64, 1)
6177
      oprot.writeI64(self.date)
6178
      oprot.writeFieldEnd()
6179
    oprot.writeFieldStop()
6180
    oprot.writeStructEnd()
6181
 
6182
  def validate(self):
6183
    return
6184
 
6185
 
6186
  def __repr__(self):
6187
    L = ['%s=%r' % (key, value)
6188
      for key, value in self.__dict__.iteritems()]
6189
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6190
 
6191
  def __eq__(self, other):
6192
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6193
 
6194
  def __ne__(self, other):
6195
    return not (self == other)
6196
 
6197
class fetchScansPerInvoiceNumber_result:
6198
  """
6199
  Attributes:
6200
   - success
6201
  """
6202
 
6203
  thrift_spec = (
6204
    (0, TType.LIST, 'success', (TType.STRUCT,(InvoiceScan, InvoiceScan.thrift_spec)), None, ), # 0
6205
  )
6206
 
6207
  def __init__(self, success=None,):
6208
    self.success = success
6209
 
6210
  def read(self, iprot):
6211
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6212
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6213
      return
6214
    iprot.readStructBegin()
6215
    while True:
6216
      (fname, ftype, fid) = iprot.readFieldBegin()
6217
      if ftype == TType.STOP:
6218
        break
6219
      if fid == 0:
6220
        if ftype == TType.LIST:
6221
          self.success = []
10407 amar.kumar 6222
          (_etype45, _size42) = iprot.readListBegin()
6223
          for _i46 in xrange(_size42):
6224
            _elem47 = InvoiceScan()
6225
            _elem47.read(iprot)
6226
            self.success.append(_elem47)
5496 mandeep.dh 6227
          iprot.readListEnd()
6228
        else:
6229
          iprot.skip(ftype)
6230
      else:
6231
        iprot.skip(ftype)
6232
      iprot.readFieldEnd()
6233
    iprot.readStructEnd()
6234
 
6235
  def write(self, oprot):
6236
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6237
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6238
      return
6239
    oprot.writeStructBegin('fetchScansPerInvoiceNumber_result')
6240
    if self.success is not None:
6241
      oprot.writeFieldBegin('success', TType.LIST, 0)
6242
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6243
      for iter48 in self.success:
6244
        iter48.write(oprot)
5496 mandeep.dh 6245
      oprot.writeListEnd()
6246
      oprot.writeFieldEnd()
6247
    oprot.writeFieldStop()
6248
    oprot.writeStructEnd()
6249
 
6250
  def validate(self):
6251
    return
6252
 
6253
 
6254
  def __repr__(self):
6255
    L = ['%s=%r' % (key, value)
6256
      for key, value in self.__dict__.iteritems()]
6257
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6258
 
6259
  def __eq__(self, other):
6260
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6261
 
6262
  def __ne__(self, other):
6263
    return not (self == other)
5620 mandeep.dh 6264
 
6265
class getInventoryItemFromOrder_args:
6266
  """
6267
  Attributes:
6268
   - orderId
6269
  """
6270
 
6271
  thrift_spec = (
6272
    None, # 0
6273
    (1, TType.I64, 'orderId', None, None, ), # 1
6274
  )
6275
 
6276
  def __init__(self, orderId=None,):
6277
    self.orderId = orderId
6278
 
6279
  def read(self, iprot):
6280
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6281
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6282
      return
6283
    iprot.readStructBegin()
6284
    while True:
6285
      (fname, ftype, fid) = iprot.readFieldBegin()
6286
      if ftype == TType.STOP:
6287
        break
6288
      if fid == 1:
6289
        if ftype == TType.I64:
6290
          self.orderId = iprot.readI64();
6291
        else:
6292
          iprot.skip(ftype)
6293
      else:
6294
        iprot.skip(ftype)
6295
      iprot.readFieldEnd()
6296
    iprot.readStructEnd()
6297
 
6298
  def write(self, oprot):
6299
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6300
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6301
      return
6302
    oprot.writeStructBegin('getInventoryItemFromOrder_args')
6303
    if self.orderId is not None:
6304
      oprot.writeFieldBegin('orderId', TType.I64, 1)
6305
      oprot.writeI64(self.orderId)
6306
      oprot.writeFieldEnd()
6307
    oprot.writeFieldStop()
6308
    oprot.writeStructEnd()
6309
 
6310
  def validate(self):
6311
    return
6312
 
6313
 
6314
  def __repr__(self):
6315
    L = ['%s=%r' % (key, value)
6316
      for key, value in self.__dict__.iteritems()]
6317
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6318
 
6319
  def __eq__(self, other):
6320
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6321
 
6322
  def __ne__(self, other):
6323
    return not (self == other)
6324
 
6325
class getInventoryItemFromOrder_result:
6326
  """
6327
  Attributes:
6328
   - success
6329
   - we
6330
  """
6331
 
6332
  thrift_spec = (
6333
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
6334
    (1, TType.STRUCT, 'we', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6335
  )
6336
 
6337
  def __init__(self, success=None, we=None,):
6338
    self.success = success
6339
    self.we = we
6340
 
6341
  def read(self, iprot):
6342
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6343
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6344
      return
6345
    iprot.readStructBegin()
6346
    while True:
6347
      (fname, ftype, fid) = iprot.readFieldBegin()
6348
      if ftype == TType.STOP:
6349
        break
6350
      if fid == 0:
6351
        if ftype == TType.STRUCT:
6352
          self.success = InventoryItem()
6353
          self.success.read(iprot)
6354
        else:
6355
          iprot.skip(ftype)
6356
      elif fid == 1:
6357
        if ftype == TType.STRUCT:
6358
          self.we = WarehouseServiceException()
6359
          self.we.read(iprot)
6360
        else:
6361
          iprot.skip(ftype)
6362
      else:
6363
        iprot.skip(ftype)
6364
      iprot.readFieldEnd()
6365
    iprot.readStructEnd()
6366
 
6367
  def write(self, oprot):
6368
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6369
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6370
      return
6371
    oprot.writeStructBegin('getInventoryItemFromOrder_result')
6372
    if self.success is not None:
6373
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6374
      self.success.write(oprot)
6375
      oprot.writeFieldEnd()
6376
    if self.we is not None:
6377
      oprot.writeFieldBegin('we', TType.STRUCT, 1)
6378
      self.we.write(oprot)
6379
      oprot.writeFieldEnd()
6380
    oprot.writeFieldStop()
6381
    oprot.writeStructEnd()
6382
 
6383
  def validate(self):
6384
    return
6385
 
6386
 
6387
  def __repr__(self):
6388
    L = ['%s=%r' % (key, value)
6389
      for key, value in self.__dict__.iteritems()]
6390
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6391
 
6392
  def __eq__(self, other):
6393
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6394
 
6395
  def __ne__(self, other):
6396
    return not (self == other)
5711 mandeep.dh 6397
 
6398
class getInventoryAge_args:
6399
 
6400
  thrift_spec = (
6401
  )
6402
 
6403
  def read(self, iprot):
6404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6406
      return
6407
    iprot.readStructBegin()
6408
    while True:
6409
      (fname, ftype, fid) = iprot.readFieldBegin()
6410
      if ftype == TType.STOP:
6411
        break
6412
      else:
6413
        iprot.skip(ftype)
6414
      iprot.readFieldEnd()
6415
    iprot.readStructEnd()
6416
 
6417
  def write(self, oprot):
6418
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6419
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6420
      return
6421
    oprot.writeStructBegin('getInventoryAge_args')
6422
    oprot.writeFieldStop()
6423
    oprot.writeStructEnd()
6424
 
6425
  def validate(self):
6426
    return
6427
 
6428
 
6429
  def __repr__(self):
6430
    L = ['%s=%r' % (key, value)
6431
      for key, value in self.__dict__.iteritems()]
6432
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6433
 
6434
  def __eq__(self, other):
6435
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6436
 
6437
  def __ne__(self, other):
6438
    return not (self == other)
6439
 
6440
class getInventoryAge_result:
6441
  """
6442
  Attributes:
6443
   - success
6444
  """
6445
 
6446
  thrift_spec = (
6447
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAge, InventoryAge.thrift_spec)), None, ), # 0
6448
  )
6449
 
6450
  def __init__(self, success=None,):
6451
    self.success = success
6452
 
6453
  def read(self, iprot):
6454
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6455
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6456
      return
6457
    iprot.readStructBegin()
6458
    while True:
6459
      (fname, ftype, fid) = iprot.readFieldBegin()
6460
      if ftype == TType.STOP:
6461
        break
6462
      if fid == 0:
6463
        if ftype == TType.LIST:
6464
          self.success = []
10407 amar.kumar 6465
          (_etype52, _size49) = iprot.readListBegin()
6466
          for _i53 in xrange(_size49):
6467
            _elem54 = InventoryAge()
6468
            _elem54.read(iprot)
6469
            self.success.append(_elem54)
5711 mandeep.dh 6470
          iprot.readListEnd()
6471
        else:
6472
          iprot.skip(ftype)
6473
      else:
6474
        iprot.skip(ftype)
6475
      iprot.readFieldEnd()
6476
    iprot.readStructEnd()
6477
 
6478
  def write(self, oprot):
6479
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6480
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6481
      return
6482
    oprot.writeStructBegin('getInventoryAge_result')
6483
    if self.success is not None:
6484
      oprot.writeFieldBegin('success', TType.LIST, 0)
6485
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6486
      for iter55 in self.success:
6487
        iter55.write(oprot)
5711 mandeep.dh 6488
      oprot.writeListEnd()
6489
      oprot.writeFieldEnd()
6490
    oprot.writeFieldStop()
6491
    oprot.writeStructEnd()
6492
 
6493
  def validate(self):
6494
    return
6495
 
6496
 
6497
  def __repr__(self):
6498
    L = ['%s=%r' % (key, value)
6499
      for key, value in self.__dict__.iteritems()]
6500
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6501
 
6502
  def __eq__(self, other):
6503
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6504
 
6505
  def __ne__(self, other):
6506
    return not (self == other)
6361 rajveer 6507
 
6508
class getInventoryScansForItem_args:
6509
  """
6510
  Attributes:
6511
   - itemId
6512
   - fromDate
6513
   - toDate
6514
  """
6515
 
6516
  thrift_spec = (
6517
    None, # 0
6518
    (1, TType.I64, 'itemId', None, None, ), # 1
6519
    (2, TType.I64, 'fromDate', None, None, ), # 2
6520
    (3, TType.I64, 'toDate', None, None, ), # 3
6521
  )
6522
 
6523
  def __init__(self, itemId=None, fromDate=None, toDate=None,):
6524
    self.itemId = itemId
6525
    self.fromDate = fromDate
6526
    self.toDate = toDate
6527
 
6528
  def read(self, iprot):
6529
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6530
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6531
      return
6532
    iprot.readStructBegin()
6533
    while True:
6534
      (fname, ftype, fid) = iprot.readFieldBegin()
6535
      if ftype == TType.STOP:
6536
        break
6537
      if fid == 1:
6538
        if ftype == TType.I64:
6539
          self.itemId = iprot.readI64();
6540
        else:
6541
          iprot.skip(ftype)
6542
      elif fid == 2:
6543
        if ftype == TType.I64:
6544
          self.fromDate = iprot.readI64();
6545
        else:
6546
          iprot.skip(ftype)
6547
      elif fid == 3:
6548
        if ftype == TType.I64:
6549
          self.toDate = iprot.readI64();
6550
        else:
6551
          iprot.skip(ftype)
6552
      else:
6553
        iprot.skip(ftype)
6554
      iprot.readFieldEnd()
6555
    iprot.readStructEnd()
6556
 
6557
  def write(self, oprot):
6558
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6559
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6560
      return
6561
    oprot.writeStructBegin('getInventoryScansForItem_args')
6562
    if self.itemId is not None:
6563
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6564
      oprot.writeI64(self.itemId)
6565
      oprot.writeFieldEnd()
6566
    if self.fromDate is not None:
6567
      oprot.writeFieldBegin('fromDate', TType.I64, 2)
6568
      oprot.writeI64(self.fromDate)
6569
      oprot.writeFieldEnd()
6570
    if self.toDate is not None:
6571
      oprot.writeFieldBegin('toDate', TType.I64, 3)
6572
      oprot.writeI64(self.toDate)
6573
      oprot.writeFieldEnd()
6574
    oprot.writeFieldStop()
6575
    oprot.writeStructEnd()
6576
 
6577
  def validate(self):
6578
    return
6579
 
6580
 
6581
  def __repr__(self):
6582
    L = ['%s=%r' % (key, value)
6583
      for key, value in self.__dict__.iteritems()]
6584
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6585
 
6586
  def __eq__(self, other):
6587
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6588
 
6589
  def __ne__(self, other):
6590
    return not (self == other)
6591
 
6592
class getInventoryScansForItem_result:
6593
  """
6594
  Attributes:
6595
   - success
6596
  """
6597
 
6598
  thrift_spec = (
6599
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
6600
  )
6601
 
6602
  def __init__(self, success=None,):
6603
    self.success = success
6604
 
6605
  def read(self, iprot):
6606
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6607
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6608
      return
6609
    iprot.readStructBegin()
6610
    while True:
6611
      (fname, ftype, fid) = iprot.readFieldBegin()
6612
      if ftype == TType.STOP:
6613
        break
6614
      if fid == 0:
6615
        if ftype == TType.LIST:
6616
          self.success = []
10407 amar.kumar 6617
          (_etype59, _size56) = iprot.readListBegin()
6618
          for _i60 in xrange(_size56):
6619
            _elem61 = Scan()
6620
            _elem61.read(iprot)
6621
            self.success.append(_elem61)
6361 rajveer 6622
          iprot.readListEnd()
6623
        else:
6624
          iprot.skip(ftype)
6625
      else:
6626
        iprot.skip(ftype)
6627
      iprot.readFieldEnd()
6628
    iprot.readStructEnd()
6629
 
6630
  def write(self, oprot):
6631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6633
      return
6634
    oprot.writeStructBegin('getInventoryScansForItem_result')
6635
    if self.success is not None:
6636
      oprot.writeFieldBegin('success', TType.LIST, 0)
6637
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6638
      for iter62 in self.success:
6639
        iter62.write(oprot)
6361 rajveer 6640
      oprot.writeListEnd()
6641
      oprot.writeFieldEnd()
6642
    oprot.writeFieldStop()
6643
    oprot.writeStructEnd()
6644
 
6645
  def validate(self):
6646
    return
6647
 
6648
 
6649
  def __repr__(self):
6650
    L = ['%s=%r' % (key, value)
6651
      for key, value in self.__dict__.iteritems()]
6652
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6653
 
6654
  def __eq__(self, other):
6655
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6656
 
6657
  def __ne__(self, other):
6658
    return not (self == other)
6659
 
6660
class getScanRecordsForSerialNumber_args:
6661
  """
6662
  Attributes:
6663
   - serialNumber
6664
  """
6665
 
6666
  thrift_spec = (
6667
    None, # 0
7410 amar.kumar 6668
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
6361 rajveer 6669
  )
6670
 
6671
  def __init__(self, serialNumber=None,):
6672
    self.serialNumber = serialNumber
6673
 
6674
  def read(self, iprot):
6675
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6676
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6677
      return
6678
    iprot.readStructBegin()
6679
    while True:
6680
      (fname, ftype, fid) = iprot.readFieldBegin()
6681
      if ftype == TType.STOP:
6682
        break
6683
      if fid == 1:
7410 amar.kumar 6684
        if ftype == TType.STRING:
6685
          self.serialNumber = iprot.readString();
6361 rajveer 6686
        else:
6687
          iprot.skip(ftype)
6688
      else:
6689
        iprot.skip(ftype)
6690
      iprot.readFieldEnd()
6691
    iprot.readStructEnd()
6692
 
6693
  def write(self, oprot):
6694
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6695
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6696
      return
6697
    oprot.writeStructBegin('getScanRecordsForSerialNumber_args')
6698
    if self.serialNumber is not None:
7410 amar.kumar 6699
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
6700
      oprot.writeString(self.serialNumber)
6361 rajveer 6701
      oprot.writeFieldEnd()
6702
    oprot.writeFieldStop()
6703
    oprot.writeStructEnd()
6704
 
6705
  def validate(self):
6706
    return
6707
 
6708
 
6709
  def __repr__(self):
6710
    L = ['%s=%r' % (key, value)
6711
      for key, value in self.__dict__.iteritems()]
6712
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6713
 
6714
  def __eq__(self, other):
6715
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6716
 
6717
  def __ne__(self, other):
6718
    return not (self == other)
6719
 
6720
class getScanRecordsForSerialNumber_result:
6721
  """
6722
  Attributes:
6723
   - success
6724
  """
6725
 
6726
  thrift_spec = (
6727
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
6728
  )
6729
 
6730
  def __init__(self, success=None,):
6731
    self.success = success
6732
 
6733
  def read(self, iprot):
6734
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6735
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6736
      return
6737
    iprot.readStructBegin()
6738
    while True:
6739
      (fname, ftype, fid) = iprot.readFieldBegin()
6740
      if ftype == TType.STOP:
6741
        break
6742
      if fid == 0:
6743
        if ftype == TType.LIST:
6744
          self.success = []
10407 amar.kumar 6745
          (_etype66, _size63) = iprot.readListBegin()
6746
          for _i67 in xrange(_size63):
6747
            _elem68 = Scan()
6748
            _elem68.read(iprot)
6749
            self.success.append(_elem68)
6361 rajveer 6750
          iprot.readListEnd()
6751
        else:
6752
          iprot.skip(ftype)
6753
      else:
6754
        iprot.skip(ftype)
6755
      iprot.readFieldEnd()
6756
    iprot.readStructEnd()
6757
 
6758
  def write(self, oprot):
6759
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6760
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6761
      return
6762
    oprot.writeStructBegin('getScanRecordsForSerialNumber_result')
6763
    if self.success is not None:
6764
      oprot.writeFieldBegin('success', TType.LIST, 0)
6765
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6766
      for iter69 in self.success:
6767
        iter69.write(oprot)
6361 rajveer 6768
      oprot.writeListEnd()
6769
      oprot.writeFieldEnd()
6770
    oprot.writeFieldStop()
6771
    oprot.writeStructEnd()
6772
 
6773
  def validate(self):
6774
    return
6775
 
6776
 
6777
  def __repr__(self):
6778
    L = ['%s=%r' % (key, value)
6779
      for key, value in self.__dict__.iteritems()]
6780
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6781
 
6782
  def __eq__(self, other):
6783
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6784
 
6785
  def __ne__(self, other):
6786
    return not (self == other)
6467 amar.kumar 6787
 
6788
class scanForPurchaseReturn_args:
6789
  """
6790
  Attributes:
6791
   - saleReturnItems
6792
   - vendorId
7718 amar.kumar 6793
   - billingWarehouseId
6467 amar.kumar 6794
  """
6795
 
6796
  thrift_spec = (
6797
    None, # 0
6798
    (1, TType.LIST, 'saleReturnItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
6799
    (2, TType.I64, 'vendorId', None, None, ), # 2
7718 amar.kumar 6800
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
6467 amar.kumar 6801
  )
6802
 
7718 amar.kumar 6803
  def __init__(self, saleReturnItems=None, vendorId=None, billingWarehouseId=None,):
6467 amar.kumar 6804
    self.saleReturnItems = saleReturnItems
6805
    self.vendorId = vendorId
7718 amar.kumar 6806
    self.billingWarehouseId = billingWarehouseId
6467 amar.kumar 6807
 
6808
  def read(self, iprot):
6809
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6810
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6811
      return
6812
    iprot.readStructBegin()
6813
    while True:
6814
      (fname, ftype, fid) = iprot.readFieldBegin()
6815
      if ftype == TType.STOP:
6816
        break
6817
      if fid == 1:
6818
        if ftype == TType.LIST:
6819
          self.saleReturnItems = []
10407 amar.kumar 6820
          (_etype73, _size70) = iprot.readListBegin()
6821
          for _i74 in xrange(_size70):
6822
            _elem75 = InventoryItem()
6823
            _elem75.read(iprot)
6824
            self.saleReturnItems.append(_elem75)
6467 amar.kumar 6825
          iprot.readListEnd()
6826
        else:
6827
          iprot.skip(ftype)
6828
      elif fid == 2:
6829
        if ftype == TType.I64:
6830
          self.vendorId = iprot.readI64();
6831
        else:
6832
          iprot.skip(ftype)
7718 amar.kumar 6833
      elif fid == 3:
6834
        if ftype == TType.I64:
6835
          self.billingWarehouseId = iprot.readI64();
6836
        else:
6837
          iprot.skip(ftype)
6467 amar.kumar 6838
      else:
6839
        iprot.skip(ftype)
6840
      iprot.readFieldEnd()
6841
    iprot.readStructEnd()
6842
 
6843
  def write(self, oprot):
6844
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6845
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6846
      return
6847
    oprot.writeStructBegin('scanForPurchaseReturn_args')
6848
    if self.saleReturnItems is not None:
6849
      oprot.writeFieldBegin('saleReturnItems', TType.LIST, 1)
6850
      oprot.writeListBegin(TType.STRUCT, len(self.saleReturnItems))
10407 amar.kumar 6851
      for iter76 in self.saleReturnItems:
6852
        iter76.write(oprot)
6467 amar.kumar 6853
      oprot.writeListEnd()
6854
      oprot.writeFieldEnd()
6855
    if self.vendorId is not None:
6856
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6857
      oprot.writeI64(self.vendorId)
6858
      oprot.writeFieldEnd()
7718 amar.kumar 6859
    if self.billingWarehouseId is not None:
6860
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
6861
      oprot.writeI64(self.billingWarehouseId)
6862
      oprot.writeFieldEnd()
6467 amar.kumar 6863
    oprot.writeFieldStop()
6864
    oprot.writeStructEnd()
6865
 
6866
  def validate(self):
6867
    return
6868
 
6869
 
6870
  def __repr__(self):
6871
    L = ['%s=%r' % (key, value)
6872
      for key, value in self.__dict__.iteritems()]
6873
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6874
 
6875
  def __eq__(self, other):
6876
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6877
 
6878
  def __ne__(self, other):
6879
    return not (self == other)
6880
 
6881
class scanForPurchaseReturn_result:
6882
  """
6883
  Attributes:
10864 manish.sha 6884
   - success
6467 amar.kumar 6885
   - ex
6886
  """
6887
 
6888
  thrift_spec = (
10864 manish.sha 6889
    (0, TType.I64, 'success', None, None, ), # 0
6467 amar.kumar 6890
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6891
  )
6892
 
10864 manish.sha 6893
  def __init__(self, success=None, ex=None,):
6894
    self.success = success
6467 amar.kumar 6895
    self.ex = ex
6896
 
6897
  def read(self, iprot):
6898
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6899
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6900
      return
6901
    iprot.readStructBegin()
6902
    while True:
6903
      (fname, ftype, fid) = iprot.readFieldBegin()
6904
      if ftype == TType.STOP:
6905
        break
10864 manish.sha 6906
      if fid == 0:
6907
        if ftype == TType.I64:
6908
          self.success = iprot.readI64();
6909
        else:
6910
          iprot.skip(ftype)
6911
      elif fid == 1:
6467 amar.kumar 6912
        if ftype == TType.STRUCT:
6913
          self.ex = WarehouseServiceException()
6914
          self.ex.read(iprot)
6915
        else:
6916
          iprot.skip(ftype)
6917
      else:
6918
        iprot.skip(ftype)
6919
      iprot.readFieldEnd()
6920
    iprot.readStructEnd()
6921
 
6922
  def write(self, oprot):
6923
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6924
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6925
      return
6926
    oprot.writeStructBegin('scanForPurchaseReturn_result')
10864 manish.sha 6927
    if self.success is not None:
6928
      oprot.writeFieldBegin('success', TType.I64, 0)
6929
      oprot.writeI64(self.success)
6930
      oprot.writeFieldEnd()
6467 amar.kumar 6931
    if self.ex is not None:
6932
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6933
      self.ex.write(oprot)
6934
      oprot.writeFieldEnd()
6935
    oprot.writeFieldStop()
6936
    oprot.writeStructEnd()
6937
 
6938
  def validate(self):
6939
    return
6940
 
6941
 
6942
  def __repr__(self):
6943
    L = ['%s=%r' % (key, value)
6944
      for key, value in self.__dict__.iteritems()]
6945
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6946
 
6947
  def __eq__(self, other):
6948
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6949
 
6950
  def __ne__(self, other):
6951
    return not (self == other)
6630 amar.kumar 6952
 
6953
class scanForLostItem_args:
6954
  """
6955
  Attributes:
6956
   - lostItems
6957
   - vendorId
7718 amar.kumar 6958
   - billingWarehouseId
6630 amar.kumar 6959
  """
6960
 
6961
  thrift_spec = (
6962
    None, # 0
6963
    (1, TType.LIST, 'lostItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
6964
    (2, TType.I64, 'vendorId', None, None, ), # 2
7718 amar.kumar 6965
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
6630 amar.kumar 6966
  )
6967
 
7718 amar.kumar 6968
  def __init__(self, lostItems=None, vendorId=None, billingWarehouseId=None,):
6630 amar.kumar 6969
    self.lostItems = lostItems
6970
    self.vendorId = vendorId
7718 amar.kumar 6971
    self.billingWarehouseId = billingWarehouseId
6630 amar.kumar 6972
 
6973
  def read(self, iprot):
6974
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6975
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6976
      return
6977
    iprot.readStructBegin()
6978
    while True:
6979
      (fname, ftype, fid) = iprot.readFieldBegin()
6980
      if ftype == TType.STOP:
6981
        break
6982
      if fid == 1:
6983
        if ftype == TType.LIST:
6984
          self.lostItems = []
10407 amar.kumar 6985
          (_etype80, _size77) = iprot.readListBegin()
6986
          for _i81 in xrange(_size77):
6987
            _elem82 = InventoryItem()
6988
            _elem82.read(iprot)
6989
            self.lostItems.append(_elem82)
6630 amar.kumar 6990
          iprot.readListEnd()
6991
        else:
6992
          iprot.skip(ftype)
6993
      elif fid == 2:
6994
        if ftype == TType.I64:
6995
          self.vendorId = iprot.readI64();
6996
        else:
6997
          iprot.skip(ftype)
7718 amar.kumar 6998
      elif fid == 3:
6999
        if ftype == TType.I64:
7000
          self.billingWarehouseId = iprot.readI64();
7001
        else:
7002
          iprot.skip(ftype)
6630 amar.kumar 7003
      else:
7004
        iprot.skip(ftype)
7005
      iprot.readFieldEnd()
7006
    iprot.readStructEnd()
7007
 
7008
  def write(self, oprot):
7009
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7010
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7011
      return
7012
    oprot.writeStructBegin('scanForLostItem_args')
7013
    if self.lostItems is not None:
7014
      oprot.writeFieldBegin('lostItems', TType.LIST, 1)
7015
      oprot.writeListBegin(TType.STRUCT, len(self.lostItems))
10407 amar.kumar 7016
      for iter83 in self.lostItems:
7017
        iter83.write(oprot)
6630 amar.kumar 7018
      oprot.writeListEnd()
7019
      oprot.writeFieldEnd()
7020
    if self.vendorId is not None:
7021
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
7022
      oprot.writeI64(self.vendorId)
7023
      oprot.writeFieldEnd()
7718 amar.kumar 7024
    if self.billingWarehouseId is not None:
7025
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
7026
      oprot.writeI64(self.billingWarehouseId)
7027
      oprot.writeFieldEnd()
6630 amar.kumar 7028
    oprot.writeFieldStop()
7029
    oprot.writeStructEnd()
7030
 
7031
  def validate(self):
7032
    return
7033
 
7034
 
7035
  def __repr__(self):
7036
    L = ['%s=%r' % (key, value)
7037
      for key, value in self.__dict__.iteritems()]
7038
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7039
 
7040
  def __eq__(self, other):
7041
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7042
 
7043
  def __ne__(self, other):
7044
    return not (self == other)
7045
 
7046
class scanForLostItem_result:
7047
  """
7048
  Attributes:
7049
   - ex
7050
  """
7051
 
7052
  thrift_spec = (
7053
    None, # 0
7054
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
7055
  )
7056
 
7057
  def __init__(self, ex=None,):
7058
    self.ex = ex
7059
 
7060
  def read(self, iprot):
7061
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7062
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7063
      return
7064
    iprot.readStructBegin()
7065
    while True:
7066
      (fname, ftype, fid) = iprot.readFieldBegin()
7067
      if ftype == TType.STOP:
7068
        break
7069
      if fid == 1:
7070
        if ftype == TType.STRUCT:
7071
          self.ex = WarehouseServiceException()
7072
          self.ex.read(iprot)
7073
        else:
7074
          iprot.skip(ftype)
7075
      else:
7076
        iprot.skip(ftype)
7077
      iprot.readFieldEnd()
7078
    iprot.readStructEnd()
7079
 
7080
  def write(self, oprot):
7081
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7082
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7083
      return
7084
    oprot.writeStructBegin('scanForLostItem_result')
7085
    if self.ex is not None:
7086
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7087
      self.ex.write(oprot)
7088
      oprot.writeFieldEnd()
7089
    oprot.writeFieldStop()
7090
    oprot.writeStructEnd()
7091
 
7092
  def validate(self):
7093
    return
7094
 
7095
 
7096
  def __repr__(self):
7097
    L = ['%s=%r' % (key, value)
7098
      for key, value in self.__dict__.iteritems()]
7099
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7100
 
7101
  def __eq__(self, other):
7102
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7103
 
7104
  def __ne__(self, other):
7105
    return not (self == other)
7106
 
7107
class getCurrentSerializedInventoryByScans_args:
7715 vikram.rag 7108
  """
7109
  Attributes:
7110
   - physicalWarehouseId
7111
  """
6630 amar.kumar 7112
 
7113
  thrift_spec = (
7715 vikram.rag 7114
    None, # 0
7115
    (1, TType.I64, 'physicalWarehouseId', None, None, ), # 1
6630 amar.kumar 7116
  )
7117
 
7715 vikram.rag 7118
  def __init__(self, physicalWarehouseId=None,):
7119
    self.physicalWarehouseId = physicalWarehouseId
7120
 
6630 amar.kumar 7121
  def read(self, iprot):
7122
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7123
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7124
      return
7125
    iprot.readStructBegin()
7126
    while True:
7127
      (fname, ftype, fid) = iprot.readFieldBegin()
7128
      if ftype == TType.STOP:
7129
        break
7715 vikram.rag 7130
      if fid == 1:
7131
        if ftype == TType.I64:
7132
          self.physicalWarehouseId = iprot.readI64();
7133
        else:
7134
          iprot.skip(ftype)
6630 amar.kumar 7135
      else:
7136
        iprot.skip(ftype)
7137
      iprot.readFieldEnd()
7138
    iprot.readStructEnd()
7139
 
7140
  def write(self, oprot):
7141
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7142
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7143
      return
7144
    oprot.writeStructBegin('getCurrentSerializedInventoryByScans_args')
7715 vikram.rag 7145
    if self.physicalWarehouseId is not None:
7146
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 1)
7147
      oprot.writeI64(self.physicalWarehouseId)
7148
      oprot.writeFieldEnd()
6630 amar.kumar 7149
    oprot.writeFieldStop()
7150
    oprot.writeStructEnd()
7151
 
7152
  def validate(self):
7153
    return
7154
 
7155
 
7156
  def __repr__(self):
7157
    L = ['%s=%r' % (key, value)
7158
      for key, value in self.__dict__.iteritems()]
7159
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7160
 
7161
  def __eq__(self, other):
7162
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7163
 
7164
  def __ne__(self, other):
7165
    return not (self == other)
7166
 
7167
class getCurrentSerializedInventoryByScans_result:
7168
  """
7169
  Attributes:
7170
   - success
7171
  """
7172
 
7173
  thrift_spec = (
7174
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7175
  )
7176
 
7177
  def __init__(self, success=None,):
7178
    self.success = success
7179
 
7180
  def read(self, iprot):
7181
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7182
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7183
      return
7184
    iprot.readStructBegin()
7185
    while True:
7186
      (fname, ftype, fid) = iprot.readFieldBegin()
7187
      if ftype == TType.STOP:
7188
        break
7189
      if fid == 0:
7190
        if ftype == TType.LIST:
7191
          self.success = []
10407 amar.kumar 7192
          (_etype87, _size84) = iprot.readListBegin()
7193
          for _i88 in xrange(_size84):
7194
            _elem89 = InventoryAvailability()
7195
            _elem89.read(iprot)
7196
            self.success.append(_elem89)
6630 amar.kumar 7197
          iprot.readListEnd()
7198
        else:
7199
          iprot.skip(ftype)
7200
      else:
7201
        iprot.skip(ftype)
7202
      iprot.readFieldEnd()
7203
    iprot.readStructEnd()
7204
 
7205
  def write(self, oprot):
7206
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7207
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7208
      return
7209
    oprot.writeStructBegin('getCurrentSerializedInventoryByScans_result')
7210
    if self.success is not None:
7211
      oprot.writeFieldBegin('success', TType.LIST, 0)
7212
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7213
      for iter90 in self.success:
7214
        iter90.write(oprot)
6630 amar.kumar 7215
      oprot.writeListEnd()
7216
      oprot.writeFieldEnd()
7217
    oprot.writeFieldStop()
7218
    oprot.writeStructEnd()
7219
 
7220
  def validate(self):
7221
    return
7222
 
7223
 
7224
  def __repr__(self):
7225
    L = ['%s=%r' % (key, value)
7226
      for key, value in self.__dict__.iteritems()]
7227
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7228
 
7229
  def __eq__(self, other):
7230
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7231
 
7232
  def __ne__(self, other):
7233
    return not (self == other)
7234
 
7235
class getCurrentNonSerializedInventoryByScans_args:
7715 vikram.rag 7236
  """
7237
  Attributes:
7238
   - physicalWarehouseId
7239
  """
6630 amar.kumar 7240
 
7241
  thrift_spec = (
7715 vikram.rag 7242
    None, # 0
7243
    (1, TType.I64, 'physicalWarehouseId', None, None, ), # 1
6630 amar.kumar 7244
  )
7245
 
7715 vikram.rag 7246
  def __init__(self, physicalWarehouseId=None,):
7247
    self.physicalWarehouseId = physicalWarehouseId
7248
 
6630 amar.kumar 7249
  def read(self, iprot):
7250
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7251
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7252
      return
7253
    iprot.readStructBegin()
7254
    while True:
7255
      (fname, ftype, fid) = iprot.readFieldBegin()
7256
      if ftype == TType.STOP:
7257
        break
7715 vikram.rag 7258
      if fid == 1:
7259
        if ftype == TType.I64:
7260
          self.physicalWarehouseId = iprot.readI64();
7261
        else:
7262
          iprot.skip(ftype)
6630 amar.kumar 7263
      else:
7264
        iprot.skip(ftype)
7265
      iprot.readFieldEnd()
7266
    iprot.readStructEnd()
7267
 
7268
  def write(self, oprot):
7269
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7270
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7271
      return
7272
    oprot.writeStructBegin('getCurrentNonSerializedInventoryByScans_args')
7715 vikram.rag 7273
    if self.physicalWarehouseId is not None:
7274
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 1)
7275
      oprot.writeI64(self.physicalWarehouseId)
7276
      oprot.writeFieldEnd()
6630 amar.kumar 7277
    oprot.writeFieldStop()
7278
    oprot.writeStructEnd()
7279
 
7280
  def validate(self):
7281
    return
7282
 
7283
 
7284
  def __repr__(self):
7285
    L = ['%s=%r' % (key, value)
7286
      for key, value in self.__dict__.iteritems()]
7287
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7288
 
7289
  def __eq__(self, other):
7290
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7291
 
7292
  def __ne__(self, other):
7293
    return not (self == other)
7294
 
7295
class getCurrentNonSerializedInventoryByScans_result:
7296
  """
7297
  Attributes:
7298
   - success
7299
  """
7300
 
7301
  thrift_spec = (
7302
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7303
  )
7304
 
7305
  def __init__(self, success=None,):
7306
    self.success = success
7307
 
7308
  def read(self, iprot):
7309
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7310
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7311
      return
7312
    iprot.readStructBegin()
7313
    while True:
7314
      (fname, ftype, fid) = iprot.readFieldBegin()
7315
      if ftype == TType.STOP:
7316
        break
7317
      if fid == 0:
7318
        if ftype == TType.LIST:
7319
          self.success = []
10407 amar.kumar 7320
          (_etype94, _size91) = iprot.readListBegin()
7321
          for _i95 in xrange(_size91):
7322
            _elem96 = InventoryAvailability()
7323
            _elem96.read(iprot)
7324
            self.success.append(_elem96)
6630 amar.kumar 7325
          iprot.readListEnd()
7326
        else:
7327
          iprot.skip(ftype)
7328
      else:
7329
        iprot.skip(ftype)
7330
      iprot.readFieldEnd()
7331
    iprot.readStructEnd()
7332
 
7333
  def write(self, oprot):
7334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7336
      return
7337
    oprot.writeStructBegin('getCurrentNonSerializedInventoryByScans_result')
7338
    if self.success is not None:
7339
      oprot.writeFieldBegin('success', TType.LIST, 0)
7340
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7341
      for iter97 in self.success:
7342
        iter97.write(oprot)
6630 amar.kumar 7343
      oprot.writeListEnd()
7344
      oprot.writeFieldEnd()
7345
    oprot.writeFieldStop()
7346
    oprot.writeStructEnd()
7347
 
7348
  def validate(self):
7349
    return
7350
 
7351
 
7352
  def __repr__(self):
7353
    L = ['%s=%r' % (key, value)
7354
      for key, value in self.__dict__.iteritems()]
7355
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7356
 
7357
  def __eq__(self, other):
7358
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7359
 
7360
  def __ne__(self, other):
7361
    return not (self == other)
6762 amar.kumar 7362
 
7363
class getHistoricSerializedInventoryByScans_args:
7364
  """
7365
  Attributes:
7366
   - date
7367
  """
7368
 
7369
  thrift_spec = (
7370
    None, # 0
7371
    (1, TType.I64, 'date', None, None, ), # 1
7372
  )
7373
 
7374
  def __init__(self, date=None,):
7375
    self.date = date
7376
 
7377
  def read(self, iprot):
7378
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7379
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7380
      return
7381
    iprot.readStructBegin()
7382
    while True:
7383
      (fname, ftype, fid) = iprot.readFieldBegin()
7384
      if ftype == TType.STOP:
7385
        break
7386
      if fid == 1:
7387
        if ftype == TType.I64:
7388
          self.date = iprot.readI64();
7389
        else:
7390
          iprot.skip(ftype)
7391
      else:
7392
        iprot.skip(ftype)
7393
      iprot.readFieldEnd()
7394
    iprot.readStructEnd()
7395
 
7396
  def write(self, oprot):
7397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7399
      return
7400
    oprot.writeStructBegin('getHistoricSerializedInventoryByScans_args')
7401
    if self.date is not None:
7402
      oprot.writeFieldBegin('date', TType.I64, 1)
7403
      oprot.writeI64(self.date)
7404
      oprot.writeFieldEnd()
7405
    oprot.writeFieldStop()
7406
    oprot.writeStructEnd()
7407
 
7408
  def validate(self):
7409
    return
7410
 
7411
 
7412
  def __repr__(self):
7413
    L = ['%s=%r' % (key, value)
7414
      for key, value in self.__dict__.iteritems()]
7415
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7416
 
7417
  def __eq__(self, other):
7418
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7419
 
7420
  def __ne__(self, other):
7421
    return not (self == other)
7422
 
7423
class getHistoricSerializedInventoryByScans_result:
7424
  """
7425
  Attributes:
7426
   - success
7427
  """
7428
 
7429
  thrift_spec = (
7430
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7431
  )
7432
 
7433
  def __init__(self, success=None,):
7434
    self.success = success
7435
 
7436
  def read(self, iprot):
7437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7439
      return
7440
    iprot.readStructBegin()
7441
    while True:
7442
      (fname, ftype, fid) = iprot.readFieldBegin()
7443
      if ftype == TType.STOP:
7444
        break
7445
      if fid == 0:
7446
        if ftype == TType.LIST:
7447
          self.success = []
10407 amar.kumar 7448
          (_etype101, _size98) = iprot.readListBegin()
7449
          for _i102 in xrange(_size98):
7450
            _elem103 = InventoryAvailability()
7451
            _elem103.read(iprot)
7452
            self.success.append(_elem103)
6762 amar.kumar 7453
          iprot.readListEnd()
7454
        else:
7455
          iprot.skip(ftype)
7456
      else:
7457
        iprot.skip(ftype)
7458
      iprot.readFieldEnd()
7459
    iprot.readStructEnd()
7460
 
7461
  def write(self, oprot):
7462
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7463
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7464
      return
7465
    oprot.writeStructBegin('getHistoricSerializedInventoryByScans_result')
7466
    if self.success is not None:
7467
      oprot.writeFieldBegin('success', TType.LIST, 0)
7468
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7469
      for iter104 in self.success:
7470
        iter104.write(oprot)
6762 amar.kumar 7471
      oprot.writeListEnd()
7472
      oprot.writeFieldEnd()
7473
    oprot.writeFieldStop()
7474
    oprot.writeStructEnd()
7475
 
7476
  def validate(self):
7477
    return
7478
 
7479
 
7480
  def __repr__(self):
7481
    L = ['%s=%r' % (key, value)
7482
      for key, value in self.__dict__.iteritems()]
7483
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7484
 
7485
  def __eq__(self, other):
7486
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7487
 
7488
  def __ne__(self, other):
7489
    return not (self == other)
7490
 
7491
class getHistoricNonSerializedInventoryByScans_args:
7492
  """
7493
  Attributes:
7494
   - date
7495
  """
7496
 
7497
  thrift_spec = (
7498
    None, # 0
7499
    (1, TType.I64, 'date', None, None, ), # 1
7500
  )
7501
 
7502
  def __init__(self, date=None,):
7503
    self.date = date
7504
 
7505
  def read(self, iprot):
7506
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7507
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7508
      return
7509
    iprot.readStructBegin()
7510
    while True:
7511
      (fname, ftype, fid) = iprot.readFieldBegin()
7512
      if ftype == TType.STOP:
7513
        break
7514
      if fid == 1:
7515
        if ftype == TType.I64:
7516
          self.date = iprot.readI64();
7517
        else:
7518
          iprot.skip(ftype)
7519
      else:
7520
        iprot.skip(ftype)
7521
      iprot.readFieldEnd()
7522
    iprot.readStructEnd()
7523
 
7524
  def write(self, oprot):
7525
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7526
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7527
      return
7528
    oprot.writeStructBegin('getHistoricNonSerializedInventoryByScans_args')
7529
    if self.date is not None:
7530
      oprot.writeFieldBegin('date', TType.I64, 1)
7531
      oprot.writeI64(self.date)
7532
      oprot.writeFieldEnd()
7533
    oprot.writeFieldStop()
7534
    oprot.writeStructEnd()
7535
 
7536
  def validate(self):
7537
    return
7538
 
7539
 
7540
  def __repr__(self):
7541
    L = ['%s=%r' % (key, value)
7542
      for key, value in self.__dict__.iteritems()]
7543
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7544
 
7545
  def __eq__(self, other):
7546
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7547
 
7548
  def __ne__(self, other):
7549
    return not (self == other)
7550
 
7551
class getHistoricNonSerializedInventoryByScans_result:
7552
  """
7553
  Attributes:
7554
   - success
7555
  """
7556
 
7557
  thrift_spec = (
7558
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7559
  )
7560
 
7561
  def __init__(self, success=None,):
7562
    self.success = success
7563
 
7564
  def read(self, iprot):
7565
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7566
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7567
      return
7568
    iprot.readStructBegin()
7569
    while True:
7570
      (fname, ftype, fid) = iprot.readFieldBegin()
7571
      if ftype == TType.STOP:
7572
        break
7573
      if fid == 0:
7574
        if ftype == TType.LIST:
7575
          self.success = []
10407 amar.kumar 7576
          (_etype108, _size105) = iprot.readListBegin()
7577
          for _i109 in xrange(_size105):
7578
            _elem110 = InventoryAvailability()
7579
            _elem110.read(iprot)
7580
            self.success.append(_elem110)
6762 amar.kumar 7581
          iprot.readListEnd()
7582
        else:
7583
          iprot.skip(ftype)
7584
      else:
7585
        iprot.skip(ftype)
7586
      iprot.readFieldEnd()
7587
    iprot.readStructEnd()
7588
 
7589
  def write(self, oprot):
7590
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7591
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7592
      return
7593
    oprot.writeStructBegin('getHistoricNonSerializedInventoryByScans_result')
7594
    if self.success is not None:
7595
      oprot.writeFieldBegin('success', TType.LIST, 0)
7596
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7597
      for iter111 in self.success:
7598
        iter111.write(oprot)
6762 amar.kumar 7599
      oprot.writeListEnd()
7600
      oprot.writeFieldEnd()
7601
    oprot.writeFieldStop()
7602
    oprot.writeStructEnd()
7603
 
7604
  def validate(self):
7605
    return
7606
 
7607
 
7608
  def __repr__(self):
7609
    L = ['%s=%r' % (key, value)
7610
      for key, value in self.__dict__.iteritems()]
7611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7612
 
7613
  def __eq__(self, other):
7614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7615
 
7616
  def __ne__(self, other):
7617
    return not (self == other)
7618
 
10407 amar.kumar 7619
class getOurHistoricSerializedInventoryByScans_args:
7620
  """
7621
  Attributes:
7622
   - date
7623
  """
7624
 
7625
  thrift_spec = (
7626
    None, # 0
7627
    (1, TType.I64, 'date', None, None, ), # 1
7628
  )
7629
 
7630
  def __init__(self, date=None,):
7631
    self.date = date
7632
 
7633
  def read(self, iprot):
7634
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7635
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7636
      return
7637
    iprot.readStructBegin()
7638
    while True:
7639
      (fname, ftype, fid) = iprot.readFieldBegin()
7640
      if ftype == TType.STOP:
7641
        break
7642
      if fid == 1:
7643
        if ftype == TType.I64:
7644
          self.date = iprot.readI64();
7645
        else:
7646
          iprot.skip(ftype)
7647
      else:
7648
        iprot.skip(ftype)
7649
      iprot.readFieldEnd()
7650
    iprot.readStructEnd()
7651
 
7652
  def write(self, oprot):
7653
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7654
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7655
      return
7656
    oprot.writeStructBegin('getOurHistoricSerializedInventoryByScans_args')
7657
    if self.date is not None:
7658
      oprot.writeFieldBegin('date', TType.I64, 1)
7659
      oprot.writeI64(self.date)
7660
      oprot.writeFieldEnd()
7661
    oprot.writeFieldStop()
7662
    oprot.writeStructEnd()
7663
 
7664
  def validate(self):
7665
    return
7666
 
7667
 
7668
  def __repr__(self):
7669
    L = ['%s=%r' % (key, value)
7670
      for key, value in self.__dict__.iteritems()]
7671
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7672
 
7673
  def __eq__(self, other):
7674
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7675
 
7676
  def __ne__(self, other):
7677
    return not (self == other)
7678
 
7679
class getOurHistoricSerializedInventoryByScans_result:
7680
  """
7681
  Attributes:
7682
   - success
7683
  """
7684
 
7685
  thrift_spec = (
7686
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7687
  )
7688
 
7689
  def __init__(self, success=None,):
7690
    self.success = success
7691
 
7692
  def read(self, iprot):
7693
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7694
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7695
      return
7696
    iprot.readStructBegin()
7697
    while True:
7698
      (fname, ftype, fid) = iprot.readFieldBegin()
7699
      if ftype == TType.STOP:
7700
        break
7701
      if fid == 0:
7702
        if ftype == TType.LIST:
7703
          self.success = []
7704
          (_etype115, _size112) = iprot.readListBegin()
7705
          for _i116 in xrange(_size112):
7706
            _elem117 = InventoryAvailability()
7707
            _elem117.read(iprot)
7708
            self.success.append(_elem117)
7709
          iprot.readListEnd()
7710
        else:
7711
          iprot.skip(ftype)
7712
      else:
7713
        iprot.skip(ftype)
7714
      iprot.readFieldEnd()
7715
    iprot.readStructEnd()
7716
 
7717
  def write(self, oprot):
7718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7720
      return
7721
    oprot.writeStructBegin('getOurHistoricSerializedInventoryByScans_result')
7722
    if self.success is not None:
7723
      oprot.writeFieldBegin('success', TType.LIST, 0)
7724
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7725
      for iter118 in self.success:
7726
        iter118.write(oprot)
7727
      oprot.writeListEnd()
7728
      oprot.writeFieldEnd()
7729
    oprot.writeFieldStop()
7730
    oprot.writeStructEnd()
7731
 
7732
  def validate(self):
7733
    return
7734
 
7735
 
7736
  def __repr__(self):
7737
    L = ['%s=%r' % (key, value)
7738
      for key, value in self.__dict__.iteritems()]
7739
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7740
 
7741
  def __eq__(self, other):
7742
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7743
 
7744
  def __ne__(self, other):
7745
    return not (self == other)
7746
 
7747
class getOurHistoricNonSerializedInventoryByScans_args:
7748
  """
7749
  Attributes:
7750
   - date
7751
  """
7752
 
7753
  thrift_spec = (
7754
    None, # 0
7755
    (1, TType.I64, 'date', None, None, ), # 1
7756
  )
7757
 
7758
  def __init__(self, date=None,):
7759
    self.date = date
7760
 
7761
  def read(self, iprot):
7762
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7763
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7764
      return
7765
    iprot.readStructBegin()
7766
    while True:
7767
      (fname, ftype, fid) = iprot.readFieldBegin()
7768
      if ftype == TType.STOP:
7769
        break
7770
      if fid == 1:
7771
        if ftype == TType.I64:
7772
          self.date = iprot.readI64();
7773
        else:
7774
          iprot.skip(ftype)
7775
      else:
7776
        iprot.skip(ftype)
7777
      iprot.readFieldEnd()
7778
    iprot.readStructEnd()
7779
 
7780
  def write(self, oprot):
7781
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7782
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7783
      return
7784
    oprot.writeStructBegin('getOurHistoricNonSerializedInventoryByScans_args')
7785
    if self.date is not None:
7786
      oprot.writeFieldBegin('date', TType.I64, 1)
7787
      oprot.writeI64(self.date)
7788
      oprot.writeFieldEnd()
7789
    oprot.writeFieldStop()
7790
    oprot.writeStructEnd()
7791
 
7792
  def validate(self):
7793
    return
7794
 
7795
 
7796
  def __repr__(self):
7797
    L = ['%s=%r' % (key, value)
7798
      for key, value in self.__dict__.iteritems()]
7799
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7800
 
7801
  def __eq__(self, other):
7802
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7803
 
7804
  def __ne__(self, other):
7805
    return not (self == other)
7806
 
7807
class getOurHistoricNonSerializedInventoryByScans_result:
7808
  """
7809
  Attributes:
7810
   - success
7811
  """
7812
 
7813
  thrift_spec = (
7814
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7815
  )
7816
 
7817
  def __init__(self, success=None,):
7818
    self.success = success
7819
 
7820
  def read(self, iprot):
7821
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7822
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7823
      return
7824
    iprot.readStructBegin()
7825
    while True:
7826
      (fname, ftype, fid) = iprot.readFieldBegin()
7827
      if ftype == TType.STOP:
7828
        break
7829
      if fid == 0:
7830
        if ftype == TType.LIST:
7831
          self.success = []
7832
          (_etype122, _size119) = iprot.readListBegin()
7833
          for _i123 in xrange(_size119):
7834
            _elem124 = InventoryAvailability()
7835
            _elem124.read(iprot)
7836
            self.success.append(_elem124)
7837
          iprot.readListEnd()
7838
        else:
7839
          iprot.skip(ftype)
7840
      else:
7841
        iprot.skip(ftype)
7842
      iprot.readFieldEnd()
7843
    iprot.readStructEnd()
7844
 
7845
  def write(self, oprot):
7846
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7847
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7848
      return
7849
    oprot.writeStructBegin('getOurHistoricNonSerializedInventoryByScans_result')
7850
    if self.success is not None:
7851
      oprot.writeFieldBegin('success', TType.LIST, 0)
7852
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7853
      for iter125 in self.success:
7854
        iter125.write(oprot)
7855
      oprot.writeListEnd()
7856
      oprot.writeFieldEnd()
7857
    oprot.writeFieldStop()
7858
    oprot.writeStructEnd()
7859
 
7860
  def validate(self):
7861
    return
7862
 
7863
 
7864
  def __repr__(self):
7865
    L = ['%s=%r' % (key, value)
7866
      for key, value in self.__dict__.iteritems()]
7867
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7868
 
7869
  def __eq__(self, other):
7870
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7871
 
7872
  def __ne__(self, other):
7873
    return not (self == other)
7874
 
6762 amar.kumar 7875
class scanForOursExternalSale_args:
7876
  """
7877
  Attributes:
7878
   - itemId
7879
   - serialNumber
7880
   - itemNumber
7881
   - invoiceNumber
7882
   - warehouseId
7883
   - unitPrice
7672 rajveer 7884
   - nlc
6762 amar.kumar 7885
   - orderId
7886
  """
7887
 
7888
  thrift_spec = (
7889
    None, # 0
7890
    (1, TType.I64, 'itemId', None, None, ), # 1
7891
    (2, TType.STRING, 'serialNumber', None, None, ), # 2
7892
    (3, TType.STRING, 'itemNumber', None, None, ), # 3
7893
    (4, TType.STRING, 'invoiceNumber', None, None, ), # 4
7894
    (5, TType.I64, 'warehouseId', None, None, ), # 5
7895
    (6, TType.DOUBLE, 'unitPrice', None, None, ), # 6
7672 rajveer 7896
    (7, TType.DOUBLE, 'nlc', None, None, ), # 7
7897
    (8, TType.I64, 'orderId', None, None, ), # 8
6762 amar.kumar 7898
  )
7899
 
7672 rajveer 7900
  def __init__(self, itemId=None, serialNumber=None, itemNumber=None, invoiceNumber=None, warehouseId=None, unitPrice=None, nlc=None, orderId=None,):
6762 amar.kumar 7901
    self.itemId = itemId
7902
    self.serialNumber = serialNumber
7903
    self.itemNumber = itemNumber
7904
    self.invoiceNumber = invoiceNumber
7905
    self.warehouseId = warehouseId
7906
    self.unitPrice = unitPrice
7672 rajveer 7907
    self.nlc = nlc
6762 amar.kumar 7908
    self.orderId = orderId
7909
 
7910
  def read(self, iprot):
7911
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7912
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7913
      return
7914
    iprot.readStructBegin()
7915
    while True:
7916
      (fname, ftype, fid) = iprot.readFieldBegin()
7917
      if ftype == TType.STOP:
7918
        break
7919
      if fid == 1:
7920
        if ftype == TType.I64:
7921
          self.itemId = iprot.readI64();
7922
        else:
7923
          iprot.skip(ftype)
7924
      elif fid == 2:
7925
        if ftype == TType.STRING:
7926
          self.serialNumber = iprot.readString();
7927
        else:
7928
          iprot.skip(ftype)
7929
      elif fid == 3:
7930
        if ftype == TType.STRING:
7931
          self.itemNumber = iprot.readString();
7932
        else:
7933
          iprot.skip(ftype)
7934
      elif fid == 4:
7935
        if ftype == TType.STRING:
7936
          self.invoiceNumber = iprot.readString();
7937
        else:
7938
          iprot.skip(ftype)
7939
      elif fid == 5:
7940
        if ftype == TType.I64:
7941
          self.warehouseId = iprot.readI64();
7942
        else:
7943
          iprot.skip(ftype)
7944
      elif fid == 6:
7945
        if ftype == TType.DOUBLE:
7946
          self.unitPrice = iprot.readDouble();
7947
        else:
7948
          iprot.skip(ftype)
7949
      elif fid == 7:
7672 rajveer 7950
        if ftype == TType.DOUBLE:
7951
          self.nlc = iprot.readDouble();
7952
        else:
7953
          iprot.skip(ftype)
7954
      elif fid == 8:
6762 amar.kumar 7955
        if ftype == TType.I64:
7956
          self.orderId = iprot.readI64();
7957
        else:
7958
          iprot.skip(ftype)
7959
      else:
7960
        iprot.skip(ftype)
7961
      iprot.readFieldEnd()
7962
    iprot.readStructEnd()
7963
 
7964
  def write(self, oprot):
7965
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7966
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7967
      return
7968
    oprot.writeStructBegin('scanForOursExternalSale_args')
7969
    if self.itemId is not None:
7970
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7971
      oprot.writeI64(self.itemId)
7972
      oprot.writeFieldEnd()
7973
    if self.serialNumber is not None:
7974
      oprot.writeFieldBegin('serialNumber', TType.STRING, 2)
7975
      oprot.writeString(self.serialNumber)
7976
      oprot.writeFieldEnd()
7977
    if self.itemNumber is not None:
7978
      oprot.writeFieldBegin('itemNumber', TType.STRING, 3)
7979
      oprot.writeString(self.itemNumber)
7980
      oprot.writeFieldEnd()
7981
    if self.invoiceNumber is not None:
7982
      oprot.writeFieldBegin('invoiceNumber', TType.STRING, 4)
7983
      oprot.writeString(self.invoiceNumber)
7984
      oprot.writeFieldEnd()
7985
    if self.warehouseId is not None:
7986
      oprot.writeFieldBegin('warehouseId', TType.I64, 5)
7987
      oprot.writeI64(self.warehouseId)
7988
      oprot.writeFieldEnd()
7989
    if self.unitPrice is not None:
7990
      oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 6)
7991
      oprot.writeDouble(self.unitPrice)
7992
      oprot.writeFieldEnd()
7672 rajveer 7993
    if self.nlc is not None:
7994
      oprot.writeFieldBegin('nlc', TType.DOUBLE, 7)
7995
      oprot.writeDouble(self.nlc)
7996
      oprot.writeFieldEnd()
6762 amar.kumar 7997
    if self.orderId is not None:
7672 rajveer 7998
      oprot.writeFieldBegin('orderId', TType.I64, 8)
6762 amar.kumar 7999
      oprot.writeI64(self.orderId)
8000
      oprot.writeFieldEnd()
8001
    oprot.writeFieldStop()
8002
    oprot.writeStructEnd()
8003
 
8004
  def validate(self):
8005
    return
8006
 
8007
 
8008
  def __repr__(self):
8009
    L = ['%s=%r' % (key, value)
8010
      for key, value in self.__dict__.iteritems()]
8011
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8012
 
8013
  def __eq__(self, other):
8014
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8015
 
8016
  def __ne__(self, other):
8017
    return not (self == other)
8018
 
8019
class scanForOursExternalSale_result:
8020
  """
8021
  Attributes:
8022
   - success
8023
   - ex
8024
  """
8025
 
8026
  thrift_spec = (
8027
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
8028
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8029
  )
8030
 
8031
  def __init__(self, success=None, ex=None,):
8032
    self.success = success
8033
    self.ex = ex
8034
 
8035
  def read(self, iprot):
8036
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8037
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8038
      return
8039
    iprot.readStructBegin()
8040
    while True:
8041
      (fname, ftype, fid) = iprot.readFieldBegin()
8042
      if ftype == TType.STOP:
8043
        break
8044
      if fid == 0:
8045
        if ftype == TType.STRUCT:
8046
          self.success = InventoryItem()
8047
          self.success.read(iprot)
8048
        else:
8049
          iprot.skip(ftype)
8050
      elif fid == 1:
8051
        if ftype == TType.STRUCT:
8052
          self.ex = WarehouseServiceException()
8053
          self.ex.read(iprot)
8054
        else:
8055
          iprot.skip(ftype)
8056
      else:
8057
        iprot.skip(ftype)
8058
      iprot.readFieldEnd()
8059
    iprot.readStructEnd()
8060
 
8061
  def write(self, oprot):
8062
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8063
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8064
      return
8065
    oprot.writeStructBegin('scanForOursExternalSale_result')
8066
    if self.success is not None:
8067
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8068
      self.success.write(oprot)
8069
      oprot.writeFieldEnd()
8070
    if self.ex is not None:
8071
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8072
      self.ex.write(oprot)
8073
      oprot.writeFieldEnd()
8074
    oprot.writeFieldStop()
8075
    oprot.writeStructEnd()
8076
 
8077
  def validate(self):
8078
    return
8079
 
8080
 
8081
  def __repr__(self):
8082
    L = ['%s=%r' % (key, value)
8083
      for key, value in self.__dict__.iteritems()]
8084
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8085
 
8086
  def __eq__(self, other):
8087
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8088
 
8089
  def __ne__(self, other):
8090
    return not (self == other)
8091
 
8092
class scanForOursExternalSaleReturn_args:
8093
  """
8094
  Attributes:
8095
   - orderId
8096
   - unitPrice
8097
  """
8098
 
8099
  thrift_spec = (
8100
    None, # 0
8101
    (1, TType.I64, 'orderId', None, None, ), # 1
8102
    (2, TType.DOUBLE, 'unitPrice', None, None, ), # 2
8103
  )
8104
 
8105
  def __init__(self, orderId=None, unitPrice=None,):
8106
    self.orderId = orderId
8107
    self.unitPrice = unitPrice
8108
 
8109
  def read(self, iprot):
8110
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8111
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8112
      return
8113
    iprot.readStructBegin()
8114
    while True:
8115
      (fname, ftype, fid) = iprot.readFieldBegin()
8116
      if ftype == TType.STOP:
8117
        break
8118
      if fid == 1:
8119
        if ftype == TType.I64:
8120
          self.orderId = iprot.readI64();
8121
        else:
8122
          iprot.skip(ftype)
8123
      elif fid == 2:
8124
        if ftype == TType.DOUBLE:
8125
          self.unitPrice = iprot.readDouble();
8126
        else:
8127
          iprot.skip(ftype)
8128
      else:
8129
        iprot.skip(ftype)
8130
      iprot.readFieldEnd()
8131
    iprot.readStructEnd()
8132
 
8133
  def write(self, oprot):
8134
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8135
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8136
      return
8137
    oprot.writeStructBegin('scanForOursExternalSaleReturn_args')
8138
    if self.orderId is not None:
8139
      oprot.writeFieldBegin('orderId', TType.I64, 1)
8140
      oprot.writeI64(self.orderId)
8141
      oprot.writeFieldEnd()
8142
    if self.unitPrice is not None:
8143
      oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 2)
8144
      oprot.writeDouble(self.unitPrice)
8145
      oprot.writeFieldEnd()
8146
    oprot.writeFieldStop()
8147
    oprot.writeStructEnd()
8148
 
8149
  def validate(self):
8150
    return
8151
 
8152
 
8153
  def __repr__(self):
8154
    L = ['%s=%r' % (key, value)
8155
      for key, value in self.__dict__.iteritems()]
8156
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8157
 
8158
  def __eq__(self, other):
8159
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8160
 
8161
  def __ne__(self, other):
8162
    return not (self == other)
8163
 
8164
class scanForOursExternalSaleReturn_result:
7410 amar.kumar 8165
  """
8166
  Attributes:
8167
   - ex
8168
  """
6762 amar.kumar 8169
 
8170
  thrift_spec = (
7410 amar.kumar 8171
    None, # 0
8172
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6762 amar.kumar 8173
  )
8174
 
7410 amar.kumar 8175
  def __init__(self, ex=None,):
8176
    self.ex = ex
8177
 
6762 amar.kumar 8178
  def read(self, iprot):
8179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8181
      return
8182
    iprot.readStructBegin()
8183
    while True:
8184
      (fname, ftype, fid) = iprot.readFieldBegin()
8185
      if ftype == TType.STOP:
8186
        break
7410 amar.kumar 8187
      if fid == 1:
8188
        if ftype == TType.STRUCT:
8189
          self.ex = WarehouseServiceException()
8190
          self.ex.read(iprot)
8191
        else:
8192
          iprot.skip(ftype)
6762 amar.kumar 8193
      else:
8194
        iprot.skip(ftype)
8195
      iprot.readFieldEnd()
8196
    iprot.readStructEnd()
8197
 
8198
  def write(self, oprot):
8199
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8200
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8201
      return
8202
    oprot.writeStructBegin('scanForOursExternalSaleReturn_result')
7410 amar.kumar 8203
    if self.ex is not None:
8204
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8205
      self.ex.write(oprot)
8206
      oprot.writeFieldEnd()
6762 amar.kumar 8207
    oprot.writeFieldStop()
8208
    oprot.writeStructEnd()
8209
 
8210
  def validate(self):
8211
    return
8212
 
8213
 
8214
  def __repr__(self):
8215
    L = ['%s=%r' % (key, value)
8216
      for key, value in self.__dict__.iteritems()]
8217
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8218
 
8219
  def __eq__(self, other):
8220
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8221
 
8222
  def __ne__(self, other):
8223
    return not (self == other)
6880 amar.kumar 8224
 
8225
class getMovementNonSerializedInventoryByScans_args:
8226
  """
8227
  Attributes:
8228
   - startDate
8229
   - endDate
8230
  """
8231
 
8232
  thrift_spec = (
8233
    None, # 0
8234
    (1, TType.I64, 'startDate', None, None, ), # 1
8235
    (2, TType.I64, 'endDate', None, None, ), # 2
8236
  )
8237
 
8238
  def __init__(self, startDate=None, endDate=None,):
8239
    self.startDate = startDate
8240
    self.endDate = endDate
8241
 
8242
  def read(self, iprot):
8243
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8244
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8245
      return
8246
    iprot.readStructBegin()
8247
    while True:
8248
      (fname, ftype, fid) = iprot.readFieldBegin()
8249
      if ftype == TType.STOP:
8250
        break
8251
      if fid == 1:
8252
        if ftype == TType.I64:
8253
          self.startDate = iprot.readI64();
8254
        else:
8255
          iprot.skip(ftype)
8256
      elif fid == 2:
8257
        if ftype == TType.I64:
8258
          self.endDate = iprot.readI64();
8259
        else:
8260
          iprot.skip(ftype)
8261
      else:
8262
        iprot.skip(ftype)
8263
      iprot.readFieldEnd()
8264
    iprot.readStructEnd()
8265
 
8266
  def write(self, oprot):
8267
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8268
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8269
      return
8270
    oprot.writeStructBegin('getMovementNonSerializedInventoryByScans_args')
8271
    if self.startDate is not None:
8272
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8273
      oprot.writeI64(self.startDate)
8274
      oprot.writeFieldEnd()
8275
    if self.endDate is not None:
8276
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8277
      oprot.writeI64(self.endDate)
8278
      oprot.writeFieldEnd()
8279
    oprot.writeFieldStop()
8280
    oprot.writeStructEnd()
8281
 
8282
  def validate(self):
8283
    return
8284
 
8285
 
8286
  def __repr__(self):
8287
    L = ['%s=%r' % (key, value)
8288
      for key, value in self.__dict__.iteritems()]
8289
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8290
 
8291
  def __eq__(self, other):
8292
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8293
 
8294
  def __ne__(self, other):
8295
    return not (self == other)
8296
 
8297
class getMovementNonSerializedInventoryByScans_result:
8298
  """
8299
  Attributes:
8300
   - success
8301
  """
8302
 
8303
  thrift_spec = (
8304
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8305
  )
8306
 
8307
  def __init__(self, success=None,):
8308
    self.success = success
8309
 
8310
  def read(self, iprot):
8311
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8312
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8313
      return
8314
    iprot.readStructBegin()
8315
    while True:
8316
      (fname, ftype, fid) = iprot.readFieldBegin()
8317
      if ftype == TType.STOP:
8318
        break
8319
      if fid == 0:
8320
        if ftype == TType.LIST:
8321
          self.success = []
10407 amar.kumar 8322
          (_etype129, _size126) = iprot.readListBegin()
8323
          for _i130 in xrange(_size126):
8324
            _elem131 = InventoryMovement()
8325
            _elem131.read(iprot)
8326
            self.success.append(_elem131)
6880 amar.kumar 8327
          iprot.readListEnd()
8328
        else:
8329
          iprot.skip(ftype)
8330
      else:
8331
        iprot.skip(ftype)
8332
      iprot.readFieldEnd()
8333
    iprot.readStructEnd()
8334
 
8335
  def write(self, oprot):
8336
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8337
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8338
      return
8339
    oprot.writeStructBegin('getMovementNonSerializedInventoryByScans_result')
8340
    if self.success is not None:
8341
      oprot.writeFieldBegin('success', TType.LIST, 0)
8342
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8343
      for iter132 in self.success:
8344
        iter132.write(oprot)
6880 amar.kumar 8345
      oprot.writeListEnd()
8346
      oprot.writeFieldEnd()
8347
    oprot.writeFieldStop()
8348
    oprot.writeStructEnd()
8349
 
8350
  def validate(self):
8351
    return
8352
 
8353
 
8354
  def __repr__(self):
8355
    L = ['%s=%r' % (key, value)
8356
      for key, value in self.__dict__.iteritems()]
8357
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8358
 
8359
  def __eq__(self, other):
8360
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8361
 
8362
  def __ne__(self, other):
8363
    return not (self == other)
8364
 
8365
class getMovementSerializedInventoryByScans_args:
8366
  """
8367
  Attributes:
8368
   - startDate
8369
   - endDate
8370
  """
8371
 
8372
  thrift_spec = (
8373
    None, # 0
8374
    (1, TType.I64, 'startDate', None, None, ), # 1
8375
    (2, TType.I64, 'endDate', None, None, ), # 2
8376
  )
8377
 
8378
  def __init__(self, startDate=None, endDate=None,):
8379
    self.startDate = startDate
8380
    self.endDate = endDate
8381
 
8382
  def read(self, iprot):
8383
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8384
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8385
      return
8386
    iprot.readStructBegin()
8387
    while True:
8388
      (fname, ftype, fid) = iprot.readFieldBegin()
8389
      if ftype == TType.STOP:
8390
        break
8391
      if fid == 1:
8392
        if ftype == TType.I64:
8393
          self.startDate = iprot.readI64();
8394
        else:
8395
          iprot.skip(ftype)
8396
      elif fid == 2:
8397
        if ftype == TType.I64:
8398
          self.endDate = iprot.readI64();
8399
        else:
8400
          iprot.skip(ftype)
8401
      else:
8402
        iprot.skip(ftype)
8403
      iprot.readFieldEnd()
8404
    iprot.readStructEnd()
8405
 
8406
  def write(self, oprot):
8407
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8408
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8409
      return
8410
    oprot.writeStructBegin('getMovementSerializedInventoryByScans_args')
8411
    if self.startDate is not None:
8412
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8413
      oprot.writeI64(self.startDate)
8414
      oprot.writeFieldEnd()
8415
    if self.endDate is not None:
8416
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8417
      oprot.writeI64(self.endDate)
8418
      oprot.writeFieldEnd()
8419
    oprot.writeFieldStop()
8420
    oprot.writeStructEnd()
8421
 
8422
  def validate(self):
8423
    return
8424
 
8425
 
8426
  def __repr__(self):
8427
    L = ['%s=%r' % (key, value)
8428
      for key, value in self.__dict__.iteritems()]
8429
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8430
 
8431
  def __eq__(self, other):
8432
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8433
 
8434
  def __ne__(self, other):
8435
    return not (self == other)
8436
 
8437
class getMovementSerializedInventoryByScans_result:
8438
  """
8439
  Attributes:
8440
   - success
8441
  """
8442
 
8443
  thrift_spec = (
8444
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8445
  )
8446
 
8447
  def __init__(self, success=None,):
8448
    self.success = success
8449
 
8450
  def read(self, iprot):
8451
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8452
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8453
      return
8454
    iprot.readStructBegin()
8455
    while True:
8456
      (fname, ftype, fid) = iprot.readFieldBegin()
8457
      if ftype == TType.STOP:
8458
        break
8459
      if fid == 0:
8460
        if ftype == TType.LIST:
8461
          self.success = []
10407 amar.kumar 8462
          (_etype136, _size133) = iprot.readListBegin()
8463
          for _i137 in xrange(_size133):
8464
            _elem138 = InventoryMovement()
8465
            _elem138.read(iprot)
8466
            self.success.append(_elem138)
6880 amar.kumar 8467
          iprot.readListEnd()
8468
        else:
8469
          iprot.skip(ftype)
8470
      else:
8471
        iprot.skip(ftype)
8472
      iprot.readFieldEnd()
8473
    iprot.readStructEnd()
8474
 
8475
  def write(self, oprot):
8476
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8477
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8478
      return
8479
    oprot.writeStructBegin('getMovementSerializedInventoryByScans_result')
8480
    if self.success is not None:
8481
      oprot.writeFieldBegin('success', TType.LIST, 0)
8482
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8483
      for iter139 in self.success:
8484
        iter139.write(oprot)
6880 amar.kumar 8485
      oprot.writeListEnd()
8486
      oprot.writeFieldEnd()
8487
    oprot.writeFieldStop()
8488
    oprot.writeStructEnd()
8489
 
8490
  def validate(self):
8491
    return
8492
 
8493
 
8494
  def __repr__(self):
8495
    L = ['%s=%r' % (key, value)
8496
      for key, value in self.__dict__.iteritems()]
8497
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8498
 
8499
  def __eq__(self, other):
8500
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8501
 
8502
  def __ne__(self, other):
8503
    return not (self == other)
7190 amar.kumar 8504
 
7216 amar.kumar 8505
class getCompleteMovementSerializedInventoryByScans_args:
8506
  """
8507
  Attributes:
8508
   - startDate
8509
   - endDate
8510
  """
8511
 
8512
  thrift_spec = (
8513
    None, # 0
8514
    (1, TType.I64, 'startDate', None, None, ), # 1
8515
    (2, TType.I64, 'endDate', None, None, ), # 2
8516
  )
8517
 
8518
  def __init__(self, startDate=None, endDate=None,):
8519
    self.startDate = startDate
8520
    self.endDate = endDate
8521
 
8522
  def read(self, iprot):
8523
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8524
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8525
      return
8526
    iprot.readStructBegin()
8527
    while True:
8528
      (fname, ftype, fid) = iprot.readFieldBegin()
8529
      if ftype == TType.STOP:
8530
        break
8531
      if fid == 1:
8532
        if ftype == TType.I64:
8533
          self.startDate = iprot.readI64();
8534
        else:
8535
          iprot.skip(ftype)
8536
      elif fid == 2:
8537
        if ftype == TType.I64:
8538
          self.endDate = iprot.readI64();
8539
        else:
8540
          iprot.skip(ftype)
8541
      else:
8542
        iprot.skip(ftype)
8543
      iprot.readFieldEnd()
8544
    iprot.readStructEnd()
8545
 
8546
  def write(self, oprot):
8547
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8548
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8549
      return
8550
    oprot.writeStructBegin('getCompleteMovementSerializedInventoryByScans_args')
8551
    if self.startDate is not None:
8552
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8553
      oprot.writeI64(self.startDate)
8554
      oprot.writeFieldEnd()
8555
    if self.endDate is not None:
8556
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8557
      oprot.writeI64(self.endDate)
8558
      oprot.writeFieldEnd()
8559
    oprot.writeFieldStop()
8560
    oprot.writeStructEnd()
8561
 
8562
  def validate(self):
8563
    return
8564
 
8565
 
8566
  def __repr__(self):
8567
    L = ['%s=%r' % (key, value)
8568
      for key, value in self.__dict__.iteritems()]
8569
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8570
 
8571
  def __eq__(self, other):
8572
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8573
 
8574
  def __ne__(self, other):
8575
    return not (self == other)
8576
 
8577
class getCompleteMovementSerializedInventoryByScans_result:
8578
  """
8579
  Attributes:
8580
   - success
8581
  """
8582
 
8583
  thrift_spec = (
8584
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8585
  )
8586
 
8587
  def __init__(self, success=None,):
8588
    self.success = success
8589
 
8590
  def read(self, iprot):
8591
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8593
      return
8594
    iprot.readStructBegin()
8595
    while True:
8596
      (fname, ftype, fid) = iprot.readFieldBegin()
8597
      if ftype == TType.STOP:
8598
        break
8599
      if fid == 0:
8600
        if ftype == TType.LIST:
8601
          self.success = []
10407 amar.kumar 8602
          (_etype143, _size140) = iprot.readListBegin()
8603
          for _i144 in xrange(_size140):
8604
            _elem145 = InventoryMovement()
8605
            _elem145.read(iprot)
8606
            self.success.append(_elem145)
7216 amar.kumar 8607
          iprot.readListEnd()
8608
        else:
8609
          iprot.skip(ftype)
8610
      else:
8611
        iprot.skip(ftype)
8612
      iprot.readFieldEnd()
8613
    iprot.readStructEnd()
8614
 
8615
  def write(self, oprot):
8616
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8617
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8618
      return
8619
    oprot.writeStructBegin('getCompleteMovementSerializedInventoryByScans_result')
8620
    if self.success is not None:
8621
      oprot.writeFieldBegin('success', TType.LIST, 0)
8622
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8623
      for iter146 in self.success:
8624
        iter146.write(oprot)
7216 amar.kumar 8625
      oprot.writeListEnd()
8626
      oprot.writeFieldEnd()
8627
    oprot.writeFieldStop()
8628
    oprot.writeStructEnd()
8629
 
8630
  def validate(self):
8631
    return
8632
 
8633
 
8634
  def __repr__(self):
8635
    L = ['%s=%r' % (key, value)
8636
      for key, value in self.__dict__.iteritems()]
8637
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8638
 
8639
  def __eq__(self, other):
8640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8641
 
8642
  def __ne__(self, other):
8643
    return not (self == other)
8644
 
8645
class getCompleteMovementNonSerializedInventoryByScans_args:
8646
  """
8647
  Attributes:
8648
   - startDate
8649
   - endDate
8650
  """
8651
 
8652
  thrift_spec = (
8653
    None, # 0
8654
    (1, TType.I64, 'startDate', None, None, ), # 1
8655
    (2, TType.I64, 'endDate', None, None, ), # 2
8656
  )
8657
 
8658
  def __init__(self, startDate=None, endDate=None,):
8659
    self.startDate = startDate
8660
    self.endDate = endDate
8661
 
8662
  def read(self, iprot):
8663
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8664
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8665
      return
8666
    iprot.readStructBegin()
8667
    while True:
8668
      (fname, ftype, fid) = iprot.readFieldBegin()
8669
      if ftype == TType.STOP:
8670
        break
8671
      if fid == 1:
8672
        if ftype == TType.I64:
8673
          self.startDate = iprot.readI64();
8674
        else:
8675
          iprot.skip(ftype)
8676
      elif fid == 2:
8677
        if ftype == TType.I64:
8678
          self.endDate = iprot.readI64();
8679
        else:
8680
          iprot.skip(ftype)
8681
      else:
8682
        iprot.skip(ftype)
8683
      iprot.readFieldEnd()
8684
    iprot.readStructEnd()
8685
 
8686
  def write(self, oprot):
8687
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8688
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8689
      return
8690
    oprot.writeStructBegin('getCompleteMovementNonSerializedInventoryByScans_args')
8691
    if self.startDate is not None:
8692
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8693
      oprot.writeI64(self.startDate)
8694
      oprot.writeFieldEnd()
8695
    if self.endDate is not None:
8696
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8697
      oprot.writeI64(self.endDate)
8698
      oprot.writeFieldEnd()
8699
    oprot.writeFieldStop()
8700
    oprot.writeStructEnd()
8701
 
8702
  def validate(self):
8703
    return
8704
 
8705
 
8706
  def __repr__(self):
8707
    L = ['%s=%r' % (key, value)
8708
      for key, value in self.__dict__.iteritems()]
8709
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8710
 
8711
  def __eq__(self, other):
8712
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8713
 
8714
  def __ne__(self, other):
8715
    return not (self == other)
8716
 
8717
class getCompleteMovementNonSerializedInventoryByScans_result:
8718
  """
8719
  Attributes:
8720
   - success
8721
  """
8722
 
8723
  thrift_spec = (
8724
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8725
  )
8726
 
8727
  def __init__(self, success=None,):
8728
    self.success = success
8729
 
8730
  def read(self, iprot):
8731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8733
      return
8734
    iprot.readStructBegin()
8735
    while True:
8736
      (fname, ftype, fid) = iprot.readFieldBegin()
8737
      if ftype == TType.STOP:
8738
        break
8739
      if fid == 0:
8740
        if ftype == TType.LIST:
8741
          self.success = []
10407 amar.kumar 8742
          (_etype150, _size147) = iprot.readListBegin()
8743
          for _i151 in xrange(_size147):
8744
            _elem152 = InventoryMovement()
8745
            _elem152.read(iprot)
8746
            self.success.append(_elem152)
7216 amar.kumar 8747
          iprot.readListEnd()
8748
        else:
8749
          iprot.skip(ftype)
8750
      else:
8751
        iprot.skip(ftype)
8752
      iprot.readFieldEnd()
8753
    iprot.readStructEnd()
8754
 
8755
  def write(self, oprot):
8756
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8757
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8758
      return
8759
    oprot.writeStructBegin('getCompleteMovementNonSerializedInventoryByScans_result')
8760
    if self.success is not None:
8761
      oprot.writeFieldBegin('success', TType.LIST, 0)
8762
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8763
      for iter153 in self.success:
8764
        iter153.write(oprot)
7216 amar.kumar 8765
      oprot.writeListEnd()
8766
      oprot.writeFieldEnd()
8767
    oprot.writeFieldStop()
8768
    oprot.writeStructEnd()
8769
 
8770
  def validate(self):
8771
    return
8772
 
8773
 
8774
  def __repr__(self):
8775
    L = ['%s=%r' % (key, value)
8776
      for key, value in self.__dict__.iteritems()]
8777
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8778
 
8779
  def __eq__(self, other):
8780
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8781
 
8782
  def __ne__(self, other):
8783
    return not (self == other)
8784
 
7190 amar.kumar 8785
class scanfreebie_args:
8786
  """
8787
  Attributes:
8788
   - orderId
8789
   - freebieItemId
8790
   - freebieWarehouseId
8791
   - scanType
8792
  """
8793
 
8794
  thrift_spec = (
8795
    None, # 0
8796
    (1, TType.I64, 'orderId', None, None, ), # 1
8797
    (2, TType.I64, 'freebieItemId', None, None, ), # 2
8798
    (3, TType.I64, 'freebieWarehouseId', None, None, ), # 3
8799
    (4, TType.I32, 'scanType', None, None, ), # 4
8800
  )
8801
 
8802
  def __init__(self, orderId=None, freebieItemId=None, freebieWarehouseId=None, scanType=None,):
8803
    self.orderId = orderId
8804
    self.freebieItemId = freebieItemId
8805
    self.freebieWarehouseId = freebieWarehouseId
8806
    self.scanType = scanType
8807
 
8808
  def read(self, iprot):
8809
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8810
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8811
      return
8812
    iprot.readStructBegin()
8813
    while True:
8814
      (fname, ftype, fid) = iprot.readFieldBegin()
8815
      if ftype == TType.STOP:
8816
        break
8817
      if fid == 1:
8818
        if ftype == TType.I64:
8819
          self.orderId = iprot.readI64();
8820
        else:
8821
          iprot.skip(ftype)
8822
      elif fid == 2:
8823
        if ftype == TType.I64:
8824
          self.freebieItemId = iprot.readI64();
8825
        else:
8826
          iprot.skip(ftype)
8827
      elif fid == 3:
8828
        if ftype == TType.I64:
8829
          self.freebieWarehouseId = iprot.readI64();
8830
        else:
8831
          iprot.skip(ftype)
8832
      elif fid == 4:
8833
        if ftype == TType.I32:
8834
          self.scanType = iprot.readI32();
8835
        else:
8836
          iprot.skip(ftype)
8837
      else:
8838
        iprot.skip(ftype)
8839
      iprot.readFieldEnd()
8840
    iprot.readStructEnd()
8841
 
8842
  def write(self, oprot):
8843
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8844
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8845
      return
8846
    oprot.writeStructBegin('scanfreebie_args')
8847
    if self.orderId is not None:
8848
      oprot.writeFieldBegin('orderId', TType.I64, 1)
8849
      oprot.writeI64(self.orderId)
8850
      oprot.writeFieldEnd()
8851
    if self.freebieItemId is not None:
8852
      oprot.writeFieldBegin('freebieItemId', TType.I64, 2)
8853
      oprot.writeI64(self.freebieItemId)
8854
      oprot.writeFieldEnd()
8855
    if self.freebieWarehouseId is not None:
8856
      oprot.writeFieldBegin('freebieWarehouseId', TType.I64, 3)
8857
      oprot.writeI64(self.freebieWarehouseId)
8858
      oprot.writeFieldEnd()
8859
    if self.scanType is not None:
8860
      oprot.writeFieldBegin('scanType', TType.I32, 4)
8861
      oprot.writeI32(self.scanType)
8862
      oprot.writeFieldEnd()
8863
    oprot.writeFieldStop()
8864
    oprot.writeStructEnd()
8865
 
8866
  def validate(self):
8867
    return
8868
 
8869
 
8870
  def __repr__(self):
8871
    L = ['%s=%r' % (key, value)
8872
      for key, value in self.__dict__.iteritems()]
8873
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8874
 
8875
  def __eq__(self, other):
8876
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8877
 
8878
  def __ne__(self, other):
8879
    return not (self == other)
8880
 
8881
class scanfreebie_result:
8882
  """
8883
  Attributes:
8884
   - success
8885
   - wex
8886
  """
8887
 
8888
  thrift_spec = (
8889
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
8890
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8891
  )
8892
 
8893
  def __init__(self, success=None, wex=None,):
8894
    self.success = success
8895
    self.wex = wex
8896
 
8897
  def read(self, iprot):
8898
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8899
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8900
      return
8901
    iprot.readStructBegin()
8902
    while True:
8903
      (fname, ftype, fid) = iprot.readFieldBegin()
8904
      if ftype == TType.STOP:
8905
        break
8906
      if fid == 0:
8907
        if ftype == TType.STRUCT:
8908
          self.success = InventoryItem()
8909
          self.success.read(iprot)
8910
        else:
8911
          iprot.skip(ftype)
8912
      elif fid == 1:
8913
        if ftype == TType.STRUCT:
8914
          self.wex = WarehouseServiceException()
8915
          self.wex.read(iprot)
8916
        else:
8917
          iprot.skip(ftype)
8918
      else:
8919
        iprot.skip(ftype)
8920
      iprot.readFieldEnd()
8921
    iprot.readStructEnd()
8922
 
8923
  def write(self, oprot):
8924
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8925
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8926
      return
8927
    oprot.writeStructBegin('scanfreebie_result')
8928
    if self.success is not None:
8929
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8930
      self.success.write(oprot)
8931
      oprot.writeFieldEnd()
8932
    if self.wex is not None:
8933
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
8934
      self.wex.write(oprot)
8935
      oprot.writeFieldEnd()
8936
    oprot.writeFieldStop()
8937
    oprot.writeStructEnd()
8938
 
8939
  def validate(self):
8940
    return
8941
 
8942
 
8943
  def __repr__(self):
8944
    L = ['%s=%r' % (key, value)
8945
      for key, value in self.__dict__.iteritems()]
8946
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8947
 
8948
  def __eq__(self, other):
8949
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8950
 
8951
  def __ne__(self, other):
8952
    return not (self == other)
7199 amar.kumar 8953
 
8954
class reshipfreebie_args:
8955
  """
8956
  Attributes:
8957
   - oldOrderId
8958
   - newOrderId
8959
   - freebieItemId
8960
   - scanType
8961
  """
8962
 
8963
  thrift_spec = (
8964
    None, # 0
8965
    (1, TType.I64, 'oldOrderId', None, None, ), # 1
8966
    (2, TType.I64, 'newOrderId', None, None, ), # 2
8967
    (3, TType.I64, 'freebieItemId', None, None, ), # 3
8968
    (4, TType.I32, 'scanType', None, None, ), # 4
8969
  )
8970
 
8971
  def __init__(self, oldOrderId=None, newOrderId=None, freebieItemId=None, scanType=None,):
8972
    self.oldOrderId = oldOrderId
8973
    self.newOrderId = newOrderId
8974
    self.freebieItemId = freebieItemId
8975
    self.scanType = scanType
8976
 
8977
  def read(self, iprot):
8978
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8979
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8980
      return
8981
    iprot.readStructBegin()
8982
    while True:
8983
      (fname, ftype, fid) = iprot.readFieldBegin()
8984
      if ftype == TType.STOP:
8985
        break
8986
      if fid == 1:
8987
        if ftype == TType.I64:
8988
          self.oldOrderId = iprot.readI64();
8989
        else:
8990
          iprot.skip(ftype)
8991
      elif fid == 2:
8992
        if ftype == TType.I64:
8993
          self.newOrderId = iprot.readI64();
8994
        else:
8995
          iprot.skip(ftype)
8996
      elif fid == 3:
8997
        if ftype == TType.I64:
8998
          self.freebieItemId = iprot.readI64();
8999
        else:
9000
          iprot.skip(ftype)
9001
      elif fid == 4:
9002
        if ftype == TType.I32:
9003
          self.scanType = iprot.readI32();
9004
        else:
9005
          iprot.skip(ftype)
9006
      else:
9007
        iprot.skip(ftype)
9008
      iprot.readFieldEnd()
9009
    iprot.readStructEnd()
9010
 
9011
  def write(self, oprot):
9012
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9013
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9014
      return
9015
    oprot.writeStructBegin('reshipfreebie_args')
9016
    if self.oldOrderId is not None:
9017
      oprot.writeFieldBegin('oldOrderId', TType.I64, 1)
9018
      oprot.writeI64(self.oldOrderId)
9019
      oprot.writeFieldEnd()
9020
    if self.newOrderId is not None:
9021
      oprot.writeFieldBegin('newOrderId', TType.I64, 2)
9022
      oprot.writeI64(self.newOrderId)
9023
      oprot.writeFieldEnd()
9024
    if self.freebieItemId is not None:
9025
      oprot.writeFieldBegin('freebieItemId', TType.I64, 3)
9026
      oprot.writeI64(self.freebieItemId)
9027
      oprot.writeFieldEnd()
9028
    if self.scanType is not None:
9029
      oprot.writeFieldBegin('scanType', TType.I32, 4)
9030
      oprot.writeI32(self.scanType)
9031
      oprot.writeFieldEnd()
9032
    oprot.writeFieldStop()
9033
    oprot.writeStructEnd()
9034
 
9035
  def validate(self):
9036
    return
9037
 
9038
 
9039
  def __repr__(self):
9040
    L = ['%s=%r' % (key, value)
9041
      for key, value in self.__dict__.iteritems()]
9042
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9043
 
9044
  def __eq__(self, other):
9045
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9046
 
9047
  def __ne__(self, other):
9048
    return not (self == other)
9049
 
9050
class reshipfreebie_result:
9051
  """
9052
  Attributes:
9053
   - wex
9054
  """
9055
 
9056
  thrift_spec = (
9057
    None, # 0
9058
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9059
  )
9060
 
9061
  def __init__(self, wex=None,):
9062
    self.wex = wex
9063
 
9064
  def read(self, iprot):
9065
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9066
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9067
      return
9068
    iprot.readStructBegin()
9069
    while True:
9070
      (fname, ftype, fid) = iprot.readFieldBegin()
9071
      if ftype == TType.STOP:
9072
        break
9073
      if fid == 1:
9074
        if ftype == TType.STRUCT:
9075
          self.wex = WarehouseServiceException()
9076
          self.wex.read(iprot)
9077
        else:
9078
          iprot.skip(ftype)
9079
      else:
9080
        iprot.skip(ftype)
9081
      iprot.readFieldEnd()
9082
    iprot.readStructEnd()
9083
 
9084
  def write(self, oprot):
9085
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9086
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9087
      return
9088
    oprot.writeStructBegin('reshipfreebie_result')
9089
    if self.wex is not None:
9090
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9091
      self.wex.write(oprot)
9092
      oprot.writeFieldEnd()
9093
    oprot.writeFieldStop()
9094
    oprot.writeStructEnd()
9095
 
9096
  def validate(self):
9097
    return
9098
 
9099
 
9100
  def __repr__(self):
9101
    L = ['%s=%r' % (key, value)
9102
      for key, value in self.__dict__.iteritems()]
9103
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9104
 
9105
  def __eq__(self, other):
9106
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9107
 
9108
  def __ne__(self, other):
9109
    return not (self == other)
7410 amar.kumar 9110
 
9111
class isItemTransferAllowed_args:
9112
  """
9113
  Attributes:
9114
   - warehouseId
9115
   - transferWarehouseId
9116
  """
9117
 
9118
  thrift_spec = (
9119
    None, # 0
9120
    (1, TType.I64, 'warehouseId', None, None, ), # 1
9121
    (2, TType.I64, 'transferWarehouseId', None, None, ), # 2
9122
  )
9123
 
9124
  def __init__(self, warehouseId=None, transferWarehouseId=None,):
9125
    self.warehouseId = warehouseId
9126
    self.transferWarehouseId = transferWarehouseId
9127
 
9128
  def read(self, iprot):
9129
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9130
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9131
      return
9132
    iprot.readStructBegin()
9133
    while True:
9134
      (fname, ftype, fid) = iprot.readFieldBegin()
9135
      if ftype == TType.STOP:
9136
        break
9137
      if fid == 1:
9138
        if ftype == TType.I64:
9139
          self.warehouseId = iprot.readI64();
9140
        else:
9141
          iprot.skip(ftype)
9142
      elif fid == 2:
9143
        if ftype == TType.I64:
9144
          self.transferWarehouseId = iprot.readI64();
9145
        else:
9146
          iprot.skip(ftype)
9147
      else:
9148
        iprot.skip(ftype)
9149
      iprot.readFieldEnd()
9150
    iprot.readStructEnd()
9151
 
9152
  def write(self, oprot):
9153
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9154
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9155
      return
9156
    oprot.writeStructBegin('isItemTransferAllowed_args')
9157
    if self.warehouseId is not None:
9158
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
9159
      oprot.writeI64(self.warehouseId)
9160
      oprot.writeFieldEnd()
9161
    if self.transferWarehouseId is not None:
9162
      oprot.writeFieldBegin('transferWarehouseId', TType.I64, 2)
9163
      oprot.writeI64(self.transferWarehouseId)
9164
      oprot.writeFieldEnd()
9165
    oprot.writeFieldStop()
9166
    oprot.writeStructEnd()
9167
 
9168
  def validate(self):
9169
    return
9170
 
9171
 
9172
  def __repr__(self):
9173
    L = ['%s=%r' % (key, value)
9174
      for key, value in self.__dict__.iteritems()]
9175
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9176
 
9177
  def __eq__(self, other):
9178
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9179
 
9180
  def __ne__(self, other):
9181
    return not (self == other)
9182
 
9183
class isItemTransferAllowed_result:
9184
  """
9185
  Attributes:
9186
   - success
9187
  """
9188
 
9189
  thrift_spec = (
9190
    (0, TType.BOOL, 'success', None, None, ), # 0
9191
  )
9192
 
9193
  def __init__(self, success=None,):
9194
    self.success = success
9195
 
9196
  def read(self, iprot):
9197
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9198
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9199
      return
9200
    iprot.readStructBegin()
9201
    while True:
9202
      (fname, ftype, fid) = iprot.readFieldBegin()
9203
      if ftype == TType.STOP:
9204
        break
9205
      if fid == 0:
9206
        if ftype == TType.BOOL:
9207
          self.success = iprot.readBool();
9208
        else:
9209
          iprot.skip(ftype)
9210
      else:
9211
        iprot.skip(ftype)
9212
      iprot.readFieldEnd()
9213
    iprot.readStructEnd()
9214
 
9215
  def write(self, oprot):
9216
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9217
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9218
      return
9219
    oprot.writeStructBegin('isItemTransferAllowed_result')
9220
    if self.success is not None:
9221
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9222
      oprot.writeBool(self.success)
9223
      oprot.writeFieldEnd()
9224
    oprot.writeFieldStop()
9225
    oprot.writeStructEnd()
9226
 
9227
  def validate(self):
9228
    return
9229
 
9230
 
9231
  def __repr__(self):
9232
    L = ['%s=%r' % (key, value)
9233
      for key, value in self.__dict__.iteritems()]
9234
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9235
 
9236
  def __eq__(self, other):
9237
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9238
 
9239
  def __ne__(self, other):
9240
    return not (self == other)
9241
 
9242
class createTransferLot_args:
9243
  """
9244
  Attributes:
9245
   - originWarehouseId
9246
   - destWarehouseId
9247
  """
9248
 
9249
  thrift_spec = (
9250
    None, # 0
9251
    (1, TType.I64, 'originWarehouseId', None, None, ), # 1
9252
    (2, TType.I64, 'destWarehouseId', None, None, ), # 2
9253
  )
9254
 
9255
  def __init__(self, originWarehouseId=None, destWarehouseId=None,):
9256
    self.originWarehouseId = originWarehouseId
9257
    self.destWarehouseId = destWarehouseId
9258
 
9259
  def read(self, iprot):
9260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9262
      return
9263
    iprot.readStructBegin()
9264
    while True:
9265
      (fname, ftype, fid) = iprot.readFieldBegin()
9266
      if ftype == TType.STOP:
9267
        break
9268
      if fid == 1:
9269
        if ftype == TType.I64:
9270
          self.originWarehouseId = iprot.readI64();
9271
        else:
9272
          iprot.skip(ftype)
9273
      elif fid == 2:
9274
        if ftype == TType.I64:
9275
          self.destWarehouseId = iprot.readI64();
9276
        else:
9277
          iprot.skip(ftype)
9278
      else:
9279
        iprot.skip(ftype)
9280
      iprot.readFieldEnd()
9281
    iprot.readStructEnd()
9282
 
9283
  def write(self, oprot):
9284
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9285
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9286
      return
9287
    oprot.writeStructBegin('createTransferLot_args')
9288
    if self.originWarehouseId is not None:
9289
      oprot.writeFieldBegin('originWarehouseId', TType.I64, 1)
9290
      oprot.writeI64(self.originWarehouseId)
9291
      oprot.writeFieldEnd()
9292
    if self.destWarehouseId is not None:
9293
      oprot.writeFieldBegin('destWarehouseId', TType.I64, 2)
9294
      oprot.writeI64(self.destWarehouseId)
9295
      oprot.writeFieldEnd()
9296
    oprot.writeFieldStop()
9297
    oprot.writeStructEnd()
9298
 
9299
  def validate(self):
9300
    return
9301
 
9302
 
9303
  def __repr__(self):
9304
    L = ['%s=%r' % (key, value)
9305
      for key, value in self.__dict__.iteritems()]
9306
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9307
 
9308
  def __eq__(self, other):
9309
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9310
 
9311
  def __ne__(self, other):
9312
    return not (self == other)
9313
 
9314
class createTransferLot_result:
9315
  """
9316
  Attributes:
9317
   - success
9318
   - wex
9319
  """
9320
 
9321
  thrift_spec = (
9322
    (0, TType.I64, 'success', None, None, ), # 0
9323
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9324
  )
9325
 
9326
  def __init__(self, success=None, wex=None,):
9327
    self.success = success
9328
    self.wex = wex
9329
 
9330
  def read(self, iprot):
9331
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9332
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9333
      return
9334
    iprot.readStructBegin()
9335
    while True:
9336
      (fname, ftype, fid) = iprot.readFieldBegin()
9337
      if ftype == TType.STOP:
9338
        break
9339
      if fid == 0:
9340
        if ftype == TType.I64:
9341
          self.success = iprot.readI64();
9342
        else:
9343
          iprot.skip(ftype)
9344
      elif fid == 1:
9345
        if ftype == TType.STRUCT:
9346
          self.wex = WarehouseServiceException()
9347
          self.wex.read(iprot)
9348
        else:
9349
          iprot.skip(ftype)
9350
      else:
9351
        iprot.skip(ftype)
9352
      iprot.readFieldEnd()
9353
    iprot.readStructEnd()
9354
 
9355
  def write(self, oprot):
9356
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9357
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9358
      return
9359
    oprot.writeStructBegin('createTransferLot_result')
9360
    if self.success is not None:
9361
      oprot.writeFieldBegin('success', TType.I64, 0)
9362
      oprot.writeI64(self.success)
9363
      oprot.writeFieldEnd()
9364
    if self.wex is not None:
9365
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9366
      self.wex.write(oprot)
9367
      oprot.writeFieldEnd()
9368
    oprot.writeFieldStop()
9369
    oprot.writeStructEnd()
9370
 
9371
  def validate(self):
9372
    return
9373
 
9374
 
9375
  def __repr__(self):
9376
    L = ['%s=%r' % (key, value)
9377
      for key, value in self.__dict__.iteritems()]
9378
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9379
 
9380
  def __eq__(self, other):
9381
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9382
 
9383
  def __ne__(self, other):
9384
    return not (self == other)
9385
 
9386
class getTransferLot_args:
9387
  """
9388
  Attributes:
9389
   - transferLotId
9390
  """
9391
 
9392
  thrift_spec = (
9393
    None, # 0
9394
    (1, TType.I64, 'transferLotId', None, None, ), # 1
9395
  )
9396
 
9397
  def __init__(self, transferLotId=None,):
9398
    self.transferLotId = transferLotId
9399
 
9400
  def read(self, iprot):
9401
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9402
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9403
      return
9404
    iprot.readStructBegin()
9405
    while True:
9406
      (fname, ftype, fid) = iprot.readFieldBegin()
9407
      if ftype == TType.STOP:
9408
        break
9409
      if fid == 1:
9410
        if ftype == TType.I64:
9411
          self.transferLotId = iprot.readI64();
9412
        else:
9413
          iprot.skip(ftype)
9414
      else:
9415
        iprot.skip(ftype)
9416
      iprot.readFieldEnd()
9417
    iprot.readStructEnd()
9418
 
9419
  def write(self, oprot):
9420
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9421
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9422
      return
9423
    oprot.writeStructBegin('getTransferLot_args')
9424
    if self.transferLotId is not None:
9425
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
9426
      oprot.writeI64(self.transferLotId)
9427
      oprot.writeFieldEnd()
9428
    oprot.writeFieldStop()
9429
    oprot.writeStructEnd()
9430
 
9431
  def validate(self):
9432
    return
9433
 
9434
 
9435
  def __repr__(self):
9436
    L = ['%s=%r' % (key, value)
9437
      for key, value in self.__dict__.iteritems()]
9438
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9439
 
9440
  def __eq__(self, other):
9441
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9442
 
9443
  def __ne__(self, other):
9444
    return not (self == other)
9445
 
9446
class getTransferLot_result:
9447
  """
9448
  Attributes:
9449
   - success
9450
   - wex
9451
  """
9452
 
9453
  thrift_spec = (
9454
    (0, TType.STRUCT, 'success', (TransferLot, TransferLot.thrift_spec), None, ), # 0
9455
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9456
  )
9457
 
9458
  def __init__(self, success=None, wex=None,):
9459
    self.success = success
9460
    self.wex = wex
9461
 
9462
  def read(self, iprot):
9463
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9464
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9465
      return
9466
    iprot.readStructBegin()
9467
    while True:
9468
      (fname, ftype, fid) = iprot.readFieldBegin()
9469
      if ftype == TType.STOP:
9470
        break
9471
      if fid == 0:
9472
        if ftype == TType.STRUCT:
9473
          self.success = TransferLot()
9474
          self.success.read(iprot)
9475
        else:
9476
          iprot.skip(ftype)
9477
      elif fid == 1:
9478
        if ftype == TType.STRUCT:
9479
          self.wex = WarehouseServiceException()
9480
          self.wex.read(iprot)
9481
        else:
9482
          iprot.skip(ftype)
9483
      else:
9484
        iprot.skip(ftype)
9485
      iprot.readFieldEnd()
9486
    iprot.readStructEnd()
9487
 
9488
  def write(self, oprot):
9489
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9490
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9491
      return
9492
    oprot.writeStructBegin('getTransferLot_result')
9493
    if self.success is not None:
9494
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9495
      self.success.write(oprot)
9496
      oprot.writeFieldEnd()
9497
    if self.wex is not None:
9498
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9499
      self.wex.write(oprot)
9500
      oprot.writeFieldEnd()
9501
    oprot.writeFieldStop()
9502
    oprot.writeStructEnd()
9503
 
9504
  def validate(self):
9505
    return
9506
 
9507
 
9508
  def __repr__(self):
9509
    L = ['%s=%r' % (key, value)
9510
      for key, value in self.__dict__.iteritems()]
9511
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9512
 
9513
  def __eq__(self, other):
9514
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9515
 
9516
  def __ne__(self, other):
9517
    return not (self == other)
9518
 
9519
class markTransferLotAsReceived_args:
9520
  """
9521
  Attributes:
9522
   - id
9523
   - remoteTransferRefNumber
9524
  """
9525
 
9526
  thrift_spec = (
9527
    None, # 0
9528
    (1, TType.I64, 'id', None, None, ), # 1
9529
    (2, TType.STRING, 'remoteTransferRefNumber', None, None, ), # 2
9530
  )
9531
 
9532
  def __init__(self, id=None, remoteTransferRefNumber=None,):
9533
    self.id = id
9534
    self.remoteTransferRefNumber = remoteTransferRefNumber
9535
 
9536
  def read(self, iprot):
9537
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9538
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9539
      return
9540
    iprot.readStructBegin()
9541
    while True:
9542
      (fname, ftype, fid) = iprot.readFieldBegin()
9543
      if ftype == TType.STOP:
9544
        break
9545
      if fid == 1:
9546
        if ftype == TType.I64:
9547
          self.id = iprot.readI64();
9548
        else:
9549
          iprot.skip(ftype)
9550
      elif fid == 2:
9551
        if ftype == TType.STRING:
9552
          self.remoteTransferRefNumber = iprot.readString();
9553
        else:
9554
          iprot.skip(ftype)
9555
      else:
9556
        iprot.skip(ftype)
9557
      iprot.readFieldEnd()
9558
    iprot.readStructEnd()
9559
 
9560
  def write(self, oprot):
9561
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9562
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9563
      return
9564
    oprot.writeStructBegin('markTransferLotAsReceived_args')
9565
    if self.id is not None:
9566
      oprot.writeFieldBegin('id', TType.I64, 1)
9567
      oprot.writeI64(self.id)
9568
      oprot.writeFieldEnd()
9569
    if self.remoteTransferRefNumber is not None:
9570
      oprot.writeFieldBegin('remoteTransferRefNumber', TType.STRING, 2)
9571
      oprot.writeString(self.remoteTransferRefNumber)
9572
      oprot.writeFieldEnd()
9573
    oprot.writeFieldStop()
9574
    oprot.writeStructEnd()
9575
 
9576
  def validate(self):
9577
    return
9578
 
9579
 
9580
  def __repr__(self):
9581
    L = ['%s=%r' % (key, value)
9582
      for key, value in self.__dict__.iteritems()]
9583
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9584
 
9585
  def __eq__(self, other):
9586
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9587
 
9588
  def __ne__(self, other):
9589
    return not (self == other)
9590
 
9591
class markTransferLotAsReceived_result:
9592
  """
9593
  Attributes:
9594
   - wex
9595
  """
9596
 
9597
  thrift_spec = (
9598
    None, # 0
9599
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9600
  )
9601
 
9602
  def __init__(self, wex=None,):
9603
    self.wex = wex
9604
 
9605
  def read(self, iprot):
9606
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9607
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9608
      return
9609
    iprot.readStructBegin()
9610
    while True:
9611
      (fname, ftype, fid) = iprot.readFieldBegin()
9612
      if ftype == TType.STOP:
9613
        break
9614
      if fid == 1:
9615
        if ftype == TType.STRUCT:
9616
          self.wex = WarehouseServiceException()
9617
          self.wex.read(iprot)
9618
        else:
9619
          iprot.skip(ftype)
9620
      else:
9621
        iprot.skip(ftype)
9622
      iprot.readFieldEnd()
9623
    iprot.readStructEnd()
9624
 
9625
  def write(self, oprot):
9626
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9627
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9628
      return
9629
    oprot.writeStructBegin('markTransferLotAsReceived_result')
9630
    if self.wex is not None:
9631
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9632
      self.wex.write(oprot)
9633
      oprot.writeFieldEnd()
9634
    oprot.writeFieldStop()
9635
    oprot.writeStructEnd()
9636
 
9637
  def validate(self):
9638
    return
9639
 
9640
 
9641
  def __repr__(self):
9642
    L = ['%s=%r' % (key, value)
9643
      for key, value in self.__dict__.iteritems()]
9644
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9645
 
9646
  def __eq__(self, other):
9647
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9648
 
9649
  def __ne__(self, other):
9650
    return not (self == other)
9651
 
9652
class getTransferLotsByDate_args:
9653
  """
9654
  Attributes:
9655
   - fromDate
9656
   - toDate
9657
  """
9658
 
9659
  thrift_spec = (
9660
    None, # 0
9661
    (1, TType.I64, 'fromDate', None, None, ), # 1
9662
    (2, TType.I64, 'toDate', None, None, ), # 2
9663
  )
9664
 
9665
  def __init__(self, fromDate=None, toDate=None,):
9666
    self.fromDate = fromDate
9667
    self.toDate = toDate
9668
 
9669
  def read(self, iprot):
9670
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9671
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9672
      return
9673
    iprot.readStructBegin()
9674
    while True:
9675
      (fname, ftype, fid) = iprot.readFieldBegin()
9676
      if ftype == TType.STOP:
9677
        break
9678
      if fid == 1:
9679
        if ftype == TType.I64:
9680
          self.fromDate = iprot.readI64();
9681
        else:
9682
          iprot.skip(ftype)
9683
      elif fid == 2:
9684
        if ftype == TType.I64:
9685
          self.toDate = iprot.readI64();
9686
        else:
9687
          iprot.skip(ftype)
9688
      else:
9689
        iprot.skip(ftype)
9690
      iprot.readFieldEnd()
9691
    iprot.readStructEnd()
9692
 
9693
  def write(self, oprot):
9694
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9695
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9696
      return
9697
    oprot.writeStructBegin('getTransferLotsByDate_args')
9698
    if self.fromDate is not None:
9699
      oprot.writeFieldBegin('fromDate', TType.I64, 1)
9700
      oprot.writeI64(self.fromDate)
9701
      oprot.writeFieldEnd()
9702
    if self.toDate is not None:
9703
      oprot.writeFieldBegin('toDate', TType.I64, 2)
9704
      oprot.writeI64(self.toDate)
9705
      oprot.writeFieldEnd()
9706
    oprot.writeFieldStop()
9707
    oprot.writeStructEnd()
9708
 
9709
  def validate(self):
9710
    return
9711
 
9712
 
9713
  def __repr__(self):
9714
    L = ['%s=%r' % (key, value)
9715
      for key, value in self.__dict__.iteritems()]
9716
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9717
 
9718
  def __eq__(self, other):
9719
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9720
 
9721
  def __ne__(self, other):
9722
    return not (self == other)
9723
 
9724
class getTransferLotsByDate_result:
9725
  """
9726
  Attributes:
9727
   - success
9728
   - wex
9729
  """
9730
 
9731
  thrift_spec = (
9732
    (0, TType.LIST, 'success', (TType.STRUCT,(TransferLot, TransferLot.thrift_spec)), None, ), # 0
9733
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9734
  )
9735
 
9736
  def __init__(self, success=None, wex=None,):
9737
    self.success = success
9738
    self.wex = wex
9739
 
9740
  def read(self, iprot):
9741
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9742
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9743
      return
9744
    iprot.readStructBegin()
9745
    while True:
9746
      (fname, ftype, fid) = iprot.readFieldBegin()
9747
      if ftype == TType.STOP:
9748
        break
9749
      if fid == 0:
9750
        if ftype == TType.LIST:
9751
          self.success = []
10407 amar.kumar 9752
          (_etype157, _size154) = iprot.readListBegin()
9753
          for _i158 in xrange(_size154):
9754
            _elem159 = TransferLot()
9755
            _elem159.read(iprot)
9756
            self.success.append(_elem159)
7410 amar.kumar 9757
          iprot.readListEnd()
9758
        else:
9759
          iprot.skip(ftype)
9760
      elif fid == 1:
9761
        if ftype == TType.STRUCT:
9762
          self.wex = WarehouseServiceException()
9763
          self.wex.read(iprot)
9764
        else:
9765
          iprot.skip(ftype)
9766
      else:
9767
        iprot.skip(ftype)
9768
      iprot.readFieldEnd()
9769
    iprot.readStructEnd()
9770
 
9771
  def write(self, oprot):
9772
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9773
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9774
      return
9775
    oprot.writeStructBegin('getTransferLotsByDate_result')
9776
    if self.success is not None:
9777
      oprot.writeFieldBegin('success', TType.LIST, 0)
9778
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 9779
      for iter160 in self.success:
9780
        iter160.write(oprot)
7410 amar.kumar 9781
      oprot.writeListEnd()
9782
      oprot.writeFieldEnd()
9783
    if self.wex is not None:
9784
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9785
      self.wex.write(oprot)
9786
      oprot.writeFieldEnd()
9787
    oprot.writeFieldStop()
9788
    oprot.writeStructEnd()
9789
 
9790
  def validate(self):
9791
    return
9792
 
9793
 
9794
  def __repr__(self):
9795
    L = ['%s=%r' % (key, value)
9796
      for key, value in self.__dict__.iteritems()]
9797
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9798
 
9799
  def __eq__(self, other):
9800
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9801
 
9802
  def __ne__(self, other):
9803
    return not (self == other)
9804
 
9805
class getAllowedDestinationWarehousesForTransfer_args:
9806
  """
9807
  Attributes:
9808
   - warehouseId
9809
  """
9810
 
9811
  thrift_spec = (
9812
    None, # 0
9813
    (1, TType.I64, 'warehouseId', None, None, ), # 1
9814
  )
9815
 
9816
  def __init__(self, warehouseId=None,):
9817
    self.warehouseId = warehouseId
9818
 
9819
  def read(self, iprot):
9820
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9821
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9822
      return
9823
    iprot.readStructBegin()
9824
    while True:
9825
      (fname, ftype, fid) = iprot.readFieldBegin()
9826
      if ftype == TType.STOP:
9827
        break
9828
      if fid == 1:
9829
        if ftype == TType.I64:
9830
          self.warehouseId = iprot.readI64();
9831
        else:
9832
          iprot.skip(ftype)
9833
      else:
9834
        iprot.skip(ftype)
9835
      iprot.readFieldEnd()
9836
    iprot.readStructEnd()
9837
 
9838
  def write(self, oprot):
9839
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9840
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9841
      return
9842
    oprot.writeStructBegin('getAllowedDestinationWarehousesForTransfer_args')
9843
    if self.warehouseId is not None:
9844
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
9845
      oprot.writeI64(self.warehouseId)
9846
      oprot.writeFieldEnd()
9847
    oprot.writeFieldStop()
9848
    oprot.writeStructEnd()
9849
 
9850
  def validate(self):
9851
    return
9852
 
9853
 
9854
  def __repr__(self):
9855
    L = ['%s=%r' % (key, value)
9856
      for key, value in self.__dict__.iteritems()]
9857
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9858
 
9859
  def __eq__(self, other):
9860
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9861
 
9862
  def __ne__(self, other):
9863
    return not (self == other)
9864
 
9865
class getAllowedDestinationWarehousesForTransfer_result:
9866
  """
9867
  Attributes:
9868
   - success
9869
  """
9870
 
9871
  thrift_spec = (
9872
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9873
  )
9874
 
9875
  def __init__(self, success=None,):
9876
    self.success = success
9877
 
9878
  def read(self, iprot):
9879
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9880
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9881
      return
9882
    iprot.readStructBegin()
9883
    while True:
9884
      (fname, ftype, fid) = iprot.readFieldBegin()
9885
      if ftype == TType.STOP:
9886
        break
9887
      if fid == 0:
9888
        if ftype == TType.LIST:
9889
          self.success = []
10407 amar.kumar 9890
          (_etype164, _size161) = iprot.readListBegin()
9891
          for _i165 in xrange(_size161):
9892
            _elem166 = iprot.readI64();
9893
            self.success.append(_elem166)
7410 amar.kumar 9894
          iprot.readListEnd()
9895
        else:
9896
          iprot.skip(ftype)
9897
      else:
9898
        iprot.skip(ftype)
9899
      iprot.readFieldEnd()
9900
    iprot.readStructEnd()
9901
 
9902
  def write(self, oprot):
9903
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9904
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9905
      return
9906
    oprot.writeStructBegin('getAllowedDestinationWarehousesForTransfer_result')
9907
    if self.success is not None:
9908
      oprot.writeFieldBegin('success', TType.LIST, 0)
9909
      oprot.writeListBegin(TType.I64, len(self.success))
10407 amar.kumar 9910
      for iter167 in self.success:
9911
        oprot.writeI64(iter167)
7410 amar.kumar 9912
      oprot.writeListEnd()
9913
      oprot.writeFieldEnd()
9914
    oprot.writeFieldStop()
9915
    oprot.writeStructEnd()
9916
 
9917
  def validate(self):
9918
    return
9919
 
9920
 
9921
  def __repr__(self):
9922
    L = ['%s=%r' % (key, value)
9923
      for key, value in self.__dict__.iteritems()]
9924
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9925
 
9926
  def __eq__(self, other):
9927
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9928
 
9929
  def __ne__(self, other):
9930
    return not (self == other)
9931
 
9932
class getItemsInTransferLot_args:
9933
  """
9934
  Attributes:
9935
   - transferLotId
9936
  """
9937
 
9938
  thrift_spec = (
9939
    None, # 0
9940
    (1, TType.I64, 'transferLotId', None, None, ), # 1
9941
  )
9942
 
9943
  def __init__(self, transferLotId=None,):
9944
    self.transferLotId = transferLotId
9945
 
9946
  def read(self, iprot):
9947
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9948
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9949
      return
9950
    iprot.readStructBegin()
9951
    while True:
9952
      (fname, ftype, fid) = iprot.readFieldBegin()
9953
      if ftype == TType.STOP:
9954
        break
9955
      if fid == 1:
9956
        if ftype == TType.I64:
9957
          self.transferLotId = iprot.readI64();
9958
        else:
9959
          iprot.skip(ftype)
9960
      else:
9961
        iprot.skip(ftype)
9962
      iprot.readFieldEnd()
9963
    iprot.readStructEnd()
9964
 
9965
  def write(self, oprot):
9966
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9967
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9968
      return
9969
    oprot.writeStructBegin('getItemsInTransferLot_args')
9970
    if self.transferLotId is not None:
9971
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
9972
      oprot.writeI64(self.transferLotId)
9973
      oprot.writeFieldEnd()
9974
    oprot.writeFieldStop()
9975
    oprot.writeStructEnd()
9976
 
9977
  def validate(self):
9978
    return
9979
 
9980
 
9981
  def __repr__(self):
9982
    L = ['%s=%r' % (key, value)
9983
      for key, value in self.__dict__.iteritems()]
9984
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9985
 
9986
  def __eq__(self, other):
9987
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9988
 
9989
  def __ne__(self, other):
9990
    return not (self == other)
9991
 
9992
class getItemsInTransferLot_result:
9993
  """
9994
  Attributes:
9995
   - success
9996
  """
9997
 
9998
  thrift_spec = (
9999
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
10000
  )
10001
 
10002
  def __init__(self, success=None,):
10003
    self.success = success
10004
 
10005
  def read(self, iprot):
10006
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10007
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10008
      return
10009
    iprot.readStructBegin()
10010
    while True:
10011
      (fname, ftype, fid) = iprot.readFieldBegin()
10012
      if ftype == TType.STOP:
10013
        break
10014
      if fid == 0:
10015
        if ftype == TType.MAP:
10016
          self.success = {}
10407 amar.kumar 10017
          (_ktype169, _vtype170, _size168 ) = iprot.readMapBegin() 
10018
          for _i172 in xrange(_size168):
10019
            _key173 = iprot.readI64();
10020
            _val174 = iprot.readI64();
10021
            self.success[_key173] = _val174
7410 amar.kumar 10022
          iprot.readMapEnd()
10023
        else:
10024
          iprot.skip(ftype)
10025
      else:
10026
        iprot.skip(ftype)
10027
      iprot.readFieldEnd()
10028
    iprot.readStructEnd()
10029
 
10030
  def write(self, oprot):
10031
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10032
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10033
      return
10034
    oprot.writeStructBegin('getItemsInTransferLot_result')
10035
    if self.success is not None:
10036
      oprot.writeFieldBegin('success', TType.MAP, 0)
10037
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
10407 amar.kumar 10038
      for kiter175,viter176 in self.success.items():
10039
        oprot.writeI64(kiter175)
10040
        oprot.writeI64(viter176)
7410 amar.kumar 10041
      oprot.writeMapEnd()
10042
      oprot.writeFieldEnd()
10043
    oprot.writeFieldStop()
10044
    oprot.writeStructEnd()
10045
 
10046
  def validate(self):
10047
    return
10048
 
10049
 
10050
  def __repr__(self):
10051
    L = ['%s=%r' % (key, value)
10052
      for key, value in self.__dict__.iteritems()]
10053
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10054
 
10055
  def __eq__(self, other):
10056
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10057
 
10058
  def __ne__(self, other):
10059
    return not (self == other)
10060
 
10061
class markItemsAsReceivedForTransferLot_args:
10062
  """
10063
  Attributes:
10064
   - id
10065
  """
10066
 
10067
  thrift_spec = (
10068
    None, # 0
10069
    (1, TType.I64, 'id', None, None, ), # 1
10070
  )
10071
 
10072
  def __init__(self, id=None,):
10073
    self.id = id
10074
 
10075
  def read(self, iprot):
10076
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10077
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10078
      return
10079
    iprot.readStructBegin()
10080
    while True:
10081
      (fname, ftype, fid) = iprot.readFieldBegin()
10082
      if ftype == TType.STOP:
10083
        break
10084
      if fid == 1:
10085
        if ftype == TType.I64:
10086
          self.id = iprot.readI64();
10087
        else:
10088
          iprot.skip(ftype)
10089
      else:
10090
        iprot.skip(ftype)
10091
      iprot.readFieldEnd()
10092
    iprot.readStructEnd()
10093
 
10094
  def write(self, oprot):
10095
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10096
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10097
      return
10098
    oprot.writeStructBegin('markItemsAsReceivedForTransferLot_args')
10099
    if self.id is not None:
10100
      oprot.writeFieldBegin('id', TType.I64, 1)
10101
      oprot.writeI64(self.id)
10102
      oprot.writeFieldEnd()
10103
    oprot.writeFieldStop()
10104
    oprot.writeStructEnd()
10105
 
10106
  def validate(self):
10107
    return
10108
 
10109
 
10110
  def __repr__(self):
10111
    L = ['%s=%r' % (key, value)
10112
      for key, value in self.__dict__.iteritems()]
10113
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10114
 
10115
  def __eq__(self, other):
10116
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10117
 
10118
  def __ne__(self, other):
10119
    return not (self == other)
10120
 
10121
class markItemsAsReceivedForTransferLot_result:
10122
  """
10123
  Attributes:
10124
   - wex
10125
  """
10126
 
10127
  thrift_spec = (
10128
    None, # 0
10129
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10130
  )
10131
 
10132
  def __init__(self, wex=None,):
10133
    self.wex = wex
10134
 
10135
  def read(self, iprot):
10136
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10137
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10138
      return
10139
    iprot.readStructBegin()
10140
    while True:
10141
      (fname, ftype, fid) = iprot.readFieldBegin()
10142
      if ftype == TType.STOP:
10143
        break
10144
      if fid == 1:
10145
        if ftype == TType.STRUCT:
10146
          self.wex = WarehouseServiceException()
10147
          self.wex.read(iprot)
10148
        else:
10149
          iprot.skip(ftype)
10150
      else:
10151
        iprot.skip(ftype)
10152
      iprot.readFieldEnd()
10153
    iprot.readStructEnd()
10154
 
10155
  def write(self, oprot):
10156
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10157
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10158
      return
10159
    oprot.writeStructBegin('markItemsAsReceivedForTransferLot_result')
10160
    if self.wex is not None:
10161
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10162
      self.wex.write(oprot)
10163
      oprot.writeFieldEnd()
10164
    oprot.writeFieldStop()
10165
    oprot.writeStructEnd()
10166
 
10167
  def validate(self):
10168
    return
10169
 
10170
 
10171
  def __repr__(self):
10172
    L = ['%s=%r' % (key, value)
10173
      for key, value in self.__dict__.iteritems()]
10174
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10175
 
10176
  def __eq__(self, other):
10177
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10178
 
10179
  def __ne__(self, other):
10180
    return not (self == other)
10181
 
10182
class updateTransferLotAfterItemReceive_args:
10183
  """
10184
  Attributes:
10185
   - id
10186
  """
10187
 
10188
  thrift_spec = (
10189
    None, # 0
10190
    (1, TType.I64, 'id', None, None, ), # 1
10191
  )
10192
 
10193
  def __init__(self, id=None,):
10194
    self.id = id
10195
 
10196
  def read(self, iprot):
10197
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10198
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10199
      return
10200
    iprot.readStructBegin()
10201
    while True:
10202
      (fname, ftype, fid) = iprot.readFieldBegin()
10203
      if ftype == TType.STOP:
10204
        break
10205
      if fid == 1:
10206
        if ftype == TType.I64:
10207
          self.id = iprot.readI64();
10208
        else:
10209
          iprot.skip(ftype)
10210
      else:
10211
        iprot.skip(ftype)
10212
      iprot.readFieldEnd()
10213
    iprot.readStructEnd()
10214
 
10215
  def write(self, oprot):
10216
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10217
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10218
      return
10219
    oprot.writeStructBegin('updateTransferLotAfterItemReceive_args')
10220
    if self.id is not None:
10221
      oprot.writeFieldBegin('id', TType.I64, 1)
10222
      oprot.writeI64(self.id)
10223
      oprot.writeFieldEnd()
10224
    oprot.writeFieldStop()
10225
    oprot.writeStructEnd()
10226
 
10227
  def validate(self):
10228
    return
10229
 
10230
 
10231
  def __repr__(self):
10232
    L = ['%s=%r' % (key, value)
10233
      for key, value in self.__dict__.iteritems()]
10234
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10235
 
10236
  def __eq__(self, other):
10237
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10238
 
10239
  def __ne__(self, other):
10240
    return not (self == other)
10241
 
10242
class updateTransferLotAfterItemReceive_result:
10243
  """
10244
  Attributes:
10245
   - success
10246
   - wex
10247
  """
10248
 
10249
  thrift_spec = (
10250
    (0, TType.I32, 'success', None, None, ), # 0
10251
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10252
  )
10253
 
10254
  def __init__(self, success=None, wex=None,):
10255
    self.success = success
10256
    self.wex = wex
10257
 
10258
  def read(self, iprot):
10259
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10260
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10261
      return
10262
    iprot.readStructBegin()
10263
    while True:
10264
      (fname, ftype, fid) = iprot.readFieldBegin()
10265
      if ftype == TType.STOP:
10266
        break
10267
      if fid == 0:
10268
        if ftype == TType.I32:
10269
          self.success = iprot.readI32();
10270
        else:
10271
          iprot.skip(ftype)
10272
      elif fid == 1:
10273
        if ftype == TType.STRUCT:
10274
          self.wex = WarehouseServiceException()
10275
          self.wex.read(iprot)
10276
        else:
10277
          iprot.skip(ftype)
10278
      else:
10279
        iprot.skip(ftype)
10280
      iprot.readFieldEnd()
10281
    iprot.readStructEnd()
10282
 
10283
  def write(self, oprot):
10284
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10285
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10286
      return
10287
    oprot.writeStructBegin('updateTransferLotAfterItemReceive_result')
10288
    if self.success is not None:
10289
      oprot.writeFieldBegin('success', TType.I32, 0)
10290
      oprot.writeI32(self.success)
10291
      oprot.writeFieldEnd()
10292
    if self.wex is not None:
10293
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10294
      self.wex.write(oprot)
10295
      oprot.writeFieldEnd()
10296
    oprot.writeFieldStop()
10297
    oprot.writeStructEnd()
10298
 
10299
  def validate(self):
10300
    return
10301
 
10302
 
10303
  def __repr__(self):
10304
    L = ['%s=%r' % (key, value)
10305
      for key, value in self.__dict__.iteritems()]
10306
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10307
 
10308
  def __eq__(self, other):
10309
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10310
 
10311
  def __ne__(self, other):
10312
    return not (self == other)
10313
 
7459 amar.kumar 10314
class scanForTransferOut_args:
7410 amar.kumar 10315
  """
10316
  Attributes:
10317
   - inventoryItems
10318
   - type
10319
   - transferLotId
10320
  """
10321
 
10322
  thrift_spec = (
10323
    None, # 0
10324
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
10325
    (2, TType.I32, 'type', None, None, ), # 2
10326
    (3, TType.I64, 'transferLotId', None, None, ), # 3
10327
  )
10328
 
10329
  def __init__(self, inventoryItems=None, type=None, transferLotId=None,):
10330
    self.inventoryItems = inventoryItems
10331
    self.type = type
10332
    self.transferLotId = transferLotId
10333
 
10334
  def read(self, iprot):
10335
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10336
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10337
      return
10338
    iprot.readStructBegin()
10339
    while True:
10340
      (fname, ftype, fid) = iprot.readFieldBegin()
10341
      if ftype == TType.STOP:
10342
        break
10343
      if fid == 1:
10344
        if ftype == TType.LIST:
10345
          self.inventoryItems = []
10407 amar.kumar 10346
          (_etype180, _size177) = iprot.readListBegin()
10347
          for _i181 in xrange(_size177):
10348
            _elem182 = InventoryItem()
10349
            _elem182.read(iprot)
10350
            self.inventoryItems.append(_elem182)
7410 amar.kumar 10351
          iprot.readListEnd()
10352
        else:
10353
          iprot.skip(ftype)
10354
      elif fid == 2:
10355
        if ftype == TType.I32:
10356
          self.type = iprot.readI32();
10357
        else:
10358
          iprot.skip(ftype)
10359
      elif fid == 3:
10360
        if ftype == TType.I64:
10361
          self.transferLotId = iprot.readI64();
10362
        else:
10363
          iprot.skip(ftype)
10364
      else:
10365
        iprot.skip(ftype)
10366
      iprot.readFieldEnd()
10367
    iprot.readStructEnd()
10368
 
10369
  def write(self, oprot):
10370
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10371
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10372
      return
7459 amar.kumar 10373
    oprot.writeStructBegin('scanForTransferOut_args')
7410 amar.kumar 10374
    if self.inventoryItems is not None:
10375
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
10376
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 10377
      for iter183 in self.inventoryItems:
10378
        iter183.write(oprot)
7410 amar.kumar 10379
      oprot.writeListEnd()
10380
      oprot.writeFieldEnd()
10381
    if self.type is not None:
10382
      oprot.writeFieldBegin('type', TType.I32, 2)
10383
      oprot.writeI32(self.type)
10384
      oprot.writeFieldEnd()
10385
    if self.transferLotId is not None:
10386
      oprot.writeFieldBegin('transferLotId', TType.I64, 3)
10387
      oprot.writeI64(self.transferLotId)
10388
      oprot.writeFieldEnd()
10389
    oprot.writeFieldStop()
10390
    oprot.writeStructEnd()
10391
 
10392
  def validate(self):
10393
    return
10394
 
10395
 
10396
  def __repr__(self):
10397
    L = ['%s=%r' % (key, value)
10398
      for key, value in self.__dict__.iteritems()]
10399
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10400
 
10401
  def __eq__(self, other):
10402
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10403
 
10404
  def __ne__(self, other):
10405
    return not (self == other)
10406
 
7459 amar.kumar 10407
class scanForTransferOut_result:
7410 amar.kumar 10408
  """
10409
  Attributes:
10410
   - wex
10411
  """
10412
 
10413
  thrift_spec = (
10414
    None, # 0
10415
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10416
  )
10417
 
10418
  def __init__(self, wex=None,):
10419
    self.wex = wex
10420
 
10421
  def read(self, iprot):
10422
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10423
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10424
      return
10425
    iprot.readStructBegin()
10426
    while True:
10427
      (fname, ftype, fid) = iprot.readFieldBegin()
10428
      if ftype == TType.STOP:
10429
        break
10430
      if fid == 1:
10431
        if ftype == TType.STRUCT:
10432
          self.wex = WarehouseServiceException()
10433
          self.wex.read(iprot)
10434
        else:
10435
          iprot.skip(ftype)
10436
      else:
10437
        iprot.skip(ftype)
10438
      iprot.readFieldEnd()
10439
    iprot.readStructEnd()
10440
 
10441
  def write(self, oprot):
10442
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10443
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10444
      return
7459 amar.kumar 10445
    oprot.writeStructBegin('scanForTransferOut_result')
7410 amar.kumar 10446
    if self.wex is not None:
10447
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10448
      self.wex.write(oprot)
10449
      oprot.writeFieldEnd()
10450
    oprot.writeFieldStop()
10451
    oprot.writeStructEnd()
10452
 
10453
  def validate(self):
10454
    return
10455
 
10456
 
10457
  def __repr__(self):
10458
    L = ['%s=%r' % (key, value)
10459
      for key, value in self.__dict__.iteritems()]
10460
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10461
 
10462
  def __eq__(self, other):
10463
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10464
 
10465
  def __ne__(self, other):
10466
    return not (self == other)
7459 amar.kumar 10467
 
10468
class scanForTransferIn_args:
10469
  """
10470
  Attributes:
10471
   - inventoryItems
10472
   - type
10473
   - transferLotId
10474
  """
10475
 
10476
  thrift_spec = (
10477
    None, # 0
10478
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
10479
    (2, TType.I32, 'type', None, None, ), # 2
10480
    (3, TType.I64, 'transferLotId', None, None, ), # 3
10481
  )
10482
 
10483
  def __init__(self, inventoryItems=None, type=None, transferLotId=None,):
10484
    self.inventoryItems = inventoryItems
10485
    self.type = type
10486
    self.transferLotId = transferLotId
10487
 
10488
  def read(self, iprot):
10489
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10490
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10491
      return
10492
    iprot.readStructBegin()
10493
    while True:
10494
      (fname, ftype, fid) = iprot.readFieldBegin()
10495
      if ftype == TType.STOP:
10496
        break
10497
      if fid == 1:
10498
        if ftype == TType.LIST:
10499
          self.inventoryItems = []
10407 amar.kumar 10500
          (_etype187, _size184) = iprot.readListBegin()
10501
          for _i188 in xrange(_size184):
10502
            _elem189 = InventoryItem()
10503
            _elem189.read(iprot)
10504
            self.inventoryItems.append(_elem189)
7459 amar.kumar 10505
          iprot.readListEnd()
10506
        else:
10507
          iprot.skip(ftype)
10508
      elif fid == 2:
10509
        if ftype == TType.I32:
10510
          self.type = iprot.readI32();
10511
        else:
10512
          iprot.skip(ftype)
10513
      elif fid == 3:
10514
        if ftype == TType.I64:
10515
          self.transferLotId = iprot.readI64();
10516
        else:
10517
          iprot.skip(ftype)
10518
      else:
10519
        iprot.skip(ftype)
10520
      iprot.readFieldEnd()
10521
    iprot.readStructEnd()
10522
 
10523
  def write(self, oprot):
10524
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10525
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10526
      return
10527
    oprot.writeStructBegin('scanForTransferIn_args')
10528
    if self.inventoryItems is not None:
10529
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
10530
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 10531
      for iter190 in self.inventoryItems:
10532
        iter190.write(oprot)
7459 amar.kumar 10533
      oprot.writeListEnd()
10534
      oprot.writeFieldEnd()
10535
    if self.type is not None:
10536
      oprot.writeFieldBegin('type', TType.I32, 2)
10537
      oprot.writeI32(self.type)
10538
      oprot.writeFieldEnd()
10539
    if self.transferLotId is not None:
10540
      oprot.writeFieldBegin('transferLotId', TType.I64, 3)
10541
      oprot.writeI64(self.transferLotId)
10542
      oprot.writeFieldEnd()
10543
    oprot.writeFieldStop()
10544
    oprot.writeStructEnd()
10545
 
10546
  def validate(self):
10547
    return
10548
 
10549
 
10550
  def __repr__(self):
10551
    L = ['%s=%r' % (key, value)
10552
      for key, value in self.__dict__.iteritems()]
10553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10554
 
10555
  def __eq__(self, other):
10556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10557
 
10558
  def __ne__(self, other):
10559
    return not (self == other)
10560
 
10561
class scanForTransferIn_result:
10562
  """
10563
  Attributes:
10564
   - wex
10565
  """
10566
 
10567
  thrift_spec = (
10568
    None, # 0
10569
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10570
  )
10571
 
10572
  def __init__(self, wex=None,):
10573
    self.wex = wex
10574
 
10575
  def read(self, iprot):
10576
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10577
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10578
      return
10579
    iprot.readStructBegin()
10580
    while True:
10581
      (fname, ftype, fid) = iprot.readFieldBegin()
10582
      if ftype == TType.STOP:
10583
        break
10584
      if fid == 1:
10585
        if ftype == TType.STRUCT:
10586
          self.wex = WarehouseServiceException()
10587
          self.wex.read(iprot)
10588
        else:
10589
          iprot.skip(ftype)
10590
      else:
10591
        iprot.skip(ftype)
10592
      iprot.readFieldEnd()
10593
    iprot.readStructEnd()
10594
 
10595
  def write(self, oprot):
10596
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10597
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10598
      return
10599
    oprot.writeStructBegin('scanForTransferIn_result')
10600
    if self.wex is not None:
10601
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10602
      self.wex.write(oprot)
10603
      oprot.writeFieldEnd()
10604
    oprot.writeFieldStop()
10605
    oprot.writeStructEnd()
10606
 
10607
  def validate(self):
10608
    return
10609
 
10610
 
10611
  def __repr__(self):
10612
    L = ['%s=%r' % (key, value)
10613
      for key, value in self.__dict__.iteritems()]
10614
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10615
 
10616
  def __eq__(self, other):
10617
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10618
 
10619
  def __ne__(self, other):
10620
    return not (self == other)
10621
 
10622
class scanForOursThirdPartyReceive_args:
10623
  """
10624
  Attributes:
10625
   - inventoryItems
10626
   - id
10627
  """
10628
 
10629
  thrift_spec = (
10630
    None, # 0
10631
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
10632
    (2, TType.I64, 'id', None, None, ), # 2
10633
  )
10634
 
10635
  def __init__(self, inventoryItems=None, id=None,):
10636
    self.inventoryItems = inventoryItems
10637
    self.id = id
10638
 
10639
  def read(self, iprot):
10640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10642
      return
10643
    iprot.readStructBegin()
10644
    while True:
10645
      (fname, ftype, fid) = iprot.readFieldBegin()
10646
      if ftype == TType.STOP:
10647
        break
10648
      if fid == 1:
10649
        if ftype == TType.LIST:
10650
          self.inventoryItems = []
10407 amar.kumar 10651
          (_etype194, _size191) = iprot.readListBegin()
10652
          for _i195 in xrange(_size191):
10653
            _elem196 = InventoryItem()
10654
            _elem196.read(iprot)
10655
            self.inventoryItems.append(_elem196)
7459 amar.kumar 10656
          iprot.readListEnd()
10657
        else:
10658
          iprot.skip(ftype)
10659
      elif fid == 2:
10660
        if ftype == TType.I64:
10661
          self.id = iprot.readI64();
10662
        else:
10663
          iprot.skip(ftype)
10664
      else:
10665
        iprot.skip(ftype)
10666
      iprot.readFieldEnd()
10667
    iprot.readStructEnd()
10668
 
10669
  def write(self, oprot):
10670
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10671
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10672
      return
10673
    oprot.writeStructBegin('scanForOursThirdPartyReceive_args')
10674
    if self.inventoryItems is not None:
10675
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
10676
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 10677
      for iter197 in self.inventoryItems:
10678
        iter197.write(oprot)
7459 amar.kumar 10679
      oprot.writeListEnd()
10680
      oprot.writeFieldEnd()
10681
    if self.id is not None:
10682
      oprot.writeFieldBegin('id', TType.I64, 2)
10683
      oprot.writeI64(self.id)
10684
      oprot.writeFieldEnd()
10685
    oprot.writeFieldStop()
10686
    oprot.writeStructEnd()
10687
 
10688
  def validate(self):
10689
    return
10690
 
10691
 
10692
  def __repr__(self):
10693
    L = ['%s=%r' % (key, value)
10694
      for key, value in self.__dict__.iteritems()]
10695
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10696
 
10697
  def __eq__(self, other):
10698
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10699
 
10700
  def __ne__(self, other):
10701
    return not (self == other)
10702
 
10703
class scanForOursThirdPartyReceive_result:
10704
  """
10705
  Attributes:
10706
   - wex
10707
  """
10708
 
10709
  thrift_spec = (
10710
    None, # 0
10711
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10712
  )
10713
 
10714
  def __init__(self, wex=None,):
10715
    self.wex = wex
10716
 
10717
  def read(self, iprot):
10718
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10719
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10720
      return
10721
    iprot.readStructBegin()
10722
    while True:
10723
      (fname, ftype, fid) = iprot.readFieldBegin()
10724
      if ftype == TType.STOP:
10725
        break
10726
      if fid == 1:
10727
        if ftype == TType.STRUCT:
10728
          self.wex = WarehouseServiceException()
10729
          self.wex.read(iprot)
10730
        else:
10731
          iprot.skip(ftype)
10732
      else:
10733
        iprot.skip(ftype)
10734
      iprot.readFieldEnd()
10735
    iprot.readStructEnd()
10736
 
10737
  def write(self, oprot):
10738
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10739
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10740
      return
10741
    oprot.writeStructBegin('scanForOursThirdPartyReceive_result')
10742
    if self.wex is not None:
10743
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10744
      self.wex.write(oprot)
10745
      oprot.writeFieldEnd()
10746
    oprot.writeFieldStop()
10747
    oprot.writeStructEnd()
10748
 
10749
  def validate(self):
10750
    return
10751
 
10752
 
10753
  def __repr__(self):
10754
    L = ['%s=%r' % (key, value)
10755
      for key, value in self.__dict__.iteritems()]
10756
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10757
 
10758
  def __eq__(self, other):
10759
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10760
 
10761
  def __ne__(self, other):
10762
    return not (self == other)
7574 amar.kumar 10763
 
10764
class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args:
10765
  """
10766
  Attributes:
10767
   - itemId
10768
   - physicalWarehouseId
10769
  """
10770
 
10771
  thrift_spec = (
10772
    None, # 0
10773
    (1, TType.I64, 'itemId', None, None, ), # 1
10774
    (2, TType.I64, 'physicalWarehouseId', None, None, ), # 2
10775
  )
10776
 
10777
  def __init__(self, itemId=None, physicalWarehouseId=None,):
10778
    self.itemId = itemId
10779
    self.physicalWarehouseId = physicalWarehouseId
10780
 
10781
  def read(self, iprot):
10782
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10783
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10784
      return
10785
    iprot.readStructBegin()
10786
    while True:
10787
      (fname, ftype, fid) = iprot.readFieldBegin()
10788
      if ftype == TType.STOP:
10789
        break
10790
      if fid == 1:
10791
        if ftype == TType.I64:
10792
          self.itemId = iprot.readI64();
10793
        else:
10794
          iprot.skip(ftype)
10795
      elif fid == 2:
10796
        if ftype == TType.I64:
10797
          self.physicalWarehouseId = iprot.readI64();
10798
        else:
10799
          iprot.skip(ftype)
10800
      else:
10801
        iprot.skip(ftype)
10802
      iprot.readFieldEnd()
10803
    iprot.readStructEnd()
10804
 
10805
  def write(self, oprot):
10806
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10807
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10808
      return
10809
    oprot.writeStructBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args')
10810
    if self.itemId is not None:
10811
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10812
      oprot.writeI64(self.itemId)
10813
      oprot.writeFieldEnd()
10814
    if self.physicalWarehouseId is not None:
10815
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 2)
10816
      oprot.writeI64(self.physicalWarehouseId)
10817
      oprot.writeFieldEnd()
10818
    oprot.writeFieldStop()
10819
    oprot.writeStructEnd()
10820
 
10821
  def validate(self):
10822
    return
10823
 
10824
 
10825
  def __repr__(self):
10826
    L = ['%s=%r' % (key, value)
10827
      for key, value in self.__dict__.iteritems()]
10828
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10829
 
10830
  def __eq__(self, other):
10831
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10832
 
10833
  def __ne__(self, other):
10834
    return not (self == other)
10835
 
10836
class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result:
10837
  """
10838
  Attributes:
10839
   - success
10840
   - wex
10841
  """
10842
 
10843
  thrift_spec = (
10844
    (0, TType.I64, 'success', None, None, ), # 0
10845
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10846
  )
10847
 
10848
  def __init__(self, success=None, wex=None,):
10849
    self.success = success
10850
    self.wex = wex
10851
 
10852
  def read(self, iprot):
10853
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10854
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10855
      return
10856
    iprot.readStructBegin()
10857
    while True:
10858
      (fname, ftype, fid) = iprot.readFieldBegin()
10859
      if ftype == TType.STOP:
10860
        break
10861
      if fid == 0:
10862
        if ftype == TType.I64:
10863
          self.success = iprot.readI64();
10864
        else:
10865
          iprot.skip(ftype)
10866
      elif fid == 1:
10867
        if ftype == TType.STRUCT:
10868
          self.wex = WarehouseServiceException()
10869
          self.wex.read(iprot)
10870
        else:
10871
          iprot.skip(ftype)
10872
      else:
10873
        iprot.skip(ftype)
10874
      iprot.readFieldEnd()
10875
    iprot.readStructEnd()
10876
 
10877
  def write(self, oprot):
10878
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10879
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10880
      return
10881
    oprot.writeStructBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result')
10882
    if self.success is not None:
10883
      oprot.writeFieldBegin('success', TType.I64, 0)
10884
      oprot.writeI64(self.success)
10885
      oprot.writeFieldEnd()
10886
    if self.wex is not None:
10887
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10888
      self.wex.write(oprot)
10889
      oprot.writeFieldEnd()
10890
    oprot.writeFieldStop()
10891
    oprot.writeStructEnd()
10892
 
10893
  def validate(self):
10894
    return
10895
 
10896
 
10897
  def __repr__(self):
10898
    L = ['%s=%r' % (key, value)
10899
      for key, value in self.__dict__.iteritems()]
10900
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10901
 
10902
  def __eq__(self, other):
10903
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10904
 
10905
  def __ne__(self, other):
10906
    return not (self == other)
7672 rajveer 10907
 
10908
class getInTransitInventory_args:
10909
  """
10910
  Attributes:
10911
   - originWarehouseId
10912
  """
10913
 
10914
  thrift_spec = (
10915
    None, # 0
10916
    (1, TType.I64, 'originWarehouseId', None, None, ), # 1
10917
  )
10918
 
10919
  def __init__(self, originWarehouseId=None,):
10920
    self.originWarehouseId = originWarehouseId
10921
 
10922
  def read(self, iprot):
10923
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10924
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10925
      return
10926
    iprot.readStructBegin()
10927
    while True:
10928
      (fname, ftype, fid) = iprot.readFieldBegin()
10929
      if ftype == TType.STOP:
10930
        break
10931
      if fid == 1:
10932
        if ftype == TType.I64:
10933
          self.originWarehouseId = iprot.readI64();
10934
        else:
10935
          iprot.skip(ftype)
10936
      else:
10937
        iprot.skip(ftype)
10938
      iprot.readFieldEnd()
10939
    iprot.readStructEnd()
10940
 
10941
  def write(self, oprot):
10942
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10943
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10944
      return
10945
    oprot.writeStructBegin('getInTransitInventory_args')
10946
    if self.originWarehouseId is not None:
10947
      oprot.writeFieldBegin('originWarehouseId', TType.I64, 1)
10948
      oprot.writeI64(self.originWarehouseId)
10949
      oprot.writeFieldEnd()
10950
    oprot.writeFieldStop()
10951
    oprot.writeStructEnd()
10952
 
10953
  def validate(self):
10954
    return
10955
 
10956
 
10957
  def __repr__(self):
10958
    L = ['%s=%r' % (key, value)
10959
      for key, value in self.__dict__.iteritems()]
10960
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10961
 
10962
  def __eq__(self, other):
10963
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10964
 
10965
  def __ne__(self, other):
10966
    return not (self == other)
10967
 
10968
class getInTransitInventory_result:
10969
  """
10970
  Attributes:
10971
   - success
10972
  """
10973
 
10974
  thrift_spec = (
10975
    (0, TType.LIST, 'success', (TType.STRUCT,(InTransitInventory, InTransitInventory.thrift_spec)), None, ), # 0
10976
  )
10977
 
10978
  def __init__(self, success=None,):
10979
    self.success = success
10980
 
10981
  def read(self, iprot):
10982
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10983
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10984
      return
10985
    iprot.readStructBegin()
10986
    while True:
10987
      (fname, ftype, fid) = iprot.readFieldBegin()
10988
      if ftype == TType.STOP:
10989
        break
10990
      if fid == 0:
10991
        if ftype == TType.LIST:
10992
          self.success = []
10407 amar.kumar 10993
          (_etype201, _size198) = iprot.readListBegin()
10994
          for _i202 in xrange(_size198):
10995
            _elem203 = InTransitInventory()
10996
            _elem203.read(iprot)
10997
            self.success.append(_elem203)
7672 rajveer 10998
          iprot.readListEnd()
10999
        else:
11000
          iprot.skip(ftype)
11001
      else:
11002
        iprot.skip(ftype)
11003
      iprot.readFieldEnd()
11004
    iprot.readStructEnd()
11005
 
11006
  def write(self, oprot):
11007
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11008
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11009
      return
11010
    oprot.writeStructBegin('getInTransitInventory_result')
11011
    if self.success is not None:
11012
      oprot.writeFieldBegin('success', TType.LIST, 0)
11013
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 11014
      for iter204 in self.success:
11015
        iter204.write(oprot)
7672 rajveer 11016
      oprot.writeListEnd()
11017
      oprot.writeFieldEnd()
11018
    oprot.writeFieldStop()
11019
    oprot.writeStructEnd()
11020
 
11021
  def validate(self):
11022
    return
11023
 
11024
 
11025
  def __repr__(self):
11026
    L = ['%s=%r' % (key, value)
11027
      for key, value in self.__dict__.iteritems()]
11028
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11029
 
11030
  def __eq__(self, other):
11031
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11032
 
11033
  def __ne__(self, other):
11034
    return not (self == other)
7968 amar.kumar 11035
 
11036
class isItemAvailableForSale_args:
11037
  """
11038
  Attributes:
11039
   - itemId
11040
   - serialNumber
11041
   - warehouseId
11042
  """
11043
 
11044
  thrift_spec = (
11045
    None, # 0
11046
    (1, TType.I64, 'itemId', None, None, ), # 1
11047
    (2, TType.STRING, 'serialNumber', None, None, ), # 2
11048
    (3, TType.I64, 'warehouseId', None, None, ), # 3
11049
  )
11050
 
11051
  def __init__(self, itemId=None, serialNumber=None, warehouseId=None,):
11052
    self.itemId = itemId
11053
    self.serialNumber = serialNumber
11054
    self.warehouseId = warehouseId
11055
 
11056
  def read(self, iprot):
11057
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11058
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11059
      return
11060
    iprot.readStructBegin()
11061
    while True:
11062
      (fname, ftype, fid) = iprot.readFieldBegin()
11063
      if ftype == TType.STOP:
11064
        break
11065
      if fid == 1:
11066
        if ftype == TType.I64:
11067
          self.itemId = iprot.readI64();
11068
        else:
11069
          iprot.skip(ftype)
11070
      elif fid == 2:
11071
        if ftype == TType.STRING:
11072
          self.serialNumber = iprot.readString();
11073
        else:
11074
          iprot.skip(ftype)
11075
      elif fid == 3:
11076
        if ftype == TType.I64:
11077
          self.warehouseId = iprot.readI64();
11078
        else:
11079
          iprot.skip(ftype)
11080
      else:
11081
        iprot.skip(ftype)
11082
      iprot.readFieldEnd()
11083
    iprot.readStructEnd()
11084
 
11085
  def write(self, oprot):
11086
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11087
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11088
      return
11089
    oprot.writeStructBegin('isItemAvailableForSale_args')
11090
    if self.itemId is not None:
11091
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11092
      oprot.writeI64(self.itemId)
11093
      oprot.writeFieldEnd()
11094
    if self.serialNumber is not None:
11095
      oprot.writeFieldBegin('serialNumber', TType.STRING, 2)
11096
      oprot.writeString(self.serialNumber)
11097
      oprot.writeFieldEnd()
11098
    if self.warehouseId is not None:
11099
      oprot.writeFieldBegin('warehouseId', TType.I64, 3)
11100
      oprot.writeI64(self.warehouseId)
11101
      oprot.writeFieldEnd()
11102
    oprot.writeFieldStop()
11103
    oprot.writeStructEnd()
11104
 
11105
  def validate(self):
11106
    return
11107
 
11108
 
11109
  def __repr__(self):
11110
    L = ['%s=%r' % (key, value)
11111
      for key, value in self.__dict__.iteritems()]
11112
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11113
 
11114
  def __eq__(self, other):
11115
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11116
 
11117
  def __ne__(self, other):
11118
    return not (self == other)
11119
 
11120
class isItemAvailableForSale_result:
11121
  """
11122
  Attributes:
11123
   - success
11124
   - wex
11125
  """
11126
 
11127
  thrift_spec = (
11128
    (0, TType.BOOL, 'success', None, None, ), # 0
11129
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11130
  )
11131
 
11132
  def __init__(self, success=None, wex=None,):
11133
    self.success = success
11134
    self.wex = wex
11135
 
11136
  def read(self, iprot):
11137
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11138
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11139
      return
11140
    iprot.readStructBegin()
11141
    while True:
11142
      (fname, ftype, fid) = iprot.readFieldBegin()
11143
      if ftype == TType.STOP:
11144
        break
11145
      if fid == 0:
11146
        if ftype == TType.BOOL:
11147
          self.success = iprot.readBool();
11148
        else:
11149
          iprot.skip(ftype)
11150
      elif fid == 1:
11151
        if ftype == TType.STRUCT:
11152
          self.wex = WarehouseServiceException()
11153
          self.wex.read(iprot)
11154
        else:
11155
          iprot.skip(ftype)
11156
      else:
11157
        iprot.skip(ftype)
11158
      iprot.readFieldEnd()
11159
    iprot.readStructEnd()
11160
 
11161
  def write(self, oprot):
11162
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11163
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11164
      return
11165
    oprot.writeStructBegin('isItemAvailableForSale_result')
11166
    if self.success is not None:
11167
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11168
      oprot.writeBool(self.success)
11169
      oprot.writeFieldEnd()
11170
    if self.wex is not None:
11171
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11172
      self.wex.write(oprot)
11173
      oprot.writeFieldEnd()
11174
    oprot.writeFieldStop()
11175
    oprot.writeStructEnd()
11176
 
11177
  def validate(self):
11178
    return
11179
 
11180
 
11181
  def __repr__(self):
11182
    L = ['%s=%r' % (key, value)
11183
      for key, value in self.__dict__.iteritems()]
11184
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11185
 
11186
  def __eq__(self, other):
11187
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11188
 
11189
  def __ne__(self, other):
11190
    return not (self == other)
11191
 
11192
class getHistoricBadInventoryByScans_args:
11193
  """
11194
  Attributes:
11195
   - date
11196
  """
11197
 
11198
  thrift_spec = (
11199
    None, # 0
11200
    (1, TType.I64, 'date', None, None, ), # 1
11201
  )
11202
 
11203
  def __init__(self, date=None,):
11204
    self.date = date
11205
 
11206
  def read(self, iprot):
11207
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11208
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11209
      return
11210
    iprot.readStructBegin()
11211
    while True:
11212
      (fname, ftype, fid) = iprot.readFieldBegin()
11213
      if ftype == TType.STOP:
11214
        break
11215
      if fid == 1:
11216
        if ftype == TType.I64:
11217
          self.date = iprot.readI64();
11218
        else:
11219
          iprot.skip(ftype)
11220
      else:
11221
        iprot.skip(ftype)
11222
      iprot.readFieldEnd()
11223
    iprot.readStructEnd()
11224
 
11225
  def write(self, oprot):
11226
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11227
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11228
      return
11229
    oprot.writeStructBegin('getHistoricBadInventoryByScans_args')
11230
    if self.date is not None:
11231
      oprot.writeFieldBegin('date', TType.I64, 1)
11232
      oprot.writeI64(self.date)
11233
      oprot.writeFieldEnd()
11234
    oprot.writeFieldStop()
11235
    oprot.writeStructEnd()
11236
 
11237
  def validate(self):
11238
    return
11239
 
11240
 
11241
  def __repr__(self):
11242
    L = ['%s=%r' % (key, value)
11243
      for key, value in self.__dict__.iteritems()]
11244
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11245
 
11246
  def __eq__(self, other):
11247
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11248
 
11249
  def __ne__(self, other):
11250
    return not (self == other)
11251
 
11252
class getHistoricBadInventoryByScans_result:
11253
  """
11254
  Attributes:
11255
   - success
11256
   - wex
11257
  """
11258
 
11259
  thrift_spec = (
11260
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
11261
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11262
  )
11263
 
11264
  def __init__(self, success=None, wex=None,):
11265
    self.success = success
11266
    self.wex = wex
11267
 
11268
  def read(self, iprot):
11269
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11270
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11271
      return
11272
    iprot.readStructBegin()
11273
    while True:
11274
      (fname, ftype, fid) = iprot.readFieldBegin()
11275
      if ftype == TType.STOP:
11276
        break
11277
      if fid == 0:
11278
        if ftype == TType.LIST:
11279
          self.success = []
10407 amar.kumar 11280
          (_etype208, _size205) = iprot.readListBegin()
11281
          for _i209 in xrange(_size205):
11282
            _elem210 = InventoryAvailability()
11283
            _elem210.read(iprot)
11284
            self.success.append(_elem210)
7968 amar.kumar 11285
          iprot.readListEnd()
11286
        else:
11287
          iprot.skip(ftype)
11288
      elif fid == 1:
11289
        if ftype == TType.STRUCT:
11290
          self.wex = WarehouseServiceException()
11291
          self.wex.read(iprot)
11292
        else:
11293
          iprot.skip(ftype)
11294
      else:
11295
        iprot.skip(ftype)
11296
      iprot.readFieldEnd()
11297
    iprot.readStructEnd()
11298
 
11299
  def write(self, oprot):
11300
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11301
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11302
      return
11303
    oprot.writeStructBegin('getHistoricBadInventoryByScans_result')
11304
    if self.success is not None:
11305
      oprot.writeFieldBegin('success', TType.LIST, 0)
11306
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 11307
      for iter211 in self.success:
11308
        iter211.write(oprot)
7968 amar.kumar 11309
      oprot.writeListEnd()
11310
      oprot.writeFieldEnd()
11311
    if self.wex is not None:
11312
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11313
      self.wex.write(oprot)
11314
      oprot.writeFieldEnd()
11315
    oprot.writeFieldStop()
11316
    oprot.writeStructEnd()
11317
 
11318
  def validate(self):
11319
    return
11320
 
11321
 
11322
  def __repr__(self):
11323
    L = ['%s=%r' % (key, value)
11324
      for key, value in self.__dict__.iteritems()]
11325
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11326
 
11327
  def __eq__(self, other):
11328
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11329
 
11330
  def __ne__(self, other):
11331
    return not (self == other)
8565 amar.kumar 11332
 
11333
class scanForBadSale_args:
11334
  """
11335
  Attributes:
8717 amar.kumar 11336
   - serialNumber
11337
   - itemNumber
11338
   - itemId
8565 amar.kumar 11339
   - orderId
8717 amar.kumar 11340
   - fulfilmentWarehouseId
8565 amar.kumar 11341
   - quantity
11342
   - billingWarehouseId
11343
  """
11344
 
11345
  thrift_spec = (
11346
    None, # 0
8717 amar.kumar 11347
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
11348
    (2, TType.STRING, 'itemNumber', None, None, ), # 2
11349
    (3, TType.I64, 'itemId', None, None, ), # 3
11350
    (4, TType.I64, 'orderId', None, None, ), # 4
11351
    (5, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 5
11352
    (6, TType.I64, 'quantity', None, None, ), # 6
11353
    (7, TType.I64, 'billingWarehouseId', None, None, ), # 7
8565 amar.kumar 11354
  )
11355
 
8717 amar.kumar 11356
  def __init__(self, serialNumber=None, itemNumber=None, itemId=None, orderId=None, fulfilmentWarehouseId=None, quantity=None, billingWarehouseId=None,):
11357
    self.serialNumber = serialNumber
11358
    self.itemNumber = itemNumber
11359
    self.itemId = itemId
8565 amar.kumar 11360
    self.orderId = orderId
8717 amar.kumar 11361
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 11362
    self.quantity = quantity
11363
    self.billingWarehouseId = billingWarehouseId
11364
 
11365
  def read(self, iprot):
11366
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11367
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11368
      return
11369
    iprot.readStructBegin()
11370
    while True:
11371
      (fname, ftype, fid) = iprot.readFieldBegin()
11372
      if ftype == TType.STOP:
11373
        break
11374
      if fid == 1:
8717 amar.kumar 11375
        if ftype == TType.STRING:
11376
          self.serialNumber = iprot.readString();
8565 amar.kumar 11377
        else:
11378
          iprot.skip(ftype)
11379
      elif fid == 2:
8717 amar.kumar 11380
        if ftype == TType.STRING:
11381
          self.itemNumber = iprot.readString();
8565 amar.kumar 11382
        else:
11383
          iprot.skip(ftype)
11384
      elif fid == 3:
11385
        if ftype == TType.I64:
8717 amar.kumar 11386
          self.itemId = iprot.readI64();
8565 amar.kumar 11387
        else:
11388
          iprot.skip(ftype)
11389
      elif fid == 4:
11390
        if ftype == TType.I64:
8717 amar.kumar 11391
          self.orderId = iprot.readI64();
8565 amar.kumar 11392
        else:
11393
          iprot.skip(ftype)
11394
      elif fid == 5:
11395
        if ftype == TType.I64:
8717 amar.kumar 11396
          self.fulfilmentWarehouseId = iprot.readI64();
11397
        else:
11398
          iprot.skip(ftype)
11399
      elif fid == 6:
11400
        if ftype == TType.I64:
11401
          self.quantity = iprot.readI64();
11402
        else:
11403
          iprot.skip(ftype)
11404
      elif fid == 7:
11405
        if ftype == TType.I64:
8565 amar.kumar 11406
          self.billingWarehouseId = iprot.readI64();
11407
        else:
11408
          iprot.skip(ftype)
11409
      else:
11410
        iprot.skip(ftype)
11411
      iprot.readFieldEnd()
11412
    iprot.readStructEnd()
11413
 
11414
  def write(self, oprot):
11415
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11416
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11417
      return
11418
    oprot.writeStructBegin('scanForBadSale_args')
8717 amar.kumar 11419
    if self.serialNumber is not None:
11420
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
11421
      oprot.writeString(self.serialNumber)
8565 amar.kumar 11422
      oprot.writeFieldEnd()
8717 amar.kumar 11423
    if self.itemNumber is not None:
11424
      oprot.writeFieldBegin('itemNumber', TType.STRING, 2)
11425
      oprot.writeString(self.itemNumber)
11426
      oprot.writeFieldEnd()
11427
    if self.itemId is not None:
11428
      oprot.writeFieldBegin('itemId', TType.I64, 3)
11429
      oprot.writeI64(self.itemId)
11430
      oprot.writeFieldEnd()
8565 amar.kumar 11431
    if self.orderId is not None:
8717 amar.kumar 11432
      oprot.writeFieldBegin('orderId', TType.I64, 4)
8565 amar.kumar 11433
      oprot.writeI64(self.orderId)
11434
      oprot.writeFieldEnd()
8717 amar.kumar 11435
    if self.fulfilmentWarehouseId is not None:
11436
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 5)
11437
      oprot.writeI64(self.fulfilmentWarehouseId)
11438
      oprot.writeFieldEnd()
8565 amar.kumar 11439
    if self.quantity is not None:
8717 amar.kumar 11440
      oprot.writeFieldBegin('quantity', TType.I64, 6)
8565 amar.kumar 11441
      oprot.writeI64(self.quantity)
11442
      oprot.writeFieldEnd()
11443
    if self.billingWarehouseId is not None:
8717 amar.kumar 11444
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 7)
8565 amar.kumar 11445
      oprot.writeI64(self.billingWarehouseId)
11446
      oprot.writeFieldEnd()
11447
    oprot.writeFieldStop()
11448
    oprot.writeStructEnd()
11449
 
11450
  def validate(self):
11451
    return
11452
 
11453
 
11454
  def __repr__(self):
11455
    L = ['%s=%r' % (key, value)
11456
      for key, value in self.__dict__.iteritems()]
11457
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11458
 
11459
  def __eq__(self, other):
11460
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11461
 
11462
  def __ne__(self, other):
11463
    return not (self == other)
11464
 
11465
class scanForBadSale_result:
8717 amar.kumar 11466
  """
11467
  Attributes:
11468
   - success
11469
   - wex
11470
  """
8565 amar.kumar 11471
 
11472
  thrift_spec = (
8717 amar.kumar 11473
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
11474
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8565 amar.kumar 11475
  )
11476
 
8717 amar.kumar 11477
  def __init__(self, success=None, wex=None,):
11478
    self.success = success
11479
    self.wex = wex
11480
 
8565 amar.kumar 11481
  def read(self, iprot):
11482
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11483
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11484
      return
11485
    iprot.readStructBegin()
11486
    while True:
11487
      (fname, ftype, fid) = iprot.readFieldBegin()
11488
      if ftype == TType.STOP:
11489
        break
8717 amar.kumar 11490
      if fid == 0:
11491
        if ftype == TType.STRUCT:
11492
          self.success = InventoryItem()
11493
          self.success.read(iprot)
11494
        else:
11495
          iprot.skip(ftype)
11496
      elif fid == 1:
11497
        if ftype == TType.STRUCT:
11498
          self.wex = WarehouseServiceException()
11499
          self.wex.read(iprot)
11500
        else:
11501
          iprot.skip(ftype)
8565 amar.kumar 11502
      else:
11503
        iprot.skip(ftype)
11504
      iprot.readFieldEnd()
11505
    iprot.readStructEnd()
11506
 
11507
  def write(self, oprot):
11508
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11509
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11510
      return
11511
    oprot.writeStructBegin('scanForBadSale_result')
8717 amar.kumar 11512
    if self.success is not None:
11513
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11514
      self.success.write(oprot)
11515
      oprot.writeFieldEnd()
11516
    if self.wex is not None:
11517
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11518
      self.wex.write(oprot)
11519
      oprot.writeFieldEnd()
8565 amar.kumar 11520
    oprot.writeFieldStop()
11521
    oprot.writeStructEnd()
11522
 
11523
  def validate(self):
11524
    return
11525
 
11526
 
11527
  def __repr__(self):
11528
    L = ['%s=%r' % (key, value)
11529
      for key, value in self.__dict__.iteritems()]
11530
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11531
 
11532
  def __eq__(self, other):
11533
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11534
 
11535
  def __ne__(self, other):
11536
    return not (self == other)
10120 manish.sha 11537
 
11538
class getTransferLotItemsForMarkReceive_args:
11539
  """
11540
  Attributes:
11541
   - transferLotId
11542
   - scanType
11543
  """
11544
 
11545
  thrift_spec = (
11546
    None, # 0
11547
    (1, TType.I64, 'transferLotId', None, None, ), # 1
11548
    (2, TType.I32, 'scanType', None, None, ), # 2
11549
  )
11550
 
11551
  def __init__(self, transferLotId=None, scanType=None,):
11552
    self.transferLotId = transferLotId
11553
    self.scanType = scanType
11554
 
11555
  def read(self, iprot):
11556
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11557
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11558
      return
11559
    iprot.readStructBegin()
11560
    while True:
11561
      (fname, ftype, fid) = iprot.readFieldBegin()
11562
      if ftype == TType.STOP:
11563
        break
11564
      if fid == 1:
11565
        if ftype == TType.I64:
11566
          self.transferLotId = iprot.readI64();
11567
        else:
11568
          iprot.skip(ftype)
11569
      elif fid == 2:
11570
        if ftype == TType.I32:
11571
          self.scanType = iprot.readI32();
11572
        else:
11573
          iprot.skip(ftype)
11574
      else:
11575
        iprot.skip(ftype)
11576
      iprot.readFieldEnd()
11577
    iprot.readStructEnd()
11578
 
11579
  def write(self, oprot):
11580
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11581
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11582
      return
11583
    oprot.writeStructBegin('getTransferLotItemsForMarkReceive_args')
11584
    if self.transferLotId is not None:
11585
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
11586
      oprot.writeI64(self.transferLotId)
11587
      oprot.writeFieldEnd()
11588
    if self.scanType is not None:
11589
      oprot.writeFieldBegin('scanType', TType.I32, 2)
11590
      oprot.writeI32(self.scanType)
11591
      oprot.writeFieldEnd()
11592
    oprot.writeFieldStop()
11593
    oprot.writeStructEnd()
11594
 
11595
  def validate(self):
11596
    return
11597
 
11598
 
11599
  def __repr__(self):
11600
    L = ['%s=%r' % (key, value)
11601
      for key, value in self.__dict__.iteritems()]
11602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11603
 
11604
  def __eq__(self, other):
11605
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11606
 
11607
  def __ne__(self, other):
11608
    return not (self == other)
11609
 
11610
class getTransferLotItemsForMarkReceive_result:
11611
  """
11612
  Attributes:
11613
   - success
11614
   - wex
11615
  """
11616
 
11617
  thrift_spec = (
11618
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
11619
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11620
  )
11621
 
11622
  def __init__(self, success=None, wex=None,):
11623
    self.success = success
11624
    self.wex = wex
11625
 
11626
  def read(self, iprot):
11627
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11628
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11629
      return
11630
    iprot.readStructBegin()
11631
    while True:
11632
      (fname, ftype, fid) = iprot.readFieldBegin()
11633
      if ftype == TType.STOP:
11634
        break
11635
      if fid == 0:
11636
        if ftype == TType.LIST:
11637
          self.success = []
10407 amar.kumar 11638
          (_etype215, _size212) = iprot.readListBegin()
11639
          for _i216 in xrange(_size212):
11640
            _elem217 = InventoryItem()
11641
            _elem217.read(iprot)
11642
            self.success.append(_elem217)
10120 manish.sha 11643
          iprot.readListEnd()
11644
        else:
11645
          iprot.skip(ftype)
11646
      elif fid == 1:
11647
        if ftype == TType.STRUCT:
11648
          self.wex = WarehouseServiceException()
11649
          self.wex.read(iprot)
11650
        else:
11651
          iprot.skip(ftype)
11652
      else:
11653
        iprot.skip(ftype)
11654
      iprot.readFieldEnd()
11655
    iprot.readStructEnd()
11656
 
11657
  def write(self, oprot):
11658
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11659
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11660
      return
11661
    oprot.writeStructBegin('getTransferLotItemsForMarkReceive_result')
11662
    if self.success is not None:
11663
      oprot.writeFieldBegin('success', TType.LIST, 0)
11664
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 11665
      for iter218 in self.success:
11666
        iter218.write(oprot)
10120 manish.sha 11667
      oprot.writeListEnd()
11668
      oprot.writeFieldEnd()
11669
    if self.wex is not None:
11670
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11671
      self.wex.write(oprot)
11672
      oprot.writeFieldEnd()
11673
    oprot.writeFieldStop()
11674
    oprot.writeStructEnd()
11675
 
11676
  def validate(self):
11677
    return
11678
 
11679
 
11680
  def __repr__(self):
11681
    L = ['%s=%r' % (key, value)
11682
      for key, value in self.__dict__.iteritems()]
11683
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11684
 
11685
  def __eq__(self, other):
11686
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11687
 
11688
  def __ne__(self, other):
11689
    return not (self == other)
11690
 
11691
class markItemsAsReceivedForTransferLotPartial_args:
11692
  """
11693
  Attributes:
11694
   - inventoryItems
11695
   - transferLotId
11696
  """
11697
 
11698
  thrift_spec = (
11699
    None, # 0
11700
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
11701
    (2, TType.I64, 'transferLotId', None, None, ), # 2
11702
  )
11703
 
11704
  def __init__(self, inventoryItems=None, transferLotId=None,):
11705
    self.inventoryItems = inventoryItems
11706
    self.transferLotId = transferLotId
11707
 
11708
  def read(self, iprot):
11709
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11710
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11711
      return
11712
    iprot.readStructBegin()
11713
    while True:
11714
      (fname, ftype, fid) = iprot.readFieldBegin()
11715
      if ftype == TType.STOP:
11716
        break
11717
      if fid == 1:
11718
        if ftype == TType.LIST:
11719
          self.inventoryItems = []
10407 amar.kumar 11720
          (_etype222, _size219) = iprot.readListBegin()
11721
          for _i223 in xrange(_size219):
11722
            _elem224 = InventoryItem()
11723
            _elem224.read(iprot)
11724
            self.inventoryItems.append(_elem224)
10120 manish.sha 11725
          iprot.readListEnd()
11726
        else:
11727
          iprot.skip(ftype)
11728
      elif fid == 2:
11729
        if ftype == TType.I64:
11730
          self.transferLotId = iprot.readI64();
11731
        else:
11732
          iprot.skip(ftype)
11733
      else:
11734
        iprot.skip(ftype)
11735
      iprot.readFieldEnd()
11736
    iprot.readStructEnd()
11737
 
11738
  def write(self, oprot):
11739
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11740
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11741
      return
11742
    oprot.writeStructBegin('markItemsAsReceivedForTransferLotPartial_args')
11743
    if self.inventoryItems is not None:
11744
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
11745
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 11746
      for iter225 in self.inventoryItems:
11747
        iter225.write(oprot)
10120 manish.sha 11748
      oprot.writeListEnd()
11749
      oprot.writeFieldEnd()
11750
    if self.transferLotId is not None:
11751
      oprot.writeFieldBegin('transferLotId', TType.I64, 2)
11752
      oprot.writeI64(self.transferLotId)
11753
      oprot.writeFieldEnd()
11754
    oprot.writeFieldStop()
11755
    oprot.writeStructEnd()
11756
 
11757
  def validate(self):
11758
    return
11759
 
11760
 
11761
  def __repr__(self):
11762
    L = ['%s=%r' % (key, value)
11763
      for key, value in self.__dict__.iteritems()]
11764
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11765
 
11766
  def __eq__(self, other):
11767
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11768
 
11769
  def __ne__(self, other):
11770
    return not (self == other)
11771
 
11772
class markItemsAsReceivedForTransferLotPartial_result:
11773
  """
11774
  Attributes:
11775
   - wex
11776
  """
11777
 
11778
  thrift_spec = (
11779
    None, # 0
11780
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11781
  )
11782
 
11783
  def __init__(self, wex=None,):
11784
    self.wex = wex
11785
 
11786
  def read(self, iprot):
11787
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11788
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11789
      return
11790
    iprot.readStructBegin()
11791
    while True:
11792
      (fname, ftype, fid) = iprot.readFieldBegin()
11793
      if ftype == TType.STOP:
11794
        break
11795
      if fid == 1:
11796
        if ftype == TType.STRUCT:
11797
          self.wex = WarehouseServiceException()
11798
          self.wex.read(iprot)
11799
        else:
11800
          iprot.skip(ftype)
11801
      else:
11802
        iprot.skip(ftype)
11803
      iprot.readFieldEnd()
11804
    iprot.readStructEnd()
11805
 
11806
  def write(self, oprot):
11807
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11808
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11809
      return
11810
    oprot.writeStructBegin('markItemsAsReceivedForTransferLotPartial_result')
11811
    if self.wex is not None:
11812
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11813
      self.wex.write(oprot)
11814
      oprot.writeFieldEnd()
11815
    oprot.writeFieldStop()
11816
    oprot.writeStructEnd()
11817
 
11818
  def validate(self):
11819
    return
11820
 
11821
 
11822
  def __repr__(self):
11823
    L = ['%s=%r' % (key, value)
11824
      for key, value in self.__dict__.iteritems()]
11825
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11826
 
11827
  def __eq__(self, other):
11828
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11829
 
11830
  def __ne__(self, other):
11831
    return not (self == other)
11832
 
11833
class markTransferLotAsReceivedPartial_args:
11834
  """
11835
  Attributes:
11836
   - id
11837
   - remoteTransferRefNumber
11838
  """
11839
 
11840
  thrift_spec = (
11841
    None, # 0
11842
    (1, TType.I64, 'id', None, None, ), # 1
11843
    (2, TType.STRING, 'remoteTransferRefNumber', None, None, ), # 2
11844
  )
11845
 
11846
  def __init__(self, id=None, remoteTransferRefNumber=None,):
11847
    self.id = id
11848
    self.remoteTransferRefNumber = remoteTransferRefNumber
11849
 
11850
  def read(self, iprot):
11851
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11852
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11853
      return
11854
    iprot.readStructBegin()
11855
    while True:
11856
      (fname, ftype, fid) = iprot.readFieldBegin()
11857
      if ftype == TType.STOP:
11858
        break
11859
      if fid == 1:
11860
        if ftype == TType.I64:
11861
          self.id = iprot.readI64();
11862
        else:
11863
          iprot.skip(ftype)
11864
      elif fid == 2:
11865
        if ftype == TType.STRING:
11866
          self.remoteTransferRefNumber = iprot.readString();
11867
        else:
11868
          iprot.skip(ftype)
11869
      else:
11870
        iprot.skip(ftype)
11871
      iprot.readFieldEnd()
11872
    iprot.readStructEnd()
11873
 
11874
  def write(self, oprot):
11875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11877
      return
11878
    oprot.writeStructBegin('markTransferLotAsReceivedPartial_args')
11879
    if self.id is not None:
11880
      oprot.writeFieldBegin('id', TType.I64, 1)
11881
      oprot.writeI64(self.id)
11882
      oprot.writeFieldEnd()
11883
    if self.remoteTransferRefNumber is not None:
11884
      oprot.writeFieldBegin('remoteTransferRefNumber', TType.STRING, 2)
11885
      oprot.writeString(self.remoteTransferRefNumber)
11886
      oprot.writeFieldEnd()
11887
    oprot.writeFieldStop()
11888
    oprot.writeStructEnd()
11889
 
11890
  def validate(self):
11891
    return
11892
 
11893
 
11894
  def __repr__(self):
11895
    L = ['%s=%r' % (key, value)
11896
      for key, value in self.__dict__.iteritems()]
11897
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11898
 
11899
  def __eq__(self, other):
11900
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11901
 
11902
  def __ne__(self, other):
11903
    return not (self == other)
11904
 
11905
class markTransferLotAsReceivedPartial_result:
11906
  """
11907
  Attributes:
11908
   - wex
11909
  """
11910
 
11911
  thrift_spec = (
11912
    None, # 0
11913
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11914
  )
11915
 
11916
  def __init__(self, wex=None,):
11917
    self.wex = wex
11918
 
11919
  def read(self, iprot):
11920
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11921
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11922
      return
11923
    iprot.readStructBegin()
11924
    while True:
11925
      (fname, ftype, fid) = iprot.readFieldBegin()
11926
      if ftype == TType.STOP:
11927
        break
11928
      if fid == 1:
11929
        if ftype == TType.STRUCT:
11930
          self.wex = WarehouseServiceException()
11931
          self.wex.read(iprot)
11932
        else:
11933
          iprot.skip(ftype)
11934
      else:
11935
        iprot.skip(ftype)
11936
      iprot.readFieldEnd()
11937
    iprot.readStructEnd()
11938
 
11939
  def write(self, oprot):
11940
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11941
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11942
      return
11943
    oprot.writeStructBegin('markTransferLotAsReceivedPartial_result')
11944
    if self.wex is not None:
11945
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11946
      self.wex.write(oprot)
11947
      oprot.writeFieldEnd()
11948
    oprot.writeFieldStop()
11949
    oprot.writeStructEnd()
11950
 
11951
  def validate(self):
11952
    return
11953
 
11954
 
11955
  def __repr__(self):
11956
    L = ['%s=%r' % (key, value)
11957
      for key, value in self.__dict__.iteritems()]
11958
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11959
 
11960
  def __eq__(self, other):
11961
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11962
 
11963
  def __ne__(self, other):
11964
    return not (self == other)
10690 manish.sha 11965
 
11966
class getInventoryItemScannedInForPO_args:
11967
  """
11968
  Attributes:
11969
   - itemId
11970
   - purchaseIds
11971
  """
11972
 
11973
  thrift_spec = (
11974
    None, # 0
11975
    (1, TType.I64, 'itemId', None, None, ), # 1
11976
    (2, TType.LIST, 'purchaseIds', (TType.I64,None), None, ), # 2
11977
  )
11978
 
11979
  def __init__(self, itemId=None, purchaseIds=None,):
11980
    self.itemId = itemId
11981
    self.purchaseIds = purchaseIds
11982
 
11983
  def read(self, iprot):
11984
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11985
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11986
      return
11987
    iprot.readStructBegin()
11988
    while True:
11989
      (fname, ftype, fid) = iprot.readFieldBegin()
11990
      if ftype == TType.STOP:
11991
        break
11992
      if fid == 1:
11993
        if ftype == TType.I64:
11994
          self.itemId = iprot.readI64();
11995
        else:
11996
          iprot.skip(ftype)
11997
      elif fid == 2:
11998
        if ftype == TType.LIST:
11999
          self.purchaseIds = []
12000
          (_etype229, _size226) = iprot.readListBegin()
12001
          for _i230 in xrange(_size226):
12002
            _elem231 = iprot.readI64();
12003
            self.purchaseIds.append(_elem231)
12004
          iprot.readListEnd()
12005
        else:
12006
          iprot.skip(ftype)
12007
      else:
12008
        iprot.skip(ftype)
12009
      iprot.readFieldEnd()
12010
    iprot.readStructEnd()
12011
 
12012
  def write(self, oprot):
12013
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12014
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12015
      return
12016
    oprot.writeStructBegin('getInventoryItemScannedInForPO_args')
12017
    if self.itemId is not None:
12018
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12019
      oprot.writeI64(self.itemId)
12020
      oprot.writeFieldEnd()
12021
    if self.purchaseIds is not None:
12022
      oprot.writeFieldBegin('purchaseIds', TType.LIST, 2)
12023
      oprot.writeListBegin(TType.I64, len(self.purchaseIds))
12024
      for iter232 in self.purchaseIds:
12025
        oprot.writeI64(iter232)
12026
      oprot.writeListEnd()
12027
      oprot.writeFieldEnd()
12028
    oprot.writeFieldStop()
12029
    oprot.writeStructEnd()
12030
 
12031
  def validate(self):
12032
    return
12033
 
12034
 
12035
  def __repr__(self):
12036
    L = ['%s=%r' % (key, value)
12037
      for key, value in self.__dict__.iteritems()]
12038
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12039
 
12040
  def __eq__(self, other):
12041
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12042
 
12043
  def __ne__(self, other):
12044
    return not (self == other)
12045
 
12046
class getInventoryItemScannedInForPO_result:
12047
  """
12048
  Attributes:
12049
   - success
12050
   - wex
12051
  """
12052
 
12053
  thrift_spec = (
12054
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
12055
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12056
  )
12057
 
12058
  def __init__(self, success=None, wex=None,):
12059
    self.success = success
12060
    self.wex = wex
12061
 
12062
  def read(self, iprot):
12063
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12064
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12065
      return
12066
    iprot.readStructBegin()
12067
    while True:
12068
      (fname, ftype, fid) = iprot.readFieldBegin()
12069
      if ftype == TType.STOP:
12070
        break
12071
      if fid == 0:
12072
        if ftype == TType.LIST:
12073
          self.success = []
12074
          (_etype236, _size233) = iprot.readListBegin()
12075
          for _i237 in xrange(_size233):
12076
            _elem238 = InventoryItem()
12077
            _elem238.read(iprot)
12078
            self.success.append(_elem238)
12079
          iprot.readListEnd()
12080
        else:
12081
          iprot.skip(ftype)
12082
      elif fid == 1:
12083
        if ftype == TType.STRUCT:
12084
          self.wex = WarehouseServiceException()
12085
          self.wex.read(iprot)
12086
        else:
12087
          iprot.skip(ftype)
12088
      else:
12089
        iprot.skip(ftype)
12090
      iprot.readFieldEnd()
12091
    iprot.readStructEnd()
12092
 
12093
  def write(self, oprot):
12094
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12095
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12096
      return
12097
    oprot.writeStructBegin('getInventoryItemScannedInForPO_result')
12098
    if self.success is not None:
12099
      oprot.writeFieldBegin('success', TType.LIST, 0)
12100
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12101
      for iter239 in self.success:
12102
        iter239.write(oprot)
12103
      oprot.writeListEnd()
12104
      oprot.writeFieldEnd()
12105
    if self.wex is not None:
12106
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
12107
      self.wex.write(oprot)
12108
      oprot.writeFieldEnd()
12109
    oprot.writeFieldStop()
12110
    oprot.writeStructEnd()
12111
 
12112
  def validate(self):
12113
    return
12114
 
12115
 
12116
  def __repr__(self):
12117
    L = ['%s=%r' % (key, value)
12118
      for key, value in self.__dict__.iteritems()]
12119
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12120
 
12121
  def __eq__(self, other):
12122
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12123
 
12124
  def __ne__(self, other):
12125
    return not (self == other)
12126
 
12127
class getAmazonTransferredSkuDetails_args:
12128
  """
12129
  Attributes:
12130
   - itemIds
12131
  """
12132
 
12133
  thrift_spec = (
12134
    None, # 0
12135
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
12136
  )
12137
 
12138
  def __init__(self, itemIds=None,):
12139
    self.itemIds = itemIds
12140
 
12141
  def read(self, iprot):
12142
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12143
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12144
      return
12145
    iprot.readStructBegin()
12146
    while True:
12147
      (fname, ftype, fid) = iprot.readFieldBegin()
12148
      if ftype == TType.STOP:
12149
        break
12150
      if fid == 1:
12151
        if ftype == TType.LIST:
12152
          self.itemIds = []
12153
          (_etype243, _size240) = iprot.readListBegin()
12154
          for _i244 in xrange(_size240):
12155
            _elem245 = iprot.readI64();
12156
            self.itemIds.append(_elem245)
12157
          iprot.readListEnd()
12158
        else:
12159
          iprot.skip(ftype)
12160
      else:
12161
        iprot.skip(ftype)
12162
      iprot.readFieldEnd()
12163
    iprot.readStructEnd()
12164
 
12165
  def write(self, oprot):
12166
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12167
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12168
      return
12169
    oprot.writeStructBegin('getAmazonTransferredSkuDetails_args')
12170
    if self.itemIds is not None:
12171
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
12172
      oprot.writeListBegin(TType.I64, len(self.itemIds))
12173
      for iter246 in self.itemIds:
12174
        oprot.writeI64(iter246)
12175
      oprot.writeListEnd()
12176
      oprot.writeFieldEnd()
12177
    oprot.writeFieldStop()
12178
    oprot.writeStructEnd()
12179
 
12180
  def validate(self):
12181
    return
12182
 
12183
 
12184
  def __repr__(self):
12185
    L = ['%s=%r' % (key, value)
12186
      for key, value in self.__dict__.iteritems()]
12187
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12188
 
12189
  def __eq__(self, other):
12190
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12191
 
12192
  def __ne__(self, other):
12193
    return not (self == other)
12194
 
12195
class getAmazonTransferredSkuDetails_result:
12196
  """
12197
  Attributes:
12198
   - success
12199
   - wex
12200
  """
12201
 
12202
  thrift_spec = (
12203
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonTransferredSkuDetail, AmazonTransferredSkuDetail.thrift_spec)), None, ), # 0
12204
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12205
  )
12206
 
12207
  def __init__(self, success=None, wex=None,):
12208
    self.success = success
12209
    self.wex = wex
12210
 
12211
  def read(self, iprot):
12212
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12213
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12214
      return
12215
    iprot.readStructBegin()
12216
    while True:
12217
      (fname, ftype, fid) = iprot.readFieldBegin()
12218
      if ftype == TType.STOP:
12219
        break
12220
      if fid == 0:
12221
        if ftype == TType.LIST:
12222
          self.success = []
12223
          (_etype250, _size247) = iprot.readListBegin()
12224
          for _i251 in xrange(_size247):
12225
            _elem252 = AmazonTransferredSkuDetail()
12226
            _elem252.read(iprot)
12227
            self.success.append(_elem252)
12228
          iprot.readListEnd()
12229
        else:
12230
          iprot.skip(ftype)
12231
      elif fid == 1:
12232
        if ftype == TType.STRUCT:
12233
          self.wex = WarehouseServiceException()
12234
          self.wex.read(iprot)
12235
        else:
12236
          iprot.skip(ftype)
12237
      else:
12238
        iprot.skip(ftype)
12239
      iprot.readFieldEnd()
12240
    iprot.readStructEnd()
12241
 
12242
  def write(self, oprot):
12243
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12244
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12245
      return
12246
    oprot.writeStructBegin('getAmazonTransferredSkuDetails_result')
12247
    if self.success is not None:
12248
      oprot.writeFieldBegin('success', TType.LIST, 0)
12249
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12250
      for iter253 in self.success:
12251
        iter253.write(oprot)
12252
      oprot.writeListEnd()
12253
      oprot.writeFieldEnd()
12254
    if self.wex is not None:
12255
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
12256
      self.wex.write(oprot)
12257
      oprot.writeFieldEnd()
12258
    oprot.writeFieldStop()
12259
    oprot.writeStructEnd()
12260
 
12261
  def validate(self):
12262
    return
12263
 
12264
 
12265
  def __repr__(self):
12266
    L = ['%s=%r' % (key, value)
12267
      for key, value in self.__dict__.iteritems()]
12268
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12269
 
12270
  def __eq__(self, other):
12271
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12272
 
12273
  def __ne__(self, other):
12274
    return not (self == other)
12275
 
12276
class getScansforPurchase_args:
12277
  """
12278
  Attributes:
12279
   - purchaseId
12280
   - scanType
12281
  """
12282
 
12283
  thrift_spec = (
12284
    None, # 0
12285
    (1, TType.I64, 'purchaseId', None, None, ), # 1
12286
    (2, TType.I32, 'scanType', None, None, ), # 2
12287
  )
12288
 
12289
  def __init__(self, purchaseId=None, scanType=None,):
12290
    self.purchaseId = purchaseId
12291
    self.scanType = scanType
12292
 
12293
  def read(self, iprot):
12294
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12295
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12296
      return
12297
    iprot.readStructBegin()
12298
    while True:
12299
      (fname, ftype, fid) = iprot.readFieldBegin()
12300
      if ftype == TType.STOP:
12301
        break
12302
      if fid == 1:
12303
        if ftype == TType.I64:
12304
          self.purchaseId = iprot.readI64();
12305
        else:
12306
          iprot.skip(ftype)
12307
      elif fid == 2:
12308
        if ftype == TType.I32:
12309
          self.scanType = iprot.readI32();
12310
        else:
12311
          iprot.skip(ftype)
12312
      else:
12313
        iprot.skip(ftype)
12314
      iprot.readFieldEnd()
12315
    iprot.readStructEnd()
12316
 
12317
  def write(self, oprot):
12318
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12319
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12320
      return
12321
    oprot.writeStructBegin('getScansforPurchase_args')
12322
    if self.purchaseId is not None:
12323
      oprot.writeFieldBegin('purchaseId', TType.I64, 1)
12324
      oprot.writeI64(self.purchaseId)
12325
      oprot.writeFieldEnd()
12326
    if self.scanType is not None:
12327
      oprot.writeFieldBegin('scanType', TType.I32, 2)
12328
      oprot.writeI32(self.scanType)
12329
      oprot.writeFieldEnd()
12330
    oprot.writeFieldStop()
12331
    oprot.writeStructEnd()
12332
 
12333
  def validate(self):
12334
    return
12335
 
12336
 
12337
  def __repr__(self):
12338
    L = ['%s=%r' % (key, value)
12339
      for key, value in self.__dict__.iteritems()]
12340
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12341
 
12342
  def __eq__(self, other):
12343
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12344
 
12345
  def __ne__(self, other):
12346
    return not (self == other)
12347
 
12348
class getScansforPurchase_result:
12349
  """
12350
  Attributes:
12351
   - success
12352
   - wex
12353
  """
12354
 
12355
  thrift_spec = (
12356
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
12357
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12358
  )
12359
 
12360
  def __init__(self, success=None, wex=None,):
12361
    self.success = success
12362
    self.wex = wex
12363
 
12364
  def read(self, iprot):
12365
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12366
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12367
      return
12368
    iprot.readStructBegin()
12369
    while True:
12370
      (fname, ftype, fid) = iprot.readFieldBegin()
12371
      if ftype == TType.STOP:
12372
        break
12373
      if fid == 0:
12374
        if ftype == TType.LIST:
12375
          self.success = []
12376
          (_etype257, _size254) = iprot.readListBegin()
12377
          for _i258 in xrange(_size254):
12378
            _elem259 = Scan()
12379
            _elem259.read(iprot)
12380
            self.success.append(_elem259)
12381
          iprot.readListEnd()
12382
        else:
12383
          iprot.skip(ftype)
12384
      elif fid == 1:
12385
        if ftype == TType.STRUCT:
12386
          self.wex = WarehouseServiceException()
12387
          self.wex.read(iprot)
12388
        else:
12389
          iprot.skip(ftype)
12390
      else:
12391
        iprot.skip(ftype)
12392
      iprot.readFieldEnd()
12393
    iprot.readStructEnd()
12394
 
12395
  def write(self, oprot):
12396
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12397
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12398
      return
12399
    oprot.writeStructBegin('getScansforPurchase_result')
12400
    if self.success is not None:
12401
      oprot.writeFieldBegin('success', TType.LIST, 0)
12402
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12403
      for iter260 in self.success:
12404
        iter260.write(oprot)
12405
      oprot.writeListEnd()
12406
      oprot.writeFieldEnd()
12407
    if self.wex is not None:
12408
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
12409
      self.wex.write(oprot)
12410
      oprot.writeFieldEnd()
12411
    oprot.writeFieldStop()
12412
    oprot.writeStructEnd()
12413
 
12414
  def validate(self):
12415
    return
12416
 
12417
 
12418
  def __repr__(self):
12419
    L = ['%s=%r' % (key, value)
12420
      for key, value in self.__dict__.iteritems()]
12421
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12422
 
12423
  def __eq__(self, other):
12424
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12425
 
12426
  def __ne__(self, other):
12427
    return not (self == other)
10864 manish.sha 12428
 
12429
class getCurrentBadQuantityForItem_args:
12430
  """
12431
  Attributes:
12432
   - itemId
12433
   - currentWarehouseId
12434
   - physicalWarehouseId
12435
  """
12436
 
12437
  thrift_spec = (
12438
    None, # 0
12439
    (1, TType.I64, 'itemId', None, None, ), # 1
12440
    (2, TType.I64, 'currentWarehouseId', None, None, ), # 2
12441
    (3, TType.I64, 'physicalWarehouseId', None, None, ), # 3
12442
  )
12443
 
12444
  def __init__(self, itemId=None, currentWarehouseId=None, physicalWarehouseId=None,):
12445
    self.itemId = itemId
12446
    self.currentWarehouseId = currentWarehouseId
12447
    self.physicalWarehouseId = physicalWarehouseId
12448
 
12449
  def read(self, iprot):
12450
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12451
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12452
      return
12453
    iprot.readStructBegin()
12454
    while True:
12455
      (fname, ftype, fid) = iprot.readFieldBegin()
12456
      if ftype == TType.STOP:
12457
        break
12458
      if fid == 1:
12459
        if ftype == TType.I64:
12460
          self.itemId = iprot.readI64();
12461
        else:
12462
          iprot.skip(ftype)
12463
      elif fid == 2:
12464
        if ftype == TType.I64:
12465
          self.currentWarehouseId = iprot.readI64();
12466
        else:
12467
          iprot.skip(ftype)
12468
      elif fid == 3:
12469
        if ftype == TType.I64:
12470
          self.physicalWarehouseId = iprot.readI64();
12471
        else:
12472
          iprot.skip(ftype)
12473
      else:
12474
        iprot.skip(ftype)
12475
      iprot.readFieldEnd()
12476
    iprot.readStructEnd()
12477
 
12478
  def write(self, oprot):
12479
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12480
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12481
      return
12482
    oprot.writeStructBegin('getCurrentBadQuantityForItem_args')
12483
    if self.itemId is not None:
12484
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12485
      oprot.writeI64(self.itemId)
12486
      oprot.writeFieldEnd()
12487
    if self.currentWarehouseId is not None:
12488
      oprot.writeFieldBegin('currentWarehouseId', TType.I64, 2)
12489
      oprot.writeI64(self.currentWarehouseId)
12490
      oprot.writeFieldEnd()
12491
    if self.physicalWarehouseId is not None:
12492
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 3)
12493
      oprot.writeI64(self.physicalWarehouseId)
12494
      oprot.writeFieldEnd()
12495
    oprot.writeFieldStop()
12496
    oprot.writeStructEnd()
12497
 
12498
  def validate(self):
12499
    return
12500
 
12501
 
12502
  def __repr__(self):
12503
    L = ['%s=%r' % (key, value)
12504
      for key, value in self.__dict__.iteritems()]
12505
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12506
 
12507
  def __eq__(self, other):
12508
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12509
 
12510
  def __ne__(self, other):
12511
    return not (self == other)
12512
 
12513
class getCurrentBadQuantityForItem_result:
12514
  """
12515
  Attributes:
12516
   - success
12517
   - wex
12518
  """
12519
 
12520
  thrift_spec = (
12521
    (0, TType.I64, 'success', None, None, ), # 0
12522
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12523
  )
12524
 
12525
  def __init__(self, success=None, wex=None,):
12526
    self.success = success
12527
    self.wex = wex
12528
 
12529
  def read(self, iprot):
12530
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12531
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12532
      return
12533
    iprot.readStructBegin()
12534
    while True:
12535
      (fname, ftype, fid) = iprot.readFieldBegin()
12536
      if ftype == TType.STOP:
12537
        break
12538
      if fid == 0:
12539
        if ftype == TType.I64:
12540
          self.success = iprot.readI64();
12541
        else:
12542
          iprot.skip(ftype)
12543
      elif fid == 1:
12544
        if ftype == TType.STRUCT:
12545
          self.wex = WarehouseServiceException()
12546
          self.wex.read(iprot)
12547
        else:
12548
          iprot.skip(ftype)
12549
      else:
12550
        iprot.skip(ftype)
12551
      iprot.readFieldEnd()
12552
    iprot.readStructEnd()
12553
 
12554
  def write(self, oprot):
12555
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12556
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12557
      return
12558
    oprot.writeStructBegin('getCurrentBadQuantityForItem_result')
12559
    if self.success is not None:
12560
      oprot.writeFieldBegin('success', TType.I64, 0)
12561
      oprot.writeI64(self.success)
12562
      oprot.writeFieldEnd()
12563
    if self.wex is not None:
12564
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
12565
      self.wex.write(oprot)
12566
      oprot.writeFieldEnd()
12567
    oprot.writeFieldStop()
12568
    oprot.writeStructEnd()
12569
 
12570
  def validate(self):
12571
    return
12572
 
12573
 
12574
  def __repr__(self):
12575
    L = ['%s=%r' % (key, value)
12576
      for key, value in self.__dict__.iteritems()]
12577
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12578
 
12579
  def __eq__(self, other):
12580
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12581
 
12582
  def __ne__(self, other):
12583
    return not (self == other)
12584
 
12585
class scanForBadPurchaseReturn_args:
12586
  """
12587
  Attributes:
12588
   - saleReturnItems
12589
   - vendorId
12590
   - billingWarehouseId
12591
  """
12592
 
12593
  thrift_spec = (
12594
    None, # 0
12595
    (1, TType.LIST, 'saleReturnItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
12596
    (2, TType.I64, 'vendorId', None, None, ), # 2
12597
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
12598
  )
12599
 
12600
  def __init__(self, saleReturnItems=None, vendorId=None, billingWarehouseId=None,):
12601
    self.saleReturnItems = saleReturnItems
12602
    self.vendorId = vendorId
12603
    self.billingWarehouseId = billingWarehouseId
12604
 
12605
  def read(self, iprot):
12606
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12607
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12608
      return
12609
    iprot.readStructBegin()
12610
    while True:
12611
      (fname, ftype, fid) = iprot.readFieldBegin()
12612
      if ftype == TType.STOP:
12613
        break
12614
      if fid == 1:
12615
        if ftype == TType.LIST:
12616
          self.saleReturnItems = []
12617
          (_etype264, _size261) = iprot.readListBegin()
12618
          for _i265 in xrange(_size261):
12619
            _elem266 = InventoryItem()
12620
            _elem266.read(iprot)
12621
            self.saleReturnItems.append(_elem266)
12622
          iprot.readListEnd()
12623
        else:
12624
          iprot.skip(ftype)
12625
      elif fid == 2:
12626
        if ftype == TType.I64:
12627
          self.vendorId = iprot.readI64();
12628
        else:
12629
          iprot.skip(ftype)
12630
      elif fid == 3:
12631
        if ftype == TType.I64:
12632
          self.billingWarehouseId = iprot.readI64();
12633
        else:
12634
          iprot.skip(ftype)
12635
      else:
12636
        iprot.skip(ftype)
12637
      iprot.readFieldEnd()
12638
    iprot.readStructEnd()
12639
 
12640
  def write(self, oprot):
12641
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12642
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12643
      return
12644
    oprot.writeStructBegin('scanForBadPurchaseReturn_args')
12645
    if self.saleReturnItems is not None:
12646
      oprot.writeFieldBegin('saleReturnItems', TType.LIST, 1)
12647
      oprot.writeListBegin(TType.STRUCT, len(self.saleReturnItems))
12648
      for iter267 in self.saleReturnItems:
12649
        iter267.write(oprot)
12650
      oprot.writeListEnd()
12651
      oprot.writeFieldEnd()
12652
    if self.vendorId is not None:
12653
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
12654
      oprot.writeI64(self.vendorId)
12655
      oprot.writeFieldEnd()
12656
    if self.billingWarehouseId is not None:
12657
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
12658
      oprot.writeI64(self.billingWarehouseId)
12659
      oprot.writeFieldEnd()
12660
    oprot.writeFieldStop()
12661
    oprot.writeStructEnd()
12662
 
12663
  def validate(self):
12664
    return
12665
 
12666
 
12667
  def __repr__(self):
12668
    L = ['%s=%r' % (key, value)
12669
      for key, value in self.__dict__.iteritems()]
12670
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12671
 
12672
  def __eq__(self, other):
12673
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12674
 
12675
  def __ne__(self, other):
12676
    return not (self == other)
12677
 
12678
class scanForBadPurchaseReturn_result:
12679
  """
12680
  Attributes:
12681
   - success
12682
   - ex
12683
  """
12684
 
12685
  thrift_spec = (
12686
    (0, TType.I64, 'success', None, None, ), # 0
12687
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12688
  )
12689
 
12690
  def __init__(self, success=None, ex=None,):
12691
    self.success = success
12692
    self.ex = ex
12693
 
12694
  def read(self, iprot):
12695
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12696
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12697
      return
12698
    iprot.readStructBegin()
12699
    while True:
12700
      (fname, ftype, fid) = iprot.readFieldBegin()
12701
      if ftype == TType.STOP:
12702
        break
12703
      if fid == 0:
12704
        if ftype == TType.I64:
12705
          self.success = iprot.readI64();
12706
        else:
12707
          iprot.skip(ftype)
12708
      elif fid == 1:
12709
        if ftype == TType.STRUCT:
12710
          self.ex = WarehouseServiceException()
12711
          self.ex.read(iprot)
12712
        else:
12713
          iprot.skip(ftype)
12714
      else:
12715
        iprot.skip(ftype)
12716
      iprot.readFieldEnd()
12717
    iprot.readStructEnd()
12718
 
12719
  def write(self, oprot):
12720
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12721
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12722
      return
12723
    oprot.writeStructBegin('scanForBadPurchaseReturn_result')
12724
    if self.success is not None:
12725
      oprot.writeFieldBegin('success', TType.I64, 0)
12726
      oprot.writeI64(self.success)
12727
      oprot.writeFieldEnd()
12728
    if self.ex is not None:
12729
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12730
      self.ex.write(oprot)
12731
      oprot.writeFieldEnd()
12732
    oprot.writeFieldStop()
12733
    oprot.writeStructEnd()
12734
 
12735
  def validate(self):
12736
    return
12737
 
12738
 
12739
  def __repr__(self):
12740
    L = ['%s=%r' % (key, value)
12741
      for key, value in self.__dict__.iteritems()]
12742
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12743
 
12744
  def __eq__(self, other):
12745
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12746
 
12747
  def __ne__(self, other):
12748
    return not (self == other)
12749
 
12750
class getItemsInPurchaseReturn_args:
12751
  """
12752
  Attributes:
12753
   - purchaseReturnId
11751 manish.sha 12754
   - type
13504 manish.sha 12755
   - returnTime
10864 manish.sha 12756
  """
12757
 
12758
  thrift_spec = (
12759
    None, # 0
12760
    (1, TType.I64, 'purchaseReturnId', None, None, ), # 1
11751 manish.sha 12761
    (2, TType.I32, 'type', None, None, ), # 2
13504 manish.sha 12762
    (3, TType.STRING, 'returnTime', None, None, ), # 3
10864 manish.sha 12763
  )
12764
 
13504 manish.sha 12765
  def __init__(self, purchaseReturnId=None, type=None, returnTime=None,):
10864 manish.sha 12766
    self.purchaseReturnId = purchaseReturnId
11751 manish.sha 12767
    self.type = type
13504 manish.sha 12768
    self.returnTime = returnTime
10864 manish.sha 12769
 
12770
  def read(self, iprot):
12771
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12772
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12773
      return
12774
    iprot.readStructBegin()
12775
    while True:
12776
      (fname, ftype, fid) = iprot.readFieldBegin()
12777
      if ftype == TType.STOP:
12778
        break
12779
      if fid == 1:
12780
        if ftype == TType.I64:
12781
          self.purchaseReturnId = iprot.readI64();
12782
        else:
12783
          iprot.skip(ftype)
11751 manish.sha 12784
      elif fid == 2:
12785
        if ftype == TType.I32:
12786
          self.type = iprot.readI32();
12787
        else:
12788
          iprot.skip(ftype)
13504 manish.sha 12789
      elif fid == 3:
12790
        if ftype == TType.STRING:
12791
          self.returnTime = iprot.readString();
12792
        else:
12793
          iprot.skip(ftype)
10864 manish.sha 12794
      else:
12795
        iprot.skip(ftype)
12796
      iprot.readFieldEnd()
12797
    iprot.readStructEnd()
12798
 
12799
  def write(self, oprot):
12800
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12801
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12802
      return
12803
    oprot.writeStructBegin('getItemsInPurchaseReturn_args')
12804
    if self.purchaseReturnId is not None:
12805
      oprot.writeFieldBegin('purchaseReturnId', TType.I64, 1)
12806
      oprot.writeI64(self.purchaseReturnId)
12807
      oprot.writeFieldEnd()
11751 manish.sha 12808
    if self.type is not None:
12809
      oprot.writeFieldBegin('type', TType.I32, 2)
12810
      oprot.writeI32(self.type)
12811
      oprot.writeFieldEnd()
13504 manish.sha 12812
    if self.returnTime is not None:
12813
      oprot.writeFieldBegin('returnTime', TType.STRING, 3)
12814
      oprot.writeString(self.returnTime)
12815
      oprot.writeFieldEnd()
10864 manish.sha 12816
    oprot.writeFieldStop()
12817
    oprot.writeStructEnd()
12818
 
12819
  def validate(self):
12820
    return
12821
 
12822
 
12823
  def __repr__(self):
12824
    L = ['%s=%r' % (key, value)
12825
      for key, value in self.__dict__.iteritems()]
12826
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12827
 
12828
  def __eq__(self, other):
12829
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12830
 
12831
  def __ne__(self, other):
12832
    return not (self == other)
12833
 
12834
class getItemsInPurchaseReturn_result:
12835
  """
12836
  Attributes:
12837
   - success
12838
   - ex
12839
  """
12840
 
12841
  thrift_spec = (
12842
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
12843
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12844
  )
12845
 
12846
  def __init__(self, success=None, ex=None,):
12847
    self.success = success
12848
    self.ex = ex
12849
 
12850
  def read(self, iprot):
12851
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12852
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12853
      return
12854
    iprot.readStructBegin()
12855
    while True:
12856
      (fname, ftype, fid) = iprot.readFieldBegin()
12857
      if ftype == TType.STOP:
12858
        break
12859
      if fid == 0:
12860
        if ftype == TType.MAP:
12861
          self.success = {}
12862
          (_ktype269, _vtype270, _size268 ) = iprot.readMapBegin() 
12863
          for _i272 in xrange(_size268):
12864
            _key273 = iprot.readI64();
12865
            _val274 = iprot.readI64();
12866
            self.success[_key273] = _val274
12867
          iprot.readMapEnd()
12868
        else:
12869
          iprot.skip(ftype)
12870
      elif fid == 1:
12871
        if ftype == TType.STRUCT:
12872
          self.ex = WarehouseServiceException()
12873
          self.ex.read(iprot)
12874
        else:
12875
          iprot.skip(ftype)
12876
      else:
12877
        iprot.skip(ftype)
12878
      iprot.readFieldEnd()
12879
    iprot.readStructEnd()
12880
 
12881
  def write(self, oprot):
12882
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12883
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12884
      return
12885
    oprot.writeStructBegin('getItemsInPurchaseReturn_result')
12886
    if self.success is not None:
12887
      oprot.writeFieldBegin('success', TType.MAP, 0)
12888
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
12889
      for kiter275,viter276 in self.success.items():
12890
        oprot.writeI64(kiter275)
12891
        oprot.writeI64(viter276)
12892
      oprot.writeMapEnd()
12893
      oprot.writeFieldEnd()
12894
    if self.ex is not None:
12895
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12896
      self.ex.write(oprot)
12897
      oprot.writeFieldEnd()
12898
    oprot.writeFieldStop()
12899
    oprot.writeStructEnd()
12900
 
12901
  def validate(self):
12902
    return
12903
 
12904
 
12905
  def __repr__(self):
12906
    L = ['%s=%r' % (key, value)
12907
      for key, value in self.__dict__.iteritems()]
12908
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12909
 
12910
  def __eq__(self, other):
12911
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12912
 
12913
  def __ne__(self, other):
12914
    return not (self == other)
10886 manish.sha 12915
 
12916
class getScansForInventoryItem_args:
12917
  """
12918
  Attributes:
12919
   - inventoryItemId
12920
   - type
12921
  """
12922
 
12923
  thrift_spec = (
12924
    None, # 0
12925
    (1, TType.I64, 'inventoryItemId', None, None, ), # 1
12926
    (2, TType.I32, 'type', None, None, ), # 2
12927
  )
12928
 
12929
  def __init__(self, inventoryItemId=None, type=None,):
12930
    self.inventoryItemId = inventoryItemId
12931
    self.type = type
12932
 
12933
  def read(self, iprot):
12934
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12935
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12936
      return
12937
    iprot.readStructBegin()
12938
    while True:
12939
      (fname, ftype, fid) = iprot.readFieldBegin()
12940
      if ftype == TType.STOP:
12941
        break
12942
      if fid == 1:
12943
        if ftype == TType.I64:
12944
          self.inventoryItemId = iprot.readI64();
12945
        else:
12946
          iprot.skip(ftype)
12947
      elif fid == 2:
12948
        if ftype == TType.I32:
12949
          self.type = iprot.readI32();
12950
        else:
12951
          iprot.skip(ftype)
12952
      else:
12953
        iprot.skip(ftype)
12954
      iprot.readFieldEnd()
12955
    iprot.readStructEnd()
12956
 
12957
  def write(self, oprot):
12958
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12959
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12960
      return
12961
    oprot.writeStructBegin('getScansForInventoryItem_args')
12962
    if self.inventoryItemId is not None:
12963
      oprot.writeFieldBegin('inventoryItemId', TType.I64, 1)
12964
      oprot.writeI64(self.inventoryItemId)
12965
      oprot.writeFieldEnd()
12966
    if self.type is not None:
12967
      oprot.writeFieldBegin('type', TType.I32, 2)
12968
      oprot.writeI32(self.type)
12969
      oprot.writeFieldEnd()
12970
    oprot.writeFieldStop()
12971
    oprot.writeStructEnd()
12972
 
12973
  def validate(self):
12974
    return
12975
 
12976
 
12977
  def __repr__(self):
12978
    L = ['%s=%r' % (key, value)
12979
      for key, value in self.__dict__.iteritems()]
12980
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12981
 
12982
  def __eq__(self, other):
12983
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12984
 
12985
  def __ne__(self, other):
12986
    return not (self == other)
12987
 
12988
class getScansForInventoryItem_result:
12989
  """
12990
  Attributes:
12991
   - success
12992
   - ex
12993
  """
12994
 
12995
  thrift_spec = (
12996
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
12997
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12998
  )
12999
 
13000
  def __init__(self, success=None, ex=None,):
13001
    self.success = success
13002
    self.ex = ex
13003
 
13004
  def read(self, iprot):
13005
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13006
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13007
      return
13008
    iprot.readStructBegin()
13009
    while True:
13010
      (fname, ftype, fid) = iprot.readFieldBegin()
13011
      if ftype == TType.STOP:
13012
        break
13013
      if fid == 0:
13014
        if ftype == TType.LIST:
13015
          self.success = []
13016
          (_etype280, _size277) = iprot.readListBegin()
13017
          for _i281 in xrange(_size277):
13018
            _elem282 = Scan()
13019
            _elem282.read(iprot)
13020
            self.success.append(_elem282)
13021
          iprot.readListEnd()
13022
        else:
13023
          iprot.skip(ftype)
13024
      elif fid == 1:
13025
        if ftype == TType.STRUCT:
13026
          self.ex = WarehouseServiceException()
13027
          self.ex.read(iprot)
13028
        else:
13029
          iprot.skip(ftype)
13030
      else:
13031
        iprot.skip(ftype)
13032
      iprot.readFieldEnd()
13033
    iprot.readStructEnd()
13034
 
13035
  def write(self, oprot):
13036
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13037
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13038
      return
13039
    oprot.writeStructBegin('getScansForInventoryItem_result')
13040
    if self.success is not None:
13041
      oprot.writeFieldBegin('success', TType.LIST, 0)
13042
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13043
      for iter283 in self.success:
13044
        iter283.write(oprot)
13045
      oprot.writeListEnd()
13046
      oprot.writeFieldEnd()
13047
    if self.ex is not None:
13048
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
13049
      self.ex.write(oprot)
13050
      oprot.writeFieldEnd()
13051
    oprot.writeFieldStop()
13052
    oprot.writeStructEnd()
13053
 
13054
  def validate(self):
13055
    return
13056
 
13057
 
13058
  def __repr__(self):
13059
    L = ['%s=%r' % (key, value)
13060
      for key, value in self.__dict__.iteritems()]
13061
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13062
 
13063
  def __eq__(self, other):
13064
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13065
 
13066
  def __ne__(self, other):
13067
    return not (self == other)
12531 manish.sha 13068
 
13069
class checkGrnImeiStatus_args:
13070
  """
13071
  Attributes:
13072
   - imeiNos
13073
  """
13074
 
13075
  thrift_spec = (
13076
    None, # 0
13077
    (1, TType.LIST, 'imeiNos', (TType.STRING,None), None, ), # 1
13078
  )
13079
 
13080
  def __init__(self, imeiNos=None,):
13081
    self.imeiNos = imeiNos
13082
 
13083
  def read(self, iprot):
13084
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13085
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13086
      return
13087
    iprot.readStructBegin()
13088
    while True:
13089
      (fname, ftype, fid) = iprot.readFieldBegin()
13090
      if ftype == TType.STOP:
13091
        break
13092
      if fid == 1:
13093
        if ftype == TType.LIST:
13094
          self.imeiNos = []
13095
          (_etype287, _size284) = iprot.readListBegin()
13096
          for _i288 in xrange(_size284):
13097
            _elem289 = iprot.readString();
13098
            self.imeiNos.append(_elem289)
13099
          iprot.readListEnd()
13100
        else:
13101
          iprot.skip(ftype)
13102
      else:
13103
        iprot.skip(ftype)
13104
      iprot.readFieldEnd()
13105
    iprot.readStructEnd()
13106
 
13107
  def write(self, oprot):
13108
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13109
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13110
      return
13111
    oprot.writeStructBegin('checkGrnImeiStatus_args')
13112
    if self.imeiNos is not None:
13113
      oprot.writeFieldBegin('imeiNos', TType.LIST, 1)
13114
      oprot.writeListBegin(TType.STRING, len(self.imeiNos))
13115
      for iter290 in self.imeiNos:
13116
        oprot.writeString(iter290)
13117
      oprot.writeListEnd()
13118
      oprot.writeFieldEnd()
13119
    oprot.writeFieldStop()
13120
    oprot.writeStructEnd()
13121
 
13122
  def validate(self):
13123
    return
13124
 
13125
 
13126
  def __repr__(self):
13127
    L = ['%s=%r' % (key, value)
13128
      for key, value in self.__dict__.iteritems()]
13129
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13130
 
13131
  def __eq__(self, other):
13132
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13133
 
13134
  def __ne__(self, other):
13135
    return not (self == other)
13136
 
13137
class checkGrnImeiStatus_result:
13138
  """
13139
  Attributes:
13140
   - success
13141
   - ex
13142
  """
13143
 
13144
  thrift_spec = (
13145
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
13146
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
13147
  )
13148
 
13149
  def __init__(self, success=None, ex=None,):
13150
    self.success = success
13151
    self.ex = ex
13152
 
13153
  def read(self, iprot):
13154
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13155
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13156
      return
13157
    iprot.readStructBegin()
13158
    while True:
13159
      (fname, ftype, fid) = iprot.readFieldBegin()
13160
      if ftype == TType.STOP:
13161
        break
13162
      if fid == 0:
13163
        if ftype == TType.LIST:
13164
          self.success = []
13165
          (_etype294, _size291) = iprot.readListBegin()
13166
          for _i295 in xrange(_size291):
13167
            _elem296 = iprot.readString();
13168
            self.success.append(_elem296)
13169
          iprot.readListEnd()
13170
        else:
13171
          iprot.skip(ftype)
13172
      elif fid == 1:
13173
        if ftype == TType.STRUCT:
13174
          self.ex = WarehouseServiceException()
13175
          self.ex.read(iprot)
13176
        else:
13177
          iprot.skip(ftype)
13178
      else:
13179
        iprot.skip(ftype)
13180
      iprot.readFieldEnd()
13181
    iprot.readStructEnd()
13182
 
13183
  def write(self, oprot):
13184
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13185
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13186
      return
13187
    oprot.writeStructBegin('checkGrnImeiStatus_result')
13188
    if self.success is not None:
13189
      oprot.writeFieldBegin('success', TType.LIST, 0)
13190
      oprot.writeListBegin(TType.STRING, len(self.success))
13191
      for iter297 in self.success:
13192
        oprot.writeString(iter297)
13193
      oprot.writeListEnd()
13194
      oprot.writeFieldEnd()
13195
    if self.ex is not None:
13196
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
13197
      self.ex.write(oprot)
13198
      oprot.writeFieldEnd()
13199
    oprot.writeFieldStop()
13200
    oprot.writeStructEnd()
13201
 
13202
  def validate(self):
13203
    return
13204
 
13205
 
13206
  def __repr__(self):
13207
    L = ['%s=%r' % (key, value)
13208
      for key, value in self.__dict__.iteritems()]
13209
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13210
 
13211
  def __eq__(self, other):
13212
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13213
 
13214
  def __ne__(self, other):
13215
    return not (self == other)
12800 manish.sha 13216
 
13217
class getInventoryAgeConsideredItems_args:
13218
  """
13219
  Attributes:
13220
   - itemId
13221
  """
13222
 
13223
  thrift_spec = (
13224
    None, # 0
13225
    (1, TType.I64, 'itemId', None, None, ), # 1
13226
  )
13227
 
13228
  def __init__(self, itemId=None,):
13229
    self.itemId = itemId
13230
 
13231
  def read(self, iprot):
13232
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13233
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13234
      return
13235
    iprot.readStructBegin()
13236
    while True:
13237
      (fname, ftype, fid) = iprot.readFieldBegin()
13238
      if ftype == TType.STOP:
13239
        break
13240
      if fid == 1:
13241
        if ftype == TType.I64:
13242
          self.itemId = iprot.readI64();
13243
        else:
13244
          iprot.skip(ftype)
13245
      else:
13246
        iprot.skip(ftype)
13247
      iprot.readFieldEnd()
13248
    iprot.readStructEnd()
13249
 
13250
  def write(self, oprot):
13251
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13252
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13253
      return
13254
    oprot.writeStructBegin('getInventoryAgeConsideredItems_args')
13255
    if self.itemId is not None:
13256
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13257
      oprot.writeI64(self.itemId)
13258
      oprot.writeFieldEnd()
13259
    oprot.writeFieldStop()
13260
    oprot.writeStructEnd()
13261
 
13262
  def validate(self):
13263
    return
13264
 
13265
 
13266
  def __repr__(self):
13267
    L = ['%s=%r' % (key, value)
13268
      for key, value in self.__dict__.iteritems()]
13269
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13270
 
13271
  def __eq__(self, other):
13272
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13273
 
13274
  def __ne__(self, other):
13275
    return not (self == other)
13276
 
13277
class getInventoryAgeConsideredItems_result:
13278
  """
13279
  Attributes:
13280
   - success
13281
   - ex
13282
  """
13283
 
13284
  thrift_spec = (
13285
    (0, TType.LIST, 'success', (TType.STRUCT,(InvAgeConsiderItems, InvAgeConsiderItems.thrift_spec)), None, ), # 0
13286
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
13287
  )
13288
 
13289
  def __init__(self, success=None, ex=None,):
13290
    self.success = success
13291
    self.ex = ex
13292
 
13293
  def read(self, iprot):
13294
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13295
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13296
      return
13297
    iprot.readStructBegin()
13298
    while True:
13299
      (fname, ftype, fid) = iprot.readFieldBegin()
13300
      if ftype == TType.STOP:
13301
        break
13302
      if fid == 0:
13303
        if ftype == TType.LIST:
13304
          self.success = []
13305
          (_etype301, _size298) = iprot.readListBegin()
13306
          for _i302 in xrange(_size298):
13307
            _elem303 = InvAgeConsiderItems()
13308
            _elem303.read(iprot)
13309
            self.success.append(_elem303)
13310
          iprot.readListEnd()
13311
        else:
13312
          iprot.skip(ftype)
13313
      elif fid == 1:
13314
        if ftype == TType.STRUCT:
13315
          self.ex = WarehouseServiceException()
13316
          self.ex.read(iprot)
13317
        else:
13318
          iprot.skip(ftype)
13319
      else:
13320
        iprot.skip(ftype)
13321
      iprot.readFieldEnd()
13322
    iprot.readStructEnd()
13323
 
13324
  def write(self, oprot):
13325
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13326
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13327
      return
13328
    oprot.writeStructBegin('getInventoryAgeConsideredItems_result')
13329
    if self.success is not None:
13330
      oprot.writeFieldBegin('success', TType.LIST, 0)
13331
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13332
      for iter304 in self.success:
13333
        iter304.write(oprot)
13334
      oprot.writeListEnd()
13335
      oprot.writeFieldEnd()
13336
    if self.ex is not None:
13337
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
13338
      self.ex.write(oprot)
13339
      oprot.writeFieldEnd()
13340
    oprot.writeFieldStop()
13341
    oprot.writeStructEnd()
13342
 
13343
  def validate(self):
13344
    return
13345
 
13346
 
13347
  def __repr__(self):
13348
    L = ['%s=%r' % (key, value)
13349
      for key, value in self.__dict__.iteritems()]
13350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13351
 
13352
  def __eq__(self, other):
13353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13354
 
13355
  def __ne__(self, other):
13356
    return not (self == other)
13529 manish.sha 13357
 
13358
class getCompleteMovementForThirdPartyWarehouse_args:
13359
  """
13360
  Attributes:
13361
   - startDate
13362
   - endDate
13363
  """
13364
 
13365
  thrift_spec = (
13366
    None, # 0
13367
    (1, TType.I64, 'startDate', None, None, ), # 1
13368
    (2, TType.I64, 'endDate', None, None, ), # 2
13369
  )
13370
 
13371
  def __init__(self, startDate=None, endDate=None,):
13372
    self.startDate = startDate
13373
    self.endDate = endDate
13374
 
13375
  def read(self, iprot):
13376
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13377
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13378
      return
13379
    iprot.readStructBegin()
13380
    while True:
13381
      (fname, ftype, fid) = iprot.readFieldBegin()
13382
      if ftype == TType.STOP:
13383
        break
13384
      if fid == 1:
13385
        if ftype == TType.I64:
13386
          self.startDate = iprot.readI64();
13387
        else:
13388
          iprot.skip(ftype)
13389
      elif fid == 2:
13390
        if ftype == TType.I64:
13391
          self.endDate = iprot.readI64();
13392
        else:
13393
          iprot.skip(ftype)
13394
      else:
13395
        iprot.skip(ftype)
13396
      iprot.readFieldEnd()
13397
    iprot.readStructEnd()
13398
 
13399
  def write(self, oprot):
13400
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13401
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13402
      return
13403
    oprot.writeStructBegin('getCompleteMovementForThirdPartyWarehouse_args')
13404
    if self.startDate is not None:
13405
      oprot.writeFieldBegin('startDate', TType.I64, 1)
13406
      oprot.writeI64(self.startDate)
13407
      oprot.writeFieldEnd()
13408
    if self.endDate is not None:
13409
      oprot.writeFieldBegin('endDate', TType.I64, 2)
13410
      oprot.writeI64(self.endDate)
13411
      oprot.writeFieldEnd()
13412
    oprot.writeFieldStop()
13413
    oprot.writeStructEnd()
13414
 
13415
  def validate(self):
13416
    return
13417
 
13418
 
13419
  def __repr__(self):
13420
    L = ['%s=%r' % (key, value)
13421
      for key, value in self.__dict__.iteritems()]
13422
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13423
 
13424
  def __eq__(self, other):
13425
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13426
 
13427
  def __ne__(self, other):
13428
    return not (self == other)
13429
 
13430
class getCompleteMovementForThirdPartyWarehouse_result:
13431
  """
13432
  Attributes:
13433
   - success
13434
  """
13435
 
13436
  thrift_spec = (
13437
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
13438
  )
13439
 
13440
  def __init__(self, success=None,):
13441
    self.success = success
13442
 
13443
  def read(self, iprot):
13444
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13445
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13446
      return
13447
    iprot.readStructBegin()
13448
    while True:
13449
      (fname, ftype, fid) = iprot.readFieldBegin()
13450
      if ftype == TType.STOP:
13451
        break
13452
      if fid == 0:
13453
        if ftype == TType.LIST:
13454
          self.success = []
13455
          (_etype308, _size305) = iprot.readListBegin()
13456
          for _i309 in xrange(_size305):
13457
            _elem310 = InventoryMovement()
13458
            _elem310.read(iprot)
13459
            self.success.append(_elem310)
13460
          iprot.readListEnd()
13461
        else:
13462
          iprot.skip(ftype)
13463
      else:
13464
        iprot.skip(ftype)
13465
      iprot.readFieldEnd()
13466
    iprot.readStructEnd()
13467
 
13468
  def write(self, oprot):
13469
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13470
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13471
      return
13472
    oprot.writeStructBegin('getCompleteMovementForThirdPartyWarehouse_result')
13473
    if self.success is not None:
13474
      oprot.writeFieldBegin('success', TType.LIST, 0)
13475
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13476
      for iter311 in self.success:
13477
        iter311.write(oprot)
13478
      oprot.writeListEnd()
13479
      oprot.writeFieldEnd()
13480
    oprot.writeFieldStop()
13481
    oprot.writeStructEnd()
13482
 
13483
  def validate(self):
13484
    return
13485
 
13486
 
13487
  def __repr__(self):
13488
    L = ['%s=%r' % (key, value)
13489
      for key, value in self.__dict__.iteritems()]
13490
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13491
 
13492
  def __eq__(self, other):
13493
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13494
 
13495
  def __ne__(self, other):
13496
    return not (self == other)
14491 manish.sha 13497
 
13498
class getAllDoaOutInventoryItems_args:
13499
 
13500
  thrift_spec = (
13501
  )
13502
 
13503
  def read(self, iprot):
13504
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13505
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13506
      return
13507
    iprot.readStructBegin()
13508
    while True:
13509
      (fname, ftype, fid) = iprot.readFieldBegin()
13510
      if ftype == TType.STOP:
13511
        break
13512
      else:
13513
        iprot.skip(ftype)
13514
      iprot.readFieldEnd()
13515
    iprot.readStructEnd()
13516
 
13517
  def write(self, oprot):
13518
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13519
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13520
      return
13521
    oprot.writeStructBegin('getAllDoaOutInventoryItems_args')
13522
    oprot.writeFieldStop()
13523
    oprot.writeStructEnd()
13524
 
13525
  def validate(self):
13526
    return
13527
 
13528
 
13529
  def __repr__(self):
13530
    L = ['%s=%r' % (key, value)
13531
      for key, value in self.__dict__.iteritems()]
13532
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13533
 
13534
  def __eq__(self, other):
13535
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13536
 
13537
  def __ne__(self, other):
13538
    return not (self == other)
13539
 
13540
class getAllDoaOutInventoryItems_result:
13541
  """
13542
  Attributes:
13543
   - success
13544
   - ex
13545
  """
13546
 
13547
  thrift_spec = (
13548
    (0, TType.LIST, 'success', (TType.STRUCT,(DoaOutInventoryItem, DoaOutInventoryItem.thrift_spec)), None, ), # 0
13549
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
13550
  )
13551
 
13552
  def __init__(self, success=None, ex=None,):
13553
    self.success = success
13554
    self.ex = ex
13555
 
13556
  def read(self, iprot):
13557
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13558
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13559
      return
13560
    iprot.readStructBegin()
13561
    while True:
13562
      (fname, ftype, fid) = iprot.readFieldBegin()
13563
      if ftype == TType.STOP:
13564
        break
13565
      if fid == 0:
13566
        if ftype == TType.LIST:
13567
          self.success = []
13568
          (_etype315, _size312) = iprot.readListBegin()
13569
          for _i316 in xrange(_size312):
13570
            _elem317 = DoaOutInventoryItem()
13571
            _elem317.read(iprot)
13572
            self.success.append(_elem317)
13573
          iprot.readListEnd()
13574
        else:
13575
          iprot.skip(ftype)
13576
      elif fid == 1:
13577
        if ftype == TType.STRUCT:
13578
          self.ex = WarehouseServiceException()
13579
          self.ex.read(iprot)
13580
        else:
13581
          iprot.skip(ftype)
13582
      else:
13583
        iprot.skip(ftype)
13584
      iprot.readFieldEnd()
13585
    iprot.readStructEnd()
13586
 
13587
  def write(self, oprot):
13588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13590
      return
13591
    oprot.writeStructBegin('getAllDoaOutInventoryItems_result')
13592
    if self.success is not None:
13593
      oprot.writeFieldBegin('success', TType.LIST, 0)
13594
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13595
      for iter318 in self.success:
13596
        iter318.write(oprot)
13597
      oprot.writeListEnd()
13598
      oprot.writeFieldEnd()
13599
    if self.ex is not None:
13600
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
13601
      self.ex.write(oprot)
13602
      oprot.writeFieldEnd()
13603
    oprot.writeFieldStop()
13604
    oprot.writeStructEnd()
13605
 
13606
  def validate(self):
13607
    return
13608
 
13609
 
13610
  def __repr__(self):
13611
    L = ['%s=%r' % (key, value)
13612
      for key, value in self.__dict__.iteritems()]
13613
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13614
 
13615
  def __eq__(self, other):
13616
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13617
 
13618
  def __ne__(self, other):
13619
    return not (self == other)
15045 manish.sha 13620
 
13621
class getAllUnCompletedStockShipments_args:
13622
  """
13623
  Attributes:
13624
   - source
13625
  """
13626
 
13627
  thrift_spec = (
13628
    None, # 0
13629
    (1, TType.STRING, 'source', None, None, ), # 1
13630
  )
13631
 
13632
  def __init__(self, source=None,):
13633
    self.source = source
13634
 
13635
  def read(self, iprot):
13636
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13637
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13638
      return
13639
    iprot.readStructBegin()
13640
    while True:
13641
      (fname, ftype, fid) = iprot.readFieldBegin()
13642
      if ftype == TType.STOP:
13643
        break
13644
      if fid == 1:
13645
        if ftype == TType.STRING:
13646
          self.source = iprot.readString();
13647
        else:
13648
          iprot.skip(ftype)
13649
      else:
13650
        iprot.skip(ftype)
13651
      iprot.readFieldEnd()
13652
    iprot.readStructEnd()
13653
 
13654
  def write(self, oprot):
13655
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13656
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13657
      return
13658
    oprot.writeStructBegin('getAllUnCompletedStockShipments_args')
13659
    if self.source is not None:
13660
      oprot.writeFieldBegin('source', TType.STRING, 1)
13661
      oprot.writeString(self.source)
13662
      oprot.writeFieldEnd()
13663
    oprot.writeFieldStop()
13664
    oprot.writeStructEnd()
13665
 
13666
  def validate(self):
13667
    return
13668
 
13669
 
13670
  def __repr__(self):
13671
    L = ['%s=%r' % (key, value)
13672
      for key, value in self.__dict__.iteritems()]
13673
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13674
 
13675
  def __eq__(self, other):
13676
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13677
 
13678
  def __ne__(self, other):
13679
    return not (self == other)
13680
 
13681
class getAllUnCompletedStockShipments_result:
13682
  """
13683
  Attributes:
13684
   - success
13685
   - ex
13686
  """
13687
 
13688
  thrift_spec = (
13689
    (0, TType.LIST, 'success', (TType.STRUCT,(RemovalStockShipmentReference, RemovalStockShipmentReference.thrift_spec)), None, ), # 0
13690
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
13691
  )
13692
 
13693
  def __init__(self, success=None, ex=None,):
13694
    self.success = success
13695
    self.ex = ex
13696
 
13697
  def read(self, iprot):
13698
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13699
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13700
      return
13701
    iprot.readStructBegin()
13702
    while True:
13703
      (fname, ftype, fid) = iprot.readFieldBegin()
13704
      if ftype == TType.STOP:
13705
        break
13706
      if fid == 0:
13707
        if ftype == TType.LIST:
13708
          self.success = []
13709
          (_etype322, _size319) = iprot.readListBegin()
13710
          for _i323 in xrange(_size319):
13711
            _elem324 = RemovalStockShipmentReference()
13712
            _elem324.read(iprot)
13713
            self.success.append(_elem324)
13714
          iprot.readListEnd()
13715
        else:
13716
          iprot.skip(ftype)
13717
      elif fid == 1:
13718
        if ftype == TType.STRUCT:
13719
          self.ex = WarehouseServiceException()
13720
          self.ex.read(iprot)
13721
        else:
13722
          iprot.skip(ftype)
13723
      else:
13724
        iprot.skip(ftype)
13725
      iprot.readFieldEnd()
13726
    iprot.readStructEnd()
13727
 
13728
  def write(self, oprot):
13729
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13730
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13731
      return
13732
    oprot.writeStructBegin('getAllUnCompletedStockShipments_result')
13733
    if self.success is not None:
13734
      oprot.writeFieldBegin('success', TType.LIST, 0)
13735
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13736
      for iter325 in self.success:
13737
        iter325.write(oprot)
13738
      oprot.writeListEnd()
13739
      oprot.writeFieldEnd()
13740
    if self.ex is not None:
13741
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
13742
      self.ex.write(oprot)
13743
      oprot.writeFieldEnd()
13744
    oprot.writeFieldStop()
13745
    oprot.writeStructEnd()
13746
 
13747
  def validate(self):
13748
    return
13749
 
13750
 
13751
  def __repr__(self):
13752
    L = ['%s=%r' % (key, value)
13753
      for key, value in self.__dict__.iteritems()]
13754
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13755
 
13756
  def __eq__(self, other):
13757
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13758
 
13759
  def __ne__(self, other):
13760
    return not (self == other)
13761
 
13762
class getRemovalStockShipmentReferenceById_args:
13763
  """
13764
  Attributes:
13765
   - id
13766
  """
13767
 
13768
  thrift_spec = (
13769
    None, # 0
13770
    (1, TType.I64, 'id', None, None, ), # 1
13771
  )
13772
 
13773
  def __init__(self, id=None,):
13774
    self.id = id
13775
 
13776
  def read(self, iprot):
13777
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13778
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13779
      return
13780
    iprot.readStructBegin()
13781
    while True:
13782
      (fname, ftype, fid) = iprot.readFieldBegin()
13783
      if ftype == TType.STOP:
13784
        break
13785
      if fid == 1:
13786
        if ftype == TType.I64:
13787
          self.id = iprot.readI64();
13788
        else:
13789
          iprot.skip(ftype)
13790
      else:
13791
        iprot.skip(ftype)
13792
      iprot.readFieldEnd()
13793
    iprot.readStructEnd()
13794
 
13795
  def write(self, oprot):
13796
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13797
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13798
      return
13799
    oprot.writeStructBegin('getRemovalStockShipmentReferenceById_args')
13800
    if self.id is not None:
13801
      oprot.writeFieldBegin('id', TType.I64, 1)
13802
      oprot.writeI64(self.id)
13803
      oprot.writeFieldEnd()
13804
    oprot.writeFieldStop()
13805
    oprot.writeStructEnd()
13806
 
13807
  def validate(self):
13808
    return
13809
 
13810
 
13811
  def __repr__(self):
13812
    L = ['%s=%r' % (key, value)
13813
      for key, value in self.__dict__.iteritems()]
13814
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13815
 
13816
  def __eq__(self, other):
13817
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13818
 
13819
  def __ne__(self, other):
13820
    return not (self == other)
13821
 
13822
class getRemovalStockShipmentReferenceById_result:
13823
  """
13824
  Attributes:
13825
   - success
13826
   - ex
13827
  """
13828
 
13829
  thrift_spec = (
13830
    (0, TType.STRUCT, 'success', (RemovalStockShipmentReference, RemovalStockShipmentReference.thrift_spec), None, ), # 0
13831
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
13832
  )
13833
 
13834
  def __init__(self, success=None, ex=None,):
13835
    self.success = success
13836
    self.ex = ex
13837
 
13838
  def read(self, iprot):
13839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13841
      return
13842
    iprot.readStructBegin()
13843
    while True:
13844
      (fname, ftype, fid) = iprot.readFieldBegin()
13845
      if ftype == TType.STOP:
13846
        break
13847
      if fid == 0:
13848
        if ftype == TType.STRUCT:
13849
          self.success = RemovalStockShipmentReference()
13850
          self.success.read(iprot)
13851
        else:
13852
          iprot.skip(ftype)
13853
      elif fid == 1:
13854
        if ftype == TType.STRUCT:
13855
          self.ex = WarehouseServiceException()
13856
          self.ex.read(iprot)
13857
        else:
13858
          iprot.skip(ftype)
13859
      else:
13860
        iprot.skip(ftype)
13861
      iprot.readFieldEnd()
13862
    iprot.readStructEnd()
13863
 
13864
  def write(self, oprot):
13865
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13866
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13867
      return
13868
    oprot.writeStructBegin('getRemovalStockShipmentReferenceById_result')
13869
    if self.success is not None:
13870
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13871
      self.success.write(oprot)
13872
      oprot.writeFieldEnd()
13873
    if self.ex is not None:
13874
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
13875
      self.ex.write(oprot)
13876
      oprot.writeFieldEnd()
13877
    oprot.writeFieldStop()
13878
    oprot.writeStructEnd()
13879
 
13880
  def validate(self):
13881
    return
13882
 
13883
 
13884
  def __repr__(self):
13885
    L = ['%s=%r' % (key, value)
13886
      for key, value in self.__dict__.iteritems()]
13887
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13888
 
13889
  def __eq__(self, other):
13890
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13891
 
13892
  def __ne__(self, other):
13893
    return not (self == other)
13894
 
13895
class createRemovalStockShipmentReference_args:
13896
  """
13897
  Attributes:
13898
   - removalStockShipmentReference
13899
  """
13900
 
13901
  thrift_spec = (
13902
    None, # 0
13903
    (1, TType.STRUCT, 'removalStockShipmentReference', (RemovalStockShipmentReference, RemovalStockShipmentReference.thrift_spec), None, ), # 1
13904
  )
13905
 
13906
  def __init__(self, removalStockShipmentReference=None,):
13907
    self.removalStockShipmentReference = removalStockShipmentReference
13908
 
13909
  def read(self, iprot):
13910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13912
      return
13913
    iprot.readStructBegin()
13914
    while True:
13915
      (fname, ftype, fid) = iprot.readFieldBegin()
13916
      if ftype == TType.STOP:
13917
        break
13918
      if fid == 1:
13919
        if ftype == TType.STRUCT:
13920
          self.removalStockShipmentReference = RemovalStockShipmentReference()
13921
          self.removalStockShipmentReference.read(iprot)
13922
        else:
13923
          iprot.skip(ftype)
13924
      else:
13925
        iprot.skip(ftype)
13926
      iprot.readFieldEnd()
13927
    iprot.readStructEnd()
13928
 
13929
  def write(self, oprot):
13930
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13931
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13932
      return
13933
    oprot.writeStructBegin('createRemovalStockShipmentReference_args')
13934
    if self.removalStockShipmentReference is not None:
13935
      oprot.writeFieldBegin('removalStockShipmentReference', TType.STRUCT, 1)
13936
      self.removalStockShipmentReference.write(oprot)
13937
      oprot.writeFieldEnd()
13938
    oprot.writeFieldStop()
13939
    oprot.writeStructEnd()
13940
 
13941
  def validate(self):
13942
    return
13943
 
13944
 
13945
  def __repr__(self):
13946
    L = ['%s=%r' % (key, value)
13947
      for key, value in self.__dict__.iteritems()]
13948
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13949
 
13950
  def __eq__(self, other):
13951
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13952
 
13953
  def __ne__(self, other):
13954
    return not (self == other)
13955
 
13956
class createRemovalStockShipmentReference_result:
13957
  """
13958
  Attributes:
13959
   - success
13960
   - ex
13961
  """
13962
 
13963
  thrift_spec = (
13964
    (0, TType.I64, 'success', None, None, ), # 0
13965
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
13966
  )
13967
 
13968
  def __init__(self, success=None, ex=None,):
13969
    self.success = success
13970
    self.ex = ex
13971
 
13972
  def read(self, iprot):
13973
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13974
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13975
      return
13976
    iprot.readStructBegin()
13977
    while True:
13978
      (fname, ftype, fid) = iprot.readFieldBegin()
13979
      if ftype == TType.STOP:
13980
        break
13981
      if fid == 0:
13982
        if ftype == TType.I64:
13983
          self.success = iprot.readI64();
13984
        else:
13985
          iprot.skip(ftype)
13986
      elif fid == 1:
13987
        if ftype == TType.STRUCT:
13988
          self.ex = WarehouseServiceException()
13989
          self.ex.read(iprot)
13990
        else:
13991
          iprot.skip(ftype)
13992
      else:
13993
        iprot.skip(ftype)
13994
      iprot.readFieldEnd()
13995
    iprot.readStructEnd()
13996
 
13997
  def write(self, oprot):
13998
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13999
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14000
      return
14001
    oprot.writeStructBegin('createRemovalStockShipmentReference_result')
14002
    if self.success is not None:
14003
      oprot.writeFieldBegin('success', TType.I64, 0)
14004
      oprot.writeI64(self.success)
14005
      oprot.writeFieldEnd()
14006
    if self.ex is not None:
14007
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
14008
      self.ex.write(oprot)
14009
      oprot.writeFieldEnd()
14010
    oprot.writeFieldStop()
14011
    oprot.writeStructEnd()
14012
 
14013
  def validate(self):
14014
    return
14015
 
14016
 
14017
  def __repr__(self):
14018
    L = ['%s=%r' % (key, value)
14019
      for key, value in self.__dict__.iteritems()]
14020
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14021
 
14022
  def __eq__(self, other):
14023
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14024
 
14025
  def __ne__(self, other):
14026
    return not (self == other)
14027
 
14028
class updateShipmentReferenceTransferLot_args:
14029
  """
14030
  Attributes:
14031
   - transferLotId
14032
   - shipmentReferenceId
14033
  """
14034
 
14035
  thrift_spec = (
14036
    None, # 0
14037
    (1, TType.I64, 'transferLotId', None, None, ), # 1
14038
    (2, TType.I64, 'shipmentReferenceId', None, None, ), # 2
14039
  )
14040
 
14041
  def __init__(self, transferLotId=None, shipmentReferenceId=None,):
14042
    self.transferLotId = transferLotId
14043
    self.shipmentReferenceId = shipmentReferenceId
14044
 
14045
  def read(self, iprot):
14046
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14047
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14048
      return
14049
    iprot.readStructBegin()
14050
    while True:
14051
      (fname, ftype, fid) = iprot.readFieldBegin()
14052
      if ftype == TType.STOP:
14053
        break
14054
      if fid == 1:
14055
        if ftype == TType.I64:
14056
          self.transferLotId = iprot.readI64();
14057
        else:
14058
          iprot.skip(ftype)
14059
      elif fid == 2:
14060
        if ftype == TType.I64:
14061
          self.shipmentReferenceId = iprot.readI64();
14062
        else:
14063
          iprot.skip(ftype)
14064
      else:
14065
        iprot.skip(ftype)
14066
      iprot.readFieldEnd()
14067
    iprot.readStructEnd()
14068
 
14069
  def write(self, oprot):
14070
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14071
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14072
      return
14073
    oprot.writeStructBegin('updateShipmentReferenceTransferLot_args')
14074
    if self.transferLotId is not None:
14075
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
14076
      oprot.writeI64(self.transferLotId)
14077
      oprot.writeFieldEnd()
14078
    if self.shipmentReferenceId is not None:
14079
      oprot.writeFieldBegin('shipmentReferenceId', TType.I64, 2)
14080
      oprot.writeI64(self.shipmentReferenceId)
14081
      oprot.writeFieldEnd()
14082
    oprot.writeFieldStop()
14083
    oprot.writeStructEnd()
14084
 
14085
  def validate(self):
14086
    return
14087
 
14088
 
14089
  def __repr__(self):
14090
    L = ['%s=%r' % (key, value)
14091
      for key, value in self.__dict__.iteritems()]
14092
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14093
 
14094
  def __eq__(self, other):
14095
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14096
 
14097
  def __ne__(self, other):
14098
    return not (self == other)
14099
 
14100
class updateShipmentReferenceTransferLot_result:
14101
  """
14102
  Attributes:
14103
   - ex
14104
  """
14105
 
14106
  thrift_spec = (
14107
    None, # 0
14108
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
14109
  )
14110
 
14111
  def __init__(self, ex=None,):
14112
    self.ex = ex
14113
 
14114
  def read(self, iprot):
14115
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14116
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14117
      return
14118
    iprot.readStructBegin()
14119
    while True:
14120
      (fname, ftype, fid) = iprot.readFieldBegin()
14121
      if ftype == TType.STOP:
14122
        break
14123
      if fid == 1:
14124
        if ftype == TType.STRUCT:
14125
          self.ex = WarehouseServiceException()
14126
          self.ex.read(iprot)
14127
        else:
14128
          iprot.skip(ftype)
14129
      else:
14130
        iprot.skip(ftype)
14131
      iprot.readFieldEnd()
14132
    iprot.readStructEnd()
14133
 
14134
  def write(self, oprot):
14135
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14136
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14137
      return
14138
    oprot.writeStructBegin('updateShipmentReferenceTransferLot_result')
14139
    if self.ex is not None:
14140
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
14141
      self.ex.write(oprot)
14142
      oprot.writeFieldEnd()
14143
    oprot.writeFieldStop()
14144
    oprot.writeStructEnd()
14145
 
14146
  def validate(self):
14147
    return
14148
 
14149
 
14150
  def __repr__(self):
14151
    L = ['%s=%r' % (key, value)
14152
      for key, value in self.__dict__.iteritems()]
14153
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14154
 
14155
  def __eq__(self, other):
14156
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14157
 
14158
  def __ne__(self, other):
14159
    return not (self == other)
16264 manish.sha 14160
 
14161
class fetchScansPerTransferInvoiceNumber_args:
14162
  """
14163
  Attributes:
14164
   - date
14165
  """
14166
 
14167
  thrift_spec = (
14168
    None, # 0
14169
    (1, TType.I64, 'date', None, None, ), # 1
14170
  )
14171
 
14172
  def __init__(self, date=None,):
14173
    self.date = date
14174
 
14175
  def read(self, iprot):
14176
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14177
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14178
      return
14179
    iprot.readStructBegin()
14180
    while True:
14181
      (fname, ftype, fid) = iprot.readFieldBegin()
14182
      if ftype == TType.STOP:
14183
        break
14184
      if fid == 1:
14185
        if ftype == TType.I64:
14186
          self.date = iprot.readI64();
14187
        else:
14188
          iprot.skip(ftype)
14189
      else:
14190
        iprot.skip(ftype)
14191
      iprot.readFieldEnd()
14192
    iprot.readStructEnd()
14193
 
14194
  def write(self, oprot):
14195
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14196
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14197
      return
14198
    oprot.writeStructBegin('fetchScansPerTransferInvoiceNumber_args')
14199
    if self.date is not None:
14200
      oprot.writeFieldBegin('date', TType.I64, 1)
14201
      oprot.writeI64(self.date)
14202
      oprot.writeFieldEnd()
14203
    oprot.writeFieldStop()
14204
    oprot.writeStructEnd()
14205
 
14206
  def validate(self):
14207
    return
14208
 
14209
 
14210
  def __repr__(self):
14211
    L = ['%s=%r' % (key, value)
14212
      for key, value in self.__dict__.iteritems()]
14213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14214
 
14215
  def __eq__(self, other):
14216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14217
 
14218
  def __ne__(self, other):
14219
    return not (self == other)
14220
 
14221
class fetchScansPerTransferInvoiceNumber_result:
14222
  """
14223
  Attributes:
14224
   - success
14225
  """
14226
 
14227
  thrift_spec = (
14228
    (0, TType.LIST, 'success', (TType.STRUCT,(TransferInvoiceScan, TransferInvoiceScan.thrift_spec)), None, ), # 0
14229
  )
14230
 
14231
  def __init__(self, success=None,):
14232
    self.success = success
14233
 
14234
  def read(self, iprot):
14235
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14236
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14237
      return
14238
    iprot.readStructBegin()
14239
    while True:
14240
      (fname, ftype, fid) = iprot.readFieldBegin()
14241
      if ftype == TType.STOP:
14242
        break
14243
      if fid == 0:
14244
        if ftype == TType.LIST:
14245
          self.success = []
14246
          (_etype329, _size326) = iprot.readListBegin()
14247
          for _i330 in xrange(_size326):
14248
            _elem331 = TransferInvoiceScan()
14249
            _elem331.read(iprot)
14250
            self.success.append(_elem331)
14251
          iprot.readListEnd()
14252
        else:
14253
          iprot.skip(ftype)
14254
      else:
14255
        iprot.skip(ftype)
14256
      iprot.readFieldEnd()
14257
    iprot.readStructEnd()
14258
 
14259
  def write(self, oprot):
14260
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14261
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14262
      return
14263
    oprot.writeStructBegin('fetchScansPerTransferInvoiceNumber_result')
14264
    if self.success is not None:
14265
      oprot.writeFieldBegin('success', TType.LIST, 0)
14266
      oprot.writeListBegin(TType.STRUCT, len(self.success))
14267
      for iter332 in self.success:
14268
        iter332.write(oprot)
14269
      oprot.writeListEnd()
14270
      oprot.writeFieldEnd()
14271
    oprot.writeFieldStop()
14272
    oprot.writeStructEnd()
14273
 
14274
  def validate(self):
14275
    return
14276
 
14277
 
14278
  def __repr__(self):
14279
    L = ['%s=%r' % (key, value)
14280
      for key, value in self.__dict__.iteritems()]
14281
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14282
 
14283
  def __eq__(self, other):
14284
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14285
 
14286
  def __ne__(self, other):
14287
    return not (self == other)