Subversion Repositories SmartDukaan

Rev

Rev 12800 | Rev 13529 | 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
 
12800 manish.sha 609
 
3376 rajveer 610
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2821 chandransh 611
  def __init__(self, iprot, oprot=None):
3376 rajveer 612
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2821 chandransh 613
 
4501 mandeep.dh 614
  def getInventoryItem(self, serialNumber):
2832 chandransh 615
    """
4501 mandeep.dh 616
    Retrieves serialized inventory item given a serial number
3431 rajveer 617
 
2832 chandransh 618
    Parameters:
4501 mandeep.dh 619
     - serialNumber
2832 chandransh 620
    """
4501 mandeep.dh 621
    self.send_getInventoryItem(serialNumber)
622
    return self.recv_getInventoryItem()
2832 chandransh 623
 
4501 mandeep.dh 624
  def send_getInventoryItem(self, serialNumber):
625
    self._oprot.writeMessageBegin('getInventoryItem', TMessageType.CALL, self._seqid)
626
    args = getInventoryItem_args()
627
    args.serialNumber = serialNumber
2832 chandransh 628
    args.write(self._oprot)
629
    self._oprot.writeMessageEnd()
630
    self._oprot.trans.flush()
631
 
4501 mandeep.dh 632
  def recv_getInventoryItem(self, ):
2832 chandransh 633
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
634
    if mtype == TMessageType.EXCEPTION:
635
      x = TApplicationException()
636
      x.read(self._iprot)
637
      self._iprot.readMessageEnd()
638
      raise x
4501 mandeep.dh 639
    result = getInventoryItem_result()
2832 chandransh 640
    result.read(self._iprot)
641
    self._iprot.readMessageEnd()
3431 rajveer 642
    if result.success is not None:
2832 chandransh 643
      return result.success
4541 mandeep.dh 644
    if result.wex is not None:
645
      raise result.wex
4501 mandeep.dh 646
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
2832 chandransh 647
 
8565 amar.kumar 648
  def getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId):
2821 chandransh 649
    """
5361 mandeep.dh 650
    Retrieves non-serialized inventory item from a given supplier
3431 rajveer 651
 
2821 chandransh 652
    Parameters:
5530 mandeep.dh 653
     - itemNumber
4501 mandeep.dh 654
     - itemId
5530 mandeep.dh 655
     - fulfilmentWarehouseId
8565 amar.kumar 656
     - billingWarehouseId
2821 chandransh 657
    """
8565 amar.kumar 658
    self.send_getNonSeralizedInventoryItem(itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId)
5361 mandeep.dh 659
    return self.recv_getNonSeralizedInventoryItem()
2821 chandransh 660
 
8565 amar.kumar 661
  def send_getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId):
5361 mandeep.dh 662
    self._oprot.writeMessageBegin('getNonSeralizedInventoryItem', TMessageType.CALL, self._seqid)
663
    args = getNonSeralizedInventoryItem_args()
5530 mandeep.dh 664
    args.itemNumber = itemNumber
4501 mandeep.dh 665
    args.itemId = itemId
5530 mandeep.dh 666
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 667
    args.billingWarehouseId = billingWarehouseId
2821 chandransh 668
    args.write(self._oprot)
669
    self._oprot.writeMessageEnd()
670
    self._oprot.trans.flush()
671
 
5361 mandeep.dh 672
  def recv_getNonSeralizedInventoryItem(self, ):
2821 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
5361 mandeep.dh 679
    result = getNonSeralizedInventoryItem_result()
2821 chandransh 680
    result.read(self._iprot)
681
    self._iprot.readMessageEnd()
3431 rajveer 682
    if result.success is not None:
2821 chandransh 683
      return result.success
5361 mandeep.dh 684
    if result.wex is not None:
685
      raise result.wex
686
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
2821 chandransh 687
 
7410 amar.kumar 688
  def scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
3383 chandransh 689
    """
4501 mandeep.dh 690
    Scan non-serialized items.
3431 rajveer 691
 
2821 chandransh 692
    Parameters:
5361 mandeep.dh 693
     - inventoryItem
2821 chandransh 694
     - type
4501 mandeep.dh 695
     - quantity
5361 mandeep.dh 696
     - billingWarehouseId
7410 amar.kumar 697
     - transferLotId
2821 chandransh 698
    """
7410 amar.kumar 699
    self.send_scan(inventoryItem, type, quantity, billingWarehouseId, transferLotId)
4501 mandeep.dh 700
    self.recv_scan()
2821 chandransh 701
 
7410 amar.kumar 702
  def send_scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
4501 mandeep.dh 703
    self._oprot.writeMessageBegin('scan', TMessageType.CALL, self._seqid)
704
    args = scan_args()
5361 mandeep.dh 705
    args.inventoryItem = inventoryItem
2821 chandransh 706
    args.type = type
4501 mandeep.dh 707
    args.quantity = quantity
5361 mandeep.dh 708
    args.billingWarehouseId = billingWarehouseId
7410 amar.kumar 709
    args.transferLotId = transferLotId
2821 chandransh 710
    args.write(self._oprot)
711
    self._oprot.writeMessageEnd()
712
    self._oprot.trans.flush()
713
 
4501 mandeep.dh 714
  def recv_scan(self, ):
2821 chandransh 715
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
716
    if mtype == TMessageType.EXCEPTION:
717
      x = TApplicationException()
718
      x.read(self._iprot)
719
      self._iprot.readMessageEnd()
720
      raise x
4501 mandeep.dh 721
    result = scan_result()
2821 chandransh 722
    result.read(self._iprot)
723
    self._iprot.readMessageEnd()
3431 rajveer 724
    if result.wex is not None:
2821 chandransh 725
      raise result.wex
726
    return
727
 
10489 amar.kumar 728
  def genericScan(self, inventoryItem, scan):
729
    """
730
    Scan non-serialized items.
731
 
732
    Parameters:
733
     - inventoryItem
734
     - scan
735
    """
736
    self.send_genericScan(inventoryItem, scan)
737
    self.recv_genericScan()
738
 
739
  def send_genericScan(self, inventoryItem, scan):
740
    self._oprot.writeMessageBegin('genericScan', TMessageType.CALL, self._seqid)
741
    args = genericScan_args()
742
    args.inventoryItem = inventoryItem
743
    args.scan = scan
744
    args.write(self._oprot)
745
    self._oprot.writeMessageEnd()
746
    self._oprot.trans.flush()
747
 
748
  def recv_genericScan(self, ):
749
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
750
    if mtype == TMessageType.EXCEPTION:
751
      x = TApplicationException()
752
      x.read(self._iprot)
753
      self._iprot.readMessageEnd()
754
      raise x
755
    result = genericScan_result()
756
    result.read(self._iprot)
757
    self._iprot.readMessageEnd()
758
    if result.wex is not None:
759
      raise result.wex
760
    return
761
 
5110 mandeep.dh 762
  def scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
2821 chandransh 763
    """
4501 mandeep.dh 764
    Scan serialized items linked with an order. Returns its price.
3431 rajveer 765
 
2821 chandransh 766
    Parameters:
4555 mandeep.dh 767
     - serialNumber
2821 chandransh 768
     - type
4501 mandeep.dh 769
     - orderId
5110 mandeep.dh 770
     - fulfilmentWarehouseId
771
     - quantity
772
     - billingWarehouseId
2821 chandransh 773
    """
5110 mandeep.dh 774
    self.send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId)
4501 mandeep.dh 775
    return self.recv_scanSerializedItemForOrder()
2821 chandransh 776
 
5110 mandeep.dh 777
  def send_scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
4501 mandeep.dh 778
    self._oprot.writeMessageBegin('scanSerializedItemForOrder', TMessageType.CALL, self._seqid)
779
    args = scanSerializedItemForOrder_args()
4555 mandeep.dh 780
    args.serialNumber = serialNumber
2821 chandransh 781
    args.type = type
4501 mandeep.dh 782
    args.orderId = orderId
5110 mandeep.dh 783
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
784
    args.quantity = quantity
785
    args.billingWarehouseId = billingWarehouseId
2821 chandransh 786
    args.write(self._oprot)
787
    self._oprot.writeMessageEnd()
788
    self._oprot.trans.flush()
789
 
4501 mandeep.dh 790
  def recv_scanSerializedItemForOrder(self, ):
2821 chandransh 791
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
792
    if mtype == TMessageType.EXCEPTION:
793
      x = TApplicationException()
794
      x.read(self._iprot)
795
      self._iprot.readMessageEnd()
796
      raise x
4501 mandeep.dh 797
    result = scanSerializedItemForOrder_result()
2821 chandransh 798
    result.read(self._iprot)
799
    self._iprot.readMessageEnd()
4501 mandeep.dh 800
    if result.success is not None:
801
      return result.success
3431 rajveer 802
    if result.wex is not None:
2821 chandransh 803
      raise result.wex
4501 mandeep.dh 804
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
805
 
5361 mandeep.dh 806
  def scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
4501 mandeep.dh 807
    """
808
    Scan non-serialized items linked with an order.
809
 
810
    Parameters:
5361 mandeep.dh 811
     - inventoryItem
4501 mandeep.dh 812
     - type
813
     - quantity
814
     - orderId
5110 mandeep.dh 815
     - fulfilmentWarehouseId
5361 mandeep.dh 816
     - billingWarehouseId
4501 mandeep.dh 817
    """
5361 mandeep.dh 818
    self.send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId)
819
    return self.recv_scanForOrder()
4501 mandeep.dh 820
 
5361 mandeep.dh 821
  def send_scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
4501 mandeep.dh 822
    self._oprot.writeMessageBegin('scanForOrder', TMessageType.CALL, self._seqid)
823
    args = scanForOrder_args()
5361 mandeep.dh 824
    args.inventoryItem = inventoryItem
4501 mandeep.dh 825
    args.type = type
826
    args.quantity = quantity
827
    args.orderId = orderId
5110 mandeep.dh 828
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
5361 mandeep.dh 829
    args.billingWarehouseId = billingWarehouseId
4501 mandeep.dh 830
    args.write(self._oprot)
831
    self._oprot.writeMessageEnd()
832
    self._oprot.trans.flush()
833
 
834
  def recv_scanForOrder(self, ):
835
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
836
    if mtype == TMessageType.EXCEPTION:
837
      x = TApplicationException()
838
      x.read(self._iprot)
839
      self._iprot.readMessageEnd()
840
      raise x
841
    result = scanForOrder_result()
842
    result.read(self._iprot)
843
    self._iprot.readMessageEnd()
5361 mandeep.dh 844
    if result.success is not None:
845
      return result.success
4501 mandeep.dh 846
    if result.wex is not None:
847
      raise result.wex
5361 mandeep.dh 848
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");
2821 chandransh 849
 
4501 mandeep.dh 850
  def createItemNumberMapping(self, itemNumber, itemId):
851
    """
852
    Created item number to item id mapping
2821 chandransh 853
 
4501 mandeep.dh 854
    Parameters:
855
     - itemNumber
856
     - itemId
857
    """
858
    self.send_createItemNumberMapping(itemNumber, itemId)
859
    self.recv_createItemNumberMapping()
860
 
861
  def send_createItemNumberMapping(self, itemNumber, itemId):
862
    self._oprot.writeMessageBegin('createItemNumberMapping', TMessageType.CALL, self._seqid)
863
    args = createItemNumberMapping_args()
864
    args.itemNumber = itemNumber
865
    args.itemId = itemId
866
    args.write(self._oprot)
867
    self._oprot.writeMessageEnd()
868
    self._oprot.trans.flush()
869
 
870
  def recv_createItemNumberMapping(self, ):
871
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
872
    if mtype == TMessageType.EXCEPTION:
873
      x = TApplicationException()
874
      x.read(self._iprot)
875
      self._iprot.readMessageEnd()
876
      raise x
877
    result = createItemNumberMapping_result()
878
    result.read(self._iprot)
879
    self._iprot.readMessageEnd()
880
    return
881
 
4620 amit.gupta 882
  def getItemNumbers(self, itemId):
883
    """
884
    Get itemNumber mappings for itemId
4501 mandeep.dh 885
 
4620 amit.gupta 886
    Parameters:
887
     - itemId
888
    """
889
    self.send_getItemNumbers(itemId)
890
    return self.recv_getItemNumbers()
891
 
892
  def send_getItemNumbers(self, itemId):
893
    self._oprot.writeMessageBegin('getItemNumbers', TMessageType.CALL, self._seqid)
894
    args = getItemNumbers_args()
895
    args.itemId = itemId
896
    args.write(self._oprot)
897
    self._oprot.writeMessageEnd()
898
    self._oprot.trans.flush()
899
 
900
  def recv_getItemNumbers(self, ):
901
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
902
    if mtype == TMessageType.EXCEPTION:
903
      x = TApplicationException()
904
      x.read(self._iprot)
905
      self._iprot.readMessageEnd()
906
      raise x
907
    result = getItemNumbers_result()
908
    result.read(self._iprot)
909
    self._iprot.readMessageEnd()
910
    if result.success is not None:
911
      return result.success
912
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
913
 
5110 mandeep.dh 914
  def getItemIds(self, itemNumber):
915
    """
916
    Gets item ids for a given item number
4620 amit.gupta 917
 
5110 mandeep.dh 918
    Parameters:
919
     - itemNumber
920
    """
921
    self.send_getItemIds(itemNumber)
922
    return self.recv_getItemIds()
923
 
924
  def send_getItemIds(self, itemNumber):
925
    self._oprot.writeMessageBegin('getItemIds', TMessageType.CALL, self._seqid)
926
    args = getItemIds_args()
927
    args.itemNumber = itemNumber
928
    args.write(self._oprot)
929
    self._oprot.writeMessageEnd()
930
    self._oprot.trans.flush()
931
 
932
  def recv_getItemIds(self, ):
933
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
934
    if mtype == TMessageType.EXCEPTION:
935
      x = TApplicationException()
936
      x.read(self._iprot)
937
      self._iprot.readMessageEnd()
938
      raise x
939
    result = getItemIds_result()
940
    result.read(self._iprot)
941
    self._iprot.readMessageEnd()
942
    if result.success is not None:
943
      return result.success
944
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
945
 
5185 mandeep.dh 946
  def getInventoryItemsFromLastScanType(self, lastScanType):
947
    """
948
    Retrieves all inventory items given a last scan type
5110 mandeep.dh 949
 
5185 mandeep.dh 950
    Parameters:
951
     - lastScanType
952
    """
953
    self.send_getInventoryItemsFromLastScanType(lastScanType)
954
    return self.recv_getInventoryItemsFromLastScanType()
955
 
956
  def send_getInventoryItemsFromLastScanType(self, lastScanType):
957
    self._oprot.writeMessageBegin('getInventoryItemsFromLastScanType', TMessageType.CALL, self._seqid)
958
    args = getInventoryItemsFromLastScanType_args()
959
    args.lastScanType = lastScanType
960
    args.write(self._oprot)
961
    self._oprot.writeMessageEnd()
962
    self._oprot.trans.flush()
963
 
964
  def recv_getInventoryItemsFromLastScanType(self, ):
965
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
966
    if mtype == TMessageType.EXCEPTION:
967
      x = TApplicationException()
968
      x.read(self._iprot)
969
      self._iprot.readMessageEnd()
970
      raise x
971
    result = getInventoryItemsFromLastScanType_result()
972
    result.read(self._iprot)
973
    self._iprot.readMessageEnd()
974
    if result.success is not None:
975
      return result.success
976
    if result.wex is not None:
977
      raise result.wex
978
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemsFromLastScanType failed: unknown result");
979
 
980
  def getInventoryItemFromId(self, inventoryItemId):
981
    """
982
    Retrieves inventory item given a inventoryItem id
983
 
984
    Parameters:
985
     - inventoryItemId
986
    """
987
    self.send_getInventoryItemFromId(inventoryItemId)
988
    return self.recv_getInventoryItemFromId()
989
 
990
  def send_getInventoryItemFromId(self, inventoryItemId):
991
    self._oprot.writeMessageBegin('getInventoryItemFromId', TMessageType.CALL, self._seqid)
992
    args = getInventoryItemFromId_args()
993
    args.inventoryItemId = inventoryItemId
994
    args.write(self._oprot)
995
    self._oprot.writeMessageEnd()
996
    self._oprot.trans.flush()
997
 
998
  def recv_getInventoryItemFromId(self, ):
999
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1000
    if mtype == TMessageType.EXCEPTION:
1001
      x = TApplicationException()
1002
      x.read(self._iprot)
1003
      self._iprot.readMessageEnd()
1004
      raise x
1005
    result = getInventoryItemFromId_result()
1006
    result.read(self._iprot)
1007
    self._iprot.readMessageEnd()
1008
    if result.success is not None:
1009
      return result.success
1010
    if result.wex is not None:
1011
      raise result.wex
1012
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");
1013
 
5372 mandeep.dh 1014
  def getPurchaseScans(self, startDate, endDate):
1015
    """
1016
    Returns the purchase scans grouped by items for Purchase register reconciliation
5185 mandeep.dh 1017
 
5372 mandeep.dh 1018
    Parameters:
1019
     - startDate
1020
     - endDate
1021
    """
1022
    self.send_getPurchaseScans(startDate, endDate)
1023
    return self.recv_getPurchaseScans()
1024
 
1025
  def send_getPurchaseScans(self, startDate, endDate):
1026
    self._oprot.writeMessageBegin('getPurchaseScans', TMessageType.CALL, self._seqid)
1027
    args = getPurchaseScans_args()
1028
    args.startDate = startDate
1029
    args.endDate = endDate
1030
    args.write(self._oprot)
1031
    self._oprot.writeMessageEnd()
1032
    self._oprot.trans.flush()
1033
 
1034
  def recv_getPurchaseScans(self, ):
1035
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1036
    if mtype == TMessageType.EXCEPTION:
1037
      x = TApplicationException()
1038
      x.read(self._iprot)
1039
      self._iprot.readMessageEnd()
1040
      raise x
1041
    result = getPurchaseScans_result()
1042
    result.read(self._iprot)
1043
    self._iprot.readMessageEnd()
1044
    if result.success is not None:
1045
      return result.success
1046
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseScans failed: unknown result");
1047
 
7216 amar.kumar 1048
  def getPurchaseScansByGrnDate(self, startDate, endDate):
1049
    """
1050
    Returns the purchase scans between grn dates grouped by items for Purchase register reconciliation
1051
 
1052
    Parameters:
1053
     - startDate
1054
     - endDate
1055
    """
1056
    self.send_getPurchaseScansByGrnDate(startDate, endDate)
1057
    return self.recv_getPurchaseScansByGrnDate()
1058
 
1059
  def send_getPurchaseScansByGrnDate(self, startDate, endDate):
1060
    self._oprot.writeMessageBegin('getPurchaseScansByGrnDate', TMessageType.CALL, self._seqid)
1061
    args = getPurchaseScansByGrnDate_args()
1062
    args.startDate = startDate
1063
    args.endDate = endDate
1064
    args.write(self._oprot)
1065
    self._oprot.writeMessageEnd()
1066
    self._oprot.trans.flush()
1067
 
1068
  def recv_getPurchaseScansByGrnDate(self, ):
1069
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1070
    if mtype == TMessageType.EXCEPTION:
1071
      x = TApplicationException()
1072
      x.read(self._iprot)
1073
      self._iprot.readMessageEnd()
1074
      raise x
1075
    result = getPurchaseScansByGrnDate_result()
1076
    result.read(self._iprot)
1077
    self._iprot.readMessageEnd()
1078
    if result.success is not None:
1079
      return result.success
1080
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseScansByGrnDate failed: unknown result");
1081
 
10407 amar.kumar 1082
  def getEmptyGrnsByDate(self, startDate, endDate):
1083
    """
1084
    Returns the empty grn-ids between grn dates
1085
 
1086
    Parameters:
1087
     - startDate
1088
     - endDate
1089
    """
1090
    self.send_getEmptyGrnsByDate(startDate, endDate)
1091
    return self.recv_getEmptyGrnsByDate()
1092
 
1093
  def send_getEmptyGrnsByDate(self, startDate, endDate):
1094
    self._oprot.writeMessageBegin('getEmptyGrnsByDate', TMessageType.CALL, self._seqid)
1095
    args = getEmptyGrnsByDate_args()
1096
    args.startDate = startDate
1097
    args.endDate = endDate
1098
    args.write(self._oprot)
1099
    self._oprot.writeMessageEnd()
1100
    self._oprot.trans.flush()
1101
 
1102
  def recv_getEmptyGrnsByDate(self, ):
1103
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1104
    if mtype == TMessageType.EXCEPTION:
1105
      x = TApplicationException()
1106
      x.read(self._iprot)
1107
      self._iprot.readMessageEnd()
1108
      raise x
1109
    result = getEmptyGrnsByDate_result()
1110
    result.read(self._iprot)
1111
    self._iprot.readMessageEnd()
1112
    if result.success is not None:
1113
      return result.success
1114
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmptyGrnsByDate failed: unknown result");
1115
 
5496 mandeep.dh 1116
  def fetchScansPerInvoiceNumber(self, date):
1117
    """
1118
    Returns the invoices and the count of scans against on a given day.
5372 mandeep.dh 1119
 
5496 mandeep.dh 1120
    Parameters:
1121
     - date
1122
    """
1123
    self.send_fetchScansPerInvoiceNumber(date)
1124
    return self.recv_fetchScansPerInvoiceNumber()
1125
 
1126
  def send_fetchScansPerInvoiceNumber(self, date):
1127
    self._oprot.writeMessageBegin('fetchScansPerInvoiceNumber', TMessageType.CALL, self._seqid)
1128
    args = fetchScansPerInvoiceNumber_args()
1129
    args.date = date
1130
    args.write(self._oprot)
1131
    self._oprot.writeMessageEnd()
1132
    self._oprot.trans.flush()
1133
 
1134
  def recv_fetchScansPerInvoiceNumber(self, ):
1135
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1136
    if mtype == TMessageType.EXCEPTION:
1137
      x = TApplicationException()
1138
      x.read(self._iprot)
1139
      self._iprot.readMessageEnd()
1140
      raise x
1141
    result = fetchScansPerInvoiceNumber_result()
1142
    result.read(self._iprot)
1143
    self._iprot.readMessageEnd()
1144
    if result.success is not None:
1145
      return result.success
1146
    raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchScansPerInvoiceNumber failed: unknown result");
1147
 
5620 mandeep.dh 1148
  def getInventoryItemFromOrder(self, orderId):
1149
    """
1150
    Returns inventory item for a given order
5496 mandeep.dh 1151
 
5620 mandeep.dh 1152
    Parameters:
1153
     - orderId
1154
    """
1155
    self.send_getInventoryItemFromOrder(orderId)
1156
    return self.recv_getInventoryItemFromOrder()
1157
 
1158
  def send_getInventoryItemFromOrder(self, orderId):
1159
    self._oprot.writeMessageBegin('getInventoryItemFromOrder', TMessageType.CALL, self._seqid)
1160
    args = getInventoryItemFromOrder_args()
1161
    args.orderId = orderId
1162
    args.write(self._oprot)
1163
    self._oprot.writeMessageEnd()
1164
    self._oprot.trans.flush()
1165
 
1166
  def recv_getInventoryItemFromOrder(self, ):
1167
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1168
    if mtype == TMessageType.EXCEPTION:
1169
      x = TApplicationException()
1170
      x.read(self._iprot)
1171
      self._iprot.readMessageEnd()
1172
      raise x
1173
    result = getInventoryItemFromOrder_result()
1174
    result.read(self._iprot)
1175
    self._iprot.readMessageEnd()
1176
    if result.success is not None:
1177
      return result.success
1178
    if result.we is not None:
1179
      raise result.we
1180
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemFromOrder failed: unknown result");
1181
 
5711 mandeep.dh 1182
  def getInventoryAge(self, ):
1183
    """
1184
    Fetches the stock inventory age week-wise
1185
    """
1186
    self.send_getInventoryAge()
1187
    return self.recv_getInventoryAge()
5620 mandeep.dh 1188
 
5711 mandeep.dh 1189
  def send_getInventoryAge(self, ):
1190
    self._oprot.writeMessageBegin('getInventoryAge', TMessageType.CALL, self._seqid)
1191
    args = getInventoryAge_args()
1192
    args.write(self._oprot)
1193
    self._oprot.writeMessageEnd()
1194
    self._oprot.trans.flush()
1195
 
1196
  def recv_getInventoryAge(self, ):
1197
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1198
    if mtype == TMessageType.EXCEPTION:
1199
      x = TApplicationException()
1200
      x.read(self._iprot)
1201
      self._iprot.readMessageEnd()
1202
      raise x
1203
    result = getInventoryAge_result()
1204
    result.read(self._iprot)
1205
    self._iprot.readMessageEnd()
1206
    if result.success is not None:
1207
      return result.success
1208
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryAge failed: unknown result");
1209
 
6361 rajveer 1210
  def getInventoryScansForItem(self, itemId, fromDate, toDate):
1211
    """
1212
    Fetches the scanRecords for a given item for a given time interval
5711 mandeep.dh 1213
 
6361 rajveer 1214
    Parameters:
1215
     - itemId
1216
     - fromDate
1217
     - toDate
1218
    """
1219
    self.send_getInventoryScansForItem(itemId, fromDate, toDate)
1220
    return self.recv_getInventoryScansForItem()
1221
 
1222
  def send_getInventoryScansForItem(self, itemId, fromDate, toDate):
1223
    self._oprot.writeMessageBegin('getInventoryScansForItem', TMessageType.CALL, self._seqid)
1224
    args = getInventoryScansForItem_args()
1225
    args.itemId = itemId
1226
    args.fromDate = fromDate
1227
    args.toDate = toDate
1228
    args.write(self._oprot)
1229
    self._oprot.writeMessageEnd()
1230
    self._oprot.trans.flush()
1231
 
1232
  def recv_getInventoryScansForItem(self, ):
1233
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1234
    if mtype == TMessageType.EXCEPTION:
1235
      x = TApplicationException()
1236
      x.read(self._iprot)
1237
      self._iprot.readMessageEnd()
1238
      raise x
1239
    result = getInventoryScansForItem_result()
1240
    result.read(self._iprot)
1241
    self._iprot.readMessageEnd()
1242
    if result.success is not None:
1243
      return result.success
1244
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryScansForItem failed: unknown result");
1245
 
1246
  def getScanRecordsForSerialNumber(self, serialNumber):
1247
    """
1248
    Fetches the scanRecords for a given serialNumber for a given time interval
1249
 
1250
    Parameters:
1251
     - serialNumber
1252
    """
1253
    self.send_getScanRecordsForSerialNumber(serialNumber)
1254
    return self.recv_getScanRecordsForSerialNumber()
1255
 
1256
  def send_getScanRecordsForSerialNumber(self, serialNumber):
1257
    self._oprot.writeMessageBegin('getScanRecordsForSerialNumber', TMessageType.CALL, self._seqid)
1258
    args = getScanRecordsForSerialNumber_args()
1259
    args.serialNumber = serialNumber
1260
    args.write(self._oprot)
1261
    self._oprot.writeMessageEnd()
1262
    self._oprot.trans.flush()
1263
 
1264
  def recv_getScanRecordsForSerialNumber(self, ):
1265
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1266
    if mtype == TMessageType.EXCEPTION:
1267
      x = TApplicationException()
1268
      x.read(self._iprot)
1269
      self._iprot.readMessageEnd()
1270
      raise x
1271
    result = getScanRecordsForSerialNumber_result()
1272
    result.read(self._iprot)
1273
    self._iprot.readMessageEnd()
1274
    if result.success is not None:
1275
      return result.success
1276
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScanRecordsForSerialNumber failed: unknown result");
1277
 
7718 amar.kumar 1278
  def scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
6467 amar.kumar 1279
    """
6630 amar.kumar 1280
    Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
6361 rajveer 1281
 
6467 amar.kumar 1282
    Parameters:
1283
     - saleReturnItems
1284
     - vendorId
7718 amar.kumar 1285
     - billingWarehouseId
6467 amar.kumar 1286
    """
7718 amar.kumar 1287
    self.send_scanForPurchaseReturn(saleReturnItems, vendorId, billingWarehouseId)
10864 manish.sha 1288
    return self.recv_scanForPurchaseReturn()
6467 amar.kumar 1289
 
7718 amar.kumar 1290
  def send_scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
6467 amar.kumar 1291
    self._oprot.writeMessageBegin('scanForPurchaseReturn', TMessageType.CALL, self._seqid)
1292
    args = scanForPurchaseReturn_args()
1293
    args.saleReturnItems = saleReturnItems
1294
    args.vendorId = vendorId
7718 amar.kumar 1295
    args.billingWarehouseId = billingWarehouseId
6467 amar.kumar 1296
    args.write(self._oprot)
1297
    self._oprot.writeMessageEnd()
1298
    self._oprot.trans.flush()
1299
 
1300
  def recv_scanForPurchaseReturn(self, ):
1301
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1302
    if mtype == TMessageType.EXCEPTION:
1303
      x = TApplicationException()
1304
      x.read(self._iprot)
1305
      self._iprot.readMessageEnd()
1306
      raise x
1307
    result = scanForPurchaseReturn_result()
1308
    result.read(self._iprot)
1309
    self._iprot.readMessageEnd()
10864 manish.sha 1310
    if result.success is not None:
1311
      return result.success
6467 amar.kumar 1312
    if result.ex is not None:
1313
      raise result.ex
10864 manish.sha 1314
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForPurchaseReturn failed: unknown result");
6467 amar.kumar 1315
 
7718 amar.kumar 1316
  def scanForLostItem(self, lostItems, vendorId, billingWarehouseId):
6630 amar.kumar 1317
    """
1318
    Inserts scans for lost Items and updates lastScanType in InventoryItems
6467 amar.kumar 1319
 
6630 amar.kumar 1320
    Parameters:
1321
     - lostItems
1322
     - vendorId
7718 amar.kumar 1323
     - billingWarehouseId
6630 amar.kumar 1324
    """
7718 amar.kumar 1325
    self.send_scanForLostItem(lostItems, vendorId, billingWarehouseId)
6630 amar.kumar 1326
    self.recv_scanForLostItem()
1327
 
7718 amar.kumar 1328
  def send_scanForLostItem(self, lostItems, vendorId, billingWarehouseId):
6630 amar.kumar 1329
    self._oprot.writeMessageBegin('scanForLostItem', TMessageType.CALL, self._seqid)
1330
    args = scanForLostItem_args()
1331
    args.lostItems = lostItems
1332
    args.vendorId = vendorId
7718 amar.kumar 1333
    args.billingWarehouseId = billingWarehouseId
6630 amar.kumar 1334
    args.write(self._oprot)
1335
    self._oprot.writeMessageEnd()
1336
    self._oprot.trans.flush()
1337
 
1338
  def recv_scanForLostItem(self, ):
1339
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1340
    if mtype == TMessageType.EXCEPTION:
1341
      x = TApplicationException()
1342
      x.read(self._iprot)
1343
      self._iprot.readMessageEnd()
1344
      raise x
1345
    result = scanForLostItem_result()
1346
    result.read(self._iprot)
1347
    self._iprot.readMessageEnd()
1348
    if result.ex is not None:
1349
      raise result.ex
1350
    return
1351
 
7715 vikram.rag 1352
  def getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1353
    """
1354
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
7715 vikram.rag 1355
 
1356
    Parameters:
1357
     - physicalWarehouseId
6630 amar.kumar 1358
    """
7715 vikram.rag 1359
    self.send_getCurrentSerializedInventoryByScans(physicalWarehouseId)
6630 amar.kumar 1360
    return self.recv_getCurrentSerializedInventoryByScans()
1361
 
7715 vikram.rag 1362
  def send_getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1363
    self._oprot.writeMessageBegin('getCurrentSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1364
    args = getCurrentSerializedInventoryByScans_args()
7715 vikram.rag 1365
    args.physicalWarehouseId = physicalWarehouseId
6630 amar.kumar 1366
    args.write(self._oprot)
1367
    self._oprot.writeMessageEnd()
1368
    self._oprot.trans.flush()
1369
 
1370
  def recv_getCurrentSerializedInventoryByScans(self, ):
1371
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1372
    if mtype == TMessageType.EXCEPTION:
1373
      x = TApplicationException()
1374
      x.read(self._iprot)
1375
      self._iprot.readMessageEnd()
1376
      raise x
1377
    result = getCurrentSerializedInventoryByScans_result()
1378
    result.read(self._iprot)
1379
    self._iprot.readMessageEnd()
1380
    if result.success is not None:
1381
      return result.success
1382
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");
1383
 
7715 vikram.rag 1384
  def getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1385
    """
1386
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
7715 vikram.rag 1387
 
1388
    Parameters:
1389
     - physicalWarehouseId
6630 amar.kumar 1390
    """
7715 vikram.rag 1391
    self.send_getCurrentNonSerializedInventoryByScans(physicalWarehouseId)
6630 amar.kumar 1392
    return self.recv_getCurrentNonSerializedInventoryByScans()
1393
 
7715 vikram.rag 1394
  def send_getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1395
    self._oprot.writeMessageBegin('getCurrentNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1396
    args = getCurrentNonSerializedInventoryByScans_args()
7715 vikram.rag 1397
    args.physicalWarehouseId = physicalWarehouseId
6630 amar.kumar 1398
    args.write(self._oprot)
1399
    self._oprot.writeMessageEnd()
1400
    self._oprot.trans.flush()
1401
 
1402
  def recv_getCurrentNonSerializedInventoryByScans(self, ):
1403
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1404
    if mtype == TMessageType.EXCEPTION:
1405
      x = TApplicationException()
1406
      x.read(self._iprot)
1407
      self._iprot.readMessageEnd()
1408
      raise x
1409
    result = getCurrentNonSerializedInventoryByScans_result()
1410
    result.read(self._iprot)
1411
    self._iprot.readMessageEnd()
1412
    if result.success is not None:
1413
      return result.success
1414
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");
1415
 
6762 amar.kumar 1416
  def getHistoricSerializedInventoryByScans(self, date):
1417
    """
1418
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
6630 amar.kumar 1419
 
6762 amar.kumar 1420
    Parameters:
1421
     - date
1422
    """
1423
    self.send_getHistoricSerializedInventoryByScans(date)
1424
    return self.recv_getHistoricSerializedInventoryByScans()
1425
 
1426
  def send_getHistoricSerializedInventoryByScans(self, date):
1427
    self._oprot.writeMessageBegin('getHistoricSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1428
    args = getHistoricSerializedInventoryByScans_args()
1429
    args.date = date
1430
    args.write(self._oprot)
1431
    self._oprot.writeMessageEnd()
1432
    self._oprot.trans.flush()
1433
 
1434
  def recv_getHistoricSerializedInventoryByScans(self, ):
1435
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1436
    if mtype == TMessageType.EXCEPTION:
1437
      x = TApplicationException()
1438
      x.read(self._iprot)
1439
      self._iprot.readMessageEnd()
1440
      raise x
1441
    result = getHistoricSerializedInventoryByScans_result()
1442
    result.read(self._iprot)
1443
    self._iprot.readMessageEnd()
1444
    if result.success is not None:
1445
      return result.success
1446
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricSerializedInventoryByScans failed: unknown result");
1447
 
1448
  def getHistoricNonSerializedInventoryByScans(self, date):
1449
    """
1450
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
1451
 
1452
    Parameters:
1453
     - date
1454
    """
1455
    self.send_getHistoricNonSerializedInventoryByScans(date)
1456
    return self.recv_getHistoricNonSerializedInventoryByScans()
1457
 
1458
  def send_getHistoricNonSerializedInventoryByScans(self, date):
1459
    self._oprot.writeMessageBegin('getHistoricNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1460
    args = getHistoricNonSerializedInventoryByScans_args()
1461
    args.date = date
1462
    args.write(self._oprot)
1463
    self._oprot.writeMessageEnd()
1464
    self._oprot.trans.flush()
1465
 
1466
  def recv_getHistoricNonSerializedInventoryByScans(self, ):
1467
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1468
    if mtype == TMessageType.EXCEPTION:
1469
      x = TApplicationException()
1470
      x.read(self._iprot)
1471
      self._iprot.readMessageEnd()
1472
      raise x
1473
    result = getHistoricNonSerializedInventoryByScans_result()
1474
    result.read(self._iprot)
1475
    self._iprot.readMessageEnd()
1476
    if result.success is not None:
1477
      return result.success
1478
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricNonSerializedInventoryByScans failed: unknown result");
1479
 
10407 amar.kumar 1480
  def getOurHistoricSerializedInventoryByScans(self, date):
1481
    """
1482
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
1483
 
1484
    Parameters:
1485
     - date
1486
    """
1487
    self.send_getOurHistoricSerializedInventoryByScans(date)
1488
    return self.recv_getOurHistoricSerializedInventoryByScans()
1489
 
1490
  def send_getOurHistoricSerializedInventoryByScans(self, date):
1491
    self._oprot.writeMessageBegin('getOurHistoricSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1492
    args = getOurHistoricSerializedInventoryByScans_args()
1493
    args.date = date
1494
    args.write(self._oprot)
1495
    self._oprot.writeMessageEnd()
1496
    self._oprot.trans.flush()
1497
 
1498
  def recv_getOurHistoricSerializedInventoryByScans(self, ):
1499
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1500
    if mtype == TMessageType.EXCEPTION:
1501
      x = TApplicationException()
1502
      x.read(self._iprot)
1503
      self._iprot.readMessageEnd()
1504
      raise x
1505
    result = getOurHistoricSerializedInventoryByScans_result()
1506
    result.read(self._iprot)
1507
    self._iprot.readMessageEnd()
1508
    if result.success is not None:
1509
      return result.success
1510
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurHistoricSerializedInventoryByScans failed: unknown result");
1511
 
1512
  def getOurHistoricNonSerializedInventoryByScans(self, date):
1513
    """
1514
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
1515
 
1516
    Parameters:
1517
     - date
1518
    """
1519
    self.send_getOurHistoricNonSerializedInventoryByScans(date)
1520
    return self.recv_getOurHistoricNonSerializedInventoryByScans()
1521
 
1522
  def send_getOurHistoricNonSerializedInventoryByScans(self, date):
1523
    self._oprot.writeMessageBegin('getOurHistoricNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1524
    args = getOurHistoricNonSerializedInventoryByScans_args()
1525
    args.date = date
1526
    args.write(self._oprot)
1527
    self._oprot.writeMessageEnd()
1528
    self._oprot.trans.flush()
1529
 
1530
  def recv_getOurHistoricNonSerializedInventoryByScans(self, ):
1531
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1532
    if mtype == TMessageType.EXCEPTION:
1533
      x = TApplicationException()
1534
      x.read(self._iprot)
1535
      self._iprot.readMessageEnd()
1536
      raise x
1537
    result = getOurHistoricNonSerializedInventoryByScans_result()
1538
    result.read(self._iprot)
1539
    self._iprot.readMessageEnd()
1540
    if result.success is not None:
1541
      return result.success
1542
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurHistoricNonSerializedInventoryByScans failed: unknown result");
1543
 
7672 rajveer 1544
  def scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):
6762 amar.kumar 1545
    """
6880 amar.kumar 1546
    Insert Purchase/Sale Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 1547
 
1548
    Parameters:
1549
     - itemId
1550
     - serialNumber
1551
     - itemNumber
1552
     - invoiceNumber
1553
     - warehouseId
1554
     - unitPrice
7672 rajveer 1555
     - nlc
6762 amar.kumar 1556
     - orderId
1557
    """
7672 rajveer 1558
    self.send_scanForOursExternalSale(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId)
6762 amar.kumar 1559
    return self.recv_scanForOursExternalSale()
1560
 
7672 rajveer 1561
  def send_scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):
6762 amar.kumar 1562
    self._oprot.writeMessageBegin('scanForOursExternalSale', TMessageType.CALL, self._seqid)
1563
    args = scanForOursExternalSale_args()
1564
    args.itemId = itemId
1565
    args.serialNumber = serialNumber
1566
    args.itemNumber = itemNumber
1567
    args.invoiceNumber = invoiceNumber
1568
    args.warehouseId = warehouseId
1569
    args.unitPrice = unitPrice
7672 rajveer 1570
    args.nlc = nlc
6762 amar.kumar 1571
    args.orderId = orderId
1572
    args.write(self._oprot)
1573
    self._oprot.writeMessageEnd()
1574
    self._oprot.trans.flush()
1575
 
1576
  def recv_scanForOursExternalSale(self, ):
1577
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1578
    if mtype == TMessageType.EXCEPTION:
1579
      x = TApplicationException()
1580
      x.read(self._iprot)
1581
      self._iprot.readMessageEnd()
1582
      raise x
1583
    result = scanForOursExternalSale_result()
1584
    result.read(self._iprot)
1585
    self._iprot.readMessageEnd()
1586
    if result.success is not None:
1587
      return result.success
1588
    if result.ex is not None:
1589
      raise result.ex
1590
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOursExternalSale failed: unknown result");
1591
 
1592
  def scanForOursExternalSaleReturn(self, orderId, unitPrice):
1593
    """
6880 amar.kumar 1594
    Insert Purchase_Ret/Sale_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 1595
 
1596
    Parameters:
1597
     - orderId
1598
     - unitPrice
1599
    """
1600
    self.send_scanForOursExternalSaleReturn(orderId, unitPrice)
1601
    self.recv_scanForOursExternalSaleReturn()
1602
 
1603
  def send_scanForOursExternalSaleReturn(self, orderId, unitPrice):
1604
    self._oprot.writeMessageBegin('scanForOursExternalSaleReturn', TMessageType.CALL, self._seqid)
1605
    args = scanForOursExternalSaleReturn_args()
1606
    args.orderId = orderId
1607
    args.unitPrice = unitPrice
1608
    args.write(self._oprot)
1609
    self._oprot.writeMessageEnd()
1610
    self._oprot.trans.flush()
1611
 
1612
  def recv_scanForOursExternalSaleReturn(self, ):
1613
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1614
    if mtype == TMessageType.EXCEPTION:
1615
      x = TApplicationException()
1616
      x.read(self._iprot)
1617
      self._iprot.readMessageEnd()
1618
      raise x
1619
    result = scanForOursExternalSaleReturn_result()
1620
    result.read(self._iprot)
1621
    self._iprot.readMessageEnd()
7410 amar.kumar 1622
    if result.ex is not None:
1623
      raise result.ex
6762 amar.kumar 1624
    return
1625
 
6880 amar.kumar 1626
  def getMovementNonSerializedInventoryByScans(self, startDate, endDate):
1627
    """
10407 amar.kumar 1628
    This returns movement for each non serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)
1629
 
6880 amar.kumar 1630
    Parameters:
1631
     - startDate
1632
     - endDate
1633
    """
1634
    self.send_getMovementNonSerializedInventoryByScans(startDate, endDate)
1635
    return self.recv_getMovementNonSerializedInventoryByScans()
6762 amar.kumar 1636
 
6880 amar.kumar 1637
  def send_getMovementNonSerializedInventoryByScans(self, startDate, endDate):
1638
    self._oprot.writeMessageBegin('getMovementNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1639
    args = getMovementNonSerializedInventoryByScans_args()
1640
    args.startDate = startDate
1641
    args.endDate = endDate
1642
    args.write(self._oprot)
1643
    self._oprot.writeMessageEnd()
1644
    self._oprot.trans.flush()
1645
 
1646
  def recv_getMovementNonSerializedInventoryByScans(self, ):
1647
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1648
    if mtype == TMessageType.EXCEPTION:
1649
      x = TApplicationException()
1650
      x.read(self._iprot)
1651
      self._iprot.readMessageEnd()
1652
      raise x
1653
    result = getMovementNonSerializedInventoryByScans_result()
1654
    result.read(self._iprot)
1655
    self._iprot.readMessageEnd()
1656
    if result.success is not None:
1657
      return result.success
1658
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMovementNonSerializedInventoryByScans failed: unknown result");
1659
 
1660
  def getMovementSerializedInventoryByScans(self, startDate, endDate):
1661
    """
10407 amar.kumar 1662
    This returns movement for each serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)
1663
 
6880 amar.kumar 1664
    Parameters:
1665
     - startDate
1666
     - endDate
1667
    """
1668
    self.send_getMovementSerializedInventoryByScans(startDate, endDate)
1669
    return self.recv_getMovementSerializedInventoryByScans()
1670
 
1671
  def send_getMovementSerializedInventoryByScans(self, startDate, endDate):
1672
    self._oprot.writeMessageBegin('getMovementSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1673
    args = getMovementSerializedInventoryByScans_args()
1674
    args.startDate = startDate
1675
    args.endDate = endDate
1676
    args.write(self._oprot)
1677
    self._oprot.writeMessageEnd()
1678
    self._oprot.trans.flush()
1679
 
1680
  def recv_getMovementSerializedInventoryByScans(self, ):
1681
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1682
    if mtype == TMessageType.EXCEPTION:
1683
      x = TApplicationException()
1684
      x.read(self._iprot)
1685
      self._iprot.readMessageEnd()
1686
      raise x
1687
    result = getMovementSerializedInventoryByScans_result()
1688
    result.read(self._iprot)
1689
    self._iprot.readMessageEnd()
1690
    if result.success is not None:
1691
      return result.success
1692
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMovementSerializedInventoryByScans failed: unknown result");
1693
 
7216 amar.kumar 1694
  def getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):
1695
    """
10407 amar.kumar 1696
    This returns movement for each serialized item in the specified window.(Doesn't include Amazon w/h)
1697
 
7216 amar.kumar 1698
    Parameters:
1699
     - startDate
1700
     - endDate
1701
    """
1702
    self.send_getCompleteMovementSerializedInventoryByScans(startDate, endDate)
1703
    return self.recv_getCompleteMovementSerializedInventoryByScans()
1704
 
1705
  def send_getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):
1706
    self._oprot.writeMessageBegin('getCompleteMovementSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1707
    args = getCompleteMovementSerializedInventoryByScans_args()
1708
    args.startDate = startDate
1709
    args.endDate = endDate
1710
    args.write(self._oprot)
1711
    self._oprot.writeMessageEnd()
1712
    self._oprot.trans.flush()
1713
 
1714
  def recv_getCompleteMovementSerializedInventoryByScans(self, ):
1715
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1716
    if mtype == TMessageType.EXCEPTION:
1717
      x = TApplicationException()
1718
      x.read(self._iprot)
1719
      self._iprot.readMessageEnd()
1720
      raise x
1721
    result = getCompleteMovementSerializedInventoryByScans_result()
1722
    result.read(self._iprot)
1723
    self._iprot.readMessageEnd()
1724
    if result.success is not None:
1725
      return result.success
1726
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementSerializedInventoryByScans failed: unknown result");
1727
 
1728
  def getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):
1729
    """
10407 amar.kumar 1730
    This returns movement for each non serialized item in the specified window.(Doesn't include Amazon w/h)
1731
 
7216 amar.kumar 1732
    Parameters:
1733
     - startDate
1734
     - endDate
1735
    """
1736
    self.send_getCompleteMovementNonSerializedInventoryByScans(startDate, endDate)
1737
    return self.recv_getCompleteMovementNonSerializedInventoryByScans()
1738
 
1739
  def send_getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):
1740
    self._oprot.writeMessageBegin('getCompleteMovementNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1741
    args = getCompleteMovementNonSerializedInventoryByScans_args()
1742
    args.startDate = startDate
1743
    args.endDate = endDate
1744
    args.write(self._oprot)
1745
    self._oprot.writeMessageEnd()
1746
    self._oprot.trans.flush()
1747
 
1748
  def recv_getCompleteMovementNonSerializedInventoryByScans(self, ):
1749
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1750
    if mtype == TMessageType.EXCEPTION:
1751
      x = TApplicationException()
1752
      x.read(self._iprot)
1753
      self._iprot.readMessageEnd()
1754
      raise x
1755
    result = getCompleteMovementNonSerializedInventoryByScans_result()
1756
    result.read(self._iprot)
1757
    self._iprot.readMessageEnd()
1758
    if result.success is not None:
1759
      return result.success
1760
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementNonSerializedInventoryByScans failed: unknown result");
1761
 
7190 amar.kumar 1762
  def scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):
1763
    """
1764
    Parameters:
1765
     - orderId
1766
     - freebieItemId
1767
     - freebieWarehouseId
1768
     - scanType
1769
    """
1770
    self.send_scanfreebie(orderId, freebieItemId, freebieWarehouseId, scanType)
1771
    return self.recv_scanfreebie()
6880 amar.kumar 1772
 
7190 amar.kumar 1773
  def send_scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):
1774
    self._oprot.writeMessageBegin('scanfreebie', TMessageType.CALL, self._seqid)
1775
    args = scanfreebie_args()
1776
    args.orderId = orderId
1777
    args.freebieItemId = freebieItemId
1778
    args.freebieWarehouseId = freebieWarehouseId
1779
    args.scanType = scanType
1780
    args.write(self._oprot)
1781
    self._oprot.writeMessageEnd()
1782
    self._oprot.trans.flush()
1783
 
1784
  def recv_scanfreebie(self, ):
1785
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1786
    if mtype == TMessageType.EXCEPTION:
1787
      x = TApplicationException()
1788
      x.read(self._iprot)
1789
      self._iprot.readMessageEnd()
1790
      raise x
1791
    result = scanfreebie_result()
1792
    result.read(self._iprot)
1793
    self._iprot.readMessageEnd()
1794
    if result.success is not None:
1795
      return result.success
1796
    if result.wex is not None:
1797
      raise result.wex
1798
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanfreebie failed: unknown result");
1799
 
7199 amar.kumar 1800
  def reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):
1801
    """
1802
    Parameters:
1803
     - oldOrderId
1804
     - newOrderId
1805
     - freebieItemId
1806
     - scanType
1807
    """
1808
    self.send_reshipfreebie(oldOrderId, newOrderId, freebieItemId, scanType)
1809
    self.recv_reshipfreebie()
7190 amar.kumar 1810
 
7199 amar.kumar 1811
  def send_reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):
1812
    self._oprot.writeMessageBegin('reshipfreebie', TMessageType.CALL, self._seqid)
1813
    args = reshipfreebie_args()
1814
    args.oldOrderId = oldOrderId
1815
    args.newOrderId = newOrderId
1816
    args.freebieItemId = freebieItemId
1817
    args.scanType = scanType
1818
    args.write(self._oprot)
1819
    self._oprot.writeMessageEnd()
1820
    self._oprot.trans.flush()
1821
 
1822
  def recv_reshipfreebie(self, ):
1823
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1824
    if mtype == TMessageType.EXCEPTION:
1825
      x = TApplicationException()
1826
      x.read(self._iprot)
1827
      self._iprot.readMessageEnd()
1828
      raise x
1829
    result = reshipfreebie_result()
1830
    result.read(self._iprot)
1831
    self._iprot.readMessageEnd()
1832
    if result.wex is not None:
1833
      raise result.wex
1834
    return
1835
 
7410 amar.kumar 1836
  def isItemTransferAllowed(self, warehouseId, transferWarehouseId):
1837
    """
1838
    Parameters:
1839
     - warehouseId
1840
     - transferWarehouseId
1841
    """
1842
    self.send_isItemTransferAllowed(warehouseId, transferWarehouseId)
1843
    return self.recv_isItemTransferAllowed()
7199 amar.kumar 1844
 
7410 amar.kumar 1845
  def send_isItemTransferAllowed(self, warehouseId, transferWarehouseId):
1846
    self._oprot.writeMessageBegin('isItemTransferAllowed', TMessageType.CALL, self._seqid)
1847
    args = isItemTransferAllowed_args()
1848
    args.warehouseId = warehouseId
1849
    args.transferWarehouseId = transferWarehouseId
1850
    args.write(self._oprot)
1851
    self._oprot.writeMessageEnd()
1852
    self._oprot.trans.flush()
1853
 
1854
  def recv_isItemTransferAllowed(self, ):
1855
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1856
    if mtype == TMessageType.EXCEPTION:
1857
      x = TApplicationException()
1858
      x.read(self._iprot)
1859
      self._iprot.readMessageEnd()
1860
      raise x
1861
    result = isItemTransferAllowed_result()
1862
    result.read(self._iprot)
1863
    self._iprot.readMessageEnd()
1864
    if result.success is not None:
1865
      return result.success
1866
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isItemTransferAllowed failed: unknown result");
1867
 
1868
  def createTransferLot(self, originWarehouseId, destWarehouseId):
1869
    """
1870
    Parameters:
1871
     - originWarehouseId
1872
     - destWarehouseId
1873
    """
1874
    self.send_createTransferLot(originWarehouseId, destWarehouseId)
1875
    return self.recv_createTransferLot()
1876
 
1877
  def send_createTransferLot(self, originWarehouseId, destWarehouseId):
1878
    self._oprot.writeMessageBegin('createTransferLot', TMessageType.CALL, self._seqid)
1879
    args = createTransferLot_args()
1880
    args.originWarehouseId = originWarehouseId
1881
    args.destWarehouseId = destWarehouseId
1882
    args.write(self._oprot)
1883
    self._oprot.writeMessageEnd()
1884
    self._oprot.trans.flush()
1885
 
1886
  def recv_createTransferLot(self, ):
1887
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1888
    if mtype == TMessageType.EXCEPTION:
1889
      x = TApplicationException()
1890
      x.read(self._iprot)
1891
      self._iprot.readMessageEnd()
1892
      raise x
1893
    result = createTransferLot_result()
1894
    result.read(self._iprot)
1895
    self._iprot.readMessageEnd()
1896
    if result.success is not None:
1897
      return result.success
1898
    if result.wex is not None:
1899
      raise result.wex
1900
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createTransferLot failed: unknown result");
1901
 
1902
  def getTransferLot(self, transferLotId):
1903
    """
1904
    Parameters:
1905
     - transferLotId
1906
    """
1907
    self.send_getTransferLot(transferLotId)
1908
    return self.recv_getTransferLot()
1909
 
1910
  def send_getTransferLot(self, transferLotId):
1911
    self._oprot.writeMessageBegin('getTransferLot', TMessageType.CALL, self._seqid)
1912
    args = getTransferLot_args()
1913
    args.transferLotId = transferLotId
1914
    args.write(self._oprot)
1915
    self._oprot.writeMessageEnd()
1916
    self._oprot.trans.flush()
1917
 
1918
  def recv_getTransferLot(self, ):
1919
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1920
    if mtype == TMessageType.EXCEPTION:
1921
      x = TApplicationException()
1922
      x.read(self._iprot)
1923
      self._iprot.readMessageEnd()
1924
      raise x
1925
    result = getTransferLot_result()
1926
    result.read(self._iprot)
1927
    self._iprot.readMessageEnd()
1928
    if result.success is not None:
1929
      return result.success
1930
    if result.wex is not None:
1931
      raise result.wex
1932
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLot failed: unknown result");
1933
 
1934
  def markTransferLotAsReceived(self, id, remoteTransferRefNumber):
1935
    """
1936
    Parameters:
1937
     - id
1938
     - remoteTransferRefNumber
1939
    """
1940
    self.send_markTransferLotAsReceived(id, remoteTransferRefNumber)
1941
    self.recv_markTransferLotAsReceived()
1942
 
1943
  def send_markTransferLotAsReceived(self, id, remoteTransferRefNumber):
1944
    self._oprot.writeMessageBegin('markTransferLotAsReceived', TMessageType.CALL, self._seqid)
1945
    args = markTransferLotAsReceived_args()
1946
    args.id = id
1947
    args.remoteTransferRefNumber = remoteTransferRefNumber
1948
    args.write(self._oprot)
1949
    self._oprot.writeMessageEnd()
1950
    self._oprot.trans.flush()
1951
 
1952
  def recv_markTransferLotAsReceived(self, ):
1953
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1954
    if mtype == TMessageType.EXCEPTION:
1955
      x = TApplicationException()
1956
      x.read(self._iprot)
1957
      self._iprot.readMessageEnd()
1958
      raise x
1959
    result = markTransferLotAsReceived_result()
1960
    result.read(self._iprot)
1961
    self._iprot.readMessageEnd()
1962
    if result.wex is not None:
1963
      raise result.wex
1964
    return
1965
 
1966
  def getTransferLotsByDate(self, fromDate, toDate):
1967
    """
1968
    Parameters:
1969
     - fromDate
1970
     - toDate
1971
    """
1972
    self.send_getTransferLotsByDate(fromDate, toDate)
1973
    return self.recv_getTransferLotsByDate()
1974
 
1975
  def send_getTransferLotsByDate(self, fromDate, toDate):
1976
    self._oprot.writeMessageBegin('getTransferLotsByDate', TMessageType.CALL, self._seqid)
1977
    args = getTransferLotsByDate_args()
1978
    args.fromDate = fromDate
1979
    args.toDate = toDate
1980
    args.write(self._oprot)
1981
    self._oprot.writeMessageEnd()
1982
    self._oprot.trans.flush()
1983
 
1984
  def recv_getTransferLotsByDate(self, ):
1985
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1986
    if mtype == TMessageType.EXCEPTION:
1987
      x = TApplicationException()
1988
      x.read(self._iprot)
1989
      self._iprot.readMessageEnd()
1990
      raise x
1991
    result = getTransferLotsByDate_result()
1992
    result.read(self._iprot)
1993
    self._iprot.readMessageEnd()
1994
    if result.success is not None:
1995
      return result.success
1996
    if result.wex is not None:
1997
      raise result.wex
1998
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLotsByDate failed: unknown result");
1999
 
2000
  def getAllowedDestinationWarehousesForTransfer(self, warehouseId):
2001
    """
2002
    Parameters:
2003
     - warehouseId
2004
    """
2005
    self.send_getAllowedDestinationWarehousesForTransfer(warehouseId)
2006
    return self.recv_getAllowedDestinationWarehousesForTransfer()
2007
 
2008
  def send_getAllowedDestinationWarehousesForTransfer(self, warehouseId):
2009
    self._oprot.writeMessageBegin('getAllowedDestinationWarehousesForTransfer', TMessageType.CALL, self._seqid)
2010
    args = getAllowedDestinationWarehousesForTransfer_args()
2011
    args.warehouseId = warehouseId
2012
    args.write(self._oprot)
2013
    self._oprot.writeMessageEnd()
2014
    self._oprot.trans.flush()
2015
 
2016
  def recv_getAllowedDestinationWarehousesForTransfer(self, ):
2017
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2018
    if mtype == TMessageType.EXCEPTION:
2019
      x = TApplicationException()
2020
      x.read(self._iprot)
2021
      self._iprot.readMessageEnd()
2022
      raise x
2023
    result = getAllowedDestinationWarehousesForTransfer_result()
2024
    result.read(self._iprot)
2025
    self._iprot.readMessageEnd()
2026
    if result.success is not None:
2027
      return result.success
2028
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllowedDestinationWarehousesForTransfer failed: unknown result");
2029
 
2030
  def getItemsInTransferLot(self, transferLotId):
2031
    """
2032
    Parameters:
2033
     - transferLotId
2034
    """
2035
    self.send_getItemsInTransferLot(transferLotId)
2036
    return self.recv_getItemsInTransferLot()
2037
 
2038
  def send_getItemsInTransferLot(self, transferLotId):
2039
    self._oprot.writeMessageBegin('getItemsInTransferLot', TMessageType.CALL, self._seqid)
2040
    args = getItemsInTransferLot_args()
2041
    args.transferLotId = transferLotId
2042
    args.write(self._oprot)
2043
    self._oprot.writeMessageEnd()
2044
    self._oprot.trans.flush()
2045
 
2046
  def recv_getItemsInTransferLot(self, ):
2047
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2048
    if mtype == TMessageType.EXCEPTION:
2049
      x = TApplicationException()
2050
      x.read(self._iprot)
2051
      self._iprot.readMessageEnd()
2052
      raise x
2053
    result = getItemsInTransferLot_result()
2054
    result.read(self._iprot)
2055
    self._iprot.readMessageEnd()
2056
    if result.success is not None:
2057
      return result.success
2058
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsInTransferLot failed: unknown result");
2059
 
2060
  def markItemsAsReceivedForTransferLot(self, id):
2061
    """
2062
    Parameters:
2063
     - id
2064
    """
2065
    self.send_markItemsAsReceivedForTransferLot(id)
2066
    self.recv_markItemsAsReceivedForTransferLot()
2067
 
2068
  def send_markItemsAsReceivedForTransferLot(self, id):
2069
    self._oprot.writeMessageBegin('markItemsAsReceivedForTransferLot', TMessageType.CALL, self._seqid)
2070
    args = markItemsAsReceivedForTransferLot_args()
2071
    args.id = id
2072
    args.write(self._oprot)
2073
    self._oprot.writeMessageEnd()
2074
    self._oprot.trans.flush()
2075
 
2076
  def recv_markItemsAsReceivedForTransferLot(self, ):
2077
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2078
    if mtype == TMessageType.EXCEPTION:
2079
      x = TApplicationException()
2080
      x.read(self._iprot)
2081
      self._iprot.readMessageEnd()
2082
      raise x
2083
    result = markItemsAsReceivedForTransferLot_result()
2084
    result.read(self._iprot)
2085
    self._iprot.readMessageEnd()
2086
    if result.wex is not None:
2087
      raise result.wex
2088
    return
2089
 
2090
  def updateTransferLotAfterItemReceive(self, id):
2091
    """
2092
    Parameters:
2093
     - id
2094
    """
2095
    self.send_updateTransferLotAfterItemReceive(id)
2096
    return self.recv_updateTransferLotAfterItemReceive()
2097
 
2098
  def send_updateTransferLotAfterItemReceive(self, id):
2099
    self._oprot.writeMessageBegin('updateTransferLotAfterItemReceive', TMessageType.CALL, self._seqid)
2100
    args = updateTransferLotAfterItemReceive_args()
2101
    args.id = id
2102
    args.write(self._oprot)
2103
    self._oprot.writeMessageEnd()
2104
    self._oprot.trans.flush()
2105
 
2106
  def recv_updateTransferLotAfterItemReceive(self, ):
2107
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2108
    if mtype == TMessageType.EXCEPTION:
2109
      x = TApplicationException()
2110
      x.read(self._iprot)
2111
      self._iprot.readMessageEnd()
2112
      raise x
2113
    result = updateTransferLotAfterItemReceive_result()
2114
    result.read(self._iprot)
2115
    self._iprot.readMessageEnd()
2116
    if result.success is not None:
2117
      return result.success
2118
    if result.wex is not None:
2119
      raise result.wex
2120
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTransferLotAfterItemReceive failed: unknown result");
2121
 
7459 amar.kumar 2122
  def scanForTransferOut(self, inventoryItems, type, transferLotId):
7410 amar.kumar 2123
    """
2124
    Parameters:
2125
     - inventoryItems
2126
     - type
2127
     - transferLotId
2128
    """
7459 amar.kumar 2129
    self.send_scanForTransferOut(inventoryItems, type, transferLotId)
2130
    self.recv_scanForTransferOut()
7410 amar.kumar 2131
 
7459 amar.kumar 2132
  def send_scanForTransferOut(self, inventoryItems, type, transferLotId):
2133
    self._oprot.writeMessageBegin('scanForTransferOut', TMessageType.CALL, self._seqid)
2134
    args = scanForTransferOut_args()
7410 amar.kumar 2135
    args.inventoryItems = inventoryItems
2136
    args.type = type
2137
    args.transferLotId = transferLotId
2138
    args.write(self._oprot)
2139
    self._oprot.writeMessageEnd()
2140
    self._oprot.trans.flush()
2141
 
7459 amar.kumar 2142
  def recv_scanForTransferOut(self, ):
7410 amar.kumar 2143
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2144
    if mtype == TMessageType.EXCEPTION:
2145
      x = TApplicationException()
2146
      x.read(self._iprot)
2147
      self._iprot.readMessageEnd()
2148
      raise x
7459 amar.kumar 2149
    result = scanForTransferOut_result()
7410 amar.kumar 2150
    result.read(self._iprot)
2151
    self._iprot.readMessageEnd()
2152
    if result.wex is not None:
2153
      raise result.wex
2154
    return
2155
 
7459 amar.kumar 2156
  def scanForTransferIn(self, inventoryItems, type, transferLotId):
2157
    """
2158
    Parameters:
2159
     - inventoryItems
2160
     - type
2161
     - transferLotId
2162
    """
2163
    self.send_scanForTransferIn(inventoryItems, type, transferLotId)
2164
    self.recv_scanForTransferIn()
7410 amar.kumar 2165
 
7459 amar.kumar 2166
  def send_scanForTransferIn(self, inventoryItems, type, transferLotId):
2167
    self._oprot.writeMessageBegin('scanForTransferIn', TMessageType.CALL, self._seqid)
2168
    args = scanForTransferIn_args()
2169
    args.inventoryItems = inventoryItems
2170
    args.type = type
2171
    args.transferLotId = transferLotId
2172
    args.write(self._oprot)
2173
    self._oprot.writeMessageEnd()
2174
    self._oprot.trans.flush()
2175
 
2176
  def recv_scanForTransferIn(self, ):
2177
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2178
    if mtype == TMessageType.EXCEPTION:
2179
      x = TApplicationException()
2180
      x.read(self._iprot)
2181
      self._iprot.readMessageEnd()
2182
      raise x
2183
    result = scanForTransferIn_result()
2184
    result.read(self._iprot)
2185
    self._iprot.readMessageEnd()
2186
    if result.wex is not None:
2187
      raise result.wex
2188
    return
2189
 
2190
  def scanForOursThirdPartyReceive(self, inventoryItems, id):
2191
    """
2192
    Parameters:
2193
     - inventoryItems
2194
     - id
2195
    """
2196
    self.send_scanForOursThirdPartyReceive(inventoryItems, id)
2197
    self.recv_scanForOursThirdPartyReceive()
2198
 
2199
  def send_scanForOursThirdPartyReceive(self, inventoryItems, id):
2200
    self._oprot.writeMessageBegin('scanForOursThirdPartyReceive', TMessageType.CALL, self._seqid)
2201
    args = scanForOursThirdPartyReceive_args()
2202
    args.inventoryItems = inventoryItems
2203
    args.id = id
2204
    args.write(self._oprot)
2205
    self._oprot.writeMessageEnd()
2206
    self._oprot.trans.flush()
2207
 
2208
  def recv_scanForOursThirdPartyReceive(self, ):
2209
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2210
    if mtype == TMessageType.EXCEPTION:
2211
      x = TApplicationException()
2212
      x.read(self._iprot)
2213
      self._iprot.readMessageEnd()
2214
      raise x
2215
    result = scanForOursThirdPartyReceive_result()
2216
    result.read(self._iprot)
2217
    self._iprot.readMessageEnd()
2218
    if result.wex is not None:
2219
      raise result.wex
2220
    return
2221
 
7574 amar.kumar 2222
  def getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
2223
    """
2224
    Parameters:
2225
     - itemId
2226
     - physicalWarehouseId
2227
    """
2228
    self.send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(itemId, physicalWarehouseId)
2229
    return self.recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse()
7459 amar.kumar 2230
 
7574 amar.kumar 2231
  def send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
2232
    self._oprot.writeMessageBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse', TMessageType.CALL, self._seqid)
2233
    args = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args()
2234
    args.itemId = itemId
2235
    args.physicalWarehouseId = physicalWarehouseId
2236
    args.write(self._oprot)
2237
    self._oprot.writeMessageEnd()
2238
    self._oprot.trans.flush()
2239
 
2240
  def recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, ):
2241
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2242
    if mtype == TMessageType.EXCEPTION:
2243
      x = TApplicationException()
2244
      x.read(self._iprot)
2245
      self._iprot.readMessageEnd()
2246
      raise x
2247
    result = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result()
2248
    result.read(self._iprot)
2249
    self._iprot.readMessageEnd()
2250
    if result.success is not None:
2251
      return result.success
2252
    if result.wex is not None:
2253
      raise result.wex
2254
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse failed: unknown result");
2255
 
7672 rajveer 2256
  def getInTransitInventory(self, originWarehouseId):
2257
    """
2258
    Parameters:
2259
     - originWarehouseId
2260
    """
2261
    self.send_getInTransitInventory(originWarehouseId)
2262
    return self.recv_getInTransitInventory()
7574 amar.kumar 2263
 
7672 rajveer 2264
  def send_getInTransitInventory(self, originWarehouseId):
2265
    self._oprot.writeMessageBegin('getInTransitInventory', TMessageType.CALL, self._seqid)
2266
    args = getInTransitInventory_args()
2267
    args.originWarehouseId = originWarehouseId
2268
    args.write(self._oprot)
2269
    self._oprot.writeMessageEnd()
2270
    self._oprot.trans.flush()
2271
 
2272
  def recv_getInTransitInventory(self, ):
2273
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2274
    if mtype == TMessageType.EXCEPTION:
2275
      x = TApplicationException()
2276
      x.read(self._iprot)
2277
      self._iprot.readMessageEnd()
2278
      raise x
2279
    result = getInTransitInventory_result()
2280
    result.read(self._iprot)
2281
    self._iprot.readMessageEnd()
2282
    if result.success is not None:
2283
      return result.success
2284
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInTransitInventory failed: unknown result");
2285
 
7968 amar.kumar 2286
  def isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
2287
    """
2288
    Parameters:
2289
     - itemId
2290
     - serialNumber
2291
     - warehouseId
2292
    """
2293
    self.send_isItemAvailableForSale(itemId, serialNumber, warehouseId)
2294
    return self.recv_isItemAvailableForSale()
7672 rajveer 2295
 
7968 amar.kumar 2296
  def send_isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
2297
    self._oprot.writeMessageBegin('isItemAvailableForSale', TMessageType.CALL, self._seqid)
2298
    args = isItemAvailableForSale_args()
2299
    args.itemId = itemId
2300
    args.serialNumber = serialNumber
2301
    args.warehouseId = warehouseId
2302
    args.write(self._oprot)
2303
    self._oprot.writeMessageEnd()
2304
    self._oprot.trans.flush()
2305
 
2306
  def recv_isItemAvailableForSale(self, ):
2307
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2308
    if mtype == TMessageType.EXCEPTION:
2309
      x = TApplicationException()
2310
      x.read(self._iprot)
2311
      self._iprot.readMessageEnd()
2312
      raise x
2313
    result = isItemAvailableForSale_result()
2314
    result.read(self._iprot)
2315
    self._iprot.readMessageEnd()
2316
    if result.success is not None:
2317
      return result.success
2318
    if result.wex is not None:
2319
      raise result.wex
2320
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isItemAvailableForSale failed: unknown result");
2321
 
2322
  def getHistoricBadInventoryByScans(self, date):
2323
    """
2324
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
2325
 
2326
    Parameters:
2327
     - date
2328
    """
2329
    self.send_getHistoricBadInventoryByScans(date)
2330
    return self.recv_getHistoricBadInventoryByScans()
2331
 
2332
  def send_getHistoricBadInventoryByScans(self, date):
2333
    self._oprot.writeMessageBegin('getHistoricBadInventoryByScans', TMessageType.CALL, self._seqid)
2334
    args = getHistoricBadInventoryByScans_args()
2335
    args.date = date
2336
    args.write(self._oprot)
2337
    self._oprot.writeMessageEnd()
2338
    self._oprot.trans.flush()
2339
 
2340
  def recv_getHistoricBadInventoryByScans(self, ):
2341
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2342
    if mtype == TMessageType.EXCEPTION:
2343
      x = TApplicationException()
2344
      x.read(self._iprot)
2345
      self._iprot.readMessageEnd()
2346
      raise x
2347
    result = getHistoricBadInventoryByScans_result()
2348
    result.read(self._iprot)
2349
    self._iprot.readMessageEnd()
2350
    if result.success is not None:
2351
      return result.success
2352
    if result.wex is not None:
2353
      raise result.wex
2354
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricBadInventoryByScans failed: unknown result");
2355
 
8717 amar.kumar 2356
  def scanForBadSale(self, serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
8565 amar.kumar 2357
    """
2358
    Parameters:
8717 amar.kumar 2359
     - serialNumber
2360
     - itemNumber
2361
     - itemId
8565 amar.kumar 2362
     - orderId
8717 amar.kumar 2363
     - fulfilmentWarehouseId
8565 amar.kumar 2364
     - quantity
2365
     - billingWarehouseId
2366
    """
8717 amar.kumar 2367
    self.send_scanForBadSale(serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId)
2368
    return self.recv_scanForBadSale()
7968 amar.kumar 2369
 
8717 amar.kumar 2370
  def send_scanForBadSale(self, serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
8565 amar.kumar 2371
    self._oprot.writeMessageBegin('scanForBadSale', TMessageType.CALL, self._seqid)
2372
    args = scanForBadSale_args()
8717 amar.kumar 2373
    args.serialNumber = serialNumber
2374
    args.itemNumber = itemNumber
2375
    args.itemId = itemId
8565 amar.kumar 2376
    args.orderId = orderId
8717 amar.kumar 2377
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 2378
    args.quantity = quantity
2379
    args.billingWarehouseId = billingWarehouseId
2380
    args.write(self._oprot)
2381
    self._oprot.writeMessageEnd()
2382
    self._oprot.trans.flush()
2383
 
2384
  def recv_scanForBadSale(self, ):
2385
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2386
    if mtype == TMessageType.EXCEPTION:
2387
      x = TApplicationException()
2388
      x.read(self._iprot)
2389
      self._iprot.readMessageEnd()
2390
      raise x
2391
    result = scanForBadSale_result()
2392
    result.read(self._iprot)
2393
    self._iprot.readMessageEnd()
8717 amar.kumar 2394
    if result.success is not None:
2395
      return result.success
2396
    if result.wex is not None:
2397
      raise result.wex
2398
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForBadSale failed: unknown result");
8565 amar.kumar 2399
 
10120 manish.sha 2400
  def getTransferLotItemsForMarkReceive(self, transferLotId, scanType):
2401
    """
2402
    Parameters:
2403
     - transferLotId
2404
     - scanType
2405
    """
2406
    self.send_getTransferLotItemsForMarkReceive(transferLotId, scanType)
2407
    return self.recv_getTransferLotItemsForMarkReceive()
8565 amar.kumar 2408
 
10120 manish.sha 2409
  def send_getTransferLotItemsForMarkReceive(self, transferLotId, scanType):
2410
    self._oprot.writeMessageBegin('getTransferLotItemsForMarkReceive', TMessageType.CALL, self._seqid)
2411
    args = getTransferLotItemsForMarkReceive_args()
2412
    args.transferLotId = transferLotId
2413
    args.scanType = scanType
2414
    args.write(self._oprot)
2415
    self._oprot.writeMessageEnd()
2416
    self._oprot.trans.flush()
2417
 
2418
  def recv_getTransferLotItemsForMarkReceive(self, ):
2419
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2420
    if mtype == TMessageType.EXCEPTION:
2421
      x = TApplicationException()
2422
      x.read(self._iprot)
2423
      self._iprot.readMessageEnd()
2424
      raise x
2425
    result = getTransferLotItemsForMarkReceive_result()
2426
    result.read(self._iprot)
2427
    self._iprot.readMessageEnd()
2428
    if result.success is not None:
2429
      return result.success
2430
    if result.wex is not None:
2431
      raise result.wex
2432
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLotItemsForMarkReceive failed: unknown result");
2433
 
2434
  def markItemsAsReceivedForTransferLotPartial(self, inventoryItems, transferLotId):
2435
    """
2436
    Parameters:
2437
     - inventoryItems
2438
     - transferLotId
2439
    """
2440
    self.send_markItemsAsReceivedForTransferLotPartial(inventoryItems, transferLotId)
2441
    self.recv_markItemsAsReceivedForTransferLotPartial()
2442
 
2443
  def send_markItemsAsReceivedForTransferLotPartial(self, inventoryItems, transferLotId):
2444
    self._oprot.writeMessageBegin('markItemsAsReceivedForTransferLotPartial', TMessageType.CALL, self._seqid)
2445
    args = markItemsAsReceivedForTransferLotPartial_args()
2446
    args.inventoryItems = inventoryItems
2447
    args.transferLotId = transferLotId
2448
    args.write(self._oprot)
2449
    self._oprot.writeMessageEnd()
2450
    self._oprot.trans.flush()
2451
 
2452
  def recv_markItemsAsReceivedForTransferLotPartial(self, ):
2453
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2454
    if mtype == TMessageType.EXCEPTION:
2455
      x = TApplicationException()
2456
      x.read(self._iprot)
2457
      self._iprot.readMessageEnd()
2458
      raise x
2459
    result = markItemsAsReceivedForTransferLotPartial_result()
2460
    result.read(self._iprot)
2461
    self._iprot.readMessageEnd()
2462
    if result.wex is not None:
2463
      raise result.wex
2464
    return
2465
 
2466
  def markTransferLotAsReceivedPartial(self, id, remoteTransferRefNumber):
2467
    """
2468
    Parameters:
2469
     - id
2470
     - remoteTransferRefNumber
2471
    """
2472
    self.send_markTransferLotAsReceivedPartial(id, remoteTransferRefNumber)
2473
    self.recv_markTransferLotAsReceivedPartial()
2474
 
2475
  def send_markTransferLotAsReceivedPartial(self, id, remoteTransferRefNumber):
2476
    self._oprot.writeMessageBegin('markTransferLotAsReceivedPartial', TMessageType.CALL, self._seqid)
2477
    args = markTransferLotAsReceivedPartial_args()
2478
    args.id = id
2479
    args.remoteTransferRefNumber = remoteTransferRefNumber
2480
    args.write(self._oprot)
2481
    self._oprot.writeMessageEnd()
2482
    self._oprot.trans.flush()
2483
 
2484
  def recv_markTransferLotAsReceivedPartial(self, ):
2485
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2486
    if mtype == TMessageType.EXCEPTION:
2487
      x = TApplicationException()
2488
      x.read(self._iprot)
2489
      self._iprot.readMessageEnd()
2490
      raise x
2491
    result = markTransferLotAsReceivedPartial_result()
2492
    result.read(self._iprot)
2493
    self._iprot.readMessageEnd()
2494
    if result.wex is not None:
2495
      raise result.wex
2496
    return
2497
 
10690 manish.sha 2498
  def getInventoryItemScannedInForPO(self, itemId, purchaseIds):
2499
    """
2500
    Parameters:
2501
     - itemId
2502
     - purchaseIds
2503
    """
2504
    self.send_getInventoryItemScannedInForPO(itemId, purchaseIds)
2505
    return self.recv_getInventoryItemScannedInForPO()
10120 manish.sha 2506
 
10690 manish.sha 2507
  def send_getInventoryItemScannedInForPO(self, itemId, purchaseIds):
2508
    self._oprot.writeMessageBegin('getInventoryItemScannedInForPO', TMessageType.CALL, self._seqid)
2509
    args = getInventoryItemScannedInForPO_args()
2510
    args.itemId = itemId
2511
    args.purchaseIds = purchaseIds
2512
    args.write(self._oprot)
2513
    self._oprot.writeMessageEnd()
2514
    self._oprot.trans.flush()
2515
 
2516
  def recv_getInventoryItemScannedInForPO(self, ):
2517
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2518
    if mtype == TMessageType.EXCEPTION:
2519
      x = TApplicationException()
2520
      x.read(self._iprot)
2521
      self._iprot.readMessageEnd()
2522
      raise x
2523
    result = getInventoryItemScannedInForPO_result()
2524
    result.read(self._iprot)
2525
    self._iprot.readMessageEnd()
2526
    if result.success is not None:
2527
      return result.success
2528
    if result.wex is not None:
2529
      raise result.wex
2530
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemScannedInForPO failed: unknown result");
2531
 
2532
  def getAmazonTransferredSkuDetails(self, itemIds):
2533
    """
2534
    Parameters:
2535
     - itemIds
2536
    """
2537
    self.send_getAmazonTransferredSkuDetails(itemIds)
2538
    return self.recv_getAmazonTransferredSkuDetails()
2539
 
2540
  def send_getAmazonTransferredSkuDetails(self, itemIds):
2541
    self._oprot.writeMessageBegin('getAmazonTransferredSkuDetails', TMessageType.CALL, self._seqid)
2542
    args = getAmazonTransferredSkuDetails_args()
2543
    args.itemIds = itemIds
2544
    args.write(self._oprot)
2545
    self._oprot.writeMessageEnd()
2546
    self._oprot.trans.flush()
2547
 
2548
  def recv_getAmazonTransferredSkuDetails(self, ):
2549
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2550
    if mtype == TMessageType.EXCEPTION:
2551
      x = TApplicationException()
2552
      x.read(self._iprot)
2553
      self._iprot.readMessageEnd()
2554
      raise x
2555
    result = getAmazonTransferredSkuDetails_result()
2556
    result.read(self._iprot)
2557
    self._iprot.readMessageEnd()
2558
    if result.success is not None:
2559
      return result.success
2560
    if result.wex is not None:
2561
      raise result.wex
2562
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonTransferredSkuDetails failed: unknown result");
2563
 
2564
  def getScansforPurchase(self, purchaseId, scanType):
2565
    """
2566
    Parameters:
2567
     - purchaseId
2568
     - scanType
2569
    """
2570
    self.send_getScansforPurchase(purchaseId, scanType)
2571
    return self.recv_getScansforPurchase()
2572
 
2573
  def send_getScansforPurchase(self, purchaseId, scanType):
2574
    self._oprot.writeMessageBegin('getScansforPurchase', TMessageType.CALL, self._seqid)
2575
    args = getScansforPurchase_args()
2576
    args.purchaseId = purchaseId
2577
    args.scanType = scanType
2578
    args.write(self._oprot)
2579
    self._oprot.writeMessageEnd()
2580
    self._oprot.trans.flush()
2581
 
2582
  def recv_getScansforPurchase(self, ):
2583
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2584
    if mtype == TMessageType.EXCEPTION:
2585
      x = TApplicationException()
2586
      x.read(self._iprot)
2587
      self._iprot.readMessageEnd()
2588
      raise x
2589
    result = getScansforPurchase_result()
2590
    result.read(self._iprot)
2591
    self._iprot.readMessageEnd()
2592
    if result.success is not None:
2593
      return result.success
2594
    if result.wex is not None:
2595
      raise result.wex
2596
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScansforPurchase failed: unknown result");
2597
 
10864 manish.sha 2598
  def getCurrentBadQuantityForItem(self, itemId, currentWarehouseId, physicalWarehouseId):
2599
    """
2600
    Parameters:
2601
     - itemId
2602
     - currentWarehouseId
2603
     - physicalWarehouseId
2604
    """
2605
    self.send_getCurrentBadQuantityForItem(itemId, currentWarehouseId, physicalWarehouseId)
2606
    return self.recv_getCurrentBadQuantityForItem()
10690 manish.sha 2607
 
10864 manish.sha 2608
  def send_getCurrentBadQuantityForItem(self, itemId, currentWarehouseId, physicalWarehouseId):
2609
    self._oprot.writeMessageBegin('getCurrentBadQuantityForItem', TMessageType.CALL, self._seqid)
2610
    args = getCurrentBadQuantityForItem_args()
2611
    args.itemId = itemId
2612
    args.currentWarehouseId = currentWarehouseId
2613
    args.physicalWarehouseId = physicalWarehouseId
2614
    args.write(self._oprot)
2615
    self._oprot.writeMessageEnd()
2616
    self._oprot.trans.flush()
2617
 
2618
  def recv_getCurrentBadQuantityForItem(self, ):
2619
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2620
    if mtype == TMessageType.EXCEPTION:
2621
      x = TApplicationException()
2622
      x.read(self._iprot)
2623
      self._iprot.readMessageEnd()
2624
      raise x
2625
    result = getCurrentBadQuantityForItem_result()
2626
    result.read(self._iprot)
2627
    self._iprot.readMessageEnd()
2628
    if result.success is not None:
2629
      return result.success
2630
    if result.wex is not None:
2631
      raise result.wex
2632
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentBadQuantityForItem failed: unknown result");
2633
 
2634
  def scanForBadPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
2635
    """
2636
    Parameters:
2637
     - saleReturnItems
2638
     - vendorId
2639
     - billingWarehouseId
2640
    """
2641
    self.send_scanForBadPurchaseReturn(saleReturnItems, vendorId, billingWarehouseId)
2642
    return self.recv_scanForBadPurchaseReturn()
2643
 
2644
  def send_scanForBadPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
2645
    self._oprot.writeMessageBegin('scanForBadPurchaseReturn', TMessageType.CALL, self._seqid)
2646
    args = scanForBadPurchaseReturn_args()
2647
    args.saleReturnItems = saleReturnItems
2648
    args.vendorId = vendorId
2649
    args.billingWarehouseId = billingWarehouseId
2650
    args.write(self._oprot)
2651
    self._oprot.writeMessageEnd()
2652
    self._oprot.trans.flush()
2653
 
2654
  def recv_scanForBadPurchaseReturn(self, ):
2655
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2656
    if mtype == TMessageType.EXCEPTION:
2657
      x = TApplicationException()
2658
      x.read(self._iprot)
2659
      self._iprot.readMessageEnd()
2660
      raise x
2661
    result = scanForBadPurchaseReturn_result()
2662
    result.read(self._iprot)
2663
    self._iprot.readMessageEnd()
2664
    if result.success is not None:
2665
      return result.success
2666
    if result.ex is not None:
2667
      raise result.ex
2668
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForBadPurchaseReturn failed: unknown result");
2669
 
13504 manish.sha 2670
  def getItemsInPurchaseReturn(self, purchaseReturnId, type, returnTime):
10864 manish.sha 2671
    """
2672
    Parameters:
2673
     - purchaseReturnId
11751 manish.sha 2674
     - type
13504 manish.sha 2675
     - returnTime
10864 manish.sha 2676
    """
13504 manish.sha 2677
    self.send_getItemsInPurchaseReturn(purchaseReturnId, type, returnTime)
10864 manish.sha 2678
    return self.recv_getItemsInPurchaseReturn()
2679
 
13504 manish.sha 2680
  def send_getItemsInPurchaseReturn(self, purchaseReturnId, type, returnTime):
10864 manish.sha 2681
    self._oprot.writeMessageBegin('getItemsInPurchaseReturn', TMessageType.CALL, self._seqid)
2682
    args = getItemsInPurchaseReturn_args()
2683
    args.purchaseReturnId = purchaseReturnId
11751 manish.sha 2684
    args.type = type
13504 manish.sha 2685
    args.returnTime = returnTime
10864 manish.sha 2686
    args.write(self._oprot)
2687
    self._oprot.writeMessageEnd()
2688
    self._oprot.trans.flush()
2689
 
2690
  def recv_getItemsInPurchaseReturn(self, ):
2691
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2692
    if mtype == TMessageType.EXCEPTION:
2693
      x = TApplicationException()
2694
      x.read(self._iprot)
2695
      self._iprot.readMessageEnd()
2696
      raise x
2697
    result = getItemsInPurchaseReturn_result()
2698
    result.read(self._iprot)
2699
    self._iprot.readMessageEnd()
2700
    if result.success is not None:
2701
      return result.success
2702
    if result.ex is not None:
2703
      raise result.ex
2704
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsInPurchaseReturn failed: unknown result");
2705
 
10886 manish.sha 2706
  def getScansForInventoryItem(self, inventoryItemId, type):
2707
    """
2708
    Parameters:
2709
     - inventoryItemId
2710
     - type
2711
    """
2712
    self.send_getScansForInventoryItem(inventoryItemId, type)
2713
    return self.recv_getScansForInventoryItem()
10864 manish.sha 2714
 
10886 manish.sha 2715
  def send_getScansForInventoryItem(self, inventoryItemId, type):
2716
    self._oprot.writeMessageBegin('getScansForInventoryItem', TMessageType.CALL, self._seqid)
2717
    args = getScansForInventoryItem_args()
2718
    args.inventoryItemId = inventoryItemId
2719
    args.type = type
2720
    args.write(self._oprot)
2721
    self._oprot.writeMessageEnd()
2722
    self._oprot.trans.flush()
2723
 
2724
  def recv_getScansForInventoryItem(self, ):
2725
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2726
    if mtype == TMessageType.EXCEPTION:
2727
      x = TApplicationException()
2728
      x.read(self._iprot)
2729
      self._iprot.readMessageEnd()
2730
      raise x
2731
    result = getScansForInventoryItem_result()
2732
    result.read(self._iprot)
2733
    self._iprot.readMessageEnd()
2734
    if result.success is not None:
2735
      return result.success
2736
    if result.ex is not None:
2737
      raise result.ex
2738
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScansForInventoryItem failed: unknown result");
2739
 
12531 manish.sha 2740
  def checkGrnImeiStatus(self, imeiNos):
2741
    """
2742
    Parameters:
2743
     - imeiNos
2744
    """
2745
    self.send_checkGrnImeiStatus(imeiNos)
2746
    return self.recv_checkGrnImeiStatus()
10886 manish.sha 2747
 
12531 manish.sha 2748
  def send_checkGrnImeiStatus(self, imeiNos):
2749
    self._oprot.writeMessageBegin('checkGrnImeiStatus', TMessageType.CALL, self._seqid)
2750
    args = checkGrnImeiStatus_args()
2751
    args.imeiNos = imeiNos
2752
    args.write(self._oprot)
2753
    self._oprot.writeMessageEnd()
2754
    self._oprot.trans.flush()
2755
 
2756
  def recv_checkGrnImeiStatus(self, ):
2757
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2758
    if mtype == TMessageType.EXCEPTION:
2759
      x = TApplicationException()
2760
      x.read(self._iprot)
2761
      self._iprot.readMessageEnd()
2762
      raise x
2763
    result = checkGrnImeiStatus_result()
2764
    result.read(self._iprot)
2765
    self._iprot.readMessageEnd()
2766
    if result.success is not None:
2767
      return result.success
2768
    if result.ex is not None:
2769
      raise result.ex
2770
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkGrnImeiStatus failed: unknown result");
2771
 
12800 manish.sha 2772
  def getInventoryAgeConsideredItems(self, itemId):
2773
    """
2774
    Parameters:
2775
     - itemId
2776
    """
2777
    self.send_getInventoryAgeConsideredItems(itemId)
2778
    return self.recv_getInventoryAgeConsideredItems()
12531 manish.sha 2779
 
12800 manish.sha 2780
  def send_getInventoryAgeConsideredItems(self, itemId):
2781
    self._oprot.writeMessageBegin('getInventoryAgeConsideredItems', TMessageType.CALL, self._seqid)
2782
    args = getInventoryAgeConsideredItems_args()
2783
    args.itemId = itemId
2784
    args.write(self._oprot)
2785
    self._oprot.writeMessageEnd()
2786
    self._oprot.trans.flush()
2787
 
2788
  def recv_getInventoryAgeConsideredItems(self, ):
2789
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2790
    if mtype == TMessageType.EXCEPTION:
2791
      x = TApplicationException()
2792
      x.read(self._iprot)
2793
      self._iprot.readMessageEnd()
2794
      raise x
2795
    result = getInventoryAgeConsideredItems_result()
2796
    result.read(self._iprot)
2797
    self._iprot.readMessageEnd()
2798
    if result.success is not None:
2799
      return result.success
2800
    if result.ex is not None:
2801
      raise result.ex
2802
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryAgeConsideredItems failed: unknown result");
2803
 
2804
 
3376 rajveer 2805
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2821 chandransh 2806
  def __init__(self, handler):
3376 rajveer 2807
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
4501 mandeep.dh 2808
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
5361 mandeep.dh 2809
    self._processMap["getNonSeralizedInventoryItem"] = Processor.process_getNonSeralizedInventoryItem
4501 mandeep.dh 2810
    self._processMap["scan"] = Processor.process_scan
10489 amar.kumar 2811
    self._processMap["genericScan"] = Processor.process_genericScan
4501 mandeep.dh 2812
    self._processMap["scanSerializedItemForOrder"] = Processor.process_scanSerializedItemForOrder
2813
    self._processMap["scanForOrder"] = Processor.process_scanForOrder
2814
    self._processMap["createItemNumberMapping"] = Processor.process_createItemNumberMapping
4620 amit.gupta 2815
    self._processMap["getItemNumbers"] = Processor.process_getItemNumbers
5110 mandeep.dh 2816
    self._processMap["getItemIds"] = Processor.process_getItemIds
5185 mandeep.dh 2817
    self._processMap["getInventoryItemsFromLastScanType"] = Processor.process_getInventoryItemsFromLastScanType
2818
    self._processMap["getInventoryItemFromId"] = Processor.process_getInventoryItemFromId
5372 mandeep.dh 2819
    self._processMap["getPurchaseScans"] = Processor.process_getPurchaseScans
7216 amar.kumar 2820
    self._processMap["getPurchaseScansByGrnDate"] = Processor.process_getPurchaseScansByGrnDate
10407 amar.kumar 2821
    self._processMap["getEmptyGrnsByDate"] = Processor.process_getEmptyGrnsByDate
5496 mandeep.dh 2822
    self._processMap["fetchScansPerInvoiceNumber"] = Processor.process_fetchScansPerInvoiceNumber
5620 mandeep.dh 2823
    self._processMap["getInventoryItemFromOrder"] = Processor.process_getInventoryItemFromOrder
5711 mandeep.dh 2824
    self._processMap["getInventoryAge"] = Processor.process_getInventoryAge
6361 rajveer 2825
    self._processMap["getInventoryScansForItem"] = Processor.process_getInventoryScansForItem
2826
    self._processMap["getScanRecordsForSerialNumber"] = Processor.process_getScanRecordsForSerialNumber
6467 amar.kumar 2827
    self._processMap["scanForPurchaseReturn"] = Processor.process_scanForPurchaseReturn
6630 amar.kumar 2828
    self._processMap["scanForLostItem"] = Processor.process_scanForLostItem
2829
    self._processMap["getCurrentSerializedInventoryByScans"] = Processor.process_getCurrentSerializedInventoryByScans
2830
    self._processMap["getCurrentNonSerializedInventoryByScans"] = Processor.process_getCurrentNonSerializedInventoryByScans
6762 amar.kumar 2831
    self._processMap["getHistoricSerializedInventoryByScans"] = Processor.process_getHistoricSerializedInventoryByScans
2832
    self._processMap["getHistoricNonSerializedInventoryByScans"] = Processor.process_getHistoricNonSerializedInventoryByScans
10407 amar.kumar 2833
    self._processMap["getOurHistoricSerializedInventoryByScans"] = Processor.process_getOurHistoricSerializedInventoryByScans
2834
    self._processMap["getOurHistoricNonSerializedInventoryByScans"] = Processor.process_getOurHistoricNonSerializedInventoryByScans
6762 amar.kumar 2835
    self._processMap["scanForOursExternalSale"] = Processor.process_scanForOursExternalSale
2836
    self._processMap["scanForOursExternalSaleReturn"] = Processor.process_scanForOursExternalSaleReturn
6880 amar.kumar 2837
    self._processMap["getMovementNonSerializedInventoryByScans"] = Processor.process_getMovementNonSerializedInventoryByScans
2838
    self._processMap["getMovementSerializedInventoryByScans"] = Processor.process_getMovementSerializedInventoryByScans
7216 amar.kumar 2839
    self._processMap["getCompleteMovementSerializedInventoryByScans"] = Processor.process_getCompleteMovementSerializedInventoryByScans
2840
    self._processMap["getCompleteMovementNonSerializedInventoryByScans"] = Processor.process_getCompleteMovementNonSerializedInventoryByScans
7190 amar.kumar 2841
    self._processMap["scanfreebie"] = Processor.process_scanfreebie
7199 amar.kumar 2842
    self._processMap["reshipfreebie"] = Processor.process_reshipfreebie
7410 amar.kumar 2843
    self._processMap["isItemTransferAllowed"] = Processor.process_isItemTransferAllowed
2844
    self._processMap["createTransferLot"] = Processor.process_createTransferLot
2845
    self._processMap["getTransferLot"] = Processor.process_getTransferLot
2846
    self._processMap["markTransferLotAsReceived"] = Processor.process_markTransferLotAsReceived
2847
    self._processMap["getTransferLotsByDate"] = Processor.process_getTransferLotsByDate
2848
    self._processMap["getAllowedDestinationWarehousesForTransfer"] = Processor.process_getAllowedDestinationWarehousesForTransfer
2849
    self._processMap["getItemsInTransferLot"] = Processor.process_getItemsInTransferLot
2850
    self._processMap["markItemsAsReceivedForTransferLot"] = Processor.process_markItemsAsReceivedForTransferLot
2851
    self._processMap["updateTransferLotAfterItemReceive"] = Processor.process_updateTransferLotAfterItemReceive
7459 amar.kumar 2852
    self._processMap["scanForTransferOut"] = Processor.process_scanForTransferOut
2853
    self._processMap["scanForTransferIn"] = Processor.process_scanForTransferIn
2854
    self._processMap["scanForOursThirdPartyReceive"] = Processor.process_scanForOursThirdPartyReceive
7574 amar.kumar 2855
    self._processMap["getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse"] = Processor.process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse
7672 rajveer 2856
    self._processMap["getInTransitInventory"] = Processor.process_getInTransitInventory
7968 amar.kumar 2857
    self._processMap["isItemAvailableForSale"] = Processor.process_isItemAvailableForSale
2858
    self._processMap["getHistoricBadInventoryByScans"] = Processor.process_getHistoricBadInventoryByScans
8565 amar.kumar 2859
    self._processMap["scanForBadSale"] = Processor.process_scanForBadSale
10120 manish.sha 2860
    self._processMap["getTransferLotItemsForMarkReceive"] = Processor.process_getTransferLotItemsForMarkReceive
2861
    self._processMap["markItemsAsReceivedForTransferLotPartial"] = Processor.process_markItemsAsReceivedForTransferLotPartial
2862
    self._processMap["markTransferLotAsReceivedPartial"] = Processor.process_markTransferLotAsReceivedPartial
10690 manish.sha 2863
    self._processMap["getInventoryItemScannedInForPO"] = Processor.process_getInventoryItemScannedInForPO
2864
    self._processMap["getAmazonTransferredSkuDetails"] = Processor.process_getAmazonTransferredSkuDetails
2865
    self._processMap["getScansforPurchase"] = Processor.process_getScansforPurchase
10864 manish.sha 2866
    self._processMap["getCurrentBadQuantityForItem"] = Processor.process_getCurrentBadQuantityForItem
2867
    self._processMap["scanForBadPurchaseReturn"] = Processor.process_scanForBadPurchaseReturn
2868
    self._processMap["getItemsInPurchaseReturn"] = Processor.process_getItemsInPurchaseReturn
10886 manish.sha 2869
    self._processMap["getScansForInventoryItem"] = Processor.process_getScansForInventoryItem
12531 manish.sha 2870
    self._processMap["checkGrnImeiStatus"] = Processor.process_checkGrnImeiStatus
12800 manish.sha 2871
    self._processMap["getInventoryAgeConsideredItems"] = Processor.process_getInventoryAgeConsideredItems
2821 chandransh 2872
 
2873
  def process(self, iprot, oprot):
2874
    (name, type, seqid) = iprot.readMessageBegin()
2875
    if name not in self._processMap:
2876
      iprot.skip(TType.STRUCT)
2877
      iprot.readMessageEnd()
2878
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2879
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2880
      x.write(oprot)
2881
      oprot.writeMessageEnd()
2882
      oprot.trans.flush()
2883
      return
2884
    else:
2885
      self._processMap[name](self, seqid, iprot, oprot)
2886
    return True
2887
 
4501 mandeep.dh 2888
  def process_getInventoryItem(self, seqid, iprot, oprot):
2889
    args = getInventoryItem_args()
2832 chandransh 2890
    args.read(iprot)
2891
    iprot.readMessageEnd()
4501 mandeep.dh 2892
    result = getInventoryItem_result()
4541 mandeep.dh 2893
    try:
2894
      result.success = self._handler.getInventoryItem(args.serialNumber)
2895
    except WarehouseServiceException, wex:
2896
      result.wex = wex
4501 mandeep.dh 2897
    oprot.writeMessageBegin("getInventoryItem", TMessageType.REPLY, seqid)
2832 chandransh 2898
    result.write(oprot)
2899
    oprot.writeMessageEnd()
2900
    oprot.trans.flush()
2901
 
5361 mandeep.dh 2902
  def process_getNonSeralizedInventoryItem(self, seqid, iprot, oprot):
2903
    args = getNonSeralizedInventoryItem_args()
2821 chandransh 2904
    args.read(iprot)
2905
    iprot.readMessageEnd()
5361 mandeep.dh 2906
    result = getNonSeralizedInventoryItem_result()
2907
    try:
8565 amar.kumar 2908
      result.success = self._handler.getNonSeralizedInventoryItem(args.itemNumber, args.itemId, args.fulfilmentWarehouseId, args.billingWarehouseId)
5361 mandeep.dh 2909
    except WarehouseServiceException, wex:
2910
      result.wex = wex
2911
    oprot.writeMessageBegin("getNonSeralizedInventoryItem", TMessageType.REPLY, seqid)
2821 chandransh 2912
    result.write(oprot)
2913
    oprot.writeMessageEnd()
2914
    oprot.trans.flush()
2915
 
4501 mandeep.dh 2916
  def process_scan(self, seqid, iprot, oprot):
2917
    args = scan_args()
3383 chandransh 2918
    args.read(iprot)
2919
    iprot.readMessageEnd()
4501 mandeep.dh 2920
    result = scan_result()
3383 chandransh 2921
    try:
7410 amar.kumar 2922
      self._handler.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId, args.transferLotId)
3383 chandransh 2923
    except WarehouseServiceException, wex:
2924
      result.wex = wex
4501 mandeep.dh 2925
    oprot.writeMessageBegin("scan", TMessageType.REPLY, seqid)
3383 chandransh 2926
    result.write(oprot)
2927
    oprot.writeMessageEnd()
2928
    oprot.trans.flush()
2929
 
10489 amar.kumar 2930
  def process_genericScan(self, seqid, iprot, oprot):
2931
    args = genericScan_args()
2932
    args.read(iprot)
2933
    iprot.readMessageEnd()
2934
    result = genericScan_result()
2935
    try:
2936
      self._handler.genericScan(args.inventoryItem, args.scan)
2937
    except WarehouseServiceException, wex:
2938
      result.wex = wex
2939
    oprot.writeMessageBegin("genericScan", TMessageType.REPLY, seqid)
2940
    result.write(oprot)
2941
    oprot.writeMessageEnd()
2942
    oprot.trans.flush()
2943
 
4501 mandeep.dh 2944
  def process_scanSerializedItemForOrder(self, seqid, iprot, oprot):
2945
    args = scanSerializedItemForOrder_args()
2821 chandransh 2946
    args.read(iprot)
2947
    iprot.readMessageEnd()
4501 mandeep.dh 2948
    result = scanSerializedItemForOrder_result()
2821 chandransh 2949
    try:
5110 mandeep.dh 2950
      result.success = self._handler.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId)
2821 chandransh 2951
    except WarehouseServiceException, wex:
2952
      result.wex = wex
4501 mandeep.dh 2953
    oprot.writeMessageBegin("scanSerializedItemForOrder", TMessageType.REPLY, seqid)
2821 chandransh 2954
    result.write(oprot)
2955
    oprot.writeMessageEnd()
2956
    oprot.trans.flush()
2957
 
4501 mandeep.dh 2958
  def process_scanForOrder(self, seqid, iprot, oprot):
2959
    args = scanForOrder_args()
2821 chandransh 2960
    args.read(iprot)
2961
    iprot.readMessageEnd()
4501 mandeep.dh 2962
    result = scanForOrder_result()
2821 chandransh 2963
    try:
5361 mandeep.dh 2964
      result.success = self._handler.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId)
2821 chandransh 2965
    except WarehouseServiceException, wex:
2966
      result.wex = wex
4501 mandeep.dh 2967
    oprot.writeMessageBegin("scanForOrder", TMessageType.REPLY, seqid)
2821 chandransh 2968
    result.write(oprot)
2969
    oprot.writeMessageEnd()
2970
    oprot.trans.flush()
2971
 
4501 mandeep.dh 2972
  def process_createItemNumberMapping(self, seqid, iprot, oprot):
2973
    args = createItemNumberMapping_args()
2974
    args.read(iprot)
2975
    iprot.readMessageEnd()
2976
    result = createItemNumberMapping_result()
2977
    self._handler.createItemNumberMapping(args.itemNumber, args.itemId)
2978
    oprot.writeMessageBegin("createItemNumberMapping", TMessageType.REPLY, seqid)
2979
    result.write(oprot)
2980
    oprot.writeMessageEnd()
2981
    oprot.trans.flush()
2821 chandransh 2982
 
4620 amit.gupta 2983
  def process_getItemNumbers(self, seqid, iprot, oprot):
2984
    args = getItemNumbers_args()
2985
    args.read(iprot)
2986
    iprot.readMessageEnd()
2987
    result = getItemNumbers_result()
2988
    result.success = self._handler.getItemNumbers(args.itemId)
2989
    oprot.writeMessageBegin("getItemNumbers", TMessageType.REPLY, seqid)
2990
    result.write(oprot)
2991
    oprot.writeMessageEnd()
2992
    oprot.trans.flush()
4501 mandeep.dh 2993
 
5110 mandeep.dh 2994
  def process_getItemIds(self, seqid, iprot, oprot):
2995
    args = getItemIds_args()
2996
    args.read(iprot)
2997
    iprot.readMessageEnd()
2998
    result = getItemIds_result()
2999
    result.success = self._handler.getItemIds(args.itemNumber)
3000
    oprot.writeMessageBegin("getItemIds", TMessageType.REPLY, seqid)
3001
    result.write(oprot)
3002
    oprot.writeMessageEnd()
3003
    oprot.trans.flush()
4620 amit.gupta 3004
 
5185 mandeep.dh 3005
  def process_getInventoryItemsFromLastScanType(self, seqid, iprot, oprot):
3006
    args = getInventoryItemsFromLastScanType_args()
3007
    args.read(iprot)
3008
    iprot.readMessageEnd()
3009
    result = getInventoryItemsFromLastScanType_result()
3010
    try:
3011
      result.success = self._handler.getInventoryItemsFromLastScanType(args.lastScanType)
3012
    except WarehouseServiceException, wex:
3013
      result.wex = wex
3014
    oprot.writeMessageBegin("getInventoryItemsFromLastScanType", TMessageType.REPLY, seqid)
3015
    result.write(oprot)
3016
    oprot.writeMessageEnd()
3017
    oprot.trans.flush()
5110 mandeep.dh 3018
 
5185 mandeep.dh 3019
  def process_getInventoryItemFromId(self, seqid, iprot, oprot):
3020
    args = getInventoryItemFromId_args()
3021
    args.read(iprot)
3022
    iprot.readMessageEnd()
3023
    result = getInventoryItemFromId_result()
3024
    try:
3025
      result.success = self._handler.getInventoryItemFromId(args.inventoryItemId)
3026
    except WarehouseServiceException, wex:
3027
      result.wex = wex
3028
    oprot.writeMessageBegin("getInventoryItemFromId", TMessageType.REPLY, seqid)
3029
    result.write(oprot)
3030
    oprot.writeMessageEnd()
3031
    oprot.trans.flush()
3032
 
5372 mandeep.dh 3033
  def process_getPurchaseScans(self, seqid, iprot, oprot):
3034
    args = getPurchaseScans_args()
3035
    args.read(iprot)
3036
    iprot.readMessageEnd()
3037
    result = getPurchaseScans_result()
3038
    result.success = self._handler.getPurchaseScans(args.startDate, args.endDate)
3039
    oprot.writeMessageBegin("getPurchaseScans", TMessageType.REPLY, seqid)
3040
    result.write(oprot)
3041
    oprot.writeMessageEnd()
3042
    oprot.trans.flush()
5185 mandeep.dh 3043
 
7216 amar.kumar 3044
  def process_getPurchaseScansByGrnDate(self, seqid, iprot, oprot):
3045
    args = getPurchaseScansByGrnDate_args()
3046
    args.read(iprot)
3047
    iprot.readMessageEnd()
3048
    result = getPurchaseScansByGrnDate_result()
3049
    result.success = self._handler.getPurchaseScansByGrnDate(args.startDate, args.endDate)
3050
    oprot.writeMessageBegin("getPurchaseScansByGrnDate", TMessageType.REPLY, seqid)
3051
    result.write(oprot)
3052
    oprot.writeMessageEnd()
3053
    oprot.trans.flush()
3054
 
10407 amar.kumar 3055
  def process_getEmptyGrnsByDate(self, seqid, iprot, oprot):
3056
    args = getEmptyGrnsByDate_args()
3057
    args.read(iprot)
3058
    iprot.readMessageEnd()
3059
    result = getEmptyGrnsByDate_result()
3060
    result.success = self._handler.getEmptyGrnsByDate(args.startDate, args.endDate)
3061
    oprot.writeMessageBegin("getEmptyGrnsByDate", TMessageType.REPLY, seqid)
3062
    result.write(oprot)
3063
    oprot.writeMessageEnd()
3064
    oprot.trans.flush()
3065
 
5496 mandeep.dh 3066
  def process_fetchScansPerInvoiceNumber(self, seqid, iprot, oprot):
3067
    args = fetchScansPerInvoiceNumber_args()
3068
    args.read(iprot)
3069
    iprot.readMessageEnd()
3070
    result = fetchScansPerInvoiceNumber_result()
3071
    result.success = self._handler.fetchScansPerInvoiceNumber(args.date)
3072
    oprot.writeMessageBegin("fetchScansPerInvoiceNumber", TMessageType.REPLY, seqid)
3073
    result.write(oprot)
3074
    oprot.writeMessageEnd()
3075
    oprot.trans.flush()
5372 mandeep.dh 3076
 
5620 mandeep.dh 3077
  def process_getInventoryItemFromOrder(self, seqid, iprot, oprot):
3078
    args = getInventoryItemFromOrder_args()
3079
    args.read(iprot)
3080
    iprot.readMessageEnd()
3081
    result = getInventoryItemFromOrder_result()
3082
    try:
3083
      result.success = self._handler.getInventoryItemFromOrder(args.orderId)
3084
    except WarehouseServiceException, we:
3085
      result.we = we
3086
    oprot.writeMessageBegin("getInventoryItemFromOrder", TMessageType.REPLY, seqid)
3087
    result.write(oprot)
3088
    oprot.writeMessageEnd()
3089
    oprot.trans.flush()
5496 mandeep.dh 3090
 
5711 mandeep.dh 3091
  def process_getInventoryAge(self, seqid, iprot, oprot):
3092
    args = getInventoryAge_args()
3093
    args.read(iprot)
3094
    iprot.readMessageEnd()
3095
    result = getInventoryAge_result()
3096
    result.success = self._handler.getInventoryAge()
3097
    oprot.writeMessageBegin("getInventoryAge", TMessageType.REPLY, seqid)
3098
    result.write(oprot)
3099
    oprot.writeMessageEnd()
3100
    oprot.trans.flush()
5620 mandeep.dh 3101
 
6361 rajveer 3102
  def process_getInventoryScansForItem(self, seqid, iprot, oprot):
3103
    args = getInventoryScansForItem_args()
3104
    args.read(iprot)
3105
    iprot.readMessageEnd()
3106
    result = getInventoryScansForItem_result()
3107
    result.success = self._handler.getInventoryScansForItem(args.itemId, args.fromDate, args.toDate)
3108
    oprot.writeMessageBegin("getInventoryScansForItem", TMessageType.REPLY, seqid)
3109
    result.write(oprot)
3110
    oprot.writeMessageEnd()
3111
    oprot.trans.flush()
5711 mandeep.dh 3112
 
6361 rajveer 3113
  def process_getScanRecordsForSerialNumber(self, seqid, iprot, oprot):
3114
    args = getScanRecordsForSerialNumber_args()
3115
    args.read(iprot)
3116
    iprot.readMessageEnd()
3117
    result = getScanRecordsForSerialNumber_result()
3118
    result.success = self._handler.getScanRecordsForSerialNumber(args.serialNumber)
3119
    oprot.writeMessageBegin("getScanRecordsForSerialNumber", TMessageType.REPLY, seqid)
3120
    result.write(oprot)
3121
    oprot.writeMessageEnd()
3122
    oprot.trans.flush()
3123
 
6467 amar.kumar 3124
  def process_scanForPurchaseReturn(self, seqid, iprot, oprot):
3125
    args = scanForPurchaseReturn_args()
3126
    args.read(iprot)
3127
    iprot.readMessageEnd()
3128
    result = scanForPurchaseReturn_result()
3129
    try:
10864 manish.sha 3130
      result.success = self._handler.scanForPurchaseReturn(args.saleReturnItems, args.vendorId, args.billingWarehouseId)
6467 amar.kumar 3131
    except WarehouseServiceException, ex:
3132
      result.ex = ex
3133
    oprot.writeMessageBegin("scanForPurchaseReturn", TMessageType.REPLY, seqid)
3134
    result.write(oprot)
3135
    oprot.writeMessageEnd()
3136
    oprot.trans.flush()
6361 rajveer 3137
 
6630 amar.kumar 3138
  def process_scanForLostItem(self, seqid, iprot, oprot):
3139
    args = scanForLostItem_args()
3140
    args.read(iprot)
3141
    iprot.readMessageEnd()
3142
    result = scanForLostItem_result()
3143
    try:
7718 amar.kumar 3144
      self._handler.scanForLostItem(args.lostItems, args.vendorId, args.billingWarehouseId)
6630 amar.kumar 3145
    except WarehouseServiceException, ex:
3146
      result.ex = ex
3147
    oprot.writeMessageBegin("scanForLostItem", TMessageType.REPLY, seqid)
3148
    result.write(oprot)
3149
    oprot.writeMessageEnd()
3150
    oprot.trans.flush()
6467 amar.kumar 3151
 
6630 amar.kumar 3152
  def process_getCurrentSerializedInventoryByScans(self, seqid, iprot, oprot):
3153
    args = getCurrentSerializedInventoryByScans_args()
3154
    args.read(iprot)
3155
    iprot.readMessageEnd()
3156
    result = getCurrentSerializedInventoryByScans_result()
7715 vikram.rag 3157
    result.success = self._handler.getCurrentSerializedInventoryByScans(args.physicalWarehouseId)
6630 amar.kumar 3158
    oprot.writeMessageBegin("getCurrentSerializedInventoryByScans", TMessageType.REPLY, seqid)
3159
    result.write(oprot)
3160
    oprot.writeMessageEnd()
3161
    oprot.trans.flush()
3162
 
3163
  def process_getCurrentNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3164
    args = getCurrentNonSerializedInventoryByScans_args()
3165
    args.read(iprot)
3166
    iprot.readMessageEnd()
3167
    result = getCurrentNonSerializedInventoryByScans_result()
7715 vikram.rag 3168
    result.success = self._handler.getCurrentNonSerializedInventoryByScans(args.physicalWarehouseId)
6630 amar.kumar 3169
    oprot.writeMessageBegin("getCurrentNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3170
    result.write(oprot)
3171
    oprot.writeMessageEnd()
3172
    oprot.trans.flush()
3173
 
6762 amar.kumar 3174
  def process_getHistoricSerializedInventoryByScans(self, seqid, iprot, oprot):
3175
    args = getHistoricSerializedInventoryByScans_args()
3176
    args.read(iprot)
3177
    iprot.readMessageEnd()
3178
    result = getHistoricSerializedInventoryByScans_result()
3179
    result.success = self._handler.getHistoricSerializedInventoryByScans(args.date)
3180
    oprot.writeMessageBegin("getHistoricSerializedInventoryByScans", TMessageType.REPLY, seqid)
3181
    result.write(oprot)
3182
    oprot.writeMessageEnd()
3183
    oprot.trans.flush()
6630 amar.kumar 3184
 
6762 amar.kumar 3185
  def process_getHistoricNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3186
    args = getHistoricNonSerializedInventoryByScans_args()
3187
    args.read(iprot)
3188
    iprot.readMessageEnd()
3189
    result = getHistoricNonSerializedInventoryByScans_result()
3190
    result.success = self._handler.getHistoricNonSerializedInventoryByScans(args.date)
3191
    oprot.writeMessageBegin("getHistoricNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3192
    result.write(oprot)
3193
    oprot.writeMessageEnd()
3194
    oprot.trans.flush()
3195
 
10407 amar.kumar 3196
  def process_getOurHistoricSerializedInventoryByScans(self, seqid, iprot, oprot):
3197
    args = getOurHistoricSerializedInventoryByScans_args()
3198
    args.read(iprot)
3199
    iprot.readMessageEnd()
3200
    result = getOurHistoricSerializedInventoryByScans_result()
3201
    result.success = self._handler.getOurHistoricSerializedInventoryByScans(args.date)
3202
    oprot.writeMessageBegin("getOurHistoricSerializedInventoryByScans", TMessageType.REPLY, seqid)
3203
    result.write(oprot)
3204
    oprot.writeMessageEnd()
3205
    oprot.trans.flush()
3206
 
3207
  def process_getOurHistoricNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3208
    args = getOurHistoricNonSerializedInventoryByScans_args()
3209
    args.read(iprot)
3210
    iprot.readMessageEnd()
3211
    result = getOurHistoricNonSerializedInventoryByScans_result()
3212
    result.success = self._handler.getOurHistoricNonSerializedInventoryByScans(args.date)
3213
    oprot.writeMessageBegin("getOurHistoricNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3214
    result.write(oprot)
3215
    oprot.writeMessageEnd()
3216
    oprot.trans.flush()
3217
 
6762 amar.kumar 3218
  def process_scanForOursExternalSale(self, seqid, iprot, oprot):
3219
    args = scanForOursExternalSale_args()
3220
    args.read(iprot)
3221
    iprot.readMessageEnd()
3222
    result = scanForOursExternalSale_result()
3223
    try:
7672 rajveer 3224
      result.success = self._handler.scanForOursExternalSale(args.itemId, args.serialNumber, args.itemNumber, args.invoiceNumber, args.warehouseId, args.unitPrice, args.nlc, args.orderId)
6762 amar.kumar 3225
    except WarehouseServiceException, ex:
3226
      result.ex = ex
3227
    oprot.writeMessageBegin("scanForOursExternalSale", TMessageType.REPLY, seqid)
3228
    result.write(oprot)
3229
    oprot.writeMessageEnd()
3230
    oprot.trans.flush()
3231
 
3232
  def process_scanForOursExternalSaleReturn(self, seqid, iprot, oprot):
3233
    args = scanForOursExternalSaleReturn_args()
3234
    args.read(iprot)
3235
    iprot.readMessageEnd()
3236
    result = scanForOursExternalSaleReturn_result()
7410 amar.kumar 3237
    try:
3238
      self._handler.scanForOursExternalSaleReturn(args.orderId, args.unitPrice)
3239
    except WarehouseServiceException, ex:
3240
      result.ex = ex
6762 amar.kumar 3241
    oprot.writeMessageBegin("scanForOursExternalSaleReturn", TMessageType.REPLY, seqid)
3242
    result.write(oprot)
3243
    oprot.writeMessageEnd()
3244
    oprot.trans.flush()
3245
 
6880 amar.kumar 3246
  def process_getMovementNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3247
    args = getMovementNonSerializedInventoryByScans_args()
3248
    args.read(iprot)
3249
    iprot.readMessageEnd()
3250
    result = getMovementNonSerializedInventoryByScans_result()
3251
    result.success = self._handler.getMovementNonSerializedInventoryByScans(args.startDate, args.endDate)
3252
    oprot.writeMessageBegin("getMovementNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3253
    result.write(oprot)
3254
    oprot.writeMessageEnd()
3255
    oprot.trans.flush()
6762 amar.kumar 3256
 
6880 amar.kumar 3257
  def process_getMovementSerializedInventoryByScans(self, seqid, iprot, oprot):
3258
    args = getMovementSerializedInventoryByScans_args()
3259
    args.read(iprot)
3260
    iprot.readMessageEnd()
3261
    result = getMovementSerializedInventoryByScans_result()
3262
    result.success = self._handler.getMovementSerializedInventoryByScans(args.startDate, args.endDate)
3263
    oprot.writeMessageBegin("getMovementSerializedInventoryByScans", TMessageType.REPLY, seqid)
3264
    result.write(oprot)
3265
    oprot.writeMessageEnd()
3266
    oprot.trans.flush()
3267
 
7216 amar.kumar 3268
  def process_getCompleteMovementSerializedInventoryByScans(self, seqid, iprot, oprot):
3269
    args = getCompleteMovementSerializedInventoryByScans_args()
3270
    args.read(iprot)
3271
    iprot.readMessageEnd()
3272
    result = getCompleteMovementSerializedInventoryByScans_result()
3273
    result.success = self._handler.getCompleteMovementSerializedInventoryByScans(args.startDate, args.endDate)
3274
    oprot.writeMessageBegin("getCompleteMovementSerializedInventoryByScans", TMessageType.REPLY, seqid)
3275
    result.write(oprot)
3276
    oprot.writeMessageEnd()
3277
    oprot.trans.flush()
3278
 
3279
  def process_getCompleteMovementNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3280
    args = getCompleteMovementNonSerializedInventoryByScans_args()
3281
    args.read(iprot)
3282
    iprot.readMessageEnd()
3283
    result = getCompleteMovementNonSerializedInventoryByScans_result()
3284
    result.success = self._handler.getCompleteMovementNonSerializedInventoryByScans(args.startDate, args.endDate)
3285
    oprot.writeMessageBegin("getCompleteMovementNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3286
    result.write(oprot)
3287
    oprot.writeMessageEnd()
3288
    oprot.trans.flush()
3289
 
7190 amar.kumar 3290
  def process_scanfreebie(self, seqid, iprot, oprot):
3291
    args = scanfreebie_args()
3292
    args.read(iprot)
3293
    iprot.readMessageEnd()
3294
    result = scanfreebie_result()
3295
    try:
3296
      result.success = self._handler.scanfreebie(args.orderId, args.freebieItemId, args.freebieWarehouseId, args.scanType)
3297
    except WarehouseServiceException, wex:
3298
      result.wex = wex
3299
    oprot.writeMessageBegin("scanfreebie", TMessageType.REPLY, seqid)
3300
    result.write(oprot)
3301
    oprot.writeMessageEnd()
3302
    oprot.trans.flush()
6880 amar.kumar 3303
 
7199 amar.kumar 3304
  def process_reshipfreebie(self, seqid, iprot, oprot):
3305
    args = reshipfreebie_args()
3306
    args.read(iprot)
3307
    iprot.readMessageEnd()
3308
    result = reshipfreebie_result()
3309
    try:
3310
      self._handler.reshipfreebie(args.oldOrderId, args.newOrderId, args.freebieItemId, args.scanType)
3311
    except WarehouseServiceException, wex:
3312
      result.wex = wex
3313
    oprot.writeMessageBegin("reshipfreebie", TMessageType.REPLY, seqid)
3314
    result.write(oprot)
3315
    oprot.writeMessageEnd()
3316
    oprot.trans.flush()
7190 amar.kumar 3317
 
7410 amar.kumar 3318
  def process_isItemTransferAllowed(self, seqid, iprot, oprot):
3319
    args = isItemTransferAllowed_args()
3320
    args.read(iprot)
3321
    iprot.readMessageEnd()
3322
    result = isItemTransferAllowed_result()
3323
    result.success = self._handler.isItemTransferAllowed(args.warehouseId, args.transferWarehouseId)
3324
    oprot.writeMessageBegin("isItemTransferAllowed", TMessageType.REPLY, seqid)
3325
    result.write(oprot)
3326
    oprot.writeMessageEnd()
3327
    oprot.trans.flush()
7199 amar.kumar 3328
 
7410 amar.kumar 3329
  def process_createTransferLot(self, seqid, iprot, oprot):
3330
    args = createTransferLot_args()
3331
    args.read(iprot)
3332
    iprot.readMessageEnd()
3333
    result = createTransferLot_result()
3334
    try:
3335
      result.success = self._handler.createTransferLot(args.originWarehouseId, args.destWarehouseId)
3336
    except WarehouseServiceException, wex:
3337
      result.wex = wex
3338
    oprot.writeMessageBegin("createTransferLot", TMessageType.REPLY, seqid)
3339
    result.write(oprot)
3340
    oprot.writeMessageEnd()
3341
    oprot.trans.flush()
3342
 
3343
  def process_getTransferLot(self, seqid, iprot, oprot):
3344
    args = getTransferLot_args()
3345
    args.read(iprot)
3346
    iprot.readMessageEnd()
3347
    result = getTransferLot_result()
3348
    try:
3349
      result.success = self._handler.getTransferLot(args.transferLotId)
3350
    except WarehouseServiceException, wex:
3351
      result.wex = wex
3352
    oprot.writeMessageBegin("getTransferLot", TMessageType.REPLY, seqid)
3353
    result.write(oprot)
3354
    oprot.writeMessageEnd()
3355
    oprot.trans.flush()
3356
 
3357
  def process_markTransferLotAsReceived(self, seqid, iprot, oprot):
3358
    args = markTransferLotAsReceived_args()
3359
    args.read(iprot)
3360
    iprot.readMessageEnd()
3361
    result = markTransferLotAsReceived_result()
3362
    try:
3363
      self._handler.markTransferLotAsReceived(args.id, args.remoteTransferRefNumber)
3364
    except WarehouseServiceException, wex:
3365
      result.wex = wex
3366
    oprot.writeMessageBegin("markTransferLotAsReceived", TMessageType.REPLY, seqid)
3367
    result.write(oprot)
3368
    oprot.writeMessageEnd()
3369
    oprot.trans.flush()
3370
 
3371
  def process_getTransferLotsByDate(self, seqid, iprot, oprot):
3372
    args = getTransferLotsByDate_args()
3373
    args.read(iprot)
3374
    iprot.readMessageEnd()
3375
    result = getTransferLotsByDate_result()
3376
    try:
3377
      result.success = self._handler.getTransferLotsByDate(args.fromDate, args.toDate)
3378
    except WarehouseServiceException, wex:
3379
      result.wex = wex
3380
    oprot.writeMessageBegin("getTransferLotsByDate", TMessageType.REPLY, seqid)
3381
    result.write(oprot)
3382
    oprot.writeMessageEnd()
3383
    oprot.trans.flush()
3384
 
3385
  def process_getAllowedDestinationWarehousesForTransfer(self, seqid, iprot, oprot):
3386
    args = getAllowedDestinationWarehousesForTransfer_args()
3387
    args.read(iprot)
3388
    iprot.readMessageEnd()
3389
    result = getAllowedDestinationWarehousesForTransfer_result()
3390
    result.success = self._handler.getAllowedDestinationWarehousesForTransfer(args.warehouseId)
3391
    oprot.writeMessageBegin("getAllowedDestinationWarehousesForTransfer", TMessageType.REPLY, seqid)
3392
    result.write(oprot)
3393
    oprot.writeMessageEnd()
3394
    oprot.trans.flush()
3395
 
3396
  def process_getItemsInTransferLot(self, seqid, iprot, oprot):
3397
    args = getItemsInTransferLot_args()
3398
    args.read(iprot)
3399
    iprot.readMessageEnd()
3400
    result = getItemsInTransferLot_result()
3401
    result.success = self._handler.getItemsInTransferLot(args.transferLotId)
3402
    oprot.writeMessageBegin("getItemsInTransferLot", TMessageType.REPLY, seqid)
3403
    result.write(oprot)
3404
    oprot.writeMessageEnd()
3405
    oprot.trans.flush()
3406
 
3407
  def process_markItemsAsReceivedForTransferLot(self, seqid, iprot, oprot):
3408
    args = markItemsAsReceivedForTransferLot_args()
3409
    args.read(iprot)
3410
    iprot.readMessageEnd()
3411
    result = markItemsAsReceivedForTransferLot_result()
3412
    try:
3413
      self._handler.markItemsAsReceivedForTransferLot(args.id)
3414
    except WarehouseServiceException, wex:
3415
      result.wex = wex
3416
    oprot.writeMessageBegin("markItemsAsReceivedForTransferLot", TMessageType.REPLY, seqid)
3417
    result.write(oprot)
3418
    oprot.writeMessageEnd()
3419
    oprot.trans.flush()
3420
 
3421
  def process_updateTransferLotAfterItemReceive(self, seqid, iprot, oprot):
3422
    args = updateTransferLotAfterItemReceive_args()
3423
    args.read(iprot)
3424
    iprot.readMessageEnd()
3425
    result = updateTransferLotAfterItemReceive_result()
3426
    try:
3427
      result.success = self._handler.updateTransferLotAfterItemReceive(args.id)
3428
    except WarehouseServiceException, wex:
3429
      result.wex = wex
3430
    oprot.writeMessageBegin("updateTransferLotAfterItemReceive", TMessageType.REPLY, seqid)
3431
    result.write(oprot)
3432
    oprot.writeMessageEnd()
3433
    oprot.trans.flush()
3434
 
7459 amar.kumar 3435
  def process_scanForTransferOut(self, seqid, iprot, oprot):
3436
    args = scanForTransferOut_args()
7410 amar.kumar 3437
    args.read(iprot)
3438
    iprot.readMessageEnd()
7459 amar.kumar 3439
    result = scanForTransferOut_result()
7410 amar.kumar 3440
    try:
7459 amar.kumar 3441
      self._handler.scanForTransferOut(args.inventoryItems, args.type, args.transferLotId)
7410 amar.kumar 3442
    except WarehouseServiceException, wex:
3443
      result.wex = wex
7459 amar.kumar 3444
    oprot.writeMessageBegin("scanForTransferOut", TMessageType.REPLY, seqid)
7410 amar.kumar 3445
    result.write(oprot)
3446
    oprot.writeMessageEnd()
3447
    oprot.trans.flush()
3448
 
7459 amar.kumar 3449
  def process_scanForTransferIn(self, seqid, iprot, oprot):
3450
    args = scanForTransferIn_args()
3451
    args.read(iprot)
3452
    iprot.readMessageEnd()
3453
    result = scanForTransferIn_result()
3454
    try:
3455
      self._handler.scanForTransferIn(args.inventoryItems, args.type, args.transferLotId)
3456
    except WarehouseServiceException, wex:
3457
      result.wex = wex
3458
    oprot.writeMessageBegin("scanForTransferIn", TMessageType.REPLY, seqid)
3459
    result.write(oprot)
3460
    oprot.writeMessageEnd()
3461
    oprot.trans.flush()
7410 amar.kumar 3462
 
7459 amar.kumar 3463
  def process_scanForOursThirdPartyReceive(self, seqid, iprot, oprot):
3464
    args = scanForOursThirdPartyReceive_args()
3465
    args.read(iprot)
3466
    iprot.readMessageEnd()
3467
    result = scanForOursThirdPartyReceive_result()
3468
    try:
3469
      self._handler.scanForOursThirdPartyReceive(args.inventoryItems, args.id)
3470
    except WarehouseServiceException, wex:
3471
      result.wex = wex
3472
    oprot.writeMessageBegin("scanForOursThirdPartyReceive", TMessageType.REPLY, seqid)
3473
    result.write(oprot)
3474
    oprot.writeMessageEnd()
3475
    oprot.trans.flush()
3476
 
7574 amar.kumar 3477
  def process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, seqid, iprot, oprot):
3478
    args = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args()
3479
    args.read(iprot)
3480
    iprot.readMessageEnd()
3481
    result = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result()
3482
    try:
3483
      result.success = self._handler.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(args.itemId, args.physicalWarehouseId)
3484
    except WarehouseServiceException, wex:
3485
      result.wex = wex
3486
    oprot.writeMessageBegin("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", TMessageType.REPLY, seqid)
3487
    result.write(oprot)
3488
    oprot.writeMessageEnd()
3489
    oprot.trans.flush()
7459 amar.kumar 3490
 
7672 rajveer 3491
  def process_getInTransitInventory(self, seqid, iprot, oprot):
3492
    args = getInTransitInventory_args()
3493
    args.read(iprot)
3494
    iprot.readMessageEnd()
3495
    result = getInTransitInventory_result()
3496
    result.success = self._handler.getInTransitInventory(args.originWarehouseId)
3497
    oprot.writeMessageBegin("getInTransitInventory", TMessageType.REPLY, seqid)
3498
    result.write(oprot)
3499
    oprot.writeMessageEnd()
3500
    oprot.trans.flush()
7574 amar.kumar 3501
 
7968 amar.kumar 3502
  def process_isItemAvailableForSale(self, seqid, iprot, oprot):
3503
    args = isItemAvailableForSale_args()
3504
    args.read(iprot)
3505
    iprot.readMessageEnd()
3506
    result = isItemAvailableForSale_result()
3507
    try:
3508
      result.success = self._handler.isItemAvailableForSale(args.itemId, args.serialNumber, args.warehouseId)
3509
    except WarehouseServiceException, wex:
3510
      result.wex = wex
3511
    oprot.writeMessageBegin("isItemAvailableForSale", TMessageType.REPLY, seqid)
3512
    result.write(oprot)
3513
    oprot.writeMessageEnd()
3514
    oprot.trans.flush()
7672 rajveer 3515
 
7968 amar.kumar 3516
  def process_getHistoricBadInventoryByScans(self, seqid, iprot, oprot):
3517
    args = getHistoricBadInventoryByScans_args()
3518
    args.read(iprot)
3519
    iprot.readMessageEnd()
3520
    result = getHistoricBadInventoryByScans_result()
3521
    try:
3522
      result.success = self._handler.getHistoricBadInventoryByScans(args.date)
3523
    except WarehouseServiceException, wex:
3524
      result.wex = wex
3525
    oprot.writeMessageBegin("getHistoricBadInventoryByScans", TMessageType.REPLY, seqid)
3526
    result.write(oprot)
3527
    oprot.writeMessageEnd()
3528
    oprot.trans.flush()
3529
 
8565 amar.kumar 3530
  def process_scanForBadSale(self, seqid, iprot, oprot):
3531
    args = scanForBadSale_args()
3532
    args.read(iprot)
3533
    iprot.readMessageEnd()
3534
    result = scanForBadSale_result()
8717 amar.kumar 3535
    try:
3536
      result.success = self._handler.scanForBadSale(args.serialNumber, args.itemNumber, args.itemId, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId)
3537
    except WarehouseServiceException, wex:
3538
      result.wex = wex
8565 amar.kumar 3539
    oprot.writeMessageBegin("scanForBadSale", TMessageType.REPLY, seqid)
3540
    result.write(oprot)
3541
    oprot.writeMessageEnd()
3542
    oprot.trans.flush()
7968 amar.kumar 3543
 
10120 manish.sha 3544
  def process_getTransferLotItemsForMarkReceive(self, seqid, iprot, oprot):
3545
    args = getTransferLotItemsForMarkReceive_args()
3546
    args.read(iprot)
3547
    iprot.readMessageEnd()
3548
    result = getTransferLotItemsForMarkReceive_result()
3549
    try:
3550
      result.success = self._handler.getTransferLotItemsForMarkReceive(args.transferLotId, args.scanType)
3551
    except WarehouseServiceException, wex:
3552
      result.wex = wex
3553
    oprot.writeMessageBegin("getTransferLotItemsForMarkReceive", TMessageType.REPLY, seqid)
3554
    result.write(oprot)
3555
    oprot.writeMessageEnd()
3556
    oprot.trans.flush()
8565 amar.kumar 3557
 
10120 manish.sha 3558
  def process_markItemsAsReceivedForTransferLotPartial(self, seqid, iprot, oprot):
3559
    args = markItemsAsReceivedForTransferLotPartial_args()
3560
    args.read(iprot)
3561
    iprot.readMessageEnd()
3562
    result = markItemsAsReceivedForTransferLotPartial_result()
3563
    try:
3564
      self._handler.markItemsAsReceivedForTransferLotPartial(args.inventoryItems, args.transferLotId)
3565
    except WarehouseServiceException, wex:
3566
      result.wex = wex
3567
    oprot.writeMessageBegin("markItemsAsReceivedForTransferLotPartial", TMessageType.REPLY, seqid)
3568
    result.write(oprot)
3569
    oprot.writeMessageEnd()
3570
    oprot.trans.flush()
3571
 
3572
  def process_markTransferLotAsReceivedPartial(self, seqid, iprot, oprot):
3573
    args = markTransferLotAsReceivedPartial_args()
3574
    args.read(iprot)
3575
    iprot.readMessageEnd()
3576
    result = markTransferLotAsReceivedPartial_result()
3577
    try:
3578
      self._handler.markTransferLotAsReceivedPartial(args.id, args.remoteTransferRefNumber)
3579
    except WarehouseServiceException, wex:
3580
      result.wex = wex
3581
    oprot.writeMessageBegin("markTransferLotAsReceivedPartial", TMessageType.REPLY, seqid)
3582
    result.write(oprot)
3583
    oprot.writeMessageEnd()
3584
    oprot.trans.flush()
3585
 
10690 manish.sha 3586
  def process_getInventoryItemScannedInForPO(self, seqid, iprot, oprot):
3587
    args = getInventoryItemScannedInForPO_args()
3588
    args.read(iprot)
3589
    iprot.readMessageEnd()
3590
    result = getInventoryItemScannedInForPO_result()
3591
    try:
3592
      result.success = self._handler.getInventoryItemScannedInForPO(args.itemId, args.purchaseIds)
3593
    except WarehouseServiceException, wex:
3594
      result.wex = wex
3595
    oprot.writeMessageBegin("getInventoryItemScannedInForPO", TMessageType.REPLY, seqid)
3596
    result.write(oprot)
3597
    oprot.writeMessageEnd()
3598
    oprot.trans.flush()
10120 manish.sha 3599
 
10690 manish.sha 3600
  def process_getAmazonTransferredSkuDetails(self, seqid, iprot, oprot):
3601
    args = getAmazonTransferredSkuDetails_args()
3602
    args.read(iprot)
3603
    iprot.readMessageEnd()
3604
    result = getAmazonTransferredSkuDetails_result()
3605
    try:
3606
      result.success = self._handler.getAmazonTransferredSkuDetails(args.itemIds)
3607
    except WarehouseServiceException, wex:
3608
      result.wex = wex
3609
    oprot.writeMessageBegin("getAmazonTransferredSkuDetails", TMessageType.REPLY, seqid)
3610
    result.write(oprot)
3611
    oprot.writeMessageEnd()
3612
    oprot.trans.flush()
3613
 
3614
  def process_getScansforPurchase(self, seqid, iprot, oprot):
3615
    args = getScansforPurchase_args()
3616
    args.read(iprot)
3617
    iprot.readMessageEnd()
3618
    result = getScansforPurchase_result()
3619
    try:
3620
      result.success = self._handler.getScansforPurchase(args.purchaseId, args.scanType)
3621
    except WarehouseServiceException, wex:
3622
      result.wex = wex
3623
    oprot.writeMessageBegin("getScansforPurchase", TMessageType.REPLY, seqid)
3624
    result.write(oprot)
3625
    oprot.writeMessageEnd()
3626
    oprot.trans.flush()
3627
 
10864 manish.sha 3628
  def process_getCurrentBadQuantityForItem(self, seqid, iprot, oprot):
3629
    args = getCurrentBadQuantityForItem_args()
3630
    args.read(iprot)
3631
    iprot.readMessageEnd()
3632
    result = getCurrentBadQuantityForItem_result()
3633
    try:
3634
      result.success = self._handler.getCurrentBadQuantityForItem(args.itemId, args.currentWarehouseId, args.physicalWarehouseId)
3635
    except WarehouseServiceException, wex:
3636
      result.wex = wex
3637
    oprot.writeMessageBegin("getCurrentBadQuantityForItem", TMessageType.REPLY, seqid)
3638
    result.write(oprot)
3639
    oprot.writeMessageEnd()
3640
    oprot.trans.flush()
10690 manish.sha 3641
 
10864 manish.sha 3642
  def process_scanForBadPurchaseReturn(self, seqid, iprot, oprot):
3643
    args = scanForBadPurchaseReturn_args()
3644
    args.read(iprot)
3645
    iprot.readMessageEnd()
3646
    result = scanForBadPurchaseReturn_result()
3647
    try:
3648
      result.success = self._handler.scanForBadPurchaseReturn(args.saleReturnItems, args.vendorId, args.billingWarehouseId)
3649
    except WarehouseServiceException, ex:
3650
      result.ex = ex
3651
    oprot.writeMessageBegin("scanForBadPurchaseReturn", TMessageType.REPLY, seqid)
3652
    result.write(oprot)
3653
    oprot.writeMessageEnd()
3654
    oprot.trans.flush()
3655
 
3656
  def process_getItemsInPurchaseReturn(self, seqid, iprot, oprot):
3657
    args = getItemsInPurchaseReturn_args()
3658
    args.read(iprot)
3659
    iprot.readMessageEnd()
3660
    result = getItemsInPurchaseReturn_result()
3661
    try:
13504 manish.sha 3662
      result.success = self._handler.getItemsInPurchaseReturn(args.purchaseReturnId, args.type, args.returnTime)
10864 manish.sha 3663
    except WarehouseServiceException, ex:
3664
      result.ex = ex
3665
    oprot.writeMessageBegin("getItemsInPurchaseReturn", TMessageType.REPLY, seqid)
3666
    result.write(oprot)
3667
    oprot.writeMessageEnd()
3668
    oprot.trans.flush()
3669
 
10886 manish.sha 3670
  def process_getScansForInventoryItem(self, seqid, iprot, oprot):
3671
    args = getScansForInventoryItem_args()
3672
    args.read(iprot)
3673
    iprot.readMessageEnd()
3674
    result = getScansForInventoryItem_result()
3675
    try:
3676
      result.success = self._handler.getScansForInventoryItem(args.inventoryItemId, args.type)
3677
    except WarehouseServiceException, ex:
3678
      result.ex = ex
3679
    oprot.writeMessageBegin("getScansForInventoryItem", TMessageType.REPLY, seqid)
3680
    result.write(oprot)
3681
    oprot.writeMessageEnd()
3682
    oprot.trans.flush()
10864 manish.sha 3683
 
12531 manish.sha 3684
  def process_checkGrnImeiStatus(self, seqid, iprot, oprot):
3685
    args = checkGrnImeiStatus_args()
3686
    args.read(iprot)
3687
    iprot.readMessageEnd()
3688
    result = checkGrnImeiStatus_result()
3689
    try:
3690
      result.success = self._handler.checkGrnImeiStatus(args.imeiNos)
3691
    except WarehouseServiceException, ex:
3692
      result.ex = ex
3693
    oprot.writeMessageBegin("checkGrnImeiStatus", TMessageType.REPLY, seqid)
3694
    result.write(oprot)
3695
    oprot.writeMessageEnd()
3696
    oprot.trans.flush()
10886 manish.sha 3697
 
12800 manish.sha 3698
  def process_getInventoryAgeConsideredItems(self, seqid, iprot, oprot):
3699
    args = getInventoryAgeConsideredItems_args()
3700
    args.read(iprot)
3701
    iprot.readMessageEnd()
3702
    result = getInventoryAgeConsideredItems_result()
3703
    try:
3704
      result.success = self._handler.getInventoryAgeConsideredItems(args.itemId)
3705
    except WarehouseServiceException, ex:
3706
      result.ex = ex
3707
    oprot.writeMessageBegin("getInventoryAgeConsideredItems", TMessageType.REPLY, seqid)
3708
    result.write(oprot)
3709
    oprot.writeMessageEnd()
3710
    oprot.trans.flush()
12531 manish.sha 3711
 
12800 manish.sha 3712
 
2821 chandransh 3713
# HELPER FUNCTIONS AND STRUCTURES
3714
 
4501 mandeep.dh 3715
class getInventoryItem_args:
2832 chandransh 3716
  """
3717
  Attributes:
4501 mandeep.dh 3718
   - serialNumber
2832 chandransh 3719
  """
3720
 
3721
  thrift_spec = (
3722
    None, # 0
4501 mandeep.dh 3723
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
2832 chandransh 3724
  )
3725
 
4501 mandeep.dh 3726
  def __init__(self, serialNumber=None,):
3727
    self.serialNumber = serialNumber
2832 chandransh 3728
 
3729
  def read(self, iprot):
3730
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3731
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3732
      return
3733
    iprot.readStructBegin()
3734
    while True:
3735
      (fname, ftype, fid) = iprot.readFieldBegin()
3736
      if ftype == TType.STOP:
3737
        break
3738
      if fid == 1:
4501 mandeep.dh 3739
        if ftype == TType.STRING:
3740
          self.serialNumber = iprot.readString();
2832 chandransh 3741
        else:
3742
          iprot.skip(ftype)
3743
      else:
3744
        iprot.skip(ftype)
3745
      iprot.readFieldEnd()
3746
    iprot.readStructEnd()
3747
 
3748
  def write(self, oprot):
3749
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3750
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3751
      return
4501 mandeep.dh 3752
    oprot.writeStructBegin('getInventoryItem_args')
3753
    if self.serialNumber is not None:
3754
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
3755
      oprot.writeString(self.serialNumber)
2832 chandransh 3756
      oprot.writeFieldEnd()
3757
    oprot.writeFieldStop()
3758
    oprot.writeStructEnd()
3759
 
3431 rajveer 3760
  def validate(self):
3761
    return
3762
 
3763
 
2832 chandransh 3764
  def __repr__(self):
3765
    L = ['%s=%r' % (key, value)
3766
      for key, value in self.__dict__.iteritems()]
3767
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3768
 
3769
  def __eq__(self, other):
3770
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3771
 
3772
  def __ne__(self, other):
3773
    return not (self == other)
3774
 
4501 mandeep.dh 3775
class getInventoryItem_result:
2832 chandransh 3776
  """
3777
  Attributes:
3778
   - success
4541 mandeep.dh 3779
   - wex
2832 chandransh 3780
  """
3781
 
3782
  thrift_spec = (
4501 mandeep.dh 3783
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
4541 mandeep.dh 3784
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
2832 chandransh 3785
  )
3786
 
4541 mandeep.dh 3787
  def __init__(self, success=None, wex=None,):
2832 chandransh 3788
    self.success = success
4541 mandeep.dh 3789
    self.wex = wex
2832 chandransh 3790
 
3791
  def read(self, iprot):
3792
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3793
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3794
      return
3795
    iprot.readStructBegin()
3796
    while True:
3797
      (fname, ftype, fid) = iprot.readFieldBegin()
3798
      if ftype == TType.STOP:
3799
        break
3800
      if fid == 0:
3801
        if ftype == TType.STRUCT:
4501 mandeep.dh 3802
          self.success = InventoryItem()
2832 chandransh 3803
          self.success.read(iprot)
3804
        else:
3805
          iprot.skip(ftype)
4541 mandeep.dh 3806
      elif fid == 1:
3807
        if ftype == TType.STRUCT:
3808
          self.wex = WarehouseServiceException()
3809
          self.wex.read(iprot)
3810
        else:
3811
          iprot.skip(ftype)
2832 chandransh 3812
      else:
3813
        iprot.skip(ftype)
3814
      iprot.readFieldEnd()
3815
    iprot.readStructEnd()
3816
 
3817
  def write(self, oprot):
3818
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3819
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3820
      return
4501 mandeep.dh 3821
    oprot.writeStructBegin('getInventoryItem_result')
3431 rajveer 3822
    if self.success is not None:
2832 chandransh 3823
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3824
      self.success.write(oprot)
3825
      oprot.writeFieldEnd()
4541 mandeep.dh 3826
    if self.wex is not None:
3827
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
3828
      self.wex.write(oprot)
3829
      oprot.writeFieldEnd()
2832 chandransh 3830
    oprot.writeFieldStop()
3831
    oprot.writeStructEnd()
3832
 
3431 rajveer 3833
  def validate(self):
3834
    return
3835
 
3836
 
2832 chandransh 3837
  def __repr__(self):
3838
    L = ['%s=%r' % (key, value)
3839
      for key, value in self.__dict__.iteritems()]
3840
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3841
 
3842
  def __eq__(self, other):
3843
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3844
 
3845
  def __ne__(self, other):
3846
    return not (self == other)
3847
 
5361 mandeep.dh 3848
class getNonSeralizedInventoryItem_args:
2821 chandransh 3849
  """
3850
  Attributes:
5530 mandeep.dh 3851
   - itemNumber
4501 mandeep.dh 3852
   - itemId
5530 mandeep.dh 3853
   - fulfilmentWarehouseId
8565 amar.kumar 3854
   - billingWarehouseId
2821 chandransh 3855
  """
3856
 
3857
  thrift_spec = (
3858
    None, # 0
5530 mandeep.dh 3859
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
3860
    (2, TType.I64, 'itemId', None, None, ), # 2
3861
    (3, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 3
8565 amar.kumar 3862
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
2821 chandransh 3863
  )
3864
 
8565 amar.kumar 3865
  def __init__(self, itemNumber=None, itemId=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):
5530 mandeep.dh 3866
    self.itemNumber = itemNumber
4501 mandeep.dh 3867
    self.itemId = itemId
5530 mandeep.dh 3868
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 3869
    self.billingWarehouseId = billingWarehouseId
2821 chandransh 3870
 
3871
  def read(self, iprot):
3872
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3873
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3874
      return
3875
    iprot.readStructBegin()
3876
    while True:
3877
      (fname, ftype, fid) = iprot.readFieldBegin()
3878
      if ftype == TType.STOP:
3879
        break
3880
      if fid == 1:
5530 mandeep.dh 3881
        if ftype == TType.STRING:
3882
          self.itemNumber = iprot.readString();
3883
        else:
3884
          iprot.skip(ftype)
3885
      elif fid == 2:
2821 chandransh 3886
        if ftype == TType.I64:
4501 mandeep.dh 3887
          self.itemId = iprot.readI64();
2821 chandransh 3888
        else:
3889
          iprot.skip(ftype)
5530 mandeep.dh 3890
      elif fid == 3:
4501 mandeep.dh 3891
        if ftype == TType.I64:
5530 mandeep.dh 3892
          self.fulfilmentWarehouseId = iprot.readI64();
2821 chandransh 3893
        else:
3894
          iprot.skip(ftype)
8565 amar.kumar 3895
      elif fid == 4:
3896
        if ftype == TType.I64:
3897
          self.billingWarehouseId = iprot.readI64();
3898
        else:
3899
          iprot.skip(ftype)
2821 chandransh 3900
      else:
3901
        iprot.skip(ftype)
3902
      iprot.readFieldEnd()
3903
    iprot.readStructEnd()
3904
 
3905
  def write(self, oprot):
3906
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3907
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3908
      return
5361 mandeep.dh 3909
    oprot.writeStructBegin('getNonSeralizedInventoryItem_args')
5530 mandeep.dh 3910
    if self.itemNumber is not None:
3911
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
3912
      oprot.writeString(self.itemNumber)
3913
      oprot.writeFieldEnd()
4501 mandeep.dh 3914
    if self.itemId is not None:
5530 mandeep.dh 3915
      oprot.writeFieldBegin('itemId', TType.I64, 2)
4501 mandeep.dh 3916
      oprot.writeI64(self.itemId)
2821 chandransh 3917
      oprot.writeFieldEnd()
5530 mandeep.dh 3918
    if self.fulfilmentWarehouseId is not None:
3919
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 3)
3920
      oprot.writeI64(self.fulfilmentWarehouseId)
2821 chandransh 3921
      oprot.writeFieldEnd()
8565 amar.kumar 3922
    if self.billingWarehouseId is not None:
3923
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
3924
      oprot.writeI64(self.billingWarehouseId)
3925
      oprot.writeFieldEnd()
2821 chandransh 3926
    oprot.writeFieldStop()
3927
    oprot.writeStructEnd()
3928
 
3431 rajveer 3929
  def validate(self):
3930
    return
3931
 
3932
 
2821 chandransh 3933
  def __repr__(self):
3934
    L = ['%s=%r' % (key, value)
3935
      for key, value in self.__dict__.iteritems()]
3936
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3937
 
3938
  def __eq__(self, other):
3939
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3940
 
3941
  def __ne__(self, other):
3942
    return not (self == other)
3943
 
5361 mandeep.dh 3944
class getNonSeralizedInventoryItem_result:
2821 chandransh 3945
  """
3946
  Attributes:
3947
   - success
5361 mandeep.dh 3948
   - wex
2821 chandransh 3949
  """
3950
 
3951
  thrift_spec = (
5361 mandeep.dh 3952
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
3953
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
2821 chandransh 3954
  )
3955
 
5361 mandeep.dh 3956
  def __init__(self, success=None, wex=None,):
2821 chandransh 3957
    self.success = success
5361 mandeep.dh 3958
    self.wex = wex
2821 chandransh 3959
 
3960
  def read(self, iprot):
3961
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3962
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3963
      return
3964
    iprot.readStructBegin()
3965
    while True:
3966
      (fname, ftype, fid) = iprot.readFieldBegin()
3967
      if ftype == TType.STOP:
3968
        break
3969
      if fid == 0:
5361 mandeep.dh 3970
        if ftype == TType.STRUCT:
3971
          self.success = InventoryItem()
3972
          self.success.read(iprot)
2821 chandransh 3973
        else:
3974
          iprot.skip(ftype)
5361 mandeep.dh 3975
      elif fid == 1:
3976
        if ftype == TType.STRUCT:
3977
          self.wex = WarehouseServiceException()
3978
          self.wex.read(iprot)
2821 chandransh 3979
        else:
3980
          iprot.skip(ftype)
3981
      else:
3982
        iprot.skip(ftype)
3983
      iprot.readFieldEnd()
3984
    iprot.readStructEnd()
3985
 
3986
  def write(self, oprot):
3987
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3988
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3989
      return
5361 mandeep.dh 3990
    oprot.writeStructBegin('getNonSeralizedInventoryItem_result')
3431 rajveer 3991
    if self.success is not None:
5361 mandeep.dh 3992
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3993
      self.success.write(oprot)
2821 chandransh 3994
      oprot.writeFieldEnd()
5361 mandeep.dh 3995
    if self.wex is not None:
3996
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
3997
      self.wex.write(oprot)
3383 chandransh 3998
      oprot.writeFieldEnd()
3999
    oprot.writeFieldStop()
4000
    oprot.writeStructEnd()
4001
 
3431 rajveer 4002
  def validate(self):
4003
    return
4004
 
4005
 
3383 chandransh 4006
  def __repr__(self):
4007
    L = ['%s=%r' % (key, value)
4008
      for key, value in self.__dict__.iteritems()]
4009
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4010
 
4011
  def __eq__(self, other):
4012
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4013
 
4014
  def __ne__(self, other):
4015
    return not (self == other)
4016
 
4501 mandeep.dh 4017
class scan_args:
2821 chandransh 4018
  """
4019
  Attributes:
5361 mandeep.dh 4020
   - inventoryItem
2821 chandransh 4021
   - type
4501 mandeep.dh 4022
   - quantity
5361 mandeep.dh 4023
   - billingWarehouseId
7410 amar.kumar 4024
   - transferLotId
2821 chandransh 4025
  """
4026
 
4027
  thrift_spec = (
4028
    None, # 0
5361 mandeep.dh 4029
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4501 mandeep.dh 4030
    (2, TType.I32, 'type', None, None, ), # 2
4031
    (3, TType.I64, 'quantity', None, None, ), # 3
5361 mandeep.dh 4032
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
7410 amar.kumar 4033
    (5, TType.I64, 'transferLotId', None, None, ), # 5
2821 chandransh 4034
  )
4035
 
7410 amar.kumar 4036
  def __init__(self, inventoryItem=None, type=None, quantity=None, billingWarehouseId=None, transferLotId=None,):
5361 mandeep.dh 4037
    self.inventoryItem = inventoryItem
2821 chandransh 4038
    self.type = type
4501 mandeep.dh 4039
    self.quantity = quantity
5361 mandeep.dh 4040
    self.billingWarehouseId = billingWarehouseId
7410 amar.kumar 4041
    self.transferLotId = transferLotId
2821 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:
5361 mandeep.dh 4053
        if ftype == TType.STRUCT:
4054
          self.inventoryItem = InventoryItem()
4055
          self.inventoryItem.read(iprot)
2821 chandransh 4056
        else:
4057
          iprot.skip(ftype)
4058
      elif fid == 2:
4501 mandeep.dh 4059
        if ftype == TType.I32:
4060
          self.type = iprot.readI32();
2821 chandransh 4061
        else:
4062
          iprot.skip(ftype)
3383 chandransh 4063
      elif fid == 3:
4501 mandeep.dh 4064
        if ftype == TType.I64:
4065
          self.quantity = iprot.readI64();
2821 chandransh 4066
        else:
4067
          iprot.skip(ftype)
3383 chandransh 4068
      elif fid == 4:
4501 mandeep.dh 4069
        if ftype == TType.I64:
5361 mandeep.dh 4070
          self.billingWarehouseId = iprot.readI64();
2821 chandransh 4071
        else:
4072
          iprot.skip(ftype)
7410 amar.kumar 4073
      elif fid == 5:
4074
        if ftype == TType.I64:
4075
          self.transferLotId = iprot.readI64();
4076
        else:
4077
          iprot.skip(ftype)
2821 chandransh 4078
      else:
4079
        iprot.skip(ftype)
4080
      iprot.readFieldEnd()
4081
    iprot.readStructEnd()
4082
 
4083
  def write(self, oprot):
4084
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4085
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4086
      return
4501 mandeep.dh 4087
    oprot.writeStructBegin('scan_args')
5361 mandeep.dh 4088
    if self.inventoryItem is not None:
4089
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
4090
      self.inventoryItem.write(oprot)
2821 chandransh 4091
      oprot.writeFieldEnd()
3431 rajveer 4092
    if self.type is not None:
4501 mandeep.dh 4093
      oprot.writeFieldBegin('type', TType.I32, 2)
2821 chandransh 4094
      oprot.writeI32(self.type)
4095
      oprot.writeFieldEnd()
4501 mandeep.dh 4096
    if self.quantity is not None:
4097
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4098
      oprot.writeI64(self.quantity)
4099
      oprot.writeFieldEnd()
5361 mandeep.dh 4100
    if self.billingWarehouseId is not None:
4101
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
4102
      oprot.writeI64(self.billingWarehouseId)
4501 mandeep.dh 4103
      oprot.writeFieldEnd()
7410 amar.kumar 4104
    if self.transferLotId is not None:
4105
      oprot.writeFieldBegin('transferLotId', TType.I64, 5)
4106
      oprot.writeI64(self.transferLotId)
4107
      oprot.writeFieldEnd()
2821 chandransh 4108
    oprot.writeFieldStop()
4109
    oprot.writeStructEnd()
4110
 
3431 rajveer 4111
  def validate(self):
4112
    return
4113
 
4114
 
2821 chandransh 4115
  def __repr__(self):
4116
    L = ['%s=%r' % (key, value)
4117
      for key, value in self.__dict__.iteritems()]
4118
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4119
 
4120
  def __eq__(self, other):
4121
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4122
 
4123
  def __ne__(self, other):
4124
    return not (self == other)
4125
 
4501 mandeep.dh 4126
class scan_result:
2821 chandransh 4127
  """
4128
  Attributes:
4129
   - wex
4130
  """
4131
 
4132
  thrift_spec = (
4133
    None, # 0
4134
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4135
  )
4136
 
4137
  def __init__(self, wex=None,):
4138
    self.wex = wex
4139
 
4140
  def read(self, iprot):
4141
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4142
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4143
      return
4144
    iprot.readStructBegin()
4145
    while True:
4146
      (fname, ftype, fid) = iprot.readFieldBegin()
4147
      if ftype == TType.STOP:
4148
        break
4149
      if fid == 1:
4150
        if ftype == TType.STRUCT:
4151
          self.wex = WarehouseServiceException()
4152
          self.wex.read(iprot)
4153
        else:
4154
          iprot.skip(ftype)
4155
      else:
4156
        iprot.skip(ftype)
4157
      iprot.readFieldEnd()
4158
    iprot.readStructEnd()
4159
 
4160
  def write(self, oprot):
4161
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4162
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4163
      return
4501 mandeep.dh 4164
    oprot.writeStructBegin('scan_result')
3431 rajveer 4165
    if self.wex is not None:
2821 chandransh 4166
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4167
      self.wex.write(oprot)
4168
      oprot.writeFieldEnd()
4169
    oprot.writeFieldStop()
4170
    oprot.writeStructEnd()
4171
 
3431 rajveer 4172
  def validate(self):
4173
    return
4174
 
4175
 
2821 chandransh 4176
  def __repr__(self):
4177
    L = ['%s=%r' % (key, value)
4178
      for key, value in self.__dict__.iteritems()]
4179
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4180
 
4181
  def __eq__(self, other):
4182
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4183
 
4184
  def __ne__(self, other):
4185
    return not (self == other)
4186
 
10489 amar.kumar 4187
class genericScan_args:
4188
  """
4189
  Attributes:
4190
   - inventoryItem
4191
   - scan
4192
  """
4193
 
4194
  thrift_spec = (
4195
    None, # 0
4196
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4197
    (2, TType.STRUCT, 'scan', (Scan, Scan.thrift_spec), None, ), # 2
4198
  )
4199
 
4200
  def __init__(self, inventoryItem=None, scan=None,):
4201
    self.inventoryItem = inventoryItem
4202
    self.scan = scan
4203
 
4204
  def read(self, iprot):
4205
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4206
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4207
      return
4208
    iprot.readStructBegin()
4209
    while True:
4210
      (fname, ftype, fid) = iprot.readFieldBegin()
4211
      if ftype == TType.STOP:
4212
        break
4213
      if fid == 1:
4214
        if ftype == TType.STRUCT:
4215
          self.inventoryItem = InventoryItem()
4216
          self.inventoryItem.read(iprot)
4217
        else:
4218
          iprot.skip(ftype)
4219
      elif fid == 2:
4220
        if ftype == TType.STRUCT:
4221
          self.scan = Scan()
4222
          self.scan.read(iprot)
4223
        else:
4224
          iprot.skip(ftype)
4225
      else:
4226
        iprot.skip(ftype)
4227
      iprot.readFieldEnd()
4228
    iprot.readStructEnd()
4229
 
4230
  def write(self, oprot):
4231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4233
      return
4234
    oprot.writeStructBegin('genericScan_args')
4235
    if self.inventoryItem is not None:
4236
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
4237
      self.inventoryItem.write(oprot)
4238
      oprot.writeFieldEnd()
4239
    if self.scan is not None:
4240
      oprot.writeFieldBegin('scan', TType.STRUCT, 2)
4241
      self.scan.write(oprot)
4242
      oprot.writeFieldEnd()
4243
    oprot.writeFieldStop()
4244
    oprot.writeStructEnd()
4245
 
4246
  def validate(self):
4247
    return
4248
 
4249
 
4250
  def __repr__(self):
4251
    L = ['%s=%r' % (key, value)
4252
      for key, value in self.__dict__.iteritems()]
4253
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4254
 
4255
  def __eq__(self, other):
4256
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4257
 
4258
  def __ne__(self, other):
4259
    return not (self == other)
4260
 
4261
class genericScan_result:
4262
  """
4263
  Attributes:
4264
   - wex
4265
  """
4266
 
4267
  thrift_spec = (
4268
    None, # 0
4269
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4270
  )
4271
 
4272
  def __init__(self, wex=None,):
4273
    self.wex = wex
4274
 
4275
  def read(self, iprot):
4276
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4277
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4278
      return
4279
    iprot.readStructBegin()
4280
    while True:
4281
      (fname, ftype, fid) = iprot.readFieldBegin()
4282
      if ftype == TType.STOP:
4283
        break
4284
      if fid == 1:
4285
        if ftype == TType.STRUCT:
4286
          self.wex = WarehouseServiceException()
4287
          self.wex.read(iprot)
4288
        else:
4289
          iprot.skip(ftype)
4290
      else:
4291
        iprot.skip(ftype)
4292
      iprot.readFieldEnd()
4293
    iprot.readStructEnd()
4294
 
4295
  def write(self, oprot):
4296
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4297
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4298
      return
4299
    oprot.writeStructBegin('genericScan_result')
4300
    if self.wex is not None:
4301
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4302
      self.wex.write(oprot)
4303
      oprot.writeFieldEnd()
4304
    oprot.writeFieldStop()
4305
    oprot.writeStructEnd()
4306
 
4307
  def validate(self):
4308
    return
4309
 
4310
 
4311
  def __repr__(self):
4312
    L = ['%s=%r' % (key, value)
4313
      for key, value in self.__dict__.iteritems()]
4314
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4315
 
4316
  def __eq__(self, other):
4317
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4318
 
4319
  def __ne__(self, other):
4320
    return not (self == other)
4321
 
4501 mandeep.dh 4322
class scanSerializedItemForOrder_args:
2821 chandransh 4323
  """
4324
  Attributes:
4555 mandeep.dh 4325
   - serialNumber
2821 chandransh 4326
   - type
4501 mandeep.dh 4327
   - orderId
5110 mandeep.dh 4328
   - fulfilmentWarehouseId
4329
   - quantity
4330
   - billingWarehouseId
2821 chandransh 4331
  """
4332
 
4333
  thrift_spec = (
4334
    None, # 0
4555 mandeep.dh 4335
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
4501 mandeep.dh 4336
    (2, TType.I32, 'type', None, None, ), # 2
4337
    (3, TType.I64, 'orderId', None, None, ), # 3
5110 mandeep.dh 4338
    (4, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 4
4339
    (5, TType.DOUBLE, 'quantity', None, None, ), # 5
4340
    (6, TType.I64, 'billingWarehouseId', None, None, ), # 6
2821 chandransh 4341
  )
4342
 
5110 mandeep.dh 4343
  def __init__(self, serialNumber=None, type=None, orderId=None, fulfilmentWarehouseId=None, quantity=None, billingWarehouseId=None,):
4555 mandeep.dh 4344
    self.serialNumber = serialNumber
2821 chandransh 4345
    self.type = type
4501 mandeep.dh 4346
    self.orderId = orderId
5110 mandeep.dh 4347
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
4348
    self.quantity = quantity
4349
    self.billingWarehouseId = billingWarehouseId
2821 chandransh 4350
 
4351
  def read(self, iprot):
4352
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4353
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4354
      return
4355
    iprot.readStructBegin()
4356
    while True:
4357
      (fname, ftype, fid) = iprot.readFieldBegin()
4358
      if ftype == TType.STOP:
4359
        break
4360
      if fid == 1:
4555 mandeep.dh 4361
        if ftype == TType.STRING:
4362
          self.serialNumber = iprot.readString();
2821 chandransh 4363
        else:
4364
          iprot.skip(ftype)
4365
      elif fid == 2:
4501 mandeep.dh 4366
        if ftype == TType.I32:
4367
          self.type = iprot.readI32();
2821 chandransh 4368
        else:
4369
          iprot.skip(ftype)
4370
      elif fid == 3:
4501 mandeep.dh 4371
        if ftype == TType.I64:
4372
          self.orderId = iprot.readI64();
4373
        else:
4374
          iprot.skip(ftype)
4375
      elif fid == 4:
4376
        if ftype == TType.I64:
5110 mandeep.dh 4377
          self.fulfilmentWarehouseId = iprot.readI64();
4501 mandeep.dh 4378
        else:
4379
          iprot.skip(ftype)
5110 mandeep.dh 4380
      elif fid == 5:
4381
        if ftype == TType.DOUBLE:
4382
          self.quantity = iprot.readDouble();
4383
        else:
4384
          iprot.skip(ftype)
4385
      elif fid == 6:
4386
        if ftype == TType.I64:
4387
          self.billingWarehouseId = iprot.readI64();
4388
        else:
4389
          iprot.skip(ftype)
4501 mandeep.dh 4390
      else:
4391
        iprot.skip(ftype)
4392
      iprot.readFieldEnd()
4393
    iprot.readStructEnd()
4394
 
4395
  def write(self, oprot):
4396
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4397
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4398
      return
4399
    oprot.writeStructBegin('scanSerializedItemForOrder_args')
4555 mandeep.dh 4400
    if self.serialNumber is not None:
4401
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
4402
      oprot.writeString(self.serialNumber)
4501 mandeep.dh 4403
      oprot.writeFieldEnd()
4404
    if self.type is not None:
4405
      oprot.writeFieldBegin('type', TType.I32, 2)
4406
      oprot.writeI32(self.type)
4407
      oprot.writeFieldEnd()
4408
    if self.orderId is not None:
4409
      oprot.writeFieldBegin('orderId', TType.I64, 3)
4410
      oprot.writeI64(self.orderId)
4411
      oprot.writeFieldEnd()
5110 mandeep.dh 4412
    if self.fulfilmentWarehouseId is not None:
4413
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 4)
4414
      oprot.writeI64(self.fulfilmentWarehouseId)
4501 mandeep.dh 4415
      oprot.writeFieldEnd()
5110 mandeep.dh 4416
    if self.quantity is not None:
4417
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
4418
      oprot.writeDouble(self.quantity)
4419
      oprot.writeFieldEnd()
4420
    if self.billingWarehouseId is not None:
4421
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)
4422
      oprot.writeI64(self.billingWarehouseId)
4423
      oprot.writeFieldEnd()
4501 mandeep.dh 4424
    oprot.writeFieldStop()
4425
    oprot.writeStructEnd()
4426
 
4427
  def validate(self):
4428
    return
4429
 
4430
 
4431
  def __repr__(self):
4432
    L = ['%s=%r' % (key, value)
4433
      for key, value in self.__dict__.iteritems()]
4434
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4435
 
4436
  def __eq__(self, other):
4437
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4438
 
4439
  def __ne__(self, other):
4440
    return not (self == other)
4441
 
4442
class scanSerializedItemForOrder_result:
4443
  """
4444
  Attributes:
4445
   - success
4446
   - wex
4447
  """
4448
 
4449
  thrift_spec = (
4555 mandeep.dh 4450
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
4501 mandeep.dh 4451
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4452
  )
4453
 
4454
  def __init__(self, success=None, wex=None,):
4455
    self.success = success
4456
    self.wex = wex
4457
 
4458
  def read(self, iprot):
4459
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4460
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4461
      return
4462
    iprot.readStructBegin()
4463
    while True:
4464
      (fname, ftype, fid) = iprot.readFieldBegin()
4465
      if ftype == TType.STOP:
4466
        break
4467
      if fid == 0:
4555 mandeep.dh 4468
        if ftype == TType.STRUCT:
4469
          self.success = InventoryItem()
4470
          self.success.read(iprot)
4501 mandeep.dh 4471
        else:
4472
          iprot.skip(ftype)
4473
      elif fid == 1:
4474
        if ftype == TType.STRUCT:
4475
          self.wex = WarehouseServiceException()
4476
          self.wex.read(iprot)
4477
        else:
4478
          iprot.skip(ftype)
4479
      else:
4480
        iprot.skip(ftype)
4481
      iprot.readFieldEnd()
4482
    iprot.readStructEnd()
4483
 
4484
  def write(self, oprot):
4485
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4486
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4487
      return
4488
    oprot.writeStructBegin('scanSerializedItemForOrder_result')
4489
    if self.success is not None:
4555 mandeep.dh 4490
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4491
      self.success.write(oprot)
4501 mandeep.dh 4492
      oprot.writeFieldEnd()
4493
    if self.wex is not None:
4494
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4495
      self.wex.write(oprot)
4496
      oprot.writeFieldEnd()
4497
    oprot.writeFieldStop()
4498
    oprot.writeStructEnd()
4499
 
4500
  def validate(self):
4501
    return
4502
 
4503
 
4504
  def __repr__(self):
4505
    L = ['%s=%r' % (key, value)
4506
      for key, value in self.__dict__.iteritems()]
4507
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4508
 
4509
  def __eq__(self, other):
4510
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4511
 
4512
  def __ne__(self, other):
4513
    return not (self == other)
4514
 
4515
class scanForOrder_args:
4516
  """
4517
  Attributes:
5361 mandeep.dh 4518
   - inventoryItem
4501 mandeep.dh 4519
   - type
4520
   - quantity
4521
   - orderId
5110 mandeep.dh 4522
   - fulfilmentWarehouseId
5361 mandeep.dh 4523
   - billingWarehouseId
4501 mandeep.dh 4524
  """
4525
 
4526
  thrift_spec = (
4527
    None, # 0
5361 mandeep.dh 4528
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4501 mandeep.dh 4529
    (2, TType.I32, 'type', None, None, ), # 2
4530
    (3, TType.I64, 'quantity', None, None, ), # 3
4531
    (4, TType.I64, 'orderId', None, None, ), # 4
5110 mandeep.dh 4532
    (5, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 5
5361 mandeep.dh 4533
    (6, TType.I64, 'billingWarehouseId', None, None, ), # 6
4501 mandeep.dh 4534
  )
4535
 
5361 mandeep.dh 4536
  def __init__(self, inventoryItem=None, type=None, quantity=None, orderId=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):
4537
    self.inventoryItem = inventoryItem
4501 mandeep.dh 4538
    self.type = type
4539
    self.quantity = quantity
4540
    self.orderId = orderId
5110 mandeep.dh 4541
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
5361 mandeep.dh 4542
    self.billingWarehouseId = billingWarehouseId
4501 mandeep.dh 4543
 
4544
  def read(self, iprot):
4545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4547
      return
4548
    iprot.readStructBegin()
4549
    while True:
4550
      (fname, ftype, fid) = iprot.readFieldBegin()
4551
      if ftype == TType.STOP:
4552
        break
4553
      if fid == 1:
5361 mandeep.dh 4554
        if ftype == TType.STRUCT:
4555
          self.inventoryItem = InventoryItem()
4556
          self.inventoryItem.read(iprot)
4501 mandeep.dh 4557
        else:
4558
          iprot.skip(ftype)
4559
      elif fid == 2:
2821 chandransh 4560
        if ftype == TType.I32:
4561
          self.type = iprot.readI32();
4562
        else:
4563
          iprot.skip(ftype)
4501 mandeep.dh 4564
      elif fid == 3:
4565
        if ftype == TType.I64:
4566
          self.quantity = iprot.readI64();
4567
        else:
4568
          iprot.skip(ftype)
4569
      elif fid == 4:
4570
        if ftype == TType.I64:
4571
          self.orderId = iprot.readI64();
4572
        else:
4573
          iprot.skip(ftype)
4574
      elif fid == 5:
4575
        if ftype == TType.I64:
5110 mandeep.dh 4576
          self.fulfilmentWarehouseId = iprot.readI64();
4501 mandeep.dh 4577
        else:
4578
          iprot.skip(ftype)
5361 mandeep.dh 4579
      elif fid == 6:
4580
        if ftype == TType.I64:
4581
          self.billingWarehouseId = iprot.readI64();
4582
        else:
4583
          iprot.skip(ftype)
2821 chandransh 4584
      else:
4585
        iprot.skip(ftype)
4586
      iprot.readFieldEnd()
4587
    iprot.readStructEnd()
4588
 
4589
  def write(self, oprot):
4590
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4591
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4592
      return
4501 mandeep.dh 4593
    oprot.writeStructBegin('scanForOrder_args')
5361 mandeep.dh 4594
    if self.inventoryItem is not None:
4595
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
4596
      self.inventoryItem.write(oprot)
2821 chandransh 4597
      oprot.writeFieldEnd()
3431 rajveer 4598
    if self.type is not None:
4501 mandeep.dh 4599
      oprot.writeFieldBegin('type', TType.I32, 2)
2821 chandransh 4600
      oprot.writeI32(self.type)
4601
      oprot.writeFieldEnd()
4501 mandeep.dh 4602
    if self.quantity is not None:
4603
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4604
      oprot.writeI64(self.quantity)
4605
      oprot.writeFieldEnd()
4606
    if self.orderId is not None:
4607
      oprot.writeFieldBegin('orderId', TType.I64, 4)
4608
      oprot.writeI64(self.orderId)
4609
      oprot.writeFieldEnd()
5110 mandeep.dh 4610
    if self.fulfilmentWarehouseId is not None:
4611
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 5)
4612
      oprot.writeI64(self.fulfilmentWarehouseId)
4501 mandeep.dh 4613
      oprot.writeFieldEnd()
5361 mandeep.dh 4614
    if self.billingWarehouseId is not None:
4615
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)
4616
      oprot.writeI64(self.billingWarehouseId)
4617
      oprot.writeFieldEnd()
2821 chandransh 4618
    oprot.writeFieldStop()
4619
    oprot.writeStructEnd()
4620
 
3431 rajveer 4621
  def validate(self):
4622
    return
4623
 
4624
 
2821 chandransh 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 scanForOrder_result:
2821 chandransh 4637
  """
4638
  Attributes:
5361 mandeep.dh 4639
   - success
2821 chandransh 4640
   - wex
4641
  """
4642
 
4643
  thrift_spec = (
5361 mandeep.dh 4644
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
2821 chandransh 4645
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4646
  )
4647
 
5361 mandeep.dh 4648
  def __init__(self, success=None, wex=None,):
4649
    self.success = success
2821 chandransh 4650
    self.wex = wex
4651
 
4652
  def read(self, iprot):
4653
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4654
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4655
      return
4656
    iprot.readStructBegin()
4657
    while True:
4658
      (fname, ftype, fid) = iprot.readFieldBegin()
4659
      if ftype == TType.STOP:
4660
        break
5361 mandeep.dh 4661
      if fid == 0:
2821 chandransh 4662
        if ftype == TType.STRUCT:
5361 mandeep.dh 4663
          self.success = InventoryItem()
4664
          self.success.read(iprot)
4665
        else:
4666
          iprot.skip(ftype)
4667
      elif fid == 1:
4668
        if ftype == TType.STRUCT:
2821 chandransh 4669
          self.wex = WarehouseServiceException()
4670
          self.wex.read(iprot)
4671
        else:
4672
          iprot.skip(ftype)
4673
      else:
4674
        iprot.skip(ftype)
4675
      iprot.readFieldEnd()
4676
    iprot.readStructEnd()
4677
 
4678
  def write(self, oprot):
4679
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4680
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4681
      return
4501 mandeep.dh 4682
    oprot.writeStructBegin('scanForOrder_result')
5361 mandeep.dh 4683
    if self.success is not None:
4684
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4685
      self.success.write(oprot)
4686
      oprot.writeFieldEnd()
3431 rajveer 4687
    if self.wex is not None:
2821 chandransh 4688
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4689
      self.wex.write(oprot)
4690
      oprot.writeFieldEnd()
4691
    oprot.writeFieldStop()
4692
    oprot.writeStructEnd()
4693
 
3431 rajveer 4694
  def validate(self):
4695
    return
4696
 
4697
 
2821 chandransh 4698
  def __repr__(self):
4699
    L = ['%s=%r' % (key, value)
4700
      for key, value in self.__dict__.iteritems()]
4701
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4702
 
4703
  def __eq__(self, other):
4704
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4705
 
4706
  def __ne__(self, other):
4707
    return not (self == other)
4501 mandeep.dh 4708
 
4709
class createItemNumberMapping_args:
4710
  """
4711
  Attributes:
4712
   - itemNumber
4713
   - itemId
4714
  """
4715
 
4716
  thrift_spec = (
4717
    None, # 0
4718
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
4719
    (2, TType.I64, 'itemId', None, None, ), # 2
4720
  )
4721
 
4722
  def __init__(self, itemNumber=None, itemId=None,):
4723
    self.itemNumber = itemNumber
4724
    self.itemId = itemId
4725
 
4726
  def read(self, iprot):
4727
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4728
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4729
      return
4730
    iprot.readStructBegin()
4731
    while True:
4732
      (fname, ftype, fid) = iprot.readFieldBegin()
4733
      if ftype == TType.STOP:
4734
        break
4735
      if fid == 1:
4736
        if ftype == TType.STRING:
4737
          self.itemNumber = iprot.readString();
4738
        else:
4739
          iprot.skip(ftype)
4740
      elif fid == 2:
4741
        if ftype == TType.I64:
4742
          self.itemId = iprot.readI64();
4743
        else:
4744
          iprot.skip(ftype)
4745
      else:
4746
        iprot.skip(ftype)
4747
      iprot.readFieldEnd()
4748
    iprot.readStructEnd()
4749
 
4750
  def write(self, oprot):
4751
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4752
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4753
      return
4754
    oprot.writeStructBegin('createItemNumberMapping_args')
4755
    if self.itemNumber is not None:
4756
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
4757
      oprot.writeString(self.itemNumber)
4758
      oprot.writeFieldEnd()
4759
    if self.itemId is not None:
4760
      oprot.writeFieldBegin('itemId', TType.I64, 2)
4761
      oprot.writeI64(self.itemId)
4762
      oprot.writeFieldEnd()
4763
    oprot.writeFieldStop()
4764
    oprot.writeStructEnd()
4765
 
4766
  def validate(self):
4767
    return
4768
 
4769
 
4770
  def __repr__(self):
4771
    L = ['%s=%r' % (key, value)
4772
      for key, value in self.__dict__.iteritems()]
4773
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4774
 
4775
  def __eq__(self, other):
4776
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4777
 
4778
  def __ne__(self, other):
4779
    return not (self == other)
4780
 
4781
class createItemNumberMapping_result:
4782
 
4783
  thrift_spec = (
4784
  )
4785
 
4786
  def read(self, iprot):
4787
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4788
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4789
      return
4790
    iprot.readStructBegin()
4791
    while True:
4792
      (fname, ftype, fid) = iprot.readFieldBegin()
4793
      if ftype == TType.STOP:
4794
        break
4795
      else:
4796
        iprot.skip(ftype)
4797
      iprot.readFieldEnd()
4798
    iprot.readStructEnd()
4799
 
4800
  def write(self, oprot):
4801
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4802
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4803
      return
4804
    oprot.writeStructBegin('createItemNumberMapping_result')
4805
    oprot.writeFieldStop()
4806
    oprot.writeStructEnd()
4807
 
4808
  def validate(self):
4809
    return
4810
 
4811
 
4812
  def __repr__(self):
4813
    L = ['%s=%r' % (key, value)
4814
      for key, value in self.__dict__.iteritems()]
4815
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4816
 
4817
  def __eq__(self, other):
4818
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4819
 
4820
  def __ne__(self, other):
4821
    return not (self == other)
4620 amit.gupta 4822
 
4823
class getItemNumbers_args:
4824
  """
4825
  Attributes:
4826
   - itemId
4827
  """
4828
 
4829
  thrift_spec = (
4830
    None, # 0
4831
    (1, TType.I64, 'itemId', None, None, ), # 1
4832
  )
4833
 
4834
  def __init__(self, itemId=None,):
4835
    self.itemId = itemId
4836
 
4837
  def read(self, iprot):
4838
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4839
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4840
      return
4841
    iprot.readStructBegin()
4842
    while True:
4843
      (fname, ftype, fid) = iprot.readFieldBegin()
4844
      if ftype == TType.STOP:
4845
        break
4846
      if fid == 1:
4847
        if ftype == TType.I64:
4848
          self.itemId = iprot.readI64();
4849
        else:
4850
          iprot.skip(ftype)
4851
      else:
4852
        iprot.skip(ftype)
4853
      iprot.readFieldEnd()
4854
    iprot.readStructEnd()
4855
 
4856
  def write(self, oprot):
4857
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4858
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4859
      return
4860
    oprot.writeStructBegin('getItemNumbers_args')
4861
    if self.itemId is not None:
4862
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4863
      oprot.writeI64(self.itemId)
4864
      oprot.writeFieldEnd()
4865
    oprot.writeFieldStop()
4866
    oprot.writeStructEnd()
4867
 
4868
  def validate(self):
4869
    return
4870
 
4871
 
4872
  def __repr__(self):
4873
    L = ['%s=%r' % (key, value)
4874
      for key, value in self.__dict__.iteritems()]
4875
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4876
 
4877
  def __eq__(self, other):
4878
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4879
 
4880
  def __ne__(self, other):
4881
    return not (self == other)
4882
 
4883
class getItemNumbers_result:
4884
  """
4885
  Attributes:
4886
   - success
4887
  """
4888
 
4889
  thrift_spec = (
4890
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
4891
  )
4892
 
4893
  def __init__(self, success=None,):
4894
    self.success = success
4895
 
4896
  def read(self, iprot):
4897
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4898
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4899
      return
4900
    iprot.readStructBegin()
4901
    while True:
4902
      (fname, ftype, fid) = iprot.readFieldBegin()
4903
      if ftype == TType.STOP:
4904
        break
4905
      if fid == 0:
4906
        if ftype == TType.LIST:
4907
          self.success = []
5361 mandeep.dh 4908
          (_etype3, _size0) = iprot.readListBegin()
4909
          for _i4 in xrange(_size0):
4910
            _elem5 = iprot.readString();
4911
            self.success.append(_elem5)
4620 amit.gupta 4912
          iprot.readListEnd()
4913
        else:
4914
          iprot.skip(ftype)
4915
      else:
4916
        iprot.skip(ftype)
4917
      iprot.readFieldEnd()
4918
    iprot.readStructEnd()
4919
 
4920
  def write(self, oprot):
4921
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4922
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4923
      return
4924
    oprot.writeStructBegin('getItemNumbers_result')
4925
    if self.success is not None:
4926
      oprot.writeFieldBegin('success', TType.LIST, 0)
4927
      oprot.writeListBegin(TType.STRING, len(self.success))
5361 mandeep.dh 4928
      for iter6 in self.success:
4929
        oprot.writeString(iter6)
4620 amit.gupta 4930
      oprot.writeListEnd()
4931
      oprot.writeFieldEnd()
4932
    oprot.writeFieldStop()
4933
    oprot.writeStructEnd()
4934
 
4935
  def validate(self):
4936
    return
4937
 
4938
 
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)
5110 mandeep.dh 4949
 
4950
class getItemIds_args:
4951
  """
4952
  Attributes:
4953
   - itemNumber
4954
  """
4955
 
4956
  thrift_spec = (
4957
    None, # 0
4958
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
4959
  )
4960
 
4961
  def __init__(self, itemNumber=None,):
4962
    self.itemNumber = itemNumber
4963
 
4964
  def read(self, iprot):
4965
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4966
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4967
      return
4968
    iprot.readStructBegin()
4969
    while True:
4970
      (fname, ftype, fid) = iprot.readFieldBegin()
4971
      if ftype == TType.STOP:
4972
        break
4973
      if fid == 1:
4974
        if ftype == TType.STRING:
4975
          self.itemNumber = iprot.readString();
4976
        else:
4977
          iprot.skip(ftype)
4978
      else:
4979
        iprot.skip(ftype)
4980
      iprot.readFieldEnd()
4981
    iprot.readStructEnd()
4982
 
4983
  def write(self, oprot):
4984
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4985
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4986
      return
4987
    oprot.writeStructBegin('getItemIds_args')
4988
    if self.itemNumber is not None:
4989
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
4990
      oprot.writeString(self.itemNumber)
4991
      oprot.writeFieldEnd()
4992
    oprot.writeFieldStop()
4993
    oprot.writeStructEnd()
4994
 
4995
  def validate(self):
4996
    return
4997
 
4998
 
4999
  def __repr__(self):
5000
    L = ['%s=%r' % (key, value)
5001
      for key, value in self.__dict__.iteritems()]
5002
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5003
 
5004
  def __eq__(self, other):
5005
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5006
 
5007
  def __ne__(self, other):
5008
    return not (self == other)
5009
 
5010
class getItemIds_result:
5011
  """
5012
  Attributes:
5013
   - success
5014
  """
5015
 
5016
  thrift_spec = (
5017
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5018
  )
5019
 
5020
  def __init__(self, success=None,):
5021
    self.success = success
5022
 
5023
  def read(self, iprot):
5024
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5025
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5026
      return
5027
    iprot.readStructBegin()
5028
    while True:
5029
      (fname, ftype, fid) = iprot.readFieldBegin()
5030
      if ftype == TType.STOP:
5031
        break
5032
      if fid == 0:
5033
        if ftype == TType.LIST:
5034
          self.success = []
5361 mandeep.dh 5035
          (_etype10, _size7) = iprot.readListBegin()
5036
          for _i11 in xrange(_size7):
5037
            _elem12 = iprot.readI64();
5038
            self.success.append(_elem12)
5110 mandeep.dh 5039
          iprot.readListEnd()
5040
        else:
5041
          iprot.skip(ftype)
5042
      else:
5043
        iprot.skip(ftype)
5044
      iprot.readFieldEnd()
5045
    iprot.readStructEnd()
5046
 
5047
  def write(self, oprot):
5048
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5049
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5050
      return
5051
    oprot.writeStructBegin('getItemIds_result')
5052
    if self.success is not None:
5053
      oprot.writeFieldBegin('success', TType.LIST, 0)
5054
      oprot.writeListBegin(TType.I64, len(self.success))
5361 mandeep.dh 5055
      for iter13 in self.success:
5056
        oprot.writeI64(iter13)
5110 mandeep.dh 5057
      oprot.writeListEnd()
5058
      oprot.writeFieldEnd()
5059
    oprot.writeFieldStop()
5060
    oprot.writeStructEnd()
5061
 
5062
  def validate(self):
5063
    return
5064
 
5065
 
5066
  def __repr__(self):
5067
    L = ['%s=%r' % (key, value)
5068
      for key, value in self.__dict__.iteritems()]
5069
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5070
 
5071
  def __eq__(self, other):
5072
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5073
 
5074
  def __ne__(self, other):
5075
    return not (self == other)
5185 mandeep.dh 5076
 
5077
class getInventoryItemsFromLastScanType_args:
5078
  """
5079
  Attributes:
5080
   - lastScanType
5081
  """
5082
 
5083
  thrift_spec = (
5084
    None, # 0
5085
    (1, TType.I32, 'lastScanType', None, None, ), # 1
5086
  )
5087
 
5088
  def __init__(self, lastScanType=None,):
5089
    self.lastScanType = lastScanType
5090
 
5091
  def read(self, iprot):
5092
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5093
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5094
      return
5095
    iprot.readStructBegin()
5096
    while True:
5097
      (fname, ftype, fid) = iprot.readFieldBegin()
5098
      if ftype == TType.STOP:
5099
        break
5100
      if fid == 1:
5101
        if ftype == TType.I32:
5102
          self.lastScanType = iprot.readI32();
5103
        else:
5104
          iprot.skip(ftype)
5105
      else:
5106
        iprot.skip(ftype)
5107
      iprot.readFieldEnd()
5108
    iprot.readStructEnd()
5109
 
5110
  def write(self, oprot):
5111
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5112
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5113
      return
5114
    oprot.writeStructBegin('getInventoryItemsFromLastScanType_args')
5115
    if self.lastScanType is not None:
5116
      oprot.writeFieldBegin('lastScanType', TType.I32, 1)
5117
      oprot.writeI32(self.lastScanType)
5118
      oprot.writeFieldEnd()
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)
5136
 
5137
class getInventoryItemsFromLastScanType_result:
5138
  """
5139
  Attributes:
5140
   - success
5141
   - wex
5142
  """
5143
 
5144
  thrift_spec = (
5145
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
5146
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
5147
  )
5148
 
5149
  def __init__(self, success=None, wex=None,):
5150
    self.success = success
5151
    self.wex = wex
5152
 
5153
  def read(self, iprot):
5154
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5155
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5156
      return
5157
    iprot.readStructBegin()
5158
    while True:
5159
      (fname, ftype, fid) = iprot.readFieldBegin()
5160
      if ftype == TType.STOP:
5161
        break
5162
      if fid == 0:
5163
        if ftype == TType.LIST:
5164
          self.success = []
5361 mandeep.dh 5165
          (_etype17, _size14) = iprot.readListBegin()
5166
          for _i18 in xrange(_size14):
5167
            _elem19 = InventoryItem()
5168
            _elem19.read(iprot)
5169
            self.success.append(_elem19)
5185 mandeep.dh 5170
          iprot.readListEnd()
5171
        else:
5172
          iprot.skip(ftype)
5173
      elif fid == 1:
5174
        if ftype == TType.STRUCT:
5175
          self.wex = WarehouseServiceException()
5176
          self.wex.read(iprot)
5177
        else:
5178
          iprot.skip(ftype)
5179
      else:
5180
        iprot.skip(ftype)
5181
      iprot.readFieldEnd()
5182
    iprot.readStructEnd()
5183
 
5184
  def write(self, oprot):
5185
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5186
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5187
      return
5188
    oprot.writeStructBegin('getInventoryItemsFromLastScanType_result')
5189
    if self.success is not None:
5190
      oprot.writeFieldBegin('success', TType.LIST, 0)
5191
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5361 mandeep.dh 5192
      for iter20 in self.success:
5193
        iter20.write(oprot)
5185 mandeep.dh 5194
      oprot.writeListEnd()
5195
      oprot.writeFieldEnd()
5196
    if self.wex is not None:
5197
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
5198
      self.wex.write(oprot)
5199
      oprot.writeFieldEnd()
5200
    oprot.writeFieldStop()
5201
    oprot.writeStructEnd()
5202
 
5203
  def validate(self):
5204
    return
5205
 
5206
 
5207
  def __repr__(self):
5208
    L = ['%s=%r' % (key, value)
5209
      for key, value in self.__dict__.iteritems()]
5210
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5211
 
5212
  def __eq__(self, other):
5213
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5214
 
5215
  def __ne__(self, other):
5216
    return not (self == other)
5217
 
5218
class getInventoryItemFromId_args:
5219
  """
5220
  Attributes:
5221
   - inventoryItemId
5222
  """
5223
 
5224
  thrift_spec = (
5225
    None, # 0
5226
    (1, TType.I64, 'inventoryItemId', None, None, ), # 1
5227
  )
5228
 
5229
  def __init__(self, inventoryItemId=None,):
5230
    self.inventoryItemId = inventoryItemId
5231
 
5232
  def read(self, iprot):
5233
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5234
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5235
      return
5236
    iprot.readStructBegin()
5237
    while True:
5238
      (fname, ftype, fid) = iprot.readFieldBegin()
5239
      if ftype == TType.STOP:
5240
        break
5241
      if fid == 1:
5242
        if ftype == TType.I64:
5243
          self.inventoryItemId = iprot.readI64();
5244
        else:
5245
          iprot.skip(ftype)
5246
      else:
5247
        iprot.skip(ftype)
5248
      iprot.readFieldEnd()
5249
    iprot.readStructEnd()
5250
 
5251
  def write(self, oprot):
5252
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5253
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5254
      return
5255
    oprot.writeStructBegin('getInventoryItemFromId_args')
5256
    if self.inventoryItemId is not None:
5257
      oprot.writeFieldBegin('inventoryItemId', TType.I64, 1)
5258
      oprot.writeI64(self.inventoryItemId)
5259
      oprot.writeFieldEnd()
5260
    oprot.writeFieldStop()
5261
    oprot.writeStructEnd()
5262
 
5263
  def validate(self):
5264
    return
5265
 
5266
 
5267
  def __repr__(self):
5268
    L = ['%s=%r' % (key, value)
5269
      for key, value in self.__dict__.iteritems()]
5270
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5271
 
5272
  def __eq__(self, other):
5273
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5274
 
5275
  def __ne__(self, other):
5276
    return not (self == other)
5277
 
5278
class getInventoryItemFromId_result:
5279
  """
5280
  Attributes:
5281
   - success
5282
   - wex
5283
  """
5284
 
5285
  thrift_spec = (
5286
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
5287
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
5288
  )
5289
 
5290
  def __init__(self, success=None, wex=None,):
5291
    self.success = success
5292
    self.wex = wex
5293
 
5294
  def read(self, iprot):
5295
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5296
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5297
      return
5298
    iprot.readStructBegin()
5299
    while True:
5300
      (fname, ftype, fid) = iprot.readFieldBegin()
5301
      if ftype == TType.STOP:
5302
        break
5303
      if fid == 0:
5304
        if ftype == TType.STRUCT:
5305
          self.success = InventoryItem()
5306
          self.success.read(iprot)
5307
        else:
5308
          iprot.skip(ftype)
5309
      elif fid == 1:
5310
        if ftype == TType.STRUCT:
5311
          self.wex = WarehouseServiceException()
5312
          self.wex.read(iprot)
5313
        else:
5314
          iprot.skip(ftype)
5315
      else:
5316
        iprot.skip(ftype)
5317
      iprot.readFieldEnd()
5318
    iprot.readStructEnd()
5319
 
5320
  def write(self, oprot):
5321
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5322
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5323
      return
5324
    oprot.writeStructBegin('getInventoryItemFromId_result')
5325
    if self.success is not None:
5326
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5327
      self.success.write(oprot)
5328
      oprot.writeFieldEnd()
5329
    if self.wex is not None:
5330
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
5331
      self.wex.write(oprot)
5332
      oprot.writeFieldEnd()
5333
    oprot.writeFieldStop()
5334
    oprot.writeStructEnd()
5335
 
5336
  def validate(self):
5337
    return
5338
 
5339
 
5340
  def __repr__(self):
5341
    L = ['%s=%r' % (key, value)
5342
      for key, value in self.__dict__.iteritems()]
5343
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5344
 
5345
  def __eq__(self, other):
5346
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5347
 
5348
  def __ne__(self, other):
5349
    return not (self == other)
5372 mandeep.dh 5350
 
5351
class getPurchaseScans_args:
5352
  """
5353
  Attributes:
5354
   - startDate
5355
   - endDate
5356
  """
5357
 
5358
  thrift_spec = (
5359
    None, # 0
5360
    (1, TType.I64, 'startDate', None, None, ), # 1
5361
    (2, TType.I64, 'endDate', None, None, ), # 2
5362
  )
5363
 
5364
  def __init__(self, startDate=None, endDate=None,):
5365
    self.startDate = startDate
5366
    self.endDate = endDate
5367
 
5368
  def read(self, iprot):
5369
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5370
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5371
      return
5372
    iprot.readStructBegin()
5373
    while True:
5374
      (fname, ftype, fid) = iprot.readFieldBegin()
5375
      if ftype == TType.STOP:
5376
        break
5377
      if fid == 1:
5378
        if ftype == TType.I64:
5379
          self.startDate = iprot.readI64();
5380
        else:
5381
          iprot.skip(ftype)
5382
      elif fid == 2:
5383
        if ftype == TType.I64:
5384
          self.endDate = iprot.readI64();
5385
        else:
5386
          iprot.skip(ftype)
5387
      else:
5388
        iprot.skip(ftype)
5389
      iprot.readFieldEnd()
5390
    iprot.readStructEnd()
5391
 
5392
  def write(self, oprot):
5393
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5394
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5395
      return
5396
    oprot.writeStructBegin('getPurchaseScans_args')
5397
    if self.startDate is not None:
5398
      oprot.writeFieldBegin('startDate', TType.I64, 1)
5399
      oprot.writeI64(self.startDate)
5400
      oprot.writeFieldEnd()
5401
    if self.endDate is not None:
5402
      oprot.writeFieldBegin('endDate', TType.I64, 2)
5403
      oprot.writeI64(self.endDate)
5404
      oprot.writeFieldEnd()
5405
    oprot.writeFieldStop()
5406
    oprot.writeStructEnd()
5407
 
5408
  def validate(self):
5409
    return
5410
 
5411
 
5412
  def __repr__(self):
5413
    L = ['%s=%r' % (key, value)
5414
      for key, value in self.__dict__.iteritems()]
5415
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5416
 
5417
  def __eq__(self, other):
5418
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5419
 
5420
  def __ne__(self, other):
5421
    return not (self == other)
5422
 
5423
class getPurchaseScans_result:
5424
  """
5425
  Attributes:
5426
   - success
5427
  """
5428
 
5429
  thrift_spec = (
5430
    (0, TType.LIST, 'success', (TType.STRUCT,(DetailedPurchaseScan, DetailedPurchaseScan.thrift_spec)), None, ), # 0
5431
  )
5432
 
5433
  def __init__(self, success=None,):
5434
    self.success = success
5435
 
5436
  def read(self, iprot):
5437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5439
      return
5440
    iprot.readStructBegin()
5441
    while True:
5442
      (fname, ftype, fid) = iprot.readFieldBegin()
5443
      if ftype == TType.STOP:
5444
        break
5445
      if fid == 0:
5446
        if ftype == TType.LIST:
5447
          self.success = []
5448
          (_etype24, _size21) = iprot.readListBegin()
5449
          for _i25 in xrange(_size21):
5450
            _elem26 = DetailedPurchaseScan()
5451
            _elem26.read(iprot)
5452
            self.success.append(_elem26)
5453
          iprot.readListEnd()
5454
        else:
5455
          iprot.skip(ftype)
5456
      else:
5457
        iprot.skip(ftype)
5458
      iprot.readFieldEnd()
5459
    iprot.readStructEnd()
5460
 
5461
  def write(self, oprot):
5462
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5463
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5464
      return
5465
    oprot.writeStructBegin('getPurchaseScans_result')
5466
    if self.success is not None:
5467
      oprot.writeFieldBegin('success', TType.LIST, 0)
5468
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5469
      for iter27 in self.success:
5470
        iter27.write(oprot)
5471
      oprot.writeListEnd()
5472
      oprot.writeFieldEnd()
5473
    oprot.writeFieldStop()
5474
    oprot.writeStructEnd()
5475
 
5476
  def validate(self):
5477
    return
5478
 
5479
 
5480
  def __repr__(self):
5481
    L = ['%s=%r' % (key, value)
5482
      for key, value in self.__dict__.iteritems()]
5483
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5484
 
5485
  def __eq__(self, other):
5486
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5487
 
5488
  def __ne__(self, other):
5489
    return not (self == other)
5496 mandeep.dh 5490
 
7216 amar.kumar 5491
class getPurchaseScansByGrnDate_args:
5492
  """
5493
  Attributes:
5494
   - startDate
5495
   - endDate
5496
  """
5497
 
5498
  thrift_spec = (
5499
    None, # 0
5500
    (1, TType.I64, 'startDate', None, None, ), # 1
5501
    (2, TType.I64, 'endDate', None, None, ), # 2
5502
  )
5503
 
5504
  def __init__(self, startDate=None, endDate=None,):
5505
    self.startDate = startDate
5506
    self.endDate = endDate
5507
 
5508
  def read(self, iprot):
5509
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5510
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5511
      return
5512
    iprot.readStructBegin()
5513
    while True:
5514
      (fname, ftype, fid) = iprot.readFieldBegin()
5515
      if ftype == TType.STOP:
5516
        break
5517
      if fid == 1:
5518
        if ftype == TType.I64:
5519
          self.startDate = iprot.readI64();
5520
        else:
5521
          iprot.skip(ftype)
5522
      elif fid == 2:
5523
        if ftype == TType.I64:
5524
          self.endDate = iprot.readI64();
5525
        else:
5526
          iprot.skip(ftype)
5527
      else:
5528
        iprot.skip(ftype)
5529
      iprot.readFieldEnd()
5530
    iprot.readStructEnd()
5531
 
5532
  def write(self, oprot):
5533
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5534
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5535
      return
5536
    oprot.writeStructBegin('getPurchaseScansByGrnDate_args')
5537
    if self.startDate is not None:
5538
      oprot.writeFieldBegin('startDate', TType.I64, 1)
5539
      oprot.writeI64(self.startDate)
5540
      oprot.writeFieldEnd()
5541
    if self.endDate is not None:
5542
      oprot.writeFieldBegin('endDate', TType.I64, 2)
5543
      oprot.writeI64(self.endDate)
5544
      oprot.writeFieldEnd()
5545
    oprot.writeFieldStop()
5546
    oprot.writeStructEnd()
5547
 
5548
  def validate(self):
5549
    return
5550
 
5551
 
5552
  def __repr__(self):
5553
    L = ['%s=%r' % (key, value)
5554
      for key, value in self.__dict__.iteritems()]
5555
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5556
 
5557
  def __eq__(self, other):
5558
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5559
 
5560
  def __ne__(self, other):
5561
    return not (self == other)
5562
 
5563
class getPurchaseScansByGrnDate_result:
5564
  """
5565
  Attributes:
5566
   - success
5567
  """
5568
 
5569
  thrift_spec = (
5570
    (0, TType.LIST, 'success', (TType.STRUCT,(DetailedPurchaseScan, DetailedPurchaseScan.thrift_spec)), None, ), # 0
5571
  )
5572
 
5573
  def __init__(self, success=None,):
5574
    self.success = success
5575
 
5576
  def read(self, iprot):
5577
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5578
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5579
      return
5580
    iprot.readStructBegin()
5581
    while True:
5582
      (fname, ftype, fid) = iprot.readFieldBegin()
5583
      if ftype == TType.STOP:
5584
        break
5585
      if fid == 0:
5586
        if ftype == TType.LIST:
5587
          self.success = []
5588
          (_etype31, _size28) = iprot.readListBegin()
5589
          for _i32 in xrange(_size28):
5590
            _elem33 = DetailedPurchaseScan()
5591
            _elem33.read(iprot)
5592
            self.success.append(_elem33)
5593
          iprot.readListEnd()
5594
        else:
5595
          iprot.skip(ftype)
5596
      else:
5597
        iprot.skip(ftype)
5598
      iprot.readFieldEnd()
5599
    iprot.readStructEnd()
5600
 
5601
  def write(self, oprot):
5602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5604
      return
5605
    oprot.writeStructBegin('getPurchaseScansByGrnDate_result')
5606
    if self.success is not None:
5607
      oprot.writeFieldBegin('success', TType.LIST, 0)
5608
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5609
      for iter34 in self.success:
5610
        iter34.write(oprot)
5611
      oprot.writeListEnd()
5612
      oprot.writeFieldEnd()
5613
    oprot.writeFieldStop()
5614
    oprot.writeStructEnd()
5615
 
5616
  def validate(self):
5617
    return
5618
 
5619
 
5620
  def __repr__(self):
5621
    L = ['%s=%r' % (key, value)
5622
      for key, value in self.__dict__.iteritems()]
5623
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5624
 
5625
  def __eq__(self, other):
5626
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5627
 
5628
  def __ne__(self, other):
5629
    return not (self == other)
5630
 
10407 amar.kumar 5631
class getEmptyGrnsByDate_args:
5632
  """
5633
  Attributes:
5634
   - startDate
5635
   - endDate
5636
  """
5637
 
5638
  thrift_spec = (
5639
    None, # 0
5640
    (1, TType.I64, 'startDate', None, None, ), # 1
5641
    (2, TType.I64, 'endDate', None, None, ), # 2
5642
  )
5643
 
5644
  def __init__(self, startDate=None, endDate=None,):
5645
    self.startDate = startDate
5646
    self.endDate = endDate
5647
 
5648
  def read(self, iprot):
5649
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5650
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5651
      return
5652
    iprot.readStructBegin()
5653
    while True:
5654
      (fname, ftype, fid) = iprot.readFieldBegin()
5655
      if ftype == TType.STOP:
5656
        break
5657
      if fid == 1:
5658
        if ftype == TType.I64:
5659
          self.startDate = iprot.readI64();
5660
        else:
5661
          iprot.skip(ftype)
5662
      elif fid == 2:
5663
        if ftype == TType.I64:
5664
          self.endDate = iprot.readI64();
5665
        else:
5666
          iprot.skip(ftype)
5667
      else:
5668
        iprot.skip(ftype)
5669
      iprot.readFieldEnd()
5670
    iprot.readStructEnd()
5671
 
5672
  def write(self, oprot):
5673
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5674
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5675
      return
5676
    oprot.writeStructBegin('getEmptyGrnsByDate_args')
5677
    if self.startDate is not None:
5678
      oprot.writeFieldBegin('startDate', TType.I64, 1)
5679
      oprot.writeI64(self.startDate)
5680
      oprot.writeFieldEnd()
5681
    if self.endDate is not None:
5682
      oprot.writeFieldBegin('endDate', TType.I64, 2)
5683
      oprot.writeI64(self.endDate)
5684
      oprot.writeFieldEnd()
5685
    oprot.writeFieldStop()
5686
    oprot.writeStructEnd()
5687
 
5688
  def validate(self):
5689
    return
5690
 
5691
 
5692
  def __repr__(self):
5693
    L = ['%s=%r' % (key, value)
5694
      for key, value in self.__dict__.iteritems()]
5695
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5696
 
5697
  def __eq__(self, other):
5698
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5699
 
5700
  def __ne__(self, other):
5701
    return not (self == other)
5702
 
5703
class getEmptyGrnsByDate_result:
5704
  """
5705
  Attributes:
5706
   - success
5707
  """
5708
 
5709
  thrift_spec = (
5710
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5711
  )
5712
 
5713
  def __init__(self, success=None,):
5714
    self.success = success
5715
 
5716
  def read(self, iprot):
5717
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5718
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5719
      return
5720
    iprot.readStructBegin()
5721
    while True:
5722
      (fname, ftype, fid) = iprot.readFieldBegin()
5723
      if ftype == TType.STOP:
5724
        break
5725
      if fid == 0:
5726
        if ftype == TType.LIST:
5727
          self.success = []
5728
          (_etype38, _size35) = iprot.readListBegin()
5729
          for _i39 in xrange(_size35):
5730
            _elem40 = iprot.readI64();
5731
            self.success.append(_elem40)
5732
          iprot.readListEnd()
5733
        else:
5734
          iprot.skip(ftype)
5735
      else:
5736
        iprot.skip(ftype)
5737
      iprot.readFieldEnd()
5738
    iprot.readStructEnd()
5739
 
5740
  def write(self, oprot):
5741
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5742
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5743
      return
5744
    oprot.writeStructBegin('getEmptyGrnsByDate_result')
5745
    if self.success is not None:
5746
      oprot.writeFieldBegin('success', TType.LIST, 0)
5747
      oprot.writeListBegin(TType.I64, len(self.success))
5748
      for iter41 in self.success:
5749
        oprot.writeI64(iter41)
5750
      oprot.writeListEnd()
5751
      oprot.writeFieldEnd()
5752
    oprot.writeFieldStop()
5753
    oprot.writeStructEnd()
5754
 
5755
  def validate(self):
5756
    return
5757
 
5758
 
5759
  def __repr__(self):
5760
    L = ['%s=%r' % (key, value)
5761
      for key, value in self.__dict__.iteritems()]
5762
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5763
 
5764
  def __eq__(self, other):
5765
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5766
 
5767
  def __ne__(self, other):
5768
    return not (self == other)
5769
 
5496 mandeep.dh 5770
class fetchScansPerInvoiceNumber_args:
5771
  """
5772
  Attributes:
5773
   - date
5774
  """
5775
 
5776
  thrift_spec = (
5777
    None, # 0
5778
    (1, TType.I64, 'date', None, None, ), # 1
5779
  )
5780
 
5781
  def __init__(self, date=None,):
5782
    self.date = date
5783
 
5784
  def read(self, iprot):
5785
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5786
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5787
      return
5788
    iprot.readStructBegin()
5789
    while True:
5790
      (fname, ftype, fid) = iprot.readFieldBegin()
5791
      if ftype == TType.STOP:
5792
        break
5793
      if fid == 1:
5794
        if ftype == TType.I64:
5795
          self.date = iprot.readI64();
5796
        else:
5797
          iprot.skip(ftype)
5798
      else:
5799
        iprot.skip(ftype)
5800
      iprot.readFieldEnd()
5801
    iprot.readStructEnd()
5802
 
5803
  def write(self, oprot):
5804
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5805
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5806
      return
5807
    oprot.writeStructBegin('fetchScansPerInvoiceNumber_args')
5808
    if self.date is not None:
5809
      oprot.writeFieldBegin('date', TType.I64, 1)
5810
      oprot.writeI64(self.date)
5811
      oprot.writeFieldEnd()
5812
    oprot.writeFieldStop()
5813
    oprot.writeStructEnd()
5814
 
5815
  def validate(self):
5816
    return
5817
 
5818
 
5819
  def __repr__(self):
5820
    L = ['%s=%r' % (key, value)
5821
      for key, value in self.__dict__.iteritems()]
5822
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5823
 
5824
  def __eq__(self, other):
5825
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5826
 
5827
  def __ne__(self, other):
5828
    return not (self == other)
5829
 
5830
class fetchScansPerInvoiceNumber_result:
5831
  """
5832
  Attributes:
5833
   - success
5834
  """
5835
 
5836
  thrift_spec = (
5837
    (0, TType.LIST, 'success', (TType.STRUCT,(InvoiceScan, InvoiceScan.thrift_spec)), None, ), # 0
5838
  )
5839
 
5840
  def __init__(self, success=None,):
5841
    self.success = success
5842
 
5843
  def read(self, iprot):
5844
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5845
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5846
      return
5847
    iprot.readStructBegin()
5848
    while True:
5849
      (fname, ftype, fid) = iprot.readFieldBegin()
5850
      if ftype == TType.STOP:
5851
        break
5852
      if fid == 0:
5853
        if ftype == TType.LIST:
5854
          self.success = []
10407 amar.kumar 5855
          (_etype45, _size42) = iprot.readListBegin()
5856
          for _i46 in xrange(_size42):
5857
            _elem47 = InvoiceScan()
5858
            _elem47.read(iprot)
5859
            self.success.append(_elem47)
5496 mandeep.dh 5860
          iprot.readListEnd()
5861
        else:
5862
          iprot.skip(ftype)
5863
      else:
5864
        iprot.skip(ftype)
5865
      iprot.readFieldEnd()
5866
    iprot.readStructEnd()
5867
 
5868
  def write(self, oprot):
5869
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5870
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5871
      return
5872
    oprot.writeStructBegin('fetchScansPerInvoiceNumber_result')
5873
    if self.success is not None:
5874
      oprot.writeFieldBegin('success', TType.LIST, 0)
5875
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 5876
      for iter48 in self.success:
5877
        iter48.write(oprot)
5496 mandeep.dh 5878
      oprot.writeListEnd()
5879
      oprot.writeFieldEnd()
5880
    oprot.writeFieldStop()
5881
    oprot.writeStructEnd()
5882
 
5883
  def validate(self):
5884
    return
5885
 
5886
 
5887
  def __repr__(self):
5888
    L = ['%s=%r' % (key, value)
5889
      for key, value in self.__dict__.iteritems()]
5890
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5891
 
5892
  def __eq__(self, other):
5893
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5894
 
5895
  def __ne__(self, other):
5896
    return not (self == other)
5620 mandeep.dh 5897
 
5898
class getInventoryItemFromOrder_args:
5899
  """
5900
  Attributes:
5901
   - orderId
5902
  """
5903
 
5904
  thrift_spec = (
5905
    None, # 0
5906
    (1, TType.I64, 'orderId', None, None, ), # 1
5907
  )
5908
 
5909
  def __init__(self, orderId=None,):
5910
    self.orderId = orderId
5911
 
5912
  def read(self, iprot):
5913
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5914
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5915
      return
5916
    iprot.readStructBegin()
5917
    while True:
5918
      (fname, ftype, fid) = iprot.readFieldBegin()
5919
      if ftype == TType.STOP:
5920
        break
5921
      if fid == 1:
5922
        if ftype == TType.I64:
5923
          self.orderId = iprot.readI64();
5924
        else:
5925
          iprot.skip(ftype)
5926
      else:
5927
        iprot.skip(ftype)
5928
      iprot.readFieldEnd()
5929
    iprot.readStructEnd()
5930
 
5931
  def write(self, oprot):
5932
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5933
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5934
      return
5935
    oprot.writeStructBegin('getInventoryItemFromOrder_args')
5936
    if self.orderId is not None:
5937
      oprot.writeFieldBegin('orderId', TType.I64, 1)
5938
      oprot.writeI64(self.orderId)
5939
      oprot.writeFieldEnd()
5940
    oprot.writeFieldStop()
5941
    oprot.writeStructEnd()
5942
 
5943
  def validate(self):
5944
    return
5945
 
5946
 
5947
  def __repr__(self):
5948
    L = ['%s=%r' % (key, value)
5949
      for key, value in self.__dict__.iteritems()]
5950
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5951
 
5952
  def __eq__(self, other):
5953
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5954
 
5955
  def __ne__(self, other):
5956
    return not (self == other)
5957
 
5958
class getInventoryItemFromOrder_result:
5959
  """
5960
  Attributes:
5961
   - success
5962
   - we
5963
  """
5964
 
5965
  thrift_spec = (
5966
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
5967
    (1, TType.STRUCT, 'we', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
5968
  )
5969
 
5970
  def __init__(self, success=None, we=None,):
5971
    self.success = success
5972
    self.we = we
5973
 
5974
  def read(self, iprot):
5975
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5976
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5977
      return
5978
    iprot.readStructBegin()
5979
    while True:
5980
      (fname, ftype, fid) = iprot.readFieldBegin()
5981
      if ftype == TType.STOP:
5982
        break
5983
      if fid == 0:
5984
        if ftype == TType.STRUCT:
5985
          self.success = InventoryItem()
5986
          self.success.read(iprot)
5987
        else:
5988
          iprot.skip(ftype)
5989
      elif fid == 1:
5990
        if ftype == TType.STRUCT:
5991
          self.we = WarehouseServiceException()
5992
          self.we.read(iprot)
5993
        else:
5994
          iprot.skip(ftype)
5995
      else:
5996
        iprot.skip(ftype)
5997
      iprot.readFieldEnd()
5998
    iprot.readStructEnd()
5999
 
6000
  def write(self, oprot):
6001
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6002
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6003
      return
6004
    oprot.writeStructBegin('getInventoryItemFromOrder_result')
6005
    if self.success is not None:
6006
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6007
      self.success.write(oprot)
6008
      oprot.writeFieldEnd()
6009
    if self.we is not None:
6010
      oprot.writeFieldBegin('we', TType.STRUCT, 1)
6011
      self.we.write(oprot)
6012
      oprot.writeFieldEnd()
6013
    oprot.writeFieldStop()
6014
    oprot.writeStructEnd()
6015
 
6016
  def validate(self):
6017
    return
6018
 
6019
 
6020
  def __repr__(self):
6021
    L = ['%s=%r' % (key, value)
6022
      for key, value in self.__dict__.iteritems()]
6023
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6024
 
6025
  def __eq__(self, other):
6026
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6027
 
6028
  def __ne__(self, other):
6029
    return not (self == other)
5711 mandeep.dh 6030
 
6031
class getInventoryAge_args:
6032
 
6033
  thrift_spec = (
6034
  )
6035
 
6036
  def read(self, iprot):
6037
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6038
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6039
      return
6040
    iprot.readStructBegin()
6041
    while True:
6042
      (fname, ftype, fid) = iprot.readFieldBegin()
6043
      if ftype == TType.STOP:
6044
        break
6045
      else:
6046
        iprot.skip(ftype)
6047
      iprot.readFieldEnd()
6048
    iprot.readStructEnd()
6049
 
6050
  def write(self, oprot):
6051
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6052
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6053
      return
6054
    oprot.writeStructBegin('getInventoryAge_args')
6055
    oprot.writeFieldStop()
6056
    oprot.writeStructEnd()
6057
 
6058
  def validate(self):
6059
    return
6060
 
6061
 
6062
  def __repr__(self):
6063
    L = ['%s=%r' % (key, value)
6064
      for key, value in self.__dict__.iteritems()]
6065
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6066
 
6067
  def __eq__(self, other):
6068
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6069
 
6070
  def __ne__(self, other):
6071
    return not (self == other)
6072
 
6073
class getInventoryAge_result:
6074
  """
6075
  Attributes:
6076
   - success
6077
  """
6078
 
6079
  thrift_spec = (
6080
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAge, InventoryAge.thrift_spec)), None, ), # 0
6081
  )
6082
 
6083
  def __init__(self, success=None,):
6084
    self.success = success
6085
 
6086
  def read(self, iprot):
6087
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6088
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6089
      return
6090
    iprot.readStructBegin()
6091
    while True:
6092
      (fname, ftype, fid) = iprot.readFieldBegin()
6093
      if ftype == TType.STOP:
6094
        break
6095
      if fid == 0:
6096
        if ftype == TType.LIST:
6097
          self.success = []
10407 amar.kumar 6098
          (_etype52, _size49) = iprot.readListBegin()
6099
          for _i53 in xrange(_size49):
6100
            _elem54 = InventoryAge()
6101
            _elem54.read(iprot)
6102
            self.success.append(_elem54)
5711 mandeep.dh 6103
          iprot.readListEnd()
6104
        else:
6105
          iprot.skip(ftype)
6106
      else:
6107
        iprot.skip(ftype)
6108
      iprot.readFieldEnd()
6109
    iprot.readStructEnd()
6110
 
6111
  def write(self, oprot):
6112
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6113
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6114
      return
6115
    oprot.writeStructBegin('getInventoryAge_result')
6116
    if self.success is not None:
6117
      oprot.writeFieldBegin('success', TType.LIST, 0)
6118
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6119
      for iter55 in self.success:
6120
        iter55.write(oprot)
5711 mandeep.dh 6121
      oprot.writeListEnd()
6122
      oprot.writeFieldEnd()
6123
    oprot.writeFieldStop()
6124
    oprot.writeStructEnd()
6125
 
6126
  def validate(self):
6127
    return
6128
 
6129
 
6130
  def __repr__(self):
6131
    L = ['%s=%r' % (key, value)
6132
      for key, value in self.__dict__.iteritems()]
6133
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6134
 
6135
  def __eq__(self, other):
6136
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6137
 
6138
  def __ne__(self, other):
6139
    return not (self == other)
6361 rajveer 6140
 
6141
class getInventoryScansForItem_args:
6142
  """
6143
  Attributes:
6144
   - itemId
6145
   - fromDate
6146
   - toDate
6147
  """
6148
 
6149
  thrift_spec = (
6150
    None, # 0
6151
    (1, TType.I64, 'itemId', None, None, ), # 1
6152
    (2, TType.I64, 'fromDate', None, None, ), # 2
6153
    (3, TType.I64, 'toDate', None, None, ), # 3
6154
  )
6155
 
6156
  def __init__(self, itemId=None, fromDate=None, toDate=None,):
6157
    self.itemId = itemId
6158
    self.fromDate = fromDate
6159
    self.toDate = toDate
6160
 
6161
  def read(self, iprot):
6162
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6163
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6164
      return
6165
    iprot.readStructBegin()
6166
    while True:
6167
      (fname, ftype, fid) = iprot.readFieldBegin()
6168
      if ftype == TType.STOP:
6169
        break
6170
      if fid == 1:
6171
        if ftype == TType.I64:
6172
          self.itemId = iprot.readI64();
6173
        else:
6174
          iprot.skip(ftype)
6175
      elif fid == 2:
6176
        if ftype == TType.I64:
6177
          self.fromDate = iprot.readI64();
6178
        else:
6179
          iprot.skip(ftype)
6180
      elif fid == 3:
6181
        if ftype == TType.I64:
6182
          self.toDate = iprot.readI64();
6183
        else:
6184
          iprot.skip(ftype)
6185
      else:
6186
        iprot.skip(ftype)
6187
      iprot.readFieldEnd()
6188
    iprot.readStructEnd()
6189
 
6190
  def write(self, oprot):
6191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6193
      return
6194
    oprot.writeStructBegin('getInventoryScansForItem_args')
6195
    if self.itemId is not None:
6196
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6197
      oprot.writeI64(self.itemId)
6198
      oprot.writeFieldEnd()
6199
    if self.fromDate is not None:
6200
      oprot.writeFieldBegin('fromDate', TType.I64, 2)
6201
      oprot.writeI64(self.fromDate)
6202
      oprot.writeFieldEnd()
6203
    if self.toDate is not None:
6204
      oprot.writeFieldBegin('toDate', TType.I64, 3)
6205
      oprot.writeI64(self.toDate)
6206
      oprot.writeFieldEnd()
6207
    oprot.writeFieldStop()
6208
    oprot.writeStructEnd()
6209
 
6210
  def validate(self):
6211
    return
6212
 
6213
 
6214
  def __repr__(self):
6215
    L = ['%s=%r' % (key, value)
6216
      for key, value in self.__dict__.iteritems()]
6217
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6218
 
6219
  def __eq__(self, other):
6220
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6221
 
6222
  def __ne__(self, other):
6223
    return not (self == other)
6224
 
6225
class getInventoryScansForItem_result:
6226
  """
6227
  Attributes:
6228
   - success
6229
  """
6230
 
6231
  thrift_spec = (
6232
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
6233
  )
6234
 
6235
  def __init__(self, success=None,):
6236
    self.success = success
6237
 
6238
  def read(self, iprot):
6239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6241
      return
6242
    iprot.readStructBegin()
6243
    while True:
6244
      (fname, ftype, fid) = iprot.readFieldBegin()
6245
      if ftype == TType.STOP:
6246
        break
6247
      if fid == 0:
6248
        if ftype == TType.LIST:
6249
          self.success = []
10407 amar.kumar 6250
          (_etype59, _size56) = iprot.readListBegin()
6251
          for _i60 in xrange(_size56):
6252
            _elem61 = Scan()
6253
            _elem61.read(iprot)
6254
            self.success.append(_elem61)
6361 rajveer 6255
          iprot.readListEnd()
6256
        else:
6257
          iprot.skip(ftype)
6258
      else:
6259
        iprot.skip(ftype)
6260
      iprot.readFieldEnd()
6261
    iprot.readStructEnd()
6262
 
6263
  def write(self, oprot):
6264
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6265
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6266
      return
6267
    oprot.writeStructBegin('getInventoryScansForItem_result')
6268
    if self.success is not None:
6269
      oprot.writeFieldBegin('success', TType.LIST, 0)
6270
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6271
      for iter62 in self.success:
6272
        iter62.write(oprot)
6361 rajveer 6273
      oprot.writeListEnd()
6274
      oprot.writeFieldEnd()
6275
    oprot.writeFieldStop()
6276
    oprot.writeStructEnd()
6277
 
6278
  def validate(self):
6279
    return
6280
 
6281
 
6282
  def __repr__(self):
6283
    L = ['%s=%r' % (key, value)
6284
      for key, value in self.__dict__.iteritems()]
6285
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6286
 
6287
  def __eq__(self, other):
6288
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6289
 
6290
  def __ne__(self, other):
6291
    return not (self == other)
6292
 
6293
class getScanRecordsForSerialNumber_args:
6294
  """
6295
  Attributes:
6296
   - serialNumber
6297
  """
6298
 
6299
  thrift_spec = (
6300
    None, # 0
7410 amar.kumar 6301
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
6361 rajveer 6302
  )
6303
 
6304
  def __init__(self, serialNumber=None,):
6305
    self.serialNumber = serialNumber
6306
 
6307
  def read(self, iprot):
6308
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6309
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6310
      return
6311
    iprot.readStructBegin()
6312
    while True:
6313
      (fname, ftype, fid) = iprot.readFieldBegin()
6314
      if ftype == TType.STOP:
6315
        break
6316
      if fid == 1:
7410 amar.kumar 6317
        if ftype == TType.STRING:
6318
          self.serialNumber = iprot.readString();
6361 rajveer 6319
        else:
6320
          iprot.skip(ftype)
6321
      else:
6322
        iprot.skip(ftype)
6323
      iprot.readFieldEnd()
6324
    iprot.readStructEnd()
6325
 
6326
  def write(self, oprot):
6327
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6328
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6329
      return
6330
    oprot.writeStructBegin('getScanRecordsForSerialNumber_args')
6331
    if self.serialNumber is not None:
7410 amar.kumar 6332
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
6333
      oprot.writeString(self.serialNumber)
6361 rajveer 6334
      oprot.writeFieldEnd()
6335
    oprot.writeFieldStop()
6336
    oprot.writeStructEnd()
6337
 
6338
  def validate(self):
6339
    return
6340
 
6341
 
6342
  def __repr__(self):
6343
    L = ['%s=%r' % (key, value)
6344
      for key, value in self.__dict__.iteritems()]
6345
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6346
 
6347
  def __eq__(self, other):
6348
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6349
 
6350
  def __ne__(self, other):
6351
    return not (self == other)
6352
 
6353
class getScanRecordsForSerialNumber_result:
6354
  """
6355
  Attributes:
6356
   - success
6357
  """
6358
 
6359
  thrift_spec = (
6360
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
6361
  )
6362
 
6363
  def __init__(self, success=None,):
6364
    self.success = success
6365
 
6366
  def read(self, iprot):
6367
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6368
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6369
      return
6370
    iprot.readStructBegin()
6371
    while True:
6372
      (fname, ftype, fid) = iprot.readFieldBegin()
6373
      if ftype == TType.STOP:
6374
        break
6375
      if fid == 0:
6376
        if ftype == TType.LIST:
6377
          self.success = []
10407 amar.kumar 6378
          (_etype66, _size63) = iprot.readListBegin()
6379
          for _i67 in xrange(_size63):
6380
            _elem68 = Scan()
6381
            _elem68.read(iprot)
6382
            self.success.append(_elem68)
6361 rajveer 6383
          iprot.readListEnd()
6384
        else:
6385
          iprot.skip(ftype)
6386
      else:
6387
        iprot.skip(ftype)
6388
      iprot.readFieldEnd()
6389
    iprot.readStructEnd()
6390
 
6391
  def write(self, oprot):
6392
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6393
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6394
      return
6395
    oprot.writeStructBegin('getScanRecordsForSerialNumber_result')
6396
    if self.success is not None:
6397
      oprot.writeFieldBegin('success', TType.LIST, 0)
6398
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6399
      for iter69 in self.success:
6400
        iter69.write(oprot)
6361 rajveer 6401
      oprot.writeListEnd()
6402
      oprot.writeFieldEnd()
6403
    oprot.writeFieldStop()
6404
    oprot.writeStructEnd()
6405
 
6406
  def validate(self):
6407
    return
6408
 
6409
 
6410
  def __repr__(self):
6411
    L = ['%s=%r' % (key, value)
6412
      for key, value in self.__dict__.iteritems()]
6413
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6414
 
6415
  def __eq__(self, other):
6416
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6417
 
6418
  def __ne__(self, other):
6419
    return not (self == other)
6467 amar.kumar 6420
 
6421
class scanForPurchaseReturn_args:
6422
  """
6423
  Attributes:
6424
   - saleReturnItems
6425
   - vendorId
7718 amar.kumar 6426
   - billingWarehouseId
6467 amar.kumar 6427
  """
6428
 
6429
  thrift_spec = (
6430
    None, # 0
6431
    (1, TType.LIST, 'saleReturnItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
6432
    (2, TType.I64, 'vendorId', None, None, ), # 2
7718 amar.kumar 6433
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
6467 amar.kumar 6434
  )
6435
 
7718 amar.kumar 6436
  def __init__(self, saleReturnItems=None, vendorId=None, billingWarehouseId=None,):
6467 amar.kumar 6437
    self.saleReturnItems = saleReturnItems
6438
    self.vendorId = vendorId
7718 amar.kumar 6439
    self.billingWarehouseId = billingWarehouseId
6467 amar.kumar 6440
 
6441
  def read(self, iprot):
6442
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6443
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6444
      return
6445
    iprot.readStructBegin()
6446
    while True:
6447
      (fname, ftype, fid) = iprot.readFieldBegin()
6448
      if ftype == TType.STOP:
6449
        break
6450
      if fid == 1:
6451
        if ftype == TType.LIST:
6452
          self.saleReturnItems = []
10407 amar.kumar 6453
          (_etype73, _size70) = iprot.readListBegin()
6454
          for _i74 in xrange(_size70):
6455
            _elem75 = InventoryItem()
6456
            _elem75.read(iprot)
6457
            self.saleReturnItems.append(_elem75)
6467 amar.kumar 6458
          iprot.readListEnd()
6459
        else:
6460
          iprot.skip(ftype)
6461
      elif fid == 2:
6462
        if ftype == TType.I64:
6463
          self.vendorId = iprot.readI64();
6464
        else:
6465
          iprot.skip(ftype)
7718 amar.kumar 6466
      elif fid == 3:
6467
        if ftype == TType.I64:
6468
          self.billingWarehouseId = iprot.readI64();
6469
        else:
6470
          iprot.skip(ftype)
6467 amar.kumar 6471
      else:
6472
        iprot.skip(ftype)
6473
      iprot.readFieldEnd()
6474
    iprot.readStructEnd()
6475
 
6476
  def write(self, oprot):
6477
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6478
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6479
      return
6480
    oprot.writeStructBegin('scanForPurchaseReturn_args')
6481
    if self.saleReturnItems is not None:
6482
      oprot.writeFieldBegin('saleReturnItems', TType.LIST, 1)
6483
      oprot.writeListBegin(TType.STRUCT, len(self.saleReturnItems))
10407 amar.kumar 6484
      for iter76 in self.saleReturnItems:
6485
        iter76.write(oprot)
6467 amar.kumar 6486
      oprot.writeListEnd()
6487
      oprot.writeFieldEnd()
6488
    if self.vendorId is not None:
6489
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6490
      oprot.writeI64(self.vendorId)
6491
      oprot.writeFieldEnd()
7718 amar.kumar 6492
    if self.billingWarehouseId is not None:
6493
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
6494
      oprot.writeI64(self.billingWarehouseId)
6495
      oprot.writeFieldEnd()
6467 amar.kumar 6496
    oprot.writeFieldStop()
6497
    oprot.writeStructEnd()
6498
 
6499
  def validate(self):
6500
    return
6501
 
6502
 
6503
  def __repr__(self):
6504
    L = ['%s=%r' % (key, value)
6505
      for key, value in self.__dict__.iteritems()]
6506
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6507
 
6508
  def __eq__(self, other):
6509
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6510
 
6511
  def __ne__(self, other):
6512
    return not (self == other)
6513
 
6514
class scanForPurchaseReturn_result:
6515
  """
6516
  Attributes:
10864 manish.sha 6517
   - success
6467 amar.kumar 6518
   - ex
6519
  """
6520
 
6521
  thrift_spec = (
10864 manish.sha 6522
    (0, TType.I64, 'success', None, None, ), # 0
6467 amar.kumar 6523
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6524
  )
6525
 
10864 manish.sha 6526
  def __init__(self, success=None, ex=None,):
6527
    self.success = success
6467 amar.kumar 6528
    self.ex = ex
6529
 
6530
  def read(self, iprot):
6531
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6532
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6533
      return
6534
    iprot.readStructBegin()
6535
    while True:
6536
      (fname, ftype, fid) = iprot.readFieldBegin()
6537
      if ftype == TType.STOP:
6538
        break
10864 manish.sha 6539
      if fid == 0:
6540
        if ftype == TType.I64:
6541
          self.success = iprot.readI64();
6542
        else:
6543
          iprot.skip(ftype)
6544
      elif fid == 1:
6467 amar.kumar 6545
        if ftype == TType.STRUCT:
6546
          self.ex = WarehouseServiceException()
6547
          self.ex.read(iprot)
6548
        else:
6549
          iprot.skip(ftype)
6550
      else:
6551
        iprot.skip(ftype)
6552
      iprot.readFieldEnd()
6553
    iprot.readStructEnd()
6554
 
6555
  def write(self, oprot):
6556
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6557
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6558
      return
6559
    oprot.writeStructBegin('scanForPurchaseReturn_result')
10864 manish.sha 6560
    if self.success is not None:
6561
      oprot.writeFieldBegin('success', TType.I64, 0)
6562
      oprot.writeI64(self.success)
6563
      oprot.writeFieldEnd()
6467 amar.kumar 6564
    if self.ex is not None:
6565
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6566
      self.ex.write(oprot)
6567
      oprot.writeFieldEnd()
6568
    oprot.writeFieldStop()
6569
    oprot.writeStructEnd()
6570
 
6571
  def validate(self):
6572
    return
6573
 
6574
 
6575
  def __repr__(self):
6576
    L = ['%s=%r' % (key, value)
6577
      for key, value in self.__dict__.iteritems()]
6578
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6579
 
6580
  def __eq__(self, other):
6581
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6582
 
6583
  def __ne__(self, other):
6584
    return not (self == other)
6630 amar.kumar 6585
 
6586
class scanForLostItem_args:
6587
  """
6588
  Attributes:
6589
   - lostItems
6590
   - vendorId
7718 amar.kumar 6591
   - billingWarehouseId
6630 amar.kumar 6592
  """
6593
 
6594
  thrift_spec = (
6595
    None, # 0
6596
    (1, TType.LIST, 'lostItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
6597
    (2, TType.I64, 'vendorId', None, None, ), # 2
7718 amar.kumar 6598
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
6630 amar.kumar 6599
  )
6600
 
7718 amar.kumar 6601
  def __init__(self, lostItems=None, vendorId=None, billingWarehouseId=None,):
6630 amar.kumar 6602
    self.lostItems = lostItems
6603
    self.vendorId = vendorId
7718 amar.kumar 6604
    self.billingWarehouseId = billingWarehouseId
6630 amar.kumar 6605
 
6606
  def read(self, iprot):
6607
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6608
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6609
      return
6610
    iprot.readStructBegin()
6611
    while True:
6612
      (fname, ftype, fid) = iprot.readFieldBegin()
6613
      if ftype == TType.STOP:
6614
        break
6615
      if fid == 1:
6616
        if ftype == TType.LIST:
6617
          self.lostItems = []
10407 amar.kumar 6618
          (_etype80, _size77) = iprot.readListBegin()
6619
          for _i81 in xrange(_size77):
6620
            _elem82 = InventoryItem()
6621
            _elem82.read(iprot)
6622
            self.lostItems.append(_elem82)
6630 amar.kumar 6623
          iprot.readListEnd()
6624
        else:
6625
          iprot.skip(ftype)
6626
      elif fid == 2:
6627
        if ftype == TType.I64:
6628
          self.vendorId = iprot.readI64();
6629
        else:
6630
          iprot.skip(ftype)
7718 amar.kumar 6631
      elif fid == 3:
6632
        if ftype == TType.I64:
6633
          self.billingWarehouseId = iprot.readI64();
6634
        else:
6635
          iprot.skip(ftype)
6630 amar.kumar 6636
      else:
6637
        iprot.skip(ftype)
6638
      iprot.readFieldEnd()
6639
    iprot.readStructEnd()
6640
 
6641
  def write(self, oprot):
6642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6644
      return
6645
    oprot.writeStructBegin('scanForLostItem_args')
6646
    if self.lostItems is not None:
6647
      oprot.writeFieldBegin('lostItems', TType.LIST, 1)
6648
      oprot.writeListBegin(TType.STRUCT, len(self.lostItems))
10407 amar.kumar 6649
      for iter83 in self.lostItems:
6650
        iter83.write(oprot)
6630 amar.kumar 6651
      oprot.writeListEnd()
6652
      oprot.writeFieldEnd()
6653
    if self.vendorId is not None:
6654
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6655
      oprot.writeI64(self.vendorId)
6656
      oprot.writeFieldEnd()
7718 amar.kumar 6657
    if self.billingWarehouseId is not None:
6658
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
6659
      oprot.writeI64(self.billingWarehouseId)
6660
      oprot.writeFieldEnd()
6630 amar.kumar 6661
    oprot.writeFieldStop()
6662
    oprot.writeStructEnd()
6663
 
6664
  def validate(self):
6665
    return
6666
 
6667
 
6668
  def __repr__(self):
6669
    L = ['%s=%r' % (key, value)
6670
      for key, value in self.__dict__.iteritems()]
6671
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6672
 
6673
  def __eq__(self, other):
6674
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6675
 
6676
  def __ne__(self, other):
6677
    return not (self == other)
6678
 
6679
class scanForLostItem_result:
6680
  """
6681
  Attributes:
6682
   - ex
6683
  """
6684
 
6685
  thrift_spec = (
6686
    None, # 0
6687
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6688
  )
6689
 
6690
  def __init__(self, ex=None,):
6691
    self.ex = ex
6692
 
6693
  def read(self, iprot):
6694
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6695
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6696
      return
6697
    iprot.readStructBegin()
6698
    while True:
6699
      (fname, ftype, fid) = iprot.readFieldBegin()
6700
      if ftype == TType.STOP:
6701
        break
6702
      if fid == 1:
6703
        if ftype == TType.STRUCT:
6704
          self.ex = WarehouseServiceException()
6705
          self.ex.read(iprot)
6706
        else:
6707
          iprot.skip(ftype)
6708
      else:
6709
        iprot.skip(ftype)
6710
      iprot.readFieldEnd()
6711
    iprot.readStructEnd()
6712
 
6713
  def write(self, oprot):
6714
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6715
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6716
      return
6717
    oprot.writeStructBegin('scanForLostItem_result')
6718
    if self.ex is not None:
6719
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6720
      self.ex.write(oprot)
6721
      oprot.writeFieldEnd()
6722
    oprot.writeFieldStop()
6723
    oprot.writeStructEnd()
6724
 
6725
  def validate(self):
6726
    return
6727
 
6728
 
6729
  def __repr__(self):
6730
    L = ['%s=%r' % (key, value)
6731
      for key, value in self.__dict__.iteritems()]
6732
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6733
 
6734
  def __eq__(self, other):
6735
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6736
 
6737
  def __ne__(self, other):
6738
    return not (self == other)
6739
 
6740
class getCurrentSerializedInventoryByScans_args:
7715 vikram.rag 6741
  """
6742
  Attributes:
6743
   - physicalWarehouseId
6744
  """
6630 amar.kumar 6745
 
6746
  thrift_spec = (
7715 vikram.rag 6747
    None, # 0
6748
    (1, TType.I64, 'physicalWarehouseId', None, None, ), # 1
6630 amar.kumar 6749
  )
6750
 
7715 vikram.rag 6751
  def __init__(self, physicalWarehouseId=None,):
6752
    self.physicalWarehouseId = physicalWarehouseId
6753
 
6630 amar.kumar 6754
  def read(self, iprot):
6755
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6756
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6757
      return
6758
    iprot.readStructBegin()
6759
    while True:
6760
      (fname, ftype, fid) = iprot.readFieldBegin()
6761
      if ftype == TType.STOP:
6762
        break
7715 vikram.rag 6763
      if fid == 1:
6764
        if ftype == TType.I64:
6765
          self.physicalWarehouseId = iprot.readI64();
6766
        else:
6767
          iprot.skip(ftype)
6630 amar.kumar 6768
      else:
6769
        iprot.skip(ftype)
6770
      iprot.readFieldEnd()
6771
    iprot.readStructEnd()
6772
 
6773
  def write(self, oprot):
6774
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6775
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6776
      return
6777
    oprot.writeStructBegin('getCurrentSerializedInventoryByScans_args')
7715 vikram.rag 6778
    if self.physicalWarehouseId is not None:
6779
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 1)
6780
      oprot.writeI64(self.physicalWarehouseId)
6781
      oprot.writeFieldEnd()
6630 amar.kumar 6782
    oprot.writeFieldStop()
6783
    oprot.writeStructEnd()
6784
 
6785
  def validate(self):
6786
    return
6787
 
6788
 
6789
  def __repr__(self):
6790
    L = ['%s=%r' % (key, value)
6791
      for key, value in self.__dict__.iteritems()]
6792
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6793
 
6794
  def __eq__(self, other):
6795
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6796
 
6797
  def __ne__(self, other):
6798
    return not (self == other)
6799
 
6800
class getCurrentSerializedInventoryByScans_result:
6801
  """
6802
  Attributes:
6803
   - success
6804
  """
6805
 
6806
  thrift_spec = (
6807
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
6808
  )
6809
 
6810
  def __init__(self, success=None,):
6811
    self.success = success
6812
 
6813
  def read(self, iprot):
6814
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6815
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6816
      return
6817
    iprot.readStructBegin()
6818
    while True:
6819
      (fname, ftype, fid) = iprot.readFieldBegin()
6820
      if ftype == TType.STOP:
6821
        break
6822
      if fid == 0:
6823
        if ftype == TType.LIST:
6824
          self.success = []
10407 amar.kumar 6825
          (_etype87, _size84) = iprot.readListBegin()
6826
          for _i88 in xrange(_size84):
6827
            _elem89 = InventoryAvailability()
6828
            _elem89.read(iprot)
6829
            self.success.append(_elem89)
6630 amar.kumar 6830
          iprot.readListEnd()
6831
        else:
6832
          iprot.skip(ftype)
6833
      else:
6834
        iprot.skip(ftype)
6835
      iprot.readFieldEnd()
6836
    iprot.readStructEnd()
6837
 
6838
  def write(self, oprot):
6839
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6840
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6841
      return
6842
    oprot.writeStructBegin('getCurrentSerializedInventoryByScans_result')
6843
    if self.success is not None:
6844
      oprot.writeFieldBegin('success', TType.LIST, 0)
6845
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6846
      for iter90 in self.success:
6847
        iter90.write(oprot)
6630 amar.kumar 6848
      oprot.writeListEnd()
6849
      oprot.writeFieldEnd()
6850
    oprot.writeFieldStop()
6851
    oprot.writeStructEnd()
6852
 
6853
  def validate(self):
6854
    return
6855
 
6856
 
6857
  def __repr__(self):
6858
    L = ['%s=%r' % (key, value)
6859
      for key, value in self.__dict__.iteritems()]
6860
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6861
 
6862
  def __eq__(self, other):
6863
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6864
 
6865
  def __ne__(self, other):
6866
    return not (self == other)
6867
 
6868
class getCurrentNonSerializedInventoryByScans_args:
7715 vikram.rag 6869
  """
6870
  Attributes:
6871
   - physicalWarehouseId
6872
  """
6630 amar.kumar 6873
 
6874
  thrift_spec = (
7715 vikram.rag 6875
    None, # 0
6876
    (1, TType.I64, 'physicalWarehouseId', None, None, ), # 1
6630 amar.kumar 6877
  )
6878
 
7715 vikram.rag 6879
  def __init__(self, physicalWarehouseId=None,):
6880
    self.physicalWarehouseId = physicalWarehouseId
6881
 
6630 amar.kumar 6882
  def read(self, iprot):
6883
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6884
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6885
      return
6886
    iprot.readStructBegin()
6887
    while True:
6888
      (fname, ftype, fid) = iprot.readFieldBegin()
6889
      if ftype == TType.STOP:
6890
        break
7715 vikram.rag 6891
      if fid == 1:
6892
        if ftype == TType.I64:
6893
          self.physicalWarehouseId = iprot.readI64();
6894
        else:
6895
          iprot.skip(ftype)
6630 amar.kumar 6896
      else:
6897
        iprot.skip(ftype)
6898
      iprot.readFieldEnd()
6899
    iprot.readStructEnd()
6900
 
6901
  def write(self, oprot):
6902
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6903
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6904
      return
6905
    oprot.writeStructBegin('getCurrentNonSerializedInventoryByScans_args')
7715 vikram.rag 6906
    if self.physicalWarehouseId is not None:
6907
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 1)
6908
      oprot.writeI64(self.physicalWarehouseId)
6909
      oprot.writeFieldEnd()
6630 amar.kumar 6910
    oprot.writeFieldStop()
6911
    oprot.writeStructEnd()
6912
 
6913
  def validate(self):
6914
    return
6915
 
6916
 
6917
  def __repr__(self):
6918
    L = ['%s=%r' % (key, value)
6919
      for key, value in self.__dict__.iteritems()]
6920
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6921
 
6922
  def __eq__(self, other):
6923
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6924
 
6925
  def __ne__(self, other):
6926
    return not (self == other)
6927
 
6928
class getCurrentNonSerializedInventoryByScans_result:
6929
  """
6930
  Attributes:
6931
   - success
6932
  """
6933
 
6934
  thrift_spec = (
6935
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
6936
  )
6937
 
6938
  def __init__(self, success=None,):
6939
    self.success = success
6940
 
6941
  def read(self, iprot):
6942
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6943
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6944
      return
6945
    iprot.readStructBegin()
6946
    while True:
6947
      (fname, ftype, fid) = iprot.readFieldBegin()
6948
      if ftype == TType.STOP:
6949
        break
6950
      if fid == 0:
6951
        if ftype == TType.LIST:
6952
          self.success = []
10407 amar.kumar 6953
          (_etype94, _size91) = iprot.readListBegin()
6954
          for _i95 in xrange(_size91):
6955
            _elem96 = InventoryAvailability()
6956
            _elem96.read(iprot)
6957
            self.success.append(_elem96)
6630 amar.kumar 6958
          iprot.readListEnd()
6959
        else:
6960
          iprot.skip(ftype)
6961
      else:
6962
        iprot.skip(ftype)
6963
      iprot.readFieldEnd()
6964
    iprot.readStructEnd()
6965
 
6966
  def write(self, oprot):
6967
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6968
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6969
      return
6970
    oprot.writeStructBegin('getCurrentNonSerializedInventoryByScans_result')
6971
    if self.success is not None:
6972
      oprot.writeFieldBegin('success', TType.LIST, 0)
6973
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6974
      for iter97 in self.success:
6975
        iter97.write(oprot)
6630 amar.kumar 6976
      oprot.writeListEnd()
6977
      oprot.writeFieldEnd()
6978
    oprot.writeFieldStop()
6979
    oprot.writeStructEnd()
6980
 
6981
  def validate(self):
6982
    return
6983
 
6984
 
6985
  def __repr__(self):
6986
    L = ['%s=%r' % (key, value)
6987
      for key, value in self.__dict__.iteritems()]
6988
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6989
 
6990
  def __eq__(self, other):
6991
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6992
 
6993
  def __ne__(self, other):
6994
    return not (self == other)
6762 amar.kumar 6995
 
6996
class getHistoricSerializedInventoryByScans_args:
6997
  """
6998
  Attributes:
6999
   - date
7000
  """
7001
 
7002
  thrift_spec = (
7003
    None, # 0
7004
    (1, TType.I64, 'date', None, None, ), # 1
7005
  )
7006
 
7007
  def __init__(self, date=None,):
7008
    self.date = date
7009
 
7010
  def read(self, iprot):
7011
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7012
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7013
      return
7014
    iprot.readStructBegin()
7015
    while True:
7016
      (fname, ftype, fid) = iprot.readFieldBegin()
7017
      if ftype == TType.STOP:
7018
        break
7019
      if fid == 1:
7020
        if ftype == TType.I64:
7021
          self.date = iprot.readI64();
7022
        else:
7023
          iprot.skip(ftype)
7024
      else:
7025
        iprot.skip(ftype)
7026
      iprot.readFieldEnd()
7027
    iprot.readStructEnd()
7028
 
7029
  def write(self, oprot):
7030
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7031
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7032
      return
7033
    oprot.writeStructBegin('getHistoricSerializedInventoryByScans_args')
7034
    if self.date is not None:
7035
      oprot.writeFieldBegin('date', TType.I64, 1)
7036
      oprot.writeI64(self.date)
7037
      oprot.writeFieldEnd()
7038
    oprot.writeFieldStop()
7039
    oprot.writeStructEnd()
7040
 
7041
  def validate(self):
7042
    return
7043
 
7044
 
7045
  def __repr__(self):
7046
    L = ['%s=%r' % (key, value)
7047
      for key, value in self.__dict__.iteritems()]
7048
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7049
 
7050
  def __eq__(self, other):
7051
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7052
 
7053
  def __ne__(self, other):
7054
    return not (self == other)
7055
 
7056
class getHistoricSerializedInventoryByScans_result:
7057
  """
7058
  Attributes:
7059
   - success
7060
  """
7061
 
7062
  thrift_spec = (
7063
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7064
  )
7065
 
7066
  def __init__(self, success=None,):
7067
    self.success = success
7068
 
7069
  def read(self, iprot):
7070
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7071
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7072
      return
7073
    iprot.readStructBegin()
7074
    while True:
7075
      (fname, ftype, fid) = iprot.readFieldBegin()
7076
      if ftype == TType.STOP:
7077
        break
7078
      if fid == 0:
7079
        if ftype == TType.LIST:
7080
          self.success = []
10407 amar.kumar 7081
          (_etype101, _size98) = iprot.readListBegin()
7082
          for _i102 in xrange(_size98):
7083
            _elem103 = InventoryAvailability()
7084
            _elem103.read(iprot)
7085
            self.success.append(_elem103)
6762 amar.kumar 7086
          iprot.readListEnd()
7087
        else:
7088
          iprot.skip(ftype)
7089
      else:
7090
        iprot.skip(ftype)
7091
      iprot.readFieldEnd()
7092
    iprot.readStructEnd()
7093
 
7094
  def write(self, oprot):
7095
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7096
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7097
      return
7098
    oprot.writeStructBegin('getHistoricSerializedInventoryByScans_result')
7099
    if self.success is not None:
7100
      oprot.writeFieldBegin('success', TType.LIST, 0)
7101
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7102
      for iter104 in self.success:
7103
        iter104.write(oprot)
6762 amar.kumar 7104
      oprot.writeListEnd()
7105
      oprot.writeFieldEnd()
7106
    oprot.writeFieldStop()
7107
    oprot.writeStructEnd()
7108
 
7109
  def validate(self):
7110
    return
7111
 
7112
 
7113
  def __repr__(self):
7114
    L = ['%s=%r' % (key, value)
7115
      for key, value in self.__dict__.iteritems()]
7116
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7117
 
7118
  def __eq__(self, other):
7119
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7120
 
7121
  def __ne__(self, other):
7122
    return not (self == other)
7123
 
7124
class getHistoricNonSerializedInventoryByScans_args:
7125
  """
7126
  Attributes:
7127
   - date
7128
  """
7129
 
7130
  thrift_spec = (
7131
    None, # 0
7132
    (1, TType.I64, 'date', None, None, ), # 1
7133
  )
7134
 
7135
  def __init__(self, date=None,):
7136
    self.date = date
7137
 
7138
  def read(self, iprot):
7139
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7140
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7141
      return
7142
    iprot.readStructBegin()
7143
    while True:
7144
      (fname, ftype, fid) = iprot.readFieldBegin()
7145
      if ftype == TType.STOP:
7146
        break
7147
      if fid == 1:
7148
        if ftype == TType.I64:
7149
          self.date = iprot.readI64();
7150
        else:
7151
          iprot.skip(ftype)
7152
      else:
7153
        iprot.skip(ftype)
7154
      iprot.readFieldEnd()
7155
    iprot.readStructEnd()
7156
 
7157
  def write(self, oprot):
7158
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7159
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7160
      return
7161
    oprot.writeStructBegin('getHistoricNonSerializedInventoryByScans_args')
7162
    if self.date is not None:
7163
      oprot.writeFieldBegin('date', TType.I64, 1)
7164
      oprot.writeI64(self.date)
7165
      oprot.writeFieldEnd()
7166
    oprot.writeFieldStop()
7167
    oprot.writeStructEnd()
7168
 
7169
  def validate(self):
7170
    return
7171
 
7172
 
7173
  def __repr__(self):
7174
    L = ['%s=%r' % (key, value)
7175
      for key, value in self.__dict__.iteritems()]
7176
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7177
 
7178
  def __eq__(self, other):
7179
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7180
 
7181
  def __ne__(self, other):
7182
    return not (self == other)
7183
 
7184
class getHistoricNonSerializedInventoryByScans_result:
7185
  """
7186
  Attributes:
7187
   - success
7188
  """
7189
 
7190
  thrift_spec = (
7191
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7192
  )
7193
 
7194
  def __init__(self, success=None,):
7195
    self.success = success
7196
 
7197
  def read(self, iprot):
7198
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7199
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7200
      return
7201
    iprot.readStructBegin()
7202
    while True:
7203
      (fname, ftype, fid) = iprot.readFieldBegin()
7204
      if ftype == TType.STOP:
7205
        break
7206
      if fid == 0:
7207
        if ftype == TType.LIST:
7208
          self.success = []
10407 amar.kumar 7209
          (_etype108, _size105) = iprot.readListBegin()
7210
          for _i109 in xrange(_size105):
7211
            _elem110 = InventoryAvailability()
7212
            _elem110.read(iprot)
7213
            self.success.append(_elem110)
6762 amar.kumar 7214
          iprot.readListEnd()
7215
        else:
7216
          iprot.skip(ftype)
7217
      else:
7218
        iprot.skip(ftype)
7219
      iprot.readFieldEnd()
7220
    iprot.readStructEnd()
7221
 
7222
  def write(self, oprot):
7223
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7224
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7225
      return
7226
    oprot.writeStructBegin('getHistoricNonSerializedInventoryByScans_result')
7227
    if self.success is not None:
7228
      oprot.writeFieldBegin('success', TType.LIST, 0)
7229
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7230
      for iter111 in self.success:
7231
        iter111.write(oprot)
6762 amar.kumar 7232
      oprot.writeListEnd()
7233
      oprot.writeFieldEnd()
7234
    oprot.writeFieldStop()
7235
    oprot.writeStructEnd()
7236
 
7237
  def validate(self):
7238
    return
7239
 
7240
 
7241
  def __repr__(self):
7242
    L = ['%s=%r' % (key, value)
7243
      for key, value in self.__dict__.iteritems()]
7244
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7245
 
7246
  def __eq__(self, other):
7247
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7248
 
7249
  def __ne__(self, other):
7250
    return not (self == other)
7251
 
10407 amar.kumar 7252
class getOurHistoricSerializedInventoryByScans_args:
7253
  """
7254
  Attributes:
7255
   - date
7256
  """
7257
 
7258
  thrift_spec = (
7259
    None, # 0
7260
    (1, TType.I64, 'date', None, None, ), # 1
7261
  )
7262
 
7263
  def __init__(self, date=None,):
7264
    self.date = date
7265
 
7266
  def read(self, iprot):
7267
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7268
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7269
      return
7270
    iprot.readStructBegin()
7271
    while True:
7272
      (fname, ftype, fid) = iprot.readFieldBegin()
7273
      if ftype == TType.STOP:
7274
        break
7275
      if fid == 1:
7276
        if ftype == TType.I64:
7277
          self.date = iprot.readI64();
7278
        else:
7279
          iprot.skip(ftype)
7280
      else:
7281
        iprot.skip(ftype)
7282
      iprot.readFieldEnd()
7283
    iprot.readStructEnd()
7284
 
7285
  def write(self, oprot):
7286
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7287
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7288
      return
7289
    oprot.writeStructBegin('getOurHistoricSerializedInventoryByScans_args')
7290
    if self.date is not None:
7291
      oprot.writeFieldBegin('date', TType.I64, 1)
7292
      oprot.writeI64(self.date)
7293
      oprot.writeFieldEnd()
7294
    oprot.writeFieldStop()
7295
    oprot.writeStructEnd()
7296
 
7297
  def validate(self):
7298
    return
7299
 
7300
 
7301
  def __repr__(self):
7302
    L = ['%s=%r' % (key, value)
7303
      for key, value in self.__dict__.iteritems()]
7304
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7305
 
7306
  def __eq__(self, other):
7307
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7308
 
7309
  def __ne__(self, other):
7310
    return not (self == other)
7311
 
7312
class getOurHistoricSerializedInventoryByScans_result:
7313
  """
7314
  Attributes:
7315
   - success
7316
  """
7317
 
7318
  thrift_spec = (
7319
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7320
  )
7321
 
7322
  def __init__(self, success=None,):
7323
    self.success = success
7324
 
7325
  def read(self, iprot):
7326
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7327
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7328
      return
7329
    iprot.readStructBegin()
7330
    while True:
7331
      (fname, ftype, fid) = iprot.readFieldBegin()
7332
      if ftype == TType.STOP:
7333
        break
7334
      if fid == 0:
7335
        if ftype == TType.LIST:
7336
          self.success = []
7337
          (_etype115, _size112) = iprot.readListBegin()
7338
          for _i116 in xrange(_size112):
7339
            _elem117 = InventoryAvailability()
7340
            _elem117.read(iprot)
7341
            self.success.append(_elem117)
7342
          iprot.readListEnd()
7343
        else:
7344
          iprot.skip(ftype)
7345
      else:
7346
        iprot.skip(ftype)
7347
      iprot.readFieldEnd()
7348
    iprot.readStructEnd()
7349
 
7350
  def write(self, oprot):
7351
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7352
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7353
      return
7354
    oprot.writeStructBegin('getOurHistoricSerializedInventoryByScans_result')
7355
    if self.success is not None:
7356
      oprot.writeFieldBegin('success', TType.LIST, 0)
7357
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7358
      for iter118 in self.success:
7359
        iter118.write(oprot)
7360
      oprot.writeListEnd()
7361
      oprot.writeFieldEnd()
7362
    oprot.writeFieldStop()
7363
    oprot.writeStructEnd()
7364
 
7365
  def validate(self):
7366
    return
7367
 
7368
 
7369
  def __repr__(self):
7370
    L = ['%s=%r' % (key, value)
7371
      for key, value in self.__dict__.iteritems()]
7372
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7373
 
7374
  def __eq__(self, other):
7375
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7376
 
7377
  def __ne__(self, other):
7378
    return not (self == other)
7379
 
7380
class getOurHistoricNonSerializedInventoryByScans_args:
7381
  """
7382
  Attributes:
7383
   - date
7384
  """
7385
 
7386
  thrift_spec = (
7387
    None, # 0
7388
    (1, TType.I64, 'date', None, None, ), # 1
7389
  )
7390
 
7391
  def __init__(self, date=None,):
7392
    self.date = date
7393
 
7394
  def read(self, iprot):
7395
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7396
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7397
      return
7398
    iprot.readStructBegin()
7399
    while True:
7400
      (fname, ftype, fid) = iprot.readFieldBegin()
7401
      if ftype == TType.STOP:
7402
        break
7403
      if fid == 1:
7404
        if ftype == TType.I64:
7405
          self.date = iprot.readI64();
7406
        else:
7407
          iprot.skip(ftype)
7408
      else:
7409
        iprot.skip(ftype)
7410
      iprot.readFieldEnd()
7411
    iprot.readStructEnd()
7412
 
7413
  def write(self, oprot):
7414
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7415
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7416
      return
7417
    oprot.writeStructBegin('getOurHistoricNonSerializedInventoryByScans_args')
7418
    if self.date is not None:
7419
      oprot.writeFieldBegin('date', TType.I64, 1)
7420
      oprot.writeI64(self.date)
7421
      oprot.writeFieldEnd()
7422
    oprot.writeFieldStop()
7423
    oprot.writeStructEnd()
7424
 
7425
  def validate(self):
7426
    return
7427
 
7428
 
7429
  def __repr__(self):
7430
    L = ['%s=%r' % (key, value)
7431
      for key, value in self.__dict__.iteritems()]
7432
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7433
 
7434
  def __eq__(self, other):
7435
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7436
 
7437
  def __ne__(self, other):
7438
    return not (self == other)
7439
 
7440
class getOurHistoricNonSerializedInventoryByScans_result:
7441
  """
7442
  Attributes:
7443
   - success
7444
  """
7445
 
7446
  thrift_spec = (
7447
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7448
  )
7449
 
7450
  def __init__(self, success=None,):
7451
    self.success = success
7452
 
7453
  def read(self, iprot):
7454
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7455
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7456
      return
7457
    iprot.readStructBegin()
7458
    while True:
7459
      (fname, ftype, fid) = iprot.readFieldBegin()
7460
      if ftype == TType.STOP:
7461
        break
7462
      if fid == 0:
7463
        if ftype == TType.LIST:
7464
          self.success = []
7465
          (_etype122, _size119) = iprot.readListBegin()
7466
          for _i123 in xrange(_size119):
7467
            _elem124 = InventoryAvailability()
7468
            _elem124.read(iprot)
7469
            self.success.append(_elem124)
7470
          iprot.readListEnd()
7471
        else:
7472
          iprot.skip(ftype)
7473
      else:
7474
        iprot.skip(ftype)
7475
      iprot.readFieldEnd()
7476
    iprot.readStructEnd()
7477
 
7478
  def write(self, oprot):
7479
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7480
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7481
      return
7482
    oprot.writeStructBegin('getOurHistoricNonSerializedInventoryByScans_result')
7483
    if self.success is not None:
7484
      oprot.writeFieldBegin('success', TType.LIST, 0)
7485
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7486
      for iter125 in self.success:
7487
        iter125.write(oprot)
7488
      oprot.writeListEnd()
7489
      oprot.writeFieldEnd()
7490
    oprot.writeFieldStop()
7491
    oprot.writeStructEnd()
7492
 
7493
  def validate(self):
7494
    return
7495
 
7496
 
7497
  def __repr__(self):
7498
    L = ['%s=%r' % (key, value)
7499
      for key, value in self.__dict__.iteritems()]
7500
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7501
 
7502
  def __eq__(self, other):
7503
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7504
 
7505
  def __ne__(self, other):
7506
    return not (self == other)
7507
 
6762 amar.kumar 7508
class scanForOursExternalSale_args:
7509
  """
7510
  Attributes:
7511
   - itemId
7512
   - serialNumber
7513
   - itemNumber
7514
   - invoiceNumber
7515
   - warehouseId
7516
   - unitPrice
7672 rajveer 7517
   - nlc
6762 amar.kumar 7518
   - orderId
7519
  """
7520
 
7521
  thrift_spec = (
7522
    None, # 0
7523
    (1, TType.I64, 'itemId', None, None, ), # 1
7524
    (2, TType.STRING, 'serialNumber', None, None, ), # 2
7525
    (3, TType.STRING, 'itemNumber', None, None, ), # 3
7526
    (4, TType.STRING, 'invoiceNumber', None, None, ), # 4
7527
    (5, TType.I64, 'warehouseId', None, None, ), # 5
7528
    (6, TType.DOUBLE, 'unitPrice', None, None, ), # 6
7672 rajveer 7529
    (7, TType.DOUBLE, 'nlc', None, None, ), # 7
7530
    (8, TType.I64, 'orderId', None, None, ), # 8
6762 amar.kumar 7531
  )
7532
 
7672 rajveer 7533
  def __init__(self, itemId=None, serialNumber=None, itemNumber=None, invoiceNumber=None, warehouseId=None, unitPrice=None, nlc=None, orderId=None,):
6762 amar.kumar 7534
    self.itemId = itemId
7535
    self.serialNumber = serialNumber
7536
    self.itemNumber = itemNumber
7537
    self.invoiceNumber = invoiceNumber
7538
    self.warehouseId = warehouseId
7539
    self.unitPrice = unitPrice
7672 rajveer 7540
    self.nlc = nlc
6762 amar.kumar 7541
    self.orderId = orderId
7542
 
7543
  def read(self, iprot):
7544
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7545
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7546
      return
7547
    iprot.readStructBegin()
7548
    while True:
7549
      (fname, ftype, fid) = iprot.readFieldBegin()
7550
      if ftype == TType.STOP:
7551
        break
7552
      if fid == 1:
7553
        if ftype == TType.I64:
7554
          self.itemId = iprot.readI64();
7555
        else:
7556
          iprot.skip(ftype)
7557
      elif fid == 2:
7558
        if ftype == TType.STRING:
7559
          self.serialNumber = iprot.readString();
7560
        else:
7561
          iprot.skip(ftype)
7562
      elif fid == 3:
7563
        if ftype == TType.STRING:
7564
          self.itemNumber = iprot.readString();
7565
        else:
7566
          iprot.skip(ftype)
7567
      elif fid == 4:
7568
        if ftype == TType.STRING:
7569
          self.invoiceNumber = iprot.readString();
7570
        else:
7571
          iprot.skip(ftype)
7572
      elif fid == 5:
7573
        if ftype == TType.I64:
7574
          self.warehouseId = iprot.readI64();
7575
        else:
7576
          iprot.skip(ftype)
7577
      elif fid == 6:
7578
        if ftype == TType.DOUBLE:
7579
          self.unitPrice = iprot.readDouble();
7580
        else:
7581
          iprot.skip(ftype)
7582
      elif fid == 7:
7672 rajveer 7583
        if ftype == TType.DOUBLE:
7584
          self.nlc = iprot.readDouble();
7585
        else:
7586
          iprot.skip(ftype)
7587
      elif fid == 8:
6762 amar.kumar 7588
        if ftype == TType.I64:
7589
          self.orderId = iprot.readI64();
7590
        else:
7591
          iprot.skip(ftype)
7592
      else:
7593
        iprot.skip(ftype)
7594
      iprot.readFieldEnd()
7595
    iprot.readStructEnd()
7596
 
7597
  def write(self, oprot):
7598
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7599
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7600
      return
7601
    oprot.writeStructBegin('scanForOursExternalSale_args')
7602
    if self.itemId is not None:
7603
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7604
      oprot.writeI64(self.itemId)
7605
      oprot.writeFieldEnd()
7606
    if self.serialNumber is not None:
7607
      oprot.writeFieldBegin('serialNumber', TType.STRING, 2)
7608
      oprot.writeString(self.serialNumber)
7609
      oprot.writeFieldEnd()
7610
    if self.itemNumber is not None:
7611
      oprot.writeFieldBegin('itemNumber', TType.STRING, 3)
7612
      oprot.writeString(self.itemNumber)
7613
      oprot.writeFieldEnd()
7614
    if self.invoiceNumber is not None:
7615
      oprot.writeFieldBegin('invoiceNumber', TType.STRING, 4)
7616
      oprot.writeString(self.invoiceNumber)
7617
      oprot.writeFieldEnd()
7618
    if self.warehouseId is not None:
7619
      oprot.writeFieldBegin('warehouseId', TType.I64, 5)
7620
      oprot.writeI64(self.warehouseId)
7621
      oprot.writeFieldEnd()
7622
    if self.unitPrice is not None:
7623
      oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 6)
7624
      oprot.writeDouble(self.unitPrice)
7625
      oprot.writeFieldEnd()
7672 rajveer 7626
    if self.nlc is not None:
7627
      oprot.writeFieldBegin('nlc', TType.DOUBLE, 7)
7628
      oprot.writeDouble(self.nlc)
7629
      oprot.writeFieldEnd()
6762 amar.kumar 7630
    if self.orderId is not None:
7672 rajveer 7631
      oprot.writeFieldBegin('orderId', TType.I64, 8)
6762 amar.kumar 7632
      oprot.writeI64(self.orderId)
7633
      oprot.writeFieldEnd()
7634
    oprot.writeFieldStop()
7635
    oprot.writeStructEnd()
7636
 
7637
  def validate(self):
7638
    return
7639
 
7640
 
7641
  def __repr__(self):
7642
    L = ['%s=%r' % (key, value)
7643
      for key, value in self.__dict__.iteritems()]
7644
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7645
 
7646
  def __eq__(self, other):
7647
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7648
 
7649
  def __ne__(self, other):
7650
    return not (self == other)
7651
 
7652
class scanForOursExternalSale_result:
7653
  """
7654
  Attributes:
7655
   - success
7656
   - ex
7657
  """
7658
 
7659
  thrift_spec = (
7660
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
7661
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
7662
  )
7663
 
7664
  def __init__(self, success=None, ex=None,):
7665
    self.success = success
7666
    self.ex = ex
7667
 
7668
  def read(self, iprot):
7669
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7670
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7671
      return
7672
    iprot.readStructBegin()
7673
    while True:
7674
      (fname, ftype, fid) = iprot.readFieldBegin()
7675
      if ftype == TType.STOP:
7676
        break
7677
      if fid == 0:
7678
        if ftype == TType.STRUCT:
7679
          self.success = InventoryItem()
7680
          self.success.read(iprot)
7681
        else:
7682
          iprot.skip(ftype)
7683
      elif fid == 1:
7684
        if ftype == TType.STRUCT:
7685
          self.ex = WarehouseServiceException()
7686
          self.ex.read(iprot)
7687
        else:
7688
          iprot.skip(ftype)
7689
      else:
7690
        iprot.skip(ftype)
7691
      iprot.readFieldEnd()
7692
    iprot.readStructEnd()
7693
 
7694
  def write(self, oprot):
7695
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7696
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7697
      return
7698
    oprot.writeStructBegin('scanForOursExternalSale_result')
7699
    if self.success is not None:
7700
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7701
      self.success.write(oprot)
7702
      oprot.writeFieldEnd()
7703
    if self.ex is not None:
7704
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7705
      self.ex.write(oprot)
7706
      oprot.writeFieldEnd()
7707
    oprot.writeFieldStop()
7708
    oprot.writeStructEnd()
7709
 
7710
  def validate(self):
7711
    return
7712
 
7713
 
7714
  def __repr__(self):
7715
    L = ['%s=%r' % (key, value)
7716
      for key, value in self.__dict__.iteritems()]
7717
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7718
 
7719
  def __eq__(self, other):
7720
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7721
 
7722
  def __ne__(self, other):
7723
    return not (self == other)
7724
 
7725
class scanForOursExternalSaleReturn_args:
7726
  """
7727
  Attributes:
7728
   - orderId
7729
   - unitPrice
7730
  """
7731
 
7732
  thrift_spec = (
7733
    None, # 0
7734
    (1, TType.I64, 'orderId', None, None, ), # 1
7735
    (2, TType.DOUBLE, 'unitPrice', None, None, ), # 2
7736
  )
7737
 
7738
  def __init__(self, orderId=None, unitPrice=None,):
7739
    self.orderId = orderId
7740
    self.unitPrice = unitPrice
7741
 
7742
  def read(self, iprot):
7743
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7744
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7745
      return
7746
    iprot.readStructBegin()
7747
    while True:
7748
      (fname, ftype, fid) = iprot.readFieldBegin()
7749
      if ftype == TType.STOP:
7750
        break
7751
      if fid == 1:
7752
        if ftype == TType.I64:
7753
          self.orderId = iprot.readI64();
7754
        else:
7755
          iprot.skip(ftype)
7756
      elif fid == 2:
7757
        if ftype == TType.DOUBLE:
7758
          self.unitPrice = iprot.readDouble();
7759
        else:
7760
          iprot.skip(ftype)
7761
      else:
7762
        iprot.skip(ftype)
7763
      iprot.readFieldEnd()
7764
    iprot.readStructEnd()
7765
 
7766
  def write(self, oprot):
7767
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7768
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7769
      return
7770
    oprot.writeStructBegin('scanForOursExternalSaleReturn_args')
7771
    if self.orderId is not None:
7772
      oprot.writeFieldBegin('orderId', TType.I64, 1)
7773
      oprot.writeI64(self.orderId)
7774
      oprot.writeFieldEnd()
7775
    if self.unitPrice is not None:
7776
      oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 2)
7777
      oprot.writeDouble(self.unitPrice)
7778
      oprot.writeFieldEnd()
7779
    oprot.writeFieldStop()
7780
    oprot.writeStructEnd()
7781
 
7782
  def validate(self):
7783
    return
7784
 
7785
 
7786
  def __repr__(self):
7787
    L = ['%s=%r' % (key, value)
7788
      for key, value in self.__dict__.iteritems()]
7789
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7790
 
7791
  def __eq__(self, other):
7792
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7793
 
7794
  def __ne__(self, other):
7795
    return not (self == other)
7796
 
7797
class scanForOursExternalSaleReturn_result:
7410 amar.kumar 7798
  """
7799
  Attributes:
7800
   - ex
7801
  """
6762 amar.kumar 7802
 
7803
  thrift_spec = (
7410 amar.kumar 7804
    None, # 0
7805
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6762 amar.kumar 7806
  )
7807
 
7410 amar.kumar 7808
  def __init__(self, ex=None,):
7809
    self.ex = ex
7810
 
6762 amar.kumar 7811
  def read(self, iprot):
7812
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7813
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7814
      return
7815
    iprot.readStructBegin()
7816
    while True:
7817
      (fname, ftype, fid) = iprot.readFieldBegin()
7818
      if ftype == TType.STOP:
7819
        break
7410 amar.kumar 7820
      if fid == 1:
7821
        if ftype == TType.STRUCT:
7822
          self.ex = WarehouseServiceException()
7823
          self.ex.read(iprot)
7824
        else:
7825
          iprot.skip(ftype)
6762 amar.kumar 7826
      else:
7827
        iprot.skip(ftype)
7828
      iprot.readFieldEnd()
7829
    iprot.readStructEnd()
7830
 
7831
  def write(self, oprot):
7832
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7833
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7834
      return
7835
    oprot.writeStructBegin('scanForOursExternalSaleReturn_result')
7410 amar.kumar 7836
    if self.ex is not None:
7837
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7838
      self.ex.write(oprot)
7839
      oprot.writeFieldEnd()
6762 amar.kumar 7840
    oprot.writeFieldStop()
7841
    oprot.writeStructEnd()
7842
 
7843
  def validate(self):
7844
    return
7845
 
7846
 
7847
  def __repr__(self):
7848
    L = ['%s=%r' % (key, value)
7849
      for key, value in self.__dict__.iteritems()]
7850
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7851
 
7852
  def __eq__(self, other):
7853
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7854
 
7855
  def __ne__(self, other):
7856
    return not (self == other)
6880 amar.kumar 7857
 
7858
class getMovementNonSerializedInventoryByScans_args:
7859
  """
7860
  Attributes:
7861
   - startDate
7862
   - endDate
7863
  """
7864
 
7865
  thrift_spec = (
7866
    None, # 0
7867
    (1, TType.I64, 'startDate', None, None, ), # 1
7868
    (2, TType.I64, 'endDate', None, None, ), # 2
7869
  )
7870
 
7871
  def __init__(self, startDate=None, endDate=None,):
7872
    self.startDate = startDate
7873
    self.endDate = endDate
7874
 
7875
  def read(self, iprot):
7876
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7877
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7878
      return
7879
    iprot.readStructBegin()
7880
    while True:
7881
      (fname, ftype, fid) = iprot.readFieldBegin()
7882
      if ftype == TType.STOP:
7883
        break
7884
      if fid == 1:
7885
        if ftype == TType.I64:
7886
          self.startDate = iprot.readI64();
7887
        else:
7888
          iprot.skip(ftype)
7889
      elif fid == 2:
7890
        if ftype == TType.I64:
7891
          self.endDate = iprot.readI64();
7892
        else:
7893
          iprot.skip(ftype)
7894
      else:
7895
        iprot.skip(ftype)
7896
      iprot.readFieldEnd()
7897
    iprot.readStructEnd()
7898
 
7899
  def write(self, oprot):
7900
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7901
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7902
      return
7903
    oprot.writeStructBegin('getMovementNonSerializedInventoryByScans_args')
7904
    if self.startDate is not None:
7905
      oprot.writeFieldBegin('startDate', TType.I64, 1)
7906
      oprot.writeI64(self.startDate)
7907
      oprot.writeFieldEnd()
7908
    if self.endDate is not None:
7909
      oprot.writeFieldBegin('endDate', TType.I64, 2)
7910
      oprot.writeI64(self.endDate)
7911
      oprot.writeFieldEnd()
7912
    oprot.writeFieldStop()
7913
    oprot.writeStructEnd()
7914
 
7915
  def validate(self):
7916
    return
7917
 
7918
 
7919
  def __repr__(self):
7920
    L = ['%s=%r' % (key, value)
7921
      for key, value in self.__dict__.iteritems()]
7922
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7923
 
7924
  def __eq__(self, other):
7925
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7926
 
7927
  def __ne__(self, other):
7928
    return not (self == other)
7929
 
7930
class getMovementNonSerializedInventoryByScans_result:
7931
  """
7932
  Attributes:
7933
   - success
7934
  """
7935
 
7936
  thrift_spec = (
7937
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
7938
  )
7939
 
7940
  def __init__(self, success=None,):
7941
    self.success = success
7942
 
7943
  def read(self, iprot):
7944
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7945
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7946
      return
7947
    iprot.readStructBegin()
7948
    while True:
7949
      (fname, ftype, fid) = iprot.readFieldBegin()
7950
      if ftype == TType.STOP:
7951
        break
7952
      if fid == 0:
7953
        if ftype == TType.LIST:
7954
          self.success = []
10407 amar.kumar 7955
          (_etype129, _size126) = iprot.readListBegin()
7956
          for _i130 in xrange(_size126):
7957
            _elem131 = InventoryMovement()
7958
            _elem131.read(iprot)
7959
            self.success.append(_elem131)
6880 amar.kumar 7960
          iprot.readListEnd()
7961
        else:
7962
          iprot.skip(ftype)
7963
      else:
7964
        iprot.skip(ftype)
7965
      iprot.readFieldEnd()
7966
    iprot.readStructEnd()
7967
 
7968
  def write(self, oprot):
7969
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7970
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7971
      return
7972
    oprot.writeStructBegin('getMovementNonSerializedInventoryByScans_result')
7973
    if self.success is not None:
7974
      oprot.writeFieldBegin('success', TType.LIST, 0)
7975
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7976
      for iter132 in self.success:
7977
        iter132.write(oprot)
6880 amar.kumar 7978
      oprot.writeListEnd()
7979
      oprot.writeFieldEnd()
7980
    oprot.writeFieldStop()
7981
    oprot.writeStructEnd()
7982
 
7983
  def validate(self):
7984
    return
7985
 
7986
 
7987
  def __repr__(self):
7988
    L = ['%s=%r' % (key, value)
7989
      for key, value in self.__dict__.iteritems()]
7990
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7991
 
7992
  def __eq__(self, other):
7993
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7994
 
7995
  def __ne__(self, other):
7996
    return not (self == other)
7997
 
7998
class getMovementSerializedInventoryByScans_args:
7999
  """
8000
  Attributes:
8001
   - startDate
8002
   - endDate
8003
  """
8004
 
8005
  thrift_spec = (
8006
    None, # 0
8007
    (1, TType.I64, 'startDate', None, None, ), # 1
8008
    (2, TType.I64, 'endDate', None, None, ), # 2
8009
  )
8010
 
8011
  def __init__(self, startDate=None, endDate=None,):
8012
    self.startDate = startDate
8013
    self.endDate = endDate
8014
 
8015
  def read(self, iprot):
8016
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8017
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8018
      return
8019
    iprot.readStructBegin()
8020
    while True:
8021
      (fname, ftype, fid) = iprot.readFieldBegin()
8022
      if ftype == TType.STOP:
8023
        break
8024
      if fid == 1:
8025
        if ftype == TType.I64:
8026
          self.startDate = iprot.readI64();
8027
        else:
8028
          iprot.skip(ftype)
8029
      elif fid == 2:
8030
        if ftype == TType.I64:
8031
          self.endDate = iprot.readI64();
8032
        else:
8033
          iprot.skip(ftype)
8034
      else:
8035
        iprot.skip(ftype)
8036
      iprot.readFieldEnd()
8037
    iprot.readStructEnd()
8038
 
8039
  def write(self, oprot):
8040
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8041
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8042
      return
8043
    oprot.writeStructBegin('getMovementSerializedInventoryByScans_args')
8044
    if self.startDate is not None:
8045
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8046
      oprot.writeI64(self.startDate)
8047
      oprot.writeFieldEnd()
8048
    if self.endDate is not None:
8049
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8050
      oprot.writeI64(self.endDate)
8051
      oprot.writeFieldEnd()
8052
    oprot.writeFieldStop()
8053
    oprot.writeStructEnd()
8054
 
8055
  def validate(self):
8056
    return
8057
 
8058
 
8059
  def __repr__(self):
8060
    L = ['%s=%r' % (key, value)
8061
      for key, value in self.__dict__.iteritems()]
8062
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8063
 
8064
  def __eq__(self, other):
8065
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8066
 
8067
  def __ne__(self, other):
8068
    return not (self == other)
8069
 
8070
class getMovementSerializedInventoryByScans_result:
8071
  """
8072
  Attributes:
8073
   - success
8074
  """
8075
 
8076
  thrift_spec = (
8077
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8078
  )
8079
 
8080
  def __init__(self, success=None,):
8081
    self.success = success
8082
 
8083
  def read(self, iprot):
8084
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8085
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8086
      return
8087
    iprot.readStructBegin()
8088
    while True:
8089
      (fname, ftype, fid) = iprot.readFieldBegin()
8090
      if ftype == TType.STOP:
8091
        break
8092
      if fid == 0:
8093
        if ftype == TType.LIST:
8094
          self.success = []
10407 amar.kumar 8095
          (_etype136, _size133) = iprot.readListBegin()
8096
          for _i137 in xrange(_size133):
8097
            _elem138 = InventoryMovement()
8098
            _elem138.read(iprot)
8099
            self.success.append(_elem138)
6880 amar.kumar 8100
          iprot.readListEnd()
8101
        else:
8102
          iprot.skip(ftype)
8103
      else:
8104
        iprot.skip(ftype)
8105
      iprot.readFieldEnd()
8106
    iprot.readStructEnd()
8107
 
8108
  def write(self, oprot):
8109
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8110
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8111
      return
8112
    oprot.writeStructBegin('getMovementSerializedInventoryByScans_result')
8113
    if self.success is not None:
8114
      oprot.writeFieldBegin('success', TType.LIST, 0)
8115
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8116
      for iter139 in self.success:
8117
        iter139.write(oprot)
6880 amar.kumar 8118
      oprot.writeListEnd()
8119
      oprot.writeFieldEnd()
8120
    oprot.writeFieldStop()
8121
    oprot.writeStructEnd()
8122
 
8123
  def validate(self):
8124
    return
8125
 
8126
 
8127
  def __repr__(self):
8128
    L = ['%s=%r' % (key, value)
8129
      for key, value in self.__dict__.iteritems()]
8130
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8131
 
8132
  def __eq__(self, other):
8133
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8134
 
8135
  def __ne__(self, other):
8136
    return not (self == other)
7190 amar.kumar 8137
 
7216 amar.kumar 8138
class getCompleteMovementSerializedInventoryByScans_args:
8139
  """
8140
  Attributes:
8141
   - startDate
8142
   - endDate
8143
  """
8144
 
8145
  thrift_spec = (
8146
    None, # 0
8147
    (1, TType.I64, 'startDate', None, None, ), # 1
8148
    (2, TType.I64, 'endDate', None, None, ), # 2
8149
  )
8150
 
8151
  def __init__(self, startDate=None, endDate=None,):
8152
    self.startDate = startDate
8153
    self.endDate = endDate
8154
 
8155
  def read(self, iprot):
8156
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8157
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8158
      return
8159
    iprot.readStructBegin()
8160
    while True:
8161
      (fname, ftype, fid) = iprot.readFieldBegin()
8162
      if ftype == TType.STOP:
8163
        break
8164
      if fid == 1:
8165
        if ftype == TType.I64:
8166
          self.startDate = iprot.readI64();
8167
        else:
8168
          iprot.skip(ftype)
8169
      elif fid == 2:
8170
        if ftype == TType.I64:
8171
          self.endDate = iprot.readI64();
8172
        else:
8173
          iprot.skip(ftype)
8174
      else:
8175
        iprot.skip(ftype)
8176
      iprot.readFieldEnd()
8177
    iprot.readStructEnd()
8178
 
8179
  def write(self, oprot):
8180
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8181
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8182
      return
8183
    oprot.writeStructBegin('getCompleteMovementSerializedInventoryByScans_args')
8184
    if self.startDate is not None:
8185
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8186
      oprot.writeI64(self.startDate)
8187
      oprot.writeFieldEnd()
8188
    if self.endDate is not None:
8189
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8190
      oprot.writeI64(self.endDate)
8191
      oprot.writeFieldEnd()
8192
    oprot.writeFieldStop()
8193
    oprot.writeStructEnd()
8194
 
8195
  def validate(self):
8196
    return
8197
 
8198
 
8199
  def __repr__(self):
8200
    L = ['%s=%r' % (key, value)
8201
      for key, value in self.__dict__.iteritems()]
8202
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8203
 
8204
  def __eq__(self, other):
8205
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8206
 
8207
  def __ne__(self, other):
8208
    return not (self == other)
8209
 
8210
class getCompleteMovementSerializedInventoryByScans_result:
8211
  """
8212
  Attributes:
8213
   - success
8214
  """
8215
 
8216
  thrift_spec = (
8217
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8218
  )
8219
 
8220
  def __init__(self, success=None,):
8221
    self.success = success
8222
 
8223
  def read(self, iprot):
8224
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8225
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8226
      return
8227
    iprot.readStructBegin()
8228
    while True:
8229
      (fname, ftype, fid) = iprot.readFieldBegin()
8230
      if ftype == TType.STOP:
8231
        break
8232
      if fid == 0:
8233
        if ftype == TType.LIST:
8234
          self.success = []
10407 amar.kumar 8235
          (_etype143, _size140) = iprot.readListBegin()
8236
          for _i144 in xrange(_size140):
8237
            _elem145 = InventoryMovement()
8238
            _elem145.read(iprot)
8239
            self.success.append(_elem145)
7216 amar.kumar 8240
          iprot.readListEnd()
8241
        else:
8242
          iprot.skip(ftype)
8243
      else:
8244
        iprot.skip(ftype)
8245
      iprot.readFieldEnd()
8246
    iprot.readStructEnd()
8247
 
8248
  def write(self, oprot):
8249
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8250
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8251
      return
8252
    oprot.writeStructBegin('getCompleteMovementSerializedInventoryByScans_result')
8253
    if self.success is not None:
8254
      oprot.writeFieldBegin('success', TType.LIST, 0)
8255
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8256
      for iter146 in self.success:
8257
        iter146.write(oprot)
7216 amar.kumar 8258
      oprot.writeListEnd()
8259
      oprot.writeFieldEnd()
8260
    oprot.writeFieldStop()
8261
    oprot.writeStructEnd()
8262
 
8263
  def validate(self):
8264
    return
8265
 
8266
 
8267
  def __repr__(self):
8268
    L = ['%s=%r' % (key, value)
8269
      for key, value in self.__dict__.iteritems()]
8270
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8271
 
8272
  def __eq__(self, other):
8273
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8274
 
8275
  def __ne__(self, other):
8276
    return not (self == other)
8277
 
8278
class getCompleteMovementNonSerializedInventoryByScans_args:
8279
  """
8280
  Attributes:
8281
   - startDate
8282
   - endDate
8283
  """
8284
 
8285
  thrift_spec = (
8286
    None, # 0
8287
    (1, TType.I64, 'startDate', None, None, ), # 1
8288
    (2, TType.I64, 'endDate', None, None, ), # 2
8289
  )
8290
 
8291
  def __init__(self, startDate=None, endDate=None,):
8292
    self.startDate = startDate
8293
    self.endDate = endDate
8294
 
8295
  def read(self, iprot):
8296
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8297
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8298
      return
8299
    iprot.readStructBegin()
8300
    while True:
8301
      (fname, ftype, fid) = iprot.readFieldBegin()
8302
      if ftype == TType.STOP:
8303
        break
8304
      if fid == 1:
8305
        if ftype == TType.I64:
8306
          self.startDate = iprot.readI64();
8307
        else:
8308
          iprot.skip(ftype)
8309
      elif fid == 2:
8310
        if ftype == TType.I64:
8311
          self.endDate = iprot.readI64();
8312
        else:
8313
          iprot.skip(ftype)
8314
      else:
8315
        iprot.skip(ftype)
8316
      iprot.readFieldEnd()
8317
    iprot.readStructEnd()
8318
 
8319
  def write(self, oprot):
8320
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8321
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8322
      return
8323
    oprot.writeStructBegin('getCompleteMovementNonSerializedInventoryByScans_args')
8324
    if self.startDate is not None:
8325
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8326
      oprot.writeI64(self.startDate)
8327
      oprot.writeFieldEnd()
8328
    if self.endDate is not None:
8329
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8330
      oprot.writeI64(self.endDate)
8331
      oprot.writeFieldEnd()
8332
    oprot.writeFieldStop()
8333
    oprot.writeStructEnd()
8334
 
8335
  def validate(self):
8336
    return
8337
 
8338
 
8339
  def __repr__(self):
8340
    L = ['%s=%r' % (key, value)
8341
      for key, value in self.__dict__.iteritems()]
8342
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8343
 
8344
  def __eq__(self, other):
8345
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8346
 
8347
  def __ne__(self, other):
8348
    return not (self == other)
8349
 
8350
class getCompleteMovementNonSerializedInventoryByScans_result:
8351
  """
8352
  Attributes:
8353
   - success
8354
  """
8355
 
8356
  thrift_spec = (
8357
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8358
  )
8359
 
8360
  def __init__(self, success=None,):
8361
    self.success = success
8362
 
8363
  def read(self, iprot):
8364
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8365
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8366
      return
8367
    iprot.readStructBegin()
8368
    while True:
8369
      (fname, ftype, fid) = iprot.readFieldBegin()
8370
      if ftype == TType.STOP:
8371
        break
8372
      if fid == 0:
8373
        if ftype == TType.LIST:
8374
          self.success = []
10407 amar.kumar 8375
          (_etype150, _size147) = iprot.readListBegin()
8376
          for _i151 in xrange(_size147):
8377
            _elem152 = InventoryMovement()
8378
            _elem152.read(iprot)
8379
            self.success.append(_elem152)
7216 amar.kumar 8380
          iprot.readListEnd()
8381
        else:
8382
          iprot.skip(ftype)
8383
      else:
8384
        iprot.skip(ftype)
8385
      iprot.readFieldEnd()
8386
    iprot.readStructEnd()
8387
 
8388
  def write(self, oprot):
8389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8391
      return
8392
    oprot.writeStructBegin('getCompleteMovementNonSerializedInventoryByScans_result')
8393
    if self.success is not None:
8394
      oprot.writeFieldBegin('success', TType.LIST, 0)
8395
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8396
      for iter153 in self.success:
8397
        iter153.write(oprot)
7216 amar.kumar 8398
      oprot.writeListEnd()
8399
      oprot.writeFieldEnd()
8400
    oprot.writeFieldStop()
8401
    oprot.writeStructEnd()
8402
 
8403
  def validate(self):
8404
    return
8405
 
8406
 
8407
  def __repr__(self):
8408
    L = ['%s=%r' % (key, value)
8409
      for key, value in self.__dict__.iteritems()]
8410
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8411
 
8412
  def __eq__(self, other):
8413
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8414
 
8415
  def __ne__(self, other):
8416
    return not (self == other)
8417
 
7190 amar.kumar 8418
class scanfreebie_args:
8419
  """
8420
  Attributes:
8421
   - orderId
8422
   - freebieItemId
8423
   - freebieWarehouseId
8424
   - scanType
8425
  """
8426
 
8427
  thrift_spec = (
8428
    None, # 0
8429
    (1, TType.I64, 'orderId', None, None, ), # 1
8430
    (2, TType.I64, 'freebieItemId', None, None, ), # 2
8431
    (3, TType.I64, 'freebieWarehouseId', None, None, ), # 3
8432
    (4, TType.I32, 'scanType', None, None, ), # 4
8433
  )
8434
 
8435
  def __init__(self, orderId=None, freebieItemId=None, freebieWarehouseId=None, scanType=None,):
8436
    self.orderId = orderId
8437
    self.freebieItemId = freebieItemId
8438
    self.freebieWarehouseId = freebieWarehouseId
8439
    self.scanType = scanType
8440
 
8441
  def read(self, iprot):
8442
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8443
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8444
      return
8445
    iprot.readStructBegin()
8446
    while True:
8447
      (fname, ftype, fid) = iprot.readFieldBegin()
8448
      if ftype == TType.STOP:
8449
        break
8450
      if fid == 1:
8451
        if ftype == TType.I64:
8452
          self.orderId = iprot.readI64();
8453
        else:
8454
          iprot.skip(ftype)
8455
      elif fid == 2:
8456
        if ftype == TType.I64:
8457
          self.freebieItemId = iprot.readI64();
8458
        else:
8459
          iprot.skip(ftype)
8460
      elif fid == 3:
8461
        if ftype == TType.I64:
8462
          self.freebieWarehouseId = iprot.readI64();
8463
        else:
8464
          iprot.skip(ftype)
8465
      elif fid == 4:
8466
        if ftype == TType.I32:
8467
          self.scanType = iprot.readI32();
8468
        else:
8469
          iprot.skip(ftype)
8470
      else:
8471
        iprot.skip(ftype)
8472
      iprot.readFieldEnd()
8473
    iprot.readStructEnd()
8474
 
8475
  def write(self, oprot):
8476
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8477
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8478
      return
8479
    oprot.writeStructBegin('scanfreebie_args')
8480
    if self.orderId is not None:
8481
      oprot.writeFieldBegin('orderId', TType.I64, 1)
8482
      oprot.writeI64(self.orderId)
8483
      oprot.writeFieldEnd()
8484
    if self.freebieItemId is not None:
8485
      oprot.writeFieldBegin('freebieItemId', TType.I64, 2)
8486
      oprot.writeI64(self.freebieItemId)
8487
      oprot.writeFieldEnd()
8488
    if self.freebieWarehouseId is not None:
8489
      oprot.writeFieldBegin('freebieWarehouseId', TType.I64, 3)
8490
      oprot.writeI64(self.freebieWarehouseId)
8491
      oprot.writeFieldEnd()
8492
    if self.scanType is not None:
8493
      oprot.writeFieldBegin('scanType', TType.I32, 4)
8494
      oprot.writeI32(self.scanType)
8495
      oprot.writeFieldEnd()
8496
    oprot.writeFieldStop()
8497
    oprot.writeStructEnd()
8498
 
8499
  def validate(self):
8500
    return
8501
 
8502
 
8503
  def __repr__(self):
8504
    L = ['%s=%r' % (key, value)
8505
      for key, value in self.__dict__.iteritems()]
8506
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8507
 
8508
  def __eq__(self, other):
8509
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8510
 
8511
  def __ne__(self, other):
8512
    return not (self == other)
8513
 
8514
class scanfreebie_result:
8515
  """
8516
  Attributes:
8517
   - success
8518
   - wex
8519
  """
8520
 
8521
  thrift_spec = (
8522
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
8523
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8524
  )
8525
 
8526
  def __init__(self, success=None, wex=None,):
8527
    self.success = success
8528
    self.wex = wex
8529
 
8530
  def read(self, iprot):
8531
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8532
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8533
      return
8534
    iprot.readStructBegin()
8535
    while True:
8536
      (fname, ftype, fid) = iprot.readFieldBegin()
8537
      if ftype == TType.STOP:
8538
        break
8539
      if fid == 0:
8540
        if ftype == TType.STRUCT:
8541
          self.success = InventoryItem()
8542
          self.success.read(iprot)
8543
        else:
8544
          iprot.skip(ftype)
8545
      elif fid == 1:
8546
        if ftype == TType.STRUCT:
8547
          self.wex = WarehouseServiceException()
8548
          self.wex.read(iprot)
8549
        else:
8550
          iprot.skip(ftype)
8551
      else:
8552
        iprot.skip(ftype)
8553
      iprot.readFieldEnd()
8554
    iprot.readStructEnd()
8555
 
8556
  def write(self, oprot):
8557
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8558
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8559
      return
8560
    oprot.writeStructBegin('scanfreebie_result')
8561
    if self.success is not None:
8562
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8563
      self.success.write(oprot)
8564
      oprot.writeFieldEnd()
8565
    if self.wex is not None:
8566
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
8567
      self.wex.write(oprot)
8568
      oprot.writeFieldEnd()
8569
    oprot.writeFieldStop()
8570
    oprot.writeStructEnd()
8571
 
8572
  def validate(self):
8573
    return
8574
 
8575
 
8576
  def __repr__(self):
8577
    L = ['%s=%r' % (key, value)
8578
      for key, value in self.__dict__.iteritems()]
8579
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8580
 
8581
  def __eq__(self, other):
8582
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8583
 
8584
  def __ne__(self, other):
8585
    return not (self == other)
7199 amar.kumar 8586
 
8587
class reshipfreebie_args:
8588
  """
8589
  Attributes:
8590
   - oldOrderId
8591
   - newOrderId
8592
   - freebieItemId
8593
   - scanType
8594
  """
8595
 
8596
  thrift_spec = (
8597
    None, # 0
8598
    (1, TType.I64, 'oldOrderId', None, None, ), # 1
8599
    (2, TType.I64, 'newOrderId', None, None, ), # 2
8600
    (3, TType.I64, 'freebieItemId', None, None, ), # 3
8601
    (4, TType.I32, 'scanType', None, None, ), # 4
8602
  )
8603
 
8604
  def __init__(self, oldOrderId=None, newOrderId=None, freebieItemId=None, scanType=None,):
8605
    self.oldOrderId = oldOrderId
8606
    self.newOrderId = newOrderId
8607
    self.freebieItemId = freebieItemId
8608
    self.scanType = scanType
8609
 
8610
  def read(self, iprot):
8611
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8612
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8613
      return
8614
    iprot.readStructBegin()
8615
    while True:
8616
      (fname, ftype, fid) = iprot.readFieldBegin()
8617
      if ftype == TType.STOP:
8618
        break
8619
      if fid == 1:
8620
        if ftype == TType.I64:
8621
          self.oldOrderId = iprot.readI64();
8622
        else:
8623
          iprot.skip(ftype)
8624
      elif fid == 2:
8625
        if ftype == TType.I64:
8626
          self.newOrderId = iprot.readI64();
8627
        else:
8628
          iprot.skip(ftype)
8629
      elif fid == 3:
8630
        if ftype == TType.I64:
8631
          self.freebieItemId = iprot.readI64();
8632
        else:
8633
          iprot.skip(ftype)
8634
      elif fid == 4:
8635
        if ftype == TType.I32:
8636
          self.scanType = iprot.readI32();
8637
        else:
8638
          iprot.skip(ftype)
8639
      else:
8640
        iprot.skip(ftype)
8641
      iprot.readFieldEnd()
8642
    iprot.readStructEnd()
8643
 
8644
  def write(self, oprot):
8645
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8646
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8647
      return
8648
    oprot.writeStructBegin('reshipfreebie_args')
8649
    if self.oldOrderId is not None:
8650
      oprot.writeFieldBegin('oldOrderId', TType.I64, 1)
8651
      oprot.writeI64(self.oldOrderId)
8652
      oprot.writeFieldEnd()
8653
    if self.newOrderId is not None:
8654
      oprot.writeFieldBegin('newOrderId', TType.I64, 2)
8655
      oprot.writeI64(self.newOrderId)
8656
      oprot.writeFieldEnd()
8657
    if self.freebieItemId is not None:
8658
      oprot.writeFieldBegin('freebieItemId', TType.I64, 3)
8659
      oprot.writeI64(self.freebieItemId)
8660
      oprot.writeFieldEnd()
8661
    if self.scanType is not None:
8662
      oprot.writeFieldBegin('scanType', TType.I32, 4)
8663
      oprot.writeI32(self.scanType)
8664
      oprot.writeFieldEnd()
8665
    oprot.writeFieldStop()
8666
    oprot.writeStructEnd()
8667
 
8668
  def validate(self):
8669
    return
8670
 
8671
 
8672
  def __repr__(self):
8673
    L = ['%s=%r' % (key, value)
8674
      for key, value in self.__dict__.iteritems()]
8675
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8676
 
8677
  def __eq__(self, other):
8678
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8679
 
8680
  def __ne__(self, other):
8681
    return not (self == other)
8682
 
8683
class reshipfreebie_result:
8684
  """
8685
  Attributes:
8686
   - wex
8687
  """
8688
 
8689
  thrift_spec = (
8690
    None, # 0
8691
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8692
  )
8693
 
8694
  def __init__(self, wex=None,):
8695
    self.wex = wex
8696
 
8697
  def read(self, iprot):
8698
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8699
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8700
      return
8701
    iprot.readStructBegin()
8702
    while True:
8703
      (fname, ftype, fid) = iprot.readFieldBegin()
8704
      if ftype == TType.STOP:
8705
        break
8706
      if fid == 1:
8707
        if ftype == TType.STRUCT:
8708
          self.wex = WarehouseServiceException()
8709
          self.wex.read(iprot)
8710
        else:
8711
          iprot.skip(ftype)
8712
      else:
8713
        iprot.skip(ftype)
8714
      iprot.readFieldEnd()
8715
    iprot.readStructEnd()
8716
 
8717
  def write(self, oprot):
8718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8720
      return
8721
    oprot.writeStructBegin('reshipfreebie_result')
8722
    if self.wex is not None:
8723
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
8724
      self.wex.write(oprot)
8725
      oprot.writeFieldEnd()
8726
    oprot.writeFieldStop()
8727
    oprot.writeStructEnd()
8728
 
8729
  def validate(self):
8730
    return
8731
 
8732
 
8733
  def __repr__(self):
8734
    L = ['%s=%r' % (key, value)
8735
      for key, value in self.__dict__.iteritems()]
8736
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8737
 
8738
  def __eq__(self, other):
8739
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8740
 
8741
  def __ne__(self, other):
8742
    return not (self == other)
7410 amar.kumar 8743
 
8744
class isItemTransferAllowed_args:
8745
  """
8746
  Attributes:
8747
   - warehouseId
8748
   - transferWarehouseId
8749
  """
8750
 
8751
  thrift_spec = (
8752
    None, # 0
8753
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8754
    (2, TType.I64, 'transferWarehouseId', None, None, ), # 2
8755
  )
8756
 
8757
  def __init__(self, warehouseId=None, transferWarehouseId=None,):
8758
    self.warehouseId = warehouseId
8759
    self.transferWarehouseId = transferWarehouseId
8760
 
8761
  def read(self, iprot):
8762
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8763
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8764
      return
8765
    iprot.readStructBegin()
8766
    while True:
8767
      (fname, ftype, fid) = iprot.readFieldBegin()
8768
      if ftype == TType.STOP:
8769
        break
8770
      if fid == 1:
8771
        if ftype == TType.I64:
8772
          self.warehouseId = iprot.readI64();
8773
        else:
8774
          iprot.skip(ftype)
8775
      elif fid == 2:
8776
        if ftype == TType.I64:
8777
          self.transferWarehouseId = iprot.readI64();
8778
        else:
8779
          iprot.skip(ftype)
8780
      else:
8781
        iprot.skip(ftype)
8782
      iprot.readFieldEnd()
8783
    iprot.readStructEnd()
8784
 
8785
  def write(self, oprot):
8786
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8787
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8788
      return
8789
    oprot.writeStructBegin('isItemTransferAllowed_args')
8790
    if self.warehouseId is not None:
8791
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8792
      oprot.writeI64(self.warehouseId)
8793
      oprot.writeFieldEnd()
8794
    if self.transferWarehouseId is not None:
8795
      oprot.writeFieldBegin('transferWarehouseId', TType.I64, 2)
8796
      oprot.writeI64(self.transferWarehouseId)
8797
      oprot.writeFieldEnd()
8798
    oprot.writeFieldStop()
8799
    oprot.writeStructEnd()
8800
 
8801
  def validate(self):
8802
    return
8803
 
8804
 
8805
  def __repr__(self):
8806
    L = ['%s=%r' % (key, value)
8807
      for key, value in self.__dict__.iteritems()]
8808
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8809
 
8810
  def __eq__(self, other):
8811
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8812
 
8813
  def __ne__(self, other):
8814
    return not (self == other)
8815
 
8816
class isItemTransferAllowed_result:
8817
  """
8818
  Attributes:
8819
   - success
8820
  """
8821
 
8822
  thrift_spec = (
8823
    (0, TType.BOOL, 'success', None, None, ), # 0
8824
  )
8825
 
8826
  def __init__(self, success=None,):
8827
    self.success = success
8828
 
8829
  def read(self, iprot):
8830
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8831
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8832
      return
8833
    iprot.readStructBegin()
8834
    while True:
8835
      (fname, ftype, fid) = iprot.readFieldBegin()
8836
      if ftype == TType.STOP:
8837
        break
8838
      if fid == 0:
8839
        if ftype == TType.BOOL:
8840
          self.success = iprot.readBool();
8841
        else:
8842
          iprot.skip(ftype)
8843
      else:
8844
        iprot.skip(ftype)
8845
      iprot.readFieldEnd()
8846
    iprot.readStructEnd()
8847
 
8848
  def write(self, oprot):
8849
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8850
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8851
      return
8852
    oprot.writeStructBegin('isItemTransferAllowed_result')
8853
    if self.success is not None:
8854
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8855
      oprot.writeBool(self.success)
8856
      oprot.writeFieldEnd()
8857
    oprot.writeFieldStop()
8858
    oprot.writeStructEnd()
8859
 
8860
  def validate(self):
8861
    return
8862
 
8863
 
8864
  def __repr__(self):
8865
    L = ['%s=%r' % (key, value)
8866
      for key, value in self.__dict__.iteritems()]
8867
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8868
 
8869
  def __eq__(self, other):
8870
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8871
 
8872
  def __ne__(self, other):
8873
    return not (self == other)
8874
 
8875
class createTransferLot_args:
8876
  """
8877
  Attributes:
8878
   - originWarehouseId
8879
   - destWarehouseId
8880
  """
8881
 
8882
  thrift_spec = (
8883
    None, # 0
8884
    (1, TType.I64, 'originWarehouseId', None, None, ), # 1
8885
    (2, TType.I64, 'destWarehouseId', None, None, ), # 2
8886
  )
8887
 
8888
  def __init__(self, originWarehouseId=None, destWarehouseId=None,):
8889
    self.originWarehouseId = originWarehouseId
8890
    self.destWarehouseId = destWarehouseId
8891
 
8892
  def read(self, iprot):
8893
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8894
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8895
      return
8896
    iprot.readStructBegin()
8897
    while True:
8898
      (fname, ftype, fid) = iprot.readFieldBegin()
8899
      if ftype == TType.STOP:
8900
        break
8901
      if fid == 1:
8902
        if ftype == TType.I64:
8903
          self.originWarehouseId = iprot.readI64();
8904
        else:
8905
          iprot.skip(ftype)
8906
      elif fid == 2:
8907
        if ftype == TType.I64:
8908
          self.destWarehouseId = iprot.readI64();
8909
        else:
8910
          iprot.skip(ftype)
8911
      else:
8912
        iprot.skip(ftype)
8913
      iprot.readFieldEnd()
8914
    iprot.readStructEnd()
8915
 
8916
  def write(self, oprot):
8917
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8918
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8919
      return
8920
    oprot.writeStructBegin('createTransferLot_args')
8921
    if self.originWarehouseId is not None:
8922
      oprot.writeFieldBegin('originWarehouseId', TType.I64, 1)
8923
      oprot.writeI64(self.originWarehouseId)
8924
      oprot.writeFieldEnd()
8925
    if self.destWarehouseId is not None:
8926
      oprot.writeFieldBegin('destWarehouseId', TType.I64, 2)
8927
      oprot.writeI64(self.destWarehouseId)
8928
      oprot.writeFieldEnd()
8929
    oprot.writeFieldStop()
8930
    oprot.writeStructEnd()
8931
 
8932
  def validate(self):
8933
    return
8934
 
8935
 
8936
  def __repr__(self):
8937
    L = ['%s=%r' % (key, value)
8938
      for key, value in self.__dict__.iteritems()]
8939
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8940
 
8941
  def __eq__(self, other):
8942
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8943
 
8944
  def __ne__(self, other):
8945
    return not (self == other)
8946
 
8947
class createTransferLot_result:
8948
  """
8949
  Attributes:
8950
   - success
8951
   - wex
8952
  """
8953
 
8954
  thrift_spec = (
8955
    (0, TType.I64, 'success', None, None, ), # 0
8956
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8957
  )
8958
 
8959
  def __init__(self, success=None, wex=None,):
8960
    self.success = success
8961
    self.wex = wex
8962
 
8963
  def read(self, iprot):
8964
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8965
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8966
      return
8967
    iprot.readStructBegin()
8968
    while True:
8969
      (fname, ftype, fid) = iprot.readFieldBegin()
8970
      if ftype == TType.STOP:
8971
        break
8972
      if fid == 0:
8973
        if ftype == TType.I64:
8974
          self.success = iprot.readI64();
8975
        else:
8976
          iprot.skip(ftype)
8977
      elif fid == 1:
8978
        if ftype == TType.STRUCT:
8979
          self.wex = WarehouseServiceException()
8980
          self.wex.read(iprot)
8981
        else:
8982
          iprot.skip(ftype)
8983
      else:
8984
        iprot.skip(ftype)
8985
      iprot.readFieldEnd()
8986
    iprot.readStructEnd()
8987
 
8988
  def write(self, oprot):
8989
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8990
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8991
      return
8992
    oprot.writeStructBegin('createTransferLot_result')
8993
    if self.success is not None:
8994
      oprot.writeFieldBegin('success', TType.I64, 0)
8995
      oprot.writeI64(self.success)
8996
      oprot.writeFieldEnd()
8997
    if self.wex is not None:
8998
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
8999
      self.wex.write(oprot)
9000
      oprot.writeFieldEnd()
9001
    oprot.writeFieldStop()
9002
    oprot.writeStructEnd()
9003
 
9004
  def validate(self):
9005
    return
9006
 
9007
 
9008
  def __repr__(self):
9009
    L = ['%s=%r' % (key, value)
9010
      for key, value in self.__dict__.iteritems()]
9011
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9012
 
9013
  def __eq__(self, other):
9014
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9015
 
9016
  def __ne__(self, other):
9017
    return not (self == other)
9018
 
9019
class getTransferLot_args:
9020
  """
9021
  Attributes:
9022
   - transferLotId
9023
  """
9024
 
9025
  thrift_spec = (
9026
    None, # 0
9027
    (1, TType.I64, 'transferLotId', None, None, ), # 1
9028
  )
9029
 
9030
  def __init__(self, transferLotId=None,):
9031
    self.transferLotId = transferLotId
9032
 
9033
  def read(self, iprot):
9034
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9035
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9036
      return
9037
    iprot.readStructBegin()
9038
    while True:
9039
      (fname, ftype, fid) = iprot.readFieldBegin()
9040
      if ftype == TType.STOP:
9041
        break
9042
      if fid == 1:
9043
        if ftype == TType.I64:
9044
          self.transferLotId = iprot.readI64();
9045
        else:
9046
          iprot.skip(ftype)
9047
      else:
9048
        iprot.skip(ftype)
9049
      iprot.readFieldEnd()
9050
    iprot.readStructEnd()
9051
 
9052
  def write(self, oprot):
9053
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9054
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9055
      return
9056
    oprot.writeStructBegin('getTransferLot_args')
9057
    if self.transferLotId is not None:
9058
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
9059
      oprot.writeI64(self.transferLotId)
9060
      oprot.writeFieldEnd()
9061
    oprot.writeFieldStop()
9062
    oprot.writeStructEnd()
9063
 
9064
  def validate(self):
9065
    return
9066
 
9067
 
9068
  def __repr__(self):
9069
    L = ['%s=%r' % (key, value)
9070
      for key, value in self.__dict__.iteritems()]
9071
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9072
 
9073
  def __eq__(self, other):
9074
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9075
 
9076
  def __ne__(self, other):
9077
    return not (self == other)
9078
 
9079
class getTransferLot_result:
9080
  """
9081
  Attributes:
9082
   - success
9083
   - wex
9084
  """
9085
 
9086
  thrift_spec = (
9087
    (0, TType.STRUCT, 'success', (TransferLot, TransferLot.thrift_spec), None, ), # 0
9088
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9089
  )
9090
 
9091
  def __init__(self, success=None, wex=None,):
9092
    self.success = success
9093
    self.wex = wex
9094
 
9095
  def read(self, iprot):
9096
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9097
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9098
      return
9099
    iprot.readStructBegin()
9100
    while True:
9101
      (fname, ftype, fid) = iprot.readFieldBegin()
9102
      if ftype == TType.STOP:
9103
        break
9104
      if fid == 0:
9105
        if ftype == TType.STRUCT:
9106
          self.success = TransferLot()
9107
          self.success.read(iprot)
9108
        else:
9109
          iprot.skip(ftype)
9110
      elif fid == 1:
9111
        if ftype == TType.STRUCT:
9112
          self.wex = WarehouseServiceException()
9113
          self.wex.read(iprot)
9114
        else:
9115
          iprot.skip(ftype)
9116
      else:
9117
        iprot.skip(ftype)
9118
      iprot.readFieldEnd()
9119
    iprot.readStructEnd()
9120
 
9121
  def write(self, oprot):
9122
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9123
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9124
      return
9125
    oprot.writeStructBegin('getTransferLot_result')
9126
    if self.success is not None:
9127
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9128
      self.success.write(oprot)
9129
      oprot.writeFieldEnd()
9130
    if self.wex is not None:
9131
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9132
      self.wex.write(oprot)
9133
      oprot.writeFieldEnd()
9134
    oprot.writeFieldStop()
9135
    oprot.writeStructEnd()
9136
 
9137
  def validate(self):
9138
    return
9139
 
9140
 
9141
  def __repr__(self):
9142
    L = ['%s=%r' % (key, value)
9143
      for key, value in self.__dict__.iteritems()]
9144
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9145
 
9146
  def __eq__(self, other):
9147
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9148
 
9149
  def __ne__(self, other):
9150
    return not (self == other)
9151
 
9152
class markTransferLotAsReceived_args:
9153
  """
9154
  Attributes:
9155
   - id
9156
   - remoteTransferRefNumber
9157
  """
9158
 
9159
  thrift_spec = (
9160
    None, # 0
9161
    (1, TType.I64, 'id', None, None, ), # 1
9162
    (2, TType.STRING, 'remoteTransferRefNumber', None, None, ), # 2
9163
  )
9164
 
9165
  def __init__(self, id=None, remoteTransferRefNumber=None,):
9166
    self.id = id
9167
    self.remoteTransferRefNumber = remoteTransferRefNumber
9168
 
9169
  def read(self, iprot):
9170
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9171
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9172
      return
9173
    iprot.readStructBegin()
9174
    while True:
9175
      (fname, ftype, fid) = iprot.readFieldBegin()
9176
      if ftype == TType.STOP:
9177
        break
9178
      if fid == 1:
9179
        if ftype == TType.I64:
9180
          self.id = iprot.readI64();
9181
        else:
9182
          iprot.skip(ftype)
9183
      elif fid == 2:
9184
        if ftype == TType.STRING:
9185
          self.remoteTransferRefNumber = iprot.readString();
9186
        else:
9187
          iprot.skip(ftype)
9188
      else:
9189
        iprot.skip(ftype)
9190
      iprot.readFieldEnd()
9191
    iprot.readStructEnd()
9192
 
9193
  def write(self, oprot):
9194
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9195
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9196
      return
9197
    oprot.writeStructBegin('markTransferLotAsReceived_args')
9198
    if self.id is not None:
9199
      oprot.writeFieldBegin('id', TType.I64, 1)
9200
      oprot.writeI64(self.id)
9201
      oprot.writeFieldEnd()
9202
    if self.remoteTransferRefNumber is not None:
9203
      oprot.writeFieldBegin('remoteTransferRefNumber', TType.STRING, 2)
9204
      oprot.writeString(self.remoteTransferRefNumber)
9205
      oprot.writeFieldEnd()
9206
    oprot.writeFieldStop()
9207
    oprot.writeStructEnd()
9208
 
9209
  def validate(self):
9210
    return
9211
 
9212
 
9213
  def __repr__(self):
9214
    L = ['%s=%r' % (key, value)
9215
      for key, value in self.__dict__.iteritems()]
9216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9217
 
9218
  def __eq__(self, other):
9219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9220
 
9221
  def __ne__(self, other):
9222
    return not (self == other)
9223
 
9224
class markTransferLotAsReceived_result:
9225
  """
9226
  Attributes:
9227
   - wex
9228
  """
9229
 
9230
  thrift_spec = (
9231
    None, # 0
9232
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9233
  )
9234
 
9235
  def __init__(self, wex=None,):
9236
    self.wex = wex
9237
 
9238
  def read(self, iprot):
9239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9241
      return
9242
    iprot.readStructBegin()
9243
    while True:
9244
      (fname, ftype, fid) = iprot.readFieldBegin()
9245
      if ftype == TType.STOP:
9246
        break
9247
      if fid == 1:
9248
        if ftype == TType.STRUCT:
9249
          self.wex = WarehouseServiceException()
9250
          self.wex.read(iprot)
9251
        else:
9252
          iprot.skip(ftype)
9253
      else:
9254
        iprot.skip(ftype)
9255
      iprot.readFieldEnd()
9256
    iprot.readStructEnd()
9257
 
9258
  def write(self, oprot):
9259
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9260
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9261
      return
9262
    oprot.writeStructBegin('markTransferLotAsReceived_result')
9263
    if self.wex is not None:
9264
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9265
      self.wex.write(oprot)
9266
      oprot.writeFieldEnd()
9267
    oprot.writeFieldStop()
9268
    oprot.writeStructEnd()
9269
 
9270
  def validate(self):
9271
    return
9272
 
9273
 
9274
  def __repr__(self):
9275
    L = ['%s=%r' % (key, value)
9276
      for key, value in self.__dict__.iteritems()]
9277
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9278
 
9279
  def __eq__(self, other):
9280
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9281
 
9282
  def __ne__(self, other):
9283
    return not (self == other)
9284
 
9285
class getTransferLotsByDate_args:
9286
  """
9287
  Attributes:
9288
   - fromDate
9289
   - toDate
9290
  """
9291
 
9292
  thrift_spec = (
9293
    None, # 0
9294
    (1, TType.I64, 'fromDate', None, None, ), # 1
9295
    (2, TType.I64, 'toDate', None, None, ), # 2
9296
  )
9297
 
9298
  def __init__(self, fromDate=None, toDate=None,):
9299
    self.fromDate = fromDate
9300
    self.toDate = toDate
9301
 
9302
  def read(self, iprot):
9303
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9304
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9305
      return
9306
    iprot.readStructBegin()
9307
    while True:
9308
      (fname, ftype, fid) = iprot.readFieldBegin()
9309
      if ftype == TType.STOP:
9310
        break
9311
      if fid == 1:
9312
        if ftype == TType.I64:
9313
          self.fromDate = iprot.readI64();
9314
        else:
9315
          iprot.skip(ftype)
9316
      elif fid == 2:
9317
        if ftype == TType.I64:
9318
          self.toDate = iprot.readI64();
9319
        else:
9320
          iprot.skip(ftype)
9321
      else:
9322
        iprot.skip(ftype)
9323
      iprot.readFieldEnd()
9324
    iprot.readStructEnd()
9325
 
9326
  def write(self, oprot):
9327
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9328
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9329
      return
9330
    oprot.writeStructBegin('getTransferLotsByDate_args')
9331
    if self.fromDate is not None:
9332
      oprot.writeFieldBegin('fromDate', TType.I64, 1)
9333
      oprot.writeI64(self.fromDate)
9334
      oprot.writeFieldEnd()
9335
    if self.toDate is not None:
9336
      oprot.writeFieldBegin('toDate', TType.I64, 2)
9337
      oprot.writeI64(self.toDate)
9338
      oprot.writeFieldEnd()
9339
    oprot.writeFieldStop()
9340
    oprot.writeStructEnd()
9341
 
9342
  def validate(self):
9343
    return
9344
 
9345
 
9346
  def __repr__(self):
9347
    L = ['%s=%r' % (key, value)
9348
      for key, value in self.__dict__.iteritems()]
9349
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9350
 
9351
  def __eq__(self, other):
9352
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9353
 
9354
  def __ne__(self, other):
9355
    return not (self == other)
9356
 
9357
class getTransferLotsByDate_result:
9358
  """
9359
  Attributes:
9360
   - success
9361
   - wex
9362
  """
9363
 
9364
  thrift_spec = (
9365
    (0, TType.LIST, 'success', (TType.STRUCT,(TransferLot, TransferLot.thrift_spec)), None, ), # 0
9366
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9367
  )
9368
 
9369
  def __init__(self, success=None, wex=None,):
9370
    self.success = success
9371
    self.wex = wex
9372
 
9373
  def read(self, iprot):
9374
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9375
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9376
      return
9377
    iprot.readStructBegin()
9378
    while True:
9379
      (fname, ftype, fid) = iprot.readFieldBegin()
9380
      if ftype == TType.STOP:
9381
        break
9382
      if fid == 0:
9383
        if ftype == TType.LIST:
9384
          self.success = []
10407 amar.kumar 9385
          (_etype157, _size154) = iprot.readListBegin()
9386
          for _i158 in xrange(_size154):
9387
            _elem159 = TransferLot()
9388
            _elem159.read(iprot)
9389
            self.success.append(_elem159)
7410 amar.kumar 9390
          iprot.readListEnd()
9391
        else:
9392
          iprot.skip(ftype)
9393
      elif fid == 1:
9394
        if ftype == TType.STRUCT:
9395
          self.wex = WarehouseServiceException()
9396
          self.wex.read(iprot)
9397
        else:
9398
          iprot.skip(ftype)
9399
      else:
9400
        iprot.skip(ftype)
9401
      iprot.readFieldEnd()
9402
    iprot.readStructEnd()
9403
 
9404
  def write(self, oprot):
9405
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9406
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9407
      return
9408
    oprot.writeStructBegin('getTransferLotsByDate_result')
9409
    if self.success is not None:
9410
      oprot.writeFieldBegin('success', TType.LIST, 0)
9411
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 9412
      for iter160 in self.success:
9413
        iter160.write(oprot)
7410 amar.kumar 9414
      oprot.writeListEnd()
9415
      oprot.writeFieldEnd()
9416
    if self.wex is not None:
9417
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9418
      self.wex.write(oprot)
9419
      oprot.writeFieldEnd()
9420
    oprot.writeFieldStop()
9421
    oprot.writeStructEnd()
9422
 
9423
  def validate(self):
9424
    return
9425
 
9426
 
9427
  def __repr__(self):
9428
    L = ['%s=%r' % (key, value)
9429
      for key, value in self.__dict__.iteritems()]
9430
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9431
 
9432
  def __eq__(self, other):
9433
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9434
 
9435
  def __ne__(self, other):
9436
    return not (self == other)
9437
 
9438
class getAllowedDestinationWarehousesForTransfer_args:
9439
  """
9440
  Attributes:
9441
   - warehouseId
9442
  """
9443
 
9444
  thrift_spec = (
9445
    None, # 0
9446
    (1, TType.I64, 'warehouseId', None, None, ), # 1
9447
  )
9448
 
9449
  def __init__(self, warehouseId=None,):
9450
    self.warehouseId = warehouseId
9451
 
9452
  def read(self, iprot):
9453
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9454
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9455
      return
9456
    iprot.readStructBegin()
9457
    while True:
9458
      (fname, ftype, fid) = iprot.readFieldBegin()
9459
      if ftype == TType.STOP:
9460
        break
9461
      if fid == 1:
9462
        if ftype == TType.I64:
9463
          self.warehouseId = iprot.readI64();
9464
        else:
9465
          iprot.skip(ftype)
9466
      else:
9467
        iprot.skip(ftype)
9468
      iprot.readFieldEnd()
9469
    iprot.readStructEnd()
9470
 
9471
  def write(self, oprot):
9472
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9473
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9474
      return
9475
    oprot.writeStructBegin('getAllowedDestinationWarehousesForTransfer_args')
9476
    if self.warehouseId is not None:
9477
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
9478
      oprot.writeI64(self.warehouseId)
9479
      oprot.writeFieldEnd()
9480
    oprot.writeFieldStop()
9481
    oprot.writeStructEnd()
9482
 
9483
  def validate(self):
9484
    return
9485
 
9486
 
9487
  def __repr__(self):
9488
    L = ['%s=%r' % (key, value)
9489
      for key, value in self.__dict__.iteritems()]
9490
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9491
 
9492
  def __eq__(self, other):
9493
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9494
 
9495
  def __ne__(self, other):
9496
    return not (self == other)
9497
 
9498
class getAllowedDestinationWarehousesForTransfer_result:
9499
  """
9500
  Attributes:
9501
   - success
9502
  """
9503
 
9504
  thrift_spec = (
9505
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9506
  )
9507
 
9508
  def __init__(self, success=None,):
9509
    self.success = success
9510
 
9511
  def read(self, iprot):
9512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9514
      return
9515
    iprot.readStructBegin()
9516
    while True:
9517
      (fname, ftype, fid) = iprot.readFieldBegin()
9518
      if ftype == TType.STOP:
9519
        break
9520
      if fid == 0:
9521
        if ftype == TType.LIST:
9522
          self.success = []
10407 amar.kumar 9523
          (_etype164, _size161) = iprot.readListBegin()
9524
          for _i165 in xrange(_size161):
9525
            _elem166 = iprot.readI64();
9526
            self.success.append(_elem166)
7410 amar.kumar 9527
          iprot.readListEnd()
9528
        else:
9529
          iprot.skip(ftype)
9530
      else:
9531
        iprot.skip(ftype)
9532
      iprot.readFieldEnd()
9533
    iprot.readStructEnd()
9534
 
9535
  def write(self, oprot):
9536
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9537
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9538
      return
9539
    oprot.writeStructBegin('getAllowedDestinationWarehousesForTransfer_result')
9540
    if self.success is not None:
9541
      oprot.writeFieldBegin('success', TType.LIST, 0)
9542
      oprot.writeListBegin(TType.I64, len(self.success))
10407 amar.kumar 9543
      for iter167 in self.success:
9544
        oprot.writeI64(iter167)
7410 amar.kumar 9545
      oprot.writeListEnd()
9546
      oprot.writeFieldEnd()
9547
    oprot.writeFieldStop()
9548
    oprot.writeStructEnd()
9549
 
9550
  def validate(self):
9551
    return
9552
 
9553
 
9554
  def __repr__(self):
9555
    L = ['%s=%r' % (key, value)
9556
      for key, value in self.__dict__.iteritems()]
9557
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9558
 
9559
  def __eq__(self, other):
9560
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9561
 
9562
  def __ne__(self, other):
9563
    return not (self == other)
9564
 
9565
class getItemsInTransferLot_args:
9566
  """
9567
  Attributes:
9568
   - transferLotId
9569
  """
9570
 
9571
  thrift_spec = (
9572
    None, # 0
9573
    (1, TType.I64, 'transferLotId', None, None, ), # 1
9574
  )
9575
 
9576
  def __init__(self, transferLotId=None,):
9577
    self.transferLotId = transferLotId
9578
 
9579
  def read(self, iprot):
9580
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9581
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9582
      return
9583
    iprot.readStructBegin()
9584
    while True:
9585
      (fname, ftype, fid) = iprot.readFieldBegin()
9586
      if ftype == TType.STOP:
9587
        break
9588
      if fid == 1:
9589
        if ftype == TType.I64:
9590
          self.transferLotId = iprot.readI64();
9591
        else:
9592
          iprot.skip(ftype)
9593
      else:
9594
        iprot.skip(ftype)
9595
      iprot.readFieldEnd()
9596
    iprot.readStructEnd()
9597
 
9598
  def write(self, oprot):
9599
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9600
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9601
      return
9602
    oprot.writeStructBegin('getItemsInTransferLot_args')
9603
    if self.transferLotId is not None:
9604
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
9605
      oprot.writeI64(self.transferLotId)
9606
      oprot.writeFieldEnd()
9607
    oprot.writeFieldStop()
9608
    oprot.writeStructEnd()
9609
 
9610
  def validate(self):
9611
    return
9612
 
9613
 
9614
  def __repr__(self):
9615
    L = ['%s=%r' % (key, value)
9616
      for key, value in self.__dict__.iteritems()]
9617
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9618
 
9619
  def __eq__(self, other):
9620
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9621
 
9622
  def __ne__(self, other):
9623
    return not (self == other)
9624
 
9625
class getItemsInTransferLot_result:
9626
  """
9627
  Attributes:
9628
   - success
9629
  """
9630
 
9631
  thrift_spec = (
9632
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
9633
  )
9634
 
9635
  def __init__(self, success=None,):
9636
    self.success = success
9637
 
9638
  def read(self, iprot):
9639
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9640
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9641
      return
9642
    iprot.readStructBegin()
9643
    while True:
9644
      (fname, ftype, fid) = iprot.readFieldBegin()
9645
      if ftype == TType.STOP:
9646
        break
9647
      if fid == 0:
9648
        if ftype == TType.MAP:
9649
          self.success = {}
10407 amar.kumar 9650
          (_ktype169, _vtype170, _size168 ) = iprot.readMapBegin() 
9651
          for _i172 in xrange(_size168):
9652
            _key173 = iprot.readI64();
9653
            _val174 = iprot.readI64();
9654
            self.success[_key173] = _val174
7410 amar.kumar 9655
          iprot.readMapEnd()
9656
        else:
9657
          iprot.skip(ftype)
9658
      else:
9659
        iprot.skip(ftype)
9660
      iprot.readFieldEnd()
9661
    iprot.readStructEnd()
9662
 
9663
  def write(self, oprot):
9664
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9665
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9666
      return
9667
    oprot.writeStructBegin('getItemsInTransferLot_result')
9668
    if self.success is not None:
9669
      oprot.writeFieldBegin('success', TType.MAP, 0)
9670
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
10407 amar.kumar 9671
      for kiter175,viter176 in self.success.items():
9672
        oprot.writeI64(kiter175)
9673
        oprot.writeI64(viter176)
7410 amar.kumar 9674
      oprot.writeMapEnd()
9675
      oprot.writeFieldEnd()
9676
    oprot.writeFieldStop()
9677
    oprot.writeStructEnd()
9678
 
9679
  def validate(self):
9680
    return
9681
 
9682
 
9683
  def __repr__(self):
9684
    L = ['%s=%r' % (key, value)
9685
      for key, value in self.__dict__.iteritems()]
9686
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9687
 
9688
  def __eq__(self, other):
9689
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9690
 
9691
  def __ne__(self, other):
9692
    return not (self == other)
9693
 
9694
class markItemsAsReceivedForTransferLot_args:
9695
  """
9696
  Attributes:
9697
   - id
9698
  """
9699
 
9700
  thrift_spec = (
9701
    None, # 0
9702
    (1, TType.I64, 'id', None, None, ), # 1
9703
  )
9704
 
9705
  def __init__(self, id=None,):
9706
    self.id = id
9707
 
9708
  def read(self, iprot):
9709
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9710
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9711
      return
9712
    iprot.readStructBegin()
9713
    while True:
9714
      (fname, ftype, fid) = iprot.readFieldBegin()
9715
      if ftype == TType.STOP:
9716
        break
9717
      if fid == 1:
9718
        if ftype == TType.I64:
9719
          self.id = iprot.readI64();
9720
        else:
9721
          iprot.skip(ftype)
9722
      else:
9723
        iprot.skip(ftype)
9724
      iprot.readFieldEnd()
9725
    iprot.readStructEnd()
9726
 
9727
  def write(self, oprot):
9728
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9729
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9730
      return
9731
    oprot.writeStructBegin('markItemsAsReceivedForTransferLot_args')
9732
    if self.id is not None:
9733
      oprot.writeFieldBegin('id', TType.I64, 1)
9734
      oprot.writeI64(self.id)
9735
      oprot.writeFieldEnd()
9736
    oprot.writeFieldStop()
9737
    oprot.writeStructEnd()
9738
 
9739
  def validate(self):
9740
    return
9741
 
9742
 
9743
  def __repr__(self):
9744
    L = ['%s=%r' % (key, value)
9745
      for key, value in self.__dict__.iteritems()]
9746
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9747
 
9748
  def __eq__(self, other):
9749
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9750
 
9751
  def __ne__(self, other):
9752
    return not (self == other)
9753
 
9754
class markItemsAsReceivedForTransferLot_result:
9755
  """
9756
  Attributes:
9757
   - wex
9758
  """
9759
 
9760
  thrift_spec = (
9761
    None, # 0
9762
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9763
  )
9764
 
9765
  def __init__(self, wex=None,):
9766
    self.wex = wex
9767
 
9768
  def read(self, iprot):
9769
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9770
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9771
      return
9772
    iprot.readStructBegin()
9773
    while True:
9774
      (fname, ftype, fid) = iprot.readFieldBegin()
9775
      if ftype == TType.STOP:
9776
        break
9777
      if fid == 1:
9778
        if ftype == TType.STRUCT:
9779
          self.wex = WarehouseServiceException()
9780
          self.wex.read(iprot)
9781
        else:
9782
          iprot.skip(ftype)
9783
      else:
9784
        iprot.skip(ftype)
9785
      iprot.readFieldEnd()
9786
    iprot.readStructEnd()
9787
 
9788
  def write(self, oprot):
9789
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9790
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9791
      return
9792
    oprot.writeStructBegin('markItemsAsReceivedForTransferLot_result')
9793
    if self.wex is not None:
9794
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9795
      self.wex.write(oprot)
9796
      oprot.writeFieldEnd()
9797
    oprot.writeFieldStop()
9798
    oprot.writeStructEnd()
9799
 
9800
  def validate(self):
9801
    return
9802
 
9803
 
9804
  def __repr__(self):
9805
    L = ['%s=%r' % (key, value)
9806
      for key, value in self.__dict__.iteritems()]
9807
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9808
 
9809
  def __eq__(self, other):
9810
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9811
 
9812
  def __ne__(self, other):
9813
    return not (self == other)
9814
 
9815
class updateTransferLotAfterItemReceive_args:
9816
  """
9817
  Attributes:
9818
   - id
9819
  """
9820
 
9821
  thrift_spec = (
9822
    None, # 0
9823
    (1, TType.I64, 'id', None, None, ), # 1
9824
  )
9825
 
9826
  def __init__(self, id=None,):
9827
    self.id = id
9828
 
9829
  def read(self, iprot):
9830
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9831
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9832
      return
9833
    iprot.readStructBegin()
9834
    while True:
9835
      (fname, ftype, fid) = iprot.readFieldBegin()
9836
      if ftype == TType.STOP:
9837
        break
9838
      if fid == 1:
9839
        if ftype == TType.I64:
9840
          self.id = iprot.readI64();
9841
        else:
9842
          iprot.skip(ftype)
9843
      else:
9844
        iprot.skip(ftype)
9845
      iprot.readFieldEnd()
9846
    iprot.readStructEnd()
9847
 
9848
  def write(self, oprot):
9849
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9850
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9851
      return
9852
    oprot.writeStructBegin('updateTransferLotAfterItemReceive_args')
9853
    if self.id is not None:
9854
      oprot.writeFieldBegin('id', TType.I64, 1)
9855
      oprot.writeI64(self.id)
9856
      oprot.writeFieldEnd()
9857
    oprot.writeFieldStop()
9858
    oprot.writeStructEnd()
9859
 
9860
  def validate(self):
9861
    return
9862
 
9863
 
9864
  def __repr__(self):
9865
    L = ['%s=%r' % (key, value)
9866
      for key, value in self.__dict__.iteritems()]
9867
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9868
 
9869
  def __eq__(self, other):
9870
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9871
 
9872
  def __ne__(self, other):
9873
    return not (self == other)
9874
 
9875
class updateTransferLotAfterItemReceive_result:
9876
  """
9877
  Attributes:
9878
   - success
9879
   - wex
9880
  """
9881
 
9882
  thrift_spec = (
9883
    (0, TType.I32, 'success', None, None, ), # 0
9884
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9885
  )
9886
 
9887
  def __init__(self, success=None, wex=None,):
9888
    self.success = success
9889
    self.wex = wex
9890
 
9891
  def read(self, iprot):
9892
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9893
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9894
      return
9895
    iprot.readStructBegin()
9896
    while True:
9897
      (fname, ftype, fid) = iprot.readFieldBegin()
9898
      if ftype == TType.STOP:
9899
        break
9900
      if fid == 0:
9901
        if ftype == TType.I32:
9902
          self.success = iprot.readI32();
9903
        else:
9904
          iprot.skip(ftype)
9905
      elif fid == 1:
9906
        if ftype == TType.STRUCT:
9907
          self.wex = WarehouseServiceException()
9908
          self.wex.read(iprot)
9909
        else:
9910
          iprot.skip(ftype)
9911
      else:
9912
        iprot.skip(ftype)
9913
      iprot.readFieldEnd()
9914
    iprot.readStructEnd()
9915
 
9916
  def write(self, oprot):
9917
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9918
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9919
      return
9920
    oprot.writeStructBegin('updateTransferLotAfterItemReceive_result')
9921
    if self.success is not None:
9922
      oprot.writeFieldBegin('success', TType.I32, 0)
9923
      oprot.writeI32(self.success)
9924
      oprot.writeFieldEnd()
9925
    if self.wex is not None:
9926
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9927
      self.wex.write(oprot)
9928
      oprot.writeFieldEnd()
9929
    oprot.writeFieldStop()
9930
    oprot.writeStructEnd()
9931
 
9932
  def validate(self):
9933
    return
9934
 
9935
 
9936
  def __repr__(self):
9937
    L = ['%s=%r' % (key, value)
9938
      for key, value in self.__dict__.iteritems()]
9939
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9940
 
9941
  def __eq__(self, other):
9942
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9943
 
9944
  def __ne__(self, other):
9945
    return not (self == other)
9946
 
7459 amar.kumar 9947
class scanForTransferOut_args:
7410 amar.kumar 9948
  """
9949
  Attributes:
9950
   - inventoryItems
9951
   - type
9952
   - transferLotId
9953
  """
9954
 
9955
  thrift_spec = (
9956
    None, # 0
9957
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
9958
    (2, TType.I32, 'type', None, None, ), # 2
9959
    (3, TType.I64, 'transferLotId', None, None, ), # 3
9960
  )
9961
 
9962
  def __init__(self, inventoryItems=None, type=None, transferLotId=None,):
9963
    self.inventoryItems = inventoryItems
9964
    self.type = type
9965
    self.transferLotId = transferLotId
9966
 
9967
  def read(self, iprot):
9968
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9969
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9970
      return
9971
    iprot.readStructBegin()
9972
    while True:
9973
      (fname, ftype, fid) = iprot.readFieldBegin()
9974
      if ftype == TType.STOP:
9975
        break
9976
      if fid == 1:
9977
        if ftype == TType.LIST:
9978
          self.inventoryItems = []
10407 amar.kumar 9979
          (_etype180, _size177) = iprot.readListBegin()
9980
          for _i181 in xrange(_size177):
9981
            _elem182 = InventoryItem()
9982
            _elem182.read(iprot)
9983
            self.inventoryItems.append(_elem182)
7410 amar.kumar 9984
          iprot.readListEnd()
9985
        else:
9986
          iprot.skip(ftype)
9987
      elif fid == 2:
9988
        if ftype == TType.I32:
9989
          self.type = iprot.readI32();
9990
        else:
9991
          iprot.skip(ftype)
9992
      elif fid == 3:
9993
        if ftype == TType.I64:
9994
          self.transferLotId = iprot.readI64();
9995
        else:
9996
          iprot.skip(ftype)
9997
      else:
9998
        iprot.skip(ftype)
9999
      iprot.readFieldEnd()
10000
    iprot.readStructEnd()
10001
 
10002
  def write(self, oprot):
10003
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10004
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10005
      return
7459 amar.kumar 10006
    oprot.writeStructBegin('scanForTransferOut_args')
7410 amar.kumar 10007
    if self.inventoryItems is not None:
10008
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
10009
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 10010
      for iter183 in self.inventoryItems:
10011
        iter183.write(oprot)
7410 amar.kumar 10012
      oprot.writeListEnd()
10013
      oprot.writeFieldEnd()
10014
    if self.type is not None:
10015
      oprot.writeFieldBegin('type', TType.I32, 2)
10016
      oprot.writeI32(self.type)
10017
      oprot.writeFieldEnd()
10018
    if self.transferLotId is not None:
10019
      oprot.writeFieldBegin('transferLotId', TType.I64, 3)
10020
      oprot.writeI64(self.transferLotId)
10021
      oprot.writeFieldEnd()
10022
    oprot.writeFieldStop()
10023
    oprot.writeStructEnd()
10024
 
10025
  def validate(self):
10026
    return
10027
 
10028
 
10029
  def __repr__(self):
10030
    L = ['%s=%r' % (key, value)
10031
      for key, value in self.__dict__.iteritems()]
10032
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10033
 
10034
  def __eq__(self, other):
10035
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10036
 
10037
  def __ne__(self, other):
10038
    return not (self == other)
10039
 
7459 amar.kumar 10040
class scanForTransferOut_result:
7410 amar.kumar 10041
  """
10042
  Attributes:
10043
   - wex
10044
  """
10045
 
10046
  thrift_spec = (
10047
    None, # 0
10048
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10049
  )
10050
 
10051
  def __init__(self, wex=None,):
10052
    self.wex = wex
10053
 
10054
  def read(self, iprot):
10055
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10056
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10057
      return
10058
    iprot.readStructBegin()
10059
    while True:
10060
      (fname, ftype, fid) = iprot.readFieldBegin()
10061
      if ftype == TType.STOP:
10062
        break
10063
      if fid == 1:
10064
        if ftype == TType.STRUCT:
10065
          self.wex = WarehouseServiceException()
10066
          self.wex.read(iprot)
10067
        else:
10068
          iprot.skip(ftype)
10069
      else:
10070
        iprot.skip(ftype)
10071
      iprot.readFieldEnd()
10072
    iprot.readStructEnd()
10073
 
10074
  def write(self, oprot):
10075
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10076
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10077
      return
7459 amar.kumar 10078
    oprot.writeStructBegin('scanForTransferOut_result')
7410 amar.kumar 10079
    if self.wex is not None:
10080
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10081
      self.wex.write(oprot)
10082
      oprot.writeFieldEnd()
10083
    oprot.writeFieldStop()
10084
    oprot.writeStructEnd()
10085
 
10086
  def validate(self):
10087
    return
10088
 
10089
 
10090
  def __repr__(self):
10091
    L = ['%s=%r' % (key, value)
10092
      for key, value in self.__dict__.iteritems()]
10093
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10094
 
10095
  def __eq__(self, other):
10096
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10097
 
10098
  def __ne__(self, other):
10099
    return not (self == other)
7459 amar.kumar 10100
 
10101
class scanForTransferIn_args:
10102
  """
10103
  Attributes:
10104
   - inventoryItems
10105
   - type
10106
   - transferLotId
10107
  """
10108
 
10109
  thrift_spec = (
10110
    None, # 0
10111
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
10112
    (2, TType.I32, 'type', None, None, ), # 2
10113
    (3, TType.I64, 'transferLotId', None, None, ), # 3
10114
  )
10115
 
10116
  def __init__(self, inventoryItems=None, type=None, transferLotId=None,):
10117
    self.inventoryItems = inventoryItems
10118
    self.type = type
10119
    self.transferLotId = transferLotId
10120
 
10121
  def read(self, iprot):
10122
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10123
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10124
      return
10125
    iprot.readStructBegin()
10126
    while True:
10127
      (fname, ftype, fid) = iprot.readFieldBegin()
10128
      if ftype == TType.STOP:
10129
        break
10130
      if fid == 1:
10131
        if ftype == TType.LIST:
10132
          self.inventoryItems = []
10407 amar.kumar 10133
          (_etype187, _size184) = iprot.readListBegin()
10134
          for _i188 in xrange(_size184):
10135
            _elem189 = InventoryItem()
10136
            _elem189.read(iprot)
10137
            self.inventoryItems.append(_elem189)
7459 amar.kumar 10138
          iprot.readListEnd()
10139
        else:
10140
          iprot.skip(ftype)
10141
      elif fid == 2:
10142
        if ftype == TType.I32:
10143
          self.type = iprot.readI32();
10144
        else:
10145
          iprot.skip(ftype)
10146
      elif fid == 3:
10147
        if ftype == TType.I64:
10148
          self.transferLotId = iprot.readI64();
10149
        else:
10150
          iprot.skip(ftype)
10151
      else:
10152
        iprot.skip(ftype)
10153
      iprot.readFieldEnd()
10154
    iprot.readStructEnd()
10155
 
10156
  def write(self, oprot):
10157
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10158
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10159
      return
10160
    oprot.writeStructBegin('scanForTransferIn_args')
10161
    if self.inventoryItems is not None:
10162
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
10163
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 10164
      for iter190 in self.inventoryItems:
10165
        iter190.write(oprot)
7459 amar.kumar 10166
      oprot.writeListEnd()
10167
      oprot.writeFieldEnd()
10168
    if self.type is not None:
10169
      oprot.writeFieldBegin('type', TType.I32, 2)
10170
      oprot.writeI32(self.type)
10171
      oprot.writeFieldEnd()
10172
    if self.transferLotId is not None:
10173
      oprot.writeFieldBegin('transferLotId', TType.I64, 3)
10174
      oprot.writeI64(self.transferLotId)
10175
      oprot.writeFieldEnd()
10176
    oprot.writeFieldStop()
10177
    oprot.writeStructEnd()
10178
 
10179
  def validate(self):
10180
    return
10181
 
10182
 
10183
  def __repr__(self):
10184
    L = ['%s=%r' % (key, value)
10185
      for key, value in self.__dict__.iteritems()]
10186
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10187
 
10188
  def __eq__(self, other):
10189
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10190
 
10191
  def __ne__(self, other):
10192
    return not (self == other)
10193
 
10194
class scanForTransferIn_result:
10195
  """
10196
  Attributes:
10197
   - wex
10198
  """
10199
 
10200
  thrift_spec = (
10201
    None, # 0
10202
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10203
  )
10204
 
10205
  def __init__(self, wex=None,):
10206
    self.wex = wex
10207
 
10208
  def read(self, iprot):
10209
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10210
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10211
      return
10212
    iprot.readStructBegin()
10213
    while True:
10214
      (fname, ftype, fid) = iprot.readFieldBegin()
10215
      if ftype == TType.STOP:
10216
        break
10217
      if fid == 1:
10218
        if ftype == TType.STRUCT:
10219
          self.wex = WarehouseServiceException()
10220
          self.wex.read(iprot)
10221
        else:
10222
          iprot.skip(ftype)
10223
      else:
10224
        iprot.skip(ftype)
10225
      iprot.readFieldEnd()
10226
    iprot.readStructEnd()
10227
 
10228
  def write(self, oprot):
10229
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10230
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10231
      return
10232
    oprot.writeStructBegin('scanForTransferIn_result')
10233
    if self.wex is not None:
10234
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10235
      self.wex.write(oprot)
10236
      oprot.writeFieldEnd()
10237
    oprot.writeFieldStop()
10238
    oprot.writeStructEnd()
10239
 
10240
  def validate(self):
10241
    return
10242
 
10243
 
10244
  def __repr__(self):
10245
    L = ['%s=%r' % (key, value)
10246
      for key, value in self.__dict__.iteritems()]
10247
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10248
 
10249
  def __eq__(self, other):
10250
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10251
 
10252
  def __ne__(self, other):
10253
    return not (self == other)
10254
 
10255
class scanForOursThirdPartyReceive_args:
10256
  """
10257
  Attributes:
10258
   - inventoryItems
10259
   - id
10260
  """
10261
 
10262
  thrift_spec = (
10263
    None, # 0
10264
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
10265
    (2, TType.I64, 'id', None, None, ), # 2
10266
  )
10267
 
10268
  def __init__(self, inventoryItems=None, id=None,):
10269
    self.inventoryItems = inventoryItems
10270
    self.id = id
10271
 
10272
  def read(self, iprot):
10273
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10274
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10275
      return
10276
    iprot.readStructBegin()
10277
    while True:
10278
      (fname, ftype, fid) = iprot.readFieldBegin()
10279
      if ftype == TType.STOP:
10280
        break
10281
      if fid == 1:
10282
        if ftype == TType.LIST:
10283
          self.inventoryItems = []
10407 amar.kumar 10284
          (_etype194, _size191) = iprot.readListBegin()
10285
          for _i195 in xrange(_size191):
10286
            _elem196 = InventoryItem()
10287
            _elem196.read(iprot)
10288
            self.inventoryItems.append(_elem196)
7459 amar.kumar 10289
          iprot.readListEnd()
10290
        else:
10291
          iprot.skip(ftype)
10292
      elif fid == 2:
10293
        if ftype == TType.I64:
10294
          self.id = iprot.readI64();
10295
        else:
10296
          iprot.skip(ftype)
10297
      else:
10298
        iprot.skip(ftype)
10299
      iprot.readFieldEnd()
10300
    iprot.readStructEnd()
10301
 
10302
  def write(self, oprot):
10303
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10304
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10305
      return
10306
    oprot.writeStructBegin('scanForOursThirdPartyReceive_args')
10307
    if self.inventoryItems is not None:
10308
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
10309
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 10310
      for iter197 in self.inventoryItems:
10311
        iter197.write(oprot)
7459 amar.kumar 10312
      oprot.writeListEnd()
10313
      oprot.writeFieldEnd()
10314
    if self.id is not None:
10315
      oprot.writeFieldBegin('id', TType.I64, 2)
10316
      oprot.writeI64(self.id)
10317
      oprot.writeFieldEnd()
10318
    oprot.writeFieldStop()
10319
    oprot.writeStructEnd()
10320
 
10321
  def validate(self):
10322
    return
10323
 
10324
 
10325
  def __repr__(self):
10326
    L = ['%s=%r' % (key, value)
10327
      for key, value in self.__dict__.iteritems()]
10328
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10329
 
10330
  def __eq__(self, other):
10331
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10332
 
10333
  def __ne__(self, other):
10334
    return not (self == other)
10335
 
10336
class scanForOursThirdPartyReceive_result:
10337
  """
10338
  Attributes:
10339
   - wex
10340
  """
10341
 
10342
  thrift_spec = (
10343
    None, # 0
10344
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10345
  )
10346
 
10347
  def __init__(self, wex=None,):
10348
    self.wex = wex
10349
 
10350
  def read(self, iprot):
10351
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10352
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10353
      return
10354
    iprot.readStructBegin()
10355
    while True:
10356
      (fname, ftype, fid) = iprot.readFieldBegin()
10357
      if ftype == TType.STOP:
10358
        break
10359
      if fid == 1:
10360
        if ftype == TType.STRUCT:
10361
          self.wex = WarehouseServiceException()
10362
          self.wex.read(iprot)
10363
        else:
10364
          iprot.skip(ftype)
10365
      else:
10366
        iprot.skip(ftype)
10367
      iprot.readFieldEnd()
10368
    iprot.readStructEnd()
10369
 
10370
  def write(self, oprot):
10371
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10372
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10373
      return
10374
    oprot.writeStructBegin('scanForOursThirdPartyReceive_result')
10375
    if self.wex is not None:
10376
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10377
      self.wex.write(oprot)
10378
      oprot.writeFieldEnd()
10379
    oprot.writeFieldStop()
10380
    oprot.writeStructEnd()
10381
 
10382
  def validate(self):
10383
    return
10384
 
10385
 
10386
  def __repr__(self):
10387
    L = ['%s=%r' % (key, value)
10388
      for key, value in self.__dict__.iteritems()]
10389
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10390
 
10391
  def __eq__(self, other):
10392
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10393
 
10394
  def __ne__(self, other):
10395
    return not (self == other)
7574 amar.kumar 10396
 
10397
class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args:
10398
  """
10399
  Attributes:
10400
   - itemId
10401
   - physicalWarehouseId
10402
  """
10403
 
10404
  thrift_spec = (
10405
    None, # 0
10406
    (1, TType.I64, 'itemId', None, None, ), # 1
10407
    (2, TType.I64, 'physicalWarehouseId', None, None, ), # 2
10408
  )
10409
 
10410
  def __init__(self, itemId=None, physicalWarehouseId=None,):
10411
    self.itemId = itemId
10412
    self.physicalWarehouseId = physicalWarehouseId
10413
 
10414
  def read(self, iprot):
10415
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10416
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10417
      return
10418
    iprot.readStructBegin()
10419
    while True:
10420
      (fname, ftype, fid) = iprot.readFieldBegin()
10421
      if ftype == TType.STOP:
10422
        break
10423
      if fid == 1:
10424
        if ftype == TType.I64:
10425
          self.itemId = iprot.readI64();
10426
        else:
10427
          iprot.skip(ftype)
10428
      elif fid == 2:
10429
        if ftype == TType.I64:
10430
          self.physicalWarehouseId = iprot.readI64();
10431
        else:
10432
          iprot.skip(ftype)
10433
      else:
10434
        iprot.skip(ftype)
10435
      iprot.readFieldEnd()
10436
    iprot.readStructEnd()
10437
 
10438
  def write(self, oprot):
10439
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10440
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10441
      return
10442
    oprot.writeStructBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args')
10443
    if self.itemId is not None:
10444
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10445
      oprot.writeI64(self.itemId)
10446
      oprot.writeFieldEnd()
10447
    if self.physicalWarehouseId is not None:
10448
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 2)
10449
      oprot.writeI64(self.physicalWarehouseId)
10450
      oprot.writeFieldEnd()
10451
    oprot.writeFieldStop()
10452
    oprot.writeStructEnd()
10453
 
10454
  def validate(self):
10455
    return
10456
 
10457
 
10458
  def __repr__(self):
10459
    L = ['%s=%r' % (key, value)
10460
      for key, value in self.__dict__.iteritems()]
10461
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10462
 
10463
  def __eq__(self, other):
10464
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10465
 
10466
  def __ne__(self, other):
10467
    return not (self == other)
10468
 
10469
class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result:
10470
  """
10471
  Attributes:
10472
   - success
10473
   - wex
10474
  """
10475
 
10476
  thrift_spec = (
10477
    (0, TType.I64, 'success', None, None, ), # 0
10478
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10479
  )
10480
 
10481
  def __init__(self, success=None, wex=None,):
10482
    self.success = success
10483
    self.wex = wex
10484
 
10485
  def read(self, iprot):
10486
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10487
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10488
      return
10489
    iprot.readStructBegin()
10490
    while True:
10491
      (fname, ftype, fid) = iprot.readFieldBegin()
10492
      if ftype == TType.STOP:
10493
        break
10494
      if fid == 0:
10495
        if ftype == TType.I64:
10496
          self.success = iprot.readI64();
10497
        else:
10498
          iprot.skip(ftype)
10499
      elif fid == 1:
10500
        if ftype == TType.STRUCT:
10501
          self.wex = WarehouseServiceException()
10502
          self.wex.read(iprot)
10503
        else:
10504
          iprot.skip(ftype)
10505
      else:
10506
        iprot.skip(ftype)
10507
      iprot.readFieldEnd()
10508
    iprot.readStructEnd()
10509
 
10510
  def write(self, oprot):
10511
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10512
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10513
      return
10514
    oprot.writeStructBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result')
10515
    if self.success is not None:
10516
      oprot.writeFieldBegin('success', TType.I64, 0)
10517
      oprot.writeI64(self.success)
10518
      oprot.writeFieldEnd()
10519
    if self.wex is not None:
10520
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10521
      self.wex.write(oprot)
10522
      oprot.writeFieldEnd()
10523
    oprot.writeFieldStop()
10524
    oprot.writeStructEnd()
10525
 
10526
  def validate(self):
10527
    return
10528
 
10529
 
10530
  def __repr__(self):
10531
    L = ['%s=%r' % (key, value)
10532
      for key, value in self.__dict__.iteritems()]
10533
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10534
 
10535
  def __eq__(self, other):
10536
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10537
 
10538
  def __ne__(self, other):
10539
    return not (self == other)
7672 rajveer 10540
 
10541
class getInTransitInventory_args:
10542
  """
10543
  Attributes:
10544
   - originWarehouseId
10545
  """
10546
 
10547
  thrift_spec = (
10548
    None, # 0
10549
    (1, TType.I64, 'originWarehouseId', None, None, ), # 1
10550
  )
10551
 
10552
  def __init__(self, originWarehouseId=None,):
10553
    self.originWarehouseId = originWarehouseId
10554
 
10555
  def read(self, iprot):
10556
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10557
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10558
      return
10559
    iprot.readStructBegin()
10560
    while True:
10561
      (fname, ftype, fid) = iprot.readFieldBegin()
10562
      if ftype == TType.STOP:
10563
        break
10564
      if fid == 1:
10565
        if ftype == TType.I64:
10566
          self.originWarehouseId = iprot.readI64();
10567
        else:
10568
          iprot.skip(ftype)
10569
      else:
10570
        iprot.skip(ftype)
10571
      iprot.readFieldEnd()
10572
    iprot.readStructEnd()
10573
 
10574
  def write(self, oprot):
10575
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10576
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10577
      return
10578
    oprot.writeStructBegin('getInTransitInventory_args')
10579
    if self.originWarehouseId is not None:
10580
      oprot.writeFieldBegin('originWarehouseId', TType.I64, 1)
10581
      oprot.writeI64(self.originWarehouseId)
10582
      oprot.writeFieldEnd()
10583
    oprot.writeFieldStop()
10584
    oprot.writeStructEnd()
10585
 
10586
  def validate(self):
10587
    return
10588
 
10589
 
10590
  def __repr__(self):
10591
    L = ['%s=%r' % (key, value)
10592
      for key, value in self.__dict__.iteritems()]
10593
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10594
 
10595
  def __eq__(self, other):
10596
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10597
 
10598
  def __ne__(self, other):
10599
    return not (self == other)
10600
 
10601
class getInTransitInventory_result:
10602
  """
10603
  Attributes:
10604
   - success
10605
  """
10606
 
10607
  thrift_spec = (
10608
    (0, TType.LIST, 'success', (TType.STRUCT,(InTransitInventory, InTransitInventory.thrift_spec)), None, ), # 0
10609
  )
10610
 
10611
  def __init__(self, success=None,):
10612
    self.success = success
10613
 
10614
  def read(self, iprot):
10615
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10616
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10617
      return
10618
    iprot.readStructBegin()
10619
    while True:
10620
      (fname, ftype, fid) = iprot.readFieldBegin()
10621
      if ftype == TType.STOP:
10622
        break
10623
      if fid == 0:
10624
        if ftype == TType.LIST:
10625
          self.success = []
10407 amar.kumar 10626
          (_etype201, _size198) = iprot.readListBegin()
10627
          for _i202 in xrange(_size198):
10628
            _elem203 = InTransitInventory()
10629
            _elem203.read(iprot)
10630
            self.success.append(_elem203)
7672 rajveer 10631
          iprot.readListEnd()
10632
        else:
10633
          iprot.skip(ftype)
10634
      else:
10635
        iprot.skip(ftype)
10636
      iprot.readFieldEnd()
10637
    iprot.readStructEnd()
10638
 
10639
  def write(self, oprot):
10640
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10641
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10642
      return
10643
    oprot.writeStructBegin('getInTransitInventory_result')
10644
    if self.success is not None:
10645
      oprot.writeFieldBegin('success', TType.LIST, 0)
10646
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 10647
      for iter204 in self.success:
10648
        iter204.write(oprot)
7672 rajveer 10649
      oprot.writeListEnd()
10650
      oprot.writeFieldEnd()
10651
    oprot.writeFieldStop()
10652
    oprot.writeStructEnd()
10653
 
10654
  def validate(self):
10655
    return
10656
 
10657
 
10658
  def __repr__(self):
10659
    L = ['%s=%r' % (key, value)
10660
      for key, value in self.__dict__.iteritems()]
10661
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10662
 
10663
  def __eq__(self, other):
10664
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10665
 
10666
  def __ne__(self, other):
10667
    return not (self == other)
7968 amar.kumar 10668
 
10669
class isItemAvailableForSale_args:
10670
  """
10671
  Attributes:
10672
   - itemId
10673
   - serialNumber
10674
   - warehouseId
10675
  """
10676
 
10677
  thrift_spec = (
10678
    None, # 0
10679
    (1, TType.I64, 'itemId', None, None, ), # 1
10680
    (2, TType.STRING, 'serialNumber', None, None, ), # 2
10681
    (3, TType.I64, 'warehouseId', None, None, ), # 3
10682
  )
10683
 
10684
  def __init__(self, itemId=None, serialNumber=None, warehouseId=None,):
10685
    self.itemId = itemId
10686
    self.serialNumber = serialNumber
10687
    self.warehouseId = warehouseId
10688
 
10689
  def read(self, iprot):
10690
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10691
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10692
      return
10693
    iprot.readStructBegin()
10694
    while True:
10695
      (fname, ftype, fid) = iprot.readFieldBegin()
10696
      if ftype == TType.STOP:
10697
        break
10698
      if fid == 1:
10699
        if ftype == TType.I64:
10700
          self.itemId = iprot.readI64();
10701
        else:
10702
          iprot.skip(ftype)
10703
      elif fid == 2:
10704
        if ftype == TType.STRING:
10705
          self.serialNumber = iprot.readString();
10706
        else:
10707
          iprot.skip(ftype)
10708
      elif fid == 3:
10709
        if ftype == TType.I64:
10710
          self.warehouseId = iprot.readI64();
10711
        else:
10712
          iprot.skip(ftype)
10713
      else:
10714
        iprot.skip(ftype)
10715
      iprot.readFieldEnd()
10716
    iprot.readStructEnd()
10717
 
10718
  def write(self, oprot):
10719
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10720
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10721
      return
10722
    oprot.writeStructBegin('isItemAvailableForSale_args')
10723
    if self.itemId is not None:
10724
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10725
      oprot.writeI64(self.itemId)
10726
      oprot.writeFieldEnd()
10727
    if self.serialNumber is not None:
10728
      oprot.writeFieldBegin('serialNumber', TType.STRING, 2)
10729
      oprot.writeString(self.serialNumber)
10730
      oprot.writeFieldEnd()
10731
    if self.warehouseId is not None:
10732
      oprot.writeFieldBegin('warehouseId', TType.I64, 3)
10733
      oprot.writeI64(self.warehouseId)
10734
      oprot.writeFieldEnd()
10735
    oprot.writeFieldStop()
10736
    oprot.writeStructEnd()
10737
 
10738
  def validate(self):
10739
    return
10740
 
10741
 
10742
  def __repr__(self):
10743
    L = ['%s=%r' % (key, value)
10744
      for key, value in self.__dict__.iteritems()]
10745
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10746
 
10747
  def __eq__(self, other):
10748
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10749
 
10750
  def __ne__(self, other):
10751
    return not (self == other)
10752
 
10753
class isItemAvailableForSale_result:
10754
  """
10755
  Attributes:
10756
   - success
10757
   - wex
10758
  """
10759
 
10760
  thrift_spec = (
10761
    (0, TType.BOOL, 'success', None, None, ), # 0
10762
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10763
  )
10764
 
10765
  def __init__(self, success=None, wex=None,):
10766
    self.success = success
10767
    self.wex = wex
10768
 
10769
  def read(self, iprot):
10770
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10771
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10772
      return
10773
    iprot.readStructBegin()
10774
    while True:
10775
      (fname, ftype, fid) = iprot.readFieldBegin()
10776
      if ftype == TType.STOP:
10777
        break
10778
      if fid == 0:
10779
        if ftype == TType.BOOL:
10780
          self.success = iprot.readBool();
10781
        else:
10782
          iprot.skip(ftype)
10783
      elif fid == 1:
10784
        if ftype == TType.STRUCT:
10785
          self.wex = WarehouseServiceException()
10786
          self.wex.read(iprot)
10787
        else:
10788
          iprot.skip(ftype)
10789
      else:
10790
        iprot.skip(ftype)
10791
      iprot.readFieldEnd()
10792
    iprot.readStructEnd()
10793
 
10794
  def write(self, oprot):
10795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10796
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10797
      return
10798
    oprot.writeStructBegin('isItemAvailableForSale_result')
10799
    if self.success is not None:
10800
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10801
      oprot.writeBool(self.success)
10802
      oprot.writeFieldEnd()
10803
    if self.wex is not None:
10804
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10805
      self.wex.write(oprot)
10806
      oprot.writeFieldEnd()
10807
    oprot.writeFieldStop()
10808
    oprot.writeStructEnd()
10809
 
10810
  def validate(self):
10811
    return
10812
 
10813
 
10814
  def __repr__(self):
10815
    L = ['%s=%r' % (key, value)
10816
      for key, value in self.__dict__.iteritems()]
10817
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10818
 
10819
  def __eq__(self, other):
10820
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10821
 
10822
  def __ne__(self, other):
10823
    return not (self == other)
10824
 
10825
class getHistoricBadInventoryByScans_args:
10826
  """
10827
  Attributes:
10828
   - date
10829
  """
10830
 
10831
  thrift_spec = (
10832
    None, # 0
10833
    (1, TType.I64, 'date', None, None, ), # 1
10834
  )
10835
 
10836
  def __init__(self, date=None,):
10837
    self.date = date
10838
 
10839
  def read(self, iprot):
10840
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10841
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10842
      return
10843
    iprot.readStructBegin()
10844
    while True:
10845
      (fname, ftype, fid) = iprot.readFieldBegin()
10846
      if ftype == TType.STOP:
10847
        break
10848
      if fid == 1:
10849
        if ftype == TType.I64:
10850
          self.date = iprot.readI64();
10851
        else:
10852
          iprot.skip(ftype)
10853
      else:
10854
        iprot.skip(ftype)
10855
      iprot.readFieldEnd()
10856
    iprot.readStructEnd()
10857
 
10858
  def write(self, oprot):
10859
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10860
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10861
      return
10862
    oprot.writeStructBegin('getHistoricBadInventoryByScans_args')
10863
    if self.date is not None:
10864
      oprot.writeFieldBegin('date', TType.I64, 1)
10865
      oprot.writeI64(self.date)
10866
      oprot.writeFieldEnd()
10867
    oprot.writeFieldStop()
10868
    oprot.writeStructEnd()
10869
 
10870
  def validate(self):
10871
    return
10872
 
10873
 
10874
  def __repr__(self):
10875
    L = ['%s=%r' % (key, value)
10876
      for key, value in self.__dict__.iteritems()]
10877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10878
 
10879
  def __eq__(self, other):
10880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10881
 
10882
  def __ne__(self, other):
10883
    return not (self == other)
10884
 
10885
class getHistoricBadInventoryByScans_result:
10886
  """
10887
  Attributes:
10888
   - success
10889
   - wex
10890
  """
10891
 
10892
  thrift_spec = (
10893
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
10894
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10895
  )
10896
 
10897
  def __init__(self, success=None, wex=None,):
10898
    self.success = success
10899
    self.wex = wex
10900
 
10901
  def read(self, iprot):
10902
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10903
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10904
      return
10905
    iprot.readStructBegin()
10906
    while True:
10907
      (fname, ftype, fid) = iprot.readFieldBegin()
10908
      if ftype == TType.STOP:
10909
        break
10910
      if fid == 0:
10911
        if ftype == TType.LIST:
10912
          self.success = []
10407 amar.kumar 10913
          (_etype208, _size205) = iprot.readListBegin()
10914
          for _i209 in xrange(_size205):
10915
            _elem210 = InventoryAvailability()
10916
            _elem210.read(iprot)
10917
            self.success.append(_elem210)
7968 amar.kumar 10918
          iprot.readListEnd()
10919
        else:
10920
          iprot.skip(ftype)
10921
      elif fid == 1:
10922
        if ftype == TType.STRUCT:
10923
          self.wex = WarehouseServiceException()
10924
          self.wex.read(iprot)
10925
        else:
10926
          iprot.skip(ftype)
10927
      else:
10928
        iprot.skip(ftype)
10929
      iprot.readFieldEnd()
10930
    iprot.readStructEnd()
10931
 
10932
  def write(self, oprot):
10933
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10934
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10935
      return
10936
    oprot.writeStructBegin('getHistoricBadInventoryByScans_result')
10937
    if self.success is not None:
10938
      oprot.writeFieldBegin('success', TType.LIST, 0)
10939
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 10940
      for iter211 in self.success:
10941
        iter211.write(oprot)
7968 amar.kumar 10942
      oprot.writeListEnd()
10943
      oprot.writeFieldEnd()
10944
    if self.wex is not None:
10945
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10946
      self.wex.write(oprot)
10947
      oprot.writeFieldEnd()
10948
    oprot.writeFieldStop()
10949
    oprot.writeStructEnd()
10950
 
10951
  def validate(self):
10952
    return
10953
 
10954
 
10955
  def __repr__(self):
10956
    L = ['%s=%r' % (key, value)
10957
      for key, value in self.__dict__.iteritems()]
10958
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10959
 
10960
  def __eq__(self, other):
10961
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10962
 
10963
  def __ne__(self, other):
10964
    return not (self == other)
8565 amar.kumar 10965
 
10966
class scanForBadSale_args:
10967
  """
10968
  Attributes:
8717 amar.kumar 10969
   - serialNumber
10970
   - itemNumber
10971
   - itemId
8565 amar.kumar 10972
   - orderId
8717 amar.kumar 10973
   - fulfilmentWarehouseId
8565 amar.kumar 10974
   - quantity
10975
   - billingWarehouseId
10976
  """
10977
 
10978
  thrift_spec = (
10979
    None, # 0
8717 amar.kumar 10980
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
10981
    (2, TType.STRING, 'itemNumber', None, None, ), # 2
10982
    (3, TType.I64, 'itemId', None, None, ), # 3
10983
    (4, TType.I64, 'orderId', None, None, ), # 4
10984
    (5, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 5
10985
    (6, TType.I64, 'quantity', None, None, ), # 6
10986
    (7, TType.I64, 'billingWarehouseId', None, None, ), # 7
8565 amar.kumar 10987
  )
10988
 
8717 amar.kumar 10989
  def __init__(self, serialNumber=None, itemNumber=None, itemId=None, orderId=None, fulfilmentWarehouseId=None, quantity=None, billingWarehouseId=None,):
10990
    self.serialNumber = serialNumber
10991
    self.itemNumber = itemNumber
10992
    self.itemId = itemId
8565 amar.kumar 10993
    self.orderId = orderId
8717 amar.kumar 10994
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 10995
    self.quantity = quantity
10996
    self.billingWarehouseId = billingWarehouseId
10997
 
10998
  def read(self, iprot):
10999
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11000
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11001
      return
11002
    iprot.readStructBegin()
11003
    while True:
11004
      (fname, ftype, fid) = iprot.readFieldBegin()
11005
      if ftype == TType.STOP:
11006
        break
11007
      if fid == 1:
8717 amar.kumar 11008
        if ftype == TType.STRING:
11009
          self.serialNumber = iprot.readString();
8565 amar.kumar 11010
        else:
11011
          iprot.skip(ftype)
11012
      elif fid == 2:
8717 amar.kumar 11013
        if ftype == TType.STRING:
11014
          self.itemNumber = iprot.readString();
8565 amar.kumar 11015
        else:
11016
          iprot.skip(ftype)
11017
      elif fid == 3:
11018
        if ftype == TType.I64:
8717 amar.kumar 11019
          self.itemId = iprot.readI64();
8565 amar.kumar 11020
        else:
11021
          iprot.skip(ftype)
11022
      elif fid == 4:
11023
        if ftype == TType.I64:
8717 amar.kumar 11024
          self.orderId = iprot.readI64();
8565 amar.kumar 11025
        else:
11026
          iprot.skip(ftype)
11027
      elif fid == 5:
11028
        if ftype == TType.I64:
8717 amar.kumar 11029
          self.fulfilmentWarehouseId = iprot.readI64();
11030
        else:
11031
          iprot.skip(ftype)
11032
      elif fid == 6:
11033
        if ftype == TType.I64:
11034
          self.quantity = iprot.readI64();
11035
        else:
11036
          iprot.skip(ftype)
11037
      elif fid == 7:
11038
        if ftype == TType.I64:
8565 amar.kumar 11039
          self.billingWarehouseId = iprot.readI64();
11040
        else:
11041
          iprot.skip(ftype)
11042
      else:
11043
        iprot.skip(ftype)
11044
      iprot.readFieldEnd()
11045
    iprot.readStructEnd()
11046
 
11047
  def write(self, oprot):
11048
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11049
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11050
      return
11051
    oprot.writeStructBegin('scanForBadSale_args')
8717 amar.kumar 11052
    if self.serialNumber is not None:
11053
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
11054
      oprot.writeString(self.serialNumber)
8565 amar.kumar 11055
      oprot.writeFieldEnd()
8717 amar.kumar 11056
    if self.itemNumber is not None:
11057
      oprot.writeFieldBegin('itemNumber', TType.STRING, 2)
11058
      oprot.writeString(self.itemNumber)
11059
      oprot.writeFieldEnd()
11060
    if self.itemId is not None:
11061
      oprot.writeFieldBegin('itemId', TType.I64, 3)
11062
      oprot.writeI64(self.itemId)
11063
      oprot.writeFieldEnd()
8565 amar.kumar 11064
    if self.orderId is not None:
8717 amar.kumar 11065
      oprot.writeFieldBegin('orderId', TType.I64, 4)
8565 amar.kumar 11066
      oprot.writeI64(self.orderId)
11067
      oprot.writeFieldEnd()
8717 amar.kumar 11068
    if self.fulfilmentWarehouseId is not None:
11069
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 5)
11070
      oprot.writeI64(self.fulfilmentWarehouseId)
11071
      oprot.writeFieldEnd()
8565 amar.kumar 11072
    if self.quantity is not None:
8717 amar.kumar 11073
      oprot.writeFieldBegin('quantity', TType.I64, 6)
8565 amar.kumar 11074
      oprot.writeI64(self.quantity)
11075
      oprot.writeFieldEnd()
11076
    if self.billingWarehouseId is not None:
8717 amar.kumar 11077
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 7)
8565 amar.kumar 11078
      oprot.writeI64(self.billingWarehouseId)
11079
      oprot.writeFieldEnd()
11080
    oprot.writeFieldStop()
11081
    oprot.writeStructEnd()
11082
 
11083
  def validate(self):
11084
    return
11085
 
11086
 
11087
  def __repr__(self):
11088
    L = ['%s=%r' % (key, value)
11089
      for key, value in self.__dict__.iteritems()]
11090
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11091
 
11092
  def __eq__(self, other):
11093
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11094
 
11095
  def __ne__(self, other):
11096
    return not (self == other)
11097
 
11098
class scanForBadSale_result:
8717 amar.kumar 11099
  """
11100
  Attributes:
11101
   - success
11102
   - wex
11103
  """
8565 amar.kumar 11104
 
11105
  thrift_spec = (
8717 amar.kumar 11106
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
11107
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8565 amar.kumar 11108
  )
11109
 
8717 amar.kumar 11110
  def __init__(self, success=None, wex=None,):
11111
    self.success = success
11112
    self.wex = wex
11113
 
8565 amar.kumar 11114
  def read(self, iprot):
11115
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11116
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11117
      return
11118
    iprot.readStructBegin()
11119
    while True:
11120
      (fname, ftype, fid) = iprot.readFieldBegin()
11121
      if ftype == TType.STOP:
11122
        break
8717 amar.kumar 11123
      if fid == 0:
11124
        if ftype == TType.STRUCT:
11125
          self.success = InventoryItem()
11126
          self.success.read(iprot)
11127
        else:
11128
          iprot.skip(ftype)
11129
      elif fid == 1:
11130
        if ftype == TType.STRUCT:
11131
          self.wex = WarehouseServiceException()
11132
          self.wex.read(iprot)
11133
        else:
11134
          iprot.skip(ftype)
8565 amar.kumar 11135
      else:
11136
        iprot.skip(ftype)
11137
      iprot.readFieldEnd()
11138
    iprot.readStructEnd()
11139
 
11140
  def write(self, oprot):
11141
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11142
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11143
      return
11144
    oprot.writeStructBegin('scanForBadSale_result')
8717 amar.kumar 11145
    if self.success is not None:
11146
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11147
      self.success.write(oprot)
11148
      oprot.writeFieldEnd()
11149
    if self.wex is not None:
11150
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11151
      self.wex.write(oprot)
11152
      oprot.writeFieldEnd()
8565 amar.kumar 11153
    oprot.writeFieldStop()
11154
    oprot.writeStructEnd()
11155
 
11156
  def validate(self):
11157
    return
11158
 
11159
 
11160
  def __repr__(self):
11161
    L = ['%s=%r' % (key, value)
11162
      for key, value in self.__dict__.iteritems()]
11163
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11164
 
11165
  def __eq__(self, other):
11166
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11167
 
11168
  def __ne__(self, other):
11169
    return not (self == other)
10120 manish.sha 11170
 
11171
class getTransferLotItemsForMarkReceive_args:
11172
  """
11173
  Attributes:
11174
   - transferLotId
11175
   - scanType
11176
  """
11177
 
11178
  thrift_spec = (
11179
    None, # 0
11180
    (1, TType.I64, 'transferLotId', None, None, ), # 1
11181
    (2, TType.I32, 'scanType', None, None, ), # 2
11182
  )
11183
 
11184
  def __init__(self, transferLotId=None, scanType=None,):
11185
    self.transferLotId = transferLotId
11186
    self.scanType = scanType
11187
 
11188
  def read(self, iprot):
11189
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11190
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11191
      return
11192
    iprot.readStructBegin()
11193
    while True:
11194
      (fname, ftype, fid) = iprot.readFieldBegin()
11195
      if ftype == TType.STOP:
11196
        break
11197
      if fid == 1:
11198
        if ftype == TType.I64:
11199
          self.transferLotId = iprot.readI64();
11200
        else:
11201
          iprot.skip(ftype)
11202
      elif fid == 2:
11203
        if ftype == TType.I32:
11204
          self.scanType = iprot.readI32();
11205
        else:
11206
          iprot.skip(ftype)
11207
      else:
11208
        iprot.skip(ftype)
11209
      iprot.readFieldEnd()
11210
    iprot.readStructEnd()
11211
 
11212
  def write(self, oprot):
11213
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11214
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11215
      return
11216
    oprot.writeStructBegin('getTransferLotItemsForMarkReceive_args')
11217
    if self.transferLotId is not None:
11218
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
11219
      oprot.writeI64(self.transferLotId)
11220
      oprot.writeFieldEnd()
11221
    if self.scanType is not None:
11222
      oprot.writeFieldBegin('scanType', TType.I32, 2)
11223
      oprot.writeI32(self.scanType)
11224
      oprot.writeFieldEnd()
11225
    oprot.writeFieldStop()
11226
    oprot.writeStructEnd()
11227
 
11228
  def validate(self):
11229
    return
11230
 
11231
 
11232
  def __repr__(self):
11233
    L = ['%s=%r' % (key, value)
11234
      for key, value in self.__dict__.iteritems()]
11235
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11236
 
11237
  def __eq__(self, other):
11238
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11239
 
11240
  def __ne__(self, other):
11241
    return not (self == other)
11242
 
11243
class getTransferLotItemsForMarkReceive_result:
11244
  """
11245
  Attributes:
11246
   - success
11247
   - wex
11248
  """
11249
 
11250
  thrift_spec = (
11251
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
11252
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11253
  )
11254
 
11255
  def __init__(self, success=None, wex=None,):
11256
    self.success = success
11257
    self.wex = wex
11258
 
11259
  def read(self, iprot):
11260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11262
      return
11263
    iprot.readStructBegin()
11264
    while True:
11265
      (fname, ftype, fid) = iprot.readFieldBegin()
11266
      if ftype == TType.STOP:
11267
        break
11268
      if fid == 0:
11269
        if ftype == TType.LIST:
11270
          self.success = []
10407 amar.kumar 11271
          (_etype215, _size212) = iprot.readListBegin()
11272
          for _i216 in xrange(_size212):
11273
            _elem217 = InventoryItem()
11274
            _elem217.read(iprot)
11275
            self.success.append(_elem217)
10120 manish.sha 11276
          iprot.readListEnd()
11277
        else:
11278
          iprot.skip(ftype)
11279
      elif fid == 1:
11280
        if ftype == TType.STRUCT:
11281
          self.wex = WarehouseServiceException()
11282
          self.wex.read(iprot)
11283
        else:
11284
          iprot.skip(ftype)
11285
      else:
11286
        iprot.skip(ftype)
11287
      iprot.readFieldEnd()
11288
    iprot.readStructEnd()
11289
 
11290
  def write(self, oprot):
11291
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11292
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11293
      return
11294
    oprot.writeStructBegin('getTransferLotItemsForMarkReceive_result')
11295
    if self.success is not None:
11296
      oprot.writeFieldBegin('success', TType.LIST, 0)
11297
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 11298
      for iter218 in self.success:
11299
        iter218.write(oprot)
10120 manish.sha 11300
      oprot.writeListEnd()
11301
      oprot.writeFieldEnd()
11302
    if self.wex is not None:
11303
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11304
      self.wex.write(oprot)
11305
      oprot.writeFieldEnd()
11306
    oprot.writeFieldStop()
11307
    oprot.writeStructEnd()
11308
 
11309
  def validate(self):
11310
    return
11311
 
11312
 
11313
  def __repr__(self):
11314
    L = ['%s=%r' % (key, value)
11315
      for key, value in self.__dict__.iteritems()]
11316
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11317
 
11318
  def __eq__(self, other):
11319
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11320
 
11321
  def __ne__(self, other):
11322
    return not (self == other)
11323
 
11324
class markItemsAsReceivedForTransferLotPartial_args:
11325
  """
11326
  Attributes:
11327
   - inventoryItems
11328
   - transferLotId
11329
  """
11330
 
11331
  thrift_spec = (
11332
    None, # 0
11333
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
11334
    (2, TType.I64, 'transferLotId', None, None, ), # 2
11335
  )
11336
 
11337
  def __init__(self, inventoryItems=None, transferLotId=None,):
11338
    self.inventoryItems = inventoryItems
11339
    self.transferLotId = transferLotId
11340
 
11341
  def read(self, iprot):
11342
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11343
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11344
      return
11345
    iprot.readStructBegin()
11346
    while True:
11347
      (fname, ftype, fid) = iprot.readFieldBegin()
11348
      if ftype == TType.STOP:
11349
        break
11350
      if fid == 1:
11351
        if ftype == TType.LIST:
11352
          self.inventoryItems = []
10407 amar.kumar 11353
          (_etype222, _size219) = iprot.readListBegin()
11354
          for _i223 in xrange(_size219):
11355
            _elem224 = InventoryItem()
11356
            _elem224.read(iprot)
11357
            self.inventoryItems.append(_elem224)
10120 manish.sha 11358
          iprot.readListEnd()
11359
        else:
11360
          iprot.skip(ftype)
11361
      elif fid == 2:
11362
        if ftype == TType.I64:
11363
          self.transferLotId = iprot.readI64();
11364
        else:
11365
          iprot.skip(ftype)
11366
      else:
11367
        iprot.skip(ftype)
11368
      iprot.readFieldEnd()
11369
    iprot.readStructEnd()
11370
 
11371
  def write(self, oprot):
11372
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11373
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11374
      return
11375
    oprot.writeStructBegin('markItemsAsReceivedForTransferLotPartial_args')
11376
    if self.inventoryItems is not None:
11377
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
11378
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 11379
      for iter225 in self.inventoryItems:
11380
        iter225.write(oprot)
10120 manish.sha 11381
      oprot.writeListEnd()
11382
      oprot.writeFieldEnd()
11383
    if self.transferLotId is not None:
11384
      oprot.writeFieldBegin('transferLotId', TType.I64, 2)
11385
      oprot.writeI64(self.transferLotId)
11386
      oprot.writeFieldEnd()
11387
    oprot.writeFieldStop()
11388
    oprot.writeStructEnd()
11389
 
11390
  def validate(self):
11391
    return
11392
 
11393
 
11394
  def __repr__(self):
11395
    L = ['%s=%r' % (key, value)
11396
      for key, value in self.__dict__.iteritems()]
11397
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11398
 
11399
  def __eq__(self, other):
11400
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11401
 
11402
  def __ne__(self, other):
11403
    return not (self == other)
11404
 
11405
class markItemsAsReceivedForTransferLotPartial_result:
11406
  """
11407
  Attributes:
11408
   - wex
11409
  """
11410
 
11411
  thrift_spec = (
11412
    None, # 0
11413
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11414
  )
11415
 
11416
  def __init__(self, wex=None,):
11417
    self.wex = wex
11418
 
11419
  def read(self, iprot):
11420
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11421
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11422
      return
11423
    iprot.readStructBegin()
11424
    while True:
11425
      (fname, ftype, fid) = iprot.readFieldBegin()
11426
      if ftype == TType.STOP:
11427
        break
11428
      if fid == 1:
11429
        if ftype == TType.STRUCT:
11430
          self.wex = WarehouseServiceException()
11431
          self.wex.read(iprot)
11432
        else:
11433
          iprot.skip(ftype)
11434
      else:
11435
        iprot.skip(ftype)
11436
      iprot.readFieldEnd()
11437
    iprot.readStructEnd()
11438
 
11439
  def write(self, oprot):
11440
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11441
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11442
      return
11443
    oprot.writeStructBegin('markItemsAsReceivedForTransferLotPartial_result')
11444
    if self.wex is not None:
11445
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11446
      self.wex.write(oprot)
11447
      oprot.writeFieldEnd()
11448
    oprot.writeFieldStop()
11449
    oprot.writeStructEnd()
11450
 
11451
  def validate(self):
11452
    return
11453
 
11454
 
11455
  def __repr__(self):
11456
    L = ['%s=%r' % (key, value)
11457
      for key, value in self.__dict__.iteritems()]
11458
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11459
 
11460
  def __eq__(self, other):
11461
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11462
 
11463
  def __ne__(self, other):
11464
    return not (self == other)
11465
 
11466
class markTransferLotAsReceivedPartial_args:
11467
  """
11468
  Attributes:
11469
   - id
11470
   - remoteTransferRefNumber
11471
  """
11472
 
11473
  thrift_spec = (
11474
    None, # 0
11475
    (1, TType.I64, 'id', None, None, ), # 1
11476
    (2, TType.STRING, 'remoteTransferRefNumber', None, None, ), # 2
11477
  )
11478
 
11479
  def __init__(self, id=None, remoteTransferRefNumber=None,):
11480
    self.id = id
11481
    self.remoteTransferRefNumber = remoteTransferRefNumber
11482
 
11483
  def read(self, iprot):
11484
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11485
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11486
      return
11487
    iprot.readStructBegin()
11488
    while True:
11489
      (fname, ftype, fid) = iprot.readFieldBegin()
11490
      if ftype == TType.STOP:
11491
        break
11492
      if fid == 1:
11493
        if ftype == TType.I64:
11494
          self.id = iprot.readI64();
11495
        else:
11496
          iprot.skip(ftype)
11497
      elif fid == 2:
11498
        if ftype == TType.STRING:
11499
          self.remoteTransferRefNumber = iprot.readString();
11500
        else:
11501
          iprot.skip(ftype)
11502
      else:
11503
        iprot.skip(ftype)
11504
      iprot.readFieldEnd()
11505
    iprot.readStructEnd()
11506
 
11507
  def write(self, oprot):
11508
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11509
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11510
      return
11511
    oprot.writeStructBegin('markTransferLotAsReceivedPartial_args')
11512
    if self.id is not None:
11513
      oprot.writeFieldBegin('id', TType.I64, 1)
11514
      oprot.writeI64(self.id)
11515
      oprot.writeFieldEnd()
11516
    if self.remoteTransferRefNumber is not None:
11517
      oprot.writeFieldBegin('remoteTransferRefNumber', TType.STRING, 2)
11518
      oprot.writeString(self.remoteTransferRefNumber)
11519
      oprot.writeFieldEnd()
11520
    oprot.writeFieldStop()
11521
    oprot.writeStructEnd()
11522
 
11523
  def validate(self):
11524
    return
11525
 
11526
 
11527
  def __repr__(self):
11528
    L = ['%s=%r' % (key, value)
11529
      for key, value in self.__dict__.iteritems()]
11530
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11531
 
11532
  def __eq__(self, other):
11533
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11534
 
11535
  def __ne__(self, other):
11536
    return not (self == other)
11537
 
11538
class markTransferLotAsReceivedPartial_result:
11539
  """
11540
  Attributes:
11541
   - wex
11542
  """
11543
 
11544
  thrift_spec = (
11545
    None, # 0
11546
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11547
  )
11548
 
11549
  def __init__(self, wex=None,):
11550
    self.wex = wex
11551
 
11552
  def read(self, iprot):
11553
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11554
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11555
      return
11556
    iprot.readStructBegin()
11557
    while True:
11558
      (fname, ftype, fid) = iprot.readFieldBegin()
11559
      if ftype == TType.STOP:
11560
        break
11561
      if fid == 1:
11562
        if ftype == TType.STRUCT:
11563
          self.wex = WarehouseServiceException()
11564
          self.wex.read(iprot)
11565
        else:
11566
          iprot.skip(ftype)
11567
      else:
11568
        iprot.skip(ftype)
11569
      iprot.readFieldEnd()
11570
    iprot.readStructEnd()
11571
 
11572
  def write(self, oprot):
11573
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11574
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11575
      return
11576
    oprot.writeStructBegin('markTransferLotAsReceivedPartial_result')
11577
    if self.wex is not None:
11578
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11579
      self.wex.write(oprot)
11580
      oprot.writeFieldEnd()
11581
    oprot.writeFieldStop()
11582
    oprot.writeStructEnd()
11583
 
11584
  def validate(self):
11585
    return
11586
 
11587
 
11588
  def __repr__(self):
11589
    L = ['%s=%r' % (key, value)
11590
      for key, value in self.__dict__.iteritems()]
11591
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11592
 
11593
  def __eq__(self, other):
11594
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11595
 
11596
  def __ne__(self, other):
11597
    return not (self == other)
10690 manish.sha 11598
 
11599
class getInventoryItemScannedInForPO_args:
11600
  """
11601
  Attributes:
11602
   - itemId
11603
   - purchaseIds
11604
  """
11605
 
11606
  thrift_spec = (
11607
    None, # 0
11608
    (1, TType.I64, 'itemId', None, None, ), # 1
11609
    (2, TType.LIST, 'purchaseIds', (TType.I64,None), None, ), # 2
11610
  )
11611
 
11612
  def __init__(self, itemId=None, purchaseIds=None,):
11613
    self.itemId = itemId
11614
    self.purchaseIds = purchaseIds
11615
 
11616
  def read(self, iprot):
11617
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11618
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11619
      return
11620
    iprot.readStructBegin()
11621
    while True:
11622
      (fname, ftype, fid) = iprot.readFieldBegin()
11623
      if ftype == TType.STOP:
11624
        break
11625
      if fid == 1:
11626
        if ftype == TType.I64:
11627
          self.itemId = iprot.readI64();
11628
        else:
11629
          iprot.skip(ftype)
11630
      elif fid == 2:
11631
        if ftype == TType.LIST:
11632
          self.purchaseIds = []
11633
          (_etype229, _size226) = iprot.readListBegin()
11634
          for _i230 in xrange(_size226):
11635
            _elem231 = iprot.readI64();
11636
            self.purchaseIds.append(_elem231)
11637
          iprot.readListEnd()
11638
        else:
11639
          iprot.skip(ftype)
11640
      else:
11641
        iprot.skip(ftype)
11642
      iprot.readFieldEnd()
11643
    iprot.readStructEnd()
11644
 
11645
  def write(self, oprot):
11646
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11647
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11648
      return
11649
    oprot.writeStructBegin('getInventoryItemScannedInForPO_args')
11650
    if self.itemId is not None:
11651
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11652
      oprot.writeI64(self.itemId)
11653
      oprot.writeFieldEnd()
11654
    if self.purchaseIds is not None:
11655
      oprot.writeFieldBegin('purchaseIds', TType.LIST, 2)
11656
      oprot.writeListBegin(TType.I64, len(self.purchaseIds))
11657
      for iter232 in self.purchaseIds:
11658
        oprot.writeI64(iter232)
11659
      oprot.writeListEnd()
11660
      oprot.writeFieldEnd()
11661
    oprot.writeFieldStop()
11662
    oprot.writeStructEnd()
11663
 
11664
  def validate(self):
11665
    return
11666
 
11667
 
11668
  def __repr__(self):
11669
    L = ['%s=%r' % (key, value)
11670
      for key, value in self.__dict__.iteritems()]
11671
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11672
 
11673
  def __eq__(self, other):
11674
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11675
 
11676
  def __ne__(self, other):
11677
    return not (self == other)
11678
 
11679
class getInventoryItemScannedInForPO_result:
11680
  """
11681
  Attributes:
11682
   - success
11683
   - wex
11684
  """
11685
 
11686
  thrift_spec = (
11687
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
11688
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11689
  )
11690
 
11691
  def __init__(self, success=None, wex=None,):
11692
    self.success = success
11693
    self.wex = wex
11694
 
11695
  def read(self, iprot):
11696
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11697
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11698
      return
11699
    iprot.readStructBegin()
11700
    while True:
11701
      (fname, ftype, fid) = iprot.readFieldBegin()
11702
      if ftype == TType.STOP:
11703
        break
11704
      if fid == 0:
11705
        if ftype == TType.LIST:
11706
          self.success = []
11707
          (_etype236, _size233) = iprot.readListBegin()
11708
          for _i237 in xrange(_size233):
11709
            _elem238 = InventoryItem()
11710
            _elem238.read(iprot)
11711
            self.success.append(_elem238)
11712
          iprot.readListEnd()
11713
        else:
11714
          iprot.skip(ftype)
11715
      elif fid == 1:
11716
        if ftype == TType.STRUCT:
11717
          self.wex = WarehouseServiceException()
11718
          self.wex.read(iprot)
11719
        else:
11720
          iprot.skip(ftype)
11721
      else:
11722
        iprot.skip(ftype)
11723
      iprot.readFieldEnd()
11724
    iprot.readStructEnd()
11725
 
11726
  def write(self, oprot):
11727
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11728
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11729
      return
11730
    oprot.writeStructBegin('getInventoryItemScannedInForPO_result')
11731
    if self.success is not None:
11732
      oprot.writeFieldBegin('success', TType.LIST, 0)
11733
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11734
      for iter239 in self.success:
11735
        iter239.write(oprot)
11736
      oprot.writeListEnd()
11737
      oprot.writeFieldEnd()
11738
    if self.wex is not None:
11739
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11740
      self.wex.write(oprot)
11741
      oprot.writeFieldEnd()
11742
    oprot.writeFieldStop()
11743
    oprot.writeStructEnd()
11744
 
11745
  def validate(self):
11746
    return
11747
 
11748
 
11749
  def __repr__(self):
11750
    L = ['%s=%r' % (key, value)
11751
      for key, value in self.__dict__.iteritems()]
11752
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11753
 
11754
  def __eq__(self, other):
11755
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11756
 
11757
  def __ne__(self, other):
11758
    return not (self == other)
11759
 
11760
class getAmazonTransferredSkuDetails_args:
11761
  """
11762
  Attributes:
11763
   - itemIds
11764
  """
11765
 
11766
  thrift_spec = (
11767
    None, # 0
11768
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
11769
  )
11770
 
11771
  def __init__(self, itemIds=None,):
11772
    self.itemIds = itemIds
11773
 
11774
  def read(self, iprot):
11775
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11776
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11777
      return
11778
    iprot.readStructBegin()
11779
    while True:
11780
      (fname, ftype, fid) = iprot.readFieldBegin()
11781
      if ftype == TType.STOP:
11782
        break
11783
      if fid == 1:
11784
        if ftype == TType.LIST:
11785
          self.itemIds = []
11786
          (_etype243, _size240) = iprot.readListBegin()
11787
          for _i244 in xrange(_size240):
11788
            _elem245 = iprot.readI64();
11789
            self.itemIds.append(_elem245)
11790
          iprot.readListEnd()
11791
        else:
11792
          iprot.skip(ftype)
11793
      else:
11794
        iprot.skip(ftype)
11795
      iprot.readFieldEnd()
11796
    iprot.readStructEnd()
11797
 
11798
  def write(self, oprot):
11799
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11800
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11801
      return
11802
    oprot.writeStructBegin('getAmazonTransferredSkuDetails_args')
11803
    if self.itemIds is not None:
11804
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
11805
      oprot.writeListBegin(TType.I64, len(self.itemIds))
11806
      for iter246 in self.itemIds:
11807
        oprot.writeI64(iter246)
11808
      oprot.writeListEnd()
11809
      oprot.writeFieldEnd()
11810
    oprot.writeFieldStop()
11811
    oprot.writeStructEnd()
11812
 
11813
  def validate(self):
11814
    return
11815
 
11816
 
11817
  def __repr__(self):
11818
    L = ['%s=%r' % (key, value)
11819
      for key, value in self.__dict__.iteritems()]
11820
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11821
 
11822
  def __eq__(self, other):
11823
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11824
 
11825
  def __ne__(self, other):
11826
    return not (self == other)
11827
 
11828
class getAmazonTransferredSkuDetails_result:
11829
  """
11830
  Attributes:
11831
   - success
11832
   - wex
11833
  """
11834
 
11835
  thrift_spec = (
11836
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonTransferredSkuDetail, AmazonTransferredSkuDetail.thrift_spec)), None, ), # 0
11837
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11838
  )
11839
 
11840
  def __init__(self, success=None, wex=None,):
11841
    self.success = success
11842
    self.wex = wex
11843
 
11844
  def read(self, iprot):
11845
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11846
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11847
      return
11848
    iprot.readStructBegin()
11849
    while True:
11850
      (fname, ftype, fid) = iprot.readFieldBegin()
11851
      if ftype == TType.STOP:
11852
        break
11853
      if fid == 0:
11854
        if ftype == TType.LIST:
11855
          self.success = []
11856
          (_etype250, _size247) = iprot.readListBegin()
11857
          for _i251 in xrange(_size247):
11858
            _elem252 = AmazonTransferredSkuDetail()
11859
            _elem252.read(iprot)
11860
            self.success.append(_elem252)
11861
          iprot.readListEnd()
11862
        else:
11863
          iprot.skip(ftype)
11864
      elif fid == 1:
11865
        if ftype == TType.STRUCT:
11866
          self.wex = WarehouseServiceException()
11867
          self.wex.read(iprot)
11868
        else:
11869
          iprot.skip(ftype)
11870
      else:
11871
        iprot.skip(ftype)
11872
      iprot.readFieldEnd()
11873
    iprot.readStructEnd()
11874
 
11875
  def write(self, oprot):
11876
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11877
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11878
      return
11879
    oprot.writeStructBegin('getAmazonTransferredSkuDetails_result')
11880
    if self.success is not None:
11881
      oprot.writeFieldBegin('success', TType.LIST, 0)
11882
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11883
      for iter253 in self.success:
11884
        iter253.write(oprot)
11885
      oprot.writeListEnd()
11886
      oprot.writeFieldEnd()
11887
    if self.wex is not None:
11888
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11889
      self.wex.write(oprot)
11890
      oprot.writeFieldEnd()
11891
    oprot.writeFieldStop()
11892
    oprot.writeStructEnd()
11893
 
11894
  def validate(self):
11895
    return
11896
 
11897
 
11898
  def __repr__(self):
11899
    L = ['%s=%r' % (key, value)
11900
      for key, value in self.__dict__.iteritems()]
11901
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11902
 
11903
  def __eq__(self, other):
11904
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11905
 
11906
  def __ne__(self, other):
11907
    return not (self == other)
11908
 
11909
class getScansforPurchase_args:
11910
  """
11911
  Attributes:
11912
   - purchaseId
11913
   - scanType
11914
  """
11915
 
11916
  thrift_spec = (
11917
    None, # 0
11918
    (1, TType.I64, 'purchaseId', None, None, ), # 1
11919
    (2, TType.I32, 'scanType', None, None, ), # 2
11920
  )
11921
 
11922
  def __init__(self, purchaseId=None, scanType=None,):
11923
    self.purchaseId = purchaseId
11924
    self.scanType = scanType
11925
 
11926
  def read(self, iprot):
11927
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11928
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11929
      return
11930
    iprot.readStructBegin()
11931
    while True:
11932
      (fname, ftype, fid) = iprot.readFieldBegin()
11933
      if ftype == TType.STOP:
11934
        break
11935
      if fid == 1:
11936
        if ftype == TType.I64:
11937
          self.purchaseId = iprot.readI64();
11938
        else:
11939
          iprot.skip(ftype)
11940
      elif fid == 2:
11941
        if ftype == TType.I32:
11942
          self.scanType = iprot.readI32();
11943
        else:
11944
          iprot.skip(ftype)
11945
      else:
11946
        iprot.skip(ftype)
11947
      iprot.readFieldEnd()
11948
    iprot.readStructEnd()
11949
 
11950
  def write(self, oprot):
11951
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11952
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11953
      return
11954
    oprot.writeStructBegin('getScansforPurchase_args')
11955
    if self.purchaseId is not None:
11956
      oprot.writeFieldBegin('purchaseId', TType.I64, 1)
11957
      oprot.writeI64(self.purchaseId)
11958
      oprot.writeFieldEnd()
11959
    if self.scanType is not None:
11960
      oprot.writeFieldBegin('scanType', TType.I32, 2)
11961
      oprot.writeI32(self.scanType)
11962
      oprot.writeFieldEnd()
11963
    oprot.writeFieldStop()
11964
    oprot.writeStructEnd()
11965
 
11966
  def validate(self):
11967
    return
11968
 
11969
 
11970
  def __repr__(self):
11971
    L = ['%s=%r' % (key, value)
11972
      for key, value in self.__dict__.iteritems()]
11973
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11974
 
11975
  def __eq__(self, other):
11976
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11977
 
11978
  def __ne__(self, other):
11979
    return not (self == other)
11980
 
11981
class getScansforPurchase_result:
11982
  """
11983
  Attributes:
11984
   - success
11985
   - wex
11986
  """
11987
 
11988
  thrift_spec = (
11989
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
11990
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11991
  )
11992
 
11993
  def __init__(self, success=None, wex=None,):
11994
    self.success = success
11995
    self.wex = wex
11996
 
11997
  def read(self, iprot):
11998
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11999
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12000
      return
12001
    iprot.readStructBegin()
12002
    while True:
12003
      (fname, ftype, fid) = iprot.readFieldBegin()
12004
      if ftype == TType.STOP:
12005
        break
12006
      if fid == 0:
12007
        if ftype == TType.LIST:
12008
          self.success = []
12009
          (_etype257, _size254) = iprot.readListBegin()
12010
          for _i258 in xrange(_size254):
12011
            _elem259 = Scan()
12012
            _elem259.read(iprot)
12013
            self.success.append(_elem259)
12014
          iprot.readListEnd()
12015
        else:
12016
          iprot.skip(ftype)
12017
      elif fid == 1:
12018
        if ftype == TType.STRUCT:
12019
          self.wex = WarehouseServiceException()
12020
          self.wex.read(iprot)
12021
        else:
12022
          iprot.skip(ftype)
12023
      else:
12024
        iprot.skip(ftype)
12025
      iprot.readFieldEnd()
12026
    iprot.readStructEnd()
12027
 
12028
  def write(self, oprot):
12029
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12030
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12031
      return
12032
    oprot.writeStructBegin('getScansforPurchase_result')
12033
    if self.success is not None:
12034
      oprot.writeFieldBegin('success', TType.LIST, 0)
12035
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12036
      for iter260 in self.success:
12037
        iter260.write(oprot)
12038
      oprot.writeListEnd()
12039
      oprot.writeFieldEnd()
12040
    if self.wex is not None:
12041
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
12042
      self.wex.write(oprot)
12043
      oprot.writeFieldEnd()
12044
    oprot.writeFieldStop()
12045
    oprot.writeStructEnd()
12046
 
12047
  def validate(self):
12048
    return
12049
 
12050
 
12051
  def __repr__(self):
12052
    L = ['%s=%r' % (key, value)
12053
      for key, value in self.__dict__.iteritems()]
12054
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12055
 
12056
  def __eq__(self, other):
12057
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12058
 
12059
  def __ne__(self, other):
12060
    return not (self == other)
10864 manish.sha 12061
 
12062
class getCurrentBadQuantityForItem_args:
12063
  """
12064
  Attributes:
12065
   - itemId
12066
   - currentWarehouseId
12067
   - physicalWarehouseId
12068
  """
12069
 
12070
  thrift_spec = (
12071
    None, # 0
12072
    (1, TType.I64, 'itemId', None, None, ), # 1
12073
    (2, TType.I64, 'currentWarehouseId', None, None, ), # 2
12074
    (3, TType.I64, 'physicalWarehouseId', None, None, ), # 3
12075
  )
12076
 
12077
  def __init__(self, itemId=None, currentWarehouseId=None, physicalWarehouseId=None,):
12078
    self.itemId = itemId
12079
    self.currentWarehouseId = currentWarehouseId
12080
    self.physicalWarehouseId = physicalWarehouseId
12081
 
12082
  def read(self, iprot):
12083
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12084
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12085
      return
12086
    iprot.readStructBegin()
12087
    while True:
12088
      (fname, ftype, fid) = iprot.readFieldBegin()
12089
      if ftype == TType.STOP:
12090
        break
12091
      if fid == 1:
12092
        if ftype == TType.I64:
12093
          self.itemId = iprot.readI64();
12094
        else:
12095
          iprot.skip(ftype)
12096
      elif fid == 2:
12097
        if ftype == TType.I64:
12098
          self.currentWarehouseId = iprot.readI64();
12099
        else:
12100
          iprot.skip(ftype)
12101
      elif fid == 3:
12102
        if ftype == TType.I64:
12103
          self.physicalWarehouseId = iprot.readI64();
12104
        else:
12105
          iprot.skip(ftype)
12106
      else:
12107
        iprot.skip(ftype)
12108
      iprot.readFieldEnd()
12109
    iprot.readStructEnd()
12110
 
12111
  def write(self, oprot):
12112
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12113
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12114
      return
12115
    oprot.writeStructBegin('getCurrentBadQuantityForItem_args')
12116
    if self.itemId is not None:
12117
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12118
      oprot.writeI64(self.itemId)
12119
      oprot.writeFieldEnd()
12120
    if self.currentWarehouseId is not None:
12121
      oprot.writeFieldBegin('currentWarehouseId', TType.I64, 2)
12122
      oprot.writeI64(self.currentWarehouseId)
12123
      oprot.writeFieldEnd()
12124
    if self.physicalWarehouseId is not None:
12125
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 3)
12126
      oprot.writeI64(self.physicalWarehouseId)
12127
      oprot.writeFieldEnd()
12128
    oprot.writeFieldStop()
12129
    oprot.writeStructEnd()
12130
 
12131
  def validate(self):
12132
    return
12133
 
12134
 
12135
  def __repr__(self):
12136
    L = ['%s=%r' % (key, value)
12137
      for key, value in self.__dict__.iteritems()]
12138
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12139
 
12140
  def __eq__(self, other):
12141
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12142
 
12143
  def __ne__(self, other):
12144
    return not (self == other)
12145
 
12146
class getCurrentBadQuantityForItem_result:
12147
  """
12148
  Attributes:
12149
   - success
12150
   - wex
12151
  """
12152
 
12153
  thrift_spec = (
12154
    (0, TType.I64, 'success', None, None, ), # 0
12155
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12156
  )
12157
 
12158
  def __init__(self, success=None, wex=None,):
12159
    self.success = success
12160
    self.wex = wex
12161
 
12162
  def read(self, iprot):
12163
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12164
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12165
      return
12166
    iprot.readStructBegin()
12167
    while True:
12168
      (fname, ftype, fid) = iprot.readFieldBegin()
12169
      if ftype == TType.STOP:
12170
        break
12171
      if fid == 0:
12172
        if ftype == TType.I64:
12173
          self.success = iprot.readI64();
12174
        else:
12175
          iprot.skip(ftype)
12176
      elif fid == 1:
12177
        if ftype == TType.STRUCT:
12178
          self.wex = WarehouseServiceException()
12179
          self.wex.read(iprot)
12180
        else:
12181
          iprot.skip(ftype)
12182
      else:
12183
        iprot.skip(ftype)
12184
      iprot.readFieldEnd()
12185
    iprot.readStructEnd()
12186
 
12187
  def write(self, oprot):
12188
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12189
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12190
      return
12191
    oprot.writeStructBegin('getCurrentBadQuantityForItem_result')
12192
    if self.success is not None:
12193
      oprot.writeFieldBegin('success', TType.I64, 0)
12194
      oprot.writeI64(self.success)
12195
      oprot.writeFieldEnd()
12196
    if self.wex is not None:
12197
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
12198
      self.wex.write(oprot)
12199
      oprot.writeFieldEnd()
12200
    oprot.writeFieldStop()
12201
    oprot.writeStructEnd()
12202
 
12203
  def validate(self):
12204
    return
12205
 
12206
 
12207
  def __repr__(self):
12208
    L = ['%s=%r' % (key, value)
12209
      for key, value in self.__dict__.iteritems()]
12210
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12211
 
12212
  def __eq__(self, other):
12213
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12214
 
12215
  def __ne__(self, other):
12216
    return not (self == other)
12217
 
12218
class scanForBadPurchaseReturn_args:
12219
  """
12220
  Attributes:
12221
   - saleReturnItems
12222
   - vendorId
12223
   - billingWarehouseId
12224
  """
12225
 
12226
  thrift_spec = (
12227
    None, # 0
12228
    (1, TType.LIST, 'saleReturnItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
12229
    (2, TType.I64, 'vendorId', None, None, ), # 2
12230
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
12231
  )
12232
 
12233
  def __init__(self, saleReturnItems=None, vendorId=None, billingWarehouseId=None,):
12234
    self.saleReturnItems = saleReturnItems
12235
    self.vendorId = vendorId
12236
    self.billingWarehouseId = billingWarehouseId
12237
 
12238
  def read(self, iprot):
12239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12241
      return
12242
    iprot.readStructBegin()
12243
    while True:
12244
      (fname, ftype, fid) = iprot.readFieldBegin()
12245
      if ftype == TType.STOP:
12246
        break
12247
      if fid == 1:
12248
        if ftype == TType.LIST:
12249
          self.saleReturnItems = []
12250
          (_etype264, _size261) = iprot.readListBegin()
12251
          for _i265 in xrange(_size261):
12252
            _elem266 = InventoryItem()
12253
            _elem266.read(iprot)
12254
            self.saleReturnItems.append(_elem266)
12255
          iprot.readListEnd()
12256
        else:
12257
          iprot.skip(ftype)
12258
      elif fid == 2:
12259
        if ftype == TType.I64:
12260
          self.vendorId = iprot.readI64();
12261
        else:
12262
          iprot.skip(ftype)
12263
      elif fid == 3:
12264
        if ftype == TType.I64:
12265
          self.billingWarehouseId = iprot.readI64();
12266
        else:
12267
          iprot.skip(ftype)
12268
      else:
12269
        iprot.skip(ftype)
12270
      iprot.readFieldEnd()
12271
    iprot.readStructEnd()
12272
 
12273
  def write(self, oprot):
12274
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12275
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12276
      return
12277
    oprot.writeStructBegin('scanForBadPurchaseReturn_args')
12278
    if self.saleReturnItems is not None:
12279
      oprot.writeFieldBegin('saleReturnItems', TType.LIST, 1)
12280
      oprot.writeListBegin(TType.STRUCT, len(self.saleReturnItems))
12281
      for iter267 in self.saleReturnItems:
12282
        iter267.write(oprot)
12283
      oprot.writeListEnd()
12284
      oprot.writeFieldEnd()
12285
    if self.vendorId is not None:
12286
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
12287
      oprot.writeI64(self.vendorId)
12288
      oprot.writeFieldEnd()
12289
    if self.billingWarehouseId is not None:
12290
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
12291
      oprot.writeI64(self.billingWarehouseId)
12292
      oprot.writeFieldEnd()
12293
    oprot.writeFieldStop()
12294
    oprot.writeStructEnd()
12295
 
12296
  def validate(self):
12297
    return
12298
 
12299
 
12300
  def __repr__(self):
12301
    L = ['%s=%r' % (key, value)
12302
      for key, value in self.__dict__.iteritems()]
12303
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12304
 
12305
  def __eq__(self, other):
12306
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12307
 
12308
  def __ne__(self, other):
12309
    return not (self == other)
12310
 
12311
class scanForBadPurchaseReturn_result:
12312
  """
12313
  Attributes:
12314
   - success
12315
   - ex
12316
  """
12317
 
12318
  thrift_spec = (
12319
    (0, TType.I64, 'success', None, None, ), # 0
12320
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12321
  )
12322
 
12323
  def __init__(self, success=None, ex=None,):
12324
    self.success = success
12325
    self.ex = ex
12326
 
12327
  def read(self, iprot):
12328
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12329
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12330
      return
12331
    iprot.readStructBegin()
12332
    while True:
12333
      (fname, ftype, fid) = iprot.readFieldBegin()
12334
      if ftype == TType.STOP:
12335
        break
12336
      if fid == 0:
12337
        if ftype == TType.I64:
12338
          self.success = iprot.readI64();
12339
        else:
12340
          iprot.skip(ftype)
12341
      elif fid == 1:
12342
        if ftype == TType.STRUCT:
12343
          self.ex = WarehouseServiceException()
12344
          self.ex.read(iprot)
12345
        else:
12346
          iprot.skip(ftype)
12347
      else:
12348
        iprot.skip(ftype)
12349
      iprot.readFieldEnd()
12350
    iprot.readStructEnd()
12351
 
12352
  def write(self, oprot):
12353
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12354
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12355
      return
12356
    oprot.writeStructBegin('scanForBadPurchaseReturn_result')
12357
    if self.success is not None:
12358
      oprot.writeFieldBegin('success', TType.I64, 0)
12359
      oprot.writeI64(self.success)
12360
      oprot.writeFieldEnd()
12361
    if self.ex is not None:
12362
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12363
      self.ex.write(oprot)
12364
      oprot.writeFieldEnd()
12365
    oprot.writeFieldStop()
12366
    oprot.writeStructEnd()
12367
 
12368
  def validate(self):
12369
    return
12370
 
12371
 
12372
  def __repr__(self):
12373
    L = ['%s=%r' % (key, value)
12374
      for key, value in self.__dict__.iteritems()]
12375
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12376
 
12377
  def __eq__(self, other):
12378
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12379
 
12380
  def __ne__(self, other):
12381
    return not (self == other)
12382
 
12383
class getItemsInPurchaseReturn_args:
12384
  """
12385
  Attributes:
12386
   - purchaseReturnId
11751 manish.sha 12387
   - type
13504 manish.sha 12388
   - returnTime
10864 manish.sha 12389
  """
12390
 
12391
  thrift_spec = (
12392
    None, # 0
12393
    (1, TType.I64, 'purchaseReturnId', None, None, ), # 1
11751 manish.sha 12394
    (2, TType.I32, 'type', None, None, ), # 2
13504 manish.sha 12395
    (3, TType.STRING, 'returnTime', None, None, ), # 3
10864 manish.sha 12396
  )
12397
 
13504 manish.sha 12398
  def __init__(self, purchaseReturnId=None, type=None, returnTime=None,):
10864 manish.sha 12399
    self.purchaseReturnId = purchaseReturnId
11751 manish.sha 12400
    self.type = type
13504 manish.sha 12401
    self.returnTime = returnTime
10864 manish.sha 12402
 
12403
  def read(self, iprot):
12404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12406
      return
12407
    iprot.readStructBegin()
12408
    while True:
12409
      (fname, ftype, fid) = iprot.readFieldBegin()
12410
      if ftype == TType.STOP:
12411
        break
12412
      if fid == 1:
12413
        if ftype == TType.I64:
12414
          self.purchaseReturnId = iprot.readI64();
12415
        else:
12416
          iprot.skip(ftype)
11751 manish.sha 12417
      elif fid == 2:
12418
        if ftype == TType.I32:
12419
          self.type = iprot.readI32();
12420
        else:
12421
          iprot.skip(ftype)
13504 manish.sha 12422
      elif fid == 3:
12423
        if ftype == TType.STRING:
12424
          self.returnTime = iprot.readString();
12425
        else:
12426
          iprot.skip(ftype)
10864 manish.sha 12427
      else:
12428
        iprot.skip(ftype)
12429
      iprot.readFieldEnd()
12430
    iprot.readStructEnd()
12431
 
12432
  def write(self, oprot):
12433
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12434
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12435
      return
12436
    oprot.writeStructBegin('getItemsInPurchaseReturn_args')
12437
    if self.purchaseReturnId is not None:
12438
      oprot.writeFieldBegin('purchaseReturnId', TType.I64, 1)
12439
      oprot.writeI64(self.purchaseReturnId)
12440
      oprot.writeFieldEnd()
11751 manish.sha 12441
    if self.type is not None:
12442
      oprot.writeFieldBegin('type', TType.I32, 2)
12443
      oprot.writeI32(self.type)
12444
      oprot.writeFieldEnd()
13504 manish.sha 12445
    if self.returnTime is not None:
12446
      oprot.writeFieldBegin('returnTime', TType.STRING, 3)
12447
      oprot.writeString(self.returnTime)
12448
      oprot.writeFieldEnd()
10864 manish.sha 12449
    oprot.writeFieldStop()
12450
    oprot.writeStructEnd()
12451
 
12452
  def validate(self):
12453
    return
12454
 
12455
 
12456
  def __repr__(self):
12457
    L = ['%s=%r' % (key, value)
12458
      for key, value in self.__dict__.iteritems()]
12459
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12460
 
12461
  def __eq__(self, other):
12462
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12463
 
12464
  def __ne__(self, other):
12465
    return not (self == other)
12466
 
12467
class getItemsInPurchaseReturn_result:
12468
  """
12469
  Attributes:
12470
   - success
12471
   - ex
12472
  """
12473
 
12474
  thrift_spec = (
12475
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
12476
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12477
  )
12478
 
12479
  def __init__(self, success=None, ex=None,):
12480
    self.success = success
12481
    self.ex = ex
12482
 
12483
  def read(self, iprot):
12484
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12485
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12486
      return
12487
    iprot.readStructBegin()
12488
    while True:
12489
      (fname, ftype, fid) = iprot.readFieldBegin()
12490
      if ftype == TType.STOP:
12491
        break
12492
      if fid == 0:
12493
        if ftype == TType.MAP:
12494
          self.success = {}
12495
          (_ktype269, _vtype270, _size268 ) = iprot.readMapBegin() 
12496
          for _i272 in xrange(_size268):
12497
            _key273 = iprot.readI64();
12498
            _val274 = iprot.readI64();
12499
            self.success[_key273] = _val274
12500
          iprot.readMapEnd()
12501
        else:
12502
          iprot.skip(ftype)
12503
      elif fid == 1:
12504
        if ftype == TType.STRUCT:
12505
          self.ex = WarehouseServiceException()
12506
          self.ex.read(iprot)
12507
        else:
12508
          iprot.skip(ftype)
12509
      else:
12510
        iprot.skip(ftype)
12511
      iprot.readFieldEnd()
12512
    iprot.readStructEnd()
12513
 
12514
  def write(self, oprot):
12515
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12516
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12517
      return
12518
    oprot.writeStructBegin('getItemsInPurchaseReturn_result')
12519
    if self.success is not None:
12520
      oprot.writeFieldBegin('success', TType.MAP, 0)
12521
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
12522
      for kiter275,viter276 in self.success.items():
12523
        oprot.writeI64(kiter275)
12524
        oprot.writeI64(viter276)
12525
      oprot.writeMapEnd()
12526
      oprot.writeFieldEnd()
12527
    if self.ex is not None:
12528
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12529
      self.ex.write(oprot)
12530
      oprot.writeFieldEnd()
12531
    oprot.writeFieldStop()
12532
    oprot.writeStructEnd()
12533
 
12534
  def validate(self):
12535
    return
12536
 
12537
 
12538
  def __repr__(self):
12539
    L = ['%s=%r' % (key, value)
12540
      for key, value in self.__dict__.iteritems()]
12541
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12542
 
12543
  def __eq__(self, other):
12544
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12545
 
12546
  def __ne__(self, other):
12547
    return not (self == other)
10886 manish.sha 12548
 
12549
class getScansForInventoryItem_args:
12550
  """
12551
  Attributes:
12552
   - inventoryItemId
12553
   - type
12554
  """
12555
 
12556
  thrift_spec = (
12557
    None, # 0
12558
    (1, TType.I64, 'inventoryItemId', None, None, ), # 1
12559
    (2, TType.I32, 'type', None, None, ), # 2
12560
  )
12561
 
12562
  def __init__(self, inventoryItemId=None, type=None,):
12563
    self.inventoryItemId = inventoryItemId
12564
    self.type = type
12565
 
12566
  def read(self, iprot):
12567
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12568
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12569
      return
12570
    iprot.readStructBegin()
12571
    while True:
12572
      (fname, ftype, fid) = iprot.readFieldBegin()
12573
      if ftype == TType.STOP:
12574
        break
12575
      if fid == 1:
12576
        if ftype == TType.I64:
12577
          self.inventoryItemId = iprot.readI64();
12578
        else:
12579
          iprot.skip(ftype)
12580
      elif fid == 2:
12581
        if ftype == TType.I32:
12582
          self.type = iprot.readI32();
12583
        else:
12584
          iprot.skip(ftype)
12585
      else:
12586
        iprot.skip(ftype)
12587
      iprot.readFieldEnd()
12588
    iprot.readStructEnd()
12589
 
12590
  def write(self, oprot):
12591
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12592
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12593
      return
12594
    oprot.writeStructBegin('getScansForInventoryItem_args')
12595
    if self.inventoryItemId is not None:
12596
      oprot.writeFieldBegin('inventoryItemId', TType.I64, 1)
12597
      oprot.writeI64(self.inventoryItemId)
12598
      oprot.writeFieldEnd()
12599
    if self.type is not None:
12600
      oprot.writeFieldBegin('type', TType.I32, 2)
12601
      oprot.writeI32(self.type)
12602
      oprot.writeFieldEnd()
12603
    oprot.writeFieldStop()
12604
    oprot.writeStructEnd()
12605
 
12606
  def validate(self):
12607
    return
12608
 
12609
 
12610
  def __repr__(self):
12611
    L = ['%s=%r' % (key, value)
12612
      for key, value in self.__dict__.iteritems()]
12613
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12614
 
12615
  def __eq__(self, other):
12616
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12617
 
12618
  def __ne__(self, other):
12619
    return not (self == other)
12620
 
12621
class getScansForInventoryItem_result:
12622
  """
12623
  Attributes:
12624
   - success
12625
   - ex
12626
  """
12627
 
12628
  thrift_spec = (
12629
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
12630
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12631
  )
12632
 
12633
  def __init__(self, success=None, ex=None,):
12634
    self.success = success
12635
    self.ex = ex
12636
 
12637
  def read(self, iprot):
12638
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12639
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12640
      return
12641
    iprot.readStructBegin()
12642
    while True:
12643
      (fname, ftype, fid) = iprot.readFieldBegin()
12644
      if ftype == TType.STOP:
12645
        break
12646
      if fid == 0:
12647
        if ftype == TType.LIST:
12648
          self.success = []
12649
          (_etype280, _size277) = iprot.readListBegin()
12650
          for _i281 in xrange(_size277):
12651
            _elem282 = Scan()
12652
            _elem282.read(iprot)
12653
            self.success.append(_elem282)
12654
          iprot.readListEnd()
12655
        else:
12656
          iprot.skip(ftype)
12657
      elif fid == 1:
12658
        if ftype == TType.STRUCT:
12659
          self.ex = WarehouseServiceException()
12660
          self.ex.read(iprot)
12661
        else:
12662
          iprot.skip(ftype)
12663
      else:
12664
        iprot.skip(ftype)
12665
      iprot.readFieldEnd()
12666
    iprot.readStructEnd()
12667
 
12668
  def write(self, oprot):
12669
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12670
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12671
      return
12672
    oprot.writeStructBegin('getScansForInventoryItem_result')
12673
    if self.success is not None:
12674
      oprot.writeFieldBegin('success', TType.LIST, 0)
12675
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12676
      for iter283 in self.success:
12677
        iter283.write(oprot)
12678
      oprot.writeListEnd()
12679
      oprot.writeFieldEnd()
12680
    if self.ex is not None:
12681
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12682
      self.ex.write(oprot)
12683
      oprot.writeFieldEnd()
12684
    oprot.writeFieldStop()
12685
    oprot.writeStructEnd()
12686
 
12687
  def validate(self):
12688
    return
12689
 
12690
 
12691
  def __repr__(self):
12692
    L = ['%s=%r' % (key, value)
12693
      for key, value in self.__dict__.iteritems()]
12694
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12695
 
12696
  def __eq__(self, other):
12697
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12698
 
12699
  def __ne__(self, other):
12700
    return not (self == other)
12531 manish.sha 12701
 
12702
class checkGrnImeiStatus_args:
12703
  """
12704
  Attributes:
12705
   - imeiNos
12706
  """
12707
 
12708
  thrift_spec = (
12709
    None, # 0
12710
    (1, TType.LIST, 'imeiNos', (TType.STRING,None), None, ), # 1
12711
  )
12712
 
12713
  def __init__(self, imeiNos=None,):
12714
    self.imeiNos = imeiNos
12715
 
12716
  def read(self, iprot):
12717
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12718
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12719
      return
12720
    iprot.readStructBegin()
12721
    while True:
12722
      (fname, ftype, fid) = iprot.readFieldBegin()
12723
      if ftype == TType.STOP:
12724
        break
12725
      if fid == 1:
12726
        if ftype == TType.LIST:
12727
          self.imeiNos = []
12728
          (_etype287, _size284) = iprot.readListBegin()
12729
          for _i288 in xrange(_size284):
12730
            _elem289 = iprot.readString();
12731
            self.imeiNos.append(_elem289)
12732
          iprot.readListEnd()
12733
        else:
12734
          iprot.skip(ftype)
12735
      else:
12736
        iprot.skip(ftype)
12737
      iprot.readFieldEnd()
12738
    iprot.readStructEnd()
12739
 
12740
  def write(self, oprot):
12741
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12742
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12743
      return
12744
    oprot.writeStructBegin('checkGrnImeiStatus_args')
12745
    if self.imeiNos is not None:
12746
      oprot.writeFieldBegin('imeiNos', TType.LIST, 1)
12747
      oprot.writeListBegin(TType.STRING, len(self.imeiNos))
12748
      for iter290 in self.imeiNos:
12749
        oprot.writeString(iter290)
12750
      oprot.writeListEnd()
12751
      oprot.writeFieldEnd()
12752
    oprot.writeFieldStop()
12753
    oprot.writeStructEnd()
12754
 
12755
  def validate(self):
12756
    return
12757
 
12758
 
12759
  def __repr__(self):
12760
    L = ['%s=%r' % (key, value)
12761
      for key, value in self.__dict__.iteritems()]
12762
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12763
 
12764
  def __eq__(self, other):
12765
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12766
 
12767
  def __ne__(self, other):
12768
    return not (self == other)
12769
 
12770
class checkGrnImeiStatus_result:
12771
  """
12772
  Attributes:
12773
   - success
12774
   - ex
12775
  """
12776
 
12777
  thrift_spec = (
12778
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
12779
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12780
  )
12781
 
12782
  def __init__(self, success=None, ex=None,):
12783
    self.success = success
12784
    self.ex = ex
12785
 
12786
  def read(self, iprot):
12787
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12788
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12789
      return
12790
    iprot.readStructBegin()
12791
    while True:
12792
      (fname, ftype, fid) = iprot.readFieldBegin()
12793
      if ftype == TType.STOP:
12794
        break
12795
      if fid == 0:
12796
        if ftype == TType.LIST:
12797
          self.success = []
12798
          (_etype294, _size291) = iprot.readListBegin()
12799
          for _i295 in xrange(_size291):
12800
            _elem296 = iprot.readString();
12801
            self.success.append(_elem296)
12802
          iprot.readListEnd()
12803
        else:
12804
          iprot.skip(ftype)
12805
      elif fid == 1:
12806
        if ftype == TType.STRUCT:
12807
          self.ex = WarehouseServiceException()
12808
          self.ex.read(iprot)
12809
        else:
12810
          iprot.skip(ftype)
12811
      else:
12812
        iprot.skip(ftype)
12813
      iprot.readFieldEnd()
12814
    iprot.readStructEnd()
12815
 
12816
  def write(self, oprot):
12817
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12818
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12819
      return
12820
    oprot.writeStructBegin('checkGrnImeiStatus_result')
12821
    if self.success is not None:
12822
      oprot.writeFieldBegin('success', TType.LIST, 0)
12823
      oprot.writeListBegin(TType.STRING, len(self.success))
12824
      for iter297 in self.success:
12825
        oprot.writeString(iter297)
12826
      oprot.writeListEnd()
12827
      oprot.writeFieldEnd()
12828
    if self.ex is not None:
12829
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12830
      self.ex.write(oprot)
12831
      oprot.writeFieldEnd()
12832
    oprot.writeFieldStop()
12833
    oprot.writeStructEnd()
12834
 
12835
  def validate(self):
12836
    return
12837
 
12838
 
12839
  def __repr__(self):
12840
    L = ['%s=%r' % (key, value)
12841
      for key, value in self.__dict__.iteritems()]
12842
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12843
 
12844
  def __eq__(self, other):
12845
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12846
 
12847
  def __ne__(self, other):
12848
    return not (self == other)
12800 manish.sha 12849
 
12850
class getInventoryAgeConsideredItems_args:
12851
  """
12852
  Attributes:
12853
   - itemId
12854
  """
12855
 
12856
  thrift_spec = (
12857
    None, # 0
12858
    (1, TType.I64, 'itemId', None, None, ), # 1
12859
  )
12860
 
12861
  def __init__(self, itemId=None,):
12862
    self.itemId = itemId
12863
 
12864
  def read(self, iprot):
12865
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12866
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12867
      return
12868
    iprot.readStructBegin()
12869
    while True:
12870
      (fname, ftype, fid) = iprot.readFieldBegin()
12871
      if ftype == TType.STOP:
12872
        break
12873
      if fid == 1:
12874
        if ftype == TType.I64:
12875
          self.itemId = iprot.readI64();
12876
        else:
12877
          iprot.skip(ftype)
12878
      else:
12879
        iprot.skip(ftype)
12880
      iprot.readFieldEnd()
12881
    iprot.readStructEnd()
12882
 
12883
  def write(self, oprot):
12884
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12885
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12886
      return
12887
    oprot.writeStructBegin('getInventoryAgeConsideredItems_args')
12888
    if self.itemId is not None:
12889
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12890
      oprot.writeI64(self.itemId)
12891
      oprot.writeFieldEnd()
12892
    oprot.writeFieldStop()
12893
    oprot.writeStructEnd()
12894
 
12895
  def validate(self):
12896
    return
12897
 
12898
 
12899
  def __repr__(self):
12900
    L = ['%s=%r' % (key, value)
12901
      for key, value in self.__dict__.iteritems()]
12902
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12903
 
12904
  def __eq__(self, other):
12905
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12906
 
12907
  def __ne__(self, other):
12908
    return not (self == other)
12909
 
12910
class getInventoryAgeConsideredItems_result:
12911
  """
12912
  Attributes:
12913
   - success
12914
   - ex
12915
  """
12916
 
12917
  thrift_spec = (
12918
    (0, TType.LIST, 'success', (TType.STRUCT,(InvAgeConsiderItems, InvAgeConsiderItems.thrift_spec)), None, ), # 0
12919
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12920
  )
12921
 
12922
  def __init__(self, success=None, ex=None,):
12923
    self.success = success
12924
    self.ex = ex
12925
 
12926
  def read(self, iprot):
12927
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12928
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12929
      return
12930
    iprot.readStructBegin()
12931
    while True:
12932
      (fname, ftype, fid) = iprot.readFieldBegin()
12933
      if ftype == TType.STOP:
12934
        break
12935
      if fid == 0:
12936
        if ftype == TType.LIST:
12937
          self.success = []
12938
          (_etype301, _size298) = iprot.readListBegin()
12939
          for _i302 in xrange(_size298):
12940
            _elem303 = InvAgeConsiderItems()
12941
            _elem303.read(iprot)
12942
            self.success.append(_elem303)
12943
          iprot.readListEnd()
12944
        else:
12945
          iprot.skip(ftype)
12946
      elif fid == 1:
12947
        if ftype == TType.STRUCT:
12948
          self.ex = WarehouseServiceException()
12949
          self.ex.read(iprot)
12950
        else:
12951
          iprot.skip(ftype)
12952
      else:
12953
        iprot.skip(ftype)
12954
      iprot.readFieldEnd()
12955
    iprot.readStructEnd()
12956
 
12957
  def write(self, oprot):
12958
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12959
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12960
      return
12961
    oprot.writeStructBegin('getInventoryAgeConsideredItems_result')
12962
    if self.success is not None:
12963
      oprot.writeFieldBegin('success', TType.LIST, 0)
12964
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12965
      for iter304 in self.success:
12966
        iter304.write(oprot)
12967
      oprot.writeListEnd()
12968
      oprot.writeFieldEnd()
12969
    if self.ex is not None:
12970
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12971
      self.ex.write(oprot)
12972
      oprot.writeFieldEnd()
12973
    oprot.writeFieldStop()
12974
    oprot.writeStructEnd()
12975
 
12976
  def validate(self):
12977
    return
12978
 
12979
 
12980
  def __repr__(self):
12981
    L = ['%s=%r' % (key, value)
12982
      for key, value in self.__dict__.iteritems()]
12983
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12984
 
12985
  def __eq__(self, other):
12986
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12987
 
12988
  def __ne__(self, other):
12989
    return not (self == other)