Subversion Repositories SmartDukaan

Rev

Rev 14491 | Rev 16264 | 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
 
649
 
3376 rajveer 650
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2821 chandransh 651
  def __init__(self, iprot, oprot=None):
3376 rajveer 652
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2821 chandransh 653
 
4501 mandeep.dh 654
  def getInventoryItem(self, serialNumber):
2832 chandransh 655
    """
4501 mandeep.dh 656
    Retrieves serialized inventory item given a serial number
3431 rajveer 657
 
2832 chandransh 658
    Parameters:
4501 mandeep.dh 659
     - serialNumber
2832 chandransh 660
    """
4501 mandeep.dh 661
    self.send_getInventoryItem(serialNumber)
662
    return self.recv_getInventoryItem()
2832 chandransh 663
 
4501 mandeep.dh 664
  def send_getInventoryItem(self, serialNumber):
665
    self._oprot.writeMessageBegin('getInventoryItem', TMessageType.CALL, self._seqid)
666
    args = getInventoryItem_args()
667
    args.serialNumber = serialNumber
2832 chandransh 668
    args.write(self._oprot)
669
    self._oprot.writeMessageEnd()
670
    self._oprot.trans.flush()
671
 
4501 mandeep.dh 672
  def recv_getInventoryItem(self, ):
2832 chandransh 673
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
674
    if mtype == TMessageType.EXCEPTION:
675
      x = TApplicationException()
676
      x.read(self._iprot)
677
      self._iprot.readMessageEnd()
678
      raise x
4501 mandeep.dh 679
    result = getInventoryItem_result()
2832 chandransh 680
    result.read(self._iprot)
681
    self._iprot.readMessageEnd()
3431 rajveer 682
    if result.success is not None:
2832 chandransh 683
      return result.success
4541 mandeep.dh 684
    if result.wex is not None:
685
      raise result.wex
4501 mandeep.dh 686
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
2832 chandransh 687
 
8565 amar.kumar 688
  def getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId):
2821 chandransh 689
    """
5361 mandeep.dh 690
    Retrieves non-serialized inventory item from a given supplier
3431 rajveer 691
 
2821 chandransh 692
    Parameters:
5530 mandeep.dh 693
     - itemNumber
4501 mandeep.dh 694
     - itemId
5530 mandeep.dh 695
     - fulfilmentWarehouseId
8565 amar.kumar 696
     - billingWarehouseId
2821 chandransh 697
    """
8565 amar.kumar 698
    self.send_getNonSeralizedInventoryItem(itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId)
5361 mandeep.dh 699
    return self.recv_getNonSeralizedInventoryItem()
2821 chandransh 700
 
8565 amar.kumar 701
  def send_getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId):
5361 mandeep.dh 702
    self._oprot.writeMessageBegin('getNonSeralizedInventoryItem', TMessageType.CALL, self._seqid)
703
    args = getNonSeralizedInventoryItem_args()
5530 mandeep.dh 704
    args.itemNumber = itemNumber
4501 mandeep.dh 705
    args.itemId = itemId
5530 mandeep.dh 706
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 707
    args.billingWarehouseId = billingWarehouseId
2821 chandransh 708
    args.write(self._oprot)
709
    self._oprot.writeMessageEnd()
710
    self._oprot.trans.flush()
711
 
5361 mandeep.dh 712
  def recv_getNonSeralizedInventoryItem(self, ):
2821 chandransh 713
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
714
    if mtype == TMessageType.EXCEPTION:
715
      x = TApplicationException()
716
      x.read(self._iprot)
717
      self._iprot.readMessageEnd()
718
      raise x
5361 mandeep.dh 719
    result = getNonSeralizedInventoryItem_result()
2821 chandransh 720
    result.read(self._iprot)
721
    self._iprot.readMessageEnd()
3431 rajveer 722
    if result.success is not None:
2821 chandransh 723
      return result.success
5361 mandeep.dh 724
    if result.wex is not None:
725
      raise result.wex
726
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
2821 chandransh 727
 
7410 amar.kumar 728
  def scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
3383 chandransh 729
    """
4501 mandeep.dh 730
    Scan non-serialized items.
3431 rajveer 731
 
2821 chandransh 732
    Parameters:
5361 mandeep.dh 733
     - inventoryItem
2821 chandransh 734
     - type
4501 mandeep.dh 735
     - quantity
5361 mandeep.dh 736
     - billingWarehouseId
7410 amar.kumar 737
     - transferLotId
2821 chandransh 738
    """
7410 amar.kumar 739
    self.send_scan(inventoryItem, type, quantity, billingWarehouseId, transferLotId)
4501 mandeep.dh 740
    self.recv_scan()
2821 chandransh 741
 
7410 amar.kumar 742
  def send_scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
4501 mandeep.dh 743
    self._oprot.writeMessageBegin('scan', TMessageType.CALL, self._seqid)
744
    args = scan_args()
5361 mandeep.dh 745
    args.inventoryItem = inventoryItem
2821 chandransh 746
    args.type = type
4501 mandeep.dh 747
    args.quantity = quantity
5361 mandeep.dh 748
    args.billingWarehouseId = billingWarehouseId
7410 amar.kumar 749
    args.transferLotId = transferLotId
2821 chandransh 750
    args.write(self._oprot)
751
    self._oprot.writeMessageEnd()
752
    self._oprot.trans.flush()
753
 
4501 mandeep.dh 754
  def recv_scan(self, ):
2821 chandransh 755
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
756
    if mtype == TMessageType.EXCEPTION:
757
      x = TApplicationException()
758
      x.read(self._iprot)
759
      self._iprot.readMessageEnd()
760
      raise x
4501 mandeep.dh 761
    result = scan_result()
2821 chandransh 762
    result.read(self._iprot)
763
    self._iprot.readMessageEnd()
3431 rajveer 764
    if result.wex is not None:
2821 chandransh 765
      raise result.wex
766
    return
767
 
10489 amar.kumar 768
  def genericScan(self, inventoryItem, scan):
769
    """
770
    Scan non-serialized items.
771
 
772
    Parameters:
773
     - inventoryItem
774
     - scan
775
    """
776
    self.send_genericScan(inventoryItem, scan)
777
    self.recv_genericScan()
778
 
779
  def send_genericScan(self, inventoryItem, scan):
780
    self._oprot.writeMessageBegin('genericScan', TMessageType.CALL, self._seqid)
781
    args = genericScan_args()
782
    args.inventoryItem = inventoryItem
783
    args.scan = scan
784
    args.write(self._oprot)
785
    self._oprot.writeMessageEnd()
786
    self._oprot.trans.flush()
787
 
788
  def recv_genericScan(self, ):
789
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
790
    if mtype == TMessageType.EXCEPTION:
791
      x = TApplicationException()
792
      x.read(self._iprot)
793
      self._iprot.readMessageEnd()
794
      raise x
795
    result = genericScan_result()
796
    result.read(self._iprot)
797
    self._iprot.readMessageEnd()
798
    if result.wex is not None:
799
      raise result.wex
800
    return
801
 
5110 mandeep.dh 802
  def scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
2821 chandransh 803
    """
4501 mandeep.dh 804
    Scan serialized items linked with an order. Returns its price.
3431 rajveer 805
 
2821 chandransh 806
    Parameters:
4555 mandeep.dh 807
     - serialNumber
2821 chandransh 808
     - type
4501 mandeep.dh 809
     - orderId
5110 mandeep.dh 810
     - fulfilmentWarehouseId
811
     - quantity
812
     - billingWarehouseId
2821 chandransh 813
    """
5110 mandeep.dh 814
    self.send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId)
4501 mandeep.dh 815
    return self.recv_scanSerializedItemForOrder()
2821 chandransh 816
 
5110 mandeep.dh 817
  def send_scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
4501 mandeep.dh 818
    self._oprot.writeMessageBegin('scanSerializedItemForOrder', TMessageType.CALL, self._seqid)
819
    args = scanSerializedItemForOrder_args()
4555 mandeep.dh 820
    args.serialNumber = serialNumber
2821 chandransh 821
    args.type = type
4501 mandeep.dh 822
    args.orderId = orderId
5110 mandeep.dh 823
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
824
    args.quantity = quantity
825
    args.billingWarehouseId = billingWarehouseId
2821 chandransh 826
    args.write(self._oprot)
827
    self._oprot.writeMessageEnd()
828
    self._oprot.trans.flush()
829
 
4501 mandeep.dh 830
  def recv_scanSerializedItemForOrder(self, ):
2821 chandransh 831
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
832
    if mtype == TMessageType.EXCEPTION:
833
      x = TApplicationException()
834
      x.read(self._iprot)
835
      self._iprot.readMessageEnd()
836
      raise x
4501 mandeep.dh 837
    result = scanSerializedItemForOrder_result()
2821 chandransh 838
    result.read(self._iprot)
839
    self._iprot.readMessageEnd()
4501 mandeep.dh 840
    if result.success is not None:
841
      return result.success
3431 rajveer 842
    if result.wex is not None:
2821 chandransh 843
      raise result.wex
4501 mandeep.dh 844
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
845
 
5361 mandeep.dh 846
  def scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
4501 mandeep.dh 847
    """
848
    Scan non-serialized items linked with an order.
849
 
850
    Parameters:
5361 mandeep.dh 851
     - inventoryItem
4501 mandeep.dh 852
     - type
853
     - quantity
854
     - orderId
5110 mandeep.dh 855
     - fulfilmentWarehouseId
5361 mandeep.dh 856
     - billingWarehouseId
4501 mandeep.dh 857
    """
5361 mandeep.dh 858
    self.send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId)
859
    return self.recv_scanForOrder()
4501 mandeep.dh 860
 
5361 mandeep.dh 861
  def send_scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
4501 mandeep.dh 862
    self._oprot.writeMessageBegin('scanForOrder', TMessageType.CALL, self._seqid)
863
    args = scanForOrder_args()
5361 mandeep.dh 864
    args.inventoryItem = inventoryItem
4501 mandeep.dh 865
    args.type = type
866
    args.quantity = quantity
867
    args.orderId = orderId
5110 mandeep.dh 868
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
5361 mandeep.dh 869
    args.billingWarehouseId = billingWarehouseId
4501 mandeep.dh 870
    args.write(self._oprot)
871
    self._oprot.writeMessageEnd()
872
    self._oprot.trans.flush()
873
 
874
  def recv_scanForOrder(self, ):
875
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
876
    if mtype == TMessageType.EXCEPTION:
877
      x = TApplicationException()
878
      x.read(self._iprot)
879
      self._iprot.readMessageEnd()
880
      raise x
881
    result = scanForOrder_result()
882
    result.read(self._iprot)
883
    self._iprot.readMessageEnd()
5361 mandeep.dh 884
    if result.success is not None:
885
      return result.success
4501 mandeep.dh 886
    if result.wex is not None:
887
      raise result.wex
5361 mandeep.dh 888
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");
2821 chandransh 889
 
4501 mandeep.dh 890
  def createItemNumberMapping(self, itemNumber, itemId):
891
    """
892
    Created item number to item id mapping
2821 chandransh 893
 
4501 mandeep.dh 894
    Parameters:
895
     - itemNumber
896
     - itemId
897
    """
898
    self.send_createItemNumberMapping(itemNumber, itemId)
899
    self.recv_createItemNumberMapping()
900
 
901
  def send_createItemNumberMapping(self, itemNumber, itemId):
902
    self._oprot.writeMessageBegin('createItemNumberMapping', TMessageType.CALL, self._seqid)
903
    args = createItemNumberMapping_args()
904
    args.itemNumber = itemNumber
905
    args.itemId = itemId
906
    args.write(self._oprot)
907
    self._oprot.writeMessageEnd()
908
    self._oprot.trans.flush()
909
 
910
  def recv_createItemNumberMapping(self, ):
911
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
912
    if mtype == TMessageType.EXCEPTION:
913
      x = TApplicationException()
914
      x.read(self._iprot)
915
      self._iprot.readMessageEnd()
916
      raise x
917
    result = createItemNumberMapping_result()
918
    result.read(self._iprot)
919
    self._iprot.readMessageEnd()
920
    return
921
 
4620 amit.gupta 922
  def getItemNumbers(self, itemId):
923
    """
924
    Get itemNumber mappings for itemId
4501 mandeep.dh 925
 
4620 amit.gupta 926
    Parameters:
927
     - itemId
928
    """
929
    self.send_getItemNumbers(itemId)
930
    return self.recv_getItemNumbers()
931
 
932
  def send_getItemNumbers(self, itemId):
933
    self._oprot.writeMessageBegin('getItemNumbers', TMessageType.CALL, self._seqid)
934
    args = getItemNumbers_args()
935
    args.itemId = itemId
936
    args.write(self._oprot)
937
    self._oprot.writeMessageEnd()
938
    self._oprot.trans.flush()
939
 
940
  def recv_getItemNumbers(self, ):
941
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
942
    if mtype == TMessageType.EXCEPTION:
943
      x = TApplicationException()
944
      x.read(self._iprot)
945
      self._iprot.readMessageEnd()
946
      raise x
947
    result = getItemNumbers_result()
948
    result.read(self._iprot)
949
    self._iprot.readMessageEnd()
950
    if result.success is not None:
951
      return result.success
952
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
953
 
5110 mandeep.dh 954
  def getItemIds(self, itemNumber):
955
    """
956
    Gets item ids for a given item number
4620 amit.gupta 957
 
5110 mandeep.dh 958
    Parameters:
959
     - itemNumber
960
    """
961
    self.send_getItemIds(itemNumber)
962
    return self.recv_getItemIds()
963
 
964
  def send_getItemIds(self, itemNumber):
965
    self._oprot.writeMessageBegin('getItemIds', TMessageType.CALL, self._seqid)
966
    args = getItemIds_args()
967
    args.itemNumber = itemNumber
968
    args.write(self._oprot)
969
    self._oprot.writeMessageEnd()
970
    self._oprot.trans.flush()
971
 
972
  def recv_getItemIds(self, ):
973
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
974
    if mtype == TMessageType.EXCEPTION:
975
      x = TApplicationException()
976
      x.read(self._iprot)
977
      self._iprot.readMessageEnd()
978
      raise x
979
    result = getItemIds_result()
980
    result.read(self._iprot)
981
    self._iprot.readMessageEnd()
982
    if result.success is not None:
983
      return result.success
984
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
985
 
5185 mandeep.dh 986
  def getInventoryItemsFromLastScanType(self, lastScanType):
987
    """
988
    Retrieves all inventory items given a last scan type
5110 mandeep.dh 989
 
5185 mandeep.dh 990
    Parameters:
991
     - lastScanType
992
    """
993
    self.send_getInventoryItemsFromLastScanType(lastScanType)
994
    return self.recv_getInventoryItemsFromLastScanType()
995
 
996
  def send_getInventoryItemsFromLastScanType(self, lastScanType):
997
    self._oprot.writeMessageBegin('getInventoryItemsFromLastScanType', TMessageType.CALL, self._seqid)
998
    args = getInventoryItemsFromLastScanType_args()
999
    args.lastScanType = lastScanType
1000
    args.write(self._oprot)
1001
    self._oprot.writeMessageEnd()
1002
    self._oprot.trans.flush()
1003
 
1004
  def recv_getInventoryItemsFromLastScanType(self, ):
1005
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1006
    if mtype == TMessageType.EXCEPTION:
1007
      x = TApplicationException()
1008
      x.read(self._iprot)
1009
      self._iprot.readMessageEnd()
1010
      raise x
1011
    result = getInventoryItemsFromLastScanType_result()
1012
    result.read(self._iprot)
1013
    self._iprot.readMessageEnd()
1014
    if result.success is not None:
1015
      return result.success
1016
    if result.wex is not None:
1017
      raise result.wex
1018
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemsFromLastScanType failed: unknown result");
1019
 
1020
  def getInventoryItemFromId(self, inventoryItemId):
1021
    """
1022
    Retrieves inventory item given a inventoryItem id
1023
 
1024
    Parameters:
1025
     - inventoryItemId
1026
    """
1027
    self.send_getInventoryItemFromId(inventoryItemId)
1028
    return self.recv_getInventoryItemFromId()
1029
 
1030
  def send_getInventoryItemFromId(self, inventoryItemId):
1031
    self._oprot.writeMessageBegin('getInventoryItemFromId', TMessageType.CALL, self._seqid)
1032
    args = getInventoryItemFromId_args()
1033
    args.inventoryItemId = inventoryItemId
1034
    args.write(self._oprot)
1035
    self._oprot.writeMessageEnd()
1036
    self._oprot.trans.flush()
1037
 
1038
  def recv_getInventoryItemFromId(self, ):
1039
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1040
    if mtype == TMessageType.EXCEPTION:
1041
      x = TApplicationException()
1042
      x.read(self._iprot)
1043
      self._iprot.readMessageEnd()
1044
      raise x
1045
    result = getInventoryItemFromId_result()
1046
    result.read(self._iprot)
1047
    self._iprot.readMessageEnd()
1048
    if result.success is not None:
1049
      return result.success
1050
    if result.wex is not None:
1051
      raise result.wex
1052
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");
1053
 
5372 mandeep.dh 1054
  def getPurchaseScans(self, startDate, endDate):
1055
    """
1056
    Returns the purchase scans grouped by items for Purchase register reconciliation
5185 mandeep.dh 1057
 
5372 mandeep.dh 1058
    Parameters:
1059
     - startDate
1060
     - endDate
1061
    """
1062
    self.send_getPurchaseScans(startDate, endDate)
1063
    return self.recv_getPurchaseScans()
1064
 
1065
  def send_getPurchaseScans(self, startDate, endDate):
1066
    self._oprot.writeMessageBegin('getPurchaseScans', TMessageType.CALL, self._seqid)
1067
    args = getPurchaseScans_args()
1068
    args.startDate = startDate
1069
    args.endDate = endDate
1070
    args.write(self._oprot)
1071
    self._oprot.writeMessageEnd()
1072
    self._oprot.trans.flush()
1073
 
1074
  def recv_getPurchaseScans(self, ):
1075
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1076
    if mtype == TMessageType.EXCEPTION:
1077
      x = TApplicationException()
1078
      x.read(self._iprot)
1079
      self._iprot.readMessageEnd()
1080
      raise x
1081
    result = getPurchaseScans_result()
1082
    result.read(self._iprot)
1083
    self._iprot.readMessageEnd()
1084
    if result.success is not None:
1085
      return result.success
1086
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseScans failed: unknown result");
1087
 
7216 amar.kumar 1088
  def getPurchaseScansByGrnDate(self, startDate, endDate):
1089
    """
1090
    Returns the purchase scans between grn dates grouped by items for Purchase register reconciliation
1091
 
1092
    Parameters:
1093
     - startDate
1094
     - endDate
1095
    """
1096
    self.send_getPurchaseScansByGrnDate(startDate, endDate)
1097
    return self.recv_getPurchaseScansByGrnDate()
1098
 
1099
  def send_getPurchaseScansByGrnDate(self, startDate, endDate):
1100
    self._oprot.writeMessageBegin('getPurchaseScansByGrnDate', TMessageType.CALL, self._seqid)
1101
    args = getPurchaseScansByGrnDate_args()
1102
    args.startDate = startDate
1103
    args.endDate = endDate
1104
    args.write(self._oprot)
1105
    self._oprot.writeMessageEnd()
1106
    self._oprot.trans.flush()
1107
 
1108
  def recv_getPurchaseScansByGrnDate(self, ):
1109
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1110
    if mtype == TMessageType.EXCEPTION:
1111
      x = TApplicationException()
1112
      x.read(self._iprot)
1113
      self._iprot.readMessageEnd()
1114
      raise x
1115
    result = getPurchaseScansByGrnDate_result()
1116
    result.read(self._iprot)
1117
    self._iprot.readMessageEnd()
1118
    if result.success is not None:
1119
      return result.success
1120
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseScansByGrnDate failed: unknown result");
1121
 
10407 amar.kumar 1122
  def getEmptyGrnsByDate(self, startDate, endDate):
1123
    """
1124
    Returns the empty grn-ids between grn dates
1125
 
1126
    Parameters:
1127
     - startDate
1128
     - endDate
1129
    """
1130
    self.send_getEmptyGrnsByDate(startDate, endDate)
1131
    return self.recv_getEmptyGrnsByDate()
1132
 
1133
  def send_getEmptyGrnsByDate(self, startDate, endDate):
1134
    self._oprot.writeMessageBegin('getEmptyGrnsByDate', TMessageType.CALL, self._seqid)
1135
    args = getEmptyGrnsByDate_args()
1136
    args.startDate = startDate
1137
    args.endDate = endDate
1138
    args.write(self._oprot)
1139
    self._oprot.writeMessageEnd()
1140
    self._oprot.trans.flush()
1141
 
1142
  def recv_getEmptyGrnsByDate(self, ):
1143
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1144
    if mtype == TMessageType.EXCEPTION:
1145
      x = TApplicationException()
1146
      x.read(self._iprot)
1147
      self._iprot.readMessageEnd()
1148
      raise x
1149
    result = getEmptyGrnsByDate_result()
1150
    result.read(self._iprot)
1151
    self._iprot.readMessageEnd()
1152
    if result.success is not None:
1153
      return result.success
1154
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmptyGrnsByDate failed: unknown result");
1155
 
5496 mandeep.dh 1156
  def fetchScansPerInvoiceNumber(self, date):
1157
    """
1158
    Returns the invoices and the count of scans against on a given day.
5372 mandeep.dh 1159
 
5496 mandeep.dh 1160
    Parameters:
1161
     - date
1162
    """
1163
    self.send_fetchScansPerInvoiceNumber(date)
1164
    return self.recv_fetchScansPerInvoiceNumber()
1165
 
1166
  def send_fetchScansPerInvoiceNumber(self, date):
1167
    self._oprot.writeMessageBegin('fetchScansPerInvoiceNumber', TMessageType.CALL, self._seqid)
1168
    args = fetchScansPerInvoiceNumber_args()
1169
    args.date = date
1170
    args.write(self._oprot)
1171
    self._oprot.writeMessageEnd()
1172
    self._oprot.trans.flush()
1173
 
1174
  def recv_fetchScansPerInvoiceNumber(self, ):
1175
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1176
    if mtype == TMessageType.EXCEPTION:
1177
      x = TApplicationException()
1178
      x.read(self._iprot)
1179
      self._iprot.readMessageEnd()
1180
      raise x
1181
    result = fetchScansPerInvoiceNumber_result()
1182
    result.read(self._iprot)
1183
    self._iprot.readMessageEnd()
1184
    if result.success is not None:
1185
      return result.success
1186
    raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchScansPerInvoiceNumber failed: unknown result");
1187
 
5620 mandeep.dh 1188
  def getInventoryItemFromOrder(self, orderId):
1189
    """
1190
    Returns inventory item for a given order
5496 mandeep.dh 1191
 
5620 mandeep.dh 1192
    Parameters:
1193
     - orderId
1194
    """
1195
    self.send_getInventoryItemFromOrder(orderId)
1196
    return self.recv_getInventoryItemFromOrder()
1197
 
1198
  def send_getInventoryItemFromOrder(self, orderId):
1199
    self._oprot.writeMessageBegin('getInventoryItemFromOrder', TMessageType.CALL, self._seqid)
1200
    args = getInventoryItemFromOrder_args()
1201
    args.orderId = orderId
1202
    args.write(self._oprot)
1203
    self._oprot.writeMessageEnd()
1204
    self._oprot.trans.flush()
1205
 
1206
  def recv_getInventoryItemFromOrder(self, ):
1207
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1208
    if mtype == TMessageType.EXCEPTION:
1209
      x = TApplicationException()
1210
      x.read(self._iprot)
1211
      self._iprot.readMessageEnd()
1212
      raise x
1213
    result = getInventoryItemFromOrder_result()
1214
    result.read(self._iprot)
1215
    self._iprot.readMessageEnd()
1216
    if result.success is not None:
1217
      return result.success
1218
    if result.we is not None:
1219
      raise result.we
1220
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemFromOrder failed: unknown result");
1221
 
5711 mandeep.dh 1222
  def getInventoryAge(self, ):
1223
    """
1224
    Fetches the stock inventory age week-wise
1225
    """
1226
    self.send_getInventoryAge()
1227
    return self.recv_getInventoryAge()
5620 mandeep.dh 1228
 
5711 mandeep.dh 1229
  def send_getInventoryAge(self, ):
1230
    self._oprot.writeMessageBegin('getInventoryAge', TMessageType.CALL, self._seqid)
1231
    args = getInventoryAge_args()
1232
    args.write(self._oprot)
1233
    self._oprot.writeMessageEnd()
1234
    self._oprot.trans.flush()
1235
 
1236
  def recv_getInventoryAge(self, ):
1237
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1238
    if mtype == TMessageType.EXCEPTION:
1239
      x = TApplicationException()
1240
      x.read(self._iprot)
1241
      self._iprot.readMessageEnd()
1242
      raise x
1243
    result = getInventoryAge_result()
1244
    result.read(self._iprot)
1245
    self._iprot.readMessageEnd()
1246
    if result.success is not None:
1247
      return result.success
1248
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryAge failed: unknown result");
1249
 
6361 rajveer 1250
  def getInventoryScansForItem(self, itemId, fromDate, toDate):
1251
    """
1252
    Fetches the scanRecords for a given item for a given time interval
5711 mandeep.dh 1253
 
6361 rajveer 1254
    Parameters:
1255
     - itemId
1256
     - fromDate
1257
     - toDate
1258
    """
1259
    self.send_getInventoryScansForItem(itemId, fromDate, toDate)
1260
    return self.recv_getInventoryScansForItem()
1261
 
1262
  def send_getInventoryScansForItem(self, itemId, fromDate, toDate):
1263
    self._oprot.writeMessageBegin('getInventoryScansForItem', TMessageType.CALL, self._seqid)
1264
    args = getInventoryScansForItem_args()
1265
    args.itemId = itemId
1266
    args.fromDate = fromDate
1267
    args.toDate = toDate
1268
    args.write(self._oprot)
1269
    self._oprot.writeMessageEnd()
1270
    self._oprot.trans.flush()
1271
 
1272
  def recv_getInventoryScansForItem(self, ):
1273
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1274
    if mtype == TMessageType.EXCEPTION:
1275
      x = TApplicationException()
1276
      x.read(self._iprot)
1277
      self._iprot.readMessageEnd()
1278
      raise x
1279
    result = getInventoryScansForItem_result()
1280
    result.read(self._iprot)
1281
    self._iprot.readMessageEnd()
1282
    if result.success is not None:
1283
      return result.success
1284
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryScansForItem failed: unknown result");
1285
 
1286
  def getScanRecordsForSerialNumber(self, serialNumber):
1287
    """
1288
    Fetches the scanRecords for a given serialNumber for a given time interval
1289
 
1290
    Parameters:
1291
     - serialNumber
1292
    """
1293
    self.send_getScanRecordsForSerialNumber(serialNumber)
1294
    return self.recv_getScanRecordsForSerialNumber()
1295
 
1296
  def send_getScanRecordsForSerialNumber(self, serialNumber):
1297
    self._oprot.writeMessageBegin('getScanRecordsForSerialNumber', TMessageType.CALL, self._seqid)
1298
    args = getScanRecordsForSerialNumber_args()
1299
    args.serialNumber = serialNumber
1300
    args.write(self._oprot)
1301
    self._oprot.writeMessageEnd()
1302
    self._oprot.trans.flush()
1303
 
1304
  def recv_getScanRecordsForSerialNumber(self, ):
1305
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1306
    if mtype == TMessageType.EXCEPTION:
1307
      x = TApplicationException()
1308
      x.read(self._iprot)
1309
      self._iprot.readMessageEnd()
1310
      raise x
1311
    result = getScanRecordsForSerialNumber_result()
1312
    result.read(self._iprot)
1313
    self._iprot.readMessageEnd()
1314
    if result.success is not None:
1315
      return result.success
1316
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScanRecordsForSerialNumber failed: unknown result");
1317
 
7718 amar.kumar 1318
  def scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
6467 amar.kumar 1319
    """
6630 amar.kumar 1320
    Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
6361 rajveer 1321
 
6467 amar.kumar 1322
    Parameters:
1323
     - saleReturnItems
1324
     - vendorId
7718 amar.kumar 1325
     - billingWarehouseId
6467 amar.kumar 1326
    """
7718 amar.kumar 1327
    self.send_scanForPurchaseReturn(saleReturnItems, vendorId, billingWarehouseId)
10864 manish.sha 1328
    return self.recv_scanForPurchaseReturn()
6467 amar.kumar 1329
 
7718 amar.kumar 1330
  def send_scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
6467 amar.kumar 1331
    self._oprot.writeMessageBegin('scanForPurchaseReturn', TMessageType.CALL, self._seqid)
1332
    args = scanForPurchaseReturn_args()
1333
    args.saleReturnItems = saleReturnItems
1334
    args.vendorId = vendorId
7718 amar.kumar 1335
    args.billingWarehouseId = billingWarehouseId
6467 amar.kumar 1336
    args.write(self._oprot)
1337
    self._oprot.writeMessageEnd()
1338
    self._oprot.trans.flush()
1339
 
1340
  def recv_scanForPurchaseReturn(self, ):
1341
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1342
    if mtype == TMessageType.EXCEPTION:
1343
      x = TApplicationException()
1344
      x.read(self._iprot)
1345
      self._iprot.readMessageEnd()
1346
      raise x
1347
    result = scanForPurchaseReturn_result()
1348
    result.read(self._iprot)
1349
    self._iprot.readMessageEnd()
10864 manish.sha 1350
    if result.success is not None:
1351
      return result.success
6467 amar.kumar 1352
    if result.ex is not None:
1353
      raise result.ex
10864 manish.sha 1354
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForPurchaseReturn failed: unknown result");
6467 amar.kumar 1355
 
7718 amar.kumar 1356
  def scanForLostItem(self, lostItems, vendorId, billingWarehouseId):
6630 amar.kumar 1357
    """
1358
    Inserts scans for lost Items and updates lastScanType in InventoryItems
6467 amar.kumar 1359
 
6630 amar.kumar 1360
    Parameters:
1361
     - lostItems
1362
     - vendorId
7718 amar.kumar 1363
     - billingWarehouseId
6630 amar.kumar 1364
    """
7718 amar.kumar 1365
    self.send_scanForLostItem(lostItems, vendorId, billingWarehouseId)
6630 amar.kumar 1366
    self.recv_scanForLostItem()
1367
 
7718 amar.kumar 1368
  def send_scanForLostItem(self, lostItems, vendorId, billingWarehouseId):
6630 amar.kumar 1369
    self._oprot.writeMessageBegin('scanForLostItem', TMessageType.CALL, self._seqid)
1370
    args = scanForLostItem_args()
1371
    args.lostItems = lostItems
1372
    args.vendorId = vendorId
7718 amar.kumar 1373
    args.billingWarehouseId = billingWarehouseId
6630 amar.kumar 1374
    args.write(self._oprot)
1375
    self._oprot.writeMessageEnd()
1376
    self._oprot.trans.flush()
1377
 
1378
  def recv_scanForLostItem(self, ):
1379
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1380
    if mtype == TMessageType.EXCEPTION:
1381
      x = TApplicationException()
1382
      x.read(self._iprot)
1383
      self._iprot.readMessageEnd()
1384
      raise x
1385
    result = scanForLostItem_result()
1386
    result.read(self._iprot)
1387
    self._iprot.readMessageEnd()
1388
    if result.ex is not None:
1389
      raise result.ex
1390
    return
1391
 
7715 vikram.rag 1392
  def getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1393
    """
1394
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
7715 vikram.rag 1395
 
1396
    Parameters:
1397
     - physicalWarehouseId
6630 amar.kumar 1398
    """
7715 vikram.rag 1399
    self.send_getCurrentSerializedInventoryByScans(physicalWarehouseId)
6630 amar.kumar 1400
    return self.recv_getCurrentSerializedInventoryByScans()
1401
 
7715 vikram.rag 1402
  def send_getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1403
    self._oprot.writeMessageBegin('getCurrentSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1404
    args = getCurrentSerializedInventoryByScans_args()
7715 vikram.rag 1405
    args.physicalWarehouseId = physicalWarehouseId
6630 amar.kumar 1406
    args.write(self._oprot)
1407
    self._oprot.writeMessageEnd()
1408
    self._oprot.trans.flush()
1409
 
1410
  def recv_getCurrentSerializedInventoryByScans(self, ):
1411
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1412
    if mtype == TMessageType.EXCEPTION:
1413
      x = TApplicationException()
1414
      x.read(self._iprot)
1415
      self._iprot.readMessageEnd()
1416
      raise x
1417
    result = getCurrentSerializedInventoryByScans_result()
1418
    result.read(self._iprot)
1419
    self._iprot.readMessageEnd()
1420
    if result.success is not None:
1421
      return result.success
1422
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");
1423
 
7715 vikram.rag 1424
  def getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1425
    """
1426
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
7715 vikram.rag 1427
 
1428
    Parameters:
1429
     - physicalWarehouseId
6630 amar.kumar 1430
    """
7715 vikram.rag 1431
    self.send_getCurrentNonSerializedInventoryByScans(physicalWarehouseId)
6630 amar.kumar 1432
    return self.recv_getCurrentNonSerializedInventoryByScans()
1433
 
7715 vikram.rag 1434
  def send_getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1435
    self._oprot.writeMessageBegin('getCurrentNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1436
    args = getCurrentNonSerializedInventoryByScans_args()
7715 vikram.rag 1437
    args.physicalWarehouseId = physicalWarehouseId
6630 amar.kumar 1438
    args.write(self._oprot)
1439
    self._oprot.writeMessageEnd()
1440
    self._oprot.trans.flush()
1441
 
1442
  def recv_getCurrentNonSerializedInventoryByScans(self, ):
1443
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1444
    if mtype == TMessageType.EXCEPTION:
1445
      x = TApplicationException()
1446
      x.read(self._iprot)
1447
      self._iprot.readMessageEnd()
1448
      raise x
1449
    result = getCurrentNonSerializedInventoryByScans_result()
1450
    result.read(self._iprot)
1451
    self._iprot.readMessageEnd()
1452
    if result.success is not None:
1453
      return result.success
1454
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");
1455
 
6762 amar.kumar 1456
  def getHistoricSerializedInventoryByScans(self, date):
1457
    """
1458
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
6630 amar.kumar 1459
 
6762 amar.kumar 1460
    Parameters:
1461
     - date
1462
    """
1463
    self.send_getHistoricSerializedInventoryByScans(date)
1464
    return self.recv_getHistoricSerializedInventoryByScans()
1465
 
1466
  def send_getHistoricSerializedInventoryByScans(self, date):
1467
    self._oprot.writeMessageBegin('getHistoricSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1468
    args = getHistoricSerializedInventoryByScans_args()
1469
    args.date = date
1470
    args.write(self._oprot)
1471
    self._oprot.writeMessageEnd()
1472
    self._oprot.trans.flush()
1473
 
1474
  def recv_getHistoricSerializedInventoryByScans(self, ):
1475
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1476
    if mtype == TMessageType.EXCEPTION:
1477
      x = TApplicationException()
1478
      x.read(self._iprot)
1479
      self._iprot.readMessageEnd()
1480
      raise x
1481
    result = getHistoricSerializedInventoryByScans_result()
1482
    result.read(self._iprot)
1483
    self._iprot.readMessageEnd()
1484
    if result.success is not None:
1485
      return result.success
1486
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricSerializedInventoryByScans failed: unknown result");
1487
 
1488
  def getHistoricNonSerializedInventoryByScans(self, date):
1489
    """
1490
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
1491
 
1492
    Parameters:
1493
     - date
1494
    """
1495
    self.send_getHistoricNonSerializedInventoryByScans(date)
1496
    return self.recv_getHistoricNonSerializedInventoryByScans()
1497
 
1498
  def send_getHistoricNonSerializedInventoryByScans(self, date):
1499
    self._oprot.writeMessageBegin('getHistoricNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1500
    args = getHistoricNonSerializedInventoryByScans_args()
1501
    args.date = date
1502
    args.write(self._oprot)
1503
    self._oprot.writeMessageEnd()
1504
    self._oprot.trans.flush()
1505
 
1506
  def recv_getHistoricNonSerializedInventoryByScans(self, ):
1507
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1508
    if mtype == TMessageType.EXCEPTION:
1509
      x = TApplicationException()
1510
      x.read(self._iprot)
1511
      self._iprot.readMessageEnd()
1512
      raise x
1513
    result = getHistoricNonSerializedInventoryByScans_result()
1514
    result.read(self._iprot)
1515
    self._iprot.readMessageEnd()
1516
    if result.success is not None:
1517
      return result.success
1518
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricNonSerializedInventoryByScans failed: unknown result");
1519
 
10407 amar.kumar 1520
  def getOurHistoricSerializedInventoryByScans(self, date):
1521
    """
1522
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
1523
 
1524
    Parameters:
1525
     - date
1526
    """
1527
    self.send_getOurHistoricSerializedInventoryByScans(date)
1528
    return self.recv_getOurHistoricSerializedInventoryByScans()
1529
 
1530
  def send_getOurHistoricSerializedInventoryByScans(self, date):
1531
    self._oprot.writeMessageBegin('getOurHistoricSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1532
    args = getOurHistoricSerializedInventoryByScans_args()
1533
    args.date = date
1534
    args.write(self._oprot)
1535
    self._oprot.writeMessageEnd()
1536
    self._oprot.trans.flush()
1537
 
1538
  def recv_getOurHistoricSerializedInventoryByScans(self, ):
1539
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1540
    if mtype == TMessageType.EXCEPTION:
1541
      x = TApplicationException()
1542
      x.read(self._iprot)
1543
      self._iprot.readMessageEnd()
1544
      raise x
1545
    result = getOurHistoricSerializedInventoryByScans_result()
1546
    result.read(self._iprot)
1547
    self._iprot.readMessageEnd()
1548
    if result.success is not None:
1549
      return result.success
1550
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurHistoricSerializedInventoryByScans failed: unknown result");
1551
 
1552
  def getOurHistoricNonSerializedInventoryByScans(self, date):
1553
    """
1554
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
1555
 
1556
    Parameters:
1557
     - date
1558
    """
1559
    self.send_getOurHistoricNonSerializedInventoryByScans(date)
1560
    return self.recv_getOurHistoricNonSerializedInventoryByScans()
1561
 
1562
  def send_getOurHistoricNonSerializedInventoryByScans(self, date):
1563
    self._oprot.writeMessageBegin('getOurHistoricNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1564
    args = getOurHistoricNonSerializedInventoryByScans_args()
1565
    args.date = date
1566
    args.write(self._oprot)
1567
    self._oprot.writeMessageEnd()
1568
    self._oprot.trans.flush()
1569
 
1570
  def recv_getOurHistoricNonSerializedInventoryByScans(self, ):
1571
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1572
    if mtype == TMessageType.EXCEPTION:
1573
      x = TApplicationException()
1574
      x.read(self._iprot)
1575
      self._iprot.readMessageEnd()
1576
      raise x
1577
    result = getOurHistoricNonSerializedInventoryByScans_result()
1578
    result.read(self._iprot)
1579
    self._iprot.readMessageEnd()
1580
    if result.success is not None:
1581
      return result.success
1582
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurHistoricNonSerializedInventoryByScans failed: unknown result");
1583
 
7672 rajveer 1584
  def scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):
6762 amar.kumar 1585
    """
6880 amar.kumar 1586
    Insert Purchase/Sale Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 1587
 
1588
    Parameters:
1589
     - itemId
1590
     - serialNumber
1591
     - itemNumber
1592
     - invoiceNumber
1593
     - warehouseId
1594
     - unitPrice
7672 rajveer 1595
     - nlc
6762 amar.kumar 1596
     - orderId
1597
    """
7672 rajveer 1598
    self.send_scanForOursExternalSale(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId)
6762 amar.kumar 1599
    return self.recv_scanForOursExternalSale()
1600
 
7672 rajveer 1601
  def send_scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):
6762 amar.kumar 1602
    self._oprot.writeMessageBegin('scanForOursExternalSale', TMessageType.CALL, self._seqid)
1603
    args = scanForOursExternalSale_args()
1604
    args.itemId = itemId
1605
    args.serialNumber = serialNumber
1606
    args.itemNumber = itemNumber
1607
    args.invoiceNumber = invoiceNumber
1608
    args.warehouseId = warehouseId
1609
    args.unitPrice = unitPrice
7672 rajveer 1610
    args.nlc = nlc
6762 amar.kumar 1611
    args.orderId = orderId
1612
    args.write(self._oprot)
1613
    self._oprot.writeMessageEnd()
1614
    self._oprot.trans.flush()
1615
 
1616
  def recv_scanForOursExternalSale(self, ):
1617
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1618
    if mtype == TMessageType.EXCEPTION:
1619
      x = TApplicationException()
1620
      x.read(self._iprot)
1621
      self._iprot.readMessageEnd()
1622
      raise x
1623
    result = scanForOursExternalSale_result()
1624
    result.read(self._iprot)
1625
    self._iprot.readMessageEnd()
1626
    if result.success is not None:
1627
      return result.success
1628
    if result.ex is not None:
1629
      raise result.ex
1630
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOursExternalSale failed: unknown result");
1631
 
1632
  def scanForOursExternalSaleReturn(self, orderId, unitPrice):
1633
    """
6880 amar.kumar 1634
    Insert Purchase_Ret/Sale_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 1635
 
1636
    Parameters:
1637
     - orderId
1638
     - unitPrice
1639
    """
1640
    self.send_scanForOursExternalSaleReturn(orderId, unitPrice)
1641
    self.recv_scanForOursExternalSaleReturn()
1642
 
1643
  def send_scanForOursExternalSaleReturn(self, orderId, unitPrice):
1644
    self._oprot.writeMessageBegin('scanForOursExternalSaleReturn', TMessageType.CALL, self._seqid)
1645
    args = scanForOursExternalSaleReturn_args()
1646
    args.orderId = orderId
1647
    args.unitPrice = unitPrice
1648
    args.write(self._oprot)
1649
    self._oprot.writeMessageEnd()
1650
    self._oprot.trans.flush()
1651
 
1652
  def recv_scanForOursExternalSaleReturn(self, ):
1653
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1654
    if mtype == TMessageType.EXCEPTION:
1655
      x = TApplicationException()
1656
      x.read(self._iprot)
1657
      self._iprot.readMessageEnd()
1658
      raise x
1659
    result = scanForOursExternalSaleReturn_result()
1660
    result.read(self._iprot)
1661
    self._iprot.readMessageEnd()
7410 amar.kumar 1662
    if result.ex is not None:
1663
      raise result.ex
6762 amar.kumar 1664
    return
1665
 
6880 amar.kumar 1666
  def getMovementNonSerializedInventoryByScans(self, startDate, endDate):
1667
    """
10407 amar.kumar 1668
    This returns movement for each non serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)
1669
 
6880 amar.kumar 1670
    Parameters:
1671
     - startDate
1672
     - endDate
1673
    """
1674
    self.send_getMovementNonSerializedInventoryByScans(startDate, endDate)
1675
    return self.recv_getMovementNonSerializedInventoryByScans()
6762 amar.kumar 1676
 
6880 amar.kumar 1677
  def send_getMovementNonSerializedInventoryByScans(self, startDate, endDate):
1678
    self._oprot.writeMessageBegin('getMovementNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1679
    args = getMovementNonSerializedInventoryByScans_args()
1680
    args.startDate = startDate
1681
    args.endDate = endDate
1682
    args.write(self._oprot)
1683
    self._oprot.writeMessageEnd()
1684
    self._oprot.trans.flush()
1685
 
1686
  def recv_getMovementNonSerializedInventoryByScans(self, ):
1687
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1688
    if mtype == TMessageType.EXCEPTION:
1689
      x = TApplicationException()
1690
      x.read(self._iprot)
1691
      self._iprot.readMessageEnd()
1692
      raise x
1693
    result = getMovementNonSerializedInventoryByScans_result()
1694
    result.read(self._iprot)
1695
    self._iprot.readMessageEnd()
1696
    if result.success is not None:
1697
      return result.success
1698
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMovementNonSerializedInventoryByScans failed: unknown result");
1699
 
1700
  def getMovementSerializedInventoryByScans(self, startDate, endDate):
1701
    """
10407 amar.kumar 1702
    This returns movement for each serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)
1703
 
6880 amar.kumar 1704
    Parameters:
1705
     - startDate
1706
     - endDate
1707
    """
1708
    self.send_getMovementSerializedInventoryByScans(startDate, endDate)
1709
    return self.recv_getMovementSerializedInventoryByScans()
1710
 
1711
  def send_getMovementSerializedInventoryByScans(self, startDate, endDate):
1712
    self._oprot.writeMessageBegin('getMovementSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1713
    args = getMovementSerializedInventoryByScans_args()
1714
    args.startDate = startDate
1715
    args.endDate = endDate
1716
    args.write(self._oprot)
1717
    self._oprot.writeMessageEnd()
1718
    self._oprot.trans.flush()
1719
 
1720
  def recv_getMovementSerializedInventoryByScans(self, ):
1721
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1722
    if mtype == TMessageType.EXCEPTION:
1723
      x = TApplicationException()
1724
      x.read(self._iprot)
1725
      self._iprot.readMessageEnd()
1726
      raise x
1727
    result = getMovementSerializedInventoryByScans_result()
1728
    result.read(self._iprot)
1729
    self._iprot.readMessageEnd()
1730
    if result.success is not None:
1731
      return result.success
1732
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMovementSerializedInventoryByScans failed: unknown result");
1733
 
7216 amar.kumar 1734
  def getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):
1735
    """
10407 amar.kumar 1736
    This returns movement for each serialized item in the specified window.(Doesn't include Amazon w/h)
1737
 
7216 amar.kumar 1738
    Parameters:
1739
     - startDate
1740
     - endDate
1741
    """
1742
    self.send_getCompleteMovementSerializedInventoryByScans(startDate, endDate)
1743
    return self.recv_getCompleteMovementSerializedInventoryByScans()
1744
 
1745
  def send_getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):
1746
    self._oprot.writeMessageBegin('getCompleteMovementSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1747
    args = getCompleteMovementSerializedInventoryByScans_args()
1748
    args.startDate = startDate
1749
    args.endDate = endDate
1750
    args.write(self._oprot)
1751
    self._oprot.writeMessageEnd()
1752
    self._oprot.trans.flush()
1753
 
1754
  def recv_getCompleteMovementSerializedInventoryByScans(self, ):
1755
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1756
    if mtype == TMessageType.EXCEPTION:
1757
      x = TApplicationException()
1758
      x.read(self._iprot)
1759
      self._iprot.readMessageEnd()
1760
      raise x
1761
    result = getCompleteMovementSerializedInventoryByScans_result()
1762
    result.read(self._iprot)
1763
    self._iprot.readMessageEnd()
1764
    if result.success is not None:
1765
      return result.success
1766
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementSerializedInventoryByScans failed: unknown result");
1767
 
1768
  def getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):
1769
    """
10407 amar.kumar 1770
    This returns movement for each non serialized item in the specified window.(Doesn't include Amazon w/h)
1771
 
7216 amar.kumar 1772
    Parameters:
1773
     - startDate
1774
     - endDate
1775
    """
1776
    self.send_getCompleteMovementNonSerializedInventoryByScans(startDate, endDate)
1777
    return self.recv_getCompleteMovementNonSerializedInventoryByScans()
1778
 
1779
  def send_getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):
1780
    self._oprot.writeMessageBegin('getCompleteMovementNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1781
    args = getCompleteMovementNonSerializedInventoryByScans_args()
1782
    args.startDate = startDate
1783
    args.endDate = endDate
1784
    args.write(self._oprot)
1785
    self._oprot.writeMessageEnd()
1786
    self._oprot.trans.flush()
1787
 
1788
  def recv_getCompleteMovementNonSerializedInventoryByScans(self, ):
1789
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1790
    if mtype == TMessageType.EXCEPTION:
1791
      x = TApplicationException()
1792
      x.read(self._iprot)
1793
      self._iprot.readMessageEnd()
1794
      raise x
1795
    result = getCompleteMovementNonSerializedInventoryByScans_result()
1796
    result.read(self._iprot)
1797
    self._iprot.readMessageEnd()
1798
    if result.success is not None:
1799
      return result.success
1800
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementNonSerializedInventoryByScans failed: unknown result");
1801
 
7190 amar.kumar 1802
  def scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):
1803
    """
1804
    Parameters:
1805
     - orderId
1806
     - freebieItemId
1807
     - freebieWarehouseId
1808
     - scanType
1809
    """
1810
    self.send_scanfreebie(orderId, freebieItemId, freebieWarehouseId, scanType)
1811
    return self.recv_scanfreebie()
6880 amar.kumar 1812
 
7190 amar.kumar 1813
  def send_scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):
1814
    self._oprot.writeMessageBegin('scanfreebie', TMessageType.CALL, self._seqid)
1815
    args = scanfreebie_args()
1816
    args.orderId = orderId
1817
    args.freebieItemId = freebieItemId
1818
    args.freebieWarehouseId = freebieWarehouseId
1819
    args.scanType = scanType
1820
    args.write(self._oprot)
1821
    self._oprot.writeMessageEnd()
1822
    self._oprot.trans.flush()
1823
 
1824
  def recv_scanfreebie(self, ):
1825
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1826
    if mtype == TMessageType.EXCEPTION:
1827
      x = TApplicationException()
1828
      x.read(self._iprot)
1829
      self._iprot.readMessageEnd()
1830
      raise x
1831
    result = scanfreebie_result()
1832
    result.read(self._iprot)
1833
    self._iprot.readMessageEnd()
1834
    if result.success is not None:
1835
      return result.success
1836
    if result.wex is not None:
1837
      raise result.wex
1838
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanfreebie failed: unknown result");
1839
 
7199 amar.kumar 1840
  def reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):
1841
    """
1842
    Parameters:
1843
     - oldOrderId
1844
     - newOrderId
1845
     - freebieItemId
1846
     - scanType
1847
    """
1848
    self.send_reshipfreebie(oldOrderId, newOrderId, freebieItemId, scanType)
1849
    self.recv_reshipfreebie()
7190 amar.kumar 1850
 
7199 amar.kumar 1851
  def send_reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):
1852
    self._oprot.writeMessageBegin('reshipfreebie', TMessageType.CALL, self._seqid)
1853
    args = reshipfreebie_args()
1854
    args.oldOrderId = oldOrderId
1855
    args.newOrderId = newOrderId
1856
    args.freebieItemId = freebieItemId
1857
    args.scanType = scanType
1858
    args.write(self._oprot)
1859
    self._oprot.writeMessageEnd()
1860
    self._oprot.trans.flush()
1861
 
1862
  def recv_reshipfreebie(self, ):
1863
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1864
    if mtype == TMessageType.EXCEPTION:
1865
      x = TApplicationException()
1866
      x.read(self._iprot)
1867
      self._iprot.readMessageEnd()
1868
      raise x
1869
    result = reshipfreebie_result()
1870
    result.read(self._iprot)
1871
    self._iprot.readMessageEnd()
1872
    if result.wex is not None:
1873
      raise result.wex
1874
    return
1875
 
7410 amar.kumar 1876
  def isItemTransferAllowed(self, warehouseId, transferWarehouseId):
1877
    """
1878
    Parameters:
1879
     - warehouseId
1880
     - transferWarehouseId
1881
    """
1882
    self.send_isItemTransferAllowed(warehouseId, transferWarehouseId)
1883
    return self.recv_isItemTransferAllowed()
7199 amar.kumar 1884
 
7410 amar.kumar 1885
  def send_isItemTransferAllowed(self, warehouseId, transferWarehouseId):
1886
    self._oprot.writeMessageBegin('isItemTransferAllowed', TMessageType.CALL, self._seqid)
1887
    args = isItemTransferAllowed_args()
1888
    args.warehouseId = warehouseId
1889
    args.transferWarehouseId = transferWarehouseId
1890
    args.write(self._oprot)
1891
    self._oprot.writeMessageEnd()
1892
    self._oprot.trans.flush()
1893
 
1894
  def recv_isItemTransferAllowed(self, ):
1895
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1896
    if mtype == TMessageType.EXCEPTION:
1897
      x = TApplicationException()
1898
      x.read(self._iprot)
1899
      self._iprot.readMessageEnd()
1900
      raise x
1901
    result = isItemTransferAllowed_result()
1902
    result.read(self._iprot)
1903
    self._iprot.readMessageEnd()
1904
    if result.success is not None:
1905
      return result.success
1906
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isItemTransferAllowed failed: unknown result");
1907
 
1908
  def createTransferLot(self, originWarehouseId, destWarehouseId):
1909
    """
1910
    Parameters:
1911
     - originWarehouseId
1912
     - destWarehouseId
1913
    """
1914
    self.send_createTransferLot(originWarehouseId, destWarehouseId)
1915
    return self.recv_createTransferLot()
1916
 
1917
  def send_createTransferLot(self, originWarehouseId, destWarehouseId):
1918
    self._oprot.writeMessageBegin('createTransferLot', TMessageType.CALL, self._seqid)
1919
    args = createTransferLot_args()
1920
    args.originWarehouseId = originWarehouseId
1921
    args.destWarehouseId = destWarehouseId
1922
    args.write(self._oprot)
1923
    self._oprot.writeMessageEnd()
1924
    self._oprot.trans.flush()
1925
 
1926
  def recv_createTransferLot(self, ):
1927
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1928
    if mtype == TMessageType.EXCEPTION:
1929
      x = TApplicationException()
1930
      x.read(self._iprot)
1931
      self._iprot.readMessageEnd()
1932
      raise x
1933
    result = createTransferLot_result()
1934
    result.read(self._iprot)
1935
    self._iprot.readMessageEnd()
1936
    if result.success is not None:
1937
      return result.success
1938
    if result.wex is not None:
1939
      raise result.wex
1940
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createTransferLot failed: unknown result");
1941
 
1942
  def getTransferLot(self, transferLotId):
1943
    """
1944
    Parameters:
1945
     - transferLotId
1946
    """
1947
    self.send_getTransferLot(transferLotId)
1948
    return self.recv_getTransferLot()
1949
 
1950
  def send_getTransferLot(self, transferLotId):
1951
    self._oprot.writeMessageBegin('getTransferLot', TMessageType.CALL, self._seqid)
1952
    args = getTransferLot_args()
1953
    args.transferLotId = transferLotId
1954
    args.write(self._oprot)
1955
    self._oprot.writeMessageEnd()
1956
    self._oprot.trans.flush()
1957
 
1958
  def recv_getTransferLot(self, ):
1959
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1960
    if mtype == TMessageType.EXCEPTION:
1961
      x = TApplicationException()
1962
      x.read(self._iprot)
1963
      self._iprot.readMessageEnd()
1964
      raise x
1965
    result = getTransferLot_result()
1966
    result.read(self._iprot)
1967
    self._iprot.readMessageEnd()
1968
    if result.success is not None:
1969
      return result.success
1970
    if result.wex is not None:
1971
      raise result.wex
1972
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLot failed: unknown result");
1973
 
1974
  def markTransferLotAsReceived(self, id, remoteTransferRefNumber):
1975
    """
1976
    Parameters:
1977
     - id
1978
     - remoteTransferRefNumber
1979
    """
1980
    self.send_markTransferLotAsReceived(id, remoteTransferRefNumber)
1981
    self.recv_markTransferLotAsReceived()
1982
 
1983
  def send_markTransferLotAsReceived(self, id, remoteTransferRefNumber):
1984
    self._oprot.writeMessageBegin('markTransferLotAsReceived', TMessageType.CALL, self._seqid)
1985
    args = markTransferLotAsReceived_args()
1986
    args.id = id
1987
    args.remoteTransferRefNumber = remoteTransferRefNumber
1988
    args.write(self._oprot)
1989
    self._oprot.writeMessageEnd()
1990
    self._oprot.trans.flush()
1991
 
1992
  def recv_markTransferLotAsReceived(self, ):
1993
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1994
    if mtype == TMessageType.EXCEPTION:
1995
      x = TApplicationException()
1996
      x.read(self._iprot)
1997
      self._iprot.readMessageEnd()
1998
      raise x
1999
    result = markTransferLotAsReceived_result()
2000
    result.read(self._iprot)
2001
    self._iprot.readMessageEnd()
2002
    if result.wex is not None:
2003
      raise result.wex
2004
    return
2005
 
2006
  def getTransferLotsByDate(self, fromDate, toDate):
2007
    """
2008
    Parameters:
2009
     - fromDate
2010
     - toDate
2011
    """
2012
    self.send_getTransferLotsByDate(fromDate, toDate)
2013
    return self.recv_getTransferLotsByDate()
2014
 
2015
  def send_getTransferLotsByDate(self, fromDate, toDate):
2016
    self._oprot.writeMessageBegin('getTransferLotsByDate', TMessageType.CALL, self._seqid)
2017
    args = getTransferLotsByDate_args()
2018
    args.fromDate = fromDate
2019
    args.toDate = toDate
2020
    args.write(self._oprot)
2021
    self._oprot.writeMessageEnd()
2022
    self._oprot.trans.flush()
2023
 
2024
  def recv_getTransferLotsByDate(self, ):
2025
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2026
    if mtype == TMessageType.EXCEPTION:
2027
      x = TApplicationException()
2028
      x.read(self._iprot)
2029
      self._iprot.readMessageEnd()
2030
      raise x
2031
    result = getTransferLotsByDate_result()
2032
    result.read(self._iprot)
2033
    self._iprot.readMessageEnd()
2034
    if result.success is not None:
2035
      return result.success
2036
    if result.wex is not None:
2037
      raise result.wex
2038
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLotsByDate failed: unknown result");
2039
 
2040
  def getAllowedDestinationWarehousesForTransfer(self, warehouseId):
2041
    """
2042
    Parameters:
2043
     - warehouseId
2044
    """
2045
    self.send_getAllowedDestinationWarehousesForTransfer(warehouseId)
2046
    return self.recv_getAllowedDestinationWarehousesForTransfer()
2047
 
2048
  def send_getAllowedDestinationWarehousesForTransfer(self, warehouseId):
2049
    self._oprot.writeMessageBegin('getAllowedDestinationWarehousesForTransfer', TMessageType.CALL, self._seqid)
2050
    args = getAllowedDestinationWarehousesForTransfer_args()
2051
    args.warehouseId = warehouseId
2052
    args.write(self._oprot)
2053
    self._oprot.writeMessageEnd()
2054
    self._oprot.trans.flush()
2055
 
2056
  def recv_getAllowedDestinationWarehousesForTransfer(self, ):
2057
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2058
    if mtype == TMessageType.EXCEPTION:
2059
      x = TApplicationException()
2060
      x.read(self._iprot)
2061
      self._iprot.readMessageEnd()
2062
      raise x
2063
    result = getAllowedDestinationWarehousesForTransfer_result()
2064
    result.read(self._iprot)
2065
    self._iprot.readMessageEnd()
2066
    if result.success is not None:
2067
      return result.success
2068
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllowedDestinationWarehousesForTransfer failed: unknown result");
2069
 
2070
  def getItemsInTransferLot(self, transferLotId):
2071
    """
2072
    Parameters:
2073
     - transferLotId
2074
    """
2075
    self.send_getItemsInTransferLot(transferLotId)
2076
    return self.recv_getItemsInTransferLot()
2077
 
2078
  def send_getItemsInTransferLot(self, transferLotId):
2079
    self._oprot.writeMessageBegin('getItemsInTransferLot', TMessageType.CALL, self._seqid)
2080
    args = getItemsInTransferLot_args()
2081
    args.transferLotId = transferLotId
2082
    args.write(self._oprot)
2083
    self._oprot.writeMessageEnd()
2084
    self._oprot.trans.flush()
2085
 
2086
  def recv_getItemsInTransferLot(self, ):
2087
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2088
    if mtype == TMessageType.EXCEPTION:
2089
      x = TApplicationException()
2090
      x.read(self._iprot)
2091
      self._iprot.readMessageEnd()
2092
      raise x
2093
    result = getItemsInTransferLot_result()
2094
    result.read(self._iprot)
2095
    self._iprot.readMessageEnd()
2096
    if result.success is not None:
2097
      return result.success
2098
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsInTransferLot failed: unknown result");
2099
 
2100
  def markItemsAsReceivedForTransferLot(self, id):
2101
    """
2102
    Parameters:
2103
     - id
2104
    """
2105
    self.send_markItemsAsReceivedForTransferLot(id)
2106
    self.recv_markItemsAsReceivedForTransferLot()
2107
 
2108
  def send_markItemsAsReceivedForTransferLot(self, id):
2109
    self._oprot.writeMessageBegin('markItemsAsReceivedForTransferLot', TMessageType.CALL, self._seqid)
2110
    args = markItemsAsReceivedForTransferLot_args()
2111
    args.id = id
2112
    args.write(self._oprot)
2113
    self._oprot.writeMessageEnd()
2114
    self._oprot.trans.flush()
2115
 
2116
  def recv_markItemsAsReceivedForTransferLot(self, ):
2117
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2118
    if mtype == TMessageType.EXCEPTION:
2119
      x = TApplicationException()
2120
      x.read(self._iprot)
2121
      self._iprot.readMessageEnd()
2122
      raise x
2123
    result = markItemsAsReceivedForTransferLot_result()
2124
    result.read(self._iprot)
2125
    self._iprot.readMessageEnd()
2126
    if result.wex is not None:
2127
      raise result.wex
2128
    return
2129
 
2130
  def updateTransferLotAfterItemReceive(self, id):
2131
    """
2132
    Parameters:
2133
     - id
2134
    """
2135
    self.send_updateTransferLotAfterItemReceive(id)
2136
    return self.recv_updateTransferLotAfterItemReceive()
2137
 
2138
  def send_updateTransferLotAfterItemReceive(self, id):
2139
    self._oprot.writeMessageBegin('updateTransferLotAfterItemReceive', TMessageType.CALL, self._seqid)
2140
    args = updateTransferLotAfterItemReceive_args()
2141
    args.id = id
2142
    args.write(self._oprot)
2143
    self._oprot.writeMessageEnd()
2144
    self._oprot.trans.flush()
2145
 
2146
  def recv_updateTransferLotAfterItemReceive(self, ):
2147
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2148
    if mtype == TMessageType.EXCEPTION:
2149
      x = TApplicationException()
2150
      x.read(self._iprot)
2151
      self._iprot.readMessageEnd()
2152
      raise x
2153
    result = updateTransferLotAfterItemReceive_result()
2154
    result.read(self._iprot)
2155
    self._iprot.readMessageEnd()
2156
    if result.success is not None:
2157
      return result.success
2158
    if result.wex is not None:
2159
      raise result.wex
2160
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTransferLotAfterItemReceive failed: unknown result");
2161
 
7459 amar.kumar 2162
  def scanForTransferOut(self, inventoryItems, type, transferLotId):
7410 amar.kumar 2163
    """
2164
    Parameters:
2165
     - inventoryItems
2166
     - type
2167
     - transferLotId
2168
    """
7459 amar.kumar 2169
    self.send_scanForTransferOut(inventoryItems, type, transferLotId)
2170
    self.recv_scanForTransferOut()
7410 amar.kumar 2171
 
7459 amar.kumar 2172
  def send_scanForTransferOut(self, inventoryItems, type, transferLotId):
2173
    self._oprot.writeMessageBegin('scanForTransferOut', TMessageType.CALL, self._seqid)
2174
    args = scanForTransferOut_args()
7410 amar.kumar 2175
    args.inventoryItems = inventoryItems
2176
    args.type = type
2177
    args.transferLotId = transferLotId
2178
    args.write(self._oprot)
2179
    self._oprot.writeMessageEnd()
2180
    self._oprot.trans.flush()
2181
 
7459 amar.kumar 2182
  def recv_scanForTransferOut(self, ):
7410 amar.kumar 2183
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2184
    if mtype == TMessageType.EXCEPTION:
2185
      x = TApplicationException()
2186
      x.read(self._iprot)
2187
      self._iprot.readMessageEnd()
2188
      raise x
7459 amar.kumar 2189
    result = scanForTransferOut_result()
7410 amar.kumar 2190
    result.read(self._iprot)
2191
    self._iprot.readMessageEnd()
2192
    if result.wex is not None:
2193
      raise result.wex
2194
    return
2195
 
7459 amar.kumar 2196
  def scanForTransferIn(self, inventoryItems, type, transferLotId):
2197
    """
2198
    Parameters:
2199
     - inventoryItems
2200
     - type
2201
     - transferLotId
2202
    """
2203
    self.send_scanForTransferIn(inventoryItems, type, transferLotId)
2204
    self.recv_scanForTransferIn()
7410 amar.kumar 2205
 
7459 amar.kumar 2206
  def send_scanForTransferIn(self, inventoryItems, type, transferLotId):
2207
    self._oprot.writeMessageBegin('scanForTransferIn', TMessageType.CALL, self._seqid)
2208
    args = scanForTransferIn_args()
2209
    args.inventoryItems = inventoryItems
2210
    args.type = type
2211
    args.transferLotId = transferLotId
2212
    args.write(self._oprot)
2213
    self._oprot.writeMessageEnd()
2214
    self._oprot.trans.flush()
2215
 
2216
  def recv_scanForTransferIn(self, ):
2217
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2218
    if mtype == TMessageType.EXCEPTION:
2219
      x = TApplicationException()
2220
      x.read(self._iprot)
2221
      self._iprot.readMessageEnd()
2222
      raise x
2223
    result = scanForTransferIn_result()
2224
    result.read(self._iprot)
2225
    self._iprot.readMessageEnd()
2226
    if result.wex is not None:
2227
      raise result.wex
2228
    return
2229
 
2230
  def scanForOursThirdPartyReceive(self, inventoryItems, id):
2231
    """
2232
    Parameters:
2233
     - inventoryItems
2234
     - id
2235
    """
2236
    self.send_scanForOursThirdPartyReceive(inventoryItems, id)
2237
    self.recv_scanForOursThirdPartyReceive()
2238
 
2239
  def send_scanForOursThirdPartyReceive(self, inventoryItems, id):
2240
    self._oprot.writeMessageBegin('scanForOursThirdPartyReceive', TMessageType.CALL, self._seqid)
2241
    args = scanForOursThirdPartyReceive_args()
2242
    args.inventoryItems = inventoryItems
2243
    args.id = id
2244
    args.write(self._oprot)
2245
    self._oprot.writeMessageEnd()
2246
    self._oprot.trans.flush()
2247
 
2248
  def recv_scanForOursThirdPartyReceive(self, ):
2249
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2250
    if mtype == TMessageType.EXCEPTION:
2251
      x = TApplicationException()
2252
      x.read(self._iprot)
2253
      self._iprot.readMessageEnd()
2254
      raise x
2255
    result = scanForOursThirdPartyReceive_result()
2256
    result.read(self._iprot)
2257
    self._iprot.readMessageEnd()
2258
    if result.wex is not None:
2259
      raise result.wex
2260
    return
2261
 
7574 amar.kumar 2262
  def getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
2263
    """
2264
    Parameters:
2265
     - itemId
2266
     - physicalWarehouseId
2267
    """
2268
    self.send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(itemId, physicalWarehouseId)
2269
    return self.recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse()
7459 amar.kumar 2270
 
7574 amar.kumar 2271
  def send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
2272
    self._oprot.writeMessageBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse', TMessageType.CALL, self._seqid)
2273
    args = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args()
2274
    args.itemId = itemId
2275
    args.physicalWarehouseId = physicalWarehouseId
2276
    args.write(self._oprot)
2277
    self._oprot.writeMessageEnd()
2278
    self._oprot.trans.flush()
2279
 
2280
  def recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, ):
2281
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2282
    if mtype == TMessageType.EXCEPTION:
2283
      x = TApplicationException()
2284
      x.read(self._iprot)
2285
      self._iprot.readMessageEnd()
2286
      raise x
2287
    result = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result()
2288
    result.read(self._iprot)
2289
    self._iprot.readMessageEnd()
2290
    if result.success is not None:
2291
      return result.success
2292
    if result.wex is not None:
2293
      raise result.wex
2294
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse failed: unknown result");
2295
 
7672 rajveer 2296
  def getInTransitInventory(self, originWarehouseId):
2297
    """
2298
    Parameters:
2299
     - originWarehouseId
2300
    """
2301
    self.send_getInTransitInventory(originWarehouseId)
2302
    return self.recv_getInTransitInventory()
7574 amar.kumar 2303
 
7672 rajveer 2304
  def send_getInTransitInventory(self, originWarehouseId):
2305
    self._oprot.writeMessageBegin('getInTransitInventory', TMessageType.CALL, self._seqid)
2306
    args = getInTransitInventory_args()
2307
    args.originWarehouseId = originWarehouseId
2308
    args.write(self._oprot)
2309
    self._oprot.writeMessageEnd()
2310
    self._oprot.trans.flush()
2311
 
2312
  def recv_getInTransitInventory(self, ):
2313
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2314
    if mtype == TMessageType.EXCEPTION:
2315
      x = TApplicationException()
2316
      x.read(self._iprot)
2317
      self._iprot.readMessageEnd()
2318
      raise x
2319
    result = getInTransitInventory_result()
2320
    result.read(self._iprot)
2321
    self._iprot.readMessageEnd()
2322
    if result.success is not None:
2323
      return result.success
2324
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInTransitInventory failed: unknown result");
2325
 
7968 amar.kumar 2326
  def isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
2327
    """
2328
    Parameters:
2329
     - itemId
2330
     - serialNumber
2331
     - warehouseId
2332
    """
2333
    self.send_isItemAvailableForSale(itemId, serialNumber, warehouseId)
2334
    return self.recv_isItemAvailableForSale()
7672 rajveer 2335
 
7968 amar.kumar 2336
  def send_isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
2337
    self._oprot.writeMessageBegin('isItemAvailableForSale', TMessageType.CALL, self._seqid)
2338
    args = isItemAvailableForSale_args()
2339
    args.itemId = itemId
2340
    args.serialNumber = serialNumber
2341
    args.warehouseId = warehouseId
2342
    args.write(self._oprot)
2343
    self._oprot.writeMessageEnd()
2344
    self._oprot.trans.flush()
2345
 
2346
  def recv_isItemAvailableForSale(self, ):
2347
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2348
    if mtype == TMessageType.EXCEPTION:
2349
      x = TApplicationException()
2350
      x.read(self._iprot)
2351
      self._iprot.readMessageEnd()
2352
      raise x
2353
    result = isItemAvailableForSale_result()
2354
    result.read(self._iprot)
2355
    self._iprot.readMessageEnd()
2356
    if result.success is not None:
2357
      return result.success
2358
    if result.wex is not None:
2359
      raise result.wex
2360
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isItemAvailableForSale failed: unknown result");
2361
 
2362
  def getHistoricBadInventoryByScans(self, date):
2363
    """
2364
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
2365
 
2366
    Parameters:
2367
     - date
2368
    """
2369
    self.send_getHistoricBadInventoryByScans(date)
2370
    return self.recv_getHistoricBadInventoryByScans()
2371
 
2372
  def send_getHistoricBadInventoryByScans(self, date):
2373
    self._oprot.writeMessageBegin('getHistoricBadInventoryByScans', TMessageType.CALL, self._seqid)
2374
    args = getHistoricBadInventoryByScans_args()
2375
    args.date = date
2376
    args.write(self._oprot)
2377
    self._oprot.writeMessageEnd()
2378
    self._oprot.trans.flush()
2379
 
2380
  def recv_getHistoricBadInventoryByScans(self, ):
2381
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2382
    if mtype == TMessageType.EXCEPTION:
2383
      x = TApplicationException()
2384
      x.read(self._iprot)
2385
      self._iprot.readMessageEnd()
2386
      raise x
2387
    result = getHistoricBadInventoryByScans_result()
2388
    result.read(self._iprot)
2389
    self._iprot.readMessageEnd()
2390
    if result.success is not None:
2391
      return result.success
2392
    if result.wex is not None:
2393
      raise result.wex
2394
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricBadInventoryByScans failed: unknown result");
2395
 
8717 amar.kumar 2396
  def scanForBadSale(self, serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
8565 amar.kumar 2397
    """
2398
    Parameters:
8717 amar.kumar 2399
     - serialNumber
2400
     - itemNumber
2401
     - itemId
8565 amar.kumar 2402
     - orderId
8717 amar.kumar 2403
     - fulfilmentWarehouseId
8565 amar.kumar 2404
     - quantity
2405
     - billingWarehouseId
2406
    """
8717 amar.kumar 2407
    self.send_scanForBadSale(serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId)
2408
    return self.recv_scanForBadSale()
7968 amar.kumar 2409
 
8717 amar.kumar 2410
  def send_scanForBadSale(self, serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
8565 amar.kumar 2411
    self._oprot.writeMessageBegin('scanForBadSale', TMessageType.CALL, self._seqid)
2412
    args = scanForBadSale_args()
8717 amar.kumar 2413
    args.serialNumber = serialNumber
2414
    args.itemNumber = itemNumber
2415
    args.itemId = itemId
8565 amar.kumar 2416
    args.orderId = orderId
8717 amar.kumar 2417
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 2418
    args.quantity = quantity
2419
    args.billingWarehouseId = billingWarehouseId
2420
    args.write(self._oprot)
2421
    self._oprot.writeMessageEnd()
2422
    self._oprot.trans.flush()
2423
 
2424
  def recv_scanForBadSale(self, ):
2425
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2426
    if mtype == TMessageType.EXCEPTION:
2427
      x = TApplicationException()
2428
      x.read(self._iprot)
2429
      self._iprot.readMessageEnd()
2430
      raise x
2431
    result = scanForBadSale_result()
2432
    result.read(self._iprot)
2433
    self._iprot.readMessageEnd()
8717 amar.kumar 2434
    if result.success is not None:
2435
      return result.success
2436
    if result.wex is not None:
2437
      raise result.wex
2438
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForBadSale failed: unknown result");
8565 amar.kumar 2439
 
10120 manish.sha 2440
  def getTransferLotItemsForMarkReceive(self, transferLotId, scanType):
2441
    """
2442
    Parameters:
2443
     - transferLotId
2444
     - scanType
2445
    """
2446
    self.send_getTransferLotItemsForMarkReceive(transferLotId, scanType)
2447
    return self.recv_getTransferLotItemsForMarkReceive()
8565 amar.kumar 2448
 
10120 manish.sha 2449
  def send_getTransferLotItemsForMarkReceive(self, transferLotId, scanType):
2450
    self._oprot.writeMessageBegin('getTransferLotItemsForMarkReceive', TMessageType.CALL, self._seqid)
2451
    args = getTransferLotItemsForMarkReceive_args()
2452
    args.transferLotId = transferLotId
2453
    args.scanType = scanType
2454
    args.write(self._oprot)
2455
    self._oprot.writeMessageEnd()
2456
    self._oprot.trans.flush()
2457
 
2458
  def recv_getTransferLotItemsForMarkReceive(self, ):
2459
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2460
    if mtype == TMessageType.EXCEPTION:
2461
      x = TApplicationException()
2462
      x.read(self._iprot)
2463
      self._iprot.readMessageEnd()
2464
      raise x
2465
    result = getTransferLotItemsForMarkReceive_result()
2466
    result.read(self._iprot)
2467
    self._iprot.readMessageEnd()
2468
    if result.success is not None:
2469
      return result.success
2470
    if result.wex is not None:
2471
      raise result.wex
2472
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLotItemsForMarkReceive failed: unknown result");
2473
 
2474
  def markItemsAsReceivedForTransferLotPartial(self, inventoryItems, transferLotId):
2475
    """
2476
    Parameters:
2477
     - inventoryItems
2478
     - transferLotId
2479
    """
2480
    self.send_markItemsAsReceivedForTransferLotPartial(inventoryItems, transferLotId)
2481
    self.recv_markItemsAsReceivedForTransferLotPartial()
2482
 
2483
  def send_markItemsAsReceivedForTransferLotPartial(self, inventoryItems, transferLotId):
2484
    self._oprot.writeMessageBegin('markItemsAsReceivedForTransferLotPartial', TMessageType.CALL, self._seqid)
2485
    args = markItemsAsReceivedForTransferLotPartial_args()
2486
    args.inventoryItems = inventoryItems
2487
    args.transferLotId = transferLotId
2488
    args.write(self._oprot)
2489
    self._oprot.writeMessageEnd()
2490
    self._oprot.trans.flush()
2491
 
2492
  def recv_markItemsAsReceivedForTransferLotPartial(self, ):
2493
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2494
    if mtype == TMessageType.EXCEPTION:
2495
      x = TApplicationException()
2496
      x.read(self._iprot)
2497
      self._iprot.readMessageEnd()
2498
      raise x
2499
    result = markItemsAsReceivedForTransferLotPartial_result()
2500
    result.read(self._iprot)
2501
    self._iprot.readMessageEnd()
2502
    if result.wex is not None:
2503
      raise result.wex
2504
    return
2505
 
2506
  def markTransferLotAsReceivedPartial(self, id, remoteTransferRefNumber):
2507
    """
2508
    Parameters:
2509
     - id
2510
     - remoteTransferRefNumber
2511
    """
2512
    self.send_markTransferLotAsReceivedPartial(id, remoteTransferRefNumber)
2513
    self.recv_markTransferLotAsReceivedPartial()
2514
 
2515
  def send_markTransferLotAsReceivedPartial(self, id, remoteTransferRefNumber):
2516
    self._oprot.writeMessageBegin('markTransferLotAsReceivedPartial', TMessageType.CALL, self._seqid)
2517
    args = markTransferLotAsReceivedPartial_args()
2518
    args.id = id
2519
    args.remoteTransferRefNumber = remoteTransferRefNumber
2520
    args.write(self._oprot)
2521
    self._oprot.writeMessageEnd()
2522
    self._oprot.trans.flush()
2523
 
2524
  def recv_markTransferLotAsReceivedPartial(self, ):
2525
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2526
    if mtype == TMessageType.EXCEPTION:
2527
      x = TApplicationException()
2528
      x.read(self._iprot)
2529
      self._iprot.readMessageEnd()
2530
      raise x
2531
    result = markTransferLotAsReceivedPartial_result()
2532
    result.read(self._iprot)
2533
    self._iprot.readMessageEnd()
2534
    if result.wex is not None:
2535
      raise result.wex
2536
    return
2537
 
10690 manish.sha 2538
  def getInventoryItemScannedInForPO(self, itemId, purchaseIds):
2539
    """
2540
    Parameters:
2541
     - itemId
2542
     - purchaseIds
2543
    """
2544
    self.send_getInventoryItemScannedInForPO(itemId, purchaseIds)
2545
    return self.recv_getInventoryItemScannedInForPO()
10120 manish.sha 2546
 
10690 manish.sha 2547
  def send_getInventoryItemScannedInForPO(self, itemId, purchaseIds):
2548
    self._oprot.writeMessageBegin('getInventoryItemScannedInForPO', TMessageType.CALL, self._seqid)
2549
    args = getInventoryItemScannedInForPO_args()
2550
    args.itemId = itemId
2551
    args.purchaseIds = purchaseIds
2552
    args.write(self._oprot)
2553
    self._oprot.writeMessageEnd()
2554
    self._oprot.trans.flush()
2555
 
2556
  def recv_getInventoryItemScannedInForPO(self, ):
2557
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2558
    if mtype == TMessageType.EXCEPTION:
2559
      x = TApplicationException()
2560
      x.read(self._iprot)
2561
      self._iprot.readMessageEnd()
2562
      raise x
2563
    result = getInventoryItemScannedInForPO_result()
2564
    result.read(self._iprot)
2565
    self._iprot.readMessageEnd()
2566
    if result.success is not None:
2567
      return result.success
2568
    if result.wex is not None:
2569
      raise result.wex
2570
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemScannedInForPO failed: unknown result");
2571
 
2572
  def getAmazonTransferredSkuDetails(self, itemIds):
2573
    """
2574
    Parameters:
2575
     - itemIds
2576
    """
2577
    self.send_getAmazonTransferredSkuDetails(itemIds)
2578
    return self.recv_getAmazonTransferredSkuDetails()
2579
 
2580
  def send_getAmazonTransferredSkuDetails(self, itemIds):
2581
    self._oprot.writeMessageBegin('getAmazonTransferredSkuDetails', TMessageType.CALL, self._seqid)
2582
    args = getAmazonTransferredSkuDetails_args()
2583
    args.itemIds = itemIds
2584
    args.write(self._oprot)
2585
    self._oprot.writeMessageEnd()
2586
    self._oprot.trans.flush()
2587
 
2588
  def recv_getAmazonTransferredSkuDetails(self, ):
2589
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2590
    if mtype == TMessageType.EXCEPTION:
2591
      x = TApplicationException()
2592
      x.read(self._iprot)
2593
      self._iprot.readMessageEnd()
2594
      raise x
2595
    result = getAmazonTransferredSkuDetails_result()
2596
    result.read(self._iprot)
2597
    self._iprot.readMessageEnd()
2598
    if result.success is not None:
2599
      return result.success
2600
    if result.wex is not None:
2601
      raise result.wex
2602
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonTransferredSkuDetails failed: unknown result");
2603
 
2604
  def getScansforPurchase(self, purchaseId, scanType):
2605
    """
2606
    Parameters:
2607
     - purchaseId
2608
     - scanType
2609
    """
2610
    self.send_getScansforPurchase(purchaseId, scanType)
2611
    return self.recv_getScansforPurchase()
2612
 
2613
  def send_getScansforPurchase(self, purchaseId, scanType):
2614
    self._oprot.writeMessageBegin('getScansforPurchase', TMessageType.CALL, self._seqid)
2615
    args = getScansforPurchase_args()
2616
    args.purchaseId = purchaseId
2617
    args.scanType = scanType
2618
    args.write(self._oprot)
2619
    self._oprot.writeMessageEnd()
2620
    self._oprot.trans.flush()
2621
 
2622
  def recv_getScansforPurchase(self, ):
2623
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2624
    if mtype == TMessageType.EXCEPTION:
2625
      x = TApplicationException()
2626
      x.read(self._iprot)
2627
      self._iprot.readMessageEnd()
2628
      raise x
2629
    result = getScansforPurchase_result()
2630
    result.read(self._iprot)
2631
    self._iprot.readMessageEnd()
2632
    if result.success is not None:
2633
      return result.success
2634
    if result.wex is not None:
2635
      raise result.wex
2636
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScansforPurchase failed: unknown result");
2637
 
10864 manish.sha 2638
  def getCurrentBadQuantityForItem(self, itemId, currentWarehouseId, physicalWarehouseId):
2639
    """
2640
    Parameters:
2641
     - itemId
2642
     - currentWarehouseId
2643
     - physicalWarehouseId
2644
    """
2645
    self.send_getCurrentBadQuantityForItem(itemId, currentWarehouseId, physicalWarehouseId)
2646
    return self.recv_getCurrentBadQuantityForItem()
10690 manish.sha 2647
 
10864 manish.sha 2648
  def send_getCurrentBadQuantityForItem(self, itemId, currentWarehouseId, physicalWarehouseId):
2649
    self._oprot.writeMessageBegin('getCurrentBadQuantityForItem', TMessageType.CALL, self._seqid)
2650
    args = getCurrentBadQuantityForItem_args()
2651
    args.itemId = itemId
2652
    args.currentWarehouseId = currentWarehouseId
2653
    args.physicalWarehouseId = physicalWarehouseId
2654
    args.write(self._oprot)
2655
    self._oprot.writeMessageEnd()
2656
    self._oprot.trans.flush()
2657
 
2658
  def recv_getCurrentBadQuantityForItem(self, ):
2659
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2660
    if mtype == TMessageType.EXCEPTION:
2661
      x = TApplicationException()
2662
      x.read(self._iprot)
2663
      self._iprot.readMessageEnd()
2664
      raise x
2665
    result = getCurrentBadQuantityForItem_result()
2666
    result.read(self._iprot)
2667
    self._iprot.readMessageEnd()
2668
    if result.success is not None:
2669
      return result.success
2670
    if result.wex is not None:
2671
      raise result.wex
2672
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentBadQuantityForItem failed: unknown result");
2673
 
2674
  def scanForBadPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
2675
    """
2676
    Parameters:
2677
     - saleReturnItems
2678
     - vendorId
2679
     - billingWarehouseId
2680
    """
2681
    self.send_scanForBadPurchaseReturn(saleReturnItems, vendorId, billingWarehouseId)
2682
    return self.recv_scanForBadPurchaseReturn()
2683
 
2684
  def send_scanForBadPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
2685
    self._oprot.writeMessageBegin('scanForBadPurchaseReturn', TMessageType.CALL, self._seqid)
2686
    args = scanForBadPurchaseReturn_args()
2687
    args.saleReturnItems = saleReturnItems
2688
    args.vendorId = vendorId
2689
    args.billingWarehouseId = billingWarehouseId
2690
    args.write(self._oprot)
2691
    self._oprot.writeMessageEnd()
2692
    self._oprot.trans.flush()
2693
 
2694
  def recv_scanForBadPurchaseReturn(self, ):
2695
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2696
    if mtype == TMessageType.EXCEPTION:
2697
      x = TApplicationException()
2698
      x.read(self._iprot)
2699
      self._iprot.readMessageEnd()
2700
      raise x
2701
    result = scanForBadPurchaseReturn_result()
2702
    result.read(self._iprot)
2703
    self._iprot.readMessageEnd()
2704
    if result.success is not None:
2705
      return result.success
2706
    if result.ex is not None:
2707
      raise result.ex
2708
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForBadPurchaseReturn failed: unknown result");
2709
 
13504 manish.sha 2710
  def getItemsInPurchaseReturn(self, purchaseReturnId, type, returnTime):
10864 manish.sha 2711
    """
2712
    Parameters:
2713
     - purchaseReturnId
11751 manish.sha 2714
     - type
13504 manish.sha 2715
     - returnTime
10864 manish.sha 2716
    """
13504 manish.sha 2717
    self.send_getItemsInPurchaseReturn(purchaseReturnId, type, returnTime)
10864 manish.sha 2718
    return self.recv_getItemsInPurchaseReturn()
2719
 
13504 manish.sha 2720
  def send_getItemsInPurchaseReturn(self, purchaseReturnId, type, returnTime):
10864 manish.sha 2721
    self._oprot.writeMessageBegin('getItemsInPurchaseReturn', TMessageType.CALL, self._seqid)
2722
    args = getItemsInPurchaseReturn_args()
2723
    args.purchaseReturnId = purchaseReturnId
11751 manish.sha 2724
    args.type = type
13504 manish.sha 2725
    args.returnTime = returnTime
10864 manish.sha 2726
    args.write(self._oprot)
2727
    self._oprot.writeMessageEnd()
2728
    self._oprot.trans.flush()
2729
 
2730
  def recv_getItemsInPurchaseReturn(self, ):
2731
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2732
    if mtype == TMessageType.EXCEPTION:
2733
      x = TApplicationException()
2734
      x.read(self._iprot)
2735
      self._iprot.readMessageEnd()
2736
      raise x
2737
    result = getItemsInPurchaseReturn_result()
2738
    result.read(self._iprot)
2739
    self._iprot.readMessageEnd()
2740
    if result.success is not None:
2741
      return result.success
2742
    if result.ex is not None:
2743
      raise result.ex
2744
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsInPurchaseReturn failed: unknown result");
2745
 
10886 manish.sha 2746
  def getScansForInventoryItem(self, inventoryItemId, type):
2747
    """
2748
    Parameters:
2749
     - inventoryItemId
2750
     - type
2751
    """
2752
    self.send_getScansForInventoryItem(inventoryItemId, type)
2753
    return self.recv_getScansForInventoryItem()
10864 manish.sha 2754
 
10886 manish.sha 2755
  def send_getScansForInventoryItem(self, inventoryItemId, type):
2756
    self._oprot.writeMessageBegin('getScansForInventoryItem', TMessageType.CALL, self._seqid)
2757
    args = getScansForInventoryItem_args()
2758
    args.inventoryItemId = inventoryItemId
2759
    args.type = type
2760
    args.write(self._oprot)
2761
    self._oprot.writeMessageEnd()
2762
    self._oprot.trans.flush()
2763
 
2764
  def recv_getScansForInventoryItem(self, ):
2765
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2766
    if mtype == TMessageType.EXCEPTION:
2767
      x = TApplicationException()
2768
      x.read(self._iprot)
2769
      self._iprot.readMessageEnd()
2770
      raise x
2771
    result = getScansForInventoryItem_result()
2772
    result.read(self._iprot)
2773
    self._iprot.readMessageEnd()
2774
    if result.success is not None:
2775
      return result.success
2776
    if result.ex is not None:
2777
      raise result.ex
2778
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScansForInventoryItem failed: unknown result");
2779
 
12531 manish.sha 2780
  def checkGrnImeiStatus(self, imeiNos):
2781
    """
2782
    Parameters:
2783
     - imeiNos
2784
    """
2785
    self.send_checkGrnImeiStatus(imeiNos)
2786
    return self.recv_checkGrnImeiStatus()
10886 manish.sha 2787
 
12531 manish.sha 2788
  def send_checkGrnImeiStatus(self, imeiNos):
2789
    self._oprot.writeMessageBegin('checkGrnImeiStatus', TMessageType.CALL, self._seqid)
2790
    args = checkGrnImeiStatus_args()
2791
    args.imeiNos = imeiNos
2792
    args.write(self._oprot)
2793
    self._oprot.writeMessageEnd()
2794
    self._oprot.trans.flush()
2795
 
2796
  def recv_checkGrnImeiStatus(self, ):
2797
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2798
    if mtype == TMessageType.EXCEPTION:
2799
      x = TApplicationException()
2800
      x.read(self._iprot)
2801
      self._iprot.readMessageEnd()
2802
      raise x
2803
    result = checkGrnImeiStatus_result()
2804
    result.read(self._iprot)
2805
    self._iprot.readMessageEnd()
2806
    if result.success is not None:
2807
      return result.success
2808
    if result.ex is not None:
2809
      raise result.ex
2810
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkGrnImeiStatus failed: unknown result");
2811
 
12800 manish.sha 2812
  def getInventoryAgeConsideredItems(self, itemId):
2813
    """
2814
    Parameters:
2815
     - itemId
2816
    """
2817
    self.send_getInventoryAgeConsideredItems(itemId)
2818
    return self.recv_getInventoryAgeConsideredItems()
12531 manish.sha 2819
 
12800 manish.sha 2820
  def send_getInventoryAgeConsideredItems(self, itemId):
2821
    self._oprot.writeMessageBegin('getInventoryAgeConsideredItems', TMessageType.CALL, self._seqid)
2822
    args = getInventoryAgeConsideredItems_args()
2823
    args.itemId = itemId
2824
    args.write(self._oprot)
2825
    self._oprot.writeMessageEnd()
2826
    self._oprot.trans.flush()
2827
 
2828
  def recv_getInventoryAgeConsideredItems(self, ):
2829
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2830
    if mtype == TMessageType.EXCEPTION:
2831
      x = TApplicationException()
2832
      x.read(self._iprot)
2833
      self._iprot.readMessageEnd()
2834
      raise x
2835
    result = getInventoryAgeConsideredItems_result()
2836
    result.read(self._iprot)
2837
    self._iprot.readMessageEnd()
2838
    if result.success is not None:
2839
      return result.success
2840
    if result.ex is not None:
2841
      raise result.ex
2842
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryAgeConsideredItems failed: unknown result");
2843
 
13529 manish.sha 2844
  def getCompleteMovementForThirdPartyWarehouse(self, startDate, endDate):
2845
    """
2846
    Parameters:
2847
     - startDate
2848
     - endDate
2849
    """
2850
    self.send_getCompleteMovementForThirdPartyWarehouse(startDate, endDate)
2851
    return self.recv_getCompleteMovementForThirdPartyWarehouse()
12800 manish.sha 2852
 
13529 manish.sha 2853
  def send_getCompleteMovementForThirdPartyWarehouse(self, startDate, endDate):
2854
    self._oprot.writeMessageBegin('getCompleteMovementForThirdPartyWarehouse', TMessageType.CALL, self._seqid)
2855
    args = getCompleteMovementForThirdPartyWarehouse_args()
2856
    args.startDate = startDate
2857
    args.endDate = endDate
2858
    args.write(self._oprot)
2859
    self._oprot.writeMessageEnd()
2860
    self._oprot.trans.flush()
2861
 
2862
  def recv_getCompleteMovementForThirdPartyWarehouse(self, ):
2863
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2864
    if mtype == TMessageType.EXCEPTION:
2865
      x = TApplicationException()
2866
      x.read(self._iprot)
2867
      self._iprot.readMessageEnd()
2868
      raise x
2869
    result = getCompleteMovementForThirdPartyWarehouse_result()
2870
    result.read(self._iprot)
2871
    self._iprot.readMessageEnd()
2872
    if result.success is not None:
2873
      return result.success
2874
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementForThirdPartyWarehouse failed: unknown result");
2875
 
14491 manish.sha 2876
  def getAllDoaOutInventoryItems(self, ):
2877
    self.send_getAllDoaOutInventoryItems()
2878
    return self.recv_getAllDoaOutInventoryItems()
13529 manish.sha 2879
 
14491 manish.sha 2880
  def send_getAllDoaOutInventoryItems(self, ):
2881
    self._oprot.writeMessageBegin('getAllDoaOutInventoryItems', TMessageType.CALL, self._seqid)
2882
    args = getAllDoaOutInventoryItems_args()
2883
    args.write(self._oprot)
2884
    self._oprot.writeMessageEnd()
2885
    self._oprot.trans.flush()
2886
 
2887
  def recv_getAllDoaOutInventoryItems(self, ):
2888
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2889
    if mtype == TMessageType.EXCEPTION:
2890
      x = TApplicationException()
2891
      x.read(self._iprot)
2892
      self._iprot.readMessageEnd()
2893
      raise x
2894
    result = getAllDoaOutInventoryItems_result()
2895
    result.read(self._iprot)
2896
    self._iprot.readMessageEnd()
2897
    if result.success is not None:
2898
      return result.success
2899
    if result.ex is not None:
2900
      raise result.ex
2901
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllDoaOutInventoryItems failed: unknown result");
2902
 
15045 manish.sha 2903
  def getAllUnCompletedStockShipments(self, source):
2904
    """
2905
    Parameters:
2906
     - source
2907
    """
2908
    self.send_getAllUnCompletedStockShipments(source)
2909
    return self.recv_getAllUnCompletedStockShipments()
14491 manish.sha 2910
 
15045 manish.sha 2911
  def send_getAllUnCompletedStockShipments(self, source):
2912
    self._oprot.writeMessageBegin('getAllUnCompletedStockShipments', TMessageType.CALL, self._seqid)
2913
    args = getAllUnCompletedStockShipments_args()
2914
    args.source = source
2915
    args.write(self._oprot)
2916
    self._oprot.writeMessageEnd()
2917
    self._oprot.trans.flush()
2918
 
2919
  def recv_getAllUnCompletedStockShipments(self, ):
2920
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2921
    if mtype == TMessageType.EXCEPTION:
2922
      x = TApplicationException()
2923
      x.read(self._iprot)
2924
      self._iprot.readMessageEnd()
2925
      raise x
2926
    result = getAllUnCompletedStockShipments_result()
2927
    result.read(self._iprot)
2928
    self._iprot.readMessageEnd()
2929
    if result.success is not None:
2930
      return result.success
2931
    if result.ex is not None:
2932
      raise result.ex
2933
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUnCompletedStockShipments failed: unknown result");
2934
 
2935
  def getRemovalStockShipmentReferenceById(self, id):
2936
    """
2937
    Parameters:
2938
     - id
2939
    """
2940
    self.send_getRemovalStockShipmentReferenceById(id)
2941
    return self.recv_getRemovalStockShipmentReferenceById()
2942
 
2943
  def send_getRemovalStockShipmentReferenceById(self, id):
2944
    self._oprot.writeMessageBegin('getRemovalStockShipmentReferenceById', TMessageType.CALL, self._seqid)
2945
    args = getRemovalStockShipmentReferenceById_args()
2946
    args.id = id
2947
    args.write(self._oprot)
2948
    self._oprot.writeMessageEnd()
2949
    self._oprot.trans.flush()
2950
 
2951
  def recv_getRemovalStockShipmentReferenceById(self, ):
2952
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2953
    if mtype == TMessageType.EXCEPTION:
2954
      x = TApplicationException()
2955
      x.read(self._iprot)
2956
      self._iprot.readMessageEnd()
2957
      raise x
2958
    result = getRemovalStockShipmentReferenceById_result()
2959
    result.read(self._iprot)
2960
    self._iprot.readMessageEnd()
2961
    if result.success is not None:
2962
      return result.success
2963
    if result.ex is not None:
2964
      raise result.ex
2965
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRemovalStockShipmentReferenceById failed: unknown result");
2966
 
2967
  def createRemovalStockShipmentReference(self, removalStockShipmentReference):
2968
    """
2969
    Parameters:
2970
     - removalStockShipmentReference
2971
    """
2972
    self.send_createRemovalStockShipmentReference(removalStockShipmentReference)
2973
    return self.recv_createRemovalStockShipmentReference()
2974
 
2975
  def send_createRemovalStockShipmentReference(self, removalStockShipmentReference):
2976
    self._oprot.writeMessageBegin('createRemovalStockShipmentReference', TMessageType.CALL, self._seqid)
2977
    args = createRemovalStockShipmentReference_args()
2978
    args.removalStockShipmentReference = removalStockShipmentReference
2979
    args.write(self._oprot)
2980
    self._oprot.writeMessageEnd()
2981
    self._oprot.trans.flush()
2982
 
2983
  def recv_createRemovalStockShipmentReference(self, ):
2984
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2985
    if mtype == TMessageType.EXCEPTION:
2986
      x = TApplicationException()
2987
      x.read(self._iprot)
2988
      self._iprot.readMessageEnd()
2989
      raise x
2990
    result = createRemovalStockShipmentReference_result()
2991
    result.read(self._iprot)
2992
    self._iprot.readMessageEnd()
2993
    if result.success is not None:
2994
      return result.success
2995
    if result.ex is not None:
2996
      raise result.ex
2997
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createRemovalStockShipmentReference failed: unknown result");
2998
 
2999
  def updateShipmentReferenceTransferLot(self, transferLotId, shipmentReferenceId):
3000
    """
3001
    Parameters:
3002
     - transferLotId
3003
     - shipmentReferenceId
3004
    """
3005
    self.send_updateShipmentReferenceTransferLot(transferLotId, shipmentReferenceId)
3006
    self.recv_updateShipmentReferenceTransferLot()
3007
 
3008
  def send_updateShipmentReferenceTransferLot(self, transferLotId, shipmentReferenceId):
3009
    self._oprot.writeMessageBegin('updateShipmentReferenceTransferLot', TMessageType.CALL, self._seqid)
3010
    args = updateShipmentReferenceTransferLot_args()
3011
    args.transferLotId = transferLotId
3012
    args.shipmentReferenceId = shipmentReferenceId
3013
    args.write(self._oprot)
3014
    self._oprot.writeMessageEnd()
3015
    self._oprot.trans.flush()
3016
 
3017
  def recv_updateShipmentReferenceTransferLot(self, ):
3018
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3019
    if mtype == TMessageType.EXCEPTION:
3020
      x = TApplicationException()
3021
      x.read(self._iprot)
3022
      self._iprot.readMessageEnd()
3023
      raise x
3024
    result = updateShipmentReferenceTransferLot_result()
3025
    result.read(self._iprot)
3026
    self._iprot.readMessageEnd()
3027
    if result.ex is not None:
3028
      raise result.ex
3029
    return
3030
 
3031
 
3376 rajveer 3032
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2821 chandransh 3033
  def __init__(self, handler):
3376 rajveer 3034
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
4501 mandeep.dh 3035
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
5361 mandeep.dh 3036
    self._processMap["getNonSeralizedInventoryItem"] = Processor.process_getNonSeralizedInventoryItem
4501 mandeep.dh 3037
    self._processMap["scan"] = Processor.process_scan
10489 amar.kumar 3038
    self._processMap["genericScan"] = Processor.process_genericScan
4501 mandeep.dh 3039
    self._processMap["scanSerializedItemForOrder"] = Processor.process_scanSerializedItemForOrder
3040
    self._processMap["scanForOrder"] = Processor.process_scanForOrder
3041
    self._processMap["createItemNumberMapping"] = Processor.process_createItemNumberMapping
4620 amit.gupta 3042
    self._processMap["getItemNumbers"] = Processor.process_getItemNumbers
5110 mandeep.dh 3043
    self._processMap["getItemIds"] = Processor.process_getItemIds
5185 mandeep.dh 3044
    self._processMap["getInventoryItemsFromLastScanType"] = Processor.process_getInventoryItemsFromLastScanType
3045
    self._processMap["getInventoryItemFromId"] = Processor.process_getInventoryItemFromId
5372 mandeep.dh 3046
    self._processMap["getPurchaseScans"] = Processor.process_getPurchaseScans
7216 amar.kumar 3047
    self._processMap["getPurchaseScansByGrnDate"] = Processor.process_getPurchaseScansByGrnDate
10407 amar.kumar 3048
    self._processMap["getEmptyGrnsByDate"] = Processor.process_getEmptyGrnsByDate
5496 mandeep.dh 3049
    self._processMap["fetchScansPerInvoiceNumber"] = Processor.process_fetchScansPerInvoiceNumber
5620 mandeep.dh 3050
    self._processMap["getInventoryItemFromOrder"] = Processor.process_getInventoryItemFromOrder
5711 mandeep.dh 3051
    self._processMap["getInventoryAge"] = Processor.process_getInventoryAge
6361 rajveer 3052
    self._processMap["getInventoryScansForItem"] = Processor.process_getInventoryScansForItem
3053
    self._processMap["getScanRecordsForSerialNumber"] = Processor.process_getScanRecordsForSerialNumber
6467 amar.kumar 3054
    self._processMap["scanForPurchaseReturn"] = Processor.process_scanForPurchaseReturn
6630 amar.kumar 3055
    self._processMap["scanForLostItem"] = Processor.process_scanForLostItem
3056
    self._processMap["getCurrentSerializedInventoryByScans"] = Processor.process_getCurrentSerializedInventoryByScans
3057
    self._processMap["getCurrentNonSerializedInventoryByScans"] = Processor.process_getCurrentNonSerializedInventoryByScans
6762 amar.kumar 3058
    self._processMap["getHistoricSerializedInventoryByScans"] = Processor.process_getHistoricSerializedInventoryByScans
3059
    self._processMap["getHistoricNonSerializedInventoryByScans"] = Processor.process_getHistoricNonSerializedInventoryByScans
10407 amar.kumar 3060
    self._processMap["getOurHistoricSerializedInventoryByScans"] = Processor.process_getOurHistoricSerializedInventoryByScans
3061
    self._processMap["getOurHistoricNonSerializedInventoryByScans"] = Processor.process_getOurHistoricNonSerializedInventoryByScans
6762 amar.kumar 3062
    self._processMap["scanForOursExternalSale"] = Processor.process_scanForOursExternalSale
3063
    self._processMap["scanForOursExternalSaleReturn"] = Processor.process_scanForOursExternalSaleReturn
6880 amar.kumar 3064
    self._processMap["getMovementNonSerializedInventoryByScans"] = Processor.process_getMovementNonSerializedInventoryByScans
3065
    self._processMap["getMovementSerializedInventoryByScans"] = Processor.process_getMovementSerializedInventoryByScans
7216 amar.kumar 3066
    self._processMap["getCompleteMovementSerializedInventoryByScans"] = Processor.process_getCompleteMovementSerializedInventoryByScans
3067
    self._processMap["getCompleteMovementNonSerializedInventoryByScans"] = Processor.process_getCompleteMovementNonSerializedInventoryByScans
7190 amar.kumar 3068
    self._processMap["scanfreebie"] = Processor.process_scanfreebie
7199 amar.kumar 3069
    self._processMap["reshipfreebie"] = Processor.process_reshipfreebie
7410 amar.kumar 3070
    self._processMap["isItemTransferAllowed"] = Processor.process_isItemTransferAllowed
3071
    self._processMap["createTransferLot"] = Processor.process_createTransferLot
3072
    self._processMap["getTransferLot"] = Processor.process_getTransferLot
3073
    self._processMap["markTransferLotAsReceived"] = Processor.process_markTransferLotAsReceived
3074
    self._processMap["getTransferLotsByDate"] = Processor.process_getTransferLotsByDate
3075
    self._processMap["getAllowedDestinationWarehousesForTransfer"] = Processor.process_getAllowedDestinationWarehousesForTransfer
3076
    self._processMap["getItemsInTransferLot"] = Processor.process_getItemsInTransferLot
3077
    self._processMap["markItemsAsReceivedForTransferLot"] = Processor.process_markItemsAsReceivedForTransferLot
3078
    self._processMap["updateTransferLotAfterItemReceive"] = Processor.process_updateTransferLotAfterItemReceive
7459 amar.kumar 3079
    self._processMap["scanForTransferOut"] = Processor.process_scanForTransferOut
3080
    self._processMap["scanForTransferIn"] = Processor.process_scanForTransferIn
3081
    self._processMap["scanForOursThirdPartyReceive"] = Processor.process_scanForOursThirdPartyReceive
7574 amar.kumar 3082
    self._processMap["getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse"] = Processor.process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse
7672 rajveer 3083
    self._processMap["getInTransitInventory"] = Processor.process_getInTransitInventory
7968 amar.kumar 3084
    self._processMap["isItemAvailableForSale"] = Processor.process_isItemAvailableForSale
3085
    self._processMap["getHistoricBadInventoryByScans"] = Processor.process_getHistoricBadInventoryByScans
8565 amar.kumar 3086
    self._processMap["scanForBadSale"] = Processor.process_scanForBadSale
10120 manish.sha 3087
    self._processMap["getTransferLotItemsForMarkReceive"] = Processor.process_getTransferLotItemsForMarkReceive
3088
    self._processMap["markItemsAsReceivedForTransferLotPartial"] = Processor.process_markItemsAsReceivedForTransferLotPartial
3089
    self._processMap["markTransferLotAsReceivedPartial"] = Processor.process_markTransferLotAsReceivedPartial
10690 manish.sha 3090
    self._processMap["getInventoryItemScannedInForPO"] = Processor.process_getInventoryItemScannedInForPO
3091
    self._processMap["getAmazonTransferredSkuDetails"] = Processor.process_getAmazonTransferredSkuDetails
3092
    self._processMap["getScansforPurchase"] = Processor.process_getScansforPurchase
10864 manish.sha 3093
    self._processMap["getCurrentBadQuantityForItem"] = Processor.process_getCurrentBadQuantityForItem
3094
    self._processMap["scanForBadPurchaseReturn"] = Processor.process_scanForBadPurchaseReturn
3095
    self._processMap["getItemsInPurchaseReturn"] = Processor.process_getItemsInPurchaseReturn
10886 manish.sha 3096
    self._processMap["getScansForInventoryItem"] = Processor.process_getScansForInventoryItem
12531 manish.sha 3097
    self._processMap["checkGrnImeiStatus"] = Processor.process_checkGrnImeiStatus
12800 manish.sha 3098
    self._processMap["getInventoryAgeConsideredItems"] = Processor.process_getInventoryAgeConsideredItems
13529 manish.sha 3099
    self._processMap["getCompleteMovementForThirdPartyWarehouse"] = Processor.process_getCompleteMovementForThirdPartyWarehouse
14491 manish.sha 3100
    self._processMap["getAllDoaOutInventoryItems"] = Processor.process_getAllDoaOutInventoryItems
15045 manish.sha 3101
    self._processMap["getAllUnCompletedStockShipments"] = Processor.process_getAllUnCompletedStockShipments
3102
    self._processMap["getRemovalStockShipmentReferenceById"] = Processor.process_getRemovalStockShipmentReferenceById
3103
    self._processMap["createRemovalStockShipmentReference"] = Processor.process_createRemovalStockShipmentReference
3104
    self._processMap["updateShipmentReferenceTransferLot"] = Processor.process_updateShipmentReferenceTransferLot
2821 chandransh 3105
 
3106
  def process(self, iprot, oprot):
3107
    (name, type, seqid) = iprot.readMessageBegin()
3108
    if name not in self._processMap:
3109
      iprot.skip(TType.STRUCT)
3110
      iprot.readMessageEnd()
3111
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3112
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3113
      x.write(oprot)
3114
      oprot.writeMessageEnd()
3115
      oprot.trans.flush()
3116
      return
3117
    else:
3118
      self._processMap[name](self, seqid, iprot, oprot)
3119
    return True
3120
 
4501 mandeep.dh 3121
  def process_getInventoryItem(self, seqid, iprot, oprot):
3122
    args = getInventoryItem_args()
2832 chandransh 3123
    args.read(iprot)
3124
    iprot.readMessageEnd()
4501 mandeep.dh 3125
    result = getInventoryItem_result()
4541 mandeep.dh 3126
    try:
3127
      result.success = self._handler.getInventoryItem(args.serialNumber)
3128
    except WarehouseServiceException, wex:
3129
      result.wex = wex
4501 mandeep.dh 3130
    oprot.writeMessageBegin("getInventoryItem", TMessageType.REPLY, seqid)
2832 chandransh 3131
    result.write(oprot)
3132
    oprot.writeMessageEnd()
3133
    oprot.trans.flush()
3134
 
5361 mandeep.dh 3135
  def process_getNonSeralizedInventoryItem(self, seqid, iprot, oprot):
3136
    args = getNonSeralizedInventoryItem_args()
2821 chandransh 3137
    args.read(iprot)
3138
    iprot.readMessageEnd()
5361 mandeep.dh 3139
    result = getNonSeralizedInventoryItem_result()
3140
    try:
8565 amar.kumar 3141
      result.success = self._handler.getNonSeralizedInventoryItem(args.itemNumber, args.itemId, args.fulfilmentWarehouseId, args.billingWarehouseId)
5361 mandeep.dh 3142
    except WarehouseServiceException, wex:
3143
      result.wex = wex
3144
    oprot.writeMessageBegin("getNonSeralizedInventoryItem", TMessageType.REPLY, seqid)
2821 chandransh 3145
    result.write(oprot)
3146
    oprot.writeMessageEnd()
3147
    oprot.trans.flush()
3148
 
4501 mandeep.dh 3149
  def process_scan(self, seqid, iprot, oprot):
3150
    args = scan_args()
3383 chandransh 3151
    args.read(iprot)
3152
    iprot.readMessageEnd()
4501 mandeep.dh 3153
    result = scan_result()
3383 chandransh 3154
    try:
7410 amar.kumar 3155
      self._handler.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId, args.transferLotId)
3383 chandransh 3156
    except WarehouseServiceException, wex:
3157
      result.wex = wex
4501 mandeep.dh 3158
    oprot.writeMessageBegin("scan", TMessageType.REPLY, seqid)
3383 chandransh 3159
    result.write(oprot)
3160
    oprot.writeMessageEnd()
3161
    oprot.trans.flush()
3162
 
10489 amar.kumar 3163
  def process_genericScan(self, seqid, iprot, oprot):
3164
    args = genericScan_args()
3165
    args.read(iprot)
3166
    iprot.readMessageEnd()
3167
    result = genericScan_result()
3168
    try:
3169
      self._handler.genericScan(args.inventoryItem, args.scan)
3170
    except WarehouseServiceException, wex:
3171
      result.wex = wex
3172
    oprot.writeMessageBegin("genericScan", TMessageType.REPLY, seqid)
3173
    result.write(oprot)
3174
    oprot.writeMessageEnd()
3175
    oprot.trans.flush()
3176
 
4501 mandeep.dh 3177
  def process_scanSerializedItemForOrder(self, seqid, iprot, oprot):
3178
    args = scanSerializedItemForOrder_args()
2821 chandransh 3179
    args.read(iprot)
3180
    iprot.readMessageEnd()
4501 mandeep.dh 3181
    result = scanSerializedItemForOrder_result()
2821 chandransh 3182
    try:
5110 mandeep.dh 3183
      result.success = self._handler.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId)
2821 chandransh 3184
    except WarehouseServiceException, wex:
3185
      result.wex = wex
4501 mandeep.dh 3186
    oprot.writeMessageBegin("scanSerializedItemForOrder", TMessageType.REPLY, seqid)
2821 chandransh 3187
    result.write(oprot)
3188
    oprot.writeMessageEnd()
3189
    oprot.trans.flush()
3190
 
4501 mandeep.dh 3191
  def process_scanForOrder(self, seqid, iprot, oprot):
3192
    args = scanForOrder_args()
2821 chandransh 3193
    args.read(iprot)
3194
    iprot.readMessageEnd()
4501 mandeep.dh 3195
    result = scanForOrder_result()
2821 chandransh 3196
    try:
5361 mandeep.dh 3197
      result.success = self._handler.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId)
2821 chandransh 3198
    except WarehouseServiceException, wex:
3199
      result.wex = wex
4501 mandeep.dh 3200
    oprot.writeMessageBegin("scanForOrder", TMessageType.REPLY, seqid)
2821 chandransh 3201
    result.write(oprot)
3202
    oprot.writeMessageEnd()
3203
    oprot.trans.flush()
3204
 
4501 mandeep.dh 3205
  def process_createItemNumberMapping(self, seqid, iprot, oprot):
3206
    args = createItemNumberMapping_args()
3207
    args.read(iprot)
3208
    iprot.readMessageEnd()
3209
    result = createItemNumberMapping_result()
3210
    self._handler.createItemNumberMapping(args.itemNumber, args.itemId)
3211
    oprot.writeMessageBegin("createItemNumberMapping", TMessageType.REPLY, seqid)
3212
    result.write(oprot)
3213
    oprot.writeMessageEnd()
3214
    oprot.trans.flush()
2821 chandransh 3215
 
4620 amit.gupta 3216
  def process_getItemNumbers(self, seqid, iprot, oprot):
3217
    args = getItemNumbers_args()
3218
    args.read(iprot)
3219
    iprot.readMessageEnd()
3220
    result = getItemNumbers_result()
3221
    result.success = self._handler.getItemNumbers(args.itemId)
3222
    oprot.writeMessageBegin("getItemNumbers", TMessageType.REPLY, seqid)
3223
    result.write(oprot)
3224
    oprot.writeMessageEnd()
3225
    oprot.trans.flush()
4501 mandeep.dh 3226
 
5110 mandeep.dh 3227
  def process_getItemIds(self, seqid, iprot, oprot):
3228
    args = getItemIds_args()
3229
    args.read(iprot)
3230
    iprot.readMessageEnd()
3231
    result = getItemIds_result()
3232
    result.success = self._handler.getItemIds(args.itemNumber)
3233
    oprot.writeMessageBegin("getItemIds", TMessageType.REPLY, seqid)
3234
    result.write(oprot)
3235
    oprot.writeMessageEnd()
3236
    oprot.trans.flush()
4620 amit.gupta 3237
 
5185 mandeep.dh 3238
  def process_getInventoryItemsFromLastScanType(self, seqid, iprot, oprot):
3239
    args = getInventoryItemsFromLastScanType_args()
3240
    args.read(iprot)
3241
    iprot.readMessageEnd()
3242
    result = getInventoryItemsFromLastScanType_result()
3243
    try:
3244
      result.success = self._handler.getInventoryItemsFromLastScanType(args.lastScanType)
3245
    except WarehouseServiceException, wex:
3246
      result.wex = wex
3247
    oprot.writeMessageBegin("getInventoryItemsFromLastScanType", TMessageType.REPLY, seqid)
3248
    result.write(oprot)
3249
    oprot.writeMessageEnd()
3250
    oprot.trans.flush()
5110 mandeep.dh 3251
 
5185 mandeep.dh 3252
  def process_getInventoryItemFromId(self, seqid, iprot, oprot):
3253
    args = getInventoryItemFromId_args()
3254
    args.read(iprot)
3255
    iprot.readMessageEnd()
3256
    result = getInventoryItemFromId_result()
3257
    try:
3258
      result.success = self._handler.getInventoryItemFromId(args.inventoryItemId)
3259
    except WarehouseServiceException, wex:
3260
      result.wex = wex
3261
    oprot.writeMessageBegin("getInventoryItemFromId", TMessageType.REPLY, seqid)
3262
    result.write(oprot)
3263
    oprot.writeMessageEnd()
3264
    oprot.trans.flush()
3265
 
5372 mandeep.dh 3266
  def process_getPurchaseScans(self, seqid, iprot, oprot):
3267
    args = getPurchaseScans_args()
3268
    args.read(iprot)
3269
    iprot.readMessageEnd()
3270
    result = getPurchaseScans_result()
3271
    result.success = self._handler.getPurchaseScans(args.startDate, args.endDate)
3272
    oprot.writeMessageBegin("getPurchaseScans", TMessageType.REPLY, seqid)
3273
    result.write(oprot)
3274
    oprot.writeMessageEnd()
3275
    oprot.trans.flush()
5185 mandeep.dh 3276
 
7216 amar.kumar 3277
  def process_getPurchaseScansByGrnDate(self, seqid, iprot, oprot):
3278
    args = getPurchaseScansByGrnDate_args()
3279
    args.read(iprot)
3280
    iprot.readMessageEnd()
3281
    result = getPurchaseScansByGrnDate_result()
3282
    result.success = self._handler.getPurchaseScansByGrnDate(args.startDate, args.endDate)
3283
    oprot.writeMessageBegin("getPurchaseScansByGrnDate", TMessageType.REPLY, seqid)
3284
    result.write(oprot)
3285
    oprot.writeMessageEnd()
3286
    oprot.trans.flush()
3287
 
10407 amar.kumar 3288
  def process_getEmptyGrnsByDate(self, seqid, iprot, oprot):
3289
    args = getEmptyGrnsByDate_args()
3290
    args.read(iprot)
3291
    iprot.readMessageEnd()
3292
    result = getEmptyGrnsByDate_result()
3293
    result.success = self._handler.getEmptyGrnsByDate(args.startDate, args.endDate)
3294
    oprot.writeMessageBegin("getEmptyGrnsByDate", TMessageType.REPLY, seqid)
3295
    result.write(oprot)
3296
    oprot.writeMessageEnd()
3297
    oprot.trans.flush()
3298
 
5496 mandeep.dh 3299
  def process_fetchScansPerInvoiceNumber(self, seqid, iprot, oprot):
3300
    args = fetchScansPerInvoiceNumber_args()
3301
    args.read(iprot)
3302
    iprot.readMessageEnd()
3303
    result = fetchScansPerInvoiceNumber_result()
3304
    result.success = self._handler.fetchScansPerInvoiceNumber(args.date)
3305
    oprot.writeMessageBegin("fetchScansPerInvoiceNumber", TMessageType.REPLY, seqid)
3306
    result.write(oprot)
3307
    oprot.writeMessageEnd()
3308
    oprot.trans.flush()
5372 mandeep.dh 3309
 
5620 mandeep.dh 3310
  def process_getInventoryItemFromOrder(self, seqid, iprot, oprot):
3311
    args = getInventoryItemFromOrder_args()
3312
    args.read(iprot)
3313
    iprot.readMessageEnd()
3314
    result = getInventoryItemFromOrder_result()
3315
    try:
3316
      result.success = self._handler.getInventoryItemFromOrder(args.orderId)
3317
    except WarehouseServiceException, we:
3318
      result.we = we
3319
    oprot.writeMessageBegin("getInventoryItemFromOrder", TMessageType.REPLY, seqid)
3320
    result.write(oprot)
3321
    oprot.writeMessageEnd()
3322
    oprot.trans.flush()
5496 mandeep.dh 3323
 
5711 mandeep.dh 3324
  def process_getInventoryAge(self, seqid, iprot, oprot):
3325
    args = getInventoryAge_args()
3326
    args.read(iprot)
3327
    iprot.readMessageEnd()
3328
    result = getInventoryAge_result()
3329
    result.success = self._handler.getInventoryAge()
3330
    oprot.writeMessageBegin("getInventoryAge", TMessageType.REPLY, seqid)
3331
    result.write(oprot)
3332
    oprot.writeMessageEnd()
3333
    oprot.trans.flush()
5620 mandeep.dh 3334
 
6361 rajveer 3335
  def process_getInventoryScansForItem(self, seqid, iprot, oprot):
3336
    args = getInventoryScansForItem_args()
3337
    args.read(iprot)
3338
    iprot.readMessageEnd()
3339
    result = getInventoryScansForItem_result()
3340
    result.success = self._handler.getInventoryScansForItem(args.itemId, args.fromDate, args.toDate)
3341
    oprot.writeMessageBegin("getInventoryScansForItem", TMessageType.REPLY, seqid)
3342
    result.write(oprot)
3343
    oprot.writeMessageEnd()
3344
    oprot.trans.flush()
5711 mandeep.dh 3345
 
6361 rajveer 3346
  def process_getScanRecordsForSerialNumber(self, seqid, iprot, oprot):
3347
    args = getScanRecordsForSerialNumber_args()
3348
    args.read(iprot)
3349
    iprot.readMessageEnd()
3350
    result = getScanRecordsForSerialNumber_result()
3351
    result.success = self._handler.getScanRecordsForSerialNumber(args.serialNumber)
3352
    oprot.writeMessageBegin("getScanRecordsForSerialNumber", TMessageType.REPLY, seqid)
3353
    result.write(oprot)
3354
    oprot.writeMessageEnd()
3355
    oprot.trans.flush()
3356
 
6467 amar.kumar 3357
  def process_scanForPurchaseReturn(self, seqid, iprot, oprot):
3358
    args = scanForPurchaseReturn_args()
3359
    args.read(iprot)
3360
    iprot.readMessageEnd()
3361
    result = scanForPurchaseReturn_result()
3362
    try:
10864 manish.sha 3363
      result.success = self._handler.scanForPurchaseReturn(args.saleReturnItems, args.vendorId, args.billingWarehouseId)
6467 amar.kumar 3364
    except WarehouseServiceException, ex:
3365
      result.ex = ex
3366
    oprot.writeMessageBegin("scanForPurchaseReturn", TMessageType.REPLY, seqid)
3367
    result.write(oprot)
3368
    oprot.writeMessageEnd()
3369
    oprot.trans.flush()
6361 rajveer 3370
 
6630 amar.kumar 3371
  def process_scanForLostItem(self, seqid, iprot, oprot):
3372
    args = scanForLostItem_args()
3373
    args.read(iprot)
3374
    iprot.readMessageEnd()
3375
    result = scanForLostItem_result()
3376
    try:
7718 amar.kumar 3377
      self._handler.scanForLostItem(args.lostItems, args.vendorId, args.billingWarehouseId)
6630 amar.kumar 3378
    except WarehouseServiceException, ex:
3379
      result.ex = ex
3380
    oprot.writeMessageBegin("scanForLostItem", TMessageType.REPLY, seqid)
3381
    result.write(oprot)
3382
    oprot.writeMessageEnd()
3383
    oprot.trans.flush()
6467 amar.kumar 3384
 
6630 amar.kumar 3385
  def process_getCurrentSerializedInventoryByScans(self, seqid, iprot, oprot):
3386
    args = getCurrentSerializedInventoryByScans_args()
3387
    args.read(iprot)
3388
    iprot.readMessageEnd()
3389
    result = getCurrentSerializedInventoryByScans_result()
7715 vikram.rag 3390
    result.success = self._handler.getCurrentSerializedInventoryByScans(args.physicalWarehouseId)
6630 amar.kumar 3391
    oprot.writeMessageBegin("getCurrentSerializedInventoryByScans", TMessageType.REPLY, seqid)
3392
    result.write(oprot)
3393
    oprot.writeMessageEnd()
3394
    oprot.trans.flush()
3395
 
3396
  def process_getCurrentNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3397
    args = getCurrentNonSerializedInventoryByScans_args()
3398
    args.read(iprot)
3399
    iprot.readMessageEnd()
3400
    result = getCurrentNonSerializedInventoryByScans_result()
7715 vikram.rag 3401
    result.success = self._handler.getCurrentNonSerializedInventoryByScans(args.physicalWarehouseId)
6630 amar.kumar 3402
    oprot.writeMessageBegin("getCurrentNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3403
    result.write(oprot)
3404
    oprot.writeMessageEnd()
3405
    oprot.trans.flush()
3406
 
6762 amar.kumar 3407
  def process_getHistoricSerializedInventoryByScans(self, seqid, iprot, oprot):
3408
    args = getHistoricSerializedInventoryByScans_args()
3409
    args.read(iprot)
3410
    iprot.readMessageEnd()
3411
    result = getHistoricSerializedInventoryByScans_result()
3412
    result.success = self._handler.getHistoricSerializedInventoryByScans(args.date)
3413
    oprot.writeMessageBegin("getHistoricSerializedInventoryByScans", TMessageType.REPLY, seqid)
3414
    result.write(oprot)
3415
    oprot.writeMessageEnd()
3416
    oprot.trans.flush()
6630 amar.kumar 3417
 
6762 amar.kumar 3418
  def process_getHistoricNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3419
    args = getHistoricNonSerializedInventoryByScans_args()
3420
    args.read(iprot)
3421
    iprot.readMessageEnd()
3422
    result = getHistoricNonSerializedInventoryByScans_result()
3423
    result.success = self._handler.getHistoricNonSerializedInventoryByScans(args.date)
3424
    oprot.writeMessageBegin("getHistoricNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3425
    result.write(oprot)
3426
    oprot.writeMessageEnd()
3427
    oprot.trans.flush()
3428
 
10407 amar.kumar 3429
  def process_getOurHistoricSerializedInventoryByScans(self, seqid, iprot, oprot):
3430
    args = getOurHistoricSerializedInventoryByScans_args()
3431
    args.read(iprot)
3432
    iprot.readMessageEnd()
3433
    result = getOurHistoricSerializedInventoryByScans_result()
3434
    result.success = self._handler.getOurHistoricSerializedInventoryByScans(args.date)
3435
    oprot.writeMessageBegin("getOurHistoricSerializedInventoryByScans", TMessageType.REPLY, seqid)
3436
    result.write(oprot)
3437
    oprot.writeMessageEnd()
3438
    oprot.trans.flush()
3439
 
3440
  def process_getOurHistoricNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3441
    args = getOurHistoricNonSerializedInventoryByScans_args()
3442
    args.read(iprot)
3443
    iprot.readMessageEnd()
3444
    result = getOurHistoricNonSerializedInventoryByScans_result()
3445
    result.success = self._handler.getOurHistoricNonSerializedInventoryByScans(args.date)
3446
    oprot.writeMessageBegin("getOurHistoricNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3447
    result.write(oprot)
3448
    oprot.writeMessageEnd()
3449
    oprot.trans.flush()
3450
 
6762 amar.kumar 3451
  def process_scanForOursExternalSale(self, seqid, iprot, oprot):
3452
    args = scanForOursExternalSale_args()
3453
    args.read(iprot)
3454
    iprot.readMessageEnd()
3455
    result = scanForOursExternalSale_result()
3456
    try:
7672 rajveer 3457
      result.success = self._handler.scanForOursExternalSale(args.itemId, args.serialNumber, args.itemNumber, args.invoiceNumber, args.warehouseId, args.unitPrice, args.nlc, args.orderId)
6762 amar.kumar 3458
    except WarehouseServiceException, ex:
3459
      result.ex = ex
3460
    oprot.writeMessageBegin("scanForOursExternalSale", TMessageType.REPLY, seqid)
3461
    result.write(oprot)
3462
    oprot.writeMessageEnd()
3463
    oprot.trans.flush()
3464
 
3465
  def process_scanForOursExternalSaleReturn(self, seqid, iprot, oprot):
3466
    args = scanForOursExternalSaleReturn_args()
3467
    args.read(iprot)
3468
    iprot.readMessageEnd()
3469
    result = scanForOursExternalSaleReturn_result()
7410 amar.kumar 3470
    try:
3471
      self._handler.scanForOursExternalSaleReturn(args.orderId, args.unitPrice)
3472
    except WarehouseServiceException, ex:
3473
      result.ex = ex
6762 amar.kumar 3474
    oprot.writeMessageBegin("scanForOursExternalSaleReturn", TMessageType.REPLY, seqid)
3475
    result.write(oprot)
3476
    oprot.writeMessageEnd()
3477
    oprot.trans.flush()
3478
 
6880 amar.kumar 3479
  def process_getMovementNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3480
    args = getMovementNonSerializedInventoryByScans_args()
3481
    args.read(iprot)
3482
    iprot.readMessageEnd()
3483
    result = getMovementNonSerializedInventoryByScans_result()
3484
    result.success = self._handler.getMovementNonSerializedInventoryByScans(args.startDate, args.endDate)
3485
    oprot.writeMessageBegin("getMovementNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3486
    result.write(oprot)
3487
    oprot.writeMessageEnd()
3488
    oprot.trans.flush()
6762 amar.kumar 3489
 
6880 amar.kumar 3490
  def process_getMovementSerializedInventoryByScans(self, seqid, iprot, oprot):
3491
    args = getMovementSerializedInventoryByScans_args()
3492
    args.read(iprot)
3493
    iprot.readMessageEnd()
3494
    result = getMovementSerializedInventoryByScans_result()
3495
    result.success = self._handler.getMovementSerializedInventoryByScans(args.startDate, args.endDate)
3496
    oprot.writeMessageBegin("getMovementSerializedInventoryByScans", TMessageType.REPLY, seqid)
3497
    result.write(oprot)
3498
    oprot.writeMessageEnd()
3499
    oprot.trans.flush()
3500
 
7216 amar.kumar 3501
  def process_getCompleteMovementSerializedInventoryByScans(self, seqid, iprot, oprot):
3502
    args = getCompleteMovementSerializedInventoryByScans_args()
3503
    args.read(iprot)
3504
    iprot.readMessageEnd()
3505
    result = getCompleteMovementSerializedInventoryByScans_result()
3506
    result.success = self._handler.getCompleteMovementSerializedInventoryByScans(args.startDate, args.endDate)
3507
    oprot.writeMessageBegin("getCompleteMovementSerializedInventoryByScans", TMessageType.REPLY, seqid)
3508
    result.write(oprot)
3509
    oprot.writeMessageEnd()
3510
    oprot.trans.flush()
3511
 
3512
  def process_getCompleteMovementNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3513
    args = getCompleteMovementNonSerializedInventoryByScans_args()
3514
    args.read(iprot)
3515
    iprot.readMessageEnd()
3516
    result = getCompleteMovementNonSerializedInventoryByScans_result()
3517
    result.success = self._handler.getCompleteMovementNonSerializedInventoryByScans(args.startDate, args.endDate)
3518
    oprot.writeMessageBegin("getCompleteMovementNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3519
    result.write(oprot)
3520
    oprot.writeMessageEnd()
3521
    oprot.trans.flush()
3522
 
7190 amar.kumar 3523
  def process_scanfreebie(self, seqid, iprot, oprot):
3524
    args = scanfreebie_args()
3525
    args.read(iprot)
3526
    iprot.readMessageEnd()
3527
    result = scanfreebie_result()
3528
    try:
3529
      result.success = self._handler.scanfreebie(args.orderId, args.freebieItemId, args.freebieWarehouseId, args.scanType)
3530
    except WarehouseServiceException, wex:
3531
      result.wex = wex
3532
    oprot.writeMessageBegin("scanfreebie", TMessageType.REPLY, seqid)
3533
    result.write(oprot)
3534
    oprot.writeMessageEnd()
3535
    oprot.trans.flush()
6880 amar.kumar 3536
 
7199 amar.kumar 3537
  def process_reshipfreebie(self, seqid, iprot, oprot):
3538
    args = reshipfreebie_args()
3539
    args.read(iprot)
3540
    iprot.readMessageEnd()
3541
    result = reshipfreebie_result()
3542
    try:
3543
      self._handler.reshipfreebie(args.oldOrderId, args.newOrderId, args.freebieItemId, args.scanType)
3544
    except WarehouseServiceException, wex:
3545
      result.wex = wex
3546
    oprot.writeMessageBegin("reshipfreebie", TMessageType.REPLY, seqid)
3547
    result.write(oprot)
3548
    oprot.writeMessageEnd()
3549
    oprot.trans.flush()
7190 amar.kumar 3550
 
7410 amar.kumar 3551
  def process_isItemTransferAllowed(self, seqid, iprot, oprot):
3552
    args = isItemTransferAllowed_args()
3553
    args.read(iprot)
3554
    iprot.readMessageEnd()
3555
    result = isItemTransferAllowed_result()
3556
    result.success = self._handler.isItemTransferAllowed(args.warehouseId, args.transferWarehouseId)
3557
    oprot.writeMessageBegin("isItemTransferAllowed", TMessageType.REPLY, seqid)
3558
    result.write(oprot)
3559
    oprot.writeMessageEnd()
3560
    oprot.trans.flush()
7199 amar.kumar 3561
 
7410 amar.kumar 3562
  def process_createTransferLot(self, seqid, iprot, oprot):
3563
    args = createTransferLot_args()
3564
    args.read(iprot)
3565
    iprot.readMessageEnd()
3566
    result = createTransferLot_result()
3567
    try:
3568
      result.success = self._handler.createTransferLot(args.originWarehouseId, args.destWarehouseId)
3569
    except WarehouseServiceException, wex:
3570
      result.wex = wex
3571
    oprot.writeMessageBegin("createTransferLot", TMessageType.REPLY, seqid)
3572
    result.write(oprot)
3573
    oprot.writeMessageEnd()
3574
    oprot.trans.flush()
3575
 
3576
  def process_getTransferLot(self, seqid, iprot, oprot):
3577
    args = getTransferLot_args()
3578
    args.read(iprot)
3579
    iprot.readMessageEnd()
3580
    result = getTransferLot_result()
3581
    try:
3582
      result.success = self._handler.getTransferLot(args.transferLotId)
3583
    except WarehouseServiceException, wex:
3584
      result.wex = wex
3585
    oprot.writeMessageBegin("getTransferLot", TMessageType.REPLY, seqid)
3586
    result.write(oprot)
3587
    oprot.writeMessageEnd()
3588
    oprot.trans.flush()
3589
 
3590
  def process_markTransferLotAsReceived(self, seqid, iprot, oprot):
3591
    args = markTransferLotAsReceived_args()
3592
    args.read(iprot)
3593
    iprot.readMessageEnd()
3594
    result = markTransferLotAsReceived_result()
3595
    try:
3596
      self._handler.markTransferLotAsReceived(args.id, args.remoteTransferRefNumber)
3597
    except WarehouseServiceException, wex:
3598
      result.wex = wex
3599
    oprot.writeMessageBegin("markTransferLotAsReceived", TMessageType.REPLY, seqid)
3600
    result.write(oprot)
3601
    oprot.writeMessageEnd()
3602
    oprot.trans.flush()
3603
 
3604
  def process_getTransferLotsByDate(self, seqid, iprot, oprot):
3605
    args = getTransferLotsByDate_args()
3606
    args.read(iprot)
3607
    iprot.readMessageEnd()
3608
    result = getTransferLotsByDate_result()
3609
    try:
3610
      result.success = self._handler.getTransferLotsByDate(args.fromDate, args.toDate)
3611
    except WarehouseServiceException, wex:
3612
      result.wex = wex
3613
    oprot.writeMessageBegin("getTransferLotsByDate", TMessageType.REPLY, seqid)
3614
    result.write(oprot)
3615
    oprot.writeMessageEnd()
3616
    oprot.trans.flush()
3617
 
3618
  def process_getAllowedDestinationWarehousesForTransfer(self, seqid, iprot, oprot):
3619
    args = getAllowedDestinationWarehousesForTransfer_args()
3620
    args.read(iprot)
3621
    iprot.readMessageEnd()
3622
    result = getAllowedDestinationWarehousesForTransfer_result()
3623
    result.success = self._handler.getAllowedDestinationWarehousesForTransfer(args.warehouseId)
3624
    oprot.writeMessageBegin("getAllowedDestinationWarehousesForTransfer", TMessageType.REPLY, seqid)
3625
    result.write(oprot)
3626
    oprot.writeMessageEnd()
3627
    oprot.trans.flush()
3628
 
3629
  def process_getItemsInTransferLot(self, seqid, iprot, oprot):
3630
    args = getItemsInTransferLot_args()
3631
    args.read(iprot)
3632
    iprot.readMessageEnd()
3633
    result = getItemsInTransferLot_result()
3634
    result.success = self._handler.getItemsInTransferLot(args.transferLotId)
3635
    oprot.writeMessageBegin("getItemsInTransferLot", TMessageType.REPLY, seqid)
3636
    result.write(oprot)
3637
    oprot.writeMessageEnd()
3638
    oprot.trans.flush()
3639
 
3640
  def process_markItemsAsReceivedForTransferLot(self, seqid, iprot, oprot):
3641
    args = markItemsAsReceivedForTransferLot_args()
3642
    args.read(iprot)
3643
    iprot.readMessageEnd()
3644
    result = markItemsAsReceivedForTransferLot_result()
3645
    try:
3646
      self._handler.markItemsAsReceivedForTransferLot(args.id)
3647
    except WarehouseServiceException, wex:
3648
      result.wex = wex
3649
    oprot.writeMessageBegin("markItemsAsReceivedForTransferLot", TMessageType.REPLY, seqid)
3650
    result.write(oprot)
3651
    oprot.writeMessageEnd()
3652
    oprot.trans.flush()
3653
 
3654
  def process_updateTransferLotAfterItemReceive(self, seqid, iprot, oprot):
3655
    args = updateTransferLotAfterItemReceive_args()
3656
    args.read(iprot)
3657
    iprot.readMessageEnd()
3658
    result = updateTransferLotAfterItemReceive_result()
3659
    try:
3660
      result.success = self._handler.updateTransferLotAfterItemReceive(args.id)
3661
    except WarehouseServiceException, wex:
3662
      result.wex = wex
3663
    oprot.writeMessageBegin("updateTransferLotAfterItemReceive", TMessageType.REPLY, seqid)
3664
    result.write(oprot)
3665
    oprot.writeMessageEnd()
3666
    oprot.trans.flush()
3667
 
7459 amar.kumar 3668
  def process_scanForTransferOut(self, seqid, iprot, oprot):
3669
    args = scanForTransferOut_args()
7410 amar.kumar 3670
    args.read(iprot)
3671
    iprot.readMessageEnd()
7459 amar.kumar 3672
    result = scanForTransferOut_result()
7410 amar.kumar 3673
    try:
7459 amar.kumar 3674
      self._handler.scanForTransferOut(args.inventoryItems, args.type, args.transferLotId)
7410 amar.kumar 3675
    except WarehouseServiceException, wex:
3676
      result.wex = wex
7459 amar.kumar 3677
    oprot.writeMessageBegin("scanForTransferOut", TMessageType.REPLY, seqid)
7410 amar.kumar 3678
    result.write(oprot)
3679
    oprot.writeMessageEnd()
3680
    oprot.trans.flush()
3681
 
7459 amar.kumar 3682
  def process_scanForTransferIn(self, seqid, iprot, oprot):
3683
    args = scanForTransferIn_args()
3684
    args.read(iprot)
3685
    iprot.readMessageEnd()
3686
    result = scanForTransferIn_result()
3687
    try:
3688
      self._handler.scanForTransferIn(args.inventoryItems, args.type, args.transferLotId)
3689
    except WarehouseServiceException, wex:
3690
      result.wex = wex
3691
    oprot.writeMessageBegin("scanForTransferIn", TMessageType.REPLY, seqid)
3692
    result.write(oprot)
3693
    oprot.writeMessageEnd()
3694
    oprot.trans.flush()
7410 amar.kumar 3695
 
7459 amar.kumar 3696
  def process_scanForOursThirdPartyReceive(self, seqid, iprot, oprot):
3697
    args = scanForOursThirdPartyReceive_args()
3698
    args.read(iprot)
3699
    iprot.readMessageEnd()
3700
    result = scanForOursThirdPartyReceive_result()
3701
    try:
3702
      self._handler.scanForOursThirdPartyReceive(args.inventoryItems, args.id)
3703
    except WarehouseServiceException, wex:
3704
      result.wex = wex
3705
    oprot.writeMessageBegin("scanForOursThirdPartyReceive", TMessageType.REPLY, seqid)
3706
    result.write(oprot)
3707
    oprot.writeMessageEnd()
3708
    oprot.trans.flush()
3709
 
7574 amar.kumar 3710
  def process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, seqid, iprot, oprot):
3711
    args = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args()
3712
    args.read(iprot)
3713
    iprot.readMessageEnd()
3714
    result = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result()
3715
    try:
3716
      result.success = self._handler.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(args.itemId, args.physicalWarehouseId)
3717
    except WarehouseServiceException, wex:
3718
      result.wex = wex
3719
    oprot.writeMessageBegin("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", TMessageType.REPLY, seqid)
3720
    result.write(oprot)
3721
    oprot.writeMessageEnd()
3722
    oprot.trans.flush()
7459 amar.kumar 3723
 
7672 rajveer 3724
  def process_getInTransitInventory(self, seqid, iprot, oprot):
3725
    args = getInTransitInventory_args()
3726
    args.read(iprot)
3727
    iprot.readMessageEnd()
3728
    result = getInTransitInventory_result()
3729
    result.success = self._handler.getInTransitInventory(args.originWarehouseId)
3730
    oprot.writeMessageBegin("getInTransitInventory", TMessageType.REPLY, seqid)
3731
    result.write(oprot)
3732
    oprot.writeMessageEnd()
3733
    oprot.trans.flush()
7574 amar.kumar 3734
 
7968 amar.kumar 3735
  def process_isItemAvailableForSale(self, seqid, iprot, oprot):
3736
    args = isItemAvailableForSale_args()
3737
    args.read(iprot)
3738
    iprot.readMessageEnd()
3739
    result = isItemAvailableForSale_result()
3740
    try:
3741
      result.success = self._handler.isItemAvailableForSale(args.itemId, args.serialNumber, args.warehouseId)
3742
    except WarehouseServiceException, wex:
3743
      result.wex = wex
3744
    oprot.writeMessageBegin("isItemAvailableForSale", TMessageType.REPLY, seqid)
3745
    result.write(oprot)
3746
    oprot.writeMessageEnd()
3747
    oprot.trans.flush()
7672 rajveer 3748
 
7968 amar.kumar 3749
  def process_getHistoricBadInventoryByScans(self, seqid, iprot, oprot):
3750
    args = getHistoricBadInventoryByScans_args()
3751
    args.read(iprot)
3752
    iprot.readMessageEnd()
3753
    result = getHistoricBadInventoryByScans_result()
3754
    try:
3755
      result.success = self._handler.getHistoricBadInventoryByScans(args.date)
3756
    except WarehouseServiceException, wex:
3757
      result.wex = wex
3758
    oprot.writeMessageBegin("getHistoricBadInventoryByScans", TMessageType.REPLY, seqid)
3759
    result.write(oprot)
3760
    oprot.writeMessageEnd()
3761
    oprot.trans.flush()
3762
 
8565 amar.kumar 3763
  def process_scanForBadSale(self, seqid, iprot, oprot):
3764
    args = scanForBadSale_args()
3765
    args.read(iprot)
3766
    iprot.readMessageEnd()
3767
    result = scanForBadSale_result()
8717 amar.kumar 3768
    try:
3769
      result.success = self._handler.scanForBadSale(args.serialNumber, args.itemNumber, args.itemId, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId)
3770
    except WarehouseServiceException, wex:
3771
      result.wex = wex
8565 amar.kumar 3772
    oprot.writeMessageBegin("scanForBadSale", TMessageType.REPLY, seqid)
3773
    result.write(oprot)
3774
    oprot.writeMessageEnd()
3775
    oprot.trans.flush()
7968 amar.kumar 3776
 
10120 manish.sha 3777
  def process_getTransferLotItemsForMarkReceive(self, seqid, iprot, oprot):
3778
    args = getTransferLotItemsForMarkReceive_args()
3779
    args.read(iprot)
3780
    iprot.readMessageEnd()
3781
    result = getTransferLotItemsForMarkReceive_result()
3782
    try:
3783
      result.success = self._handler.getTransferLotItemsForMarkReceive(args.transferLotId, args.scanType)
3784
    except WarehouseServiceException, wex:
3785
      result.wex = wex
3786
    oprot.writeMessageBegin("getTransferLotItemsForMarkReceive", TMessageType.REPLY, seqid)
3787
    result.write(oprot)
3788
    oprot.writeMessageEnd()
3789
    oprot.trans.flush()
8565 amar.kumar 3790
 
10120 manish.sha 3791
  def process_markItemsAsReceivedForTransferLotPartial(self, seqid, iprot, oprot):
3792
    args = markItemsAsReceivedForTransferLotPartial_args()
3793
    args.read(iprot)
3794
    iprot.readMessageEnd()
3795
    result = markItemsAsReceivedForTransferLotPartial_result()
3796
    try:
3797
      self._handler.markItemsAsReceivedForTransferLotPartial(args.inventoryItems, args.transferLotId)
3798
    except WarehouseServiceException, wex:
3799
      result.wex = wex
3800
    oprot.writeMessageBegin("markItemsAsReceivedForTransferLotPartial", TMessageType.REPLY, seqid)
3801
    result.write(oprot)
3802
    oprot.writeMessageEnd()
3803
    oprot.trans.flush()
3804
 
3805
  def process_markTransferLotAsReceivedPartial(self, seqid, iprot, oprot):
3806
    args = markTransferLotAsReceivedPartial_args()
3807
    args.read(iprot)
3808
    iprot.readMessageEnd()
3809
    result = markTransferLotAsReceivedPartial_result()
3810
    try:
3811
      self._handler.markTransferLotAsReceivedPartial(args.id, args.remoteTransferRefNumber)
3812
    except WarehouseServiceException, wex:
3813
      result.wex = wex
3814
    oprot.writeMessageBegin("markTransferLotAsReceivedPartial", TMessageType.REPLY, seqid)
3815
    result.write(oprot)
3816
    oprot.writeMessageEnd()
3817
    oprot.trans.flush()
3818
 
10690 manish.sha 3819
  def process_getInventoryItemScannedInForPO(self, seqid, iprot, oprot):
3820
    args = getInventoryItemScannedInForPO_args()
3821
    args.read(iprot)
3822
    iprot.readMessageEnd()
3823
    result = getInventoryItemScannedInForPO_result()
3824
    try:
3825
      result.success = self._handler.getInventoryItemScannedInForPO(args.itemId, args.purchaseIds)
3826
    except WarehouseServiceException, wex:
3827
      result.wex = wex
3828
    oprot.writeMessageBegin("getInventoryItemScannedInForPO", TMessageType.REPLY, seqid)
3829
    result.write(oprot)
3830
    oprot.writeMessageEnd()
3831
    oprot.trans.flush()
10120 manish.sha 3832
 
10690 manish.sha 3833
  def process_getAmazonTransferredSkuDetails(self, seqid, iprot, oprot):
3834
    args = getAmazonTransferredSkuDetails_args()
3835
    args.read(iprot)
3836
    iprot.readMessageEnd()
3837
    result = getAmazonTransferredSkuDetails_result()
3838
    try:
3839
      result.success = self._handler.getAmazonTransferredSkuDetails(args.itemIds)
3840
    except WarehouseServiceException, wex:
3841
      result.wex = wex
3842
    oprot.writeMessageBegin("getAmazonTransferredSkuDetails", TMessageType.REPLY, seqid)
3843
    result.write(oprot)
3844
    oprot.writeMessageEnd()
3845
    oprot.trans.flush()
3846
 
3847
  def process_getScansforPurchase(self, seqid, iprot, oprot):
3848
    args = getScansforPurchase_args()
3849
    args.read(iprot)
3850
    iprot.readMessageEnd()
3851
    result = getScansforPurchase_result()
3852
    try:
3853
      result.success = self._handler.getScansforPurchase(args.purchaseId, args.scanType)
3854
    except WarehouseServiceException, wex:
3855
      result.wex = wex
3856
    oprot.writeMessageBegin("getScansforPurchase", TMessageType.REPLY, seqid)
3857
    result.write(oprot)
3858
    oprot.writeMessageEnd()
3859
    oprot.trans.flush()
3860
 
10864 manish.sha 3861
  def process_getCurrentBadQuantityForItem(self, seqid, iprot, oprot):
3862
    args = getCurrentBadQuantityForItem_args()
3863
    args.read(iprot)
3864
    iprot.readMessageEnd()
3865
    result = getCurrentBadQuantityForItem_result()
3866
    try:
3867
      result.success = self._handler.getCurrentBadQuantityForItem(args.itemId, args.currentWarehouseId, args.physicalWarehouseId)
3868
    except WarehouseServiceException, wex:
3869
      result.wex = wex
3870
    oprot.writeMessageBegin("getCurrentBadQuantityForItem", TMessageType.REPLY, seqid)
3871
    result.write(oprot)
3872
    oprot.writeMessageEnd()
3873
    oprot.trans.flush()
10690 manish.sha 3874
 
10864 manish.sha 3875
  def process_scanForBadPurchaseReturn(self, seqid, iprot, oprot):
3876
    args = scanForBadPurchaseReturn_args()
3877
    args.read(iprot)
3878
    iprot.readMessageEnd()
3879
    result = scanForBadPurchaseReturn_result()
3880
    try:
3881
      result.success = self._handler.scanForBadPurchaseReturn(args.saleReturnItems, args.vendorId, args.billingWarehouseId)
3882
    except WarehouseServiceException, ex:
3883
      result.ex = ex
3884
    oprot.writeMessageBegin("scanForBadPurchaseReturn", TMessageType.REPLY, seqid)
3885
    result.write(oprot)
3886
    oprot.writeMessageEnd()
3887
    oprot.trans.flush()
3888
 
3889
  def process_getItemsInPurchaseReturn(self, seqid, iprot, oprot):
3890
    args = getItemsInPurchaseReturn_args()
3891
    args.read(iprot)
3892
    iprot.readMessageEnd()
3893
    result = getItemsInPurchaseReturn_result()
3894
    try:
13504 manish.sha 3895
      result.success = self._handler.getItemsInPurchaseReturn(args.purchaseReturnId, args.type, args.returnTime)
10864 manish.sha 3896
    except WarehouseServiceException, ex:
3897
      result.ex = ex
3898
    oprot.writeMessageBegin("getItemsInPurchaseReturn", TMessageType.REPLY, seqid)
3899
    result.write(oprot)
3900
    oprot.writeMessageEnd()
3901
    oprot.trans.flush()
3902
 
10886 manish.sha 3903
  def process_getScansForInventoryItem(self, seqid, iprot, oprot):
3904
    args = getScansForInventoryItem_args()
3905
    args.read(iprot)
3906
    iprot.readMessageEnd()
3907
    result = getScansForInventoryItem_result()
3908
    try:
3909
      result.success = self._handler.getScansForInventoryItem(args.inventoryItemId, args.type)
3910
    except WarehouseServiceException, ex:
3911
      result.ex = ex
3912
    oprot.writeMessageBegin("getScansForInventoryItem", TMessageType.REPLY, seqid)
3913
    result.write(oprot)
3914
    oprot.writeMessageEnd()
3915
    oprot.trans.flush()
10864 manish.sha 3916
 
12531 manish.sha 3917
  def process_checkGrnImeiStatus(self, seqid, iprot, oprot):
3918
    args = checkGrnImeiStatus_args()
3919
    args.read(iprot)
3920
    iprot.readMessageEnd()
3921
    result = checkGrnImeiStatus_result()
3922
    try:
3923
      result.success = self._handler.checkGrnImeiStatus(args.imeiNos)
3924
    except WarehouseServiceException, ex:
3925
      result.ex = ex
3926
    oprot.writeMessageBegin("checkGrnImeiStatus", TMessageType.REPLY, seqid)
3927
    result.write(oprot)
3928
    oprot.writeMessageEnd()
3929
    oprot.trans.flush()
10886 manish.sha 3930
 
12800 manish.sha 3931
  def process_getInventoryAgeConsideredItems(self, seqid, iprot, oprot):
3932
    args = getInventoryAgeConsideredItems_args()
3933
    args.read(iprot)
3934
    iprot.readMessageEnd()
3935
    result = getInventoryAgeConsideredItems_result()
3936
    try:
3937
      result.success = self._handler.getInventoryAgeConsideredItems(args.itemId)
3938
    except WarehouseServiceException, ex:
3939
      result.ex = ex
3940
    oprot.writeMessageBegin("getInventoryAgeConsideredItems", TMessageType.REPLY, seqid)
3941
    result.write(oprot)
3942
    oprot.writeMessageEnd()
3943
    oprot.trans.flush()
12531 manish.sha 3944
 
13529 manish.sha 3945
  def process_getCompleteMovementForThirdPartyWarehouse(self, seqid, iprot, oprot):
3946
    args = getCompleteMovementForThirdPartyWarehouse_args()
3947
    args.read(iprot)
3948
    iprot.readMessageEnd()
3949
    result = getCompleteMovementForThirdPartyWarehouse_result()
3950
    result.success = self._handler.getCompleteMovementForThirdPartyWarehouse(args.startDate, args.endDate)
3951
    oprot.writeMessageBegin("getCompleteMovementForThirdPartyWarehouse", TMessageType.REPLY, seqid)
3952
    result.write(oprot)
3953
    oprot.writeMessageEnd()
3954
    oprot.trans.flush()
12800 manish.sha 3955
 
14491 manish.sha 3956
  def process_getAllDoaOutInventoryItems(self, seqid, iprot, oprot):
3957
    args = getAllDoaOutInventoryItems_args()
3958
    args.read(iprot)
3959
    iprot.readMessageEnd()
3960
    result = getAllDoaOutInventoryItems_result()
3961
    try:
3962
      result.success = self._handler.getAllDoaOutInventoryItems()
3963
    except WarehouseServiceException, ex:
3964
      result.ex = ex
3965
    oprot.writeMessageBegin("getAllDoaOutInventoryItems", TMessageType.REPLY, seqid)
3966
    result.write(oprot)
3967
    oprot.writeMessageEnd()
3968
    oprot.trans.flush()
13529 manish.sha 3969
 
15045 manish.sha 3970
  def process_getAllUnCompletedStockShipments(self, seqid, iprot, oprot):
3971
    args = getAllUnCompletedStockShipments_args()
3972
    args.read(iprot)
3973
    iprot.readMessageEnd()
3974
    result = getAllUnCompletedStockShipments_result()
3975
    try:
3976
      result.success = self._handler.getAllUnCompletedStockShipments(args.source)
3977
    except WarehouseServiceException, ex:
3978
      result.ex = ex
3979
    oprot.writeMessageBegin("getAllUnCompletedStockShipments", TMessageType.REPLY, seqid)
3980
    result.write(oprot)
3981
    oprot.writeMessageEnd()
3982
    oprot.trans.flush()
14491 manish.sha 3983
 
15045 manish.sha 3984
  def process_getRemovalStockShipmentReferenceById(self, seqid, iprot, oprot):
3985
    args = getRemovalStockShipmentReferenceById_args()
3986
    args.read(iprot)
3987
    iprot.readMessageEnd()
3988
    result = getRemovalStockShipmentReferenceById_result()
3989
    try:
3990
      result.success = self._handler.getRemovalStockShipmentReferenceById(args.id)
3991
    except WarehouseServiceException, ex:
3992
      result.ex = ex
3993
    oprot.writeMessageBegin("getRemovalStockShipmentReferenceById", TMessageType.REPLY, seqid)
3994
    result.write(oprot)
3995
    oprot.writeMessageEnd()
3996
    oprot.trans.flush()
3997
 
3998
  def process_createRemovalStockShipmentReference(self, seqid, iprot, oprot):
3999
    args = createRemovalStockShipmentReference_args()
4000
    args.read(iprot)
4001
    iprot.readMessageEnd()
4002
    result = createRemovalStockShipmentReference_result()
4003
    try:
4004
      result.success = self._handler.createRemovalStockShipmentReference(args.removalStockShipmentReference)
4005
    except WarehouseServiceException, ex:
4006
      result.ex = ex
4007
    oprot.writeMessageBegin("createRemovalStockShipmentReference", TMessageType.REPLY, seqid)
4008
    result.write(oprot)
4009
    oprot.writeMessageEnd()
4010
    oprot.trans.flush()
4011
 
4012
  def process_updateShipmentReferenceTransferLot(self, seqid, iprot, oprot):
4013
    args = updateShipmentReferenceTransferLot_args()
4014
    args.read(iprot)
4015
    iprot.readMessageEnd()
4016
    result = updateShipmentReferenceTransferLot_result()
4017
    try:
4018
      self._handler.updateShipmentReferenceTransferLot(args.transferLotId, args.shipmentReferenceId)
4019
    except WarehouseServiceException, ex:
4020
      result.ex = ex
4021
    oprot.writeMessageBegin("updateShipmentReferenceTransferLot", TMessageType.REPLY, seqid)
4022
    result.write(oprot)
4023
    oprot.writeMessageEnd()
4024
    oprot.trans.flush()
4025
 
4026
 
2821 chandransh 4027
# HELPER FUNCTIONS AND STRUCTURES
4028
 
4501 mandeep.dh 4029
class getInventoryItem_args:
2832 chandransh 4030
  """
4031
  Attributes:
4501 mandeep.dh 4032
   - serialNumber
2832 chandransh 4033
  """
4034
 
4035
  thrift_spec = (
4036
    None, # 0
4501 mandeep.dh 4037
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
2832 chandransh 4038
  )
4039
 
4501 mandeep.dh 4040
  def __init__(self, serialNumber=None,):
4041
    self.serialNumber = serialNumber
2832 chandransh 4042
 
4043
  def read(self, iprot):
4044
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4045
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4046
      return
4047
    iprot.readStructBegin()
4048
    while True:
4049
      (fname, ftype, fid) = iprot.readFieldBegin()
4050
      if ftype == TType.STOP:
4051
        break
4052
      if fid == 1:
4501 mandeep.dh 4053
        if ftype == TType.STRING:
4054
          self.serialNumber = iprot.readString();
2832 chandransh 4055
        else:
4056
          iprot.skip(ftype)
4057
      else:
4058
        iprot.skip(ftype)
4059
      iprot.readFieldEnd()
4060
    iprot.readStructEnd()
4061
 
4062
  def write(self, oprot):
4063
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4064
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4065
      return
4501 mandeep.dh 4066
    oprot.writeStructBegin('getInventoryItem_args')
4067
    if self.serialNumber is not None:
4068
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
4069
      oprot.writeString(self.serialNumber)
2832 chandransh 4070
      oprot.writeFieldEnd()
4071
    oprot.writeFieldStop()
4072
    oprot.writeStructEnd()
4073
 
3431 rajveer 4074
  def validate(self):
4075
    return
4076
 
4077
 
2832 chandransh 4078
  def __repr__(self):
4079
    L = ['%s=%r' % (key, value)
4080
      for key, value in self.__dict__.iteritems()]
4081
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4082
 
4083
  def __eq__(self, other):
4084
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4085
 
4086
  def __ne__(self, other):
4087
    return not (self == other)
4088
 
4501 mandeep.dh 4089
class getInventoryItem_result:
2832 chandransh 4090
  """
4091
  Attributes:
4092
   - success
4541 mandeep.dh 4093
   - wex
2832 chandransh 4094
  """
4095
 
4096
  thrift_spec = (
4501 mandeep.dh 4097
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
4541 mandeep.dh 4098
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
2832 chandransh 4099
  )
4100
 
4541 mandeep.dh 4101
  def __init__(self, success=None, wex=None,):
2832 chandransh 4102
    self.success = success
4541 mandeep.dh 4103
    self.wex = wex
2832 chandransh 4104
 
4105
  def read(self, iprot):
4106
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4107
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4108
      return
4109
    iprot.readStructBegin()
4110
    while True:
4111
      (fname, ftype, fid) = iprot.readFieldBegin()
4112
      if ftype == TType.STOP:
4113
        break
4114
      if fid == 0:
4115
        if ftype == TType.STRUCT:
4501 mandeep.dh 4116
          self.success = InventoryItem()
2832 chandransh 4117
          self.success.read(iprot)
4118
        else:
4119
          iprot.skip(ftype)
4541 mandeep.dh 4120
      elif fid == 1:
4121
        if ftype == TType.STRUCT:
4122
          self.wex = WarehouseServiceException()
4123
          self.wex.read(iprot)
4124
        else:
4125
          iprot.skip(ftype)
2832 chandransh 4126
      else:
4127
        iprot.skip(ftype)
4128
      iprot.readFieldEnd()
4129
    iprot.readStructEnd()
4130
 
4131
  def write(self, oprot):
4132
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4133
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4134
      return
4501 mandeep.dh 4135
    oprot.writeStructBegin('getInventoryItem_result')
3431 rajveer 4136
    if self.success is not None:
2832 chandransh 4137
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4138
      self.success.write(oprot)
4139
      oprot.writeFieldEnd()
4541 mandeep.dh 4140
    if self.wex is not None:
4141
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4142
      self.wex.write(oprot)
4143
      oprot.writeFieldEnd()
2832 chandransh 4144
    oprot.writeFieldStop()
4145
    oprot.writeStructEnd()
4146
 
3431 rajveer 4147
  def validate(self):
4148
    return
4149
 
4150
 
2832 chandransh 4151
  def __repr__(self):
4152
    L = ['%s=%r' % (key, value)
4153
      for key, value in self.__dict__.iteritems()]
4154
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4155
 
4156
  def __eq__(self, other):
4157
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4158
 
4159
  def __ne__(self, other):
4160
    return not (self == other)
4161
 
5361 mandeep.dh 4162
class getNonSeralizedInventoryItem_args:
2821 chandransh 4163
  """
4164
  Attributes:
5530 mandeep.dh 4165
   - itemNumber
4501 mandeep.dh 4166
   - itemId
5530 mandeep.dh 4167
   - fulfilmentWarehouseId
8565 amar.kumar 4168
   - billingWarehouseId
2821 chandransh 4169
  """
4170
 
4171
  thrift_spec = (
4172
    None, # 0
5530 mandeep.dh 4173
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
4174
    (2, TType.I64, 'itemId', None, None, ), # 2
4175
    (3, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 3
8565 amar.kumar 4176
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
2821 chandransh 4177
  )
4178
 
8565 amar.kumar 4179
  def __init__(self, itemNumber=None, itemId=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):
5530 mandeep.dh 4180
    self.itemNumber = itemNumber
4501 mandeep.dh 4181
    self.itemId = itemId
5530 mandeep.dh 4182
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 4183
    self.billingWarehouseId = billingWarehouseId
2821 chandransh 4184
 
4185
  def read(self, iprot):
4186
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4187
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4188
      return
4189
    iprot.readStructBegin()
4190
    while True:
4191
      (fname, ftype, fid) = iprot.readFieldBegin()
4192
      if ftype == TType.STOP:
4193
        break
4194
      if fid == 1:
5530 mandeep.dh 4195
        if ftype == TType.STRING:
4196
          self.itemNumber = iprot.readString();
4197
        else:
4198
          iprot.skip(ftype)
4199
      elif fid == 2:
2821 chandransh 4200
        if ftype == TType.I64:
4501 mandeep.dh 4201
          self.itemId = iprot.readI64();
2821 chandransh 4202
        else:
4203
          iprot.skip(ftype)
5530 mandeep.dh 4204
      elif fid == 3:
4501 mandeep.dh 4205
        if ftype == TType.I64:
5530 mandeep.dh 4206
          self.fulfilmentWarehouseId = iprot.readI64();
2821 chandransh 4207
        else:
4208
          iprot.skip(ftype)
8565 amar.kumar 4209
      elif fid == 4:
4210
        if ftype == TType.I64:
4211
          self.billingWarehouseId = iprot.readI64();
4212
        else:
4213
          iprot.skip(ftype)
2821 chandransh 4214
      else:
4215
        iprot.skip(ftype)
4216
      iprot.readFieldEnd()
4217
    iprot.readStructEnd()
4218
 
4219
  def write(self, oprot):
4220
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4221
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4222
      return
5361 mandeep.dh 4223
    oprot.writeStructBegin('getNonSeralizedInventoryItem_args')
5530 mandeep.dh 4224
    if self.itemNumber is not None:
4225
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
4226
      oprot.writeString(self.itemNumber)
4227
      oprot.writeFieldEnd()
4501 mandeep.dh 4228
    if self.itemId is not None:
5530 mandeep.dh 4229
      oprot.writeFieldBegin('itemId', TType.I64, 2)
4501 mandeep.dh 4230
      oprot.writeI64(self.itemId)
2821 chandransh 4231
      oprot.writeFieldEnd()
5530 mandeep.dh 4232
    if self.fulfilmentWarehouseId is not None:
4233
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 3)
4234
      oprot.writeI64(self.fulfilmentWarehouseId)
2821 chandransh 4235
      oprot.writeFieldEnd()
8565 amar.kumar 4236
    if self.billingWarehouseId is not None:
4237
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
4238
      oprot.writeI64(self.billingWarehouseId)
4239
      oprot.writeFieldEnd()
2821 chandransh 4240
    oprot.writeFieldStop()
4241
    oprot.writeStructEnd()
4242
 
3431 rajveer 4243
  def validate(self):
4244
    return
4245
 
4246
 
2821 chandransh 4247
  def __repr__(self):
4248
    L = ['%s=%r' % (key, value)
4249
      for key, value in self.__dict__.iteritems()]
4250
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4251
 
4252
  def __eq__(self, other):
4253
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4254
 
4255
  def __ne__(self, other):
4256
    return not (self == other)
4257
 
5361 mandeep.dh 4258
class getNonSeralizedInventoryItem_result:
2821 chandransh 4259
  """
4260
  Attributes:
4261
   - success
5361 mandeep.dh 4262
   - wex
2821 chandransh 4263
  """
4264
 
4265
  thrift_spec = (
5361 mandeep.dh 4266
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
4267
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
2821 chandransh 4268
  )
4269
 
5361 mandeep.dh 4270
  def __init__(self, success=None, wex=None,):
2821 chandransh 4271
    self.success = success
5361 mandeep.dh 4272
    self.wex = wex
2821 chandransh 4273
 
4274
  def read(self, iprot):
4275
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4276
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4277
      return
4278
    iprot.readStructBegin()
4279
    while True:
4280
      (fname, ftype, fid) = iprot.readFieldBegin()
4281
      if ftype == TType.STOP:
4282
        break
4283
      if fid == 0:
5361 mandeep.dh 4284
        if ftype == TType.STRUCT:
4285
          self.success = InventoryItem()
4286
          self.success.read(iprot)
2821 chandransh 4287
        else:
4288
          iprot.skip(ftype)
5361 mandeep.dh 4289
      elif fid == 1:
4290
        if ftype == TType.STRUCT:
4291
          self.wex = WarehouseServiceException()
4292
          self.wex.read(iprot)
2821 chandransh 4293
        else:
4294
          iprot.skip(ftype)
4295
      else:
4296
        iprot.skip(ftype)
4297
      iprot.readFieldEnd()
4298
    iprot.readStructEnd()
4299
 
4300
  def write(self, oprot):
4301
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4302
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4303
      return
5361 mandeep.dh 4304
    oprot.writeStructBegin('getNonSeralizedInventoryItem_result')
3431 rajveer 4305
    if self.success is not None:
5361 mandeep.dh 4306
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4307
      self.success.write(oprot)
2821 chandransh 4308
      oprot.writeFieldEnd()
5361 mandeep.dh 4309
    if self.wex is not None:
4310
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4311
      self.wex.write(oprot)
3383 chandransh 4312
      oprot.writeFieldEnd()
4313
    oprot.writeFieldStop()
4314
    oprot.writeStructEnd()
4315
 
3431 rajveer 4316
  def validate(self):
4317
    return
4318
 
4319
 
3383 chandransh 4320
  def __repr__(self):
4321
    L = ['%s=%r' % (key, value)
4322
      for key, value in self.__dict__.iteritems()]
4323
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4324
 
4325
  def __eq__(self, other):
4326
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4327
 
4328
  def __ne__(self, other):
4329
    return not (self == other)
4330
 
4501 mandeep.dh 4331
class scan_args:
2821 chandransh 4332
  """
4333
  Attributes:
5361 mandeep.dh 4334
   - inventoryItem
2821 chandransh 4335
   - type
4501 mandeep.dh 4336
   - quantity
5361 mandeep.dh 4337
   - billingWarehouseId
7410 amar.kumar 4338
   - transferLotId
2821 chandransh 4339
  """
4340
 
4341
  thrift_spec = (
4342
    None, # 0
5361 mandeep.dh 4343
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4501 mandeep.dh 4344
    (2, TType.I32, 'type', None, None, ), # 2
4345
    (3, TType.I64, 'quantity', None, None, ), # 3
5361 mandeep.dh 4346
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
7410 amar.kumar 4347
    (5, TType.I64, 'transferLotId', None, None, ), # 5
2821 chandransh 4348
  )
4349
 
7410 amar.kumar 4350
  def __init__(self, inventoryItem=None, type=None, quantity=None, billingWarehouseId=None, transferLotId=None,):
5361 mandeep.dh 4351
    self.inventoryItem = inventoryItem
2821 chandransh 4352
    self.type = type
4501 mandeep.dh 4353
    self.quantity = quantity
5361 mandeep.dh 4354
    self.billingWarehouseId = billingWarehouseId
7410 amar.kumar 4355
    self.transferLotId = transferLotId
2821 chandransh 4356
 
4357
  def read(self, iprot):
4358
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4359
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4360
      return
4361
    iprot.readStructBegin()
4362
    while True:
4363
      (fname, ftype, fid) = iprot.readFieldBegin()
4364
      if ftype == TType.STOP:
4365
        break
4366
      if fid == 1:
5361 mandeep.dh 4367
        if ftype == TType.STRUCT:
4368
          self.inventoryItem = InventoryItem()
4369
          self.inventoryItem.read(iprot)
2821 chandransh 4370
        else:
4371
          iprot.skip(ftype)
4372
      elif fid == 2:
4501 mandeep.dh 4373
        if ftype == TType.I32:
4374
          self.type = iprot.readI32();
2821 chandransh 4375
        else:
4376
          iprot.skip(ftype)
3383 chandransh 4377
      elif fid == 3:
4501 mandeep.dh 4378
        if ftype == TType.I64:
4379
          self.quantity = iprot.readI64();
2821 chandransh 4380
        else:
4381
          iprot.skip(ftype)
3383 chandransh 4382
      elif fid == 4:
4501 mandeep.dh 4383
        if ftype == TType.I64:
5361 mandeep.dh 4384
          self.billingWarehouseId = iprot.readI64();
2821 chandransh 4385
        else:
4386
          iprot.skip(ftype)
7410 amar.kumar 4387
      elif fid == 5:
4388
        if ftype == TType.I64:
4389
          self.transferLotId = iprot.readI64();
4390
        else:
4391
          iprot.skip(ftype)
2821 chandransh 4392
      else:
4393
        iprot.skip(ftype)
4394
      iprot.readFieldEnd()
4395
    iprot.readStructEnd()
4396
 
4397
  def write(self, oprot):
4398
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4399
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4400
      return
4501 mandeep.dh 4401
    oprot.writeStructBegin('scan_args')
5361 mandeep.dh 4402
    if self.inventoryItem is not None:
4403
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
4404
      self.inventoryItem.write(oprot)
2821 chandransh 4405
      oprot.writeFieldEnd()
3431 rajveer 4406
    if self.type is not None:
4501 mandeep.dh 4407
      oprot.writeFieldBegin('type', TType.I32, 2)
2821 chandransh 4408
      oprot.writeI32(self.type)
4409
      oprot.writeFieldEnd()
4501 mandeep.dh 4410
    if self.quantity is not None:
4411
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4412
      oprot.writeI64(self.quantity)
4413
      oprot.writeFieldEnd()
5361 mandeep.dh 4414
    if self.billingWarehouseId is not None:
4415
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
4416
      oprot.writeI64(self.billingWarehouseId)
4501 mandeep.dh 4417
      oprot.writeFieldEnd()
7410 amar.kumar 4418
    if self.transferLotId is not None:
4419
      oprot.writeFieldBegin('transferLotId', TType.I64, 5)
4420
      oprot.writeI64(self.transferLotId)
4421
      oprot.writeFieldEnd()
2821 chandransh 4422
    oprot.writeFieldStop()
4423
    oprot.writeStructEnd()
4424
 
3431 rajveer 4425
  def validate(self):
4426
    return
4427
 
4428
 
2821 chandransh 4429
  def __repr__(self):
4430
    L = ['%s=%r' % (key, value)
4431
      for key, value in self.__dict__.iteritems()]
4432
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4433
 
4434
  def __eq__(self, other):
4435
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4436
 
4437
  def __ne__(self, other):
4438
    return not (self == other)
4439
 
4501 mandeep.dh 4440
class scan_result:
2821 chandransh 4441
  """
4442
  Attributes:
4443
   - wex
4444
  """
4445
 
4446
  thrift_spec = (
4447
    None, # 0
4448
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4449
  )
4450
 
4451
  def __init__(self, wex=None,):
4452
    self.wex = wex
4453
 
4454
  def read(self, iprot):
4455
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4456
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4457
      return
4458
    iprot.readStructBegin()
4459
    while True:
4460
      (fname, ftype, fid) = iprot.readFieldBegin()
4461
      if ftype == TType.STOP:
4462
        break
4463
      if fid == 1:
4464
        if ftype == TType.STRUCT:
4465
          self.wex = WarehouseServiceException()
4466
          self.wex.read(iprot)
4467
        else:
4468
          iprot.skip(ftype)
4469
      else:
4470
        iprot.skip(ftype)
4471
      iprot.readFieldEnd()
4472
    iprot.readStructEnd()
4473
 
4474
  def write(self, oprot):
4475
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4476
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4477
      return
4501 mandeep.dh 4478
    oprot.writeStructBegin('scan_result')
3431 rajveer 4479
    if self.wex is not None:
2821 chandransh 4480
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4481
      self.wex.write(oprot)
4482
      oprot.writeFieldEnd()
4483
    oprot.writeFieldStop()
4484
    oprot.writeStructEnd()
4485
 
3431 rajveer 4486
  def validate(self):
4487
    return
4488
 
4489
 
2821 chandransh 4490
  def __repr__(self):
4491
    L = ['%s=%r' % (key, value)
4492
      for key, value in self.__dict__.iteritems()]
4493
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4494
 
4495
  def __eq__(self, other):
4496
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4497
 
4498
  def __ne__(self, other):
4499
    return not (self == other)
4500
 
10489 amar.kumar 4501
class genericScan_args:
4502
  """
4503
  Attributes:
4504
   - inventoryItem
4505
   - scan
4506
  """
4507
 
4508
  thrift_spec = (
4509
    None, # 0
4510
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4511
    (2, TType.STRUCT, 'scan', (Scan, Scan.thrift_spec), None, ), # 2
4512
  )
4513
 
4514
  def __init__(self, inventoryItem=None, scan=None,):
4515
    self.inventoryItem = inventoryItem
4516
    self.scan = scan
4517
 
4518
  def read(self, iprot):
4519
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4520
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4521
      return
4522
    iprot.readStructBegin()
4523
    while True:
4524
      (fname, ftype, fid) = iprot.readFieldBegin()
4525
      if ftype == TType.STOP:
4526
        break
4527
      if fid == 1:
4528
        if ftype == TType.STRUCT:
4529
          self.inventoryItem = InventoryItem()
4530
          self.inventoryItem.read(iprot)
4531
        else:
4532
          iprot.skip(ftype)
4533
      elif fid == 2:
4534
        if ftype == TType.STRUCT:
4535
          self.scan = Scan()
4536
          self.scan.read(iprot)
4537
        else:
4538
          iprot.skip(ftype)
4539
      else:
4540
        iprot.skip(ftype)
4541
      iprot.readFieldEnd()
4542
    iprot.readStructEnd()
4543
 
4544
  def write(self, oprot):
4545
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4546
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4547
      return
4548
    oprot.writeStructBegin('genericScan_args')
4549
    if self.inventoryItem is not None:
4550
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
4551
      self.inventoryItem.write(oprot)
4552
      oprot.writeFieldEnd()
4553
    if self.scan is not None:
4554
      oprot.writeFieldBegin('scan', TType.STRUCT, 2)
4555
      self.scan.write(oprot)
4556
      oprot.writeFieldEnd()
4557
    oprot.writeFieldStop()
4558
    oprot.writeStructEnd()
4559
 
4560
  def validate(self):
4561
    return
4562
 
4563
 
4564
  def __repr__(self):
4565
    L = ['%s=%r' % (key, value)
4566
      for key, value in self.__dict__.iteritems()]
4567
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4568
 
4569
  def __eq__(self, other):
4570
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4571
 
4572
  def __ne__(self, other):
4573
    return not (self == other)
4574
 
4575
class genericScan_result:
4576
  """
4577
  Attributes:
4578
   - wex
4579
  """
4580
 
4581
  thrift_spec = (
4582
    None, # 0
4583
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4584
  )
4585
 
4586
  def __init__(self, wex=None,):
4587
    self.wex = wex
4588
 
4589
  def read(self, iprot):
4590
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4591
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4592
      return
4593
    iprot.readStructBegin()
4594
    while True:
4595
      (fname, ftype, fid) = iprot.readFieldBegin()
4596
      if ftype == TType.STOP:
4597
        break
4598
      if fid == 1:
4599
        if ftype == TType.STRUCT:
4600
          self.wex = WarehouseServiceException()
4601
          self.wex.read(iprot)
4602
        else:
4603
          iprot.skip(ftype)
4604
      else:
4605
        iprot.skip(ftype)
4606
      iprot.readFieldEnd()
4607
    iprot.readStructEnd()
4608
 
4609
  def write(self, oprot):
4610
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4611
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4612
      return
4613
    oprot.writeStructBegin('genericScan_result')
4614
    if self.wex is not None:
4615
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4616
      self.wex.write(oprot)
4617
      oprot.writeFieldEnd()
4618
    oprot.writeFieldStop()
4619
    oprot.writeStructEnd()
4620
 
4621
  def validate(self):
4622
    return
4623
 
4624
 
4625
  def __repr__(self):
4626
    L = ['%s=%r' % (key, value)
4627
      for key, value in self.__dict__.iteritems()]
4628
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4629
 
4630
  def __eq__(self, other):
4631
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4632
 
4633
  def __ne__(self, other):
4634
    return not (self == other)
4635
 
4501 mandeep.dh 4636
class scanSerializedItemForOrder_args:
2821 chandransh 4637
  """
4638
  Attributes:
4555 mandeep.dh 4639
   - serialNumber
2821 chandransh 4640
   - type
4501 mandeep.dh 4641
   - orderId
5110 mandeep.dh 4642
   - fulfilmentWarehouseId
4643
   - quantity
4644
   - billingWarehouseId
2821 chandransh 4645
  """
4646
 
4647
  thrift_spec = (
4648
    None, # 0
4555 mandeep.dh 4649
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
4501 mandeep.dh 4650
    (2, TType.I32, 'type', None, None, ), # 2
4651
    (3, TType.I64, 'orderId', None, None, ), # 3
5110 mandeep.dh 4652
    (4, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 4
4653
    (5, TType.DOUBLE, 'quantity', None, None, ), # 5
4654
    (6, TType.I64, 'billingWarehouseId', None, None, ), # 6
2821 chandransh 4655
  )
4656
 
5110 mandeep.dh 4657
  def __init__(self, serialNumber=None, type=None, orderId=None, fulfilmentWarehouseId=None, quantity=None, billingWarehouseId=None,):
4555 mandeep.dh 4658
    self.serialNumber = serialNumber
2821 chandransh 4659
    self.type = type
4501 mandeep.dh 4660
    self.orderId = orderId
5110 mandeep.dh 4661
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
4662
    self.quantity = quantity
4663
    self.billingWarehouseId = billingWarehouseId
2821 chandransh 4664
 
4665
  def read(self, iprot):
4666
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4667
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4668
      return
4669
    iprot.readStructBegin()
4670
    while True:
4671
      (fname, ftype, fid) = iprot.readFieldBegin()
4672
      if ftype == TType.STOP:
4673
        break
4674
      if fid == 1:
4555 mandeep.dh 4675
        if ftype == TType.STRING:
4676
          self.serialNumber = iprot.readString();
2821 chandransh 4677
        else:
4678
          iprot.skip(ftype)
4679
      elif fid == 2:
4501 mandeep.dh 4680
        if ftype == TType.I32:
4681
          self.type = iprot.readI32();
2821 chandransh 4682
        else:
4683
          iprot.skip(ftype)
4684
      elif fid == 3:
4501 mandeep.dh 4685
        if ftype == TType.I64:
4686
          self.orderId = iprot.readI64();
4687
        else:
4688
          iprot.skip(ftype)
4689
      elif fid == 4:
4690
        if ftype == TType.I64:
5110 mandeep.dh 4691
          self.fulfilmentWarehouseId = iprot.readI64();
4501 mandeep.dh 4692
        else:
4693
          iprot.skip(ftype)
5110 mandeep.dh 4694
      elif fid == 5:
4695
        if ftype == TType.DOUBLE:
4696
          self.quantity = iprot.readDouble();
4697
        else:
4698
          iprot.skip(ftype)
4699
      elif fid == 6:
4700
        if ftype == TType.I64:
4701
          self.billingWarehouseId = iprot.readI64();
4702
        else:
4703
          iprot.skip(ftype)
4501 mandeep.dh 4704
      else:
4705
        iprot.skip(ftype)
4706
      iprot.readFieldEnd()
4707
    iprot.readStructEnd()
4708
 
4709
  def write(self, oprot):
4710
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4711
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4712
      return
4713
    oprot.writeStructBegin('scanSerializedItemForOrder_args')
4555 mandeep.dh 4714
    if self.serialNumber is not None:
4715
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
4716
      oprot.writeString(self.serialNumber)
4501 mandeep.dh 4717
      oprot.writeFieldEnd()
4718
    if self.type is not None:
4719
      oprot.writeFieldBegin('type', TType.I32, 2)
4720
      oprot.writeI32(self.type)
4721
      oprot.writeFieldEnd()
4722
    if self.orderId is not None:
4723
      oprot.writeFieldBegin('orderId', TType.I64, 3)
4724
      oprot.writeI64(self.orderId)
4725
      oprot.writeFieldEnd()
5110 mandeep.dh 4726
    if self.fulfilmentWarehouseId is not None:
4727
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 4)
4728
      oprot.writeI64(self.fulfilmentWarehouseId)
4501 mandeep.dh 4729
      oprot.writeFieldEnd()
5110 mandeep.dh 4730
    if self.quantity is not None:
4731
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
4732
      oprot.writeDouble(self.quantity)
4733
      oprot.writeFieldEnd()
4734
    if self.billingWarehouseId is not None:
4735
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)
4736
      oprot.writeI64(self.billingWarehouseId)
4737
      oprot.writeFieldEnd()
4501 mandeep.dh 4738
    oprot.writeFieldStop()
4739
    oprot.writeStructEnd()
4740
 
4741
  def validate(self):
4742
    return
4743
 
4744
 
4745
  def __repr__(self):
4746
    L = ['%s=%r' % (key, value)
4747
      for key, value in self.__dict__.iteritems()]
4748
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4749
 
4750
  def __eq__(self, other):
4751
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4752
 
4753
  def __ne__(self, other):
4754
    return not (self == other)
4755
 
4756
class scanSerializedItemForOrder_result:
4757
  """
4758
  Attributes:
4759
   - success
4760
   - wex
4761
  """
4762
 
4763
  thrift_spec = (
4555 mandeep.dh 4764
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
4501 mandeep.dh 4765
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4766
  )
4767
 
4768
  def __init__(self, success=None, wex=None,):
4769
    self.success = success
4770
    self.wex = wex
4771
 
4772
  def read(self, iprot):
4773
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4774
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4775
      return
4776
    iprot.readStructBegin()
4777
    while True:
4778
      (fname, ftype, fid) = iprot.readFieldBegin()
4779
      if ftype == TType.STOP:
4780
        break
4781
      if fid == 0:
4555 mandeep.dh 4782
        if ftype == TType.STRUCT:
4783
          self.success = InventoryItem()
4784
          self.success.read(iprot)
4501 mandeep.dh 4785
        else:
4786
          iprot.skip(ftype)
4787
      elif fid == 1:
4788
        if ftype == TType.STRUCT:
4789
          self.wex = WarehouseServiceException()
4790
          self.wex.read(iprot)
4791
        else:
4792
          iprot.skip(ftype)
4793
      else:
4794
        iprot.skip(ftype)
4795
      iprot.readFieldEnd()
4796
    iprot.readStructEnd()
4797
 
4798
  def write(self, oprot):
4799
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4800
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4801
      return
4802
    oprot.writeStructBegin('scanSerializedItemForOrder_result')
4803
    if self.success is not None:
4555 mandeep.dh 4804
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4805
      self.success.write(oprot)
4501 mandeep.dh 4806
      oprot.writeFieldEnd()
4807
    if self.wex is not None:
4808
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4809
      self.wex.write(oprot)
4810
      oprot.writeFieldEnd()
4811
    oprot.writeFieldStop()
4812
    oprot.writeStructEnd()
4813
 
4814
  def validate(self):
4815
    return
4816
 
4817
 
4818
  def __repr__(self):
4819
    L = ['%s=%r' % (key, value)
4820
      for key, value in self.__dict__.iteritems()]
4821
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4822
 
4823
  def __eq__(self, other):
4824
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4825
 
4826
  def __ne__(self, other):
4827
    return not (self == other)
4828
 
4829
class scanForOrder_args:
4830
  """
4831
  Attributes:
5361 mandeep.dh 4832
   - inventoryItem
4501 mandeep.dh 4833
   - type
4834
   - quantity
4835
   - orderId
5110 mandeep.dh 4836
   - fulfilmentWarehouseId
5361 mandeep.dh 4837
   - billingWarehouseId
4501 mandeep.dh 4838
  """
4839
 
4840
  thrift_spec = (
4841
    None, # 0
5361 mandeep.dh 4842
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4501 mandeep.dh 4843
    (2, TType.I32, 'type', None, None, ), # 2
4844
    (3, TType.I64, 'quantity', None, None, ), # 3
4845
    (4, TType.I64, 'orderId', None, None, ), # 4
5110 mandeep.dh 4846
    (5, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 5
5361 mandeep.dh 4847
    (6, TType.I64, 'billingWarehouseId', None, None, ), # 6
4501 mandeep.dh 4848
  )
4849
 
5361 mandeep.dh 4850
  def __init__(self, inventoryItem=None, type=None, quantity=None, orderId=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):
4851
    self.inventoryItem = inventoryItem
4501 mandeep.dh 4852
    self.type = type
4853
    self.quantity = quantity
4854
    self.orderId = orderId
5110 mandeep.dh 4855
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
5361 mandeep.dh 4856
    self.billingWarehouseId = billingWarehouseId
4501 mandeep.dh 4857
 
4858
  def read(self, iprot):
4859
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4860
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4861
      return
4862
    iprot.readStructBegin()
4863
    while True:
4864
      (fname, ftype, fid) = iprot.readFieldBegin()
4865
      if ftype == TType.STOP:
4866
        break
4867
      if fid == 1:
5361 mandeep.dh 4868
        if ftype == TType.STRUCT:
4869
          self.inventoryItem = InventoryItem()
4870
          self.inventoryItem.read(iprot)
4501 mandeep.dh 4871
        else:
4872
          iprot.skip(ftype)
4873
      elif fid == 2:
2821 chandransh 4874
        if ftype == TType.I32:
4875
          self.type = iprot.readI32();
4876
        else:
4877
          iprot.skip(ftype)
4501 mandeep.dh 4878
      elif fid == 3:
4879
        if ftype == TType.I64:
4880
          self.quantity = iprot.readI64();
4881
        else:
4882
          iprot.skip(ftype)
4883
      elif fid == 4:
4884
        if ftype == TType.I64:
4885
          self.orderId = iprot.readI64();
4886
        else:
4887
          iprot.skip(ftype)
4888
      elif fid == 5:
4889
        if ftype == TType.I64:
5110 mandeep.dh 4890
          self.fulfilmentWarehouseId = iprot.readI64();
4501 mandeep.dh 4891
        else:
4892
          iprot.skip(ftype)
5361 mandeep.dh 4893
      elif fid == 6:
4894
        if ftype == TType.I64:
4895
          self.billingWarehouseId = iprot.readI64();
4896
        else:
4897
          iprot.skip(ftype)
2821 chandransh 4898
      else:
4899
        iprot.skip(ftype)
4900
      iprot.readFieldEnd()
4901
    iprot.readStructEnd()
4902
 
4903
  def write(self, oprot):
4904
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4905
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4906
      return
4501 mandeep.dh 4907
    oprot.writeStructBegin('scanForOrder_args')
5361 mandeep.dh 4908
    if self.inventoryItem is not None:
4909
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
4910
      self.inventoryItem.write(oprot)
2821 chandransh 4911
      oprot.writeFieldEnd()
3431 rajveer 4912
    if self.type is not None:
4501 mandeep.dh 4913
      oprot.writeFieldBegin('type', TType.I32, 2)
2821 chandransh 4914
      oprot.writeI32(self.type)
4915
      oprot.writeFieldEnd()
4501 mandeep.dh 4916
    if self.quantity is not None:
4917
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4918
      oprot.writeI64(self.quantity)
4919
      oprot.writeFieldEnd()
4920
    if self.orderId is not None:
4921
      oprot.writeFieldBegin('orderId', TType.I64, 4)
4922
      oprot.writeI64(self.orderId)
4923
      oprot.writeFieldEnd()
5110 mandeep.dh 4924
    if self.fulfilmentWarehouseId is not None:
4925
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 5)
4926
      oprot.writeI64(self.fulfilmentWarehouseId)
4501 mandeep.dh 4927
      oprot.writeFieldEnd()
5361 mandeep.dh 4928
    if self.billingWarehouseId is not None:
4929
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)
4930
      oprot.writeI64(self.billingWarehouseId)
4931
      oprot.writeFieldEnd()
2821 chandransh 4932
    oprot.writeFieldStop()
4933
    oprot.writeStructEnd()
4934
 
3431 rajveer 4935
  def validate(self):
4936
    return
4937
 
4938
 
2821 chandransh 4939
  def __repr__(self):
4940
    L = ['%s=%r' % (key, value)
4941
      for key, value in self.__dict__.iteritems()]
4942
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4943
 
4944
  def __eq__(self, other):
4945
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4946
 
4947
  def __ne__(self, other):
4948
    return not (self == other)
4949
 
4501 mandeep.dh 4950
class scanForOrder_result:
2821 chandransh 4951
  """
4952
  Attributes:
5361 mandeep.dh 4953
   - success
2821 chandransh 4954
   - wex
4955
  """
4956
 
4957
  thrift_spec = (
5361 mandeep.dh 4958
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
2821 chandransh 4959
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4960
  )
4961
 
5361 mandeep.dh 4962
  def __init__(self, success=None, wex=None,):
4963
    self.success = success
2821 chandransh 4964
    self.wex = wex
4965
 
4966
  def read(self, iprot):
4967
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4968
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4969
      return
4970
    iprot.readStructBegin()
4971
    while True:
4972
      (fname, ftype, fid) = iprot.readFieldBegin()
4973
      if ftype == TType.STOP:
4974
        break
5361 mandeep.dh 4975
      if fid == 0:
2821 chandransh 4976
        if ftype == TType.STRUCT:
5361 mandeep.dh 4977
          self.success = InventoryItem()
4978
          self.success.read(iprot)
4979
        else:
4980
          iprot.skip(ftype)
4981
      elif fid == 1:
4982
        if ftype == TType.STRUCT:
2821 chandransh 4983
          self.wex = WarehouseServiceException()
4984
          self.wex.read(iprot)
4985
        else:
4986
          iprot.skip(ftype)
4987
      else:
4988
        iprot.skip(ftype)
4989
      iprot.readFieldEnd()
4990
    iprot.readStructEnd()
4991
 
4992
  def write(self, oprot):
4993
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4994
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4995
      return
4501 mandeep.dh 4996
    oprot.writeStructBegin('scanForOrder_result')
5361 mandeep.dh 4997
    if self.success is not None:
4998
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4999
      self.success.write(oprot)
5000
      oprot.writeFieldEnd()
3431 rajveer 5001
    if self.wex is not None:
2821 chandransh 5002
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
5003
      self.wex.write(oprot)
5004
      oprot.writeFieldEnd()
5005
    oprot.writeFieldStop()
5006
    oprot.writeStructEnd()
5007
 
3431 rajveer 5008
  def validate(self):
5009
    return
5010
 
5011
 
2821 chandransh 5012
  def __repr__(self):
5013
    L = ['%s=%r' % (key, value)
5014
      for key, value in self.__dict__.iteritems()]
5015
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5016
 
5017
  def __eq__(self, other):
5018
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5019
 
5020
  def __ne__(self, other):
5021
    return not (self == other)
4501 mandeep.dh 5022
 
5023
class createItemNumberMapping_args:
5024
  """
5025
  Attributes:
5026
   - itemNumber
5027
   - itemId
5028
  """
5029
 
5030
  thrift_spec = (
5031
    None, # 0
5032
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
5033
    (2, TType.I64, 'itemId', None, None, ), # 2
5034
  )
5035
 
5036
  def __init__(self, itemNumber=None, itemId=None,):
5037
    self.itemNumber = itemNumber
5038
    self.itemId = itemId
5039
 
5040
  def read(self, iprot):
5041
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5042
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5043
      return
5044
    iprot.readStructBegin()
5045
    while True:
5046
      (fname, ftype, fid) = iprot.readFieldBegin()
5047
      if ftype == TType.STOP:
5048
        break
5049
      if fid == 1:
5050
        if ftype == TType.STRING:
5051
          self.itemNumber = iprot.readString();
5052
        else:
5053
          iprot.skip(ftype)
5054
      elif fid == 2:
5055
        if ftype == TType.I64:
5056
          self.itemId = iprot.readI64();
5057
        else:
5058
          iprot.skip(ftype)
5059
      else:
5060
        iprot.skip(ftype)
5061
      iprot.readFieldEnd()
5062
    iprot.readStructEnd()
5063
 
5064
  def write(self, oprot):
5065
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5066
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5067
      return
5068
    oprot.writeStructBegin('createItemNumberMapping_args')
5069
    if self.itemNumber is not None:
5070
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
5071
      oprot.writeString(self.itemNumber)
5072
      oprot.writeFieldEnd()
5073
    if self.itemId is not None:
5074
      oprot.writeFieldBegin('itemId', TType.I64, 2)
5075
      oprot.writeI64(self.itemId)
5076
      oprot.writeFieldEnd()
5077
    oprot.writeFieldStop()
5078
    oprot.writeStructEnd()
5079
 
5080
  def validate(self):
5081
    return
5082
 
5083
 
5084
  def __repr__(self):
5085
    L = ['%s=%r' % (key, value)
5086
      for key, value in self.__dict__.iteritems()]
5087
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5088
 
5089
  def __eq__(self, other):
5090
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5091
 
5092
  def __ne__(self, other):
5093
    return not (self == other)
5094
 
5095
class createItemNumberMapping_result:
5096
 
5097
  thrift_spec = (
5098
  )
5099
 
5100
  def read(self, iprot):
5101
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5102
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5103
      return
5104
    iprot.readStructBegin()
5105
    while True:
5106
      (fname, ftype, fid) = iprot.readFieldBegin()
5107
      if ftype == TType.STOP:
5108
        break
5109
      else:
5110
        iprot.skip(ftype)
5111
      iprot.readFieldEnd()
5112
    iprot.readStructEnd()
5113
 
5114
  def write(self, oprot):
5115
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5116
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5117
      return
5118
    oprot.writeStructBegin('createItemNumberMapping_result')
5119
    oprot.writeFieldStop()
5120
    oprot.writeStructEnd()
5121
 
5122
  def validate(self):
5123
    return
5124
 
5125
 
5126
  def __repr__(self):
5127
    L = ['%s=%r' % (key, value)
5128
      for key, value in self.__dict__.iteritems()]
5129
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5130
 
5131
  def __eq__(self, other):
5132
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5133
 
5134
  def __ne__(self, other):
5135
    return not (self == other)
4620 amit.gupta 5136
 
5137
class getItemNumbers_args:
5138
  """
5139
  Attributes:
5140
   - itemId
5141
  """
5142
 
5143
  thrift_spec = (
5144
    None, # 0
5145
    (1, TType.I64, 'itemId', None, None, ), # 1
5146
  )
5147
 
5148
  def __init__(self, itemId=None,):
5149
    self.itemId = itemId
5150
 
5151
  def read(self, iprot):
5152
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5153
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5154
      return
5155
    iprot.readStructBegin()
5156
    while True:
5157
      (fname, ftype, fid) = iprot.readFieldBegin()
5158
      if ftype == TType.STOP:
5159
        break
5160
      if fid == 1:
5161
        if ftype == TType.I64:
5162
          self.itemId = iprot.readI64();
5163
        else:
5164
          iprot.skip(ftype)
5165
      else:
5166
        iprot.skip(ftype)
5167
      iprot.readFieldEnd()
5168
    iprot.readStructEnd()
5169
 
5170
  def write(self, oprot):
5171
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5172
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5173
      return
5174
    oprot.writeStructBegin('getItemNumbers_args')
5175
    if self.itemId is not None:
5176
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5177
      oprot.writeI64(self.itemId)
5178
      oprot.writeFieldEnd()
5179
    oprot.writeFieldStop()
5180
    oprot.writeStructEnd()
5181
 
5182
  def validate(self):
5183
    return
5184
 
5185
 
5186
  def __repr__(self):
5187
    L = ['%s=%r' % (key, value)
5188
      for key, value in self.__dict__.iteritems()]
5189
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5190
 
5191
  def __eq__(self, other):
5192
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5193
 
5194
  def __ne__(self, other):
5195
    return not (self == other)
5196
 
5197
class getItemNumbers_result:
5198
  """
5199
  Attributes:
5200
   - success
5201
  """
5202
 
5203
  thrift_spec = (
5204
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
5205
  )
5206
 
5207
  def __init__(self, success=None,):
5208
    self.success = success
5209
 
5210
  def read(self, iprot):
5211
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5212
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5213
      return
5214
    iprot.readStructBegin()
5215
    while True:
5216
      (fname, ftype, fid) = iprot.readFieldBegin()
5217
      if ftype == TType.STOP:
5218
        break
5219
      if fid == 0:
5220
        if ftype == TType.LIST:
5221
          self.success = []
5361 mandeep.dh 5222
          (_etype3, _size0) = iprot.readListBegin()
5223
          for _i4 in xrange(_size0):
5224
            _elem5 = iprot.readString();
5225
            self.success.append(_elem5)
4620 amit.gupta 5226
          iprot.readListEnd()
5227
        else:
5228
          iprot.skip(ftype)
5229
      else:
5230
        iprot.skip(ftype)
5231
      iprot.readFieldEnd()
5232
    iprot.readStructEnd()
5233
 
5234
  def write(self, oprot):
5235
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5236
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5237
      return
5238
    oprot.writeStructBegin('getItemNumbers_result')
5239
    if self.success is not None:
5240
      oprot.writeFieldBegin('success', TType.LIST, 0)
5241
      oprot.writeListBegin(TType.STRING, len(self.success))
5361 mandeep.dh 5242
      for iter6 in self.success:
5243
        oprot.writeString(iter6)
4620 amit.gupta 5244
      oprot.writeListEnd()
5245
      oprot.writeFieldEnd()
5246
    oprot.writeFieldStop()
5247
    oprot.writeStructEnd()
5248
 
5249
  def validate(self):
5250
    return
5251
 
5252
 
5253
  def __repr__(self):
5254
    L = ['%s=%r' % (key, value)
5255
      for key, value in self.__dict__.iteritems()]
5256
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5257
 
5258
  def __eq__(self, other):
5259
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5260
 
5261
  def __ne__(self, other):
5262
    return not (self == other)
5110 mandeep.dh 5263
 
5264
class getItemIds_args:
5265
  """
5266
  Attributes:
5267
   - itemNumber
5268
  """
5269
 
5270
  thrift_spec = (
5271
    None, # 0
5272
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
5273
  )
5274
 
5275
  def __init__(self, itemNumber=None,):
5276
    self.itemNumber = itemNumber
5277
 
5278
  def read(self, iprot):
5279
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5280
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5281
      return
5282
    iprot.readStructBegin()
5283
    while True:
5284
      (fname, ftype, fid) = iprot.readFieldBegin()
5285
      if ftype == TType.STOP:
5286
        break
5287
      if fid == 1:
5288
        if ftype == TType.STRING:
5289
          self.itemNumber = iprot.readString();
5290
        else:
5291
          iprot.skip(ftype)
5292
      else:
5293
        iprot.skip(ftype)
5294
      iprot.readFieldEnd()
5295
    iprot.readStructEnd()
5296
 
5297
  def write(self, oprot):
5298
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5299
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5300
      return
5301
    oprot.writeStructBegin('getItemIds_args')
5302
    if self.itemNumber is not None:
5303
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
5304
      oprot.writeString(self.itemNumber)
5305
      oprot.writeFieldEnd()
5306
    oprot.writeFieldStop()
5307
    oprot.writeStructEnd()
5308
 
5309
  def validate(self):
5310
    return
5311
 
5312
 
5313
  def __repr__(self):
5314
    L = ['%s=%r' % (key, value)
5315
      for key, value in self.__dict__.iteritems()]
5316
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5317
 
5318
  def __eq__(self, other):
5319
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5320
 
5321
  def __ne__(self, other):
5322
    return not (self == other)
5323
 
5324
class getItemIds_result:
5325
  """
5326
  Attributes:
5327
   - success
5328
  """
5329
 
5330
  thrift_spec = (
5331
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5332
  )
5333
 
5334
  def __init__(self, success=None,):
5335
    self.success = success
5336
 
5337
  def read(self, iprot):
5338
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5339
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5340
      return
5341
    iprot.readStructBegin()
5342
    while True:
5343
      (fname, ftype, fid) = iprot.readFieldBegin()
5344
      if ftype == TType.STOP:
5345
        break
5346
      if fid == 0:
5347
        if ftype == TType.LIST:
5348
          self.success = []
5361 mandeep.dh 5349
          (_etype10, _size7) = iprot.readListBegin()
5350
          for _i11 in xrange(_size7):
5351
            _elem12 = iprot.readI64();
5352
            self.success.append(_elem12)
5110 mandeep.dh 5353
          iprot.readListEnd()
5354
        else:
5355
          iprot.skip(ftype)
5356
      else:
5357
        iprot.skip(ftype)
5358
      iprot.readFieldEnd()
5359
    iprot.readStructEnd()
5360
 
5361
  def write(self, oprot):
5362
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5363
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5364
      return
5365
    oprot.writeStructBegin('getItemIds_result')
5366
    if self.success is not None:
5367
      oprot.writeFieldBegin('success', TType.LIST, 0)
5368
      oprot.writeListBegin(TType.I64, len(self.success))
5361 mandeep.dh 5369
      for iter13 in self.success:
5370
        oprot.writeI64(iter13)
5110 mandeep.dh 5371
      oprot.writeListEnd()
5372
      oprot.writeFieldEnd()
5373
    oprot.writeFieldStop()
5374
    oprot.writeStructEnd()
5375
 
5376
  def validate(self):
5377
    return
5378
 
5379
 
5380
  def __repr__(self):
5381
    L = ['%s=%r' % (key, value)
5382
      for key, value in self.__dict__.iteritems()]
5383
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5384
 
5385
  def __eq__(self, other):
5386
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5387
 
5388
  def __ne__(self, other):
5389
    return not (self == other)
5185 mandeep.dh 5390
 
5391
class getInventoryItemsFromLastScanType_args:
5392
  """
5393
  Attributes:
5394
   - lastScanType
5395
  """
5396
 
5397
  thrift_spec = (
5398
    None, # 0
5399
    (1, TType.I32, 'lastScanType', None, None, ), # 1
5400
  )
5401
 
5402
  def __init__(self, lastScanType=None,):
5403
    self.lastScanType = lastScanType
5404
 
5405
  def read(self, iprot):
5406
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5407
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5408
      return
5409
    iprot.readStructBegin()
5410
    while True:
5411
      (fname, ftype, fid) = iprot.readFieldBegin()
5412
      if ftype == TType.STOP:
5413
        break
5414
      if fid == 1:
5415
        if ftype == TType.I32:
5416
          self.lastScanType = iprot.readI32();
5417
        else:
5418
          iprot.skip(ftype)
5419
      else:
5420
        iprot.skip(ftype)
5421
      iprot.readFieldEnd()
5422
    iprot.readStructEnd()
5423
 
5424
  def write(self, oprot):
5425
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5426
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5427
      return
5428
    oprot.writeStructBegin('getInventoryItemsFromLastScanType_args')
5429
    if self.lastScanType is not None:
5430
      oprot.writeFieldBegin('lastScanType', TType.I32, 1)
5431
      oprot.writeI32(self.lastScanType)
5432
      oprot.writeFieldEnd()
5433
    oprot.writeFieldStop()
5434
    oprot.writeStructEnd()
5435
 
5436
  def validate(self):
5437
    return
5438
 
5439
 
5440
  def __repr__(self):
5441
    L = ['%s=%r' % (key, value)
5442
      for key, value in self.__dict__.iteritems()]
5443
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5444
 
5445
  def __eq__(self, other):
5446
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5447
 
5448
  def __ne__(self, other):
5449
    return not (self == other)
5450
 
5451
class getInventoryItemsFromLastScanType_result:
5452
  """
5453
  Attributes:
5454
   - success
5455
   - wex
5456
  """
5457
 
5458
  thrift_spec = (
5459
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
5460
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
5461
  )
5462
 
5463
  def __init__(self, success=None, wex=None,):
5464
    self.success = success
5465
    self.wex = wex
5466
 
5467
  def read(self, iprot):
5468
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5469
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5470
      return
5471
    iprot.readStructBegin()
5472
    while True:
5473
      (fname, ftype, fid) = iprot.readFieldBegin()
5474
      if ftype == TType.STOP:
5475
        break
5476
      if fid == 0:
5477
        if ftype == TType.LIST:
5478
          self.success = []
5361 mandeep.dh 5479
          (_etype17, _size14) = iprot.readListBegin()
5480
          for _i18 in xrange(_size14):
5481
            _elem19 = InventoryItem()
5482
            _elem19.read(iprot)
5483
            self.success.append(_elem19)
5185 mandeep.dh 5484
          iprot.readListEnd()
5485
        else:
5486
          iprot.skip(ftype)
5487
      elif fid == 1:
5488
        if ftype == TType.STRUCT:
5489
          self.wex = WarehouseServiceException()
5490
          self.wex.read(iprot)
5491
        else:
5492
          iprot.skip(ftype)
5493
      else:
5494
        iprot.skip(ftype)
5495
      iprot.readFieldEnd()
5496
    iprot.readStructEnd()
5497
 
5498
  def write(self, oprot):
5499
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5500
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5501
      return
5502
    oprot.writeStructBegin('getInventoryItemsFromLastScanType_result')
5503
    if self.success is not None:
5504
      oprot.writeFieldBegin('success', TType.LIST, 0)
5505
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5361 mandeep.dh 5506
      for iter20 in self.success:
5507
        iter20.write(oprot)
5185 mandeep.dh 5508
      oprot.writeListEnd()
5509
      oprot.writeFieldEnd()
5510
    if self.wex is not None:
5511
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
5512
      self.wex.write(oprot)
5513
      oprot.writeFieldEnd()
5514
    oprot.writeFieldStop()
5515
    oprot.writeStructEnd()
5516
 
5517
  def validate(self):
5518
    return
5519
 
5520
 
5521
  def __repr__(self):
5522
    L = ['%s=%r' % (key, value)
5523
      for key, value in self.__dict__.iteritems()]
5524
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5525
 
5526
  def __eq__(self, other):
5527
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5528
 
5529
  def __ne__(self, other):
5530
    return not (self == other)
5531
 
5532
class getInventoryItemFromId_args:
5533
  """
5534
  Attributes:
5535
   - inventoryItemId
5536
  """
5537
 
5538
  thrift_spec = (
5539
    None, # 0
5540
    (1, TType.I64, 'inventoryItemId', None, None, ), # 1
5541
  )
5542
 
5543
  def __init__(self, inventoryItemId=None,):
5544
    self.inventoryItemId = inventoryItemId
5545
 
5546
  def read(self, iprot):
5547
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5548
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5549
      return
5550
    iprot.readStructBegin()
5551
    while True:
5552
      (fname, ftype, fid) = iprot.readFieldBegin()
5553
      if ftype == TType.STOP:
5554
        break
5555
      if fid == 1:
5556
        if ftype == TType.I64:
5557
          self.inventoryItemId = iprot.readI64();
5558
        else:
5559
          iprot.skip(ftype)
5560
      else:
5561
        iprot.skip(ftype)
5562
      iprot.readFieldEnd()
5563
    iprot.readStructEnd()
5564
 
5565
  def write(self, oprot):
5566
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5567
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5568
      return
5569
    oprot.writeStructBegin('getInventoryItemFromId_args')
5570
    if self.inventoryItemId is not None:
5571
      oprot.writeFieldBegin('inventoryItemId', TType.I64, 1)
5572
      oprot.writeI64(self.inventoryItemId)
5573
      oprot.writeFieldEnd()
5574
    oprot.writeFieldStop()
5575
    oprot.writeStructEnd()
5576
 
5577
  def validate(self):
5578
    return
5579
 
5580
 
5581
  def __repr__(self):
5582
    L = ['%s=%r' % (key, value)
5583
      for key, value in self.__dict__.iteritems()]
5584
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5585
 
5586
  def __eq__(self, other):
5587
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5588
 
5589
  def __ne__(self, other):
5590
    return not (self == other)
5591
 
5592
class getInventoryItemFromId_result:
5593
  """
5594
  Attributes:
5595
   - success
5596
   - wex
5597
  """
5598
 
5599
  thrift_spec = (
5600
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
5601
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
5602
  )
5603
 
5604
  def __init__(self, success=None, wex=None,):
5605
    self.success = success
5606
    self.wex = wex
5607
 
5608
  def read(self, iprot):
5609
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5610
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5611
      return
5612
    iprot.readStructBegin()
5613
    while True:
5614
      (fname, ftype, fid) = iprot.readFieldBegin()
5615
      if ftype == TType.STOP:
5616
        break
5617
      if fid == 0:
5618
        if ftype == TType.STRUCT:
5619
          self.success = InventoryItem()
5620
          self.success.read(iprot)
5621
        else:
5622
          iprot.skip(ftype)
5623
      elif fid == 1:
5624
        if ftype == TType.STRUCT:
5625
          self.wex = WarehouseServiceException()
5626
          self.wex.read(iprot)
5627
        else:
5628
          iprot.skip(ftype)
5629
      else:
5630
        iprot.skip(ftype)
5631
      iprot.readFieldEnd()
5632
    iprot.readStructEnd()
5633
 
5634
  def write(self, oprot):
5635
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5636
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5637
      return
5638
    oprot.writeStructBegin('getInventoryItemFromId_result')
5639
    if self.success is not None:
5640
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5641
      self.success.write(oprot)
5642
      oprot.writeFieldEnd()
5643
    if self.wex is not None:
5644
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
5645
      self.wex.write(oprot)
5646
      oprot.writeFieldEnd()
5647
    oprot.writeFieldStop()
5648
    oprot.writeStructEnd()
5649
 
5650
  def validate(self):
5651
    return
5652
 
5653
 
5654
  def __repr__(self):
5655
    L = ['%s=%r' % (key, value)
5656
      for key, value in self.__dict__.iteritems()]
5657
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5658
 
5659
  def __eq__(self, other):
5660
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5661
 
5662
  def __ne__(self, other):
5663
    return not (self == other)
5372 mandeep.dh 5664
 
5665
class getPurchaseScans_args:
5666
  """
5667
  Attributes:
5668
   - startDate
5669
   - endDate
5670
  """
5671
 
5672
  thrift_spec = (
5673
    None, # 0
5674
    (1, TType.I64, 'startDate', None, None, ), # 1
5675
    (2, TType.I64, 'endDate', None, None, ), # 2
5676
  )
5677
 
5678
  def __init__(self, startDate=None, endDate=None,):
5679
    self.startDate = startDate
5680
    self.endDate = endDate
5681
 
5682
  def read(self, iprot):
5683
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5684
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5685
      return
5686
    iprot.readStructBegin()
5687
    while True:
5688
      (fname, ftype, fid) = iprot.readFieldBegin()
5689
      if ftype == TType.STOP:
5690
        break
5691
      if fid == 1:
5692
        if ftype == TType.I64:
5693
          self.startDate = iprot.readI64();
5694
        else:
5695
          iprot.skip(ftype)
5696
      elif fid == 2:
5697
        if ftype == TType.I64:
5698
          self.endDate = iprot.readI64();
5699
        else:
5700
          iprot.skip(ftype)
5701
      else:
5702
        iprot.skip(ftype)
5703
      iprot.readFieldEnd()
5704
    iprot.readStructEnd()
5705
 
5706
  def write(self, oprot):
5707
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5708
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5709
      return
5710
    oprot.writeStructBegin('getPurchaseScans_args')
5711
    if self.startDate is not None:
5712
      oprot.writeFieldBegin('startDate', TType.I64, 1)
5713
      oprot.writeI64(self.startDate)
5714
      oprot.writeFieldEnd()
5715
    if self.endDate is not None:
5716
      oprot.writeFieldBegin('endDate', TType.I64, 2)
5717
      oprot.writeI64(self.endDate)
5718
      oprot.writeFieldEnd()
5719
    oprot.writeFieldStop()
5720
    oprot.writeStructEnd()
5721
 
5722
  def validate(self):
5723
    return
5724
 
5725
 
5726
  def __repr__(self):
5727
    L = ['%s=%r' % (key, value)
5728
      for key, value in self.__dict__.iteritems()]
5729
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5730
 
5731
  def __eq__(self, other):
5732
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5733
 
5734
  def __ne__(self, other):
5735
    return not (self == other)
5736
 
5737
class getPurchaseScans_result:
5738
  """
5739
  Attributes:
5740
   - success
5741
  """
5742
 
5743
  thrift_spec = (
5744
    (0, TType.LIST, 'success', (TType.STRUCT,(DetailedPurchaseScan, DetailedPurchaseScan.thrift_spec)), None, ), # 0
5745
  )
5746
 
5747
  def __init__(self, success=None,):
5748
    self.success = success
5749
 
5750
  def read(self, iprot):
5751
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5752
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5753
      return
5754
    iprot.readStructBegin()
5755
    while True:
5756
      (fname, ftype, fid) = iprot.readFieldBegin()
5757
      if ftype == TType.STOP:
5758
        break
5759
      if fid == 0:
5760
        if ftype == TType.LIST:
5761
          self.success = []
5762
          (_etype24, _size21) = iprot.readListBegin()
5763
          for _i25 in xrange(_size21):
5764
            _elem26 = DetailedPurchaseScan()
5765
            _elem26.read(iprot)
5766
            self.success.append(_elem26)
5767
          iprot.readListEnd()
5768
        else:
5769
          iprot.skip(ftype)
5770
      else:
5771
        iprot.skip(ftype)
5772
      iprot.readFieldEnd()
5773
    iprot.readStructEnd()
5774
 
5775
  def write(self, oprot):
5776
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5777
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5778
      return
5779
    oprot.writeStructBegin('getPurchaseScans_result')
5780
    if self.success is not None:
5781
      oprot.writeFieldBegin('success', TType.LIST, 0)
5782
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5783
      for iter27 in self.success:
5784
        iter27.write(oprot)
5785
      oprot.writeListEnd()
5786
      oprot.writeFieldEnd()
5787
    oprot.writeFieldStop()
5788
    oprot.writeStructEnd()
5789
 
5790
  def validate(self):
5791
    return
5792
 
5793
 
5794
  def __repr__(self):
5795
    L = ['%s=%r' % (key, value)
5796
      for key, value in self.__dict__.iteritems()]
5797
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5798
 
5799
  def __eq__(self, other):
5800
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5801
 
5802
  def __ne__(self, other):
5803
    return not (self == other)
5496 mandeep.dh 5804
 
7216 amar.kumar 5805
class getPurchaseScansByGrnDate_args:
5806
  """
5807
  Attributes:
5808
   - startDate
5809
   - endDate
5810
  """
5811
 
5812
  thrift_spec = (
5813
    None, # 0
5814
    (1, TType.I64, 'startDate', None, None, ), # 1
5815
    (2, TType.I64, 'endDate', None, None, ), # 2
5816
  )
5817
 
5818
  def __init__(self, startDate=None, endDate=None,):
5819
    self.startDate = startDate
5820
    self.endDate = endDate
5821
 
5822
  def read(self, iprot):
5823
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5824
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5825
      return
5826
    iprot.readStructBegin()
5827
    while True:
5828
      (fname, ftype, fid) = iprot.readFieldBegin()
5829
      if ftype == TType.STOP:
5830
        break
5831
      if fid == 1:
5832
        if ftype == TType.I64:
5833
          self.startDate = iprot.readI64();
5834
        else:
5835
          iprot.skip(ftype)
5836
      elif fid == 2:
5837
        if ftype == TType.I64:
5838
          self.endDate = iprot.readI64();
5839
        else:
5840
          iprot.skip(ftype)
5841
      else:
5842
        iprot.skip(ftype)
5843
      iprot.readFieldEnd()
5844
    iprot.readStructEnd()
5845
 
5846
  def write(self, oprot):
5847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5849
      return
5850
    oprot.writeStructBegin('getPurchaseScansByGrnDate_args')
5851
    if self.startDate is not None:
5852
      oprot.writeFieldBegin('startDate', TType.I64, 1)
5853
      oprot.writeI64(self.startDate)
5854
      oprot.writeFieldEnd()
5855
    if self.endDate is not None:
5856
      oprot.writeFieldBegin('endDate', TType.I64, 2)
5857
      oprot.writeI64(self.endDate)
5858
      oprot.writeFieldEnd()
5859
    oprot.writeFieldStop()
5860
    oprot.writeStructEnd()
5861
 
5862
  def validate(self):
5863
    return
5864
 
5865
 
5866
  def __repr__(self):
5867
    L = ['%s=%r' % (key, value)
5868
      for key, value in self.__dict__.iteritems()]
5869
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5870
 
5871
  def __eq__(self, other):
5872
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5873
 
5874
  def __ne__(self, other):
5875
    return not (self == other)
5876
 
5877
class getPurchaseScansByGrnDate_result:
5878
  """
5879
  Attributes:
5880
   - success
5881
  """
5882
 
5883
  thrift_spec = (
5884
    (0, TType.LIST, 'success', (TType.STRUCT,(DetailedPurchaseScan, DetailedPurchaseScan.thrift_spec)), None, ), # 0
5885
  )
5886
 
5887
  def __init__(self, success=None,):
5888
    self.success = success
5889
 
5890
  def read(self, iprot):
5891
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5892
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5893
      return
5894
    iprot.readStructBegin()
5895
    while True:
5896
      (fname, ftype, fid) = iprot.readFieldBegin()
5897
      if ftype == TType.STOP:
5898
        break
5899
      if fid == 0:
5900
        if ftype == TType.LIST:
5901
          self.success = []
5902
          (_etype31, _size28) = iprot.readListBegin()
5903
          for _i32 in xrange(_size28):
5904
            _elem33 = DetailedPurchaseScan()
5905
            _elem33.read(iprot)
5906
            self.success.append(_elem33)
5907
          iprot.readListEnd()
5908
        else:
5909
          iprot.skip(ftype)
5910
      else:
5911
        iprot.skip(ftype)
5912
      iprot.readFieldEnd()
5913
    iprot.readStructEnd()
5914
 
5915
  def write(self, oprot):
5916
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5917
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5918
      return
5919
    oprot.writeStructBegin('getPurchaseScansByGrnDate_result')
5920
    if self.success is not None:
5921
      oprot.writeFieldBegin('success', TType.LIST, 0)
5922
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5923
      for iter34 in self.success:
5924
        iter34.write(oprot)
5925
      oprot.writeListEnd()
5926
      oprot.writeFieldEnd()
5927
    oprot.writeFieldStop()
5928
    oprot.writeStructEnd()
5929
 
5930
  def validate(self):
5931
    return
5932
 
5933
 
5934
  def __repr__(self):
5935
    L = ['%s=%r' % (key, value)
5936
      for key, value in self.__dict__.iteritems()]
5937
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5938
 
5939
  def __eq__(self, other):
5940
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5941
 
5942
  def __ne__(self, other):
5943
    return not (self == other)
5944
 
10407 amar.kumar 5945
class getEmptyGrnsByDate_args:
5946
  """
5947
  Attributes:
5948
   - startDate
5949
   - endDate
5950
  """
5951
 
5952
  thrift_spec = (
5953
    None, # 0
5954
    (1, TType.I64, 'startDate', None, None, ), # 1
5955
    (2, TType.I64, 'endDate', None, None, ), # 2
5956
  )
5957
 
5958
  def __init__(self, startDate=None, endDate=None,):
5959
    self.startDate = startDate
5960
    self.endDate = endDate
5961
 
5962
  def read(self, iprot):
5963
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5964
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5965
      return
5966
    iprot.readStructBegin()
5967
    while True:
5968
      (fname, ftype, fid) = iprot.readFieldBegin()
5969
      if ftype == TType.STOP:
5970
        break
5971
      if fid == 1:
5972
        if ftype == TType.I64:
5973
          self.startDate = iprot.readI64();
5974
        else:
5975
          iprot.skip(ftype)
5976
      elif fid == 2:
5977
        if ftype == TType.I64:
5978
          self.endDate = iprot.readI64();
5979
        else:
5980
          iprot.skip(ftype)
5981
      else:
5982
        iprot.skip(ftype)
5983
      iprot.readFieldEnd()
5984
    iprot.readStructEnd()
5985
 
5986
  def write(self, oprot):
5987
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5988
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5989
      return
5990
    oprot.writeStructBegin('getEmptyGrnsByDate_args')
5991
    if self.startDate is not None:
5992
      oprot.writeFieldBegin('startDate', TType.I64, 1)
5993
      oprot.writeI64(self.startDate)
5994
      oprot.writeFieldEnd()
5995
    if self.endDate is not None:
5996
      oprot.writeFieldBegin('endDate', TType.I64, 2)
5997
      oprot.writeI64(self.endDate)
5998
      oprot.writeFieldEnd()
5999
    oprot.writeFieldStop()
6000
    oprot.writeStructEnd()
6001
 
6002
  def validate(self):
6003
    return
6004
 
6005
 
6006
  def __repr__(self):
6007
    L = ['%s=%r' % (key, value)
6008
      for key, value in self.__dict__.iteritems()]
6009
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6010
 
6011
  def __eq__(self, other):
6012
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6013
 
6014
  def __ne__(self, other):
6015
    return not (self == other)
6016
 
6017
class getEmptyGrnsByDate_result:
6018
  """
6019
  Attributes:
6020
   - success
6021
  """
6022
 
6023
  thrift_spec = (
6024
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6025
  )
6026
 
6027
  def __init__(self, success=None,):
6028
    self.success = success
6029
 
6030
  def read(self, iprot):
6031
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6032
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6033
      return
6034
    iprot.readStructBegin()
6035
    while True:
6036
      (fname, ftype, fid) = iprot.readFieldBegin()
6037
      if ftype == TType.STOP:
6038
        break
6039
      if fid == 0:
6040
        if ftype == TType.LIST:
6041
          self.success = []
6042
          (_etype38, _size35) = iprot.readListBegin()
6043
          for _i39 in xrange(_size35):
6044
            _elem40 = iprot.readI64();
6045
            self.success.append(_elem40)
6046
          iprot.readListEnd()
6047
        else:
6048
          iprot.skip(ftype)
6049
      else:
6050
        iprot.skip(ftype)
6051
      iprot.readFieldEnd()
6052
    iprot.readStructEnd()
6053
 
6054
  def write(self, oprot):
6055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6057
      return
6058
    oprot.writeStructBegin('getEmptyGrnsByDate_result')
6059
    if self.success is not None:
6060
      oprot.writeFieldBegin('success', TType.LIST, 0)
6061
      oprot.writeListBegin(TType.I64, len(self.success))
6062
      for iter41 in self.success:
6063
        oprot.writeI64(iter41)
6064
      oprot.writeListEnd()
6065
      oprot.writeFieldEnd()
6066
    oprot.writeFieldStop()
6067
    oprot.writeStructEnd()
6068
 
6069
  def validate(self):
6070
    return
6071
 
6072
 
6073
  def __repr__(self):
6074
    L = ['%s=%r' % (key, value)
6075
      for key, value in self.__dict__.iteritems()]
6076
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6077
 
6078
  def __eq__(self, other):
6079
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6080
 
6081
  def __ne__(self, other):
6082
    return not (self == other)
6083
 
5496 mandeep.dh 6084
class fetchScansPerInvoiceNumber_args:
6085
  """
6086
  Attributes:
6087
   - date
6088
  """
6089
 
6090
  thrift_spec = (
6091
    None, # 0
6092
    (1, TType.I64, 'date', None, None, ), # 1
6093
  )
6094
 
6095
  def __init__(self, date=None,):
6096
    self.date = date
6097
 
6098
  def read(self, iprot):
6099
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6100
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6101
      return
6102
    iprot.readStructBegin()
6103
    while True:
6104
      (fname, ftype, fid) = iprot.readFieldBegin()
6105
      if ftype == TType.STOP:
6106
        break
6107
      if fid == 1:
6108
        if ftype == TType.I64:
6109
          self.date = iprot.readI64();
6110
        else:
6111
          iprot.skip(ftype)
6112
      else:
6113
        iprot.skip(ftype)
6114
      iprot.readFieldEnd()
6115
    iprot.readStructEnd()
6116
 
6117
  def write(self, oprot):
6118
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6119
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6120
      return
6121
    oprot.writeStructBegin('fetchScansPerInvoiceNumber_args')
6122
    if self.date is not None:
6123
      oprot.writeFieldBegin('date', TType.I64, 1)
6124
      oprot.writeI64(self.date)
6125
      oprot.writeFieldEnd()
6126
    oprot.writeFieldStop()
6127
    oprot.writeStructEnd()
6128
 
6129
  def validate(self):
6130
    return
6131
 
6132
 
6133
  def __repr__(self):
6134
    L = ['%s=%r' % (key, value)
6135
      for key, value in self.__dict__.iteritems()]
6136
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6137
 
6138
  def __eq__(self, other):
6139
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6140
 
6141
  def __ne__(self, other):
6142
    return not (self == other)
6143
 
6144
class fetchScansPerInvoiceNumber_result:
6145
  """
6146
  Attributes:
6147
   - success
6148
  """
6149
 
6150
  thrift_spec = (
6151
    (0, TType.LIST, 'success', (TType.STRUCT,(InvoiceScan, InvoiceScan.thrift_spec)), None, ), # 0
6152
  )
6153
 
6154
  def __init__(self, success=None,):
6155
    self.success = success
6156
 
6157
  def read(self, iprot):
6158
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6159
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6160
      return
6161
    iprot.readStructBegin()
6162
    while True:
6163
      (fname, ftype, fid) = iprot.readFieldBegin()
6164
      if ftype == TType.STOP:
6165
        break
6166
      if fid == 0:
6167
        if ftype == TType.LIST:
6168
          self.success = []
10407 amar.kumar 6169
          (_etype45, _size42) = iprot.readListBegin()
6170
          for _i46 in xrange(_size42):
6171
            _elem47 = InvoiceScan()
6172
            _elem47.read(iprot)
6173
            self.success.append(_elem47)
5496 mandeep.dh 6174
          iprot.readListEnd()
6175
        else:
6176
          iprot.skip(ftype)
6177
      else:
6178
        iprot.skip(ftype)
6179
      iprot.readFieldEnd()
6180
    iprot.readStructEnd()
6181
 
6182
  def write(self, oprot):
6183
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6184
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6185
      return
6186
    oprot.writeStructBegin('fetchScansPerInvoiceNumber_result')
6187
    if self.success is not None:
6188
      oprot.writeFieldBegin('success', TType.LIST, 0)
6189
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6190
      for iter48 in self.success:
6191
        iter48.write(oprot)
5496 mandeep.dh 6192
      oprot.writeListEnd()
6193
      oprot.writeFieldEnd()
6194
    oprot.writeFieldStop()
6195
    oprot.writeStructEnd()
6196
 
6197
  def validate(self):
6198
    return
6199
 
6200
 
6201
  def __repr__(self):
6202
    L = ['%s=%r' % (key, value)
6203
      for key, value in self.__dict__.iteritems()]
6204
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6205
 
6206
  def __eq__(self, other):
6207
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6208
 
6209
  def __ne__(self, other):
6210
    return not (self == other)
5620 mandeep.dh 6211
 
6212
class getInventoryItemFromOrder_args:
6213
  """
6214
  Attributes:
6215
   - orderId
6216
  """
6217
 
6218
  thrift_spec = (
6219
    None, # 0
6220
    (1, TType.I64, 'orderId', None, None, ), # 1
6221
  )
6222
 
6223
  def __init__(self, orderId=None,):
6224
    self.orderId = orderId
6225
 
6226
  def read(self, iprot):
6227
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6228
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6229
      return
6230
    iprot.readStructBegin()
6231
    while True:
6232
      (fname, ftype, fid) = iprot.readFieldBegin()
6233
      if ftype == TType.STOP:
6234
        break
6235
      if fid == 1:
6236
        if ftype == TType.I64:
6237
          self.orderId = iprot.readI64();
6238
        else:
6239
          iprot.skip(ftype)
6240
      else:
6241
        iprot.skip(ftype)
6242
      iprot.readFieldEnd()
6243
    iprot.readStructEnd()
6244
 
6245
  def write(self, oprot):
6246
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6247
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6248
      return
6249
    oprot.writeStructBegin('getInventoryItemFromOrder_args')
6250
    if self.orderId is not None:
6251
      oprot.writeFieldBegin('orderId', TType.I64, 1)
6252
      oprot.writeI64(self.orderId)
6253
      oprot.writeFieldEnd()
6254
    oprot.writeFieldStop()
6255
    oprot.writeStructEnd()
6256
 
6257
  def validate(self):
6258
    return
6259
 
6260
 
6261
  def __repr__(self):
6262
    L = ['%s=%r' % (key, value)
6263
      for key, value in self.__dict__.iteritems()]
6264
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6265
 
6266
  def __eq__(self, other):
6267
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6268
 
6269
  def __ne__(self, other):
6270
    return not (self == other)
6271
 
6272
class getInventoryItemFromOrder_result:
6273
  """
6274
  Attributes:
6275
   - success
6276
   - we
6277
  """
6278
 
6279
  thrift_spec = (
6280
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
6281
    (1, TType.STRUCT, 'we', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6282
  )
6283
 
6284
  def __init__(self, success=None, we=None,):
6285
    self.success = success
6286
    self.we = we
6287
 
6288
  def read(self, iprot):
6289
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6290
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6291
      return
6292
    iprot.readStructBegin()
6293
    while True:
6294
      (fname, ftype, fid) = iprot.readFieldBegin()
6295
      if ftype == TType.STOP:
6296
        break
6297
      if fid == 0:
6298
        if ftype == TType.STRUCT:
6299
          self.success = InventoryItem()
6300
          self.success.read(iprot)
6301
        else:
6302
          iprot.skip(ftype)
6303
      elif fid == 1:
6304
        if ftype == TType.STRUCT:
6305
          self.we = WarehouseServiceException()
6306
          self.we.read(iprot)
6307
        else:
6308
          iprot.skip(ftype)
6309
      else:
6310
        iprot.skip(ftype)
6311
      iprot.readFieldEnd()
6312
    iprot.readStructEnd()
6313
 
6314
  def write(self, oprot):
6315
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6316
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6317
      return
6318
    oprot.writeStructBegin('getInventoryItemFromOrder_result')
6319
    if self.success is not None:
6320
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6321
      self.success.write(oprot)
6322
      oprot.writeFieldEnd()
6323
    if self.we is not None:
6324
      oprot.writeFieldBegin('we', TType.STRUCT, 1)
6325
      self.we.write(oprot)
6326
      oprot.writeFieldEnd()
6327
    oprot.writeFieldStop()
6328
    oprot.writeStructEnd()
6329
 
6330
  def validate(self):
6331
    return
6332
 
6333
 
6334
  def __repr__(self):
6335
    L = ['%s=%r' % (key, value)
6336
      for key, value in self.__dict__.iteritems()]
6337
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6338
 
6339
  def __eq__(self, other):
6340
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6341
 
6342
  def __ne__(self, other):
6343
    return not (self == other)
5711 mandeep.dh 6344
 
6345
class getInventoryAge_args:
6346
 
6347
  thrift_spec = (
6348
  )
6349
 
6350
  def read(self, iprot):
6351
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6352
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6353
      return
6354
    iprot.readStructBegin()
6355
    while True:
6356
      (fname, ftype, fid) = iprot.readFieldBegin()
6357
      if ftype == TType.STOP:
6358
        break
6359
      else:
6360
        iprot.skip(ftype)
6361
      iprot.readFieldEnd()
6362
    iprot.readStructEnd()
6363
 
6364
  def write(self, oprot):
6365
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6366
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6367
      return
6368
    oprot.writeStructBegin('getInventoryAge_args')
6369
    oprot.writeFieldStop()
6370
    oprot.writeStructEnd()
6371
 
6372
  def validate(self):
6373
    return
6374
 
6375
 
6376
  def __repr__(self):
6377
    L = ['%s=%r' % (key, value)
6378
      for key, value in self.__dict__.iteritems()]
6379
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6380
 
6381
  def __eq__(self, other):
6382
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6383
 
6384
  def __ne__(self, other):
6385
    return not (self == other)
6386
 
6387
class getInventoryAge_result:
6388
  """
6389
  Attributes:
6390
   - success
6391
  """
6392
 
6393
  thrift_spec = (
6394
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAge, InventoryAge.thrift_spec)), None, ), # 0
6395
  )
6396
 
6397
  def __init__(self, success=None,):
6398
    self.success = success
6399
 
6400
  def read(self, iprot):
6401
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6402
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6403
      return
6404
    iprot.readStructBegin()
6405
    while True:
6406
      (fname, ftype, fid) = iprot.readFieldBegin()
6407
      if ftype == TType.STOP:
6408
        break
6409
      if fid == 0:
6410
        if ftype == TType.LIST:
6411
          self.success = []
10407 amar.kumar 6412
          (_etype52, _size49) = iprot.readListBegin()
6413
          for _i53 in xrange(_size49):
6414
            _elem54 = InventoryAge()
6415
            _elem54.read(iprot)
6416
            self.success.append(_elem54)
5711 mandeep.dh 6417
          iprot.readListEnd()
6418
        else:
6419
          iprot.skip(ftype)
6420
      else:
6421
        iprot.skip(ftype)
6422
      iprot.readFieldEnd()
6423
    iprot.readStructEnd()
6424
 
6425
  def write(self, oprot):
6426
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6427
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6428
      return
6429
    oprot.writeStructBegin('getInventoryAge_result')
6430
    if self.success is not None:
6431
      oprot.writeFieldBegin('success', TType.LIST, 0)
6432
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6433
      for iter55 in self.success:
6434
        iter55.write(oprot)
5711 mandeep.dh 6435
      oprot.writeListEnd()
6436
      oprot.writeFieldEnd()
6437
    oprot.writeFieldStop()
6438
    oprot.writeStructEnd()
6439
 
6440
  def validate(self):
6441
    return
6442
 
6443
 
6444
  def __repr__(self):
6445
    L = ['%s=%r' % (key, value)
6446
      for key, value in self.__dict__.iteritems()]
6447
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6448
 
6449
  def __eq__(self, other):
6450
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6451
 
6452
  def __ne__(self, other):
6453
    return not (self == other)
6361 rajveer 6454
 
6455
class getInventoryScansForItem_args:
6456
  """
6457
  Attributes:
6458
   - itemId
6459
   - fromDate
6460
   - toDate
6461
  """
6462
 
6463
  thrift_spec = (
6464
    None, # 0
6465
    (1, TType.I64, 'itemId', None, None, ), # 1
6466
    (2, TType.I64, 'fromDate', None, None, ), # 2
6467
    (3, TType.I64, 'toDate', None, None, ), # 3
6468
  )
6469
 
6470
  def __init__(self, itemId=None, fromDate=None, toDate=None,):
6471
    self.itemId = itemId
6472
    self.fromDate = fromDate
6473
    self.toDate = toDate
6474
 
6475
  def read(self, iprot):
6476
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6477
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6478
      return
6479
    iprot.readStructBegin()
6480
    while True:
6481
      (fname, ftype, fid) = iprot.readFieldBegin()
6482
      if ftype == TType.STOP:
6483
        break
6484
      if fid == 1:
6485
        if ftype == TType.I64:
6486
          self.itemId = iprot.readI64();
6487
        else:
6488
          iprot.skip(ftype)
6489
      elif fid == 2:
6490
        if ftype == TType.I64:
6491
          self.fromDate = iprot.readI64();
6492
        else:
6493
          iprot.skip(ftype)
6494
      elif fid == 3:
6495
        if ftype == TType.I64:
6496
          self.toDate = iprot.readI64();
6497
        else:
6498
          iprot.skip(ftype)
6499
      else:
6500
        iprot.skip(ftype)
6501
      iprot.readFieldEnd()
6502
    iprot.readStructEnd()
6503
 
6504
  def write(self, oprot):
6505
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6506
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6507
      return
6508
    oprot.writeStructBegin('getInventoryScansForItem_args')
6509
    if self.itemId is not None:
6510
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6511
      oprot.writeI64(self.itemId)
6512
      oprot.writeFieldEnd()
6513
    if self.fromDate is not None:
6514
      oprot.writeFieldBegin('fromDate', TType.I64, 2)
6515
      oprot.writeI64(self.fromDate)
6516
      oprot.writeFieldEnd()
6517
    if self.toDate is not None:
6518
      oprot.writeFieldBegin('toDate', TType.I64, 3)
6519
      oprot.writeI64(self.toDate)
6520
      oprot.writeFieldEnd()
6521
    oprot.writeFieldStop()
6522
    oprot.writeStructEnd()
6523
 
6524
  def validate(self):
6525
    return
6526
 
6527
 
6528
  def __repr__(self):
6529
    L = ['%s=%r' % (key, value)
6530
      for key, value in self.__dict__.iteritems()]
6531
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6532
 
6533
  def __eq__(self, other):
6534
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6535
 
6536
  def __ne__(self, other):
6537
    return not (self == other)
6538
 
6539
class getInventoryScansForItem_result:
6540
  """
6541
  Attributes:
6542
   - success
6543
  """
6544
 
6545
  thrift_spec = (
6546
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
6547
  )
6548
 
6549
  def __init__(self, success=None,):
6550
    self.success = success
6551
 
6552
  def read(self, iprot):
6553
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6554
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6555
      return
6556
    iprot.readStructBegin()
6557
    while True:
6558
      (fname, ftype, fid) = iprot.readFieldBegin()
6559
      if ftype == TType.STOP:
6560
        break
6561
      if fid == 0:
6562
        if ftype == TType.LIST:
6563
          self.success = []
10407 amar.kumar 6564
          (_etype59, _size56) = iprot.readListBegin()
6565
          for _i60 in xrange(_size56):
6566
            _elem61 = Scan()
6567
            _elem61.read(iprot)
6568
            self.success.append(_elem61)
6361 rajveer 6569
          iprot.readListEnd()
6570
        else:
6571
          iprot.skip(ftype)
6572
      else:
6573
        iprot.skip(ftype)
6574
      iprot.readFieldEnd()
6575
    iprot.readStructEnd()
6576
 
6577
  def write(self, oprot):
6578
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6579
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6580
      return
6581
    oprot.writeStructBegin('getInventoryScansForItem_result')
6582
    if self.success is not None:
6583
      oprot.writeFieldBegin('success', TType.LIST, 0)
6584
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6585
      for iter62 in self.success:
6586
        iter62.write(oprot)
6361 rajveer 6587
      oprot.writeListEnd()
6588
      oprot.writeFieldEnd()
6589
    oprot.writeFieldStop()
6590
    oprot.writeStructEnd()
6591
 
6592
  def validate(self):
6593
    return
6594
 
6595
 
6596
  def __repr__(self):
6597
    L = ['%s=%r' % (key, value)
6598
      for key, value in self.__dict__.iteritems()]
6599
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6600
 
6601
  def __eq__(self, other):
6602
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6603
 
6604
  def __ne__(self, other):
6605
    return not (self == other)
6606
 
6607
class getScanRecordsForSerialNumber_args:
6608
  """
6609
  Attributes:
6610
   - serialNumber
6611
  """
6612
 
6613
  thrift_spec = (
6614
    None, # 0
7410 amar.kumar 6615
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
6361 rajveer 6616
  )
6617
 
6618
  def __init__(self, serialNumber=None,):
6619
    self.serialNumber = serialNumber
6620
 
6621
  def read(self, iprot):
6622
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6623
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6624
      return
6625
    iprot.readStructBegin()
6626
    while True:
6627
      (fname, ftype, fid) = iprot.readFieldBegin()
6628
      if ftype == TType.STOP:
6629
        break
6630
      if fid == 1:
7410 amar.kumar 6631
        if ftype == TType.STRING:
6632
          self.serialNumber = iprot.readString();
6361 rajveer 6633
        else:
6634
          iprot.skip(ftype)
6635
      else:
6636
        iprot.skip(ftype)
6637
      iprot.readFieldEnd()
6638
    iprot.readStructEnd()
6639
 
6640
  def write(self, oprot):
6641
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6642
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6643
      return
6644
    oprot.writeStructBegin('getScanRecordsForSerialNumber_args')
6645
    if self.serialNumber is not None:
7410 amar.kumar 6646
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
6647
      oprot.writeString(self.serialNumber)
6361 rajveer 6648
      oprot.writeFieldEnd()
6649
    oprot.writeFieldStop()
6650
    oprot.writeStructEnd()
6651
 
6652
  def validate(self):
6653
    return
6654
 
6655
 
6656
  def __repr__(self):
6657
    L = ['%s=%r' % (key, value)
6658
      for key, value in self.__dict__.iteritems()]
6659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6660
 
6661
  def __eq__(self, other):
6662
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6663
 
6664
  def __ne__(self, other):
6665
    return not (self == other)
6666
 
6667
class getScanRecordsForSerialNumber_result:
6668
  """
6669
  Attributes:
6670
   - success
6671
  """
6672
 
6673
  thrift_spec = (
6674
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
6675
  )
6676
 
6677
  def __init__(self, success=None,):
6678
    self.success = success
6679
 
6680
  def read(self, iprot):
6681
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6682
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6683
      return
6684
    iprot.readStructBegin()
6685
    while True:
6686
      (fname, ftype, fid) = iprot.readFieldBegin()
6687
      if ftype == TType.STOP:
6688
        break
6689
      if fid == 0:
6690
        if ftype == TType.LIST:
6691
          self.success = []
10407 amar.kumar 6692
          (_etype66, _size63) = iprot.readListBegin()
6693
          for _i67 in xrange(_size63):
6694
            _elem68 = Scan()
6695
            _elem68.read(iprot)
6696
            self.success.append(_elem68)
6361 rajveer 6697
          iprot.readListEnd()
6698
        else:
6699
          iprot.skip(ftype)
6700
      else:
6701
        iprot.skip(ftype)
6702
      iprot.readFieldEnd()
6703
    iprot.readStructEnd()
6704
 
6705
  def write(self, oprot):
6706
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6707
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6708
      return
6709
    oprot.writeStructBegin('getScanRecordsForSerialNumber_result')
6710
    if self.success is not None:
6711
      oprot.writeFieldBegin('success', TType.LIST, 0)
6712
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6713
      for iter69 in self.success:
6714
        iter69.write(oprot)
6361 rajveer 6715
      oprot.writeListEnd()
6716
      oprot.writeFieldEnd()
6717
    oprot.writeFieldStop()
6718
    oprot.writeStructEnd()
6719
 
6720
  def validate(self):
6721
    return
6722
 
6723
 
6724
  def __repr__(self):
6725
    L = ['%s=%r' % (key, value)
6726
      for key, value in self.__dict__.iteritems()]
6727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6728
 
6729
  def __eq__(self, other):
6730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6731
 
6732
  def __ne__(self, other):
6733
    return not (self == other)
6467 amar.kumar 6734
 
6735
class scanForPurchaseReturn_args:
6736
  """
6737
  Attributes:
6738
   - saleReturnItems
6739
   - vendorId
7718 amar.kumar 6740
   - billingWarehouseId
6467 amar.kumar 6741
  """
6742
 
6743
  thrift_spec = (
6744
    None, # 0
6745
    (1, TType.LIST, 'saleReturnItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
6746
    (2, TType.I64, 'vendorId', None, None, ), # 2
7718 amar.kumar 6747
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
6467 amar.kumar 6748
  )
6749
 
7718 amar.kumar 6750
  def __init__(self, saleReturnItems=None, vendorId=None, billingWarehouseId=None,):
6467 amar.kumar 6751
    self.saleReturnItems = saleReturnItems
6752
    self.vendorId = vendorId
7718 amar.kumar 6753
    self.billingWarehouseId = billingWarehouseId
6467 amar.kumar 6754
 
6755
  def read(self, iprot):
6756
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6757
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6758
      return
6759
    iprot.readStructBegin()
6760
    while True:
6761
      (fname, ftype, fid) = iprot.readFieldBegin()
6762
      if ftype == TType.STOP:
6763
        break
6764
      if fid == 1:
6765
        if ftype == TType.LIST:
6766
          self.saleReturnItems = []
10407 amar.kumar 6767
          (_etype73, _size70) = iprot.readListBegin()
6768
          for _i74 in xrange(_size70):
6769
            _elem75 = InventoryItem()
6770
            _elem75.read(iprot)
6771
            self.saleReturnItems.append(_elem75)
6467 amar.kumar 6772
          iprot.readListEnd()
6773
        else:
6774
          iprot.skip(ftype)
6775
      elif fid == 2:
6776
        if ftype == TType.I64:
6777
          self.vendorId = iprot.readI64();
6778
        else:
6779
          iprot.skip(ftype)
7718 amar.kumar 6780
      elif fid == 3:
6781
        if ftype == TType.I64:
6782
          self.billingWarehouseId = iprot.readI64();
6783
        else:
6784
          iprot.skip(ftype)
6467 amar.kumar 6785
      else:
6786
        iprot.skip(ftype)
6787
      iprot.readFieldEnd()
6788
    iprot.readStructEnd()
6789
 
6790
  def write(self, oprot):
6791
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6792
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6793
      return
6794
    oprot.writeStructBegin('scanForPurchaseReturn_args')
6795
    if self.saleReturnItems is not None:
6796
      oprot.writeFieldBegin('saleReturnItems', TType.LIST, 1)
6797
      oprot.writeListBegin(TType.STRUCT, len(self.saleReturnItems))
10407 amar.kumar 6798
      for iter76 in self.saleReturnItems:
6799
        iter76.write(oprot)
6467 amar.kumar 6800
      oprot.writeListEnd()
6801
      oprot.writeFieldEnd()
6802
    if self.vendorId is not None:
6803
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6804
      oprot.writeI64(self.vendorId)
6805
      oprot.writeFieldEnd()
7718 amar.kumar 6806
    if self.billingWarehouseId is not None:
6807
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
6808
      oprot.writeI64(self.billingWarehouseId)
6809
      oprot.writeFieldEnd()
6467 amar.kumar 6810
    oprot.writeFieldStop()
6811
    oprot.writeStructEnd()
6812
 
6813
  def validate(self):
6814
    return
6815
 
6816
 
6817
  def __repr__(self):
6818
    L = ['%s=%r' % (key, value)
6819
      for key, value in self.__dict__.iteritems()]
6820
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6821
 
6822
  def __eq__(self, other):
6823
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6824
 
6825
  def __ne__(self, other):
6826
    return not (self == other)
6827
 
6828
class scanForPurchaseReturn_result:
6829
  """
6830
  Attributes:
10864 manish.sha 6831
   - success
6467 amar.kumar 6832
   - ex
6833
  """
6834
 
6835
  thrift_spec = (
10864 manish.sha 6836
    (0, TType.I64, 'success', None, None, ), # 0
6467 amar.kumar 6837
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6838
  )
6839
 
10864 manish.sha 6840
  def __init__(self, success=None, ex=None,):
6841
    self.success = success
6467 amar.kumar 6842
    self.ex = ex
6843
 
6844
  def read(self, iprot):
6845
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6846
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6847
      return
6848
    iprot.readStructBegin()
6849
    while True:
6850
      (fname, ftype, fid) = iprot.readFieldBegin()
6851
      if ftype == TType.STOP:
6852
        break
10864 manish.sha 6853
      if fid == 0:
6854
        if ftype == TType.I64:
6855
          self.success = iprot.readI64();
6856
        else:
6857
          iprot.skip(ftype)
6858
      elif fid == 1:
6467 amar.kumar 6859
        if ftype == TType.STRUCT:
6860
          self.ex = WarehouseServiceException()
6861
          self.ex.read(iprot)
6862
        else:
6863
          iprot.skip(ftype)
6864
      else:
6865
        iprot.skip(ftype)
6866
      iprot.readFieldEnd()
6867
    iprot.readStructEnd()
6868
 
6869
  def write(self, oprot):
6870
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6871
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6872
      return
6873
    oprot.writeStructBegin('scanForPurchaseReturn_result')
10864 manish.sha 6874
    if self.success is not None:
6875
      oprot.writeFieldBegin('success', TType.I64, 0)
6876
      oprot.writeI64(self.success)
6877
      oprot.writeFieldEnd()
6467 amar.kumar 6878
    if self.ex is not None:
6879
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6880
      self.ex.write(oprot)
6881
      oprot.writeFieldEnd()
6882
    oprot.writeFieldStop()
6883
    oprot.writeStructEnd()
6884
 
6885
  def validate(self):
6886
    return
6887
 
6888
 
6889
  def __repr__(self):
6890
    L = ['%s=%r' % (key, value)
6891
      for key, value in self.__dict__.iteritems()]
6892
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6893
 
6894
  def __eq__(self, other):
6895
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6896
 
6897
  def __ne__(self, other):
6898
    return not (self == other)
6630 amar.kumar 6899
 
6900
class scanForLostItem_args:
6901
  """
6902
  Attributes:
6903
   - lostItems
6904
   - vendorId
7718 amar.kumar 6905
   - billingWarehouseId
6630 amar.kumar 6906
  """
6907
 
6908
  thrift_spec = (
6909
    None, # 0
6910
    (1, TType.LIST, 'lostItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
6911
    (2, TType.I64, 'vendorId', None, None, ), # 2
7718 amar.kumar 6912
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
6630 amar.kumar 6913
  )
6914
 
7718 amar.kumar 6915
  def __init__(self, lostItems=None, vendorId=None, billingWarehouseId=None,):
6630 amar.kumar 6916
    self.lostItems = lostItems
6917
    self.vendorId = vendorId
7718 amar.kumar 6918
    self.billingWarehouseId = billingWarehouseId
6630 amar.kumar 6919
 
6920
  def read(self, iprot):
6921
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6922
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6923
      return
6924
    iprot.readStructBegin()
6925
    while True:
6926
      (fname, ftype, fid) = iprot.readFieldBegin()
6927
      if ftype == TType.STOP:
6928
        break
6929
      if fid == 1:
6930
        if ftype == TType.LIST:
6931
          self.lostItems = []
10407 amar.kumar 6932
          (_etype80, _size77) = iprot.readListBegin()
6933
          for _i81 in xrange(_size77):
6934
            _elem82 = InventoryItem()
6935
            _elem82.read(iprot)
6936
            self.lostItems.append(_elem82)
6630 amar.kumar 6937
          iprot.readListEnd()
6938
        else:
6939
          iprot.skip(ftype)
6940
      elif fid == 2:
6941
        if ftype == TType.I64:
6942
          self.vendorId = iprot.readI64();
6943
        else:
6944
          iprot.skip(ftype)
7718 amar.kumar 6945
      elif fid == 3:
6946
        if ftype == TType.I64:
6947
          self.billingWarehouseId = iprot.readI64();
6948
        else:
6949
          iprot.skip(ftype)
6630 amar.kumar 6950
      else:
6951
        iprot.skip(ftype)
6952
      iprot.readFieldEnd()
6953
    iprot.readStructEnd()
6954
 
6955
  def write(self, oprot):
6956
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6957
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6958
      return
6959
    oprot.writeStructBegin('scanForLostItem_args')
6960
    if self.lostItems is not None:
6961
      oprot.writeFieldBegin('lostItems', TType.LIST, 1)
6962
      oprot.writeListBegin(TType.STRUCT, len(self.lostItems))
10407 amar.kumar 6963
      for iter83 in self.lostItems:
6964
        iter83.write(oprot)
6630 amar.kumar 6965
      oprot.writeListEnd()
6966
      oprot.writeFieldEnd()
6967
    if self.vendorId is not None:
6968
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6969
      oprot.writeI64(self.vendorId)
6970
      oprot.writeFieldEnd()
7718 amar.kumar 6971
    if self.billingWarehouseId is not None:
6972
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
6973
      oprot.writeI64(self.billingWarehouseId)
6974
      oprot.writeFieldEnd()
6630 amar.kumar 6975
    oprot.writeFieldStop()
6976
    oprot.writeStructEnd()
6977
 
6978
  def validate(self):
6979
    return
6980
 
6981
 
6982
  def __repr__(self):
6983
    L = ['%s=%r' % (key, value)
6984
      for key, value in self.__dict__.iteritems()]
6985
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6986
 
6987
  def __eq__(self, other):
6988
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6989
 
6990
  def __ne__(self, other):
6991
    return not (self == other)
6992
 
6993
class scanForLostItem_result:
6994
  """
6995
  Attributes:
6996
   - ex
6997
  """
6998
 
6999
  thrift_spec = (
7000
    None, # 0
7001
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
7002
  )
7003
 
7004
  def __init__(self, ex=None,):
7005
    self.ex = ex
7006
 
7007
  def read(self, iprot):
7008
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7009
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7010
      return
7011
    iprot.readStructBegin()
7012
    while True:
7013
      (fname, ftype, fid) = iprot.readFieldBegin()
7014
      if ftype == TType.STOP:
7015
        break
7016
      if fid == 1:
7017
        if ftype == TType.STRUCT:
7018
          self.ex = WarehouseServiceException()
7019
          self.ex.read(iprot)
7020
        else:
7021
          iprot.skip(ftype)
7022
      else:
7023
        iprot.skip(ftype)
7024
      iprot.readFieldEnd()
7025
    iprot.readStructEnd()
7026
 
7027
  def write(self, oprot):
7028
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7029
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7030
      return
7031
    oprot.writeStructBegin('scanForLostItem_result')
7032
    if self.ex is not None:
7033
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7034
      self.ex.write(oprot)
7035
      oprot.writeFieldEnd()
7036
    oprot.writeFieldStop()
7037
    oprot.writeStructEnd()
7038
 
7039
  def validate(self):
7040
    return
7041
 
7042
 
7043
  def __repr__(self):
7044
    L = ['%s=%r' % (key, value)
7045
      for key, value in self.__dict__.iteritems()]
7046
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7047
 
7048
  def __eq__(self, other):
7049
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7050
 
7051
  def __ne__(self, other):
7052
    return not (self == other)
7053
 
7054
class getCurrentSerializedInventoryByScans_args:
7715 vikram.rag 7055
  """
7056
  Attributes:
7057
   - physicalWarehouseId
7058
  """
6630 amar.kumar 7059
 
7060
  thrift_spec = (
7715 vikram.rag 7061
    None, # 0
7062
    (1, TType.I64, 'physicalWarehouseId', None, None, ), # 1
6630 amar.kumar 7063
  )
7064
 
7715 vikram.rag 7065
  def __init__(self, physicalWarehouseId=None,):
7066
    self.physicalWarehouseId = physicalWarehouseId
7067
 
6630 amar.kumar 7068
  def read(self, iprot):
7069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7071
      return
7072
    iprot.readStructBegin()
7073
    while True:
7074
      (fname, ftype, fid) = iprot.readFieldBegin()
7075
      if ftype == TType.STOP:
7076
        break
7715 vikram.rag 7077
      if fid == 1:
7078
        if ftype == TType.I64:
7079
          self.physicalWarehouseId = iprot.readI64();
7080
        else:
7081
          iprot.skip(ftype)
6630 amar.kumar 7082
      else:
7083
        iprot.skip(ftype)
7084
      iprot.readFieldEnd()
7085
    iprot.readStructEnd()
7086
 
7087
  def write(self, oprot):
7088
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7089
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7090
      return
7091
    oprot.writeStructBegin('getCurrentSerializedInventoryByScans_args')
7715 vikram.rag 7092
    if self.physicalWarehouseId is not None:
7093
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 1)
7094
      oprot.writeI64(self.physicalWarehouseId)
7095
      oprot.writeFieldEnd()
6630 amar.kumar 7096
    oprot.writeFieldStop()
7097
    oprot.writeStructEnd()
7098
 
7099
  def validate(self):
7100
    return
7101
 
7102
 
7103
  def __repr__(self):
7104
    L = ['%s=%r' % (key, value)
7105
      for key, value in self.__dict__.iteritems()]
7106
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7107
 
7108
  def __eq__(self, other):
7109
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7110
 
7111
  def __ne__(self, other):
7112
    return not (self == other)
7113
 
7114
class getCurrentSerializedInventoryByScans_result:
7115
  """
7116
  Attributes:
7117
   - success
7118
  """
7119
 
7120
  thrift_spec = (
7121
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7122
  )
7123
 
7124
  def __init__(self, success=None,):
7125
    self.success = success
7126
 
7127
  def read(self, iprot):
7128
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7129
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7130
      return
7131
    iprot.readStructBegin()
7132
    while True:
7133
      (fname, ftype, fid) = iprot.readFieldBegin()
7134
      if ftype == TType.STOP:
7135
        break
7136
      if fid == 0:
7137
        if ftype == TType.LIST:
7138
          self.success = []
10407 amar.kumar 7139
          (_etype87, _size84) = iprot.readListBegin()
7140
          for _i88 in xrange(_size84):
7141
            _elem89 = InventoryAvailability()
7142
            _elem89.read(iprot)
7143
            self.success.append(_elem89)
6630 amar.kumar 7144
          iprot.readListEnd()
7145
        else:
7146
          iprot.skip(ftype)
7147
      else:
7148
        iprot.skip(ftype)
7149
      iprot.readFieldEnd()
7150
    iprot.readStructEnd()
7151
 
7152
  def write(self, oprot):
7153
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7154
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7155
      return
7156
    oprot.writeStructBegin('getCurrentSerializedInventoryByScans_result')
7157
    if self.success is not None:
7158
      oprot.writeFieldBegin('success', TType.LIST, 0)
7159
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7160
      for iter90 in self.success:
7161
        iter90.write(oprot)
6630 amar.kumar 7162
      oprot.writeListEnd()
7163
      oprot.writeFieldEnd()
7164
    oprot.writeFieldStop()
7165
    oprot.writeStructEnd()
7166
 
7167
  def validate(self):
7168
    return
7169
 
7170
 
7171
  def __repr__(self):
7172
    L = ['%s=%r' % (key, value)
7173
      for key, value in self.__dict__.iteritems()]
7174
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7175
 
7176
  def __eq__(self, other):
7177
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7178
 
7179
  def __ne__(self, other):
7180
    return not (self == other)
7181
 
7182
class getCurrentNonSerializedInventoryByScans_args:
7715 vikram.rag 7183
  """
7184
  Attributes:
7185
   - physicalWarehouseId
7186
  """
6630 amar.kumar 7187
 
7188
  thrift_spec = (
7715 vikram.rag 7189
    None, # 0
7190
    (1, TType.I64, 'physicalWarehouseId', None, None, ), # 1
6630 amar.kumar 7191
  )
7192
 
7715 vikram.rag 7193
  def __init__(self, physicalWarehouseId=None,):
7194
    self.physicalWarehouseId = physicalWarehouseId
7195
 
6630 amar.kumar 7196
  def read(self, iprot):
7197
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7198
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7199
      return
7200
    iprot.readStructBegin()
7201
    while True:
7202
      (fname, ftype, fid) = iprot.readFieldBegin()
7203
      if ftype == TType.STOP:
7204
        break
7715 vikram.rag 7205
      if fid == 1:
7206
        if ftype == TType.I64:
7207
          self.physicalWarehouseId = iprot.readI64();
7208
        else:
7209
          iprot.skip(ftype)
6630 amar.kumar 7210
      else:
7211
        iprot.skip(ftype)
7212
      iprot.readFieldEnd()
7213
    iprot.readStructEnd()
7214
 
7215
  def write(self, oprot):
7216
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7217
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7218
      return
7219
    oprot.writeStructBegin('getCurrentNonSerializedInventoryByScans_args')
7715 vikram.rag 7220
    if self.physicalWarehouseId is not None:
7221
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 1)
7222
      oprot.writeI64(self.physicalWarehouseId)
7223
      oprot.writeFieldEnd()
6630 amar.kumar 7224
    oprot.writeFieldStop()
7225
    oprot.writeStructEnd()
7226
 
7227
  def validate(self):
7228
    return
7229
 
7230
 
7231
  def __repr__(self):
7232
    L = ['%s=%r' % (key, value)
7233
      for key, value in self.__dict__.iteritems()]
7234
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7235
 
7236
  def __eq__(self, other):
7237
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7238
 
7239
  def __ne__(self, other):
7240
    return not (self == other)
7241
 
7242
class getCurrentNonSerializedInventoryByScans_result:
7243
  """
7244
  Attributes:
7245
   - success
7246
  """
7247
 
7248
  thrift_spec = (
7249
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7250
  )
7251
 
7252
  def __init__(self, success=None,):
7253
    self.success = success
7254
 
7255
  def read(self, iprot):
7256
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7257
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7258
      return
7259
    iprot.readStructBegin()
7260
    while True:
7261
      (fname, ftype, fid) = iprot.readFieldBegin()
7262
      if ftype == TType.STOP:
7263
        break
7264
      if fid == 0:
7265
        if ftype == TType.LIST:
7266
          self.success = []
10407 amar.kumar 7267
          (_etype94, _size91) = iprot.readListBegin()
7268
          for _i95 in xrange(_size91):
7269
            _elem96 = InventoryAvailability()
7270
            _elem96.read(iprot)
7271
            self.success.append(_elem96)
6630 amar.kumar 7272
          iprot.readListEnd()
7273
        else:
7274
          iprot.skip(ftype)
7275
      else:
7276
        iprot.skip(ftype)
7277
      iprot.readFieldEnd()
7278
    iprot.readStructEnd()
7279
 
7280
  def write(self, oprot):
7281
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7282
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7283
      return
7284
    oprot.writeStructBegin('getCurrentNonSerializedInventoryByScans_result')
7285
    if self.success is not None:
7286
      oprot.writeFieldBegin('success', TType.LIST, 0)
7287
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7288
      for iter97 in self.success:
7289
        iter97.write(oprot)
6630 amar.kumar 7290
      oprot.writeListEnd()
7291
      oprot.writeFieldEnd()
7292
    oprot.writeFieldStop()
7293
    oprot.writeStructEnd()
7294
 
7295
  def validate(self):
7296
    return
7297
 
7298
 
7299
  def __repr__(self):
7300
    L = ['%s=%r' % (key, value)
7301
      for key, value in self.__dict__.iteritems()]
7302
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7303
 
7304
  def __eq__(self, other):
7305
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7306
 
7307
  def __ne__(self, other):
7308
    return not (self == other)
6762 amar.kumar 7309
 
7310
class getHistoricSerializedInventoryByScans_args:
7311
  """
7312
  Attributes:
7313
   - date
7314
  """
7315
 
7316
  thrift_spec = (
7317
    None, # 0
7318
    (1, TType.I64, 'date', None, None, ), # 1
7319
  )
7320
 
7321
  def __init__(self, date=None,):
7322
    self.date = date
7323
 
7324
  def read(self, iprot):
7325
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7326
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7327
      return
7328
    iprot.readStructBegin()
7329
    while True:
7330
      (fname, ftype, fid) = iprot.readFieldBegin()
7331
      if ftype == TType.STOP:
7332
        break
7333
      if fid == 1:
7334
        if ftype == TType.I64:
7335
          self.date = iprot.readI64();
7336
        else:
7337
          iprot.skip(ftype)
7338
      else:
7339
        iprot.skip(ftype)
7340
      iprot.readFieldEnd()
7341
    iprot.readStructEnd()
7342
 
7343
  def write(self, oprot):
7344
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7345
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7346
      return
7347
    oprot.writeStructBegin('getHistoricSerializedInventoryByScans_args')
7348
    if self.date is not None:
7349
      oprot.writeFieldBegin('date', TType.I64, 1)
7350
      oprot.writeI64(self.date)
7351
      oprot.writeFieldEnd()
7352
    oprot.writeFieldStop()
7353
    oprot.writeStructEnd()
7354
 
7355
  def validate(self):
7356
    return
7357
 
7358
 
7359
  def __repr__(self):
7360
    L = ['%s=%r' % (key, value)
7361
      for key, value in self.__dict__.iteritems()]
7362
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7363
 
7364
  def __eq__(self, other):
7365
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7366
 
7367
  def __ne__(self, other):
7368
    return not (self == other)
7369
 
7370
class getHistoricSerializedInventoryByScans_result:
7371
  """
7372
  Attributes:
7373
   - success
7374
  """
7375
 
7376
  thrift_spec = (
7377
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7378
  )
7379
 
7380
  def __init__(self, success=None,):
7381
    self.success = success
7382
 
7383
  def read(self, iprot):
7384
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7385
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7386
      return
7387
    iprot.readStructBegin()
7388
    while True:
7389
      (fname, ftype, fid) = iprot.readFieldBegin()
7390
      if ftype == TType.STOP:
7391
        break
7392
      if fid == 0:
7393
        if ftype == TType.LIST:
7394
          self.success = []
10407 amar.kumar 7395
          (_etype101, _size98) = iprot.readListBegin()
7396
          for _i102 in xrange(_size98):
7397
            _elem103 = InventoryAvailability()
7398
            _elem103.read(iprot)
7399
            self.success.append(_elem103)
6762 amar.kumar 7400
          iprot.readListEnd()
7401
        else:
7402
          iprot.skip(ftype)
7403
      else:
7404
        iprot.skip(ftype)
7405
      iprot.readFieldEnd()
7406
    iprot.readStructEnd()
7407
 
7408
  def write(self, oprot):
7409
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7410
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7411
      return
7412
    oprot.writeStructBegin('getHistoricSerializedInventoryByScans_result')
7413
    if self.success is not None:
7414
      oprot.writeFieldBegin('success', TType.LIST, 0)
7415
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7416
      for iter104 in self.success:
7417
        iter104.write(oprot)
6762 amar.kumar 7418
      oprot.writeListEnd()
7419
      oprot.writeFieldEnd()
7420
    oprot.writeFieldStop()
7421
    oprot.writeStructEnd()
7422
 
7423
  def validate(self):
7424
    return
7425
 
7426
 
7427
  def __repr__(self):
7428
    L = ['%s=%r' % (key, value)
7429
      for key, value in self.__dict__.iteritems()]
7430
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7431
 
7432
  def __eq__(self, other):
7433
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7434
 
7435
  def __ne__(self, other):
7436
    return not (self == other)
7437
 
7438
class getHistoricNonSerializedInventoryByScans_args:
7439
  """
7440
  Attributes:
7441
   - date
7442
  """
7443
 
7444
  thrift_spec = (
7445
    None, # 0
7446
    (1, TType.I64, 'date', None, None, ), # 1
7447
  )
7448
 
7449
  def __init__(self, date=None,):
7450
    self.date = date
7451
 
7452
  def read(self, iprot):
7453
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7454
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7455
      return
7456
    iprot.readStructBegin()
7457
    while True:
7458
      (fname, ftype, fid) = iprot.readFieldBegin()
7459
      if ftype == TType.STOP:
7460
        break
7461
      if fid == 1:
7462
        if ftype == TType.I64:
7463
          self.date = iprot.readI64();
7464
        else:
7465
          iprot.skip(ftype)
7466
      else:
7467
        iprot.skip(ftype)
7468
      iprot.readFieldEnd()
7469
    iprot.readStructEnd()
7470
 
7471
  def write(self, oprot):
7472
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7473
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7474
      return
7475
    oprot.writeStructBegin('getHistoricNonSerializedInventoryByScans_args')
7476
    if self.date is not None:
7477
      oprot.writeFieldBegin('date', TType.I64, 1)
7478
      oprot.writeI64(self.date)
7479
      oprot.writeFieldEnd()
7480
    oprot.writeFieldStop()
7481
    oprot.writeStructEnd()
7482
 
7483
  def validate(self):
7484
    return
7485
 
7486
 
7487
  def __repr__(self):
7488
    L = ['%s=%r' % (key, value)
7489
      for key, value in self.__dict__.iteritems()]
7490
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7491
 
7492
  def __eq__(self, other):
7493
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7494
 
7495
  def __ne__(self, other):
7496
    return not (self == other)
7497
 
7498
class getHistoricNonSerializedInventoryByScans_result:
7499
  """
7500
  Attributes:
7501
   - success
7502
  """
7503
 
7504
  thrift_spec = (
7505
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7506
  )
7507
 
7508
  def __init__(self, success=None,):
7509
    self.success = success
7510
 
7511
  def read(self, iprot):
7512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7514
      return
7515
    iprot.readStructBegin()
7516
    while True:
7517
      (fname, ftype, fid) = iprot.readFieldBegin()
7518
      if ftype == TType.STOP:
7519
        break
7520
      if fid == 0:
7521
        if ftype == TType.LIST:
7522
          self.success = []
10407 amar.kumar 7523
          (_etype108, _size105) = iprot.readListBegin()
7524
          for _i109 in xrange(_size105):
7525
            _elem110 = InventoryAvailability()
7526
            _elem110.read(iprot)
7527
            self.success.append(_elem110)
6762 amar.kumar 7528
          iprot.readListEnd()
7529
        else:
7530
          iprot.skip(ftype)
7531
      else:
7532
        iprot.skip(ftype)
7533
      iprot.readFieldEnd()
7534
    iprot.readStructEnd()
7535
 
7536
  def write(self, oprot):
7537
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7538
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7539
      return
7540
    oprot.writeStructBegin('getHistoricNonSerializedInventoryByScans_result')
7541
    if self.success is not None:
7542
      oprot.writeFieldBegin('success', TType.LIST, 0)
7543
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7544
      for iter111 in self.success:
7545
        iter111.write(oprot)
6762 amar.kumar 7546
      oprot.writeListEnd()
7547
      oprot.writeFieldEnd()
7548
    oprot.writeFieldStop()
7549
    oprot.writeStructEnd()
7550
 
7551
  def validate(self):
7552
    return
7553
 
7554
 
7555
  def __repr__(self):
7556
    L = ['%s=%r' % (key, value)
7557
      for key, value in self.__dict__.iteritems()]
7558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7559
 
7560
  def __eq__(self, other):
7561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7562
 
7563
  def __ne__(self, other):
7564
    return not (self == other)
7565
 
10407 amar.kumar 7566
class getOurHistoricSerializedInventoryByScans_args:
7567
  """
7568
  Attributes:
7569
   - date
7570
  """
7571
 
7572
  thrift_spec = (
7573
    None, # 0
7574
    (1, TType.I64, 'date', None, None, ), # 1
7575
  )
7576
 
7577
  def __init__(self, date=None,):
7578
    self.date = date
7579
 
7580
  def read(self, iprot):
7581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7583
      return
7584
    iprot.readStructBegin()
7585
    while True:
7586
      (fname, ftype, fid) = iprot.readFieldBegin()
7587
      if ftype == TType.STOP:
7588
        break
7589
      if fid == 1:
7590
        if ftype == TType.I64:
7591
          self.date = iprot.readI64();
7592
        else:
7593
          iprot.skip(ftype)
7594
      else:
7595
        iprot.skip(ftype)
7596
      iprot.readFieldEnd()
7597
    iprot.readStructEnd()
7598
 
7599
  def write(self, oprot):
7600
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7601
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7602
      return
7603
    oprot.writeStructBegin('getOurHistoricSerializedInventoryByScans_args')
7604
    if self.date is not None:
7605
      oprot.writeFieldBegin('date', TType.I64, 1)
7606
      oprot.writeI64(self.date)
7607
      oprot.writeFieldEnd()
7608
    oprot.writeFieldStop()
7609
    oprot.writeStructEnd()
7610
 
7611
  def validate(self):
7612
    return
7613
 
7614
 
7615
  def __repr__(self):
7616
    L = ['%s=%r' % (key, value)
7617
      for key, value in self.__dict__.iteritems()]
7618
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7619
 
7620
  def __eq__(self, other):
7621
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7622
 
7623
  def __ne__(self, other):
7624
    return not (self == other)
7625
 
7626
class getOurHistoricSerializedInventoryByScans_result:
7627
  """
7628
  Attributes:
7629
   - success
7630
  """
7631
 
7632
  thrift_spec = (
7633
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7634
  )
7635
 
7636
  def __init__(self, success=None,):
7637
    self.success = success
7638
 
7639
  def read(self, iprot):
7640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7642
      return
7643
    iprot.readStructBegin()
7644
    while True:
7645
      (fname, ftype, fid) = iprot.readFieldBegin()
7646
      if ftype == TType.STOP:
7647
        break
7648
      if fid == 0:
7649
        if ftype == TType.LIST:
7650
          self.success = []
7651
          (_etype115, _size112) = iprot.readListBegin()
7652
          for _i116 in xrange(_size112):
7653
            _elem117 = InventoryAvailability()
7654
            _elem117.read(iprot)
7655
            self.success.append(_elem117)
7656
          iprot.readListEnd()
7657
        else:
7658
          iprot.skip(ftype)
7659
      else:
7660
        iprot.skip(ftype)
7661
      iprot.readFieldEnd()
7662
    iprot.readStructEnd()
7663
 
7664
  def write(self, oprot):
7665
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7666
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7667
      return
7668
    oprot.writeStructBegin('getOurHistoricSerializedInventoryByScans_result')
7669
    if self.success is not None:
7670
      oprot.writeFieldBegin('success', TType.LIST, 0)
7671
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7672
      for iter118 in self.success:
7673
        iter118.write(oprot)
7674
      oprot.writeListEnd()
7675
      oprot.writeFieldEnd()
7676
    oprot.writeFieldStop()
7677
    oprot.writeStructEnd()
7678
 
7679
  def validate(self):
7680
    return
7681
 
7682
 
7683
  def __repr__(self):
7684
    L = ['%s=%r' % (key, value)
7685
      for key, value in self.__dict__.iteritems()]
7686
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7687
 
7688
  def __eq__(self, other):
7689
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7690
 
7691
  def __ne__(self, other):
7692
    return not (self == other)
7693
 
7694
class getOurHistoricNonSerializedInventoryByScans_args:
7695
  """
7696
  Attributes:
7697
   - date
7698
  """
7699
 
7700
  thrift_spec = (
7701
    None, # 0
7702
    (1, TType.I64, 'date', None, None, ), # 1
7703
  )
7704
 
7705
  def __init__(self, date=None,):
7706
    self.date = date
7707
 
7708
  def read(self, iprot):
7709
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7710
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7711
      return
7712
    iprot.readStructBegin()
7713
    while True:
7714
      (fname, ftype, fid) = iprot.readFieldBegin()
7715
      if ftype == TType.STOP:
7716
        break
7717
      if fid == 1:
7718
        if ftype == TType.I64:
7719
          self.date = iprot.readI64();
7720
        else:
7721
          iprot.skip(ftype)
7722
      else:
7723
        iprot.skip(ftype)
7724
      iprot.readFieldEnd()
7725
    iprot.readStructEnd()
7726
 
7727
  def write(self, oprot):
7728
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7729
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7730
      return
7731
    oprot.writeStructBegin('getOurHistoricNonSerializedInventoryByScans_args')
7732
    if self.date is not None:
7733
      oprot.writeFieldBegin('date', TType.I64, 1)
7734
      oprot.writeI64(self.date)
7735
      oprot.writeFieldEnd()
7736
    oprot.writeFieldStop()
7737
    oprot.writeStructEnd()
7738
 
7739
  def validate(self):
7740
    return
7741
 
7742
 
7743
  def __repr__(self):
7744
    L = ['%s=%r' % (key, value)
7745
      for key, value in self.__dict__.iteritems()]
7746
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7747
 
7748
  def __eq__(self, other):
7749
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7750
 
7751
  def __ne__(self, other):
7752
    return not (self == other)
7753
 
7754
class getOurHistoricNonSerializedInventoryByScans_result:
7755
  """
7756
  Attributes:
7757
   - success
7758
  """
7759
 
7760
  thrift_spec = (
7761
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7762
  )
7763
 
7764
  def __init__(self, success=None,):
7765
    self.success = success
7766
 
7767
  def read(self, iprot):
7768
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7769
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7770
      return
7771
    iprot.readStructBegin()
7772
    while True:
7773
      (fname, ftype, fid) = iprot.readFieldBegin()
7774
      if ftype == TType.STOP:
7775
        break
7776
      if fid == 0:
7777
        if ftype == TType.LIST:
7778
          self.success = []
7779
          (_etype122, _size119) = iprot.readListBegin()
7780
          for _i123 in xrange(_size119):
7781
            _elem124 = InventoryAvailability()
7782
            _elem124.read(iprot)
7783
            self.success.append(_elem124)
7784
          iprot.readListEnd()
7785
        else:
7786
          iprot.skip(ftype)
7787
      else:
7788
        iprot.skip(ftype)
7789
      iprot.readFieldEnd()
7790
    iprot.readStructEnd()
7791
 
7792
  def write(self, oprot):
7793
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7794
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7795
      return
7796
    oprot.writeStructBegin('getOurHistoricNonSerializedInventoryByScans_result')
7797
    if self.success is not None:
7798
      oprot.writeFieldBegin('success', TType.LIST, 0)
7799
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7800
      for iter125 in self.success:
7801
        iter125.write(oprot)
7802
      oprot.writeListEnd()
7803
      oprot.writeFieldEnd()
7804
    oprot.writeFieldStop()
7805
    oprot.writeStructEnd()
7806
 
7807
  def validate(self):
7808
    return
7809
 
7810
 
7811
  def __repr__(self):
7812
    L = ['%s=%r' % (key, value)
7813
      for key, value in self.__dict__.iteritems()]
7814
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7815
 
7816
  def __eq__(self, other):
7817
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7818
 
7819
  def __ne__(self, other):
7820
    return not (self == other)
7821
 
6762 amar.kumar 7822
class scanForOursExternalSale_args:
7823
  """
7824
  Attributes:
7825
   - itemId
7826
   - serialNumber
7827
   - itemNumber
7828
   - invoiceNumber
7829
   - warehouseId
7830
   - unitPrice
7672 rajveer 7831
   - nlc
6762 amar.kumar 7832
   - orderId
7833
  """
7834
 
7835
  thrift_spec = (
7836
    None, # 0
7837
    (1, TType.I64, 'itemId', None, None, ), # 1
7838
    (2, TType.STRING, 'serialNumber', None, None, ), # 2
7839
    (3, TType.STRING, 'itemNumber', None, None, ), # 3
7840
    (4, TType.STRING, 'invoiceNumber', None, None, ), # 4
7841
    (5, TType.I64, 'warehouseId', None, None, ), # 5
7842
    (6, TType.DOUBLE, 'unitPrice', None, None, ), # 6
7672 rajveer 7843
    (7, TType.DOUBLE, 'nlc', None, None, ), # 7
7844
    (8, TType.I64, 'orderId', None, None, ), # 8
6762 amar.kumar 7845
  )
7846
 
7672 rajveer 7847
  def __init__(self, itemId=None, serialNumber=None, itemNumber=None, invoiceNumber=None, warehouseId=None, unitPrice=None, nlc=None, orderId=None,):
6762 amar.kumar 7848
    self.itemId = itemId
7849
    self.serialNumber = serialNumber
7850
    self.itemNumber = itemNumber
7851
    self.invoiceNumber = invoiceNumber
7852
    self.warehouseId = warehouseId
7853
    self.unitPrice = unitPrice
7672 rajveer 7854
    self.nlc = nlc
6762 amar.kumar 7855
    self.orderId = orderId
7856
 
7857
  def read(self, iprot):
7858
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7859
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7860
      return
7861
    iprot.readStructBegin()
7862
    while True:
7863
      (fname, ftype, fid) = iprot.readFieldBegin()
7864
      if ftype == TType.STOP:
7865
        break
7866
      if fid == 1:
7867
        if ftype == TType.I64:
7868
          self.itemId = iprot.readI64();
7869
        else:
7870
          iprot.skip(ftype)
7871
      elif fid == 2:
7872
        if ftype == TType.STRING:
7873
          self.serialNumber = iprot.readString();
7874
        else:
7875
          iprot.skip(ftype)
7876
      elif fid == 3:
7877
        if ftype == TType.STRING:
7878
          self.itemNumber = iprot.readString();
7879
        else:
7880
          iprot.skip(ftype)
7881
      elif fid == 4:
7882
        if ftype == TType.STRING:
7883
          self.invoiceNumber = iprot.readString();
7884
        else:
7885
          iprot.skip(ftype)
7886
      elif fid == 5:
7887
        if ftype == TType.I64:
7888
          self.warehouseId = iprot.readI64();
7889
        else:
7890
          iprot.skip(ftype)
7891
      elif fid == 6:
7892
        if ftype == TType.DOUBLE:
7893
          self.unitPrice = iprot.readDouble();
7894
        else:
7895
          iprot.skip(ftype)
7896
      elif fid == 7:
7672 rajveer 7897
        if ftype == TType.DOUBLE:
7898
          self.nlc = iprot.readDouble();
7899
        else:
7900
          iprot.skip(ftype)
7901
      elif fid == 8:
6762 amar.kumar 7902
        if ftype == TType.I64:
7903
          self.orderId = iprot.readI64();
7904
        else:
7905
          iprot.skip(ftype)
7906
      else:
7907
        iprot.skip(ftype)
7908
      iprot.readFieldEnd()
7909
    iprot.readStructEnd()
7910
 
7911
  def write(self, oprot):
7912
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7913
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7914
      return
7915
    oprot.writeStructBegin('scanForOursExternalSale_args')
7916
    if self.itemId is not None:
7917
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7918
      oprot.writeI64(self.itemId)
7919
      oprot.writeFieldEnd()
7920
    if self.serialNumber is not None:
7921
      oprot.writeFieldBegin('serialNumber', TType.STRING, 2)
7922
      oprot.writeString(self.serialNumber)
7923
      oprot.writeFieldEnd()
7924
    if self.itemNumber is not None:
7925
      oprot.writeFieldBegin('itemNumber', TType.STRING, 3)
7926
      oprot.writeString(self.itemNumber)
7927
      oprot.writeFieldEnd()
7928
    if self.invoiceNumber is not None:
7929
      oprot.writeFieldBegin('invoiceNumber', TType.STRING, 4)
7930
      oprot.writeString(self.invoiceNumber)
7931
      oprot.writeFieldEnd()
7932
    if self.warehouseId is not None:
7933
      oprot.writeFieldBegin('warehouseId', TType.I64, 5)
7934
      oprot.writeI64(self.warehouseId)
7935
      oprot.writeFieldEnd()
7936
    if self.unitPrice is not None:
7937
      oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 6)
7938
      oprot.writeDouble(self.unitPrice)
7939
      oprot.writeFieldEnd()
7672 rajveer 7940
    if self.nlc is not None:
7941
      oprot.writeFieldBegin('nlc', TType.DOUBLE, 7)
7942
      oprot.writeDouble(self.nlc)
7943
      oprot.writeFieldEnd()
6762 amar.kumar 7944
    if self.orderId is not None:
7672 rajveer 7945
      oprot.writeFieldBegin('orderId', TType.I64, 8)
6762 amar.kumar 7946
      oprot.writeI64(self.orderId)
7947
      oprot.writeFieldEnd()
7948
    oprot.writeFieldStop()
7949
    oprot.writeStructEnd()
7950
 
7951
  def validate(self):
7952
    return
7953
 
7954
 
7955
  def __repr__(self):
7956
    L = ['%s=%r' % (key, value)
7957
      for key, value in self.__dict__.iteritems()]
7958
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7959
 
7960
  def __eq__(self, other):
7961
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7962
 
7963
  def __ne__(self, other):
7964
    return not (self == other)
7965
 
7966
class scanForOursExternalSale_result:
7967
  """
7968
  Attributes:
7969
   - success
7970
   - ex
7971
  """
7972
 
7973
  thrift_spec = (
7974
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
7975
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
7976
  )
7977
 
7978
  def __init__(self, success=None, ex=None,):
7979
    self.success = success
7980
    self.ex = ex
7981
 
7982
  def read(self, iprot):
7983
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7984
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7985
      return
7986
    iprot.readStructBegin()
7987
    while True:
7988
      (fname, ftype, fid) = iprot.readFieldBegin()
7989
      if ftype == TType.STOP:
7990
        break
7991
      if fid == 0:
7992
        if ftype == TType.STRUCT:
7993
          self.success = InventoryItem()
7994
          self.success.read(iprot)
7995
        else:
7996
          iprot.skip(ftype)
7997
      elif fid == 1:
7998
        if ftype == TType.STRUCT:
7999
          self.ex = WarehouseServiceException()
8000
          self.ex.read(iprot)
8001
        else:
8002
          iprot.skip(ftype)
8003
      else:
8004
        iprot.skip(ftype)
8005
      iprot.readFieldEnd()
8006
    iprot.readStructEnd()
8007
 
8008
  def write(self, oprot):
8009
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8010
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8011
      return
8012
    oprot.writeStructBegin('scanForOursExternalSale_result')
8013
    if self.success is not None:
8014
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8015
      self.success.write(oprot)
8016
      oprot.writeFieldEnd()
8017
    if self.ex is not None:
8018
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8019
      self.ex.write(oprot)
8020
      oprot.writeFieldEnd()
8021
    oprot.writeFieldStop()
8022
    oprot.writeStructEnd()
8023
 
8024
  def validate(self):
8025
    return
8026
 
8027
 
8028
  def __repr__(self):
8029
    L = ['%s=%r' % (key, value)
8030
      for key, value in self.__dict__.iteritems()]
8031
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8032
 
8033
  def __eq__(self, other):
8034
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8035
 
8036
  def __ne__(self, other):
8037
    return not (self == other)
8038
 
8039
class scanForOursExternalSaleReturn_args:
8040
  """
8041
  Attributes:
8042
   - orderId
8043
   - unitPrice
8044
  """
8045
 
8046
  thrift_spec = (
8047
    None, # 0
8048
    (1, TType.I64, 'orderId', None, None, ), # 1
8049
    (2, TType.DOUBLE, 'unitPrice', None, None, ), # 2
8050
  )
8051
 
8052
  def __init__(self, orderId=None, unitPrice=None,):
8053
    self.orderId = orderId
8054
    self.unitPrice = unitPrice
8055
 
8056
  def read(self, iprot):
8057
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8058
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8059
      return
8060
    iprot.readStructBegin()
8061
    while True:
8062
      (fname, ftype, fid) = iprot.readFieldBegin()
8063
      if ftype == TType.STOP:
8064
        break
8065
      if fid == 1:
8066
        if ftype == TType.I64:
8067
          self.orderId = iprot.readI64();
8068
        else:
8069
          iprot.skip(ftype)
8070
      elif fid == 2:
8071
        if ftype == TType.DOUBLE:
8072
          self.unitPrice = iprot.readDouble();
8073
        else:
8074
          iprot.skip(ftype)
8075
      else:
8076
        iprot.skip(ftype)
8077
      iprot.readFieldEnd()
8078
    iprot.readStructEnd()
8079
 
8080
  def write(self, oprot):
8081
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8082
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8083
      return
8084
    oprot.writeStructBegin('scanForOursExternalSaleReturn_args')
8085
    if self.orderId is not None:
8086
      oprot.writeFieldBegin('orderId', TType.I64, 1)
8087
      oprot.writeI64(self.orderId)
8088
      oprot.writeFieldEnd()
8089
    if self.unitPrice is not None:
8090
      oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 2)
8091
      oprot.writeDouble(self.unitPrice)
8092
      oprot.writeFieldEnd()
8093
    oprot.writeFieldStop()
8094
    oprot.writeStructEnd()
8095
 
8096
  def validate(self):
8097
    return
8098
 
8099
 
8100
  def __repr__(self):
8101
    L = ['%s=%r' % (key, value)
8102
      for key, value in self.__dict__.iteritems()]
8103
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8104
 
8105
  def __eq__(self, other):
8106
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8107
 
8108
  def __ne__(self, other):
8109
    return not (self == other)
8110
 
8111
class scanForOursExternalSaleReturn_result:
7410 amar.kumar 8112
  """
8113
  Attributes:
8114
   - ex
8115
  """
6762 amar.kumar 8116
 
8117
  thrift_spec = (
7410 amar.kumar 8118
    None, # 0
8119
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6762 amar.kumar 8120
  )
8121
 
7410 amar.kumar 8122
  def __init__(self, ex=None,):
8123
    self.ex = ex
8124
 
6762 amar.kumar 8125
  def read(self, iprot):
8126
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8127
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8128
      return
8129
    iprot.readStructBegin()
8130
    while True:
8131
      (fname, ftype, fid) = iprot.readFieldBegin()
8132
      if ftype == TType.STOP:
8133
        break
7410 amar.kumar 8134
      if fid == 1:
8135
        if ftype == TType.STRUCT:
8136
          self.ex = WarehouseServiceException()
8137
          self.ex.read(iprot)
8138
        else:
8139
          iprot.skip(ftype)
6762 amar.kumar 8140
      else:
8141
        iprot.skip(ftype)
8142
      iprot.readFieldEnd()
8143
    iprot.readStructEnd()
8144
 
8145
  def write(self, oprot):
8146
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8147
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8148
      return
8149
    oprot.writeStructBegin('scanForOursExternalSaleReturn_result')
7410 amar.kumar 8150
    if self.ex is not None:
8151
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8152
      self.ex.write(oprot)
8153
      oprot.writeFieldEnd()
6762 amar.kumar 8154
    oprot.writeFieldStop()
8155
    oprot.writeStructEnd()
8156
 
8157
  def validate(self):
8158
    return
8159
 
8160
 
8161
  def __repr__(self):
8162
    L = ['%s=%r' % (key, value)
8163
      for key, value in self.__dict__.iteritems()]
8164
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8165
 
8166
  def __eq__(self, other):
8167
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8168
 
8169
  def __ne__(self, other):
8170
    return not (self == other)
6880 amar.kumar 8171
 
8172
class getMovementNonSerializedInventoryByScans_args:
8173
  """
8174
  Attributes:
8175
   - startDate
8176
   - endDate
8177
  """
8178
 
8179
  thrift_spec = (
8180
    None, # 0
8181
    (1, TType.I64, 'startDate', None, None, ), # 1
8182
    (2, TType.I64, 'endDate', None, None, ), # 2
8183
  )
8184
 
8185
  def __init__(self, startDate=None, endDate=None,):
8186
    self.startDate = startDate
8187
    self.endDate = endDate
8188
 
8189
  def read(self, iprot):
8190
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8191
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8192
      return
8193
    iprot.readStructBegin()
8194
    while True:
8195
      (fname, ftype, fid) = iprot.readFieldBegin()
8196
      if ftype == TType.STOP:
8197
        break
8198
      if fid == 1:
8199
        if ftype == TType.I64:
8200
          self.startDate = iprot.readI64();
8201
        else:
8202
          iprot.skip(ftype)
8203
      elif fid == 2:
8204
        if ftype == TType.I64:
8205
          self.endDate = iprot.readI64();
8206
        else:
8207
          iprot.skip(ftype)
8208
      else:
8209
        iprot.skip(ftype)
8210
      iprot.readFieldEnd()
8211
    iprot.readStructEnd()
8212
 
8213
  def write(self, oprot):
8214
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8215
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8216
      return
8217
    oprot.writeStructBegin('getMovementNonSerializedInventoryByScans_args')
8218
    if self.startDate is not None:
8219
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8220
      oprot.writeI64(self.startDate)
8221
      oprot.writeFieldEnd()
8222
    if self.endDate is not None:
8223
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8224
      oprot.writeI64(self.endDate)
8225
      oprot.writeFieldEnd()
8226
    oprot.writeFieldStop()
8227
    oprot.writeStructEnd()
8228
 
8229
  def validate(self):
8230
    return
8231
 
8232
 
8233
  def __repr__(self):
8234
    L = ['%s=%r' % (key, value)
8235
      for key, value in self.__dict__.iteritems()]
8236
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8237
 
8238
  def __eq__(self, other):
8239
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8240
 
8241
  def __ne__(self, other):
8242
    return not (self == other)
8243
 
8244
class getMovementNonSerializedInventoryByScans_result:
8245
  """
8246
  Attributes:
8247
   - success
8248
  """
8249
 
8250
  thrift_spec = (
8251
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8252
  )
8253
 
8254
  def __init__(self, success=None,):
8255
    self.success = success
8256
 
8257
  def read(self, iprot):
8258
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8259
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8260
      return
8261
    iprot.readStructBegin()
8262
    while True:
8263
      (fname, ftype, fid) = iprot.readFieldBegin()
8264
      if ftype == TType.STOP:
8265
        break
8266
      if fid == 0:
8267
        if ftype == TType.LIST:
8268
          self.success = []
10407 amar.kumar 8269
          (_etype129, _size126) = iprot.readListBegin()
8270
          for _i130 in xrange(_size126):
8271
            _elem131 = InventoryMovement()
8272
            _elem131.read(iprot)
8273
            self.success.append(_elem131)
6880 amar.kumar 8274
          iprot.readListEnd()
8275
        else:
8276
          iprot.skip(ftype)
8277
      else:
8278
        iprot.skip(ftype)
8279
      iprot.readFieldEnd()
8280
    iprot.readStructEnd()
8281
 
8282
  def write(self, oprot):
8283
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8284
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8285
      return
8286
    oprot.writeStructBegin('getMovementNonSerializedInventoryByScans_result')
8287
    if self.success is not None:
8288
      oprot.writeFieldBegin('success', TType.LIST, 0)
8289
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8290
      for iter132 in self.success:
8291
        iter132.write(oprot)
6880 amar.kumar 8292
      oprot.writeListEnd()
8293
      oprot.writeFieldEnd()
8294
    oprot.writeFieldStop()
8295
    oprot.writeStructEnd()
8296
 
8297
  def validate(self):
8298
    return
8299
 
8300
 
8301
  def __repr__(self):
8302
    L = ['%s=%r' % (key, value)
8303
      for key, value in self.__dict__.iteritems()]
8304
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8305
 
8306
  def __eq__(self, other):
8307
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8308
 
8309
  def __ne__(self, other):
8310
    return not (self == other)
8311
 
8312
class getMovementSerializedInventoryByScans_args:
8313
  """
8314
  Attributes:
8315
   - startDate
8316
   - endDate
8317
  """
8318
 
8319
  thrift_spec = (
8320
    None, # 0
8321
    (1, TType.I64, 'startDate', None, None, ), # 1
8322
    (2, TType.I64, 'endDate', None, None, ), # 2
8323
  )
8324
 
8325
  def __init__(self, startDate=None, endDate=None,):
8326
    self.startDate = startDate
8327
    self.endDate = endDate
8328
 
8329
  def read(self, iprot):
8330
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8331
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8332
      return
8333
    iprot.readStructBegin()
8334
    while True:
8335
      (fname, ftype, fid) = iprot.readFieldBegin()
8336
      if ftype == TType.STOP:
8337
        break
8338
      if fid == 1:
8339
        if ftype == TType.I64:
8340
          self.startDate = iprot.readI64();
8341
        else:
8342
          iprot.skip(ftype)
8343
      elif fid == 2:
8344
        if ftype == TType.I64:
8345
          self.endDate = iprot.readI64();
8346
        else:
8347
          iprot.skip(ftype)
8348
      else:
8349
        iprot.skip(ftype)
8350
      iprot.readFieldEnd()
8351
    iprot.readStructEnd()
8352
 
8353
  def write(self, oprot):
8354
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8355
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8356
      return
8357
    oprot.writeStructBegin('getMovementSerializedInventoryByScans_args')
8358
    if self.startDate is not None:
8359
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8360
      oprot.writeI64(self.startDate)
8361
      oprot.writeFieldEnd()
8362
    if self.endDate is not None:
8363
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8364
      oprot.writeI64(self.endDate)
8365
      oprot.writeFieldEnd()
8366
    oprot.writeFieldStop()
8367
    oprot.writeStructEnd()
8368
 
8369
  def validate(self):
8370
    return
8371
 
8372
 
8373
  def __repr__(self):
8374
    L = ['%s=%r' % (key, value)
8375
      for key, value in self.__dict__.iteritems()]
8376
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8377
 
8378
  def __eq__(self, other):
8379
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8380
 
8381
  def __ne__(self, other):
8382
    return not (self == other)
8383
 
8384
class getMovementSerializedInventoryByScans_result:
8385
  """
8386
  Attributes:
8387
   - success
8388
  """
8389
 
8390
  thrift_spec = (
8391
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8392
  )
8393
 
8394
  def __init__(self, success=None,):
8395
    self.success = success
8396
 
8397
  def read(self, iprot):
8398
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8399
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8400
      return
8401
    iprot.readStructBegin()
8402
    while True:
8403
      (fname, ftype, fid) = iprot.readFieldBegin()
8404
      if ftype == TType.STOP:
8405
        break
8406
      if fid == 0:
8407
        if ftype == TType.LIST:
8408
          self.success = []
10407 amar.kumar 8409
          (_etype136, _size133) = iprot.readListBegin()
8410
          for _i137 in xrange(_size133):
8411
            _elem138 = InventoryMovement()
8412
            _elem138.read(iprot)
8413
            self.success.append(_elem138)
6880 amar.kumar 8414
          iprot.readListEnd()
8415
        else:
8416
          iprot.skip(ftype)
8417
      else:
8418
        iprot.skip(ftype)
8419
      iprot.readFieldEnd()
8420
    iprot.readStructEnd()
8421
 
8422
  def write(self, oprot):
8423
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8424
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8425
      return
8426
    oprot.writeStructBegin('getMovementSerializedInventoryByScans_result')
8427
    if self.success is not None:
8428
      oprot.writeFieldBegin('success', TType.LIST, 0)
8429
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8430
      for iter139 in self.success:
8431
        iter139.write(oprot)
6880 amar.kumar 8432
      oprot.writeListEnd()
8433
      oprot.writeFieldEnd()
8434
    oprot.writeFieldStop()
8435
    oprot.writeStructEnd()
8436
 
8437
  def validate(self):
8438
    return
8439
 
8440
 
8441
  def __repr__(self):
8442
    L = ['%s=%r' % (key, value)
8443
      for key, value in self.__dict__.iteritems()]
8444
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8445
 
8446
  def __eq__(self, other):
8447
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8448
 
8449
  def __ne__(self, other):
8450
    return not (self == other)
7190 amar.kumar 8451
 
7216 amar.kumar 8452
class getCompleteMovementSerializedInventoryByScans_args:
8453
  """
8454
  Attributes:
8455
   - startDate
8456
   - endDate
8457
  """
8458
 
8459
  thrift_spec = (
8460
    None, # 0
8461
    (1, TType.I64, 'startDate', None, None, ), # 1
8462
    (2, TType.I64, 'endDate', None, None, ), # 2
8463
  )
8464
 
8465
  def __init__(self, startDate=None, endDate=None,):
8466
    self.startDate = startDate
8467
    self.endDate = endDate
8468
 
8469
  def read(self, iprot):
8470
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8471
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8472
      return
8473
    iprot.readStructBegin()
8474
    while True:
8475
      (fname, ftype, fid) = iprot.readFieldBegin()
8476
      if ftype == TType.STOP:
8477
        break
8478
      if fid == 1:
8479
        if ftype == TType.I64:
8480
          self.startDate = iprot.readI64();
8481
        else:
8482
          iprot.skip(ftype)
8483
      elif fid == 2:
8484
        if ftype == TType.I64:
8485
          self.endDate = iprot.readI64();
8486
        else:
8487
          iprot.skip(ftype)
8488
      else:
8489
        iprot.skip(ftype)
8490
      iprot.readFieldEnd()
8491
    iprot.readStructEnd()
8492
 
8493
  def write(self, oprot):
8494
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8495
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8496
      return
8497
    oprot.writeStructBegin('getCompleteMovementSerializedInventoryByScans_args')
8498
    if self.startDate is not None:
8499
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8500
      oprot.writeI64(self.startDate)
8501
      oprot.writeFieldEnd()
8502
    if self.endDate is not None:
8503
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8504
      oprot.writeI64(self.endDate)
8505
      oprot.writeFieldEnd()
8506
    oprot.writeFieldStop()
8507
    oprot.writeStructEnd()
8508
 
8509
  def validate(self):
8510
    return
8511
 
8512
 
8513
  def __repr__(self):
8514
    L = ['%s=%r' % (key, value)
8515
      for key, value in self.__dict__.iteritems()]
8516
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8517
 
8518
  def __eq__(self, other):
8519
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8520
 
8521
  def __ne__(self, other):
8522
    return not (self == other)
8523
 
8524
class getCompleteMovementSerializedInventoryByScans_result:
8525
  """
8526
  Attributes:
8527
   - success
8528
  """
8529
 
8530
  thrift_spec = (
8531
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8532
  )
8533
 
8534
  def __init__(self, success=None,):
8535
    self.success = success
8536
 
8537
  def read(self, iprot):
8538
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8539
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8540
      return
8541
    iprot.readStructBegin()
8542
    while True:
8543
      (fname, ftype, fid) = iprot.readFieldBegin()
8544
      if ftype == TType.STOP:
8545
        break
8546
      if fid == 0:
8547
        if ftype == TType.LIST:
8548
          self.success = []
10407 amar.kumar 8549
          (_etype143, _size140) = iprot.readListBegin()
8550
          for _i144 in xrange(_size140):
8551
            _elem145 = InventoryMovement()
8552
            _elem145.read(iprot)
8553
            self.success.append(_elem145)
7216 amar.kumar 8554
          iprot.readListEnd()
8555
        else:
8556
          iprot.skip(ftype)
8557
      else:
8558
        iprot.skip(ftype)
8559
      iprot.readFieldEnd()
8560
    iprot.readStructEnd()
8561
 
8562
  def write(self, oprot):
8563
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8564
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8565
      return
8566
    oprot.writeStructBegin('getCompleteMovementSerializedInventoryByScans_result')
8567
    if self.success is not None:
8568
      oprot.writeFieldBegin('success', TType.LIST, 0)
8569
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8570
      for iter146 in self.success:
8571
        iter146.write(oprot)
7216 amar.kumar 8572
      oprot.writeListEnd()
8573
      oprot.writeFieldEnd()
8574
    oprot.writeFieldStop()
8575
    oprot.writeStructEnd()
8576
 
8577
  def validate(self):
8578
    return
8579
 
8580
 
8581
  def __repr__(self):
8582
    L = ['%s=%r' % (key, value)
8583
      for key, value in self.__dict__.iteritems()]
8584
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8585
 
8586
  def __eq__(self, other):
8587
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8588
 
8589
  def __ne__(self, other):
8590
    return not (self == other)
8591
 
8592
class getCompleteMovementNonSerializedInventoryByScans_args:
8593
  """
8594
  Attributes:
8595
   - startDate
8596
   - endDate
8597
  """
8598
 
8599
  thrift_spec = (
8600
    None, # 0
8601
    (1, TType.I64, 'startDate', None, None, ), # 1
8602
    (2, TType.I64, 'endDate', None, None, ), # 2
8603
  )
8604
 
8605
  def __init__(self, startDate=None, endDate=None,):
8606
    self.startDate = startDate
8607
    self.endDate = endDate
8608
 
8609
  def read(self, iprot):
8610
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8611
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8612
      return
8613
    iprot.readStructBegin()
8614
    while True:
8615
      (fname, ftype, fid) = iprot.readFieldBegin()
8616
      if ftype == TType.STOP:
8617
        break
8618
      if fid == 1:
8619
        if ftype == TType.I64:
8620
          self.startDate = iprot.readI64();
8621
        else:
8622
          iprot.skip(ftype)
8623
      elif fid == 2:
8624
        if ftype == TType.I64:
8625
          self.endDate = iprot.readI64();
8626
        else:
8627
          iprot.skip(ftype)
8628
      else:
8629
        iprot.skip(ftype)
8630
      iprot.readFieldEnd()
8631
    iprot.readStructEnd()
8632
 
8633
  def write(self, oprot):
8634
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8635
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8636
      return
8637
    oprot.writeStructBegin('getCompleteMovementNonSerializedInventoryByScans_args')
8638
    if self.startDate is not None:
8639
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8640
      oprot.writeI64(self.startDate)
8641
      oprot.writeFieldEnd()
8642
    if self.endDate is not None:
8643
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8644
      oprot.writeI64(self.endDate)
8645
      oprot.writeFieldEnd()
8646
    oprot.writeFieldStop()
8647
    oprot.writeStructEnd()
8648
 
8649
  def validate(self):
8650
    return
8651
 
8652
 
8653
  def __repr__(self):
8654
    L = ['%s=%r' % (key, value)
8655
      for key, value in self.__dict__.iteritems()]
8656
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8657
 
8658
  def __eq__(self, other):
8659
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8660
 
8661
  def __ne__(self, other):
8662
    return not (self == other)
8663
 
8664
class getCompleteMovementNonSerializedInventoryByScans_result:
8665
  """
8666
  Attributes:
8667
   - success
8668
  """
8669
 
8670
  thrift_spec = (
8671
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8672
  )
8673
 
8674
  def __init__(self, success=None,):
8675
    self.success = success
8676
 
8677
  def read(self, iprot):
8678
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8679
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8680
      return
8681
    iprot.readStructBegin()
8682
    while True:
8683
      (fname, ftype, fid) = iprot.readFieldBegin()
8684
      if ftype == TType.STOP:
8685
        break
8686
      if fid == 0:
8687
        if ftype == TType.LIST:
8688
          self.success = []
10407 amar.kumar 8689
          (_etype150, _size147) = iprot.readListBegin()
8690
          for _i151 in xrange(_size147):
8691
            _elem152 = InventoryMovement()
8692
            _elem152.read(iprot)
8693
            self.success.append(_elem152)
7216 amar.kumar 8694
          iprot.readListEnd()
8695
        else:
8696
          iprot.skip(ftype)
8697
      else:
8698
        iprot.skip(ftype)
8699
      iprot.readFieldEnd()
8700
    iprot.readStructEnd()
8701
 
8702
  def write(self, oprot):
8703
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8704
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8705
      return
8706
    oprot.writeStructBegin('getCompleteMovementNonSerializedInventoryByScans_result')
8707
    if self.success is not None:
8708
      oprot.writeFieldBegin('success', TType.LIST, 0)
8709
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8710
      for iter153 in self.success:
8711
        iter153.write(oprot)
7216 amar.kumar 8712
      oprot.writeListEnd()
8713
      oprot.writeFieldEnd()
8714
    oprot.writeFieldStop()
8715
    oprot.writeStructEnd()
8716
 
8717
  def validate(self):
8718
    return
8719
 
8720
 
8721
  def __repr__(self):
8722
    L = ['%s=%r' % (key, value)
8723
      for key, value in self.__dict__.iteritems()]
8724
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8725
 
8726
  def __eq__(self, other):
8727
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8728
 
8729
  def __ne__(self, other):
8730
    return not (self == other)
8731
 
7190 amar.kumar 8732
class scanfreebie_args:
8733
  """
8734
  Attributes:
8735
   - orderId
8736
   - freebieItemId
8737
   - freebieWarehouseId
8738
   - scanType
8739
  """
8740
 
8741
  thrift_spec = (
8742
    None, # 0
8743
    (1, TType.I64, 'orderId', None, None, ), # 1
8744
    (2, TType.I64, 'freebieItemId', None, None, ), # 2
8745
    (3, TType.I64, 'freebieWarehouseId', None, None, ), # 3
8746
    (4, TType.I32, 'scanType', None, None, ), # 4
8747
  )
8748
 
8749
  def __init__(self, orderId=None, freebieItemId=None, freebieWarehouseId=None, scanType=None,):
8750
    self.orderId = orderId
8751
    self.freebieItemId = freebieItemId
8752
    self.freebieWarehouseId = freebieWarehouseId
8753
    self.scanType = scanType
8754
 
8755
  def read(self, iprot):
8756
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8757
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8758
      return
8759
    iprot.readStructBegin()
8760
    while True:
8761
      (fname, ftype, fid) = iprot.readFieldBegin()
8762
      if ftype == TType.STOP:
8763
        break
8764
      if fid == 1:
8765
        if ftype == TType.I64:
8766
          self.orderId = iprot.readI64();
8767
        else:
8768
          iprot.skip(ftype)
8769
      elif fid == 2:
8770
        if ftype == TType.I64:
8771
          self.freebieItemId = iprot.readI64();
8772
        else:
8773
          iprot.skip(ftype)
8774
      elif fid == 3:
8775
        if ftype == TType.I64:
8776
          self.freebieWarehouseId = iprot.readI64();
8777
        else:
8778
          iprot.skip(ftype)
8779
      elif fid == 4:
8780
        if ftype == TType.I32:
8781
          self.scanType = iprot.readI32();
8782
        else:
8783
          iprot.skip(ftype)
8784
      else:
8785
        iprot.skip(ftype)
8786
      iprot.readFieldEnd()
8787
    iprot.readStructEnd()
8788
 
8789
  def write(self, oprot):
8790
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8791
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8792
      return
8793
    oprot.writeStructBegin('scanfreebie_args')
8794
    if self.orderId is not None:
8795
      oprot.writeFieldBegin('orderId', TType.I64, 1)
8796
      oprot.writeI64(self.orderId)
8797
      oprot.writeFieldEnd()
8798
    if self.freebieItemId is not None:
8799
      oprot.writeFieldBegin('freebieItemId', TType.I64, 2)
8800
      oprot.writeI64(self.freebieItemId)
8801
      oprot.writeFieldEnd()
8802
    if self.freebieWarehouseId is not None:
8803
      oprot.writeFieldBegin('freebieWarehouseId', TType.I64, 3)
8804
      oprot.writeI64(self.freebieWarehouseId)
8805
      oprot.writeFieldEnd()
8806
    if self.scanType is not None:
8807
      oprot.writeFieldBegin('scanType', TType.I32, 4)
8808
      oprot.writeI32(self.scanType)
8809
      oprot.writeFieldEnd()
8810
    oprot.writeFieldStop()
8811
    oprot.writeStructEnd()
8812
 
8813
  def validate(self):
8814
    return
8815
 
8816
 
8817
  def __repr__(self):
8818
    L = ['%s=%r' % (key, value)
8819
      for key, value in self.__dict__.iteritems()]
8820
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8821
 
8822
  def __eq__(self, other):
8823
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8824
 
8825
  def __ne__(self, other):
8826
    return not (self == other)
8827
 
8828
class scanfreebie_result:
8829
  """
8830
  Attributes:
8831
   - success
8832
   - wex
8833
  """
8834
 
8835
  thrift_spec = (
8836
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
8837
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8838
  )
8839
 
8840
  def __init__(self, success=None, wex=None,):
8841
    self.success = success
8842
    self.wex = wex
8843
 
8844
  def read(self, iprot):
8845
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8846
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8847
      return
8848
    iprot.readStructBegin()
8849
    while True:
8850
      (fname, ftype, fid) = iprot.readFieldBegin()
8851
      if ftype == TType.STOP:
8852
        break
8853
      if fid == 0:
8854
        if ftype == TType.STRUCT:
8855
          self.success = InventoryItem()
8856
          self.success.read(iprot)
8857
        else:
8858
          iprot.skip(ftype)
8859
      elif fid == 1:
8860
        if ftype == TType.STRUCT:
8861
          self.wex = WarehouseServiceException()
8862
          self.wex.read(iprot)
8863
        else:
8864
          iprot.skip(ftype)
8865
      else:
8866
        iprot.skip(ftype)
8867
      iprot.readFieldEnd()
8868
    iprot.readStructEnd()
8869
 
8870
  def write(self, oprot):
8871
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8872
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8873
      return
8874
    oprot.writeStructBegin('scanfreebie_result')
8875
    if self.success is not None:
8876
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8877
      self.success.write(oprot)
8878
      oprot.writeFieldEnd()
8879
    if self.wex is not None:
8880
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
8881
      self.wex.write(oprot)
8882
      oprot.writeFieldEnd()
8883
    oprot.writeFieldStop()
8884
    oprot.writeStructEnd()
8885
 
8886
  def validate(self):
8887
    return
8888
 
8889
 
8890
  def __repr__(self):
8891
    L = ['%s=%r' % (key, value)
8892
      for key, value in self.__dict__.iteritems()]
8893
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8894
 
8895
  def __eq__(self, other):
8896
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8897
 
8898
  def __ne__(self, other):
8899
    return not (self == other)
7199 amar.kumar 8900
 
8901
class reshipfreebie_args:
8902
  """
8903
  Attributes:
8904
   - oldOrderId
8905
   - newOrderId
8906
   - freebieItemId
8907
   - scanType
8908
  """
8909
 
8910
  thrift_spec = (
8911
    None, # 0
8912
    (1, TType.I64, 'oldOrderId', None, None, ), # 1
8913
    (2, TType.I64, 'newOrderId', None, None, ), # 2
8914
    (3, TType.I64, 'freebieItemId', None, None, ), # 3
8915
    (4, TType.I32, 'scanType', None, None, ), # 4
8916
  )
8917
 
8918
  def __init__(self, oldOrderId=None, newOrderId=None, freebieItemId=None, scanType=None,):
8919
    self.oldOrderId = oldOrderId
8920
    self.newOrderId = newOrderId
8921
    self.freebieItemId = freebieItemId
8922
    self.scanType = scanType
8923
 
8924
  def read(self, iprot):
8925
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8926
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8927
      return
8928
    iprot.readStructBegin()
8929
    while True:
8930
      (fname, ftype, fid) = iprot.readFieldBegin()
8931
      if ftype == TType.STOP:
8932
        break
8933
      if fid == 1:
8934
        if ftype == TType.I64:
8935
          self.oldOrderId = iprot.readI64();
8936
        else:
8937
          iprot.skip(ftype)
8938
      elif fid == 2:
8939
        if ftype == TType.I64:
8940
          self.newOrderId = iprot.readI64();
8941
        else:
8942
          iprot.skip(ftype)
8943
      elif fid == 3:
8944
        if ftype == TType.I64:
8945
          self.freebieItemId = iprot.readI64();
8946
        else:
8947
          iprot.skip(ftype)
8948
      elif fid == 4:
8949
        if ftype == TType.I32:
8950
          self.scanType = iprot.readI32();
8951
        else:
8952
          iprot.skip(ftype)
8953
      else:
8954
        iprot.skip(ftype)
8955
      iprot.readFieldEnd()
8956
    iprot.readStructEnd()
8957
 
8958
  def write(self, oprot):
8959
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8960
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8961
      return
8962
    oprot.writeStructBegin('reshipfreebie_args')
8963
    if self.oldOrderId is not None:
8964
      oprot.writeFieldBegin('oldOrderId', TType.I64, 1)
8965
      oprot.writeI64(self.oldOrderId)
8966
      oprot.writeFieldEnd()
8967
    if self.newOrderId is not None:
8968
      oprot.writeFieldBegin('newOrderId', TType.I64, 2)
8969
      oprot.writeI64(self.newOrderId)
8970
      oprot.writeFieldEnd()
8971
    if self.freebieItemId is not None:
8972
      oprot.writeFieldBegin('freebieItemId', TType.I64, 3)
8973
      oprot.writeI64(self.freebieItemId)
8974
      oprot.writeFieldEnd()
8975
    if self.scanType is not None:
8976
      oprot.writeFieldBegin('scanType', TType.I32, 4)
8977
      oprot.writeI32(self.scanType)
8978
      oprot.writeFieldEnd()
8979
    oprot.writeFieldStop()
8980
    oprot.writeStructEnd()
8981
 
8982
  def validate(self):
8983
    return
8984
 
8985
 
8986
  def __repr__(self):
8987
    L = ['%s=%r' % (key, value)
8988
      for key, value in self.__dict__.iteritems()]
8989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8990
 
8991
  def __eq__(self, other):
8992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8993
 
8994
  def __ne__(self, other):
8995
    return not (self == other)
8996
 
8997
class reshipfreebie_result:
8998
  """
8999
  Attributes:
9000
   - wex
9001
  """
9002
 
9003
  thrift_spec = (
9004
    None, # 0
9005
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9006
  )
9007
 
9008
  def __init__(self, wex=None,):
9009
    self.wex = wex
9010
 
9011
  def read(self, iprot):
9012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9014
      return
9015
    iprot.readStructBegin()
9016
    while True:
9017
      (fname, ftype, fid) = iprot.readFieldBegin()
9018
      if ftype == TType.STOP:
9019
        break
9020
      if fid == 1:
9021
        if ftype == TType.STRUCT:
9022
          self.wex = WarehouseServiceException()
9023
          self.wex.read(iprot)
9024
        else:
9025
          iprot.skip(ftype)
9026
      else:
9027
        iprot.skip(ftype)
9028
      iprot.readFieldEnd()
9029
    iprot.readStructEnd()
9030
 
9031
  def write(self, oprot):
9032
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9033
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9034
      return
9035
    oprot.writeStructBegin('reshipfreebie_result')
9036
    if self.wex is not None:
9037
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9038
      self.wex.write(oprot)
9039
      oprot.writeFieldEnd()
9040
    oprot.writeFieldStop()
9041
    oprot.writeStructEnd()
9042
 
9043
  def validate(self):
9044
    return
9045
 
9046
 
9047
  def __repr__(self):
9048
    L = ['%s=%r' % (key, value)
9049
      for key, value in self.__dict__.iteritems()]
9050
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9051
 
9052
  def __eq__(self, other):
9053
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9054
 
9055
  def __ne__(self, other):
9056
    return not (self == other)
7410 amar.kumar 9057
 
9058
class isItemTransferAllowed_args:
9059
  """
9060
  Attributes:
9061
   - warehouseId
9062
   - transferWarehouseId
9063
  """
9064
 
9065
  thrift_spec = (
9066
    None, # 0
9067
    (1, TType.I64, 'warehouseId', None, None, ), # 1
9068
    (2, TType.I64, 'transferWarehouseId', None, None, ), # 2
9069
  )
9070
 
9071
  def __init__(self, warehouseId=None, transferWarehouseId=None,):
9072
    self.warehouseId = warehouseId
9073
    self.transferWarehouseId = transferWarehouseId
9074
 
9075
  def read(self, iprot):
9076
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9077
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9078
      return
9079
    iprot.readStructBegin()
9080
    while True:
9081
      (fname, ftype, fid) = iprot.readFieldBegin()
9082
      if ftype == TType.STOP:
9083
        break
9084
      if fid == 1:
9085
        if ftype == TType.I64:
9086
          self.warehouseId = iprot.readI64();
9087
        else:
9088
          iprot.skip(ftype)
9089
      elif fid == 2:
9090
        if ftype == TType.I64:
9091
          self.transferWarehouseId = iprot.readI64();
9092
        else:
9093
          iprot.skip(ftype)
9094
      else:
9095
        iprot.skip(ftype)
9096
      iprot.readFieldEnd()
9097
    iprot.readStructEnd()
9098
 
9099
  def write(self, oprot):
9100
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9101
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9102
      return
9103
    oprot.writeStructBegin('isItemTransferAllowed_args')
9104
    if self.warehouseId is not None:
9105
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
9106
      oprot.writeI64(self.warehouseId)
9107
      oprot.writeFieldEnd()
9108
    if self.transferWarehouseId is not None:
9109
      oprot.writeFieldBegin('transferWarehouseId', TType.I64, 2)
9110
      oprot.writeI64(self.transferWarehouseId)
9111
      oprot.writeFieldEnd()
9112
    oprot.writeFieldStop()
9113
    oprot.writeStructEnd()
9114
 
9115
  def validate(self):
9116
    return
9117
 
9118
 
9119
  def __repr__(self):
9120
    L = ['%s=%r' % (key, value)
9121
      for key, value in self.__dict__.iteritems()]
9122
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9123
 
9124
  def __eq__(self, other):
9125
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9126
 
9127
  def __ne__(self, other):
9128
    return not (self == other)
9129
 
9130
class isItemTransferAllowed_result:
9131
  """
9132
  Attributes:
9133
   - success
9134
  """
9135
 
9136
  thrift_spec = (
9137
    (0, TType.BOOL, 'success', None, None, ), # 0
9138
  )
9139
 
9140
  def __init__(self, success=None,):
9141
    self.success = success
9142
 
9143
  def read(self, iprot):
9144
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9145
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9146
      return
9147
    iprot.readStructBegin()
9148
    while True:
9149
      (fname, ftype, fid) = iprot.readFieldBegin()
9150
      if ftype == TType.STOP:
9151
        break
9152
      if fid == 0:
9153
        if ftype == TType.BOOL:
9154
          self.success = iprot.readBool();
9155
        else:
9156
          iprot.skip(ftype)
9157
      else:
9158
        iprot.skip(ftype)
9159
      iprot.readFieldEnd()
9160
    iprot.readStructEnd()
9161
 
9162
  def write(self, oprot):
9163
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9164
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9165
      return
9166
    oprot.writeStructBegin('isItemTransferAllowed_result')
9167
    if self.success is not None:
9168
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9169
      oprot.writeBool(self.success)
9170
      oprot.writeFieldEnd()
9171
    oprot.writeFieldStop()
9172
    oprot.writeStructEnd()
9173
 
9174
  def validate(self):
9175
    return
9176
 
9177
 
9178
  def __repr__(self):
9179
    L = ['%s=%r' % (key, value)
9180
      for key, value in self.__dict__.iteritems()]
9181
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9182
 
9183
  def __eq__(self, other):
9184
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9185
 
9186
  def __ne__(self, other):
9187
    return not (self == other)
9188
 
9189
class createTransferLot_args:
9190
  """
9191
  Attributes:
9192
   - originWarehouseId
9193
   - destWarehouseId
9194
  """
9195
 
9196
  thrift_spec = (
9197
    None, # 0
9198
    (1, TType.I64, 'originWarehouseId', None, None, ), # 1
9199
    (2, TType.I64, 'destWarehouseId', None, None, ), # 2
9200
  )
9201
 
9202
  def __init__(self, originWarehouseId=None, destWarehouseId=None,):
9203
    self.originWarehouseId = originWarehouseId
9204
    self.destWarehouseId = destWarehouseId
9205
 
9206
  def read(self, iprot):
9207
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9208
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9209
      return
9210
    iprot.readStructBegin()
9211
    while True:
9212
      (fname, ftype, fid) = iprot.readFieldBegin()
9213
      if ftype == TType.STOP:
9214
        break
9215
      if fid == 1:
9216
        if ftype == TType.I64:
9217
          self.originWarehouseId = iprot.readI64();
9218
        else:
9219
          iprot.skip(ftype)
9220
      elif fid == 2:
9221
        if ftype == TType.I64:
9222
          self.destWarehouseId = iprot.readI64();
9223
        else:
9224
          iprot.skip(ftype)
9225
      else:
9226
        iprot.skip(ftype)
9227
      iprot.readFieldEnd()
9228
    iprot.readStructEnd()
9229
 
9230
  def write(self, oprot):
9231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9233
      return
9234
    oprot.writeStructBegin('createTransferLot_args')
9235
    if self.originWarehouseId is not None:
9236
      oprot.writeFieldBegin('originWarehouseId', TType.I64, 1)
9237
      oprot.writeI64(self.originWarehouseId)
9238
      oprot.writeFieldEnd()
9239
    if self.destWarehouseId is not None:
9240
      oprot.writeFieldBegin('destWarehouseId', TType.I64, 2)
9241
      oprot.writeI64(self.destWarehouseId)
9242
      oprot.writeFieldEnd()
9243
    oprot.writeFieldStop()
9244
    oprot.writeStructEnd()
9245
 
9246
  def validate(self):
9247
    return
9248
 
9249
 
9250
  def __repr__(self):
9251
    L = ['%s=%r' % (key, value)
9252
      for key, value in self.__dict__.iteritems()]
9253
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9254
 
9255
  def __eq__(self, other):
9256
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9257
 
9258
  def __ne__(self, other):
9259
    return not (self == other)
9260
 
9261
class createTransferLot_result:
9262
  """
9263
  Attributes:
9264
   - success
9265
   - wex
9266
  """
9267
 
9268
  thrift_spec = (
9269
    (0, TType.I64, 'success', None, None, ), # 0
9270
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9271
  )
9272
 
9273
  def __init__(self, success=None, wex=None,):
9274
    self.success = success
9275
    self.wex = wex
9276
 
9277
  def read(self, iprot):
9278
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9279
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9280
      return
9281
    iprot.readStructBegin()
9282
    while True:
9283
      (fname, ftype, fid) = iprot.readFieldBegin()
9284
      if ftype == TType.STOP:
9285
        break
9286
      if fid == 0:
9287
        if ftype == TType.I64:
9288
          self.success = iprot.readI64();
9289
        else:
9290
          iprot.skip(ftype)
9291
      elif fid == 1:
9292
        if ftype == TType.STRUCT:
9293
          self.wex = WarehouseServiceException()
9294
          self.wex.read(iprot)
9295
        else:
9296
          iprot.skip(ftype)
9297
      else:
9298
        iprot.skip(ftype)
9299
      iprot.readFieldEnd()
9300
    iprot.readStructEnd()
9301
 
9302
  def write(self, oprot):
9303
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9304
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9305
      return
9306
    oprot.writeStructBegin('createTransferLot_result')
9307
    if self.success is not None:
9308
      oprot.writeFieldBegin('success', TType.I64, 0)
9309
      oprot.writeI64(self.success)
9310
      oprot.writeFieldEnd()
9311
    if self.wex is not None:
9312
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9313
      self.wex.write(oprot)
9314
      oprot.writeFieldEnd()
9315
    oprot.writeFieldStop()
9316
    oprot.writeStructEnd()
9317
 
9318
  def validate(self):
9319
    return
9320
 
9321
 
9322
  def __repr__(self):
9323
    L = ['%s=%r' % (key, value)
9324
      for key, value in self.__dict__.iteritems()]
9325
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9326
 
9327
  def __eq__(self, other):
9328
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9329
 
9330
  def __ne__(self, other):
9331
    return not (self == other)
9332
 
9333
class getTransferLot_args:
9334
  """
9335
  Attributes:
9336
   - transferLotId
9337
  """
9338
 
9339
  thrift_spec = (
9340
    None, # 0
9341
    (1, TType.I64, 'transferLotId', None, None, ), # 1
9342
  )
9343
 
9344
  def __init__(self, transferLotId=None,):
9345
    self.transferLotId = transferLotId
9346
 
9347
  def read(self, iprot):
9348
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9349
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9350
      return
9351
    iprot.readStructBegin()
9352
    while True:
9353
      (fname, ftype, fid) = iprot.readFieldBegin()
9354
      if ftype == TType.STOP:
9355
        break
9356
      if fid == 1:
9357
        if ftype == TType.I64:
9358
          self.transferLotId = iprot.readI64();
9359
        else:
9360
          iprot.skip(ftype)
9361
      else:
9362
        iprot.skip(ftype)
9363
      iprot.readFieldEnd()
9364
    iprot.readStructEnd()
9365
 
9366
  def write(self, oprot):
9367
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9368
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9369
      return
9370
    oprot.writeStructBegin('getTransferLot_args')
9371
    if self.transferLotId is not None:
9372
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
9373
      oprot.writeI64(self.transferLotId)
9374
      oprot.writeFieldEnd()
9375
    oprot.writeFieldStop()
9376
    oprot.writeStructEnd()
9377
 
9378
  def validate(self):
9379
    return
9380
 
9381
 
9382
  def __repr__(self):
9383
    L = ['%s=%r' % (key, value)
9384
      for key, value in self.__dict__.iteritems()]
9385
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9386
 
9387
  def __eq__(self, other):
9388
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9389
 
9390
  def __ne__(self, other):
9391
    return not (self == other)
9392
 
9393
class getTransferLot_result:
9394
  """
9395
  Attributes:
9396
   - success
9397
   - wex
9398
  """
9399
 
9400
  thrift_spec = (
9401
    (0, TType.STRUCT, 'success', (TransferLot, TransferLot.thrift_spec), None, ), # 0
9402
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9403
  )
9404
 
9405
  def __init__(self, success=None, wex=None,):
9406
    self.success = success
9407
    self.wex = wex
9408
 
9409
  def read(self, iprot):
9410
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9411
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9412
      return
9413
    iprot.readStructBegin()
9414
    while True:
9415
      (fname, ftype, fid) = iprot.readFieldBegin()
9416
      if ftype == TType.STOP:
9417
        break
9418
      if fid == 0:
9419
        if ftype == TType.STRUCT:
9420
          self.success = TransferLot()
9421
          self.success.read(iprot)
9422
        else:
9423
          iprot.skip(ftype)
9424
      elif fid == 1:
9425
        if ftype == TType.STRUCT:
9426
          self.wex = WarehouseServiceException()
9427
          self.wex.read(iprot)
9428
        else:
9429
          iprot.skip(ftype)
9430
      else:
9431
        iprot.skip(ftype)
9432
      iprot.readFieldEnd()
9433
    iprot.readStructEnd()
9434
 
9435
  def write(self, oprot):
9436
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9437
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9438
      return
9439
    oprot.writeStructBegin('getTransferLot_result')
9440
    if self.success is not None:
9441
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9442
      self.success.write(oprot)
9443
      oprot.writeFieldEnd()
9444
    if self.wex is not None:
9445
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9446
      self.wex.write(oprot)
9447
      oprot.writeFieldEnd()
9448
    oprot.writeFieldStop()
9449
    oprot.writeStructEnd()
9450
 
9451
  def validate(self):
9452
    return
9453
 
9454
 
9455
  def __repr__(self):
9456
    L = ['%s=%r' % (key, value)
9457
      for key, value in self.__dict__.iteritems()]
9458
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9459
 
9460
  def __eq__(self, other):
9461
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9462
 
9463
  def __ne__(self, other):
9464
    return not (self == other)
9465
 
9466
class markTransferLotAsReceived_args:
9467
  """
9468
  Attributes:
9469
   - id
9470
   - remoteTransferRefNumber
9471
  """
9472
 
9473
  thrift_spec = (
9474
    None, # 0
9475
    (1, TType.I64, 'id', None, None, ), # 1
9476
    (2, TType.STRING, 'remoteTransferRefNumber', None, None, ), # 2
9477
  )
9478
 
9479
  def __init__(self, id=None, remoteTransferRefNumber=None,):
9480
    self.id = id
9481
    self.remoteTransferRefNumber = remoteTransferRefNumber
9482
 
9483
  def read(self, iprot):
9484
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9485
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9486
      return
9487
    iprot.readStructBegin()
9488
    while True:
9489
      (fname, ftype, fid) = iprot.readFieldBegin()
9490
      if ftype == TType.STOP:
9491
        break
9492
      if fid == 1:
9493
        if ftype == TType.I64:
9494
          self.id = iprot.readI64();
9495
        else:
9496
          iprot.skip(ftype)
9497
      elif fid == 2:
9498
        if ftype == TType.STRING:
9499
          self.remoteTransferRefNumber = iprot.readString();
9500
        else:
9501
          iprot.skip(ftype)
9502
      else:
9503
        iprot.skip(ftype)
9504
      iprot.readFieldEnd()
9505
    iprot.readStructEnd()
9506
 
9507
  def write(self, oprot):
9508
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9509
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9510
      return
9511
    oprot.writeStructBegin('markTransferLotAsReceived_args')
9512
    if self.id is not None:
9513
      oprot.writeFieldBegin('id', TType.I64, 1)
9514
      oprot.writeI64(self.id)
9515
      oprot.writeFieldEnd()
9516
    if self.remoteTransferRefNumber is not None:
9517
      oprot.writeFieldBegin('remoteTransferRefNumber', TType.STRING, 2)
9518
      oprot.writeString(self.remoteTransferRefNumber)
9519
      oprot.writeFieldEnd()
9520
    oprot.writeFieldStop()
9521
    oprot.writeStructEnd()
9522
 
9523
  def validate(self):
9524
    return
9525
 
9526
 
9527
  def __repr__(self):
9528
    L = ['%s=%r' % (key, value)
9529
      for key, value in self.__dict__.iteritems()]
9530
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9531
 
9532
  def __eq__(self, other):
9533
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9534
 
9535
  def __ne__(self, other):
9536
    return not (self == other)
9537
 
9538
class markTransferLotAsReceived_result:
9539
  """
9540
  Attributes:
9541
   - wex
9542
  """
9543
 
9544
  thrift_spec = (
9545
    None, # 0
9546
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9547
  )
9548
 
9549
  def __init__(self, wex=None,):
9550
    self.wex = wex
9551
 
9552
  def read(self, iprot):
9553
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9554
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9555
      return
9556
    iprot.readStructBegin()
9557
    while True:
9558
      (fname, ftype, fid) = iprot.readFieldBegin()
9559
      if ftype == TType.STOP:
9560
        break
9561
      if fid == 1:
9562
        if ftype == TType.STRUCT:
9563
          self.wex = WarehouseServiceException()
9564
          self.wex.read(iprot)
9565
        else:
9566
          iprot.skip(ftype)
9567
      else:
9568
        iprot.skip(ftype)
9569
      iprot.readFieldEnd()
9570
    iprot.readStructEnd()
9571
 
9572
  def write(self, oprot):
9573
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9574
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9575
      return
9576
    oprot.writeStructBegin('markTransferLotAsReceived_result')
9577
    if self.wex is not None:
9578
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9579
      self.wex.write(oprot)
9580
      oprot.writeFieldEnd()
9581
    oprot.writeFieldStop()
9582
    oprot.writeStructEnd()
9583
 
9584
  def validate(self):
9585
    return
9586
 
9587
 
9588
  def __repr__(self):
9589
    L = ['%s=%r' % (key, value)
9590
      for key, value in self.__dict__.iteritems()]
9591
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9592
 
9593
  def __eq__(self, other):
9594
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9595
 
9596
  def __ne__(self, other):
9597
    return not (self == other)
9598
 
9599
class getTransferLotsByDate_args:
9600
  """
9601
  Attributes:
9602
   - fromDate
9603
   - toDate
9604
  """
9605
 
9606
  thrift_spec = (
9607
    None, # 0
9608
    (1, TType.I64, 'fromDate', None, None, ), # 1
9609
    (2, TType.I64, 'toDate', None, None, ), # 2
9610
  )
9611
 
9612
  def __init__(self, fromDate=None, toDate=None,):
9613
    self.fromDate = fromDate
9614
    self.toDate = toDate
9615
 
9616
  def read(self, iprot):
9617
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9618
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9619
      return
9620
    iprot.readStructBegin()
9621
    while True:
9622
      (fname, ftype, fid) = iprot.readFieldBegin()
9623
      if ftype == TType.STOP:
9624
        break
9625
      if fid == 1:
9626
        if ftype == TType.I64:
9627
          self.fromDate = iprot.readI64();
9628
        else:
9629
          iprot.skip(ftype)
9630
      elif fid == 2:
9631
        if ftype == TType.I64:
9632
          self.toDate = iprot.readI64();
9633
        else:
9634
          iprot.skip(ftype)
9635
      else:
9636
        iprot.skip(ftype)
9637
      iprot.readFieldEnd()
9638
    iprot.readStructEnd()
9639
 
9640
  def write(self, oprot):
9641
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9642
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9643
      return
9644
    oprot.writeStructBegin('getTransferLotsByDate_args')
9645
    if self.fromDate is not None:
9646
      oprot.writeFieldBegin('fromDate', TType.I64, 1)
9647
      oprot.writeI64(self.fromDate)
9648
      oprot.writeFieldEnd()
9649
    if self.toDate is not None:
9650
      oprot.writeFieldBegin('toDate', TType.I64, 2)
9651
      oprot.writeI64(self.toDate)
9652
      oprot.writeFieldEnd()
9653
    oprot.writeFieldStop()
9654
    oprot.writeStructEnd()
9655
 
9656
  def validate(self):
9657
    return
9658
 
9659
 
9660
  def __repr__(self):
9661
    L = ['%s=%r' % (key, value)
9662
      for key, value in self.__dict__.iteritems()]
9663
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9664
 
9665
  def __eq__(self, other):
9666
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9667
 
9668
  def __ne__(self, other):
9669
    return not (self == other)
9670
 
9671
class getTransferLotsByDate_result:
9672
  """
9673
  Attributes:
9674
   - success
9675
   - wex
9676
  """
9677
 
9678
  thrift_spec = (
9679
    (0, TType.LIST, 'success', (TType.STRUCT,(TransferLot, TransferLot.thrift_spec)), None, ), # 0
9680
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9681
  )
9682
 
9683
  def __init__(self, success=None, wex=None,):
9684
    self.success = success
9685
    self.wex = wex
9686
 
9687
  def read(self, iprot):
9688
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9689
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9690
      return
9691
    iprot.readStructBegin()
9692
    while True:
9693
      (fname, ftype, fid) = iprot.readFieldBegin()
9694
      if ftype == TType.STOP:
9695
        break
9696
      if fid == 0:
9697
        if ftype == TType.LIST:
9698
          self.success = []
10407 amar.kumar 9699
          (_etype157, _size154) = iprot.readListBegin()
9700
          for _i158 in xrange(_size154):
9701
            _elem159 = TransferLot()
9702
            _elem159.read(iprot)
9703
            self.success.append(_elem159)
7410 amar.kumar 9704
          iprot.readListEnd()
9705
        else:
9706
          iprot.skip(ftype)
9707
      elif fid == 1:
9708
        if ftype == TType.STRUCT:
9709
          self.wex = WarehouseServiceException()
9710
          self.wex.read(iprot)
9711
        else:
9712
          iprot.skip(ftype)
9713
      else:
9714
        iprot.skip(ftype)
9715
      iprot.readFieldEnd()
9716
    iprot.readStructEnd()
9717
 
9718
  def write(self, oprot):
9719
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9720
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9721
      return
9722
    oprot.writeStructBegin('getTransferLotsByDate_result')
9723
    if self.success is not None:
9724
      oprot.writeFieldBegin('success', TType.LIST, 0)
9725
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 9726
      for iter160 in self.success:
9727
        iter160.write(oprot)
7410 amar.kumar 9728
      oprot.writeListEnd()
9729
      oprot.writeFieldEnd()
9730
    if self.wex is not None:
9731
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9732
      self.wex.write(oprot)
9733
      oprot.writeFieldEnd()
9734
    oprot.writeFieldStop()
9735
    oprot.writeStructEnd()
9736
 
9737
  def validate(self):
9738
    return
9739
 
9740
 
9741
  def __repr__(self):
9742
    L = ['%s=%r' % (key, value)
9743
      for key, value in self.__dict__.iteritems()]
9744
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9745
 
9746
  def __eq__(self, other):
9747
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9748
 
9749
  def __ne__(self, other):
9750
    return not (self == other)
9751
 
9752
class getAllowedDestinationWarehousesForTransfer_args:
9753
  """
9754
  Attributes:
9755
   - warehouseId
9756
  """
9757
 
9758
  thrift_spec = (
9759
    None, # 0
9760
    (1, TType.I64, 'warehouseId', None, None, ), # 1
9761
  )
9762
 
9763
  def __init__(self, warehouseId=None,):
9764
    self.warehouseId = warehouseId
9765
 
9766
  def read(self, iprot):
9767
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9768
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9769
      return
9770
    iprot.readStructBegin()
9771
    while True:
9772
      (fname, ftype, fid) = iprot.readFieldBegin()
9773
      if ftype == TType.STOP:
9774
        break
9775
      if fid == 1:
9776
        if ftype == TType.I64:
9777
          self.warehouseId = iprot.readI64();
9778
        else:
9779
          iprot.skip(ftype)
9780
      else:
9781
        iprot.skip(ftype)
9782
      iprot.readFieldEnd()
9783
    iprot.readStructEnd()
9784
 
9785
  def write(self, oprot):
9786
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9787
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9788
      return
9789
    oprot.writeStructBegin('getAllowedDestinationWarehousesForTransfer_args')
9790
    if self.warehouseId is not None:
9791
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
9792
      oprot.writeI64(self.warehouseId)
9793
      oprot.writeFieldEnd()
9794
    oprot.writeFieldStop()
9795
    oprot.writeStructEnd()
9796
 
9797
  def validate(self):
9798
    return
9799
 
9800
 
9801
  def __repr__(self):
9802
    L = ['%s=%r' % (key, value)
9803
      for key, value in self.__dict__.iteritems()]
9804
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9805
 
9806
  def __eq__(self, other):
9807
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9808
 
9809
  def __ne__(self, other):
9810
    return not (self == other)
9811
 
9812
class getAllowedDestinationWarehousesForTransfer_result:
9813
  """
9814
  Attributes:
9815
   - success
9816
  """
9817
 
9818
  thrift_spec = (
9819
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9820
  )
9821
 
9822
  def __init__(self, success=None,):
9823
    self.success = success
9824
 
9825
  def read(self, iprot):
9826
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9827
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9828
      return
9829
    iprot.readStructBegin()
9830
    while True:
9831
      (fname, ftype, fid) = iprot.readFieldBegin()
9832
      if ftype == TType.STOP:
9833
        break
9834
      if fid == 0:
9835
        if ftype == TType.LIST:
9836
          self.success = []
10407 amar.kumar 9837
          (_etype164, _size161) = iprot.readListBegin()
9838
          for _i165 in xrange(_size161):
9839
            _elem166 = iprot.readI64();
9840
            self.success.append(_elem166)
7410 amar.kumar 9841
          iprot.readListEnd()
9842
        else:
9843
          iprot.skip(ftype)
9844
      else:
9845
        iprot.skip(ftype)
9846
      iprot.readFieldEnd()
9847
    iprot.readStructEnd()
9848
 
9849
  def write(self, oprot):
9850
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9851
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9852
      return
9853
    oprot.writeStructBegin('getAllowedDestinationWarehousesForTransfer_result')
9854
    if self.success is not None:
9855
      oprot.writeFieldBegin('success', TType.LIST, 0)
9856
      oprot.writeListBegin(TType.I64, len(self.success))
10407 amar.kumar 9857
      for iter167 in self.success:
9858
        oprot.writeI64(iter167)
7410 amar.kumar 9859
      oprot.writeListEnd()
9860
      oprot.writeFieldEnd()
9861
    oprot.writeFieldStop()
9862
    oprot.writeStructEnd()
9863
 
9864
  def validate(self):
9865
    return
9866
 
9867
 
9868
  def __repr__(self):
9869
    L = ['%s=%r' % (key, value)
9870
      for key, value in self.__dict__.iteritems()]
9871
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9872
 
9873
  def __eq__(self, other):
9874
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9875
 
9876
  def __ne__(self, other):
9877
    return not (self == other)
9878
 
9879
class getItemsInTransferLot_args:
9880
  """
9881
  Attributes:
9882
   - transferLotId
9883
  """
9884
 
9885
  thrift_spec = (
9886
    None, # 0
9887
    (1, TType.I64, 'transferLotId', None, None, ), # 1
9888
  )
9889
 
9890
  def __init__(self, transferLotId=None,):
9891
    self.transferLotId = transferLotId
9892
 
9893
  def read(self, iprot):
9894
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9895
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9896
      return
9897
    iprot.readStructBegin()
9898
    while True:
9899
      (fname, ftype, fid) = iprot.readFieldBegin()
9900
      if ftype == TType.STOP:
9901
        break
9902
      if fid == 1:
9903
        if ftype == TType.I64:
9904
          self.transferLotId = iprot.readI64();
9905
        else:
9906
          iprot.skip(ftype)
9907
      else:
9908
        iprot.skip(ftype)
9909
      iprot.readFieldEnd()
9910
    iprot.readStructEnd()
9911
 
9912
  def write(self, oprot):
9913
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9914
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9915
      return
9916
    oprot.writeStructBegin('getItemsInTransferLot_args')
9917
    if self.transferLotId is not None:
9918
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
9919
      oprot.writeI64(self.transferLotId)
9920
      oprot.writeFieldEnd()
9921
    oprot.writeFieldStop()
9922
    oprot.writeStructEnd()
9923
 
9924
  def validate(self):
9925
    return
9926
 
9927
 
9928
  def __repr__(self):
9929
    L = ['%s=%r' % (key, value)
9930
      for key, value in self.__dict__.iteritems()]
9931
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9932
 
9933
  def __eq__(self, other):
9934
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9935
 
9936
  def __ne__(self, other):
9937
    return not (self == other)
9938
 
9939
class getItemsInTransferLot_result:
9940
  """
9941
  Attributes:
9942
   - success
9943
  """
9944
 
9945
  thrift_spec = (
9946
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
9947
  )
9948
 
9949
  def __init__(self, success=None,):
9950
    self.success = success
9951
 
9952
  def read(self, iprot):
9953
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9954
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9955
      return
9956
    iprot.readStructBegin()
9957
    while True:
9958
      (fname, ftype, fid) = iprot.readFieldBegin()
9959
      if ftype == TType.STOP:
9960
        break
9961
      if fid == 0:
9962
        if ftype == TType.MAP:
9963
          self.success = {}
10407 amar.kumar 9964
          (_ktype169, _vtype170, _size168 ) = iprot.readMapBegin() 
9965
          for _i172 in xrange(_size168):
9966
            _key173 = iprot.readI64();
9967
            _val174 = iprot.readI64();
9968
            self.success[_key173] = _val174
7410 amar.kumar 9969
          iprot.readMapEnd()
9970
        else:
9971
          iprot.skip(ftype)
9972
      else:
9973
        iprot.skip(ftype)
9974
      iprot.readFieldEnd()
9975
    iprot.readStructEnd()
9976
 
9977
  def write(self, oprot):
9978
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9979
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9980
      return
9981
    oprot.writeStructBegin('getItemsInTransferLot_result')
9982
    if self.success is not None:
9983
      oprot.writeFieldBegin('success', TType.MAP, 0)
9984
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
10407 amar.kumar 9985
      for kiter175,viter176 in self.success.items():
9986
        oprot.writeI64(kiter175)
9987
        oprot.writeI64(viter176)
7410 amar.kumar 9988
      oprot.writeMapEnd()
9989
      oprot.writeFieldEnd()
9990
    oprot.writeFieldStop()
9991
    oprot.writeStructEnd()
9992
 
9993
  def validate(self):
9994
    return
9995
 
9996
 
9997
  def __repr__(self):
9998
    L = ['%s=%r' % (key, value)
9999
      for key, value in self.__dict__.iteritems()]
10000
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10001
 
10002
  def __eq__(self, other):
10003
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10004
 
10005
  def __ne__(self, other):
10006
    return not (self == other)
10007
 
10008
class markItemsAsReceivedForTransferLot_args:
10009
  """
10010
  Attributes:
10011
   - id
10012
  """
10013
 
10014
  thrift_spec = (
10015
    None, # 0
10016
    (1, TType.I64, 'id', None, None, ), # 1
10017
  )
10018
 
10019
  def __init__(self, id=None,):
10020
    self.id = id
10021
 
10022
  def read(self, iprot):
10023
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10024
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10025
      return
10026
    iprot.readStructBegin()
10027
    while True:
10028
      (fname, ftype, fid) = iprot.readFieldBegin()
10029
      if ftype == TType.STOP:
10030
        break
10031
      if fid == 1:
10032
        if ftype == TType.I64:
10033
          self.id = iprot.readI64();
10034
        else:
10035
          iprot.skip(ftype)
10036
      else:
10037
        iprot.skip(ftype)
10038
      iprot.readFieldEnd()
10039
    iprot.readStructEnd()
10040
 
10041
  def write(self, oprot):
10042
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10043
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10044
      return
10045
    oprot.writeStructBegin('markItemsAsReceivedForTransferLot_args')
10046
    if self.id is not None:
10047
      oprot.writeFieldBegin('id', TType.I64, 1)
10048
      oprot.writeI64(self.id)
10049
      oprot.writeFieldEnd()
10050
    oprot.writeFieldStop()
10051
    oprot.writeStructEnd()
10052
 
10053
  def validate(self):
10054
    return
10055
 
10056
 
10057
  def __repr__(self):
10058
    L = ['%s=%r' % (key, value)
10059
      for key, value in self.__dict__.iteritems()]
10060
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10061
 
10062
  def __eq__(self, other):
10063
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10064
 
10065
  def __ne__(self, other):
10066
    return not (self == other)
10067
 
10068
class markItemsAsReceivedForTransferLot_result:
10069
  """
10070
  Attributes:
10071
   - wex
10072
  """
10073
 
10074
  thrift_spec = (
10075
    None, # 0
10076
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10077
  )
10078
 
10079
  def __init__(self, wex=None,):
10080
    self.wex = wex
10081
 
10082
  def read(self, iprot):
10083
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10084
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10085
      return
10086
    iprot.readStructBegin()
10087
    while True:
10088
      (fname, ftype, fid) = iprot.readFieldBegin()
10089
      if ftype == TType.STOP:
10090
        break
10091
      if fid == 1:
10092
        if ftype == TType.STRUCT:
10093
          self.wex = WarehouseServiceException()
10094
          self.wex.read(iprot)
10095
        else:
10096
          iprot.skip(ftype)
10097
      else:
10098
        iprot.skip(ftype)
10099
      iprot.readFieldEnd()
10100
    iprot.readStructEnd()
10101
 
10102
  def write(self, oprot):
10103
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10104
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10105
      return
10106
    oprot.writeStructBegin('markItemsAsReceivedForTransferLot_result')
10107
    if self.wex is not None:
10108
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10109
      self.wex.write(oprot)
10110
      oprot.writeFieldEnd()
10111
    oprot.writeFieldStop()
10112
    oprot.writeStructEnd()
10113
 
10114
  def validate(self):
10115
    return
10116
 
10117
 
10118
  def __repr__(self):
10119
    L = ['%s=%r' % (key, value)
10120
      for key, value in self.__dict__.iteritems()]
10121
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10122
 
10123
  def __eq__(self, other):
10124
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10125
 
10126
  def __ne__(self, other):
10127
    return not (self == other)
10128
 
10129
class updateTransferLotAfterItemReceive_args:
10130
  """
10131
  Attributes:
10132
   - id
10133
  """
10134
 
10135
  thrift_spec = (
10136
    None, # 0
10137
    (1, TType.I64, 'id', None, None, ), # 1
10138
  )
10139
 
10140
  def __init__(self, id=None,):
10141
    self.id = id
10142
 
10143
  def read(self, iprot):
10144
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10145
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10146
      return
10147
    iprot.readStructBegin()
10148
    while True:
10149
      (fname, ftype, fid) = iprot.readFieldBegin()
10150
      if ftype == TType.STOP:
10151
        break
10152
      if fid == 1:
10153
        if ftype == TType.I64:
10154
          self.id = iprot.readI64();
10155
        else:
10156
          iprot.skip(ftype)
10157
      else:
10158
        iprot.skip(ftype)
10159
      iprot.readFieldEnd()
10160
    iprot.readStructEnd()
10161
 
10162
  def write(self, oprot):
10163
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10164
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10165
      return
10166
    oprot.writeStructBegin('updateTransferLotAfterItemReceive_args')
10167
    if self.id is not None:
10168
      oprot.writeFieldBegin('id', TType.I64, 1)
10169
      oprot.writeI64(self.id)
10170
      oprot.writeFieldEnd()
10171
    oprot.writeFieldStop()
10172
    oprot.writeStructEnd()
10173
 
10174
  def validate(self):
10175
    return
10176
 
10177
 
10178
  def __repr__(self):
10179
    L = ['%s=%r' % (key, value)
10180
      for key, value in self.__dict__.iteritems()]
10181
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10182
 
10183
  def __eq__(self, other):
10184
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10185
 
10186
  def __ne__(self, other):
10187
    return not (self == other)
10188
 
10189
class updateTransferLotAfterItemReceive_result:
10190
  """
10191
  Attributes:
10192
   - success
10193
   - wex
10194
  """
10195
 
10196
  thrift_spec = (
10197
    (0, TType.I32, 'success', None, None, ), # 0
10198
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10199
  )
10200
 
10201
  def __init__(self, success=None, wex=None,):
10202
    self.success = success
10203
    self.wex = wex
10204
 
10205
  def read(self, iprot):
10206
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10207
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10208
      return
10209
    iprot.readStructBegin()
10210
    while True:
10211
      (fname, ftype, fid) = iprot.readFieldBegin()
10212
      if ftype == TType.STOP:
10213
        break
10214
      if fid == 0:
10215
        if ftype == TType.I32:
10216
          self.success = iprot.readI32();
10217
        else:
10218
          iprot.skip(ftype)
10219
      elif fid == 1:
10220
        if ftype == TType.STRUCT:
10221
          self.wex = WarehouseServiceException()
10222
          self.wex.read(iprot)
10223
        else:
10224
          iprot.skip(ftype)
10225
      else:
10226
        iprot.skip(ftype)
10227
      iprot.readFieldEnd()
10228
    iprot.readStructEnd()
10229
 
10230
  def write(self, oprot):
10231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10233
      return
10234
    oprot.writeStructBegin('updateTransferLotAfterItemReceive_result')
10235
    if self.success is not None:
10236
      oprot.writeFieldBegin('success', TType.I32, 0)
10237
      oprot.writeI32(self.success)
10238
      oprot.writeFieldEnd()
10239
    if self.wex is not None:
10240
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10241
      self.wex.write(oprot)
10242
      oprot.writeFieldEnd()
10243
    oprot.writeFieldStop()
10244
    oprot.writeStructEnd()
10245
 
10246
  def validate(self):
10247
    return
10248
 
10249
 
10250
  def __repr__(self):
10251
    L = ['%s=%r' % (key, value)
10252
      for key, value in self.__dict__.iteritems()]
10253
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10254
 
10255
  def __eq__(self, other):
10256
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10257
 
10258
  def __ne__(self, other):
10259
    return not (self == other)
10260
 
7459 amar.kumar 10261
class scanForTransferOut_args:
7410 amar.kumar 10262
  """
10263
  Attributes:
10264
   - inventoryItems
10265
   - type
10266
   - transferLotId
10267
  """
10268
 
10269
  thrift_spec = (
10270
    None, # 0
10271
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
10272
    (2, TType.I32, 'type', None, None, ), # 2
10273
    (3, TType.I64, 'transferLotId', None, None, ), # 3
10274
  )
10275
 
10276
  def __init__(self, inventoryItems=None, type=None, transferLotId=None,):
10277
    self.inventoryItems = inventoryItems
10278
    self.type = type
10279
    self.transferLotId = transferLotId
10280
 
10281
  def read(self, iprot):
10282
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10283
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10284
      return
10285
    iprot.readStructBegin()
10286
    while True:
10287
      (fname, ftype, fid) = iprot.readFieldBegin()
10288
      if ftype == TType.STOP:
10289
        break
10290
      if fid == 1:
10291
        if ftype == TType.LIST:
10292
          self.inventoryItems = []
10407 amar.kumar 10293
          (_etype180, _size177) = iprot.readListBegin()
10294
          for _i181 in xrange(_size177):
10295
            _elem182 = InventoryItem()
10296
            _elem182.read(iprot)
10297
            self.inventoryItems.append(_elem182)
7410 amar.kumar 10298
          iprot.readListEnd()
10299
        else:
10300
          iprot.skip(ftype)
10301
      elif fid == 2:
10302
        if ftype == TType.I32:
10303
          self.type = iprot.readI32();
10304
        else:
10305
          iprot.skip(ftype)
10306
      elif fid == 3:
10307
        if ftype == TType.I64:
10308
          self.transferLotId = iprot.readI64();
10309
        else:
10310
          iprot.skip(ftype)
10311
      else:
10312
        iprot.skip(ftype)
10313
      iprot.readFieldEnd()
10314
    iprot.readStructEnd()
10315
 
10316
  def write(self, oprot):
10317
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10318
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10319
      return
7459 amar.kumar 10320
    oprot.writeStructBegin('scanForTransferOut_args')
7410 amar.kumar 10321
    if self.inventoryItems is not None:
10322
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
10323
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 10324
      for iter183 in self.inventoryItems:
10325
        iter183.write(oprot)
7410 amar.kumar 10326
      oprot.writeListEnd()
10327
      oprot.writeFieldEnd()
10328
    if self.type is not None:
10329
      oprot.writeFieldBegin('type', TType.I32, 2)
10330
      oprot.writeI32(self.type)
10331
      oprot.writeFieldEnd()
10332
    if self.transferLotId is not None:
10333
      oprot.writeFieldBegin('transferLotId', TType.I64, 3)
10334
      oprot.writeI64(self.transferLotId)
10335
      oprot.writeFieldEnd()
10336
    oprot.writeFieldStop()
10337
    oprot.writeStructEnd()
10338
 
10339
  def validate(self):
10340
    return
10341
 
10342
 
10343
  def __repr__(self):
10344
    L = ['%s=%r' % (key, value)
10345
      for key, value in self.__dict__.iteritems()]
10346
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10347
 
10348
  def __eq__(self, other):
10349
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10350
 
10351
  def __ne__(self, other):
10352
    return not (self == other)
10353
 
7459 amar.kumar 10354
class scanForTransferOut_result:
7410 amar.kumar 10355
  """
10356
  Attributes:
10357
   - wex
10358
  """
10359
 
10360
  thrift_spec = (
10361
    None, # 0
10362
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10363
  )
10364
 
10365
  def __init__(self, wex=None,):
10366
    self.wex = wex
10367
 
10368
  def read(self, iprot):
10369
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10370
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10371
      return
10372
    iprot.readStructBegin()
10373
    while True:
10374
      (fname, ftype, fid) = iprot.readFieldBegin()
10375
      if ftype == TType.STOP:
10376
        break
10377
      if fid == 1:
10378
        if ftype == TType.STRUCT:
10379
          self.wex = WarehouseServiceException()
10380
          self.wex.read(iprot)
10381
        else:
10382
          iprot.skip(ftype)
10383
      else:
10384
        iprot.skip(ftype)
10385
      iprot.readFieldEnd()
10386
    iprot.readStructEnd()
10387
 
10388
  def write(self, oprot):
10389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10391
      return
7459 amar.kumar 10392
    oprot.writeStructBegin('scanForTransferOut_result')
7410 amar.kumar 10393
    if self.wex is not None:
10394
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10395
      self.wex.write(oprot)
10396
      oprot.writeFieldEnd()
10397
    oprot.writeFieldStop()
10398
    oprot.writeStructEnd()
10399
 
10400
  def validate(self):
10401
    return
10402
 
10403
 
10404
  def __repr__(self):
10405
    L = ['%s=%r' % (key, value)
10406
      for key, value in self.__dict__.iteritems()]
10407
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10408
 
10409
  def __eq__(self, other):
10410
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10411
 
10412
  def __ne__(self, other):
10413
    return not (self == other)
7459 amar.kumar 10414
 
10415
class scanForTransferIn_args:
10416
  """
10417
  Attributes:
10418
   - inventoryItems
10419
   - type
10420
   - transferLotId
10421
  """
10422
 
10423
  thrift_spec = (
10424
    None, # 0
10425
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
10426
    (2, TType.I32, 'type', None, None, ), # 2
10427
    (3, TType.I64, 'transferLotId', None, None, ), # 3
10428
  )
10429
 
10430
  def __init__(self, inventoryItems=None, type=None, transferLotId=None,):
10431
    self.inventoryItems = inventoryItems
10432
    self.type = type
10433
    self.transferLotId = transferLotId
10434
 
10435
  def read(self, iprot):
10436
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10437
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10438
      return
10439
    iprot.readStructBegin()
10440
    while True:
10441
      (fname, ftype, fid) = iprot.readFieldBegin()
10442
      if ftype == TType.STOP:
10443
        break
10444
      if fid == 1:
10445
        if ftype == TType.LIST:
10446
          self.inventoryItems = []
10407 amar.kumar 10447
          (_etype187, _size184) = iprot.readListBegin()
10448
          for _i188 in xrange(_size184):
10449
            _elem189 = InventoryItem()
10450
            _elem189.read(iprot)
10451
            self.inventoryItems.append(_elem189)
7459 amar.kumar 10452
          iprot.readListEnd()
10453
        else:
10454
          iprot.skip(ftype)
10455
      elif fid == 2:
10456
        if ftype == TType.I32:
10457
          self.type = iprot.readI32();
10458
        else:
10459
          iprot.skip(ftype)
10460
      elif fid == 3:
10461
        if ftype == TType.I64:
10462
          self.transferLotId = iprot.readI64();
10463
        else:
10464
          iprot.skip(ftype)
10465
      else:
10466
        iprot.skip(ftype)
10467
      iprot.readFieldEnd()
10468
    iprot.readStructEnd()
10469
 
10470
  def write(self, oprot):
10471
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10472
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10473
      return
10474
    oprot.writeStructBegin('scanForTransferIn_args')
10475
    if self.inventoryItems is not None:
10476
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
10477
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 10478
      for iter190 in self.inventoryItems:
10479
        iter190.write(oprot)
7459 amar.kumar 10480
      oprot.writeListEnd()
10481
      oprot.writeFieldEnd()
10482
    if self.type is not None:
10483
      oprot.writeFieldBegin('type', TType.I32, 2)
10484
      oprot.writeI32(self.type)
10485
      oprot.writeFieldEnd()
10486
    if self.transferLotId is not None:
10487
      oprot.writeFieldBegin('transferLotId', TType.I64, 3)
10488
      oprot.writeI64(self.transferLotId)
10489
      oprot.writeFieldEnd()
10490
    oprot.writeFieldStop()
10491
    oprot.writeStructEnd()
10492
 
10493
  def validate(self):
10494
    return
10495
 
10496
 
10497
  def __repr__(self):
10498
    L = ['%s=%r' % (key, value)
10499
      for key, value in self.__dict__.iteritems()]
10500
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10501
 
10502
  def __eq__(self, other):
10503
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10504
 
10505
  def __ne__(self, other):
10506
    return not (self == other)
10507
 
10508
class scanForTransferIn_result:
10509
  """
10510
  Attributes:
10511
   - wex
10512
  """
10513
 
10514
  thrift_spec = (
10515
    None, # 0
10516
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10517
  )
10518
 
10519
  def __init__(self, wex=None,):
10520
    self.wex = wex
10521
 
10522
  def read(self, iprot):
10523
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10524
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10525
      return
10526
    iprot.readStructBegin()
10527
    while True:
10528
      (fname, ftype, fid) = iprot.readFieldBegin()
10529
      if ftype == TType.STOP:
10530
        break
10531
      if fid == 1:
10532
        if ftype == TType.STRUCT:
10533
          self.wex = WarehouseServiceException()
10534
          self.wex.read(iprot)
10535
        else:
10536
          iprot.skip(ftype)
10537
      else:
10538
        iprot.skip(ftype)
10539
      iprot.readFieldEnd()
10540
    iprot.readStructEnd()
10541
 
10542
  def write(self, oprot):
10543
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10544
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10545
      return
10546
    oprot.writeStructBegin('scanForTransferIn_result')
10547
    if self.wex is not None:
10548
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10549
      self.wex.write(oprot)
10550
      oprot.writeFieldEnd()
10551
    oprot.writeFieldStop()
10552
    oprot.writeStructEnd()
10553
 
10554
  def validate(self):
10555
    return
10556
 
10557
 
10558
  def __repr__(self):
10559
    L = ['%s=%r' % (key, value)
10560
      for key, value in self.__dict__.iteritems()]
10561
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10562
 
10563
  def __eq__(self, other):
10564
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10565
 
10566
  def __ne__(self, other):
10567
    return not (self == other)
10568
 
10569
class scanForOursThirdPartyReceive_args:
10570
  """
10571
  Attributes:
10572
   - inventoryItems
10573
   - id
10574
  """
10575
 
10576
  thrift_spec = (
10577
    None, # 0
10578
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
10579
    (2, TType.I64, 'id', None, None, ), # 2
10580
  )
10581
 
10582
  def __init__(self, inventoryItems=None, id=None,):
10583
    self.inventoryItems = inventoryItems
10584
    self.id = id
10585
 
10586
  def read(self, iprot):
10587
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10588
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10589
      return
10590
    iprot.readStructBegin()
10591
    while True:
10592
      (fname, ftype, fid) = iprot.readFieldBegin()
10593
      if ftype == TType.STOP:
10594
        break
10595
      if fid == 1:
10596
        if ftype == TType.LIST:
10597
          self.inventoryItems = []
10407 amar.kumar 10598
          (_etype194, _size191) = iprot.readListBegin()
10599
          for _i195 in xrange(_size191):
10600
            _elem196 = InventoryItem()
10601
            _elem196.read(iprot)
10602
            self.inventoryItems.append(_elem196)
7459 amar.kumar 10603
          iprot.readListEnd()
10604
        else:
10605
          iprot.skip(ftype)
10606
      elif fid == 2:
10607
        if ftype == TType.I64:
10608
          self.id = iprot.readI64();
10609
        else:
10610
          iprot.skip(ftype)
10611
      else:
10612
        iprot.skip(ftype)
10613
      iprot.readFieldEnd()
10614
    iprot.readStructEnd()
10615
 
10616
  def write(self, oprot):
10617
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10618
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10619
      return
10620
    oprot.writeStructBegin('scanForOursThirdPartyReceive_args')
10621
    if self.inventoryItems is not None:
10622
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
10623
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 10624
      for iter197 in self.inventoryItems:
10625
        iter197.write(oprot)
7459 amar.kumar 10626
      oprot.writeListEnd()
10627
      oprot.writeFieldEnd()
10628
    if self.id is not None:
10629
      oprot.writeFieldBegin('id', TType.I64, 2)
10630
      oprot.writeI64(self.id)
10631
      oprot.writeFieldEnd()
10632
    oprot.writeFieldStop()
10633
    oprot.writeStructEnd()
10634
 
10635
  def validate(self):
10636
    return
10637
 
10638
 
10639
  def __repr__(self):
10640
    L = ['%s=%r' % (key, value)
10641
      for key, value in self.__dict__.iteritems()]
10642
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10643
 
10644
  def __eq__(self, other):
10645
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10646
 
10647
  def __ne__(self, other):
10648
    return not (self == other)
10649
 
10650
class scanForOursThirdPartyReceive_result:
10651
  """
10652
  Attributes:
10653
   - wex
10654
  """
10655
 
10656
  thrift_spec = (
10657
    None, # 0
10658
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10659
  )
10660
 
10661
  def __init__(self, wex=None,):
10662
    self.wex = wex
10663
 
10664
  def read(self, iprot):
10665
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10666
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10667
      return
10668
    iprot.readStructBegin()
10669
    while True:
10670
      (fname, ftype, fid) = iprot.readFieldBegin()
10671
      if ftype == TType.STOP:
10672
        break
10673
      if fid == 1:
10674
        if ftype == TType.STRUCT:
10675
          self.wex = WarehouseServiceException()
10676
          self.wex.read(iprot)
10677
        else:
10678
          iprot.skip(ftype)
10679
      else:
10680
        iprot.skip(ftype)
10681
      iprot.readFieldEnd()
10682
    iprot.readStructEnd()
10683
 
10684
  def write(self, oprot):
10685
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10686
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10687
      return
10688
    oprot.writeStructBegin('scanForOursThirdPartyReceive_result')
10689
    if self.wex is not None:
10690
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10691
      self.wex.write(oprot)
10692
      oprot.writeFieldEnd()
10693
    oprot.writeFieldStop()
10694
    oprot.writeStructEnd()
10695
 
10696
  def validate(self):
10697
    return
10698
 
10699
 
10700
  def __repr__(self):
10701
    L = ['%s=%r' % (key, value)
10702
      for key, value in self.__dict__.iteritems()]
10703
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10704
 
10705
  def __eq__(self, other):
10706
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10707
 
10708
  def __ne__(self, other):
10709
    return not (self == other)
7574 amar.kumar 10710
 
10711
class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args:
10712
  """
10713
  Attributes:
10714
   - itemId
10715
   - physicalWarehouseId
10716
  """
10717
 
10718
  thrift_spec = (
10719
    None, # 0
10720
    (1, TType.I64, 'itemId', None, None, ), # 1
10721
    (2, TType.I64, 'physicalWarehouseId', None, None, ), # 2
10722
  )
10723
 
10724
  def __init__(self, itemId=None, physicalWarehouseId=None,):
10725
    self.itemId = itemId
10726
    self.physicalWarehouseId = physicalWarehouseId
10727
 
10728
  def read(self, iprot):
10729
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10730
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10731
      return
10732
    iprot.readStructBegin()
10733
    while True:
10734
      (fname, ftype, fid) = iprot.readFieldBegin()
10735
      if ftype == TType.STOP:
10736
        break
10737
      if fid == 1:
10738
        if ftype == TType.I64:
10739
          self.itemId = iprot.readI64();
10740
        else:
10741
          iprot.skip(ftype)
10742
      elif fid == 2:
10743
        if ftype == TType.I64:
10744
          self.physicalWarehouseId = iprot.readI64();
10745
        else:
10746
          iprot.skip(ftype)
10747
      else:
10748
        iprot.skip(ftype)
10749
      iprot.readFieldEnd()
10750
    iprot.readStructEnd()
10751
 
10752
  def write(self, oprot):
10753
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10754
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10755
      return
10756
    oprot.writeStructBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args')
10757
    if self.itemId is not None:
10758
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10759
      oprot.writeI64(self.itemId)
10760
      oprot.writeFieldEnd()
10761
    if self.physicalWarehouseId is not None:
10762
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 2)
10763
      oprot.writeI64(self.physicalWarehouseId)
10764
      oprot.writeFieldEnd()
10765
    oprot.writeFieldStop()
10766
    oprot.writeStructEnd()
10767
 
10768
  def validate(self):
10769
    return
10770
 
10771
 
10772
  def __repr__(self):
10773
    L = ['%s=%r' % (key, value)
10774
      for key, value in self.__dict__.iteritems()]
10775
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10776
 
10777
  def __eq__(self, other):
10778
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10779
 
10780
  def __ne__(self, other):
10781
    return not (self == other)
10782
 
10783
class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result:
10784
  """
10785
  Attributes:
10786
   - success
10787
   - wex
10788
  """
10789
 
10790
  thrift_spec = (
10791
    (0, TType.I64, 'success', None, None, ), # 0
10792
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10793
  )
10794
 
10795
  def __init__(self, success=None, wex=None,):
10796
    self.success = success
10797
    self.wex = wex
10798
 
10799
  def read(self, iprot):
10800
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10801
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10802
      return
10803
    iprot.readStructBegin()
10804
    while True:
10805
      (fname, ftype, fid) = iprot.readFieldBegin()
10806
      if ftype == TType.STOP:
10807
        break
10808
      if fid == 0:
10809
        if ftype == TType.I64:
10810
          self.success = iprot.readI64();
10811
        else:
10812
          iprot.skip(ftype)
10813
      elif fid == 1:
10814
        if ftype == TType.STRUCT:
10815
          self.wex = WarehouseServiceException()
10816
          self.wex.read(iprot)
10817
        else:
10818
          iprot.skip(ftype)
10819
      else:
10820
        iprot.skip(ftype)
10821
      iprot.readFieldEnd()
10822
    iprot.readStructEnd()
10823
 
10824
  def write(self, oprot):
10825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10827
      return
10828
    oprot.writeStructBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result')
10829
    if self.success is not None:
10830
      oprot.writeFieldBegin('success', TType.I64, 0)
10831
      oprot.writeI64(self.success)
10832
      oprot.writeFieldEnd()
10833
    if self.wex is not None:
10834
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10835
      self.wex.write(oprot)
10836
      oprot.writeFieldEnd()
10837
    oprot.writeFieldStop()
10838
    oprot.writeStructEnd()
10839
 
10840
  def validate(self):
10841
    return
10842
 
10843
 
10844
  def __repr__(self):
10845
    L = ['%s=%r' % (key, value)
10846
      for key, value in self.__dict__.iteritems()]
10847
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10848
 
10849
  def __eq__(self, other):
10850
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10851
 
10852
  def __ne__(self, other):
10853
    return not (self == other)
7672 rajveer 10854
 
10855
class getInTransitInventory_args:
10856
  """
10857
  Attributes:
10858
   - originWarehouseId
10859
  """
10860
 
10861
  thrift_spec = (
10862
    None, # 0
10863
    (1, TType.I64, 'originWarehouseId', None, None, ), # 1
10864
  )
10865
 
10866
  def __init__(self, originWarehouseId=None,):
10867
    self.originWarehouseId = originWarehouseId
10868
 
10869
  def read(self, iprot):
10870
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10871
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10872
      return
10873
    iprot.readStructBegin()
10874
    while True:
10875
      (fname, ftype, fid) = iprot.readFieldBegin()
10876
      if ftype == TType.STOP:
10877
        break
10878
      if fid == 1:
10879
        if ftype == TType.I64:
10880
          self.originWarehouseId = iprot.readI64();
10881
        else:
10882
          iprot.skip(ftype)
10883
      else:
10884
        iprot.skip(ftype)
10885
      iprot.readFieldEnd()
10886
    iprot.readStructEnd()
10887
 
10888
  def write(self, oprot):
10889
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10890
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10891
      return
10892
    oprot.writeStructBegin('getInTransitInventory_args')
10893
    if self.originWarehouseId is not None:
10894
      oprot.writeFieldBegin('originWarehouseId', TType.I64, 1)
10895
      oprot.writeI64(self.originWarehouseId)
10896
      oprot.writeFieldEnd()
10897
    oprot.writeFieldStop()
10898
    oprot.writeStructEnd()
10899
 
10900
  def validate(self):
10901
    return
10902
 
10903
 
10904
  def __repr__(self):
10905
    L = ['%s=%r' % (key, value)
10906
      for key, value in self.__dict__.iteritems()]
10907
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10908
 
10909
  def __eq__(self, other):
10910
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10911
 
10912
  def __ne__(self, other):
10913
    return not (self == other)
10914
 
10915
class getInTransitInventory_result:
10916
  """
10917
  Attributes:
10918
   - success
10919
  """
10920
 
10921
  thrift_spec = (
10922
    (0, TType.LIST, 'success', (TType.STRUCT,(InTransitInventory, InTransitInventory.thrift_spec)), None, ), # 0
10923
  )
10924
 
10925
  def __init__(self, success=None,):
10926
    self.success = success
10927
 
10928
  def read(self, iprot):
10929
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10930
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10931
      return
10932
    iprot.readStructBegin()
10933
    while True:
10934
      (fname, ftype, fid) = iprot.readFieldBegin()
10935
      if ftype == TType.STOP:
10936
        break
10937
      if fid == 0:
10938
        if ftype == TType.LIST:
10939
          self.success = []
10407 amar.kumar 10940
          (_etype201, _size198) = iprot.readListBegin()
10941
          for _i202 in xrange(_size198):
10942
            _elem203 = InTransitInventory()
10943
            _elem203.read(iprot)
10944
            self.success.append(_elem203)
7672 rajveer 10945
          iprot.readListEnd()
10946
        else:
10947
          iprot.skip(ftype)
10948
      else:
10949
        iprot.skip(ftype)
10950
      iprot.readFieldEnd()
10951
    iprot.readStructEnd()
10952
 
10953
  def write(self, oprot):
10954
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10955
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10956
      return
10957
    oprot.writeStructBegin('getInTransitInventory_result')
10958
    if self.success is not None:
10959
      oprot.writeFieldBegin('success', TType.LIST, 0)
10960
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 10961
      for iter204 in self.success:
10962
        iter204.write(oprot)
7672 rajveer 10963
      oprot.writeListEnd()
10964
      oprot.writeFieldEnd()
10965
    oprot.writeFieldStop()
10966
    oprot.writeStructEnd()
10967
 
10968
  def validate(self):
10969
    return
10970
 
10971
 
10972
  def __repr__(self):
10973
    L = ['%s=%r' % (key, value)
10974
      for key, value in self.__dict__.iteritems()]
10975
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10976
 
10977
  def __eq__(self, other):
10978
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10979
 
10980
  def __ne__(self, other):
10981
    return not (self == other)
7968 amar.kumar 10982
 
10983
class isItemAvailableForSale_args:
10984
  """
10985
  Attributes:
10986
   - itemId
10987
   - serialNumber
10988
   - warehouseId
10989
  """
10990
 
10991
  thrift_spec = (
10992
    None, # 0
10993
    (1, TType.I64, 'itemId', None, None, ), # 1
10994
    (2, TType.STRING, 'serialNumber', None, None, ), # 2
10995
    (3, TType.I64, 'warehouseId', None, None, ), # 3
10996
  )
10997
 
10998
  def __init__(self, itemId=None, serialNumber=None, warehouseId=None,):
10999
    self.itemId = itemId
11000
    self.serialNumber = serialNumber
11001
    self.warehouseId = warehouseId
11002
 
11003
  def read(self, iprot):
11004
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11005
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11006
      return
11007
    iprot.readStructBegin()
11008
    while True:
11009
      (fname, ftype, fid) = iprot.readFieldBegin()
11010
      if ftype == TType.STOP:
11011
        break
11012
      if fid == 1:
11013
        if ftype == TType.I64:
11014
          self.itemId = iprot.readI64();
11015
        else:
11016
          iprot.skip(ftype)
11017
      elif fid == 2:
11018
        if ftype == TType.STRING:
11019
          self.serialNumber = iprot.readString();
11020
        else:
11021
          iprot.skip(ftype)
11022
      elif fid == 3:
11023
        if ftype == TType.I64:
11024
          self.warehouseId = iprot.readI64();
11025
        else:
11026
          iprot.skip(ftype)
11027
      else:
11028
        iprot.skip(ftype)
11029
      iprot.readFieldEnd()
11030
    iprot.readStructEnd()
11031
 
11032
  def write(self, oprot):
11033
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11034
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11035
      return
11036
    oprot.writeStructBegin('isItemAvailableForSale_args')
11037
    if self.itemId is not None:
11038
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11039
      oprot.writeI64(self.itemId)
11040
      oprot.writeFieldEnd()
11041
    if self.serialNumber is not None:
11042
      oprot.writeFieldBegin('serialNumber', TType.STRING, 2)
11043
      oprot.writeString(self.serialNumber)
11044
      oprot.writeFieldEnd()
11045
    if self.warehouseId is not None:
11046
      oprot.writeFieldBegin('warehouseId', TType.I64, 3)
11047
      oprot.writeI64(self.warehouseId)
11048
      oprot.writeFieldEnd()
11049
    oprot.writeFieldStop()
11050
    oprot.writeStructEnd()
11051
 
11052
  def validate(self):
11053
    return
11054
 
11055
 
11056
  def __repr__(self):
11057
    L = ['%s=%r' % (key, value)
11058
      for key, value in self.__dict__.iteritems()]
11059
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11060
 
11061
  def __eq__(self, other):
11062
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11063
 
11064
  def __ne__(self, other):
11065
    return not (self == other)
11066
 
11067
class isItemAvailableForSale_result:
11068
  """
11069
  Attributes:
11070
   - success
11071
   - wex
11072
  """
11073
 
11074
  thrift_spec = (
11075
    (0, TType.BOOL, 'success', None, None, ), # 0
11076
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11077
  )
11078
 
11079
  def __init__(self, success=None, wex=None,):
11080
    self.success = success
11081
    self.wex = wex
11082
 
11083
  def read(self, iprot):
11084
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11085
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11086
      return
11087
    iprot.readStructBegin()
11088
    while True:
11089
      (fname, ftype, fid) = iprot.readFieldBegin()
11090
      if ftype == TType.STOP:
11091
        break
11092
      if fid == 0:
11093
        if ftype == TType.BOOL:
11094
          self.success = iprot.readBool();
11095
        else:
11096
          iprot.skip(ftype)
11097
      elif fid == 1:
11098
        if ftype == TType.STRUCT:
11099
          self.wex = WarehouseServiceException()
11100
          self.wex.read(iprot)
11101
        else:
11102
          iprot.skip(ftype)
11103
      else:
11104
        iprot.skip(ftype)
11105
      iprot.readFieldEnd()
11106
    iprot.readStructEnd()
11107
 
11108
  def write(self, oprot):
11109
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11110
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11111
      return
11112
    oprot.writeStructBegin('isItemAvailableForSale_result')
11113
    if self.success is not None:
11114
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11115
      oprot.writeBool(self.success)
11116
      oprot.writeFieldEnd()
11117
    if self.wex is not None:
11118
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11119
      self.wex.write(oprot)
11120
      oprot.writeFieldEnd()
11121
    oprot.writeFieldStop()
11122
    oprot.writeStructEnd()
11123
 
11124
  def validate(self):
11125
    return
11126
 
11127
 
11128
  def __repr__(self):
11129
    L = ['%s=%r' % (key, value)
11130
      for key, value in self.__dict__.iteritems()]
11131
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11132
 
11133
  def __eq__(self, other):
11134
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11135
 
11136
  def __ne__(self, other):
11137
    return not (self == other)
11138
 
11139
class getHistoricBadInventoryByScans_args:
11140
  """
11141
  Attributes:
11142
   - date
11143
  """
11144
 
11145
  thrift_spec = (
11146
    None, # 0
11147
    (1, TType.I64, 'date', None, None, ), # 1
11148
  )
11149
 
11150
  def __init__(self, date=None,):
11151
    self.date = date
11152
 
11153
  def read(self, iprot):
11154
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11155
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11156
      return
11157
    iprot.readStructBegin()
11158
    while True:
11159
      (fname, ftype, fid) = iprot.readFieldBegin()
11160
      if ftype == TType.STOP:
11161
        break
11162
      if fid == 1:
11163
        if ftype == TType.I64:
11164
          self.date = iprot.readI64();
11165
        else:
11166
          iprot.skip(ftype)
11167
      else:
11168
        iprot.skip(ftype)
11169
      iprot.readFieldEnd()
11170
    iprot.readStructEnd()
11171
 
11172
  def write(self, oprot):
11173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11175
      return
11176
    oprot.writeStructBegin('getHistoricBadInventoryByScans_args')
11177
    if self.date is not None:
11178
      oprot.writeFieldBegin('date', TType.I64, 1)
11179
      oprot.writeI64(self.date)
11180
      oprot.writeFieldEnd()
11181
    oprot.writeFieldStop()
11182
    oprot.writeStructEnd()
11183
 
11184
  def validate(self):
11185
    return
11186
 
11187
 
11188
  def __repr__(self):
11189
    L = ['%s=%r' % (key, value)
11190
      for key, value in self.__dict__.iteritems()]
11191
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11192
 
11193
  def __eq__(self, other):
11194
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11195
 
11196
  def __ne__(self, other):
11197
    return not (self == other)
11198
 
11199
class getHistoricBadInventoryByScans_result:
11200
  """
11201
  Attributes:
11202
   - success
11203
   - wex
11204
  """
11205
 
11206
  thrift_spec = (
11207
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
11208
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11209
  )
11210
 
11211
  def __init__(self, success=None, wex=None,):
11212
    self.success = success
11213
    self.wex = wex
11214
 
11215
  def read(self, iprot):
11216
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11217
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11218
      return
11219
    iprot.readStructBegin()
11220
    while True:
11221
      (fname, ftype, fid) = iprot.readFieldBegin()
11222
      if ftype == TType.STOP:
11223
        break
11224
      if fid == 0:
11225
        if ftype == TType.LIST:
11226
          self.success = []
10407 amar.kumar 11227
          (_etype208, _size205) = iprot.readListBegin()
11228
          for _i209 in xrange(_size205):
11229
            _elem210 = InventoryAvailability()
11230
            _elem210.read(iprot)
11231
            self.success.append(_elem210)
7968 amar.kumar 11232
          iprot.readListEnd()
11233
        else:
11234
          iprot.skip(ftype)
11235
      elif fid == 1:
11236
        if ftype == TType.STRUCT:
11237
          self.wex = WarehouseServiceException()
11238
          self.wex.read(iprot)
11239
        else:
11240
          iprot.skip(ftype)
11241
      else:
11242
        iprot.skip(ftype)
11243
      iprot.readFieldEnd()
11244
    iprot.readStructEnd()
11245
 
11246
  def write(self, oprot):
11247
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11248
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11249
      return
11250
    oprot.writeStructBegin('getHistoricBadInventoryByScans_result')
11251
    if self.success is not None:
11252
      oprot.writeFieldBegin('success', TType.LIST, 0)
11253
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 11254
      for iter211 in self.success:
11255
        iter211.write(oprot)
7968 amar.kumar 11256
      oprot.writeListEnd()
11257
      oprot.writeFieldEnd()
11258
    if self.wex is not None:
11259
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11260
      self.wex.write(oprot)
11261
      oprot.writeFieldEnd()
11262
    oprot.writeFieldStop()
11263
    oprot.writeStructEnd()
11264
 
11265
  def validate(self):
11266
    return
11267
 
11268
 
11269
  def __repr__(self):
11270
    L = ['%s=%r' % (key, value)
11271
      for key, value in self.__dict__.iteritems()]
11272
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11273
 
11274
  def __eq__(self, other):
11275
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11276
 
11277
  def __ne__(self, other):
11278
    return not (self == other)
8565 amar.kumar 11279
 
11280
class scanForBadSale_args:
11281
  """
11282
  Attributes:
8717 amar.kumar 11283
   - serialNumber
11284
   - itemNumber
11285
   - itemId
8565 amar.kumar 11286
   - orderId
8717 amar.kumar 11287
   - fulfilmentWarehouseId
8565 amar.kumar 11288
   - quantity
11289
   - billingWarehouseId
11290
  """
11291
 
11292
  thrift_spec = (
11293
    None, # 0
8717 amar.kumar 11294
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
11295
    (2, TType.STRING, 'itemNumber', None, None, ), # 2
11296
    (3, TType.I64, 'itemId', None, None, ), # 3
11297
    (4, TType.I64, 'orderId', None, None, ), # 4
11298
    (5, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 5
11299
    (6, TType.I64, 'quantity', None, None, ), # 6
11300
    (7, TType.I64, 'billingWarehouseId', None, None, ), # 7
8565 amar.kumar 11301
  )
11302
 
8717 amar.kumar 11303
  def __init__(self, serialNumber=None, itemNumber=None, itemId=None, orderId=None, fulfilmentWarehouseId=None, quantity=None, billingWarehouseId=None,):
11304
    self.serialNumber = serialNumber
11305
    self.itemNumber = itemNumber
11306
    self.itemId = itemId
8565 amar.kumar 11307
    self.orderId = orderId
8717 amar.kumar 11308
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 11309
    self.quantity = quantity
11310
    self.billingWarehouseId = billingWarehouseId
11311
 
11312
  def read(self, iprot):
11313
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11314
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11315
      return
11316
    iprot.readStructBegin()
11317
    while True:
11318
      (fname, ftype, fid) = iprot.readFieldBegin()
11319
      if ftype == TType.STOP:
11320
        break
11321
      if fid == 1:
8717 amar.kumar 11322
        if ftype == TType.STRING:
11323
          self.serialNumber = iprot.readString();
8565 amar.kumar 11324
        else:
11325
          iprot.skip(ftype)
11326
      elif fid == 2:
8717 amar.kumar 11327
        if ftype == TType.STRING:
11328
          self.itemNumber = iprot.readString();
8565 amar.kumar 11329
        else:
11330
          iprot.skip(ftype)
11331
      elif fid == 3:
11332
        if ftype == TType.I64:
8717 amar.kumar 11333
          self.itemId = iprot.readI64();
8565 amar.kumar 11334
        else:
11335
          iprot.skip(ftype)
11336
      elif fid == 4:
11337
        if ftype == TType.I64:
8717 amar.kumar 11338
          self.orderId = iprot.readI64();
8565 amar.kumar 11339
        else:
11340
          iprot.skip(ftype)
11341
      elif fid == 5:
11342
        if ftype == TType.I64:
8717 amar.kumar 11343
          self.fulfilmentWarehouseId = iprot.readI64();
11344
        else:
11345
          iprot.skip(ftype)
11346
      elif fid == 6:
11347
        if ftype == TType.I64:
11348
          self.quantity = iprot.readI64();
11349
        else:
11350
          iprot.skip(ftype)
11351
      elif fid == 7:
11352
        if ftype == TType.I64:
8565 amar.kumar 11353
          self.billingWarehouseId = iprot.readI64();
11354
        else:
11355
          iprot.skip(ftype)
11356
      else:
11357
        iprot.skip(ftype)
11358
      iprot.readFieldEnd()
11359
    iprot.readStructEnd()
11360
 
11361
  def write(self, oprot):
11362
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11363
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11364
      return
11365
    oprot.writeStructBegin('scanForBadSale_args')
8717 amar.kumar 11366
    if self.serialNumber is not None:
11367
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
11368
      oprot.writeString(self.serialNumber)
8565 amar.kumar 11369
      oprot.writeFieldEnd()
8717 amar.kumar 11370
    if self.itemNumber is not None:
11371
      oprot.writeFieldBegin('itemNumber', TType.STRING, 2)
11372
      oprot.writeString(self.itemNumber)
11373
      oprot.writeFieldEnd()
11374
    if self.itemId is not None:
11375
      oprot.writeFieldBegin('itemId', TType.I64, 3)
11376
      oprot.writeI64(self.itemId)
11377
      oprot.writeFieldEnd()
8565 amar.kumar 11378
    if self.orderId is not None:
8717 amar.kumar 11379
      oprot.writeFieldBegin('orderId', TType.I64, 4)
8565 amar.kumar 11380
      oprot.writeI64(self.orderId)
11381
      oprot.writeFieldEnd()
8717 amar.kumar 11382
    if self.fulfilmentWarehouseId is not None:
11383
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 5)
11384
      oprot.writeI64(self.fulfilmentWarehouseId)
11385
      oprot.writeFieldEnd()
8565 amar.kumar 11386
    if self.quantity is not None:
8717 amar.kumar 11387
      oprot.writeFieldBegin('quantity', TType.I64, 6)
8565 amar.kumar 11388
      oprot.writeI64(self.quantity)
11389
      oprot.writeFieldEnd()
11390
    if self.billingWarehouseId is not None:
8717 amar.kumar 11391
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 7)
8565 amar.kumar 11392
      oprot.writeI64(self.billingWarehouseId)
11393
      oprot.writeFieldEnd()
11394
    oprot.writeFieldStop()
11395
    oprot.writeStructEnd()
11396
 
11397
  def validate(self):
11398
    return
11399
 
11400
 
11401
  def __repr__(self):
11402
    L = ['%s=%r' % (key, value)
11403
      for key, value in self.__dict__.iteritems()]
11404
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11405
 
11406
  def __eq__(self, other):
11407
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11408
 
11409
  def __ne__(self, other):
11410
    return not (self == other)
11411
 
11412
class scanForBadSale_result:
8717 amar.kumar 11413
  """
11414
  Attributes:
11415
   - success
11416
   - wex
11417
  """
8565 amar.kumar 11418
 
11419
  thrift_spec = (
8717 amar.kumar 11420
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
11421
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8565 amar.kumar 11422
  )
11423
 
8717 amar.kumar 11424
  def __init__(self, success=None, wex=None,):
11425
    self.success = success
11426
    self.wex = wex
11427
 
8565 amar.kumar 11428
  def read(self, iprot):
11429
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11430
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11431
      return
11432
    iprot.readStructBegin()
11433
    while True:
11434
      (fname, ftype, fid) = iprot.readFieldBegin()
11435
      if ftype == TType.STOP:
11436
        break
8717 amar.kumar 11437
      if fid == 0:
11438
        if ftype == TType.STRUCT:
11439
          self.success = InventoryItem()
11440
          self.success.read(iprot)
11441
        else:
11442
          iprot.skip(ftype)
11443
      elif fid == 1:
11444
        if ftype == TType.STRUCT:
11445
          self.wex = WarehouseServiceException()
11446
          self.wex.read(iprot)
11447
        else:
11448
          iprot.skip(ftype)
8565 amar.kumar 11449
      else:
11450
        iprot.skip(ftype)
11451
      iprot.readFieldEnd()
11452
    iprot.readStructEnd()
11453
 
11454
  def write(self, oprot):
11455
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11456
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11457
      return
11458
    oprot.writeStructBegin('scanForBadSale_result')
8717 amar.kumar 11459
    if self.success is not None:
11460
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11461
      self.success.write(oprot)
11462
      oprot.writeFieldEnd()
11463
    if self.wex is not None:
11464
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11465
      self.wex.write(oprot)
11466
      oprot.writeFieldEnd()
8565 amar.kumar 11467
    oprot.writeFieldStop()
11468
    oprot.writeStructEnd()
11469
 
11470
  def validate(self):
11471
    return
11472
 
11473
 
11474
  def __repr__(self):
11475
    L = ['%s=%r' % (key, value)
11476
      for key, value in self.__dict__.iteritems()]
11477
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11478
 
11479
  def __eq__(self, other):
11480
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11481
 
11482
  def __ne__(self, other):
11483
    return not (self == other)
10120 manish.sha 11484
 
11485
class getTransferLotItemsForMarkReceive_args:
11486
  """
11487
  Attributes:
11488
   - transferLotId
11489
   - scanType
11490
  """
11491
 
11492
  thrift_spec = (
11493
    None, # 0
11494
    (1, TType.I64, 'transferLotId', None, None, ), # 1
11495
    (2, TType.I32, 'scanType', None, None, ), # 2
11496
  )
11497
 
11498
  def __init__(self, transferLotId=None, scanType=None,):
11499
    self.transferLotId = transferLotId
11500
    self.scanType = scanType
11501
 
11502
  def read(self, iprot):
11503
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11504
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11505
      return
11506
    iprot.readStructBegin()
11507
    while True:
11508
      (fname, ftype, fid) = iprot.readFieldBegin()
11509
      if ftype == TType.STOP:
11510
        break
11511
      if fid == 1:
11512
        if ftype == TType.I64:
11513
          self.transferLotId = iprot.readI64();
11514
        else:
11515
          iprot.skip(ftype)
11516
      elif fid == 2:
11517
        if ftype == TType.I32:
11518
          self.scanType = iprot.readI32();
11519
        else:
11520
          iprot.skip(ftype)
11521
      else:
11522
        iprot.skip(ftype)
11523
      iprot.readFieldEnd()
11524
    iprot.readStructEnd()
11525
 
11526
  def write(self, oprot):
11527
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11528
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11529
      return
11530
    oprot.writeStructBegin('getTransferLotItemsForMarkReceive_args')
11531
    if self.transferLotId is not None:
11532
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
11533
      oprot.writeI64(self.transferLotId)
11534
      oprot.writeFieldEnd()
11535
    if self.scanType is not None:
11536
      oprot.writeFieldBegin('scanType', TType.I32, 2)
11537
      oprot.writeI32(self.scanType)
11538
      oprot.writeFieldEnd()
11539
    oprot.writeFieldStop()
11540
    oprot.writeStructEnd()
11541
 
11542
  def validate(self):
11543
    return
11544
 
11545
 
11546
  def __repr__(self):
11547
    L = ['%s=%r' % (key, value)
11548
      for key, value in self.__dict__.iteritems()]
11549
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11550
 
11551
  def __eq__(self, other):
11552
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11553
 
11554
  def __ne__(self, other):
11555
    return not (self == other)
11556
 
11557
class getTransferLotItemsForMarkReceive_result:
11558
  """
11559
  Attributes:
11560
   - success
11561
   - wex
11562
  """
11563
 
11564
  thrift_spec = (
11565
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
11566
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11567
  )
11568
 
11569
  def __init__(self, success=None, wex=None,):
11570
    self.success = success
11571
    self.wex = wex
11572
 
11573
  def read(self, iprot):
11574
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11575
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11576
      return
11577
    iprot.readStructBegin()
11578
    while True:
11579
      (fname, ftype, fid) = iprot.readFieldBegin()
11580
      if ftype == TType.STOP:
11581
        break
11582
      if fid == 0:
11583
        if ftype == TType.LIST:
11584
          self.success = []
10407 amar.kumar 11585
          (_etype215, _size212) = iprot.readListBegin()
11586
          for _i216 in xrange(_size212):
11587
            _elem217 = InventoryItem()
11588
            _elem217.read(iprot)
11589
            self.success.append(_elem217)
10120 manish.sha 11590
          iprot.readListEnd()
11591
        else:
11592
          iprot.skip(ftype)
11593
      elif fid == 1:
11594
        if ftype == TType.STRUCT:
11595
          self.wex = WarehouseServiceException()
11596
          self.wex.read(iprot)
11597
        else:
11598
          iprot.skip(ftype)
11599
      else:
11600
        iprot.skip(ftype)
11601
      iprot.readFieldEnd()
11602
    iprot.readStructEnd()
11603
 
11604
  def write(self, oprot):
11605
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11606
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11607
      return
11608
    oprot.writeStructBegin('getTransferLotItemsForMarkReceive_result')
11609
    if self.success is not None:
11610
      oprot.writeFieldBegin('success', TType.LIST, 0)
11611
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 11612
      for iter218 in self.success:
11613
        iter218.write(oprot)
10120 manish.sha 11614
      oprot.writeListEnd()
11615
      oprot.writeFieldEnd()
11616
    if self.wex is not None:
11617
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11618
      self.wex.write(oprot)
11619
      oprot.writeFieldEnd()
11620
    oprot.writeFieldStop()
11621
    oprot.writeStructEnd()
11622
 
11623
  def validate(self):
11624
    return
11625
 
11626
 
11627
  def __repr__(self):
11628
    L = ['%s=%r' % (key, value)
11629
      for key, value in self.__dict__.iteritems()]
11630
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11631
 
11632
  def __eq__(self, other):
11633
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11634
 
11635
  def __ne__(self, other):
11636
    return not (self == other)
11637
 
11638
class markItemsAsReceivedForTransferLotPartial_args:
11639
  """
11640
  Attributes:
11641
   - inventoryItems
11642
   - transferLotId
11643
  """
11644
 
11645
  thrift_spec = (
11646
    None, # 0
11647
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
11648
    (2, TType.I64, 'transferLotId', None, None, ), # 2
11649
  )
11650
 
11651
  def __init__(self, inventoryItems=None, transferLotId=None,):
11652
    self.inventoryItems = inventoryItems
11653
    self.transferLotId = transferLotId
11654
 
11655
  def read(self, iprot):
11656
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11657
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11658
      return
11659
    iprot.readStructBegin()
11660
    while True:
11661
      (fname, ftype, fid) = iprot.readFieldBegin()
11662
      if ftype == TType.STOP:
11663
        break
11664
      if fid == 1:
11665
        if ftype == TType.LIST:
11666
          self.inventoryItems = []
10407 amar.kumar 11667
          (_etype222, _size219) = iprot.readListBegin()
11668
          for _i223 in xrange(_size219):
11669
            _elem224 = InventoryItem()
11670
            _elem224.read(iprot)
11671
            self.inventoryItems.append(_elem224)
10120 manish.sha 11672
          iprot.readListEnd()
11673
        else:
11674
          iprot.skip(ftype)
11675
      elif fid == 2:
11676
        if ftype == TType.I64:
11677
          self.transferLotId = iprot.readI64();
11678
        else:
11679
          iprot.skip(ftype)
11680
      else:
11681
        iprot.skip(ftype)
11682
      iprot.readFieldEnd()
11683
    iprot.readStructEnd()
11684
 
11685
  def write(self, oprot):
11686
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11687
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11688
      return
11689
    oprot.writeStructBegin('markItemsAsReceivedForTransferLotPartial_args')
11690
    if self.inventoryItems is not None:
11691
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
11692
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 11693
      for iter225 in self.inventoryItems:
11694
        iter225.write(oprot)
10120 manish.sha 11695
      oprot.writeListEnd()
11696
      oprot.writeFieldEnd()
11697
    if self.transferLotId is not None:
11698
      oprot.writeFieldBegin('transferLotId', TType.I64, 2)
11699
      oprot.writeI64(self.transferLotId)
11700
      oprot.writeFieldEnd()
11701
    oprot.writeFieldStop()
11702
    oprot.writeStructEnd()
11703
 
11704
  def validate(self):
11705
    return
11706
 
11707
 
11708
  def __repr__(self):
11709
    L = ['%s=%r' % (key, value)
11710
      for key, value in self.__dict__.iteritems()]
11711
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11712
 
11713
  def __eq__(self, other):
11714
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11715
 
11716
  def __ne__(self, other):
11717
    return not (self == other)
11718
 
11719
class markItemsAsReceivedForTransferLotPartial_result:
11720
  """
11721
  Attributes:
11722
   - wex
11723
  """
11724
 
11725
  thrift_spec = (
11726
    None, # 0
11727
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11728
  )
11729
 
11730
  def __init__(self, wex=None,):
11731
    self.wex = wex
11732
 
11733
  def read(self, iprot):
11734
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11735
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11736
      return
11737
    iprot.readStructBegin()
11738
    while True:
11739
      (fname, ftype, fid) = iprot.readFieldBegin()
11740
      if ftype == TType.STOP:
11741
        break
11742
      if fid == 1:
11743
        if ftype == TType.STRUCT:
11744
          self.wex = WarehouseServiceException()
11745
          self.wex.read(iprot)
11746
        else:
11747
          iprot.skip(ftype)
11748
      else:
11749
        iprot.skip(ftype)
11750
      iprot.readFieldEnd()
11751
    iprot.readStructEnd()
11752
 
11753
  def write(self, oprot):
11754
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11755
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11756
      return
11757
    oprot.writeStructBegin('markItemsAsReceivedForTransferLotPartial_result')
11758
    if self.wex is not None:
11759
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11760
      self.wex.write(oprot)
11761
      oprot.writeFieldEnd()
11762
    oprot.writeFieldStop()
11763
    oprot.writeStructEnd()
11764
 
11765
  def validate(self):
11766
    return
11767
 
11768
 
11769
  def __repr__(self):
11770
    L = ['%s=%r' % (key, value)
11771
      for key, value in self.__dict__.iteritems()]
11772
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11773
 
11774
  def __eq__(self, other):
11775
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11776
 
11777
  def __ne__(self, other):
11778
    return not (self == other)
11779
 
11780
class markTransferLotAsReceivedPartial_args:
11781
  """
11782
  Attributes:
11783
   - id
11784
   - remoteTransferRefNumber
11785
  """
11786
 
11787
  thrift_spec = (
11788
    None, # 0
11789
    (1, TType.I64, 'id', None, None, ), # 1
11790
    (2, TType.STRING, 'remoteTransferRefNumber', None, None, ), # 2
11791
  )
11792
 
11793
  def __init__(self, id=None, remoteTransferRefNumber=None,):
11794
    self.id = id
11795
    self.remoteTransferRefNumber = remoteTransferRefNumber
11796
 
11797
  def read(self, iprot):
11798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11800
      return
11801
    iprot.readStructBegin()
11802
    while True:
11803
      (fname, ftype, fid) = iprot.readFieldBegin()
11804
      if ftype == TType.STOP:
11805
        break
11806
      if fid == 1:
11807
        if ftype == TType.I64:
11808
          self.id = iprot.readI64();
11809
        else:
11810
          iprot.skip(ftype)
11811
      elif fid == 2:
11812
        if ftype == TType.STRING:
11813
          self.remoteTransferRefNumber = iprot.readString();
11814
        else:
11815
          iprot.skip(ftype)
11816
      else:
11817
        iprot.skip(ftype)
11818
      iprot.readFieldEnd()
11819
    iprot.readStructEnd()
11820
 
11821
  def write(self, oprot):
11822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11824
      return
11825
    oprot.writeStructBegin('markTransferLotAsReceivedPartial_args')
11826
    if self.id is not None:
11827
      oprot.writeFieldBegin('id', TType.I64, 1)
11828
      oprot.writeI64(self.id)
11829
      oprot.writeFieldEnd()
11830
    if self.remoteTransferRefNumber is not None:
11831
      oprot.writeFieldBegin('remoteTransferRefNumber', TType.STRING, 2)
11832
      oprot.writeString(self.remoteTransferRefNumber)
11833
      oprot.writeFieldEnd()
11834
    oprot.writeFieldStop()
11835
    oprot.writeStructEnd()
11836
 
11837
  def validate(self):
11838
    return
11839
 
11840
 
11841
  def __repr__(self):
11842
    L = ['%s=%r' % (key, value)
11843
      for key, value in self.__dict__.iteritems()]
11844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11845
 
11846
  def __eq__(self, other):
11847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11848
 
11849
  def __ne__(self, other):
11850
    return not (self == other)
11851
 
11852
class markTransferLotAsReceivedPartial_result:
11853
  """
11854
  Attributes:
11855
   - wex
11856
  """
11857
 
11858
  thrift_spec = (
11859
    None, # 0
11860
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11861
  )
11862
 
11863
  def __init__(self, wex=None,):
11864
    self.wex = wex
11865
 
11866
  def read(self, iprot):
11867
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11868
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11869
      return
11870
    iprot.readStructBegin()
11871
    while True:
11872
      (fname, ftype, fid) = iprot.readFieldBegin()
11873
      if ftype == TType.STOP:
11874
        break
11875
      if fid == 1:
11876
        if ftype == TType.STRUCT:
11877
          self.wex = WarehouseServiceException()
11878
          self.wex.read(iprot)
11879
        else:
11880
          iprot.skip(ftype)
11881
      else:
11882
        iprot.skip(ftype)
11883
      iprot.readFieldEnd()
11884
    iprot.readStructEnd()
11885
 
11886
  def write(self, oprot):
11887
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11888
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11889
      return
11890
    oprot.writeStructBegin('markTransferLotAsReceivedPartial_result')
11891
    if self.wex is not None:
11892
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11893
      self.wex.write(oprot)
11894
      oprot.writeFieldEnd()
11895
    oprot.writeFieldStop()
11896
    oprot.writeStructEnd()
11897
 
11898
  def validate(self):
11899
    return
11900
 
11901
 
11902
  def __repr__(self):
11903
    L = ['%s=%r' % (key, value)
11904
      for key, value in self.__dict__.iteritems()]
11905
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11906
 
11907
  def __eq__(self, other):
11908
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11909
 
11910
  def __ne__(self, other):
11911
    return not (self == other)
10690 manish.sha 11912
 
11913
class getInventoryItemScannedInForPO_args:
11914
  """
11915
  Attributes:
11916
   - itemId
11917
   - purchaseIds
11918
  """
11919
 
11920
  thrift_spec = (
11921
    None, # 0
11922
    (1, TType.I64, 'itemId', None, None, ), # 1
11923
    (2, TType.LIST, 'purchaseIds', (TType.I64,None), None, ), # 2
11924
  )
11925
 
11926
  def __init__(self, itemId=None, purchaseIds=None,):
11927
    self.itemId = itemId
11928
    self.purchaseIds = purchaseIds
11929
 
11930
  def read(self, iprot):
11931
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11932
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11933
      return
11934
    iprot.readStructBegin()
11935
    while True:
11936
      (fname, ftype, fid) = iprot.readFieldBegin()
11937
      if ftype == TType.STOP:
11938
        break
11939
      if fid == 1:
11940
        if ftype == TType.I64:
11941
          self.itemId = iprot.readI64();
11942
        else:
11943
          iprot.skip(ftype)
11944
      elif fid == 2:
11945
        if ftype == TType.LIST:
11946
          self.purchaseIds = []
11947
          (_etype229, _size226) = iprot.readListBegin()
11948
          for _i230 in xrange(_size226):
11949
            _elem231 = iprot.readI64();
11950
            self.purchaseIds.append(_elem231)
11951
          iprot.readListEnd()
11952
        else:
11953
          iprot.skip(ftype)
11954
      else:
11955
        iprot.skip(ftype)
11956
      iprot.readFieldEnd()
11957
    iprot.readStructEnd()
11958
 
11959
  def write(self, oprot):
11960
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11961
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11962
      return
11963
    oprot.writeStructBegin('getInventoryItemScannedInForPO_args')
11964
    if self.itemId is not None:
11965
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11966
      oprot.writeI64(self.itemId)
11967
      oprot.writeFieldEnd()
11968
    if self.purchaseIds is not None:
11969
      oprot.writeFieldBegin('purchaseIds', TType.LIST, 2)
11970
      oprot.writeListBegin(TType.I64, len(self.purchaseIds))
11971
      for iter232 in self.purchaseIds:
11972
        oprot.writeI64(iter232)
11973
      oprot.writeListEnd()
11974
      oprot.writeFieldEnd()
11975
    oprot.writeFieldStop()
11976
    oprot.writeStructEnd()
11977
 
11978
  def validate(self):
11979
    return
11980
 
11981
 
11982
  def __repr__(self):
11983
    L = ['%s=%r' % (key, value)
11984
      for key, value in self.__dict__.iteritems()]
11985
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11986
 
11987
  def __eq__(self, other):
11988
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11989
 
11990
  def __ne__(self, other):
11991
    return not (self == other)
11992
 
11993
class getInventoryItemScannedInForPO_result:
11994
  """
11995
  Attributes:
11996
   - success
11997
   - wex
11998
  """
11999
 
12000
  thrift_spec = (
12001
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
12002
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12003
  )
12004
 
12005
  def __init__(self, success=None, wex=None,):
12006
    self.success = success
12007
    self.wex = wex
12008
 
12009
  def read(self, iprot):
12010
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12011
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12012
      return
12013
    iprot.readStructBegin()
12014
    while True:
12015
      (fname, ftype, fid) = iprot.readFieldBegin()
12016
      if ftype == TType.STOP:
12017
        break
12018
      if fid == 0:
12019
        if ftype == TType.LIST:
12020
          self.success = []
12021
          (_etype236, _size233) = iprot.readListBegin()
12022
          for _i237 in xrange(_size233):
12023
            _elem238 = InventoryItem()
12024
            _elem238.read(iprot)
12025
            self.success.append(_elem238)
12026
          iprot.readListEnd()
12027
        else:
12028
          iprot.skip(ftype)
12029
      elif fid == 1:
12030
        if ftype == TType.STRUCT:
12031
          self.wex = WarehouseServiceException()
12032
          self.wex.read(iprot)
12033
        else:
12034
          iprot.skip(ftype)
12035
      else:
12036
        iprot.skip(ftype)
12037
      iprot.readFieldEnd()
12038
    iprot.readStructEnd()
12039
 
12040
  def write(self, oprot):
12041
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12042
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12043
      return
12044
    oprot.writeStructBegin('getInventoryItemScannedInForPO_result')
12045
    if self.success is not None:
12046
      oprot.writeFieldBegin('success', TType.LIST, 0)
12047
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12048
      for iter239 in self.success:
12049
        iter239.write(oprot)
12050
      oprot.writeListEnd()
12051
      oprot.writeFieldEnd()
12052
    if self.wex is not None:
12053
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
12054
      self.wex.write(oprot)
12055
      oprot.writeFieldEnd()
12056
    oprot.writeFieldStop()
12057
    oprot.writeStructEnd()
12058
 
12059
  def validate(self):
12060
    return
12061
 
12062
 
12063
  def __repr__(self):
12064
    L = ['%s=%r' % (key, value)
12065
      for key, value in self.__dict__.iteritems()]
12066
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12067
 
12068
  def __eq__(self, other):
12069
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12070
 
12071
  def __ne__(self, other):
12072
    return not (self == other)
12073
 
12074
class getAmazonTransferredSkuDetails_args:
12075
  """
12076
  Attributes:
12077
   - itemIds
12078
  """
12079
 
12080
  thrift_spec = (
12081
    None, # 0
12082
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
12083
  )
12084
 
12085
  def __init__(self, itemIds=None,):
12086
    self.itemIds = itemIds
12087
 
12088
  def read(self, iprot):
12089
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12090
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12091
      return
12092
    iprot.readStructBegin()
12093
    while True:
12094
      (fname, ftype, fid) = iprot.readFieldBegin()
12095
      if ftype == TType.STOP:
12096
        break
12097
      if fid == 1:
12098
        if ftype == TType.LIST:
12099
          self.itemIds = []
12100
          (_etype243, _size240) = iprot.readListBegin()
12101
          for _i244 in xrange(_size240):
12102
            _elem245 = iprot.readI64();
12103
            self.itemIds.append(_elem245)
12104
          iprot.readListEnd()
12105
        else:
12106
          iprot.skip(ftype)
12107
      else:
12108
        iprot.skip(ftype)
12109
      iprot.readFieldEnd()
12110
    iprot.readStructEnd()
12111
 
12112
  def write(self, oprot):
12113
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12114
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12115
      return
12116
    oprot.writeStructBegin('getAmazonTransferredSkuDetails_args')
12117
    if self.itemIds is not None:
12118
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
12119
      oprot.writeListBegin(TType.I64, len(self.itemIds))
12120
      for iter246 in self.itemIds:
12121
        oprot.writeI64(iter246)
12122
      oprot.writeListEnd()
12123
      oprot.writeFieldEnd()
12124
    oprot.writeFieldStop()
12125
    oprot.writeStructEnd()
12126
 
12127
  def validate(self):
12128
    return
12129
 
12130
 
12131
  def __repr__(self):
12132
    L = ['%s=%r' % (key, value)
12133
      for key, value in self.__dict__.iteritems()]
12134
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12135
 
12136
  def __eq__(self, other):
12137
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12138
 
12139
  def __ne__(self, other):
12140
    return not (self == other)
12141
 
12142
class getAmazonTransferredSkuDetails_result:
12143
  """
12144
  Attributes:
12145
   - success
12146
   - wex
12147
  """
12148
 
12149
  thrift_spec = (
12150
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonTransferredSkuDetail, AmazonTransferredSkuDetail.thrift_spec)), None, ), # 0
12151
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12152
  )
12153
 
12154
  def __init__(self, success=None, wex=None,):
12155
    self.success = success
12156
    self.wex = wex
12157
 
12158
  def read(self, iprot):
12159
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12160
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12161
      return
12162
    iprot.readStructBegin()
12163
    while True:
12164
      (fname, ftype, fid) = iprot.readFieldBegin()
12165
      if ftype == TType.STOP:
12166
        break
12167
      if fid == 0:
12168
        if ftype == TType.LIST:
12169
          self.success = []
12170
          (_etype250, _size247) = iprot.readListBegin()
12171
          for _i251 in xrange(_size247):
12172
            _elem252 = AmazonTransferredSkuDetail()
12173
            _elem252.read(iprot)
12174
            self.success.append(_elem252)
12175
          iprot.readListEnd()
12176
        else:
12177
          iprot.skip(ftype)
12178
      elif fid == 1:
12179
        if ftype == TType.STRUCT:
12180
          self.wex = WarehouseServiceException()
12181
          self.wex.read(iprot)
12182
        else:
12183
          iprot.skip(ftype)
12184
      else:
12185
        iprot.skip(ftype)
12186
      iprot.readFieldEnd()
12187
    iprot.readStructEnd()
12188
 
12189
  def write(self, oprot):
12190
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12191
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12192
      return
12193
    oprot.writeStructBegin('getAmazonTransferredSkuDetails_result')
12194
    if self.success is not None:
12195
      oprot.writeFieldBegin('success', TType.LIST, 0)
12196
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12197
      for iter253 in self.success:
12198
        iter253.write(oprot)
12199
      oprot.writeListEnd()
12200
      oprot.writeFieldEnd()
12201
    if self.wex is not None:
12202
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
12203
      self.wex.write(oprot)
12204
      oprot.writeFieldEnd()
12205
    oprot.writeFieldStop()
12206
    oprot.writeStructEnd()
12207
 
12208
  def validate(self):
12209
    return
12210
 
12211
 
12212
  def __repr__(self):
12213
    L = ['%s=%r' % (key, value)
12214
      for key, value in self.__dict__.iteritems()]
12215
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12216
 
12217
  def __eq__(self, other):
12218
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12219
 
12220
  def __ne__(self, other):
12221
    return not (self == other)
12222
 
12223
class getScansforPurchase_args:
12224
  """
12225
  Attributes:
12226
   - purchaseId
12227
   - scanType
12228
  """
12229
 
12230
  thrift_spec = (
12231
    None, # 0
12232
    (1, TType.I64, 'purchaseId', None, None, ), # 1
12233
    (2, TType.I32, 'scanType', None, None, ), # 2
12234
  )
12235
 
12236
  def __init__(self, purchaseId=None, scanType=None,):
12237
    self.purchaseId = purchaseId
12238
    self.scanType = scanType
12239
 
12240
  def read(self, iprot):
12241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12243
      return
12244
    iprot.readStructBegin()
12245
    while True:
12246
      (fname, ftype, fid) = iprot.readFieldBegin()
12247
      if ftype == TType.STOP:
12248
        break
12249
      if fid == 1:
12250
        if ftype == TType.I64:
12251
          self.purchaseId = iprot.readI64();
12252
        else:
12253
          iprot.skip(ftype)
12254
      elif fid == 2:
12255
        if ftype == TType.I32:
12256
          self.scanType = iprot.readI32();
12257
        else:
12258
          iprot.skip(ftype)
12259
      else:
12260
        iprot.skip(ftype)
12261
      iprot.readFieldEnd()
12262
    iprot.readStructEnd()
12263
 
12264
  def write(self, oprot):
12265
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12266
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12267
      return
12268
    oprot.writeStructBegin('getScansforPurchase_args')
12269
    if self.purchaseId is not None:
12270
      oprot.writeFieldBegin('purchaseId', TType.I64, 1)
12271
      oprot.writeI64(self.purchaseId)
12272
      oprot.writeFieldEnd()
12273
    if self.scanType is not None:
12274
      oprot.writeFieldBegin('scanType', TType.I32, 2)
12275
      oprot.writeI32(self.scanType)
12276
      oprot.writeFieldEnd()
12277
    oprot.writeFieldStop()
12278
    oprot.writeStructEnd()
12279
 
12280
  def validate(self):
12281
    return
12282
 
12283
 
12284
  def __repr__(self):
12285
    L = ['%s=%r' % (key, value)
12286
      for key, value in self.__dict__.iteritems()]
12287
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12288
 
12289
  def __eq__(self, other):
12290
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12291
 
12292
  def __ne__(self, other):
12293
    return not (self == other)
12294
 
12295
class getScansforPurchase_result:
12296
  """
12297
  Attributes:
12298
   - success
12299
   - wex
12300
  """
12301
 
12302
  thrift_spec = (
12303
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
12304
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12305
  )
12306
 
12307
  def __init__(self, success=None, wex=None,):
12308
    self.success = success
12309
    self.wex = wex
12310
 
12311
  def read(self, iprot):
12312
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12313
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12314
      return
12315
    iprot.readStructBegin()
12316
    while True:
12317
      (fname, ftype, fid) = iprot.readFieldBegin()
12318
      if ftype == TType.STOP:
12319
        break
12320
      if fid == 0:
12321
        if ftype == TType.LIST:
12322
          self.success = []
12323
          (_etype257, _size254) = iprot.readListBegin()
12324
          for _i258 in xrange(_size254):
12325
            _elem259 = Scan()
12326
            _elem259.read(iprot)
12327
            self.success.append(_elem259)
12328
          iprot.readListEnd()
12329
        else:
12330
          iprot.skip(ftype)
12331
      elif fid == 1:
12332
        if ftype == TType.STRUCT:
12333
          self.wex = WarehouseServiceException()
12334
          self.wex.read(iprot)
12335
        else:
12336
          iprot.skip(ftype)
12337
      else:
12338
        iprot.skip(ftype)
12339
      iprot.readFieldEnd()
12340
    iprot.readStructEnd()
12341
 
12342
  def write(self, oprot):
12343
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12344
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12345
      return
12346
    oprot.writeStructBegin('getScansforPurchase_result')
12347
    if self.success is not None:
12348
      oprot.writeFieldBegin('success', TType.LIST, 0)
12349
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12350
      for iter260 in self.success:
12351
        iter260.write(oprot)
12352
      oprot.writeListEnd()
12353
      oprot.writeFieldEnd()
12354
    if self.wex is not None:
12355
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
12356
      self.wex.write(oprot)
12357
      oprot.writeFieldEnd()
12358
    oprot.writeFieldStop()
12359
    oprot.writeStructEnd()
12360
 
12361
  def validate(self):
12362
    return
12363
 
12364
 
12365
  def __repr__(self):
12366
    L = ['%s=%r' % (key, value)
12367
      for key, value in self.__dict__.iteritems()]
12368
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12369
 
12370
  def __eq__(self, other):
12371
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12372
 
12373
  def __ne__(self, other):
12374
    return not (self == other)
10864 manish.sha 12375
 
12376
class getCurrentBadQuantityForItem_args:
12377
  """
12378
  Attributes:
12379
   - itemId
12380
   - currentWarehouseId
12381
   - physicalWarehouseId
12382
  """
12383
 
12384
  thrift_spec = (
12385
    None, # 0
12386
    (1, TType.I64, 'itemId', None, None, ), # 1
12387
    (2, TType.I64, 'currentWarehouseId', None, None, ), # 2
12388
    (3, TType.I64, 'physicalWarehouseId', None, None, ), # 3
12389
  )
12390
 
12391
  def __init__(self, itemId=None, currentWarehouseId=None, physicalWarehouseId=None,):
12392
    self.itemId = itemId
12393
    self.currentWarehouseId = currentWarehouseId
12394
    self.physicalWarehouseId = physicalWarehouseId
12395
 
12396
  def read(self, iprot):
12397
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12398
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12399
      return
12400
    iprot.readStructBegin()
12401
    while True:
12402
      (fname, ftype, fid) = iprot.readFieldBegin()
12403
      if ftype == TType.STOP:
12404
        break
12405
      if fid == 1:
12406
        if ftype == TType.I64:
12407
          self.itemId = iprot.readI64();
12408
        else:
12409
          iprot.skip(ftype)
12410
      elif fid == 2:
12411
        if ftype == TType.I64:
12412
          self.currentWarehouseId = iprot.readI64();
12413
        else:
12414
          iprot.skip(ftype)
12415
      elif fid == 3:
12416
        if ftype == TType.I64:
12417
          self.physicalWarehouseId = iprot.readI64();
12418
        else:
12419
          iprot.skip(ftype)
12420
      else:
12421
        iprot.skip(ftype)
12422
      iprot.readFieldEnd()
12423
    iprot.readStructEnd()
12424
 
12425
  def write(self, oprot):
12426
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12427
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12428
      return
12429
    oprot.writeStructBegin('getCurrentBadQuantityForItem_args')
12430
    if self.itemId is not None:
12431
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12432
      oprot.writeI64(self.itemId)
12433
      oprot.writeFieldEnd()
12434
    if self.currentWarehouseId is not None:
12435
      oprot.writeFieldBegin('currentWarehouseId', TType.I64, 2)
12436
      oprot.writeI64(self.currentWarehouseId)
12437
      oprot.writeFieldEnd()
12438
    if self.physicalWarehouseId is not None:
12439
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 3)
12440
      oprot.writeI64(self.physicalWarehouseId)
12441
      oprot.writeFieldEnd()
12442
    oprot.writeFieldStop()
12443
    oprot.writeStructEnd()
12444
 
12445
  def validate(self):
12446
    return
12447
 
12448
 
12449
  def __repr__(self):
12450
    L = ['%s=%r' % (key, value)
12451
      for key, value in self.__dict__.iteritems()]
12452
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12453
 
12454
  def __eq__(self, other):
12455
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12456
 
12457
  def __ne__(self, other):
12458
    return not (self == other)
12459
 
12460
class getCurrentBadQuantityForItem_result:
12461
  """
12462
  Attributes:
12463
   - success
12464
   - wex
12465
  """
12466
 
12467
  thrift_spec = (
12468
    (0, TType.I64, 'success', None, None, ), # 0
12469
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12470
  )
12471
 
12472
  def __init__(self, success=None, wex=None,):
12473
    self.success = success
12474
    self.wex = wex
12475
 
12476
  def read(self, iprot):
12477
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12478
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12479
      return
12480
    iprot.readStructBegin()
12481
    while True:
12482
      (fname, ftype, fid) = iprot.readFieldBegin()
12483
      if ftype == TType.STOP:
12484
        break
12485
      if fid == 0:
12486
        if ftype == TType.I64:
12487
          self.success = iprot.readI64();
12488
        else:
12489
          iprot.skip(ftype)
12490
      elif fid == 1:
12491
        if ftype == TType.STRUCT:
12492
          self.wex = WarehouseServiceException()
12493
          self.wex.read(iprot)
12494
        else:
12495
          iprot.skip(ftype)
12496
      else:
12497
        iprot.skip(ftype)
12498
      iprot.readFieldEnd()
12499
    iprot.readStructEnd()
12500
 
12501
  def write(self, oprot):
12502
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12503
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12504
      return
12505
    oprot.writeStructBegin('getCurrentBadQuantityForItem_result')
12506
    if self.success is not None:
12507
      oprot.writeFieldBegin('success', TType.I64, 0)
12508
      oprot.writeI64(self.success)
12509
      oprot.writeFieldEnd()
12510
    if self.wex is not None:
12511
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
12512
      self.wex.write(oprot)
12513
      oprot.writeFieldEnd()
12514
    oprot.writeFieldStop()
12515
    oprot.writeStructEnd()
12516
 
12517
  def validate(self):
12518
    return
12519
 
12520
 
12521
  def __repr__(self):
12522
    L = ['%s=%r' % (key, value)
12523
      for key, value in self.__dict__.iteritems()]
12524
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12525
 
12526
  def __eq__(self, other):
12527
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12528
 
12529
  def __ne__(self, other):
12530
    return not (self == other)
12531
 
12532
class scanForBadPurchaseReturn_args:
12533
  """
12534
  Attributes:
12535
   - saleReturnItems
12536
   - vendorId
12537
   - billingWarehouseId
12538
  """
12539
 
12540
  thrift_spec = (
12541
    None, # 0
12542
    (1, TType.LIST, 'saleReturnItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
12543
    (2, TType.I64, 'vendorId', None, None, ), # 2
12544
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
12545
  )
12546
 
12547
  def __init__(self, saleReturnItems=None, vendorId=None, billingWarehouseId=None,):
12548
    self.saleReturnItems = saleReturnItems
12549
    self.vendorId = vendorId
12550
    self.billingWarehouseId = billingWarehouseId
12551
 
12552
  def read(self, iprot):
12553
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12554
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12555
      return
12556
    iprot.readStructBegin()
12557
    while True:
12558
      (fname, ftype, fid) = iprot.readFieldBegin()
12559
      if ftype == TType.STOP:
12560
        break
12561
      if fid == 1:
12562
        if ftype == TType.LIST:
12563
          self.saleReturnItems = []
12564
          (_etype264, _size261) = iprot.readListBegin()
12565
          for _i265 in xrange(_size261):
12566
            _elem266 = InventoryItem()
12567
            _elem266.read(iprot)
12568
            self.saleReturnItems.append(_elem266)
12569
          iprot.readListEnd()
12570
        else:
12571
          iprot.skip(ftype)
12572
      elif fid == 2:
12573
        if ftype == TType.I64:
12574
          self.vendorId = iprot.readI64();
12575
        else:
12576
          iprot.skip(ftype)
12577
      elif fid == 3:
12578
        if ftype == TType.I64:
12579
          self.billingWarehouseId = iprot.readI64();
12580
        else:
12581
          iprot.skip(ftype)
12582
      else:
12583
        iprot.skip(ftype)
12584
      iprot.readFieldEnd()
12585
    iprot.readStructEnd()
12586
 
12587
  def write(self, oprot):
12588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12590
      return
12591
    oprot.writeStructBegin('scanForBadPurchaseReturn_args')
12592
    if self.saleReturnItems is not None:
12593
      oprot.writeFieldBegin('saleReturnItems', TType.LIST, 1)
12594
      oprot.writeListBegin(TType.STRUCT, len(self.saleReturnItems))
12595
      for iter267 in self.saleReturnItems:
12596
        iter267.write(oprot)
12597
      oprot.writeListEnd()
12598
      oprot.writeFieldEnd()
12599
    if self.vendorId is not None:
12600
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
12601
      oprot.writeI64(self.vendorId)
12602
      oprot.writeFieldEnd()
12603
    if self.billingWarehouseId is not None:
12604
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
12605
      oprot.writeI64(self.billingWarehouseId)
12606
      oprot.writeFieldEnd()
12607
    oprot.writeFieldStop()
12608
    oprot.writeStructEnd()
12609
 
12610
  def validate(self):
12611
    return
12612
 
12613
 
12614
  def __repr__(self):
12615
    L = ['%s=%r' % (key, value)
12616
      for key, value in self.__dict__.iteritems()]
12617
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12618
 
12619
  def __eq__(self, other):
12620
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12621
 
12622
  def __ne__(self, other):
12623
    return not (self == other)
12624
 
12625
class scanForBadPurchaseReturn_result:
12626
  """
12627
  Attributes:
12628
   - success
12629
   - ex
12630
  """
12631
 
12632
  thrift_spec = (
12633
    (0, TType.I64, 'success', None, None, ), # 0
12634
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12635
  )
12636
 
12637
  def __init__(self, success=None, ex=None,):
12638
    self.success = success
12639
    self.ex = ex
12640
 
12641
  def read(self, iprot):
12642
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12643
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12644
      return
12645
    iprot.readStructBegin()
12646
    while True:
12647
      (fname, ftype, fid) = iprot.readFieldBegin()
12648
      if ftype == TType.STOP:
12649
        break
12650
      if fid == 0:
12651
        if ftype == TType.I64:
12652
          self.success = iprot.readI64();
12653
        else:
12654
          iprot.skip(ftype)
12655
      elif fid == 1:
12656
        if ftype == TType.STRUCT:
12657
          self.ex = WarehouseServiceException()
12658
          self.ex.read(iprot)
12659
        else:
12660
          iprot.skip(ftype)
12661
      else:
12662
        iprot.skip(ftype)
12663
      iprot.readFieldEnd()
12664
    iprot.readStructEnd()
12665
 
12666
  def write(self, oprot):
12667
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12668
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12669
      return
12670
    oprot.writeStructBegin('scanForBadPurchaseReturn_result')
12671
    if self.success is not None:
12672
      oprot.writeFieldBegin('success', TType.I64, 0)
12673
      oprot.writeI64(self.success)
12674
      oprot.writeFieldEnd()
12675
    if self.ex is not None:
12676
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12677
      self.ex.write(oprot)
12678
      oprot.writeFieldEnd()
12679
    oprot.writeFieldStop()
12680
    oprot.writeStructEnd()
12681
 
12682
  def validate(self):
12683
    return
12684
 
12685
 
12686
  def __repr__(self):
12687
    L = ['%s=%r' % (key, value)
12688
      for key, value in self.__dict__.iteritems()]
12689
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12690
 
12691
  def __eq__(self, other):
12692
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12693
 
12694
  def __ne__(self, other):
12695
    return not (self == other)
12696
 
12697
class getItemsInPurchaseReturn_args:
12698
  """
12699
  Attributes:
12700
   - purchaseReturnId
11751 manish.sha 12701
   - type
13504 manish.sha 12702
   - returnTime
10864 manish.sha 12703
  """
12704
 
12705
  thrift_spec = (
12706
    None, # 0
12707
    (1, TType.I64, 'purchaseReturnId', None, None, ), # 1
11751 manish.sha 12708
    (2, TType.I32, 'type', None, None, ), # 2
13504 manish.sha 12709
    (3, TType.STRING, 'returnTime', None, None, ), # 3
10864 manish.sha 12710
  )
12711
 
13504 manish.sha 12712
  def __init__(self, purchaseReturnId=None, type=None, returnTime=None,):
10864 manish.sha 12713
    self.purchaseReturnId = purchaseReturnId
11751 manish.sha 12714
    self.type = type
13504 manish.sha 12715
    self.returnTime = returnTime
10864 manish.sha 12716
 
12717
  def read(self, iprot):
12718
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12719
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12720
      return
12721
    iprot.readStructBegin()
12722
    while True:
12723
      (fname, ftype, fid) = iprot.readFieldBegin()
12724
      if ftype == TType.STOP:
12725
        break
12726
      if fid == 1:
12727
        if ftype == TType.I64:
12728
          self.purchaseReturnId = iprot.readI64();
12729
        else:
12730
          iprot.skip(ftype)
11751 manish.sha 12731
      elif fid == 2:
12732
        if ftype == TType.I32:
12733
          self.type = iprot.readI32();
12734
        else:
12735
          iprot.skip(ftype)
13504 manish.sha 12736
      elif fid == 3:
12737
        if ftype == TType.STRING:
12738
          self.returnTime = iprot.readString();
12739
        else:
12740
          iprot.skip(ftype)
10864 manish.sha 12741
      else:
12742
        iprot.skip(ftype)
12743
      iprot.readFieldEnd()
12744
    iprot.readStructEnd()
12745
 
12746
  def write(self, oprot):
12747
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12748
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12749
      return
12750
    oprot.writeStructBegin('getItemsInPurchaseReturn_args')
12751
    if self.purchaseReturnId is not None:
12752
      oprot.writeFieldBegin('purchaseReturnId', TType.I64, 1)
12753
      oprot.writeI64(self.purchaseReturnId)
12754
      oprot.writeFieldEnd()
11751 manish.sha 12755
    if self.type is not None:
12756
      oprot.writeFieldBegin('type', TType.I32, 2)
12757
      oprot.writeI32(self.type)
12758
      oprot.writeFieldEnd()
13504 manish.sha 12759
    if self.returnTime is not None:
12760
      oprot.writeFieldBegin('returnTime', TType.STRING, 3)
12761
      oprot.writeString(self.returnTime)
12762
      oprot.writeFieldEnd()
10864 manish.sha 12763
    oprot.writeFieldStop()
12764
    oprot.writeStructEnd()
12765
 
12766
  def validate(self):
12767
    return
12768
 
12769
 
12770
  def __repr__(self):
12771
    L = ['%s=%r' % (key, value)
12772
      for key, value in self.__dict__.iteritems()]
12773
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12774
 
12775
  def __eq__(self, other):
12776
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12777
 
12778
  def __ne__(self, other):
12779
    return not (self == other)
12780
 
12781
class getItemsInPurchaseReturn_result:
12782
  """
12783
  Attributes:
12784
   - success
12785
   - ex
12786
  """
12787
 
12788
  thrift_spec = (
12789
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
12790
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12791
  )
12792
 
12793
  def __init__(self, success=None, ex=None,):
12794
    self.success = success
12795
    self.ex = ex
12796
 
12797
  def read(self, iprot):
12798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12800
      return
12801
    iprot.readStructBegin()
12802
    while True:
12803
      (fname, ftype, fid) = iprot.readFieldBegin()
12804
      if ftype == TType.STOP:
12805
        break
12806
      if fid == 0:
12807
        if ftype == TType.MAP:
12808
          self.success = {}
12809
          (_ktype269, _vtype270, _size268 ) = iprot.readMapBegin() 
12810
          for _i272 in xrange(_size268):
12811
            _key273 = iprot.readI64();
12812
            _val274 = iprot.readI64();
12813
            self.success[_key273] = _val274
12814
          iprot.readMapEnd()
12815
        else:
12816
          iprot.skip(ftype)
12817
      elif fid == 1:
12818
        if ftype == TType.STRUCT:
12819
          self.ex = WarehouseServiceException()
12820
          self.ex.read(iprot)
12821
        else:
12822
          iprot.skip(ftype)
12823
      else:
12824
        iprot.skip(ftype)
12825
      iprot.readFieldEnd()
12826
    iprot.readStructEnd()
12827
 
12828
  def write(self, oprot):
12829
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12830
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12831
      return
12832
    oprot.writeStructBegin('getItemsInPurchaseReturn_result')
12833
    if self.success is not None:
12834
      oprot.writeFieldBegin('success', TType.MAP, 0)
12835
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
12836
      for kiter275,viter276 in self.success.items():
12837
        oprot.writeI64(kiter275)
12838
        oprot.writeI64(viter276)
12839
      oprot.writeMapEnd()
12840
      oprot.writeFieldEnd()
12841
    if self.ex is not None:
12842
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12843
      self.ex.write(oprot)
12844
      oprot.writeFieldEnd()
12845
    oprot.writeFieldStop()
12846
    oprot.writeStructEnd()
12847
 
12848
  def validate(self):
12849
    return
12850
 
12851
 
12852
  def __repr__(self):
12853
    L = ['%s=%r' % (key, value)
12854
      for key, value in self.__dict__.iteritems()]
12855
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12856
 
12857
  def __eq__(self, other):
12858
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12859
 
12860
  def __ne__(self, other):
12861
    return not (self == other)
10886 manish.sha 12862
 
12863
class getScansForInventoryItem_args:
12864
  """
12865
  Attributes:
12866
   - inventoryItemId
12867
   - type
12868
  """
12869
 
12870
  thrift_spec = (
12871
    None, # 0
12872
    (1, TType.I64, 'inventoryItemId', None, None, ), # 1
12873
    (2, TType.I32, 'type', None, None, ), # 2
12874
  )
12875
 
12876
  def __init__(self, inventoryItemId=None, type=None,):
12877
    self.inventoryItemId = inventoryItemId
12878
    self.type = type
12879
 
12880
  def read(self, iprot):
12881
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12882
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12883
      return
12884
    iprot.readStructBegin()
12885
    while True:
12886
      (fname, ftype, fid) = iprot.readFieldBegin()
12887
      if ftype == TType.STOP:
12888
        break
12889
      if fid == 1:
12890
        if ftype == TType.I64:
12891
          self.inventoryItemId = iprot.readI64();
12892
        else:
12893
          iprot.skip(ftype)
12894
      elif fid == 2:
12895
        if ftype == TType.I32:
12896
          self.type = iprot.readI32();
12897
        else:
12898
          iprot.skip(ftype)
12899
      else:
12900
        iprot.skip(ftype)
12901
      iprot.readFieldEnd()
12902
    iprot.readStructEnd()
12903
 
12904
  def write(self, oprot):
12905
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12906
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12907
      return
12908
    oprot.writeStructBegin('getScansForInventoryItem_args')
12909
    if self.inventoryItemId is not None:
12910
      oprot.writeFieldBegin('inventoryItemId', TType.I64, 1)
12911
      oprot.writeI64(self.inventoryItemId)
12912
      oprot.writeFieldEnd()
12913
    if self.type is not None:
12914
      oprot.writeFieldBegin('type', TType.I32, 2)
12915
      oprot.writeI32(self.type)
12916
      oprot.writeFieldEnd()
12917
    oprot.writeFieldStop()
12918
    oprot.writeStructEnd()
12919
 
12920
  def validate(self):
12921
    return
12922
 
12923
 
12924
  def __repr__(self):
12925
    L = ['%s=%r' % (key, value)
12926
      for key, value in self.__dict__.iteritems()]
12927
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12928
 
12929
  def __eq__(self, other):
12930
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12931
 
12932
  def __ne__(self, other):
12933
    return not (self == other)
12934
 
12935
class getScansForInventoryItem_result:
12936
  """
12937
  Attributes:
12938
   - success
12939
   - ex
12940
  """
12941
 
12942
  thrift_spec = (
12943
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
12944
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12945
  )
12946
 
12947
  def __init__(self, success=None, ex=None,):
12948
    self.success = success
12949
    self.ex = ex
12950
 
12951
  def read(self, iprot):
12952
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12953
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12954
      return
12955
    iprot.readStructBegin()
12956
    while True:
12957
      (fname, ftype, fid) = iprot.readFieldBegin()
12958
      if ftype == TType.STOP:
12959
        break
12960
      if fid == 0:
12961
        if ftype == TType.LIST:
12962
          self.success = []
12963
          (_etype280, _size277) = iprot.readListBegin()
12964
          for _i281 in xrange(_size277):
12965
            _elem282 = Scan()
12966
            _elem282.read(iprot)
12967
            self.success.append(_elem282)
12968
          iprot.readListEnd()
12969
        else:
12970
          iprot.skip(ftype)
12971
      elif fid == 1:
12972
        if ftype == TType.STRUCT:
12973
          self.ex = WarehouseServiceException()
12974
          self.ex.read(iprot)
12975
        else:
12976
          iprot.skip(ftype)
12977
      else:
12978
        iprot.skip(ftype)
12979
      iprot.readFieldEnd()
12980
    iprot.readStructEnd()
12981
 
12982
  def write(self, oprot):
12983
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12984
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12985
      return
12986
    oprot.writeStructBegin('getScansForInventoryItem_result')
12987
    if self.success is not None:
12988
      oprot.writeFieldBegin('success', TType.LIST, 0)
12989
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12990
      for iter283 in self.success:
12991
        iter283.write(oprot)
12992
      oprot.writeListEnd()
12993
      oprot.writeFieldEnd()
12994
    if self.ex is not None:
12995
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12996
      self.ex.write(oprot)
12997
      oprot.writeFieldEnd()
12998
    oprot.writeFieldStop()
12999
    oprot.writeStructEnd()
13000
 
13001
  def validate(self):
13002
    return
13003
 
13004
 
13005
  def __repr__(self):
13006
    L = ['%s=%r' % (key, value)
13007
      for key, value in self.__dict__.iteritems()]
13008
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13009
 
13010
  def __eq__(self, other):
13011
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13012
 
13013
  def __ne__(self, other):
13014
    return not (self == other)
12531 manish.sha 13015
 
13016
class checkGrnImeiStatus_args:
13017
  """
13018
  Attributes:
13019
   - imeiNos
13020
  """
13021
 
13022
  thrift_spec = (
13023
    None, # 0
13024
    (1, TType.LIST, 'imeiNos', (TType.STRING,None), None, ), # 1
13025
  )
13026
 
13027
  def __init__(self, imeiNos=None,):
13028
    self.imeiNos = imeiNos
13029
 
13030
  def read(self, iprot):
13031
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13032
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13033
      return
13034
    iprot.readStructBegin()
13035
    while True:
13036
      (fname, ftype, fid) = iprot.readFieldBegin()
13037
      if ftype == TType.STOP:
13038
        break
13039
      if fid == 1:
13040
        if ftype == TType.LIST:
13041
          self.imeiNos = []
13042
          (_etype287, _size284) = iprot.readListBegin()
13043
          for _i288 in xrange(_size284):
13044
            _elem289 = iprot.readString();
13045
            self.imeiNos.append(_elem289)
13046
          iprot.readListEnd()
13047
        else:
13048
          iprot.skip(ftype)
13049
      else:
13050
        iprot.skip(ftype)
13051
      iprot.readFieldEnd()
13052
    iprot.readStructEnd()
13053
 
13054
  def write(self, oprot):
13055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13057
      return
13058
    oprot.writeStructBegin('checkGrnImeiStatus_args')
13059
    if self.imeiNos is not None:
13060
      oprot.writeFieldBegin('imeiNos', TType.LIST, 1)
13061
      oprot.writeListBegin(TType.STRING, len(self.imeiNos))
13062
      for iter290 in self.imeiNos:
13063
        oprot.writeString(iter290)
13064
      oprot.writeListEnd()
13065
      oprot.writeFieldEnd()
13066
    oprot.writeFieldStop()
13067
    oprot.writeStructEnd()
13068
 
13069
  def validate(self):
13070
    return
13071
 
13072
 
13073
  def __repr__(self):
13074
    L = ['%s=%r' % (key, value)
13075
      for key, value in self.__dict__.iteritems()]
13076
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13077
 
13078
  def __eq__(self, other):
13079
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13080
 
13081
  def __ne__(self, other):
13082
    return not (self == other)
13083
 
13084
class checkGrnImeiStatus_result:
13085
  """
13086
  Attributes:
13087
   - success
13088
   - ex
13089
  """
13090
 
13091
  thrift_spec = (
13092
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
13093
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
13094
  )
13095
 
13096
  def __init__(self, success=None, ex=None,):
13097
    self.success = success
13098
    self.ex = ex
13099
 
13100
  def read(self, iprot):
13101
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13102
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13103
      return
13104
    iprot.readStructBegin()
13105
    while True:
13106
      (fname, ftype, fid) = iprot.readFieldBegin()
13107
      if ftype == TType.STOP:
13108
        break
13109
      if fid == 0:
13110
        if ftype == TType.LIST:
13111
          self.success = []
13112
          (_etype294, _size291) = iprot.readListBegin()
13113
          for _i295 in xrange(_size291):
13114
            _elem296 = iprot.readString();
13115
            self.success.append(_elem296)
13116
          iprot.readListEnd()
13117
        else:
13118
          iprot.skip(ftype)
13119
      elif fid == 1:
13120
        if ftype == TType.STRUCT:
13121
          self.ex = WarehouseServiceException()
13122
          self.ex.read(iprot)
13123
        else:
13124
          iprot.skip(ftype)
13125
      else:
13126
        iprot.skip(ftype)
13127
      iprot.readFieldEnd()
13128
    iprot.readStructEnd()
13129
 
13130
  def write(self, oprot):
13131
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13132
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13133
      return
13134
    oprot.writeStructBegin('checkGrnImeiStatus_result')
13135
    if self.success is not None:
13136
      oprot.writeFieldBegin('success', TType.LIST, 0)
13137
      oprot.writeListBegin(TType.STRING, len(self.success))
13138
      for iter297 in self.success:
13139
        oprot.writeString(iter297)
13140
      oprot.writeListEnd()
13141
      oprot.writeFieldEnd()
13142
    if self.ex is not None:
13143
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
13144
      self.ex.write(oprot)
13145
      oprot.writeFieldEnd()
13146
    oprot.writeFieldStop()
13147
    oprot.writeStructEnd()
13148
 
13149
  def validate(self):
13150
    return
13151
 
13152
 
13153
  def __repr__(self):
13154
    L = ['%s=%r' % (key, value)
13155
      for key, value in self.__dict__.iteritems()]
13156
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13157
 
13158
  def __eq__(self, other):
13159
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13160
 
13161
  def __ne__(self, other):
13162
    return not (self == other)
12800 manish.sha 13163
 
13164
class getInventoryAgeConsideredItems_args:
13165
  """
13166
  Attributes:
13167
   - itemId
13168
  """
13169
 
13170
  thrift_spec = (
13171
    None, # 0
13172
    (1, TType.I64, 'itemId', None, None, ), # 1
13173
  )
13174
 
13175
  def __init__(self, itemId=None,):
13176
    self.itemId = itemId
13177
 
13178
  def read(self, iprot):
13179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13181
      return
13182
    iprot.readStructBegin()
13183
    while True:
13184
      (fname, ftype, fid) = iprot.readFieldBegin()
13185
      if ftype == TType.STOP:
13186
        break
13187
      if fid == 1:
13188
        if ftype == TType.I64:
13189
          self.itemId = iprot.readI64();
13190
        else:
13191
          iprot.skip(ftype)
13192
      else:
13193
        iprot.skip(ftype)
13194
      iprot.readFieldEnd()
13195
    iprot.readStructEnd()
13196
 
13197
  def write(self, oprot):
13198
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13199
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13200
      return
13201
    oprot.writeStructBegin('getInventoryAgeConsideredItems_args')
13202
    if self.itemId is not None:
13203
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13204
      oprot.writeI64(self.itemId)
13205
      oprot.writeFieldEnd()
13206
    oprot.writeFieldStop()
13207
    oprot.writeStructEnd()
13208
 
13209
  def validate(self):
13210
    return
13211
 
13212
 
13213
  def __repr__(self):
13214
    L = ['%s=%r' % (key, value)
13215
      for key, value in self.__dict__.iteritems()]
13216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13217
 
13218
  def __eq__(self, other):
13219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13220
 
13221
  def __ne__(self, other):
13222
    return not (self == other)
13223
 
13224
class getInventoryAgeConsideredItems_result:
13225
  """
13226
  Attributes:
13227
   - success
13228
   - ex
13229
  """
13230
 
13231
  thrift_spec = (
13232
    (0, TType.LIST, 'success', (TType.STRUCT,(InvAgeConsiderItems, InvAgeConsiderItems.thrift_spec)), None, ), # 0
13233
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
13234
  )
13235
 
13236
  def __init__(self, success=None, ex=None,):
13237
    self.success = success
13238
    self.ex = ex
13239
 
13240
  def read(self, iprot):
13241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13243
      return
13244
    iprot.readStructBegin()
13245
    while True:
13246
      (fname, ftype, fid) = iprot.readFieldBegin()
13247
      if ftype == TType.STOP:
13248
        break
13249
      if fid == 0:
13250
        if ftype == TType.LIST:
13251
          self.success = []
13252
          (_etype301, _size298) = iprot.readListBegin()
13253
          for _i302 in xrange(_size298):
13254
            _elem303 = InvAgeConsiderItems()
13255
            _elem303.read(iprot)
13256
            self.success.append(_elem303)
13257
          iprot.readListEnd()
13258
        else:
13259
          iprot.skip(ftype)
13260
      elif fid == 1:
13261
        if ftype == TType.STRUCT:
13262
          self.ex = WarehouseServiceException()
13263
          self.ex.read(iprot)
13264
        else:
13265
          iprot.skip(ftype)
13266
      else:
13267
        iprot.skip(ftype)
13268
      iprot.readFieldEnd()
13269
    iprot.readStructEnd()
13270
 
13271
  def write(self, oprot):
13272
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13273
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13274
      return
13275
    oprot.writeStructBegin('getInventoryAgeConsideredItems_result')
13276
    if self.success is not None:
13277
      oprot.writeFieldBegin('success', TType.LIST, 0)
13278
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13279
      for iter304 in self.success:
13280
        iter304.write(oprot)
13281
      oprot.writeListEnd()
13282
      oprot.writeFieldEnd()
13283
    if self.ex is not None:
13284
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
13285
      self.ex.write(oprot)
13286
      oprot.writeFieldEnd()
13287
    oprot.writeFieldStop()
13288
    oprot.writeStructEnd()
13289
 
13290
  def validate(self):
13291
    return
13292
 
13293
 
13294
  def __repr__(self):
13295
    L = ['%s=%r' % (key, value)
13296
      for key, value in self.__dict__.iteritems()]
13297
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13298
 
13299
  def __eq__(self, other):
13300
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13301
 
13302
  def __ne__(self, other):
13303
    return not (self == other)
13529 manish.sha 13304
 
13305
class getCompleteMovementForThirdPartyWarehouse_args:
13306
  """
13307
  Attributes:
13308
   - startDate
13309
   - endDate
13310
  """
13311
 
13312
  thrift_spec = (
13313
    None, # 0
13314
    (1, TType.I64, 'startDate', None, None, ), # 1
13315
    (2, TType.I64, 'endDate', None, None, ), # 2
13316
  )
13317
 
13318
  def __init__(self, startDate=None, endDate=None,):
13319
    self.startDate = startDate
13320
    self.endDate = endDate
13321
 
13322
  def read(self, iprot):
13323
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13324
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13325
      return
13326
    iprot.readStructBegin()
13327
    while True:
13328
      (fname, ftype, fid) = iprot.readFieldBegin()
13329
      if ftype == TType.STOP:
13330
        break
13331
      if fid == 1:
13332
        if ftype == TType.I64:
13333
          self.startDate = iprot.readI64();
13334
        else:
13335
          iprot.skip(ftype)
13336
      elif fid == 2:
13337
        if ftype == TType.I64:
13338
          self.endDate = iprot.readI64();
13339
        else:
13340
          iprot.skip(ftype)
13341
      else:
13342
        iprot.skip(ftype)
13343
      iprot.readFieldEnd()
13344
    iprot.readStructEnd()
13345
 
13346
  def write(self, oprot):
13347
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13348
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13349
      return
13350
    oprot.writeStructBegin('getCompleteMovementForThirdPartyWarehouse_args')
13351
    if self.startDate is not None:
13352
      oprot.writeFieldBegin('startDate', TType.I64, 1)
13353
      oprot.writeI64(self.startDate)
13354
      oprot.writeFieldEnd()
13355
    if self.endDate is not None:
13356
      oprot.writeFieldBegin('endDate', TType.I64, 2)
13357
      oprot.writeI64(self.endDate)
13358
      oprot.writeFieldEnd()
13359
    oprot.writeFieldStop()
13360
    oprot.writeStructEnd()
13361
 
13362
  def validate(self):
13363
    return
13364
 
13365
 
13366
  def __repr__(self):
13367
    L = ['%s=%r' % (key, value)
13368
      for key, value in self.__dict__.iteritems()]
13369
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13370
 
13371
  def __eq__(self, other):
13372
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13373
 
13374
  def __ne__(self, other):
13375
    return not (self == other)
13376
 
13377
class getCompleteMovementForThirdPartyWarehouse_result:
13378
  """
13379
  Attributes:
13380
   - success
13381
  """
13382
 
13383
  thrift_spec = (
13384
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
13385
  )
13386
 
13387
  def __init__(self, success=None,):
13388
    self.success = success
13389
 
13390
  def read(self, iprot):
13391
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13392
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13393
      return
13394
    iprot.readStructBegin()
13395
    while True:
13396
      (fname, ftype, fid) = iprot.readFieldBegin()
13397
      if ftype == TType.STOP:
13398
        break
13399
      if fid == 0:
13400
        if ftype == TType.LIST:
13401
          self.success = []
13402
          (_etype308, _size305) = iprot.readListBegin()
13403
          for _i309 in xrange(_size305):
13404
            _elem310 = InventoryMovement()
13405
            _elem310.read(iprot)
13406
            self.success.append(_elem310)
13407
          iprot.readListEnd()
13408
        else:
13409
          iprot.skip(ftype)
13410
      else:
13411
        iprot.skip(ftype)
13412
      iprot.readFieldEnd()
13413
    iprot.readStructEnd()
13414
 
13415
  def write(self, oprot):
13416
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13417
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13418
      return
13419
    oprot.writeStructBegin('getCompleteMovementForThirdPartyWarehouse_result')
13420
    if self.success is not None:
13421
      oprot.writeFieldBegin('success', TType.LIST, 0)
13422
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13423
      for iter311 in self.success:
13424
        iter311.write(oprot)
13425
      oprot.writeListEnd()
13426
      oprot.writeFieldEnd()
13427
    oprot.writeFieldStop()
13428
    oprot.writeStructEnd()
13429
 
13430
  def validate(self):
13431
    return
13432
 
13433
 
13434
  def __repr__(self):
13435
    L = ['%s=%r' % (key, value)
13436
      for key, value in self.__dict__.iteritems()]
13437
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13438
 
13439
  def __eq__(self, other):
13440
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13441
 
13442
  def __ne__(self, other):
13443
    return not (self == other)
14491 manish.sha 13444
 
13445
class getAllDoaOutInventoryItems_args:
13446
 
13447
  thrift_spec = (
13448
  )
13449
 
13450
  def read(self, iprot):
13451
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13452
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13453
      return
13454
    iprot.readStructBegin()
13455
    while True:
13456
      (fname, ftype, fid) = iprot.readFieldBegin()
13457
      if ftype == TType.STOP:
13458
        break
13459
      else:
13460
        iprot.skip(ftype)
13461
      iprot.readFieldEnd()
13462
    iprot.readStructEnd()
13463
 
13464
  def write(self, oprot):
13465
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13466
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13467
      return
13468
    oprot.writeStructBegin('getAllDoaOutInventoryItems_args')
13469
    oprot.writeFieldStop()
13470
    oprot.writeStructEnd()
13471
 
13472
  def validate(self):
13473
    return
13474
 
13475
 
13476
  def __repr__(self):
13477
    L = ['%s=%r' % (key, value)
13478
      for key, value in self.__dict__.iteritems()]
13479
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13480
 
13481
  def __eq__(self, other):
13482
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13483
 
13484
  def __ne__(self, other):
13485
    return not (self == other)
13486
 
13487
class getAllDoaOutInventoryItems_result:
13488
  """
13489
  Attributes:
13490
   - success
13491
   - ex
13492
  """
13493
 
13494
  thrift_spec = (
13495
    (0, TType.LIST, 'success', (TType.STRUCT,(DoaOutInventoryItem, DoaOutInventoryItem.thrift_spec)), None, ), # 0
13496
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
13497
  )
13498
 
13499
  def __init__(self, success=None, ex=None,):
13500
    self.success = success
13501
    self.ex = ex
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
      if fid == 0:
13513
        if ftype == TType.LIST:
13514
          self.success = []
13515
          (_etype315, _size312) = iprot.readListBegin()
13516
          for _i316 in xrange(_size312):
13517
            _elem317 = DoaOutInventoryItem()
13518
            _elem317.read(iprot)
13519
            self.success.append(_elem317)
13520
          iprot.readListEnd()
13521
        else:
13522
          iprot.skip(ftype)
13523
      elif fid == 1:
13524
        if ftype == TType.STRUCT:
13525
          self.ex = WarehouseServiceException()
13526
          self.ex.read(iprot)
13527
        else:
13528
          iprot.skip(ftype)
13529
      else:
13530
        iprot.skip(ftype)
13531
      iprot.readFieldEnd()
13532
    iprot.readStructEnd()
13533
 
13534
  def write(self, oprot):
13535
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13536
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13537
      return
13538
    oprot.writeStructBegin('getAllDoaOutInventoryItems_result')
13539
    if self.success is not None:
13540
      oprot.writeFieldBegin('success', TType.LIST, 0)
13541
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13542
      for iter318 in self.success:
13543
        iter318.write(oprot)
13544
      oprot.writeListEnd()
13545
      oprot.writeFieldEnd()
13546
    if self.ex is not None:
13547
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
13548
      self.ex.write(oprot)
13549
      oprot.writeFieldEnd()
13550
    oprot.writeFieldStop()
13551
    oprot.writeStructEnd()
13552
 
13553
  def validate(self):
13554
    return
13555
 
13556
 
13557
  def __repr__(self):
13558
    L = ['%s=%r' % (key, value)
13559
      for key, value in self.__dict__.iteritems()]
13560
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13561
 
13562
  def __eq__(self, other):
13563
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13564
 
13565
  def __ne__(self, other):
13566
    return not (self == other)
15045 manish.sha 13567
 
13568
class getAllUnCompletedStockShipments_args:
13569
  """
13570
  Attributes:
13571
   - source
13572
  """
13573
 
13574
  thrift_spec = (
13575
    None, # 0
13576
    (1, TType.STRING, 'source', None, None, ), # 1
13577
  )
13578
 
13579
  def __init__(self, source=None,):
13580
    self.source = source
13581
 
13582
  def read(self, iprot):
13583
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13584
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13585
      return
13586
    iprot.readStructBegin()
13587
    while True:
13588
      (fname, ftype, fid) = iprot.readFieldBegin()
13589
      if ftype == TType.STOP:
13590
        break
13591
      if fid == 1:
13592
        if ftype == TType.STRING:
13593
          self.source = iprot.readString();
13594
        else:
13595
          iprot.skip(ftype)
13596
      else:
13597
        iprot.skip(ftype)
13598
      iprot.readFieldEnd()
13599
    iprot.readStructEnd()
13600
 
13601
  def write(self, oprot):
13602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13604
      return
13605
    oprot.writeStructBegin('getAllUnCompletedStockShipments_args')
13606
    if self.source is not None:
13607
      oprot.writeFieldBegin('source', TType.STRING, 1)
13608
      oprot.writeString(self.source)
13609
      oprot.writeFieldEnd()
13610
    oprot.writeFieldStop()
13611
    oprot.writeStructEnd()
13612
 
13613
  def validate(self):
13614
    return
13615
 
13616
 
13617
  def __repr__(self):
13618
    L = ['%s=%r' % (key, value)
13619
      for key, value in self.__dict__.iteritems()]
13620
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13621
 
13622
  def __eq__(self, other):
13623
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13624
 
13625
  def __ne__(self, other):
13626
    return not (self == other)
13627
 
13628
class getAllUnCompletedStockShipments_result:
13629
  """
13630
  Attributes:
13631
   - success
13632
   - ex
13633
  """
13634
 
13635
  thrift_spec = (
13636
    (0, TType.LIST, 'success', (TType.STRUCT,(RemovalStockShipmentReference, RemovalStockShipmentReference.thrift_spec)), None, ), # 0
13637
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
13638
  )
13639
 
13640
  def __init__(self, success=None, ex=None,):
13641
    self.success = success
13642
    self.ex = ex
13643
 
13644
  def read(self, iprot):
13645
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13646
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13647
      return
13648
    iprot.readStructBegin()
13649
    while True:
13650
      (fname, ftype, fid) = iprot.readFieldBegin()
13651
      if ftype == TType.STOP:
13652
        break
13653
      if fid == 0:
13654
        if ftype == TType.LIST:
13655
          self.success = []
13656
          (_etype322, _size319) = iprot.readListBegin()
13657
          for _i323 in xrange(_size319):
13658
            _elem324 = RemovalStockShipmentReference()
13659
            _elem324.read(iprot)
13660
            self.success.append(_elem324)
13661
          iprot.readListEnd()
13662
        else:
13663
          iprot.skip(ftype)
13664
      elif fid == 1:
13665
        if ftype == TType.STRUCT:
13666
          self.ex = WarehouseServiceException()
13667
          self.ex.read(iprot)
13668
        else:
13669
          iprot.skip(ftype)
13670
      else:
13671
        iprot.skip(ftype)
13672
      iprot.readFieldEnd()
13673
    iprot.readStructEnd()
13674
 
13675
  def write(self, oprot):
13676
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13677
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13678
      return
13679
    oprot.writeStructBegin('getAllUnCompletedStockShipments_result')
13680
    if self.success is not None:
13681
      oprot.writeFieldBegin('success', TType.LIST, 0)
13682
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13683
      for iter325 in self.success:
13684
        iter325.write(oprot)
13685
      oprot.writeListEnd()
13686
      oprot.writeFieldEnd()
13687
    if self.ex is not None:
13688
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
13689
      self.ex.write(oprot)
13690
      oprot.writeFieldEnd()
13691
    oprot.writeFieldStop()
13692
    oprot.writeStructEnd()
13693
 
13694
  def validate(self):
13695
    return
13696
 
13697
 
13698
  def __repr__(self):
13699
    L = ['%s=%r' % (key, value)
13700
      for key, value in self.__dict__.iteritems()]
13701
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13702
 
13703
  def __eq__(self, other):
13704
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13705
 
13706
  def __ne__(self, other):
13707
    return not (self == other)
13708
 
13709
class getRemovalStockShipmentReferenceById_args:
13710
  """
13711
  Attributes:
13712
   - id
13713
  """
13714
 
13715
  thrift_spec = (
13716
    None, # 0
13717
    (1, TType.I64, 'id', None, None, ), # 1
13718
  )
13719
 
13720
  def __init__(self, id=None,):
13721
    self.id = id
13722
 
13723
  def read(self, iprot):
13724
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13725
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13726
      return
13727
    iprot.readStructBegin()
13728
    while True:
13729
      (fname, ftype, fid) = iprot.readFieldBegin()
13730
      if ftype == TType.STOP:
13731
        break
13732
      if fid == 1:
13733
        if ftype == TType.I64:
13734
          self.id = iprot.readI64();
13735
        else:
13736
          iprot.skip(ftype)
13737
      else:
13738
        iprot.skip(ftype)
13739
      iprot.readFieldEnd()
13740
    iprot.readStructEnd()
13741
 
13742
  def write(self, oprot):
13743
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13744
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13745
      return
13746
    oprot.writeStructBegin('getRemovalStockShipmentReferenceById_args')
13747
    if self.id is not None:
13748
      oprot.writeFieldBegin('id', TType.I64, 1)
13749
      oprot.writeI64(self.id)
13750
      oprot.writeFieldEnd()
13751
    oprot.writeFieldStop()
13752
    oprot.writeStructEnd()
13753
 
13754
  def validate(self):
13755
    return
13756
 
13757
 
13758
  def __repr__(self):
13759
    L = ['%s=%r' % (key, value)
13760
      for key, value in self.__dict__.iteritems()]
13761
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13762
 
13763
  def __eq__(self, other):
13764
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13765
 
13766
  def __ne__(self, other):
13767
    return not (self == other)
13768
 
13769
class getRemovalStockShipmentReferenceById_result:
13770
  """
13771
  Attributes:
13772
   - success
13773
   - ex
13774
  """
13775
 
13776
  thrift_spec = (
13777
    (0, TType.STRUCT, 'success', (RemovalStockShipmentReference, RemovalStockShipmentReference.thrift_spec), None, ), # 0
13778
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
13779
  )
13780
 
13781
  def __init__(self, success=None, ex=None,):
13782
    self.success = success
13783
    self.ex = ex
13784
 
13785
  def read(self, iprot):
13786
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13787
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13788
      return
13789
    iprot.readStructBegin()
13790
    while True:
13791
      (fname, ftype, fid) = iprot.readFieldBegin()
13792
      if ftype == TType.STOP:
13793
        break
13794
      if fid == 0:
13795
        if ftype == TType.STRUCT:
13796
          self.success = RemovalStockShipmentReference()
13797
          self.success.read(iprot)
13798
        else:
13799
          iprot.skip(ftype)
13800
      elif fid == 1:
13801
        if ftype == TType.STRUCT:
13802
          self.ex = WarehouseServiceException()
13803
          self.ex.read(iprot)
13804
        else:
13805
          iprot.skip(ftype)
13806
      else:
13807
        iprot.skip(ftype)
13808
      iprot.readFieldEnd()
13809
    iprot.readStructEnd()
13810
 
13811
  def write(self, oprot):
13812
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13813
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13814
      return
13815
    oprot.writeStructBegin('getRemovalStockShipmentReferenceById_result')
13816
    if self.success is not None:
13817
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13818
      self.success.write(oprot)
13819
      oprot.writeFieldEnd()
13820
    if self.ex is not None:
13821
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
13822
      self.ex.write(oprot)
13823
      oprot.writeFieldEnd()
13824
    oprot.writeFieldStop()
13825
    oprot.writeStructEnd()
13826
 
13827
  def validate(self):
13828
    return
13829
 
13830
 
13831
  def __repr__(self):
13832
    L = ['%s=%r' % (key, value)
13833
      for key, value in self.__dict__.iteritems()]
13834
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13835
 
13836
  def __eq__(self, other):
13837
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13838
 
13839
  def __ne__(self, other):
13840
    return not (self == other)
13841
 
13842
class createRemovalStockShipmentReference_args:
13843
  """
13844
  Attributes:
13845
   - removalStockShipmentReference
13846
  """
13847
 
13848
  thrift_spec = (
13849
    None, # 0
13850
    (1, TType.STRUCT, 'removalStockShipmentReference', (RemovalStockShipmentReference, RemovalStockShipmentReference.thrift_spec), None, ), # 1
13851
  )
13852
 
13853
  def __init__(self, removalStockShipmentReference=None,):
13854
    self.removalStockShipmentReference = removalStockShipmentReference
13855
 
13856
  def read(self, iprot):
13857
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13858
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13859
      return
13860
    iprot.readStructBegin()
13861
    while True:
13862
      (fname, ftype, fid) = iprot.readFieldBegin()
13863
      if ftype == TType.STOP:
13864
        break
13865
      if fid == 1:
13866
        if ftype == TType.STRUCT:
13867
          self.removalStockShipmentReference = RemovalStockShipmentReference()
13868
          self.removalStockShipmentReference.read(iprot)
13869
        else:
13870
          iprot.skip(ftype)
13871
      else:
13872
        iprot.skip(ftype)
13873
      iprot.readFieldEnd()
13874
    iprot.readStructEnd()
13875
 
13876
  def write(self, oprot):
13877
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13878
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13879
      return
13880
    oprot.writeStructBegin('createRemovalStockShipmentReference_args')
13881
    if self.removalStockShipmentReference is not None:
13882
      oprot.writeFieldBegin('removalStockShipmentReference', TType.STRUCT, 1)
13883
      self.removalStockShipmentReference.write(oprot)
13884
      oprot.writeFieldEnd()
13885
    oprot.writeFieldStop()
13886
    oprot.writeStructEnd()
13887
 
13888
  def validate(self):
13889
    return
13890
 
13891
 
13892
  def __repr__(self):
13893
    L = ['%s=%r' % (key, value)
13894
      for key, value in self.__dict__.iteritems()]
13895
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13896
 
13897
  def __eq__(self, other):
13898
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13899
 
13900
  def __ne__(self, other):
13901
    return not (self == other)
13902
 
13903
class createRemovalStockShipmentReference_result:
13904
  """
13905
  Attributes:
13906
   - success
13907
   - ex
13908
  """
13909
 
13910
  thrift_spec = (
13911
    (0, TType.I64, 'success', None, None, ), # 0
13912
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
13913
  )
13914
 
13915
  def __init__(self, success=None, ex=None,):
13916
    self.success = success
13917
    self.ex = ex
13918
 
13919
  def read(self, iprot):
13920
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13921
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13922
      return
13923
    iprot.readStructBegin()
13924
    while True:
13925
      (fname, ftype, fid) = iprot.readFieldBegin()
13926
      if ftype == TType.STOP:
13927
        break
13928
      if fid == 0:
13929
        if ftype == TType.I64:
13930
          self.success = iprot.readI64();
13931
        else:
13932
          iprot.skip(ftype)
13933
      elif fid == 1:
13934
        if ftype == TType.STRUCT:
13935
          self.ex = WarehouseServiceException()
13936
          self.ex.read(iprot)
13937
        else:
13938
          iprot.skip(ftype)
13939
      else:
13940
        iprot.skip(ftype)
13941
      iprot.readFieldEnd()
13942
    iprot.readStructEnd()
13943
 
13944
  def write(self, oprot):
13945
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13946
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13947
      return
13948
    oprot.writeStructBegin('createRemovalStockShipmentReference_result')
13949
    if self.success is not None:
13950
      oprot.writeFieldBegin('success', TType.I64, 0)
13951
      oprot.writeI64(self.success)
13952
      oprot.writeFieldEnd()
13953
    if self.ex is not None:
13954
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
13955
      self.ex.write(oprot)
13956
      oprot.writeFieldEnd()
13957
    oprot.writeFieldStop()
13958
    oprot.writeStructEnd()
13959
 
13960
  def validate(self):
13961
    return
13962
 
13963
 
13964
  def __repr__(self):
13965
    L = ['%s=%r' % (key, value)
13966
      for key, value in self.__dict__.iteritems()]
13967
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13968
 
13969
  def __eq__(self, other):
13970
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13971
 
13972
  def __ne__(self, other):
13973
    return not (self == other)
13974
 
13975
class updateShipmentReferenceTransferLot_args:
13976
  """
13977
  Attributes:
13978
   - transferLotId
13979
   - shipmentReferenceId
13980
  """
13981
 
13982
  thrift_spec = (
13983
    None, # 0
13984
    (1, TType.I64, 'transferLotId', None, None, ), # 1
13985
    (2, TType.I64, 'shipmentReferenceId', None, None, ), # 2
13986
  )
13987
 
13988
  def __init__(self, transferLotId=None, shipmentReferenceId=None,):
13989
    self.transferLotId = transferLotId
13990
    self.shipmentReferenceId = shipmentReferenceId
13991
 
13992
  def read(self, iprot):
13993
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13994
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13995
      return
13996
    iprot.readStructBegin()
13997
    while True:
13998
      (fname, ftype, fid) = iprot.readFieldBegin()
13999
      if ftype == TType.STOP:
14000
        break
14001
      if fid == 1:
14002
        if ftype == TType.I64:
14003
          self.transferLotId = iprot.readI64();
14004
        else:
14005
          iprot.skip(ftype)
14006
      elif fid == 2:
14007
        if ftype == TType.I64:
14008
          self.shipmentReferenceId = iprot.readI64();
14009
        else:
14010
          iprot.skip(ftype)
14011
      else:
14012
        iprot.skip(ftype)
14013
      iprot.readFieldEnd()
14014
    iprot.readStructEnd()
14015
 
14016
  def write(self, oprot):
14017
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14018
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14019
      return
14020
    oprot.writeStructBegin('updateShipmentReferenceTransferLot_args')
14021
    if self.transferLotId is not None:
14022
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
14023
      oprot.writeI64(self.transferLotId)
14024
      oprot.writeFieldEnd()
14025
    if self.shipmentReferenceId is not None:
14026
      oprot.writeFieldBegin('shipmentReferenceId', TType.I64, 2)
14027
      oprot.writeI64(self.shipmentReferenceId)
14028
      oprot.writeFieldEnd()
14029
    oprot.writeFieldStop()
14030
    oprot.writeStructEnd()
14031
 
14032
  def validate(self):
14033
    return
14034
 
14035
 
14036
  def __repr__(self):
14037
    L = ['%s=%r' % (key, value)
14038
      for key, value in self.__dict__.iteritems()]
14039
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14040
 
14041
  def __eq__(self, other):
14042
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14043
 
14044
  def __ne__(self, other):
14045
    return not (self == other)
14046
 
14047
class updateShipmentReferenceTransferLot_result:
14048
  """
14049
  Attributes:
14050
   - ex
14051
  """
14052
 
14053
  thrift_spec = (
14054
    None, # 0
14055
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
14056
  )
14057
 
14058
  def __init__(self, ex=None,):
14059
    self.ex = ex
14060
 
14061
  def read(self, iprot):
14062
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14063
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14064
      return
14065
    iprot.readStructBegin()
14066
    while True:
14067
      (fname, ftype, fid) = iprot.readFieldBegin()
14068
      if ftype == TType.STOP:
14069
        break
14070
      if fid == 1:
14071
        if ftype == TType.STRUCT:
14072
          self.ex = WarehouseServiceException()
14073
          self.ex.read(iprot)
14074
        else:
14075
          iprot.skip(ftype)
14076
      else:
14077
        iprot.skip(ftype)
14078
      iprot.readFieldEnd()
14079
    iprot.readStructEnd()
14080
 
14081
  def write(self, oprot):
14082
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14083
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14084
      return
14085
    oprot.writeStructBegin('updateShipmentReferenceTransferLot_result')
14086
    if self.ex is not None:
14087
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
14088
      self.ex.write(oprot)
14089
      oprot.writeFieldEnd()
14090
    oprot.writeFieldStop()
14091
    oprot.writeStructEnd()
14092
 
14093
  def validate(self):
14094
    return
14095
 
14096
 
14097
  def __repr__(self):
14098
    L = ['%s=%r' % (key, value)
14099
      for key, value in self.__dict__.iteritems()]
14100
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14101
 
14102
  def __eq__(self, other):
14103
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14104
 
14105
  def __ne__(self, other):
14106
    return not (self == other)