Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
2821 chandransh 1
#
3431 rajveer 2
# Autogenerated by Thrift Compiler (0.7.0)
2821 chandransh 3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
3376 rajveer 8
import shop2020.thriftpy.generic.GenericService
2821 chandransh 9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
3431 rajveer 12
from thrift.protocol import TBinaryProtocol, TProtocol
2821 chandransh 13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
3376 rajveer 19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
4501 mandeep.dh 20
  def getInventoryItem(self, serialNumber):
2832 chandransh 21
    """
4501 mandeep.dh 22
    Retrieves serialized inventory item given a serial number
3431 rajveer 23
 
2832 chandransh 24
    Parameters:
4501 mandeep.dh 25
     - serialNumber
2832 chandransh 26
    """
27
    pass
28
 
8565 amar.kumar 29
  def getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId):
2821 chandransh 30
    """
5361 mandeep.dh 31
    Retrieves non-serialized inventory item from a given supplier
3431 rajveer 32
 
2821 chandransh 33
    Parameters:
5530 mandeep.dh 34
     - itemNumber
4501 mandeep.dh 35
     - itemId
5530 mandeep.dh 36
     - fulfilmentWarehouseId
8565 amar.kumar 37
     - billingWarehouseId
2821 chandransh 38
    """
39
    pass
40
 
7410 amar.kumar 41
  def scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
2821 chandransh 42
    """
4501 mandeep.dh 43
    Scan non-serialized items.
3431 rajveer 44
 
2821 chandransh 45
    Parameters:
5361 mandeep.dh 46
     - inventoryItem
2821 chandransh 47
     - type
4501 mandeep.dh 48
     - quantity
5361 mandeep.dh 49
     - billingWarehouseId
7410 amar.kumar 50
     - transferLotId
2821 chandransh 51
    """
52
    pass
53
 
10489 amar.kumar 54
  def genericScan(self, inventoryItem, scan):
55
    """
56
    Scan non-serialized items.
57
 
58
    Parameters:
59
     - inventoryItem
60
     - scan
61
    """
62
    pass
63
 
5110 mandeep.dh 64
  def scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
4501 mandeep.dh 65
    """
66
    Scan serialized items linked with an order. Returns its price.
2821 chandransh 67
 
4501 mandeep.dh 68
    Parameters:
4555 mandeep.dh 69
     - serialNumber
4501 mandeep.dh 70
     - type
71
     - orderId
5110 mandeep.dh 72
     - fulfilmentWarehouseId
73
     - quantity
74
     - billingWarehouseId
4501 mandeep.dh 75
    """
76
    pass
77
 
5361 mandeep.dh 78
  def scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
4501 mandeep.dh 79
    """
80
    Scan non-serialized items linked with an order.
81
 
82
    Parameters:
5361 mandeep.dh 83
     - inventoryItem
4501 mandeep.dh 84
     - type
85
     - quantity
86
     - orderId
5110 mandeep.dh 87
     - fulfilmentWarehouseId
5361 mandeep.dh 88
     - billingWarehouseId
4501 mandeep.dh 89
    """
90
    pass
91
 
92
  def createItemNumberMapping(self, itemNumber, itemId):
93
    """
94
    Created item number to item id mapping
95
 
96
    Parameters:
97
     - itemNumber
98
     - itemId
99
    """
100
    pass
101
 
4620 amit.gupta 102
  def getItemNumbers(self, itemId):
103
    """
104
    Get itemNumber mappings for itemId
4501 mandeep.dh 105
 
4620 amit.gupta 106
    Parameters:
107
     - itemId
108
    """
109
    pass
110
 
5110 mandeep.dh 111
  def getItemIds(self, itemNumber):
112
    """
113
    Gets item ids for a given item number
4620 amit.gupta 114
 
5110 mandeep.dh 115
    Parameters:
116
     - itemNumber
117
    """
118
    pass
119
 
5185 mandeep.dh 120
  def getInventoryItemsFromLastScanType(self, lastScanType):
121
    """
122
    Retrieves all inventory items given a last scan type
5110 mandeep.dh 123
 
5185 mandeep.dh 124
    Parameters:
125
     - lastScanType
126
    """
127
    pass
128
 
129
  def getInventoryItemFromId(self, inventoryItemId):
130
    """
131
    Retrieves inventory item given a inventoryItem id
132
 
133
    Parameters:
134
     - inventoryItemId
135
    """
136
    pass
137
 
5372 mandeep.dh 138
  def getPurchaseScans(self, startDate, endDate):
139
    """
140
    Returns the purchase scans grouped by items for Purchase register reconciliation
5185 mandeep.dh 141
 
5372 mandeep.dh 142
    Parameters:
143
     - startDate
144
     - endDate
145
    """
146
    pass
147
 
7216 amar.kumar 148
  def getPurchaseScansByGrnDate(self, startDate, endDate):
149
    """
150
    Returns the purchase scans between grn dates grouped by items for Purchase register reconciliation
151
 
152
    Parameters:
153
     - startDate
154
     - endDate
155
    """
156
    pass
157
 
10407 amar.kumar 158
  def getEmptyGrnsByDate(self, startDate, endDate):
159
    """
160
    Returns the empty grn-ids between grn dates
161
 
162
    Parameters:
163
     - startDate
164
     - endDate
165
    """
166
    pass
167
 
5496 mandeep.dh 168
  def fetchScansPerInvoiceNumber(self, date):
169
    """
170
    Returns the invoices and the count of scans against on a given day.
5372 mandeep.dh 171
 
5496 mandeep.dh 172
    Parameters:
173
     - date
174
    """
175
    pass
176
 
5620 mandeep.dh 177
  def getInventoryItemFromOrder(self, orderId):
178
    """
179
    Returns inventory item for a given order
5496 mandeep.dh 180
 
5620 mandeep.dh 181
    Parameters:
182
     - orderId
183
    """
184
    pass
185
 
5711 mandeep.dh 186
  def getInventoryAge(self, ):
187
    """
188
    Fetches the stock inventory age week-wise
189
    """
190
    pass
5620 mandeep.dh 191
 
6361 rajveer 192
  def getInventoryScansForItem(self, itemId, fromDate, toDate):
193
    """
194
    Fetches the scanRecords for a given item for a given time interval
5711 mandeep.dh 195
 
6361 rajveer 196
    Parameters:
197
     - itemId
198
     - fromDate
199
     - toDate
200
    """
201
    pass
202
 
203
  def getScanRecordsForSerialNumber(self, serialNumber):
204
    """
205
    Fetches the scanRecords for a given serialNumber for a given time interval
206
 
207
    Parameters:
208
     - serialNumber
209
    """
210
    pass
211
 
7718 amar.kumar 212
  def scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
6467 amar.kumar 213
    """
6630 amar.kumar 214
    Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
6361 rajveer 215
 
6467 amar.kumar 216
    Parameters:
217
     - saleReturnItems
218
     - vendorId
7718 amar.kumar 219
     - billingWarehouseId
6467 amar.kumar 220
    """
221
    pass
222
 
7718 amar.kumar 223
  def scanForLostItem(self, lostItems, vendorId, billingWarehouseId):
6630 amar.kumar 224
    """
225
    Inserts scans for lost Items and updates lastScanType in InventoryItems
6467 amar.kumar 226
 
6630 amar.kumar 227
    Parameters:
228
     - lostItems
229
     - vendorId
7718 amar.kumar 230
     - billingWarehouseId
6630 amar.kumar 231
    """
232
    pass
233
 
7715 vikram.rag 234
  def getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 235
    """
236
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
7715 vikram.rag 237
 
238
    Parameters:
239
     - physicalWarehouseId
6630 amar.kumar 240
    """
241
    pass
242
 
7715 vikram.rag 243
  def getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 244
    """
245
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
7715 vikram.rag 246
 
247
    Parameters:
248
     - physicalWarehouseId
6630 amar.kumar 249
    """
250
    pass
251
 
6762 amar.kumar 252
  def getHistoricSerializedInventoryByScans(self, date):
253
    """
254
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
6630 amar.kumar 255
 
6762 amar.kumar 256
    Parameters:
257
     - date
258
    """
259
    pass
260
 
261
  def getHistoricNonSerializedInventoryByScans(self, date):
262
    """
263
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
264
 
265
    Parameters:
266
     - date
267
    """
268
    pass
269
 
10407 amar.kumar 270
  def getOurHistoricSerializedInventoryByScans(self, date):
271
    """
272
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
273
 
274
    Parameters:
275
     - date
276
    """
277
    pass
278
 
279
  def getOurHistoricNonSerializedInventoryByScans(self, date):
280
    """
281
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
282
 
283
    Parameters:
284
     - date
285
    """
286
    pass
287
 
7672 rajveer 288
  def scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):
6762 amar.kumar 289
    """
6880 amar.kumar 290
    Insert Purchase/Sale Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 291
 
292
    Parameters:
293
     - itemId
294
     - serialNumber
295
     - itemNumber
296
     - invoiceNumber
297
     - warehouseId
298
     - unitPrice
7672 rajveer 299
     - nlc
6762 amar.kumar 300
     - orderId
301
    """
302
    pass
303
 
304
  def scanForOursExternalSaleReturn(self, orderId, unitPrice):
305
    """
6880 amar.kumar 306
    Insert Purchase_Ret/Sale_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 307
 
308
    Parameters:
309
     - orderId
310
     - unitPrice
311
    """
312
    pass
313
 
6880 amar.kumar 314
  def getMovementNonSerializedInventoryByScans(self, startDate, endDate):
315
    """
10407 amar.kumar 316
    This returns movement for each non serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)
317
 
6880 amar.kumar 318
    Parameters:
319
     - startDate
320
     - endDate
321
    """
322
    pass
6762 amar.kumar 323
 
6880 amar.kumar 324
  def getMovementSerializedInventoryByScans(self, startDate, endDate):
325
    """
10407 amar.kumar 326
    This returns movement for each serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)
327
 
6880 amar.kumar 328
    Parameters:
329
     - startDate
330
     - endDate
331
    """
332
    pass
333
 
7216 amar.kumar 334
  def getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):
335
    """
10407 amar.kumar 336
    This returns movement for each serialized item in the specified window.(Doesn't include Amazon w/h)
337
 
7216 amar.kumar 338
    Parameters:
339
     - startDate
340
     - endDate
341
    """
342
    pass
343
 
344
  def getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):
345
    """
10407 amar.kumar 346
    This returns movement for each non serialized item in the specified window.(Doesn't include Amazon w/h)
347
 
7216 amar.kumar 348
    Parameters:
349
     - startDate
350
     - endDate
351
    """
352
    pass
353
 
7190 amar.kumar 354
  def scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):
355
    """
356
    Parameters:
357
     - orderId
358
     - freebieItemId
359
     - freebieWarehouseId
360
     - scanType
361
    """
362
    pass
6880 amar.kumar 363
 
7199 amar.kumar 364
  def reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):
365
    """
366
    Parameters:
367
     - oldOrderId
368
     - newOrderId
369
     - freebieItemId
370
     - scanType
371
    """
372
    pass
7190 amar.kumar 373
 
7410 amar.kumar 374
  def isItemTransferAllowed(self, warehouseId, transferWarehouseId):
375
    """
376
    Parameters:
377
     - warehouseId
378
     - transferWarehouseId
379
    """
380
    pass
7199 amar.kumar 381
 
7410 amar.kumar 382
  def createTransferLot(self, originWarehouseId, destWarehouseId):
383
    """
384
    Parameters:
385
     - originWarehouseId
386
     - destWarehouseId
387
    """
388
    pass
389
 
390
  def getTransferLot(self, transferLotId):
391
    """
392
    Parameters:
393
     - transferLotId
394
    """
395
    pass
396
 
397
  def markTransferLotAsReceived(self, id, remoteTransferRefNumber):
398
    """
399
    Parameters:
400
     - id
401
     - remoteTransferRefNumber
402
    """
403
    pass
404
 
405
  def getTransferLotsByDate(self, fromDate, toDate):
406
    """
407
    Parameters:
408
     - fromDate
409
     - toDate
410
    """
411
    pass
412
 
413
  def getAllowedDestinationWarehousesForTransfer(self, warehouseId):
414
    """
415
    Parameters:
416
     - warehouseId
417
    """
418
    pass
419
 
420
  def getItemsInTransferLot(self, transferLotId):
421
    """
422
    Parameters:
423
     - transferLotId
424
    """
425
    pass
426
 
427
  def markItemsAsReceivedForTransferLot(self, id):
428
    """
429
    Parameters:
430
     - id
431
    """
432
    pass
433
 
434
  def updateTransferLotAfterItemReceive(self, id):
435
    """
436
    Parameters:
437
     - id
438
    """
439
    pass
440
 
7459 amar.kumar 441
  def scanForTransferOut(self, inventoryItems, type, transferLotId):
7410 amar.kumar 442
    """
443
    Parameters:
444
     - inventoryItems
445
     - type
446
     - transferLotId
447
    """
448
    pass
449
 
7459 amar.kumar 450
  def scanForTransferIn(self, inventoryItems, type, transferLotId):
451
    """
452
    Parameters:
453
     - inventoryItems
454
     - type
455
     - transferLotId
456
    """
457
    pass
7410 amar.kumar 458
 
7459 amar.kumar 459
  def scanForOursThirdPartyReceive(self, inventoryItems, id):
460
    """
461
    Parameters:
462
     - inventoryItems
463
     - id
464
    """
465
    pass
466
 
7574 amar.kumar 467
  def getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
468
    """
469
    Parameters:
470
     - itemId
471
     - physicalWarehouseId
472
    """
473
    pass
7459 amar.kumar 474
 
7672 rajveer 475
  def getInTransitInventory(self, originWarehouseId):
476
    """
477
    Parameters:
478
     - originWarehouseId
479
    """
480
    pass
7574 amar.kumar 481
 
7968 amar.kumar 482
  def isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
483
    """
484
    Parameters:
485
     - itemId
486
     - serialNumber
487
     - warehouseId
488
    """
489
    pass
7672 rajveer 490
 
7968 amar.kumar 491
  def getHistoricBadInventoryByScans(self, date):
492
    """
493
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
494
 
495
    Parameters:
496
     - date
497
    """
498
    pass
499
 
8717 amar.kumar 500
  def scanForBadSale(self, serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
8565 amar.kumar 501
    """
502
    Parameters:
8717 amar.kumar 503
     - serialNumber
504
     - itemNumber
505
     - itemId
8565 amar.kumar 506
     - orderId
8717 amar.kumar 507
     - fulfilmentWarehouseId
8565 amar.kumar 508
     - quantity
509
     - billingWarehouseId
510
    """
511
    pass
7968 amar.kumar 512
 
10120 manish.sha 513
  def getTransferLotItemsForMarkReceive(self, transferLotId, scanType):
514
    """
515
    Parameters:
516
     - transferLotId
517
     - scanType
518
    """
519
    pass
8565 amar.kumar 520
 
10120 manish.sha 521
  def markItemsAsReceivedForTransferLotPartial(self, inventoryItems, transferLotId):
522
    """
523
    Parameters:
524
     - inventoryItems
525
     - transferLotId
526
    """
527
    pass
528
 
529
  def markTransferLotAsReceivedPartial(self, id, remoteTransferRefNumber):
530
    """
531
    Parameters:
532
     - id
533
     - remoteTransferRefNumber
534
    """
535
    pass
536
 
10690 manish.sha 537
  def getInventoryItemScannedInForPO(self, itemId, purchaseIds):
538
    """
539
    Parameters:
540
     - itemId
541
     - purchaseIds
542
    """
543
    pass
10120 manish.sha 544
 
10690 manish.sha 545
  def getAmazonTransferredSkuDetails(self, itemIds):
546
    """
547
    Parameters:
548
     - itemIds
549
    """
550
    pass
551
 
552
  def getScansforPurchase(self, purchaseId, scanType):
553
    """
554
    Parameters:
555
     - purchaseId
556
     - scanType
557
    """
558
    pass
559
 
10864 manish.sha 560
  def getCurrentBadQuantityForItem(self, itemId, currentWarehouseId, physicalWarehouseId):
561
    """
562
    Parameters:
563
     - itemId
564
     - currentWarehouseId
565
     - physicalWarehouseId
566
    """
567
    pass
10690 manish.sha 568
 
10864 manish.sha 569
  def scanForBadPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
570
    """
571
    Parameters:
572
     - saleReturnItems
573
     - vendorId
574
     - billingWarehouseId
575
    """
576
    pass
577
 
13504 manish.sha 578
  def getItemsInPurchaseReturn(self, purchaseReturnId, type, returnTime):
10864 manish.sha 579
    """
580
    Parameters:
581
     - purchaseReturnId
11751 manish.sha 582
     - type
13504 manish.sha 583
     - returnTime
10864 manish.sha 584
    """
585
    pass
586
 
10886 manish.sha 587
  def getScansForInventoryItem(self, inventoryItemId, type):
588
    """
589
    Parameters:
590
     - inventoryItemId
591
     - type
592
    """
593
    pass
10864 manish.sha 594
 
12531 manish.sha 595
  def checkGrnImeiStatus(self, imeiNos):
596
    """
597
    Parameters:
598
     - imeiNos
599
    """
600
    pass
10886 manish.sha 601
 
12800 manish.sha 602
  def getInventoryAgeConsideredItems(self, itemId):
603
    """
604
    Parameters:
605
     - itemId
606
    """
607
    pass
12531 manish.sha 608
 
13529 manish.sha 609
  def getCompleteMovementForThirdPartyWarehouse(self, startDate, endDate):
610
    """
611
    Parameters:
612
     - startDate
613
     - endDate
614
    """
615
    pass
12800 manish.sha 616
 
13529 manish.sha 617
 
3376 rajveer 618
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2821 chandransh 619
  def __init__(self, iprot, oprot=None):
3376 rajveer 620
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2821 chandransh 621
 
4501 mandeep.dh 622
  def getInventoryItem(self, serialNumber):
2832 chandransh 623
    """
4501 mandeep.dh 624
    Retrieves serialized inventory item given a serial number
3431 rajveer 625
 
2832 chandransh 626
    Parameters:
4501 mandeep.dh 627
     - serialNumber
2832 chandransh 628
    """
4501 mandeep.dh 629
    self.send_getInventoryItem(serialNumber)
630
    return self.recv_getInventoryItem()
2832 chandransh 631
 
4501 mandeep.dh 632
  def send_getInventoryItem(self, serialNumber):
633
    self._oprot.writeMessageBegin('getInventoryItem', TMessageType.CALL, self._seqid)
634
    args = getInventoryItem_args()
635
    args.serialNumber = serialNumber
2832 chandransh 636
    args.write(self._oprot)
637
    self._oprot.writeMessageEnd()
638
    self._oprot.trans.flush()
639
 
4501 mandeep.dh 640
  def recv_getInventoryItem(self, ):
2832 chandransh 641
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
642
    if mtype == TMessageType.EXCEPTION:
643
      x = TApplicationException()
644
      x.read(self._iprot)
645
      self._iprot.readMessageEnd()
646
      raise x
4501 mandeep.dh 647
    result = getInventoryItem_result()
2832 chandransh 648
    result.read(self._iprot)
649
    self._iprot.readMessageEnd()
3431 rajveer 650
    if result.success is not None:
2832 chandransh 651
      return result.success
4541 mandeep.dh 652
    if result.wex is not None:
653
      raise result.wex
4501 mandeep.dh 654
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
2832 chandransh 655
 
8565 amar.kumar 656
  def getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId):
2821 chandransh 657
    """
5361 mandeep.dh 658
    Retrieves non-serialized inventory item from a given supplier
3431 rajveer 659
 
2821 chandransh 660
    Parameters:
5530 mandeep.dh 661
     - itemNumber
4501 mandeep.dh 662
     - itemId
5530 mandeep.dh 663
     - fulfilmentWarehouseId
8565 amar.kumar 664
     - billingWarehouseId
2821 chandransh 665
    """
8565 amar.kumar 666
    self.send_getNonSeralizedInventoryItem(itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId)
5361 mandeep.dh 667
    return self.recv_getNonSeralizedInventoryItem()
2821 chandransh 668
 
8565 amar.kumar 669
  def send_getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId):
5361 mandeep.dh 670
    self._oprot.writeMessageBegin('getNonSeralizedInventoryItem', TMessageType.CALL, self._seqid)
671
    args = getNonSeralizedInventoryItem_args()
5530 mandeep.dh 672
    args.itemNumber = itemNumber
4501 mandeep.dh 673
    args.itemId = itemId
5530 mandeep.dh 674
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 675
    args.billingWarehouseId = billingWarehouseId
2821 chandransh 676
    args.write(self._oprot)
677
    self._oprot.writeMessageEnd()
678
    self._oprot.trans.flush()
679
 
5361 mandeep.dh 680
  def recv_getNonSeralizedInventoryItem(self, ):
2821 chandransh 681
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
682
    if mtype == TMessageType.EXCEPTION:
683
      x = TApplicationException()
684
      x.read(self._iprot)
685
      self._iprot.readMessageEnd()
686
      raise x
5361 mandeep.dh 687
    result = getNonSeralizedInventoryItem_result()
2821 chandransh 688
    result.read(self._iprot)
689
    self._iprot.readMessageEnd()
3431 rajveer 690
    if result.success is not None:
2821 chandransh 691
      return result.success
5361 mandeep.dh 692
    if result.wex is not None:
693
      raise result.wex
694
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
2821 chandransh 695
 
7410 amar.kumar 696
  def scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
3383 chandransh 697
    """
4501 mandeep.dh 698
    Scan non-serialized items.
3431 rajveer 699
 
2821 chandransh 700
    Parameters:
5361 mandeep.dh 701
     - inventoryItem
2821 chandransh 702
     - type
4501 mandeep.dh 703
     - quantity
5361 mandeep.dh 704
     - billingWarehouseId
7410 amar.kumar 705
     - transferLotId
2821 chandransh 706
    """
7410 amar.kumar 707
    self.send_scan(inventoryItem, type, quantity, billingWarehouseId, transferLotId)
4501 mandeep.dh 708
    self.recv_scan()
2821 chandransh 709
 
7410 amar.kumar 710
  def send_scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
4501 mandeep.dh 711
    self._oprot.writeMessageBegin('scan', TMessageType.CALL, self._seqid)
712
    args = scan_args()
5361 mandeep.dh 713
    args.inventoryItem = inventoryItem
2821 chandransh 714
    args.type = type
4501 mandeep.dh 715
    args.quantity = quantity
5361 mandeep.dh 716
    args.billingWarehouseId = billingWarehouseId
7410 amar.kumar 717
    args.transferLotId = transferLotId
2821 chandransh 718
    args.write(self._oprot)
719
    self._oprot.writeMessageEnd()
720
    self._oprot.trans.flush()
721
 
4501 mandeep.dh 722
  def recv_scan(self, ):
2821 chandransh 723
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
724
    if mtype == TMessageType.EXCEPTION:
725
      x = TApplicationException()
726
      x.read(self._iprot)
727
      self._iprot.readMessageEnd()
728
      raise x
4501 mandeep.dh 729
    result = scan_result()
2821 chandransh 730
    result.read(self._iprot)
731
    self._iprot.readMessageEnd()
3431 rajveer 732
    if result.wex is not None:
2821 chandransh 733
      raise result.wex
734
    return
735
 
10489 amar.kumar 736
  def genericScan(self, inventoryItem, scan):
737
    """
738
    Scan non-serialized items.
739
 
740
    Parameters:
741
     - inventoryItem
742
     - scan
743
    """
744
    self.send_genericScan(inventoryItem, scan)
745
    self.recv_genericScan()
746
 
747
  def send_genericScan(self, inventoryItem, scan):
748
    self._oprot.writeMessageBegin('genericScan', TMessageType.CALL, self._seqid)
749
    args = genericScan_args()
750
    args.inventoryItem = inventoryItem
751
    args.scan = scan
752
    args.write(self._oprot)
753
    self._oprot.writeMessageEnd()
754
    self._oprot.trans.flush()
755
 
756
  def recv_genericScan(self, ):
757
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
758
    if mtype == TMessageType.EXCEPTION:
759
      x = TApplicationException()
760
      x.read(self._iprot)
761
      self._iprot.readMessageEnd()
762
      raise x
763
    result = genericScan_result()
764
    result.read(self._iprot)
765
    self._iprot.readMessageEnd()
766
    if result.wex is not None:
767
      raise result.wex
768
    return
769
 
5110 mandeep.dh 770
  def scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
2821 chandransh 771
    """
4501 mandeep.dh 772
    Scan serialized items linked with an order. Returns its price.
3431 rajveer 773
 
2821 chandransh 774
    Parameters:
4555 mandeep.dh 775
     - serialNumber
2821 chandransh 776
     - type
4501 mandeep.dh 777
     - orderId
5110 mandeep.dh 778
     - fulfilmentWarehouseId
779
     - quantity
780
     - billingWarehouseId
2821 chandransh 781
    """
5110 mandeep.dh 782
    self.send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId)
4501 mandeep.dh 783
    return self.recv_scanSerializedItemForOrder()
2821 chandransh 784
 
5110 mandeep.dh 785
  def send_scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
4501 mandeep.dh 786
    self._oprot.writeMessageBegin('scanSerializedItemForOrder', TMessageType.CALL, self._seqid)
787
    args = scanSerializedItemForOrder_args()
4555 mandeep.dh 788
    args.serialNumber = serialNumber
2821 chandransh 789
    args.type = type
4501 mandeep.dh 790
    args.orderId = orderId
5110 mandeep.dh 791
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
792
    args.quantity = quantity
793
    args.billingWarehouseId = billingWarehouseId
2821 chandransh 794
    args.write(self._oprot)
795
    self._oprot.writeMessageEnd()
796
    self._oprot.trans.flush()
797
 
4501 mandeep.dh 798
  def recv_scanSerializedItemForOrder(self, ):
2821 chandransh 799
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
800
    if mtype == TMessageType.EXCEPTION:
801
      x = TApplicationException()
802
      x.read(self._iprot)
803
      self._iprot.readMessageEnd()
804
      raise x
4501 mandeep.dh 805
    result = scanSerializedItemForOrder_result()
2821 chandransh 806
    result.read(self._iprot)
807
    self._iprot.readMessageEnd()
4501 mandeep.dh 808
    if result.success is not None:
809
      return result.success
3431 rajveer 810
    if result.wex is not None:
2821 chandransh 811
      raise result.wex
4501 mandeep.dh 812
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
813
 
5361 mandeep.dh 814
  def scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
4501 mandeep.dh 815
    """
816
    Scan non-serialized items linked with an order.
817
 
818
    Parameters:
5361 mandeep.dh 819
     - inventoryItem
4501 mandeep.dh 820
     - type
821
     - quantity
822
     - orderId
5110 mandeep.dh 823
     - fulfilmentWarehouseId
5361 mandeep.dh 824
     - billingWarehouseId
4501 mandeep.dh 825
    """
5361 mandeep.dh 826
    self.send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId)
827
    return self.recv_scanForOrder()
4501 mandeep.dh 828
 
5361 mandeep.dh 829
  def send_scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
4501 mandeep.dh 830
    self._oprot.writeMessageBegin('scanForOrder', TMessageType.CALL, self._seqid)
831
    args = scanForOrder_args()
5361 mandeep.dh 832
    args.inventoryItem = inventoryItem
4501 mandeep.dh 833
    args.type = type
834
    args.quantity = quantity
835
    args.orderId = orderId
5110 mandeep.dh 836
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
5361 mandeep.dh 837
    args.billingWarehouseId = billingWarehouseId
4501 mandeep.dh 838
    args.write(self._oprot)
839
    self._oprot.writeMessageEnd()
840
    self._oprot.trans.flush()
841
 
842
  def recv_scanForOrder(self, ):
843
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
844
    if mtype == TMessageType.EXCEPTION:
845
      x = TApplicationException()
846
      x.read(self._iprot)
847
      self._iprot.readMessageEnd()
848
      raise x
849
    result = scanForOrder_result()
850
    result.read(self._iprot)
851
    self._iprot.readMessageEnd()
5361 mandeep.dh 852
    if result.success is not None:
853
      return result.success
4501 mandeep.dh 854
    if result.wex is not None:
855
      raise result.wex
5361 mandeep.dh 856
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");
2821 chandransh 857
 
4501 mandeep.dh 858
  def createItemNumberMapping(self, itemNumber, itemId):
859
    """
860
    Created item number to item id mapping
2821 chandransh 861
 
4501 mandeep.dh 862
    Parameters:
863
     - itemNumber
864
     - itemId
865
    """
866
    self.send_createItemNumberMapping(itemNumber, itemId)
867
    self.recv_createItemNumberMapping()
868
 
869
  def send_createItemNumberMapping(self, itemNumber, itemId):
870
    self._oprot.writeMessageBegin('createItemNumberMapping', TMessageType.CALL, self._seqid)
871
    args = createItemNumberMapping_args()
872
    args.itemNumber = itemNumber
873
    args.itemId = itemId
874
    args.write(self._oprot)
875
    self._oprot.writeMessageEnd()
876
    self._oprot.trans.flush()
877
 
878
  def recv_createItemNumberMapping(self, ):
879
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
880
    if mtype == TMessageType.EXCEPTION:
881
      x = TApplicationException()
882
      x.read(self._iprot)
883
      self._iprot.readMessageEnd()
884
      raise x
885
    result = createItemNumberMapping_result()
886
    result.read(self._iprot)
887
    self._iprot.readMessageEnd()
888
    return
889
 
4620 amit.gupta 890
  def getItemNumbers(self, itemId):
891
    """
892
    Get itemNumber mappings for itemId
4501 mandeep.dh 893
 
4620 amit.gupta 894
    Parameters:
895
     - itemId
896
    """
897
    self.send_getItemNumbers(itemId)
898
    return self.recv_getItemNumbers()
899
 
900
  def send_getItemNumbers(self, itemId):
901
    self._oprot.writeMessageBegin('getItemNumbers', TMessageType.CALL, self._seqid)
902
    args = getItemNumbers_args()
903
    args.itemId = itemId
904
    args.write(self._oprot)
905
    self._oprot.writeMessageEnd()
906
    self._oprot.trans.flush()
907
 
908
  def recv_getItemNumbers(self, ):
909
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
910
    if mtype == TMessageType.EXCEPTION:
911
      x = TApplicationException()
912
      x.read(self._iprot)
913
      self._iprot.readMessageEnd()
914
      raise x
915
    result = getItemNumbers_result()
916
    result.read(self._iprot)
917
    self._iprot.readMessageEnd()
918
    if result.success is not None:
919
      return result.success
920
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
921
 
5110 mandeep.dh 922
  def getItemIds(self, itemNumber):
923
    """
924
    Gets item ids for a given item number
4620 amit.gupta 925
 
5110 mandeep.dh 926
    Parameters:
927
     - itemNumber
928
    """
929
    self.send_getItemIds(itemNumber)
930
    return self.recv_getItemIds()
931
 
932
  def send_getItemIds(self, itemNumber):
933
    self._oprot.writeMessageBegin('getItemIds', TMessageType.CALL, self._seqid)
934
    args = getItemIds_args()
935
    args.itemNumber = itemNumber
936
    args.write(self._oprot)
937
    self._oprot.writeMessageEnd()
938
    self._oprot.trans.flush()
939
 
940
  def recv_getItemIds(self, ):
941
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
942
    if mtype == TMessageType.EXCEPTION:
943
      x = TApplicationException()
944
      x.read(self._iprot)
945
      self._iprot.readMessageEnd()
946
      raise x
947
    result = getItemIds_result()
948
    result.read(self._iprot)
949
    self._iprot.readMessageEnd()
950
    if result.success is not None:
951
      return result.success
952
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
953
 
5185 mandeep.dh 954
  def getInventoryItemsFromLastScanType(self, lastScanType):
955
    """
956
    Retrieves all inventory items given a last scan type
5110 mandeep.dh 957
 
5185 mandeep.dh 958
    Parameters:
959
     - lastScanType
960
    """
961
    self.send_getInventoryItemsFromLastScanType(lastScanType)
962
    return self.recv_getInventoryItemsFromLastScanType()
963
 
964
  def send_getInventoryItemsFromLastScanType(self, lastScanType):
965
    self._oprot.writeMessageBegin('getInventoryItemsFromLastScanType', TMessageType.CALL, self._seqid)
966
    args = getInventoryItemsFromLastScanType_args()
967
    args.lastScanType = lastScanType
968
    args.write(self._oprot)
969
    self._oprot.writeMessageEnd()
970
    self._oprot.trans.flush()
971
 
972
  def recv_getInventoryItemsFromLastScanType(self, ):
973
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
974
    if mtype == TMessageType.EXCEPTION:
975
      x = TApplicationException()
976
      x.read(self._iprot)
977
      self._iprot.readMessageEnd()
978
      raise x
979
    result = getInventoryItemsFromLastScanType_result()
980
    result.read(self._iprot)
981
    self._iprot.readMessageEnd()
982
    if result.success is not None:
983
      return result.success
984
    if result.wex is not None:
985
      raise result.wex
986
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemsFromLastScanType failed: unknown result");
987
 
988
  def getInventoryItemFromId(self, inventoryItemId):
989
    """
990
    Retrieves inventory item given a inventoryItem id
991
 
992
    Parameters:
993
     - inventoryItemId
994
    """
995
    self.send_getInventoryItemFromId(inventoryItemId)
996
    return self.recv_getInventoryItemFromId()
997
 
998
  def send_getInventoryItemFromId(self, inventoryItemId):
999
    self._oprot.writeMessageBegin('getInventoryItemFromId', TMessageType.CALL, self._seqid)
1000
    args = getInventoryItemFromId_args()
1001
    args.inventoryItemId = inventoryItemId
1002
    args.write(self._oprot)
1003
    self._oprot.writeMessageEnd()
1004
    self._oprot.trans.flush()
1005
 
1006
  def recv_getInventoryItemFromId(self, ):
1007
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1008
    if mtype == TMessageType.EXCEPTION:
1009
      x = TApplicationException()
1010
      x.read(self._iprot)
1011
      self._iprot.readMessageEnd()
1012
      raise x
1013
    result = getInventoryItemFromId_result()
1014
    result.read(self._iprot)
1015
    self._iprot.readMessageEnd()
1016
    if result.success is not None:
1017
      return result.success
1018
    if result.wex is not None:
1019
      raise result.wex
1020
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");
1021
 
5372 mandeep.dh 1022
  def getPurchaseScans(self, startDate, endDate):
1023
    """
1024
    Returns the purchase scans grouped by items for Purchase register reconciliation
5185 mandeep.dh 1025
 
5372 mandeep.dh 1026
    Parameters:
1027
     - startDate
1028
     - endDate
1029
    """
1030
    self.send_getPurchaseScans(startDate, endDate)
1031
    return self.recv_getPurchaseScans()
1032
 
1033
  def send_getPurchaseScans(self, startDate, endDate):
1034
    self._oprot.writeMessageBegin('getPurchaseScans', TMessageType.CALL, self._seqid)
1035
    args = getPurchaseScans_args()
1036
    args.startDate = startDate
1037
    args.endDate = endDate
1038
    args.write(self._oprot)
1039
    self._oprot.writeMessageEnd()
1040
    self._oprot.trans.flush()
1041
 
1042
  def recv_getPurchaseScans(self, ):
1043
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1044
    if mtype == TMessageType.EXCEPTION:
1045
      x = TApplicationException()
1046
      x.read(self._iprot)
1047
      self._iprot.readMessageEnd()
1048
      raise x
1049
    result = getPurchaseScans_result()
1050
    result.read(self._iprot)
1051
    self._iprot.readMessageEnd()
1052
    if result.success is not None:
1053
      return result.success
1054
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseScans failed: unknown result");
1055
 
7216 amar.kumar 1056
  def getPurchaseScansByGrnDate(self, startDate, endDate):
1057
    """
1058
    Returns the purchase scans between grn dates grouped by items for Purchase register reconciliation
1059
 
1060
    Parameters:
1061
     - startDate
1062
     - endDate
1063
    """
1064
    self.send_getPurchaseScansByGrnDate(startDate, endDate)
1065
    return self.recv_getPurchaseScansByGrnDate()
1066
 
1067
  def send_getPurchaseScansByGrnDate(self, startDate, endDate):
1068
    self._oprot.writeMessageBegin('getPurchaseScansByGrnDate', TMessageType.CALL, self._seqid)
1069
    args = getPurchaseScansByGrnDate_args()
1070
    args.startDate = startDate
1071
    args.endDate = endDate
1072
    args.write(self._oprot)
1073
    self._oprot.writeMessageEnd()
1074
    self._oprot.trans.flush()
1075
 
1076
  def recv_getPurchaseScansByGrnDate(self, ):
1077
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1078
    if mtype == TMessageType.EXCEPTION:
1079
      x = TApplicationException()
1080
      x.read(self._iprot)
1081
      self._iprot.readMessageEnd()
1082
      raise x
1083
    result = getPurchaseScansByGrnDate_result()
1084
    result.read(self._iprot)
1085
    self._iprot.readMessageEnd()
1086
    if result.success is not None:
1087
      return result.success
1088
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseScansByGrnDate failed: unknown result");
1089
 
10407 amar.kumar 1090
  def getEmptyGrnsByDate(self, startDate, endDate):
1091
    """
1092
    Returns the empty grn-ids between grn dates
1093
 
1094
    Parameters:
1095
     - startDate
1096
     - endDate
1097
    """
1098
    self.send_getEmptyGrnsByDate(startDate, endDate)
1099
    return self.recv_getEmptyGrnsByDate()
1100
 
1101
  def send_getEmptyGrnsByDate(self, startDate, endDate):
1102
    self._oprot.writeMessageBegin('getEmptyGrnsByDate', TMessageType.CALL, self._seqid)
1103
    args = getEmptyGrnsByDate_args()
1104
    args.startDate = startDate
1105
    args.endDate = endDate
1106
    args.write(self._oprot)
1107
    self._oprot.writeMessageEnd()
1108
    self._oprot.trans.flush()
1109
 
1110
  def recv_getEmptyGrnsByDate(self, ):
1111
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1112
    if mtype == TMessageType.EXCEPTION:
1113
      x = TApplicationException()
1114
      x.read(self._iprot)
1115
      self._iprot.readMessageEnd()
1116
      raise x
1117
    result = getEmptyGrnsByDate_result()
1118
    result.read(self._iprot)
1119
    self._iprot.readMessageEnd()
1120
    if result.success is not None:
1121
      return result.success
1122
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmptyGrnsByDate failed: unknown result");
1123
 
5496 mandeep.dh 1124
  def fetchScansPerInvoiceNumber(self, date):
1125
    """
1126
    Returns the invoices and the count of scans against on a given day.
5372 mandeep.dh 1127
 
5496 mandeep.dh 1128
    Parameters:
1129
     - date
1130
    """
1131
    self.send_fetchScansPerInvoiceNumber(date)
1132
    return self.recv_fetchScansPerInvoiceNumber()
1133
 
1134
  def send_fetchScansPerInvoiceNumber(self, date):
1135
    self._oprot.writeMessageBegin('fetchScansPerInvoiceNumber', TMessageType.CALL, self._seqid)
1136
    args = fetchScansPerInvoiceNumber_args()
1137
    args.date = date
1138
    args.write(self._oprot)
1139
    self._oprot.writeMessageEnd()
1140
    self._oprot.trans.flush()
1141
 
1142
  def recv_fetchScansPerInvoiceNumber(self, ):
1143
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1144
    if mtype == TMessageType.EXCEPTION:
1145
      x = TApplicationException()
1146
      x.read(self._iprot)
1147
      self._iprot.readMessageEnd()
1148
      raise x
1149
    result = fetchScansPerInvoiceNumber_result()
1150
    result.read(self._iprot)
1151
    self._iprot.readMessageEnd()
1152
    if result.success is not None:
1153
      return result.success
1154
    raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchScansPerInvoiceNumber failed: unknown result");
1155
 
5620 mandeep.dh 1156
  def getInventoryItemFromOrder(self, orderId):
1157
    """
1158
    Returns inventory item for a given order
5496 mandeep.dh 1159
 
5620 mandeep.dh 1160
    Parameters:
1161
     - orderId
1162
    """
1163
    self.send_getInventoryItemFromOrder(orderId)
1164
    return self.recv_getInventoryItemFromOrder()
1165
 
1166
  def send_getInventoryItemFromOrder(self, orderId):
1167
    self._oprot.writeMessageBegin('getInventoryItemFromOrder', TMessageType.CALL, self._seqid)
1168
    args = getInventoryItemFromOrder_args()
1169
    args.orderId = orderId
1170
    args.write(self._oprot)
1171
    self._oprot.writeMessageEnd()
1172
    self._oprot.trans.flush()
1173
 
1174
  def recv_getInventoryItemFromOrder(self, ):
1175
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1176
    if mtype == TMessageType.EXCEPTION:
1177
      x = TApplicationException()
1178
      x.read(self._iprot)
1179
      self._iprot.readMessageEnd()
1180
      raise x
1181
    result = getInventoryItemFromOrder_result()
1182
    result.read(self._iprot)
1183
    self._iprot.readMessageEnd()
1184
    if result.success is not None:
1185
      return result.success
1186
    if result.we is not None:
1187
      raise result.we
1188
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemFromOrder failed: unknown result");
1189
 
5711 mandeep.dh 1190
  def getInventoryAge(self, ):
1191
    """
1192
    Fetches the stock inventory age week-wise
1193
    """
1194
    self.send_getInventoryAge()
1195
    return self.recv_getInventoryAge()
5620 mandeep.dh 1196
 
5711 mandeep.dh 1197
  def send_getInventoryAge(self, ):
1198
    self._oprot.writeMessageBegin('getInventoryAge', TMessageType.CALL, self._seqid)
1199
    args = getInventoryAge_args()
1200
    args.write(self._oprot)
1201
    self._oprot.writeMessageEnd()
1202
    self._oprot.trans.flush()
1203
 
1204
  def recv_getInventoryAge(self, ):
1205
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1206
    if mtype == TMessageType.EXCEPTION:
1207
      x = TApplicationException()
1208
      x.read(self._iprot)
1209
      self._iprot.readMessageEnd()
1210
      raise x
1211
    result = getInventoryAge_result()
1212
    result.read(self._iprot)
1213
    self._iprot.readMessageEnd()
1214
    if result.success is not None:
1215
      return result.success
1216
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryAge failed: unknown result");
1217
 
6361 rajveer 1218
  def getInventoryScansForItem(self, itemId, fromDate, toDate):
1219
    """
1220
    Fetches the scanRecords for a given item for a given time interval
5711 mandeep.dh 1221
 
6361 rajveer 1222
    Parameters:
1223
     - itemId
1224
     - fromDate
1225
     - toDate
1226
    """
1227
    self.send_getInventoryScansForItem(itemId, fromDate, toDate)
1228
    return self.recv_getInventoryScansForItem()
1229
 
1230
  def send_getInventoryScansForItem(self, itemId, fromDate, toDate):
1231
    self._oprot.writeMessageBegin('getInventoryScansForItem', TMessageType.CALL, self._seqid)
1232
    args = getInventoryScansForItem_args()
1233
    args.itemId = itemId
1234
    args.fromDate = fromDate
1235
    args.toDate = toDate
1236
    args.write(self._oprot)
1237
    self._oprot.writeMessageEnd()
1238
    self._oprot.trans.flush()
1239
 
1240
  def recv_getInventoryScansForItem(self, ):
1241
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1242
    if mtype == TMessageType.EXCEPTION:
1243
      x = TApplicationException()
1244
      x.read(self._iprot)
1245
      self._iprot.readMessageEnd()
1246
      raise x
1247
    result = getInventoryScansForItem_result()
1248
    result.read(self._iprot)
1249
    self._iprot.readMessageEnd()
1250
    if result.success is not None:
1251
      return result.success
1252
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryScansForItem failed: unknown result");
1253
 
1254
  def getScanRecordsForSerialNumber(self, serialNumber):
1255
    """
1256
    Fetches the scanRecords for a given serialNumber for a given time interval
1257
 
1258
    Parameters:
1259
     - serialNumber
1260
    """
1261
    self.send_getScanRecordsForSerialNumber(serialNumber)
1262
    return self.recv_getScanRecordsForSerialNumber()
1263
 
1264
  def send_getScanRecordsForSerialNumber(self, serialNumber):
1265
    self._oprot.writeMessageBegin('getScanRecordsForSerialNumber', TMessageType.CALL, self._seqid)
1266
    args = getScanRecordsForSerialNumber_args()
1267
    args.serialNumber = serialNumber
1268
    args.write(self._oprot)
1269
    self._oprot.writeMessageEnd()
1270
    self._oprot.trans.flush()
1271
 
1272
  def recv_getScanRecordsForSerialNumber(self, ):
1273
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1274
    if mtype == TMessageType.EXCEPTION:
1275
      x = TApplicationException()
1276
      x.read(self._iprot)
1277
      self._iprot.readMessageEnd()
1278
      raise x
1279
    result = getScanRecordsForSerialNumber_result()
1280
    result.read(self._iprot)
1281
    self._iprot.readMessageEnd()
1282
    if result.success is not None:
1283
      return result.success
1284
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScanRecordsForSerialNumber failed: unknown result");
1285
 
7718 amar.kumar 1286
  def scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
6467 amar.kumar 1287
    """
6630 amar.kumar 1288
    Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
6361 rajveer 1289
 
6467 amar.kumar 1290
    Parameters:
1291
     - saleReturnItems
1292
     - vendorId
7718 amar.kumar 1293
     - billingWarehouseId
6467 amar.kumar 1294
    """
7718 amar.kumar 1295
    self.send_scanForPurchaseReturn(saleReturnItems, vendorId, billingWarehouseId)
10864 manish.sha 1296
    return self.recv_scanForPurchaseReturn()
6467 amar.kumar 1297
 
7718 amar.kumar 1298
  def send_scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
6467 amar.kumar 1299
    self._oprot.writeMessageBegin('scanForPurchaseReturn', TMessageType.CALL, self._seqid)
1300
    args = scanForPurchaseReturn_args()
1301
    args.saleReturnItems = saleReturnItems
1302
    args.vendorId = vendorId
7718 amar.kumar 1303
    args.billingWarehouseId = billingWarehouseId
6467 amar.kumar 1304
    args.write(self._oprot)
1305
    self._oprot.writeMessageEnd()
1306
    self._oprot.trans.flush()
1307
 
1308
  def recv_scanForPurchaseReturn(self, ):
1309
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1310
    if mtype == TMessageType.EXCEPTION:
1311
      x = TApplicationException()
1312
      x.read(self._iprot)
1313
      self._iprot.readMessageEnd()
1314
      raise x
1315
    result = scanForPurchaseReturn_result()
1316
    result.read(self._iprot)
1317
    self._iprot.readMessageEnd()
10864 manish.sha 1318
    if result.success is not None:
1319
      return result.success
6467 amar.kumar 1320
    if result.ex is not None:
1321
      raise result.ex
10864 manish.sha 1322
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForPurchaseReturn failed: unknown result");
6467 amar.kumar 1323
 
7718 amar.kumar 1324
  def scanForLostItem(self, lostItems, vendorId, billingWarehouseId):
6630 amar.kumar 1325
    """
1326
    Inserts scans for lost Items and updates lastScanType in InventoryItems
6467 amar.kumar 1327
 
6630 amar.kumar 1328
    Parameters:
1329
     - lostItems
1330
     - vendorId
7718 amar.kumar 1331
     - billingWarehouseId
6630 amar.kumar 1332
    """
7718 amar.kumar 1333
    self.send_scanForLostItem(lostItems, vendorId, billingWarehouseId)
6630 amar.kumar 1334
    self.recv_scanForLostItem()
1335
 
7718 amar.kumar 1336
  def send_scanForLostItem(self, lostItems, vendorId, billingWarehouseId):
6630 amar.kumar 1337
    self._oprot.writeMessageBegin('scanForLostItem', TMessageType.CALL, self._seqid)
1338
    args = scanForLostItem_args()
1339
    args.lostItems = lostItems
1340
    args.vendorId = vendorId
7718 amar.kumar 1341
    args.billingWarehouseId = billingWarehouseId
6630 amar.kumar 1342
    args.write(self._oprot)
1343
    self._oprot.writeMessageEnd()
1344
    self._oprot.trans.flush()
1345
 
1346
  def recv_scanForLostItem(self, ):
1347
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1348
    if mtype == TMessageType.EXCEPTION:
1349
      x = TApplicationException()
1350
      x.read(self._iprot)
1351
      self._iprot.readMessageEnd()
1352
      raise x
1353
    result = scanForLostItem_result()
1354
    result.read(self._iprot)
1355
    self._iprot.readMessageEnd()
1356
    if result.ex is not None:
1357
      raise result.ex
1358
    return
1359
 
7715 vikram.rag 1360
  def getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1361
    """
1362
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
7715 vikram.rag 1363
 
1364
    Parameters:
1365
     - physicalWarehouseId
6630 amar.kumar 1366
    """
7715 vikram.rag 1367
    self.send_getCurrentSerializedInventoryByScans(physicalWarehouseId)
6630 amar.kumar 1368
    return self.recv_getCurrentSerializedInventoryByScans()
1369
 
7715 vikram.rag 1370
  def send_getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1371
    self._oprot.writeMessageBegin('getCurrentSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1372
    args = getCurrentSerializedInventoryByScans_args()
7715 vikram.rag 1373
    args.physicalWarehouseId = physicalWarehouseId
6630 amar.kumar 1374
    args.write(self._oprot)
1375
    self._oprot.writeMessageEnd()
1376
    self._oprot.trans.flush()
1377
 
1378
  def recv_getCurrentSerializedInventoryByScans(self, ):
1379
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1380
    if mtype == TMessageType.EXCEPTION:
1381
      x = TApplicationException()
1382
      x.read(self._iprot)
1383
      self._iprot.readMessageEnd()
1384
      raise x
1385
    result = getCurrentSerializedInventoryByScans_result()
1386
    result.read(self._iprot)
1387
    self._iprot.readMessageEnd()
1388
    if result.success is not None:
1389
      return result.success
1390
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");
1391
 
7715 vikram.rag 1392
  def getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1393
    """
1394
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
7715 vikram.rag 1395
 
1396
    Parameters:
1397
     - physicalWarehouseId
6630 amar.kumar 1398
    """
7715 vikram.rag 1399
    self.send_getCurrentNonSerializedInventoryByScans(physicalWarehouseId)
6630 amar.kumar 1400
    return self.recv_getCurrentNonSerializedInventoryByScans()
1401
 
7715 vikram.rag 1402
  def send_getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1403
    self._oprot.writeMessageBegin('getCurrentNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1404
    args = getCurrentNonSerializedInventoryByScans_args()
7715 vikram.rag 1405
    args.physicalWarehouseId = physicalWarehouseId
6630 amar.kumar 1406
    args.write(self._oprot)
1407
    self._oprot.writeMessageEnd()
1408
    self._oprot.trans.flush()
1409
 
1410
  def recv_getCurrentNonSerializedInventoryByScans(self, ):
1411
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1412
    if mtype == TMessageType.EXCEPTION:
1413
      x = TApplicationException()
1414
      x.read(self._iprot)
1415
      self._iprot.readMessageEnd()
1416
      raise x
1417
    result = getCurrentNonSerializedInventoryByScans_result()
1418
    result.read(self._iprot)
1419
    self._iprot.readMessageEnd()
1420
    if result.success is not None:
1421
      return result.success
1422
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");
1423
 
6762 amar.kumar 1424
  def getHistoricSerializedInventoryByScans(self, date):
1425
    """
1426
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
6630 amar.kumar 1427
 
6762 amar.kumar 1428
    Parameters:
1429
     - date
1430
    """
1431
    self.send_getHistoricSerializedInventoryByScans(date)
1432
    return self.recv_getHistoricSerializedInventoryByScans()
1433
 
1434
  def send_getHistoricSerializedInventoryByScans(self, date):
1435
    self._oprot.writeMessageBegin('getHistoricSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1436
    args = getHistoricSerializedInventoryByScans_args()
1437
    args.date = date
1438
    args.write(self._oprot)
1439
    self._oprot.writeMessageEnd()
1440
    self._oprot.trans.flush()
1441
 
1442
  def recv_getHistoricSerializedInventoryByScans(self, ):
1443
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1444
    if mtype == TMessageType.EXCEPTION:
1445
      x = TApplicationException()
1446
      x.read(self._iprot)
1447
      self._iprot.readMessageEnd()
1448
      raise x
1449
    result = getHistoricSerializedInventoryByScans_result()
1450
    result.read(self._iprot)
1451
    self._iprot.readMessageEnd()
1452
    if result.success is not None:
1453
      return result.success
1454
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricSerializedInventoryByScans failed: unknown result");
1455
 
1456
  def getHistoricNonSerializedInventoryByScans(self, date):
1457
    """
1458
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
1459
 
1460
    Parameters:
1461
     - date
1462
    """
1463
    self.send_getHistoricNonSerializedInventoryByScans(date)
1464
    return self.recv_getHistoricNonSerializedInventoryByScans()
1465
 
1466
  def send_getHistoricNonSerializedInventoryByScans(self, date):
1467
    self._oprot.writeMessageBegin('getHistoricNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1468
    args = getHistoricNonSerializedInventoryByScans_args()
1469
    args.date = date
1470
    args.write(self._oprot)
1471
    self._oprot.writeMessageEnd()
1472
    self._oprot.trans.flush()
1473
 
1474
  def recv_getHistoricNonSerializedInventoryByScans(self, ):
1475
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1476
    if mtype == TMessageType.EXCEPTION:
1477
      x = TApplicationException()
1478
      x.read(self._iprot)
1479
      self._iprot.readMessageEnd()
1480
      raise x
1481
    result = getHistoricNonSerializedInventoryByScans_result()
1482
    result.read(self._iprot)
1483
    self._iprot.readMessageEnd()
1484
    if result.success is not None:
1485
      return result.success
1486
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricNonSerializedInventoryByScans failed: unknown result");
1487
 
10407 amar.kumar 1488
  def getOurHistoricSerializedInventoryByScans(self, date):
1489
    """
1490
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
1491
 
1492
    Parameters:
1493
     - date
1494
    """
1495
    self.send_getOurHistoricSerializedInventoryByScans(date)
1496
    return self.recv_getOurHistoricSerializedInventoryByScans()
1497
 
1498
  def send_getOurHistoricSerializedInventoryByScans(self, date):
1499
    self._oprot.writeMessageBegin('getOurHistoricSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1500
    args = getOurHistoricSerializedInventoryByScans_args()
1501
    args.date = date
1502
    args.write(self._oprot)
1503
    self._oprot.writeMessageEnd()
1504
    self._oprot.trans.flush()
1505
 
1506
  def recv_getOurHistoricSerializedInventoryByScans(self, ):
1507
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1508
    if mtype == TMessageType.EXCEPTION:
1509
      x = TApplicationException()
1510
      x.read(self._iprot)
1511
      self._iprot.readMessageEnd()
1512
      raise x
1513
    result = getOurHistoricSerializedInventoryByScans_result()
1514
    result.read(self._iprot)
1515
    self._iprot.readMessageEnd()
1516
    if result.success is not None:
1517
      return result.success
1518
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurHistoricSerializedInventoryByScans failed: unknown result");
1519
 
1520
  def getOurHistoricNonSerializedInventoryByScans(self, date):
1521
    """
1522
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
1523
 
1524
    Parameters:
1525
     - date
1526
    """
1527
    self.send_getOurHistoricNonSerializedInventoryByScans(date)
1528
    return self.recv_getOurHistoricNonSerializedInventoryByScans()
1529
 
1530
  def send_getOurHistoricNonSerializedInventoryByScans(self, date):
1531
    self._oprot.writeMessageBegin('getOurHistoricNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1532
    args = getOurHistoricNonSerializedInventoryByScans_args()
1533
    args.date = date
1534
    args.write(self._oprot)
1535
    self._oprot.writeMessageEnd()
1536
    self._oprot.trans.flush()
1537
 
1538
  def recv_getOurHistoricNonSerializedInventoryByScans(self, ):
1539
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1540
    if mtype == TMessageType.EXCEPTION:
1541
      x = TApplicationException()
1542
      x.read(self._iprot)
1543
      self._iprot.readMessageEnd()
1544
      raise x
1545
    result = getOurHistoricNonSerializedInventoryByScans_result()
1546
    result.read(self._iprot)
1547
    self._iprot.readMessageEnd()
1548
    if result.success is not None:
1549
      return result.success
1550
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurHistoricNonSerializedInventoryByScans failed: unknown result");
1551
 
7672 rajveer 1552
  def scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):
6762 amar.kumar 1553
    """
6880 amar.kumar 1554
    Insert Purchase/Sale Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 1555
 
1556
    Parameters:
1557
     - itemId
1558
     - serialNumber
1559
     - itemNumber
1560
     - invoiceNumber
1561
     - warehouseId
1562
     - unitPrice
7672 rajveer 1563
     - nlc
6762 amar.kumar 1564
     - orderId
1565
    """
7672 rajveer 1566
    self.send_scanForOursExternalSale(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId)
6762 amar.kumar 1567
    return self.recv_scanForOursExternalSale()
1568
 
7672 rajveer 1569
  def send_scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):
6762 amar.kumar 1570
    self._oprot.writeMessageBegin('scanForOursExternalSale', TMessageType.CALL, self._seqid)
1571
    args = scanForOursExternalSale_args()
1572
    args.itemId = itemId
1573
    args.serialNumber = serialNumber
1574
    args.itemNumber = itemNumber
1575
    args.invoiceNumber = invoiceNumber
1576
    args.warehouseId = warehouseId
1577
    args.unitPrice = unitPrice
7672 rajveer 1578
    args.nlc = nlc
6762 amar.kumar 1579
    args.orderId = orderId
1580
    args.write(self._oprot)
1581
    self._oprot.writeMessageEnd()
1582
    self._oprot.trans.flush()
1583
 
1584
  def recv_scanForOursExternalSale(self, ):
1585
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1586
    if mtype == TMessageType.EXCEPTION:
1587
      x = TApplicationException()
1588
      x.read(self._iprot)
1589
      self._iprot.readMessageEnd()
1590
      raise x
1591
    result = scanForOursExternalSale_result()
1592
    result.read(self._iprot)
1593
    self._iprot.readMessageEnd()
1594
    if result.success is not None:
1595
      return result.success
1596
    if result.ex is not None:
1597
      raise result.ex
1598
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOursExternalSale failed: unknown result");
1599
 
1600
  def scanForOursExternalSaleReturn(self, orderId, unitPrice):
1601
    """
6880 amar.kumar 1602
    Insert Purchase_Ret/Sale_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 1603
 
1604
    Parameters:
1605
     - orderId
1606
     - unitPrice
1607
    """
1608
    self.send_scanForOursExternalSaleReturn(orderId, unitPrice)
1609
    self.recv_scanForOursExternalSaleReturn()
1610
 
1611
  def send_scanForOursExternalSaleReturn(self, orderId, unitPrice):
1612
    self._oprot.writeMessageBegin('scanForOursExternalSaleReturn', TMessageType.CALL, self._seqid)
1613
    args = scanForOursExternalSaleReturn_args()
1614
    args.orderId = orderId
1615
    args.unitPrice = unitPrice
1616
    args.write(self._oprot)
1617
    self._oprot.writeMessageEnd()
1618
    self._oprot.trans.flush()
1619
 
1620
  def recv_scanForOursExternalSaleReturn(self, ):
1621
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1622
    if mtype == TMessageType.EXCEPTION:
1623
      x = TApplicationException()
1624
      x.read(self._iprot)
1625
      self._iprot.readMessageEnd()
1626
      raise x
1627
    result = scanForOursExternalSaleReturn_result()
1628
    result.read(self._iprot)
1629
    self._iprot.readMessageEnd()
7410 amar.kumar 1630
    if result.ex is not None:
1631
      raise result.ex
6762 amar.kumar 1632
    return
1633
 
6880 amar.kumar 1634
  def getMovementNonSerializedInventoryByScans(self, startDate, endDate):
1635
    """
10407 amar.kumar 1636
    This returns movement for each non serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)
1637
 
6880 amar.kumar 1638
    Parameters:
1639
     - startDate
1640
     - endDate
1641
    """
1642
    self.send_getMovementNonSerializedInventoryByScans(startDate, endDate)
1643
    return self.recv_getMovementNonSerializedInventoryByScans()
6762 amar.kumar 1644
 
6880 amar.kumar 1645
  def send_getMovementNonSerializedInventoryByScans(self, startDate, endDate):
1646
    self._oprot.writeMessageBegin('getMovementNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1647
    args = getMovementNonSerializedInventoryByScans_args()
1648
    args.startDate = startDate
1649
    args.endDate = endDate
1650
    args.write(self._oprot)
1651
    self._oprot.writeMessageEnd()
1652
    self._oprot.trans.flush()
1653
 
1654
  def recv_getMovementNonSerializedInventoryByScans(self, ):
1655
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1656
    if mtype == TMessageType.EXCEPTION:
1657
      x = TApplicationException()
1658
      x.read(self._iprot)
1659
      self._iprot.readMessageEnd()
1660
      raise x
1661
    result = getMovementNonSerializedInventoryByScans_result()
1662
    result.read(self._iprot)
1663
    self._iprot.readMessageEnd()
1664
    if result.success is not None:
1665
      return result.success
1666
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMovementNonSerializedInventoryByScans failed: unknown result");
1667
 
1668
  def getMovementSerializedInventoryByScans(self, startDate, endDate):
1669
    """
10407 amar.kumar 1670
    This returns movement for each serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)
1671
 
6880 amar.kumar 1672
    Parameters:
1673
     - startDate
1674
     - endDate
1675
    """
1676
    self.send_getMovementSerializedInventoryByScans(startDate, endDate)
1677
    return self.recv_getMovementSerializedInventoryByScans()
1678
 
1679
  def send_getMovementSerializedInventoryByScans(self, startDate, endDate):
1680
    self._oprot.writeMessageBegin('getMovementSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1681
    args = getMovementSerializedInventoryByScans_args()
1682
    args.startDate = startDate
1683
    args.endDate = endDate
1684
    args.write(self._oprot)
1685
    self._oprot.writeMessageEnd()
1686
    self._oprot.trans.flush()
1687
 
1688
  def recv_getMovementSerializedInventoryByScans(self, ):
1689
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1690
    if mtype == TMessageType.EXCEPTION:
1691
      x = TApplicationException()
1692
      x.read(self._iprot)
1693
      self._iprot.readMessageEnd()
1694
      raise x
1695
    result = getMovementSerializedInventoryByScans_result()
1696
    result.read(self._iprot)
1697
    self._iprot.readMessageEnd()
1698
    if result.success is not None:
1699
      return result.success
1700
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMovementSerializedInventoryByScans failed: unknown result");
1701
 
7216 amar.kumar 1702
  def getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):
1703
    """
10407 amar.kumar 1704
    This returns movement for each serialized item in the specified window.(Doesn't include Amazon w/h)
1705
 
7216 amar.kumar 1706
    Parameters:
1707
     - startDate
1708
     - endDate
1709
    """
1710
    self.send_getCompleteMovementSerializedInventoryByScans(startDate, endDate)
1711
    return self.recv_getCompleteMovementSerializedInventoryByScans()
1712
 
1713
  def send_getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):
1714
    self._oprot.writeMessageBegin('getCompleteMovementSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1715
    args = getCompleteMovementSerializedInventoryByScans_args()
1716
    args.startDate = startDate
1717
    args.endDate = endDate
1718
    args.write(self._oprot)
1719
    self._oprot.writeMessageEnd()
1720
    self._oprot.trans.flush()
1721
 
1722
  def recv_getCompleteMovementSerializedInventoryByScans(self, ):
1723
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1724
    if mtype == TMessageType.EXCEPTION:
1725
      x = TApplicationException()
1726
      x.read(self._iprot)
1727
      self._iprot.readMessageEnd()
1728
      raise x
1729
    result = getCompleteMovementSerializedInventoryByScans_result()
1730
    result.read(self._iprot)
1731
    self._iprot.readMessageEnd()
1732
    if result.success is not None:
1733
      return result.success
1734
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementSerializedInventoryByScans failed: unknown result");
1735
 
1736
  def getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):
1737
    """
10407 amar.kumar 1738
    This returns movement for each non serialized item in the specified window.(Doesn't include Amazon w/h)
1739
 
7216 amar.kumar 1740
    Parameters:
1741
     - startDate
1742
     - endDate
1743
    """
1744
    self.send_getCompleteMovementNonSerializedInventoryByScans(startDate, endDate)
1745
    return self.recv_getCompleteMovementNonSerializedInventoryByScans()
1746
 
1747
  def send_getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):
1748
    self._oprot.writeMessageBegin('getCompleteMovementNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1749
    args = getCompleteMovementNonSerializedInventoryByScans_args()
1750
    args.startDate = startDate
1751
    args.endDate = endDate
1752
    args.write(self._oprot)
1753
    self._oprot.writeMessageEnd()
1754
    self._oprot.trans.flush()
1755
 
1756
  def recv_getCompleteMovementNonSerializedInventoryByScans(self, ):
1757
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1758
    if mtype == TMessageType.EXCEPTION:
1759
      x = TApplicationException()
1760
      x.read(self._iprot)
1761
      self._iprot.readMessageEnd()
1762
      raise x
1763
    result = getCompleteMovementNonSerializedInventoryByScans_result()
1764
    result.read(self._iprot)
1765
    self._iprot.readMessageEnd()
1766
    if result.success is not None:
1767
      return result.success
1768
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementNonSerializedInventoryByScans failed: unknown result");
1769
 
7190 amar.kumar 1770
  def scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):
1771
    """
1772
    Parameters:
1773
     - orderId
1774
     - freebieItemId
1775
     - freebieWarehouseId
1776
     - scanType
1777
    """
1778
    self.send_scanfreebie(orderId, freebieItemId, freebieWarehouseId, scanType)
1779
    return self.recv_scanfreebie()
6880 amar.kumar 1780
 
7190 amar.kumar 1781
  def send_scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):
1782
    self._oprot.writeMessageBegin('scanfreebie', TMessageType.CALL, self._seqid)
1783
    args = scanfreebie_args()
1784
    args.orderId = orderId
1785
    args.freebieItemId = freebieItemId
1786
    args.freebieWarehouseId = freebieWarehouseId
1787
    args.scanType = scanType
1788
    args.write(self._oprot)
1789
    self._oprot.writeMessageEnd()
1790
    self._oprot.trans.flush()
1791
 
1792
  def recv_scanfreebie(self, ):
1793
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1794
    if mtype == TMessageType.EXCEPTION:
1795
      x = TApplicationException()
1796
      x.read(self._iprot)
1797
      self._iprot.readMessageEnd()
1798
      raise x
1799
    result = scanfreebie_result()
1800
    result.read(self._iprot)
1801
    self._iprot.readMessageEnd()
1802
    if result.success is not None:
1803
      return result.success
1804
    if result.wex is not None:
1805
      raise result.wex
1806
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanfreebie failed: unknown result");
1807
 
7199 amar.kumar 1808
  def reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):
1809
    """
1810
    Parameters:
1811
     - oldOrderId
1812
     - newOrderId
1813
     - freebieItemId
1814
     - scanType
1815
    """
1816
    self.send_reshipfreebie(oldOrderId, newOrderId, freebieItemId, scanType)
1817
    self.recv_reshipfreebie()
7190 amar.kumar 1818
 
7199 amar.kumar 1819
  def send_reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):
1820
    self._oprot.writeMessageBegin('reshipfreebie', TMessageType.CALL, self._seqid)
1821
    args = reshipfreebie_args()
1822
    args.oldOrderId = oldOrderId
1823
    args.newOrderId = newOrderId
1824
    args.freebieItemId = freebieItemId
1825
    args.scanType = scanType
1826
    args.write(self._oprot)
1827
    self._oprot.writeMessageEnd()
1828
    self._oprot.trans.flush()
1829
 
1830
  def recv_reshipfreebie(self, ):
1831
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1832
    if mtype == TMessageType.EXCEPTION:
1833
      x = TApplicationException()
1834
      x.read(self._iprot)
1835
      self._iprot.readMessageEnd()
1836
      raise x
1837
    result = reshipfreebie_result()
1838
    result.read(self._iprot)
1839
    self._iprot.readMessageEnd()
1840
    if result.wex is not None:
1841
      raise result.wex
1842
    return
1843
 
7410 amar.kumar 1844
  def isItemTransferAllowed(self, warehouseId, transferWarehouseId):
1845
    """
1846
    Parameters:
1847
     - warehouseId
1848
     - transferWarehouseId
1849
    """
1850
    self.send_isItemTransferAllowed(warehouseId, transferWarehouseId)
1851
    return self.recv_isItemTransferAllowed()
7199 amar.kumar 1852
 
7410 amar.kumar 1853
  def send_isItemTransferAllowed(self, warehouseId, transferWarehouseId):
1854
    self._oprot.writeMessageBegin('isItemTransferAllowed', TMessageType.CALL, self._seqid)
1855
    args = isItemTransferAllowed_args()
1856
    args.warehouseId = warehouseId
1857
    args.transferWarehouseId = transferWarehouseId
1858
    args.write(self._oprot)
1859
    self._oprot.writeMessageEnd()
1860
    self._oprot.trans.flush()
1861
 
1862
  def recv_isItemTransferAllowed(self, ):
1863
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1864
    if mtype == TMessageType.EXCEPTION:
1865
      x = TApplicationException()
1866
      x.read(self._iprot)
1867
      self._iprot.readMessageEnd()
1868
      raise x
1869
    result = isItemTransferAllowed_result()
1870
    result.read(self._iprot)
1871
    self._iprot.readMessageEnd()
1872
    if result.success is not None:
1873
      return result.success
1874
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isItemTransferAllowed failed: unknown result");
1875
 
1876
  def createTransferLot(self, originWarehouseId, destWarehouseId):
1877
    """
1878
    Parameters:
1879
     - originWarehouseId
1880
     - destWarehouseId
1881
    """
1882
    self.send_createTransferLot(originWarehouseId, destWarehouseId)
1883
    return self.recv_createTransferLot()
1884
 
1885
  def send_createTransferLot(self, originWarehouseId, destWarehouseId):
1886
    self._oprot.writeMessageBegin('createTransferLot', TMessageType.CALL, self._seqid)
1887
    args = createTransferLot_args()
1888
    args.originWarehouseId = originWarehouseId
1889
    args.destWarehouseId = destWarehouseId
1890
    args.write(self._oprot)
1891
    self._oprot.writeMessageEnd()
1892
    self._oprot.trans.flush()
1893
 
1894
  def recv_createTransferLot(self, ):
1895
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1896
    if mtype == TMessageType.EXCEPTION:
1897
      x = TApplicationException()
1898
      x.read(self._iprot)
1899
      self._iprot.readMessageEnd()
1900
      raise x
1901
    result = createTransferLot_result()
1902
    result.read(self._iprot)
1903
    self._iprot.readMessageEnd()
1904
    if result.success is not None:
1905
      return result.success
1906
    if result.wex is not None:
1907
      raise result.wex
1908
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createTransferLot failed: unknown result");
1909
 
1910
  def getTransferLot(self, transferLotId):
1911
    """
1912
    Parameters:
1913
     - transferLotId
1914
    """
1915
    self.send_getTransferLot(transferLotId)
1916
    return self.recv_getTransferLot()
1917
 
1918
  def send_getTransferLot(self, transferLotId):
1919
    self._oprot.writeMessageBegin('getTransferLot', TMessageType.CALL, self._seqid)
1920
    args = getTransferLot_args()
1921
    args.transferLotId = transferLotId
1922
    args.write(self._oprot)
1923
    self._oprot.writeMessageEnd()
1924
    self._oprot.trans.flush()
1925
 
1926
  def recv_getTransferLot(self, ):
1927
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1928
    if mtype == TMessageType.EXCEPTION:
1929
      x = TApplicationException()
1930
      x.read(self._iprot)
1931
      self._iprot.readMessageEnd()
1932
      raise x
1933
    result = getTransferLot_result()
1934
    result.read(self._iprot)
1935
    self._iprot.readMessageEnd()
1936
    if result.success is not None:
1937
      return result.success
1938
    if result.wex is not None:
1939
      raise result.wex
1940
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLot failed: unknown result");
1941
 
1942
  def markTransferLotAsReceived(self, id, remoteTransferRefNumber):
1943
    """
1944
    Parameters:
1945
     - id
1946
     - remoteTransferRefNumber
1947
    """
1948
    self.send_markTransferLotAsReceived(id, remoteTransferRefNumber)
1949
    self.recv_markTransferLotAsReceived()
1950
 
1951
  def send_markTransferLotAsReceived(self, id, remoteTransferRefNumber):
1952
    self._oprot.writeMessageBegin('markTransferLotAsReceived', TMessageType.CALL, self._seqid)
1953
    args = markTransferLotAsReceived_args()
1954
    args.id = id
1955
    args.remoteTransferRefNumber = remoteTransferRefNumber
1956
    args.write(self._oprot)
1957
    self._oprot.writeMessageEnd()
1958
    self._oprot.trans.flush()
1959
 
1960
  def recv_markTransferLotAsReceived(self, ):
1961
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1962
    if mtype == TMessageType.EXCEPTION:
1963
      x = TApplicationException()
1964
      x.read(self._iprot)
1965
      self._iprot.readMessageEnd()
1966
      raise x
1967
    result = markTransferLotAsReceived_result()
1968
    result.read(self._iprot)
1969
    self._iprot.readMessageEnd()
1970
    if result.wex is not None:
1971
      raise result.wex
1972
    return
1973
 
1974
  def getTransferLotsByDate(self, fromDate, toDate):
1975
    """
1976
    Parameters:
1977
     - fromDate
1978
     - toDate
1979
    """
1980
    self.send_getTransferLotsByDate(fromDate, toDate)
1981
    return self.recv_getTransferLotsByDate()
1982
 
1983
  def send_getTransferLotsByDate(self, fromDate, toDate):
1984
    self._oprot.writeMessageBegin('getTransferLotsByDate', TMessageType.CALL, self._seqid)
1985
    args = getTransferLotsByDate_args()
1986
    args.fromDate = fromDate
1987
    args.toDate = toDate
1988
    args.write(self._oprot)
1989
    self._oprot.writeMessageEnd()
1990
    self._oprot.trans.flush()
1991
 
1992
  def recv_getTransferLotsByDate(self, ):
1993
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1994
    if mtype == TMessageType.EXCEPTION:
1995
      x = TApplicationException()
1996
      x.read(self._iprot)
1997
      self._iprot.readMessageEnd()
1998
      raise x
1999
    result = getTransferLotsByDate_result()
2000
    result.read(self._iprot)
2001
    self._iprot.readMessageEnd()
2002
    if result.success is not None:
2003
      return result.success
2004
    if result.wex is not None:
2005
      raise result.wex
2006
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLotsByDate failed: unknown result");
2007
 
2008
  def getAllowedDestinationWarehousesForTransfer(self, warehouseId):
2009
    """
2010
    Parameters:
2011
     - warehouseId
2012
    """
2013
    self.send_getAllowedDestinationWarehousesForTransfer(warehouseId)
2014
    return self.recv_getAllowedDestinationWarehousesForTransfer()
2015
 
2016
  def send_getAllowedDestinationWarehousesForTransfer(self, warehouseId):
2017
    self._oprot.writeMessageBegin('getAllowedDestinationWarehousesForTransfer', TMessageType.CALL, self._seqid)
2018
    args = getAllowedDestinationWarehousesForTransfer_args()
2019
    args.warehouseId = warehouseId
2020
    args.write(self._oprot)
2021
    self._oprot.writeMessageEnd()
2022
    self._oprot.trans.flush()
2023
 
2024
  def recv_getAllowedDestinationWarehousesForTransfer(self, ):
2025
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2026
    if mtype == TMessageType.EXCEPTION:
2027
      x = TApplicationException()
2028
      x.read(self._iprot)
2029
      self._iprot.readMessageEnd()
2030
      raise x
2031
    result = getAllowedDestinationWarehousesForTransfer_result()
2032
    result.read(self._iprot)
2033
    self._iprot.readMessageEnd()
2034
    if result.success is not None:
2035
      return result.success
2036
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllowedDestinationWarehousesForTransfer failed: unknown result");
2037
 
2038
  def getItemsInTransferLot(self, transferLotId):
2039
    """
2040
    Parameters:
2041
     - transferLotId
2042
    """
2043
    self.send_getItemsInTransferLot(transferLotId)
2044
    return self.recv_getItemsInTransferLot()
2045
 
2046
  def send_getItemsInTransferLot(self, transferLotId):
2047
    self._oprot.writeMessageBegin('getItemsInTransferLot', TMessageType.CALL, self._seqid)
2048
    args = getItemsInTransferLot_args()
2049
    args.transferLotId = transferLotId
2050
    args.write(self._oprot)
2051
    self._oprot.writeMessageEnd()
2052
    self._oprot.trans.flush()
2053
 
2054
  def recv_getItemsInTransferLot(self, ):
2055
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2056
    if mtype == TMessageType.EXCEPTION:
2057
      x = TApplicationException()
2058
      x.read(self._iprot)
2059
      self._iprot.readMessageEnd()
2060
      raise x
2061
    result = getItemsInTransferLot_result()
2062
    result.read(self._iprot)
2063
    self._iprot.readMessageEnd()
2064
    if result.success is not None:
2065
      return result.success
2066
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsInTransferLot failed: unknown result");
2067
 
2068
  def markItemsAsReceivedForTransferLot(self, id):
2069
    """
2070
    Parameters:
2071
     - id
2072
    """
2073
    self.send_markItemsAsReceivedForTransferLot(id)
2074
    self.recv_markItemsAsReceivedForTransferLot()
2075
 
2076
  def send_markItemsAsReceivedForTransferLot(self, id):
2077
    self._oprot.writeMessageBegin('markItemsAsReceivedForTransferLot', TMessageType.CALL, self._seqid)
2078
    args = markItemsAsReceivedForTransferLot_args()
2079
    args.id = id
2080
    args.write(self._oprot)
2081
    self._oprot.writeMessageEnd()
2082
    self._oprot.trans.flush()
2083
 
2084
  def recv_markItemsAsReceivedForTransferLot(self, ):
2085
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2086
    if mtype == TMessageType.EXCEPTION:
2087
      x = TApplicationException()
2088
      x.read(self._iprot)
2089
      self._iprot.readMessageEnd()
2090
      raise x
2091
    result = markItemsAsReceivedForTransferLot_result()
2092
    result.read(self._iprot)
2093
    self._iprot.readMessageEnd()
2094
    if result.wex is not None:
2095
      raise result.wex
2096
    return
2097
 
2098
  def updateTransferLotAfterItemReceive(self, id):
2099
    """
2100
    Parameters:
2101
     - id
2102
    """
2103
    self.send_updateTransferLotAfterItemReceive(id)
2104
    return self.recv_updateTransferLotAfterItemReceive()
2105
 
2106
  def send_updateTransferLotAfterItemReceive(self, id):
2107
    self._oprot.writeMessageBegin('updateTransferLotAfterItemReceive', TMessageType.CALL, self._seqid)
2108
    args = updateTransferLotAfterItemReceive_args()
2109
    args.id = id
2110
    args.write(self._oprot)
2111
    self._oprot.writeMessageEnd()
2112
    self._oprot.trans.flush()
2113
 
2114
  def recv_updateTransferLotAfterItemReceive(self, ):
2115
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2116
    if mtype == TMessageType.EXCEPTION:
2117
      x = TApplicationException()
2118
      x.read(self._iprot)
2119
      self._iprot.readMessageEnd()
2120
      raise x
2121
    result = updateTransferLotAfterItemReceive_result()
2122
    result.read(self._iprot)
2123
    self._iprot.readMessageEnd()
2124
    if result.success is not None:
2125
      return result.success
2126
    if result.wex is not None:
2127
      raise result.wex
2128
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTransferLotAfterItemReceive failed: unknown result");
2129
 
7459 amar.kumar 2130
  def scanForTransferOut(self, inventoryItems, type, transferLotId):
7410 amar.kumar 2131
    """
2132
    Parameters:
2133
     - inventoryItems
2134
     - type
2135
     - transferLotId
2136
    """
7459 amar.kumar 2137
    self.send_scanForTransferOut(inventoryItems, type, transferLotId)
2138
    self.recv_scanForTransferOut()
7410 amar.kumar 2139
 
7459 amar.kumar 2140
  def send_scanForTransferOut(self, inventoryItems, type, transferLotId):
2141
    self._oprot.writeMessageBegin('scanForTransferOut', TMessageType.CALL, self._seqid)
2142
    args = scanForTransferOut_args()
7410 amar.kumar 2143
    args.inventoryItems = inventoryItems
2144
    args.type = type
2145
    args.transferLotId = transferLotId
2146
    args.write(self._oprot)
2147
    self._oprot.writeMessageEnd()
2148
    self._oprot.trans.flush()
2149
 
7459 amar.kumar 2150
  def recv_scanForTransferOut(self, ):
7410 amar.kumar 2151
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2152
    if mtype == TMessageType.EXCEPTION:
2153
      x = TApplicationException()
2154
      x.read(self._iprot)
2155
      self._iprot.readMessageEnd()
2156
      raise x
7459 amar.kumar 2157
    result = scanForTransferOut_result()
7410 amar.kumar 2158
    result.read(self._iprot)
2159
    self._iprot.readMessageEnd()
2160
    if result.wex is not None:
2161
      raise result.wex
2162
    return
2163
 
7459 amar.kumar 2164
  def scanForTransferIn(self, inventoryItems, type, transferLotId):
2165
    """
2166
    Parameters:
2167
     - inventoryItems
2168
     - type
2169
     - transferLotId
2170
    """
2171
    self.send_scanForTransferIn(inventoryItems, type, transferLotId)
2172
    self.recv_scanForTransferIn()
7410 amar.kumar 2173
 
7459 amar.kumar 2174
  def send_scanForTransferIn(self, inventoryItems, type, transferLotId):
2175
    self._oprot.writeMessageBegin('scanForTransferIn', TMessageType.CALL, self._seqid)
2176
    args = scanForTransferIn_args()
2177
    args.inventoryItems = inventoryItems
2178
    args.type = type
2179
    args.transferLotId = transferLotId
2180
    args.write(self._oprot)
2181
    self._oprot.writeMessageEnd()
2182
    self._oprot.trans.flush()
2183
 
2184
  def recv_scanForTransferIn(self, ):
2185
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2186
    if mtype == TMessageType.EXCEPTION:
2187
      x = TApplicationException()
2188
      x.read(self._iprot)
2189
      self._iprot.readMessageEnd()
2190
      raise x
2191
    result = scanForTransferIn_result()
2192
    result.read(self._iprot)
2193
    self._iprot.readMessageEnd()
2194
    if result.wex is not None:
2195
      raise result.wex
2196
    return
2197
 
2198
  def scanForOursThirdPartyReceive(self, inventoryItems, id):
2199
    """
2200
    Parameters:
2201
     - inventoryItems
2202
     - id
2203
    """
2204
    self.send_scanForOursThirdPartyReceive(inventoryItems, id)
2205
    self.recv_scanForOursThirdPartyReceive()
2206
 
2207
  def send_scanForOursThirdPartyReceive(self, inventoryItems, id):
2208
    self._oprot.writeMessageBegin('scanForOursThirdPartyReceive', TMessageType.CALL, self._seqid)
2209
    args = scanForOursThirdPartyReceive_args()
2210
    args.inventoryItems = inventoryItems
2211
    args.id = id
2212
    args.write(self._oprot)
2213
    self._oprot.writeMessageEnd()
2214
    self._oprot.trans.flush()
2215
 
2216
  def recv_scanForOursThirdPartyReceive(self, ):
2217
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2218
    if mtype == TMessageType.EXCEPTION:
2219
      x = TApplicationException()
2220
      x.read(self._iprot)
2221
      self._iprot.readMessageEnd()
2222
      raise x
2223
    result = scanForOursThirdPartyReceive_result()
2224
    result.read(self._iprot)
2225
    self._iprot.readMessageEnd()
2226
    if result.wex is not None:
2227
      raise result.wex
2228
    return
2229
 
7574 amar.kumar 2230
  def getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
2231
    """
2232
    Parameters:
2233
     - itemId
2234
     - physicalWarehouseId
2235
    """
2236
    self.send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(itemId, physicalWarehouseId)
2237
    return self.recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse()
7459 amar.kumar 2238
 
7574 amar.kumar 2239
  def send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
2240
    self._oprot.writeMessageBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse', TMessageType.CALL, self._seqid)
2241
    args = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args()
2242
    args.itemId = itemId
2243
    args.physicalWarehouseId = physicalWarehouseId
2244
    args.write(self._oprot)
2245
    self._oprot.writeMessageEnd()
2246
    self._oprot.trans.flush()
2247
 
2248
  def recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, ):
2249
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2250
    if mtype == TMessageType.EXCEPTION:
2251
      x = TApplicationException()
2252
      x.read(self._iprot)
2253
      self._iprot.readMessageEnd()
2254
      raise x
2255
    result = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result()
2256
    result.read(self._iprot)
2257
    self._iprot.readMessageEnd()
2258
    if result.success is not None:
2259
      return result.success
2260
    if result.wex is not None:
2261
      raise result.wex
2262
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse failed: unknown result");
2263
 
7672 rajveer 2264
  def getInTransitInventory(self, originWarehouseId):
2265
    """
2266
    Parameters:
2267
     - originWarehouseId
2268
    """
2269
    self.send_getInTransitInventory(originWarehouseId)
2270
    return self.recv_getInTransitInventory()
7574 amar.kumar 2271
 
7672 rajveer 2272
  def send_getInTransitInventory(self, originWarehouseId):
2273
    self._oprot.writeMessageBegin('getInTransitInventory', TMessageType.CALL, self._seqid)
2274
    args = getInTransitInventory_args()
2275
    args.originWarehouseId = originWarehouseId
2276
    args.write(self._oprot)
2277
    self._oprot.writeMessageEnd()
2278
    self._oprot.trans.flush()
2279
 
2280
  def recv_getInTransitInventory(self, ):
2281
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2282
    if mtype == TMessageType.EXCEPTION:
2283
      x = TApplicationException()
2284
      x.read(self._iprot)
2285
      self._iprot.readMessageEnd()
2286
      raise x
2287
    result = getInTransitInventory_result()
2288
    result.read(self._iprot)
2289
    self._iprot.readMessageEnd()
2290
    if result.success is not None:
2291
      return result.success
2292
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInTransitInventory failed: unknown result");
2293
 
7968 amar.kumar 2294
  def isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
2295
    """
2296
    Parameters:
2297
     - itemId
2298
     - serialNumber
2299
     - warehouseId
2300
    """
2301
    self.send_isItemAvailableForSale(itemId, serialNumber, warehouseId)
2302
    return self.recv_isItemAvailableForSale()
7672 rajveer 2303
 
7968 amar.kumar 2304
  def send_isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
2305
    self._oprot.writeMessageBegin('isItemAvailableForSale', TMessageType.CALL, self._seqid)
2306
    args = isItemAvailableForSale_args()
2307
    args.itemId = itemId
2308
    args.serialNumber = serialNumber
2309
    args.warehouseId = warehouseId
2310
    args.write(self._oprot)
2311
    self._oprot.writeMessageEnd()
2312
    self._oprot.trans.flush()
2313
 
2314
  def recv_isItemAvailableForSale(self, ):
2315
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2316
    if mtype == TMessageType.EXCEPTION:
2317
      x = TApplicationException()
2318
      x.read(self._iprot)
2319
      self._iprot.readMessageEnd()
2320
      raise x
2321
    result = isItemAvailableForSale_result()
2322
    result.read(self._iprot)
2323
    self._iprot.readMessageEnd()
2324
    if result.success is not None:
2325
      return result.success
2326
    if result.wex is not None:
2327
      raise result.wex
2328
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isItemAvailableForSale failed: unknown result");
2329
 
2330
  def getHistoricBadInventoryByScans(self, date):
2331
    """
2332
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
2333
 
2334
    Parameters:
2335
     - date
2336
    """
2337
    self.send_getHistoricBadInventoryByScans(date)
2338
    return self.recv_getHistoricBadInventoryByScans()
2339
 
2340
  def send_getHistoricBadInventoryByScans(self, date):
2341
    self._oprot.writeMessageBegin('getHistoricBadInventoryByScans', TMessageType.CALL, self._seqid)
2342
    args = getHistoricBadInventoryByScans_args()
2343
    args.date = date
2344
    args.write(self._oprot)
2345
    self._oprot.writeMessageEnd()
2346
    self._oprot.trans.flush()
2347
 
2348
  def recv_getHistoricBadInventoryByScans(self, ):
2349
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2350
    if mtype == TMessageType.EXCEPTION:
2351
      x = TApplicationException()
2352
      x.read(self._iprot)
2353
      self._iprot.readMessageEnd()
2354
      raise x
2355
    result = getHistoricBadInventoryByScans_result()
2356
    result.read(self._iprot)
2357
    self._iprot.readMessageEnd()
2358
    if result.success is not None:
2359
      return result.success
2360
    if result.wex is not None:
2361
      raise result.wex
2362
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricBadInventoryByScans failed: unknown result");
2363
 
8717 amar.kumar 2364
  def scanForBadSale(self, serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
8565 amar.kumar 2365
    """
2366
    Parameters:
8717 amar.kumar 2367
     - serialNumber
2368
     - itemNumber
2369
     - itemId
8565 amar.kumar 2370
     - orderId
8717 amar.kumar 2371
     - fulfilmentWarehouseId
8565 amar.kumar 2372
     - quantity
2373
     - billingWarehouseId
2374
    """
8717 amar.kumar 2375
    self.send_scanForBadSale(serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId)
2376
    return self.recv_scanForBadSale()
7968 amar.kumar 2377
 
8717 amar.kumar 2378
  def send_scanForBadSale(self, serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
8565 amar.kumar 2379
    self._oprot.writeMessageBegin('scanForBadSale', TMessageType.CALL, self._seqid)
2380
    args = scanForBadSale_args()
8717 amar.kumar 2381
    args.serialNumber = serialNumber
2382
    args.itemNumber = itemNumber
2383
    args.itemId = itemId
8565 amar.kumar 2384
    args.orderId = orderId
8717 amar.kumar 2385
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 2386
    args.quantity = quantity
2387
    args.billingWarehouseId = billingWarehouseId
2388
    args.write(self._oprot)
2389
    self._oprot.writeMessageEnd()
2390
    self._oprot.trans.flush()
2391
 
2392
  def recv_scanForBadSale(self, ):
2393
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2394
    if mtype == TMessageType.EXCEPTION:
2395
      x = TApplicationException()
2396
      x.read(self._iprot)
2397
      self._iprot.readMessageEnd()
2398
      raise x
2399
    result = scanForBadSale_result()
2400
    result.read(self._iprot)
2401
    self._iprot.readMessageEnd()
8717 amar.kumar 2402
    if result.success is not None:
2403
      return result.success
2404
    if result.wex is not None:
2405
      raise result.wex
2406
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForBadSale failed: unknown result");
8565 amar.kumar 2407
 
10120 manish.sha 2408
  def getTransferLotItemsForMarkReceive(self, transferLotId, scanType):
2409
    """
2410
    Parameters:
2411
     - transferLotId
2412
     - scanType
2413
    """
2414
    self.send_getTransferLotItemsForMarkReceive(transferLotId, scanType)
2415
    return self.recv_getTransferLotItemsForMarkReceive()
8565 amar.kumar 2416
 
10120 manish.sha 2417
  def send_getTransferLotItemsForMarkReceive(self, transferLotId, scanType):
2418
    self._oprot.writeMessageBegin('getTransferLotItemsForMarkReceive', TMessageType.CALL, self._seqid)
2419
    args = getTransferLotItemsForMarkReceive_args()
2420
    args.transferLotId = transferLotId
2421
    args.scanType = scanType
2422
    args.write(self._oprot)
2423
    self._oprot.writeMessageEnd()
2424
    self._oprot.trans.flush()
2425
 
2426
  def recv_getTransferLotItemsForMarkReceive(self, ):
2427
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2428
    if mtype == TMessageType.EXCEPTION:
2429
      x = TApplicationException()
2430
      x.read(self._iprot)
2431
      self._iprot.readMessageEnd()
2432
      raise x
2433
    result = getTransferLotItemsForMarkReceive_result()
2434
    result.read(self._iprot)
2435
    self._iprot.readMessageEnd()
2436
    if result.success is not None:
2437
      return result.success
2438
    if result.wex is not None:
2439
      raise result.wex
2440
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLotItemsForMarkReceive failed: unknown result");
2441
 
2442
  def markItemsAsReceivedForTransferLotPartial(self, inventoryItems, transferLotId):
2443
    """
2444
    Parameters:
2445
     - inventoryItems
2446
     - transferLotId
2447
    """
2448
    self.send_markItemsAsReceivedForTransferLotPartial(inventoryItems, transferLotId)
2449
    self.recv_markItemsAsReceivedForTransferLotPartial()
2450
 
2451
  def send_markItemsAsReceivedForTransferLotPartial(self, inventoryItems, transferLotId):
2452
    self._oprot.writeMessageBegin('markItemsAsReceivedForTransferLotPartial', TMessageType.CALL, self._seqid)
2453
    args = markItemsAsReceivedForTransferLotPartial_args()
2454
    args.inventoryItems = inventoryItems
2455
    args.transferLotId = transferLotId
2456
    args.write(self._oprot)
2457
    self._oprot.writeMessageEnd()
2458
    self._oprot.trans.flush()
2459
 
2460
  def recv_markItemsAsReceivedForTransferLotPartial(self, ):
2461
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2462
    if mtype == TMessageType.EXCEPTION:
2463
      x = TApplicationException()
2464
      x.read(self._iprot)
2465
      self._iprot.readMessageEnd()
2466
      raise x
2467
    result = markItemsAsReceivedForTransferLotPartial_result()
2468
    result.read(self._iprot)
2469
    self._iprot.readMessageEnd()
2470
    if result.wex is not None:
2471
      raise result.wex
2472
    return
2473
 
2474
  def markTransferLotAsReceivedPartial(self, id, remoteTransferRefNumber):
2475
    """
2476
    Parameters:
2477
     - id
2478
     - remoteTransferRefNumber
2479
    """
2480
    self.send_markTransferLotAsReceivedPartial(id, remoteTransferRefNumber)
2481
    self.recv_markTransferLotAsReceivedPartial()
2482
 
2483
  def send_markTransferLotAsReceivedPartial(self, id, remoteTransferRefNumber):
2484
    self._oprot.writeMessageBegin('markTransferLotAsReceivedPartial', TMessageType.CALL, self._seqid)
2485
    args = markTransferLotAsReceivedPartial_args()
2486
    args.id = id
2487
    args.remoteTransferRefNumber = remoteTransferRefNumber
2488
    args.write(self._oprot)
2489
    self._oprot.writeMessageEnd()
2490
    self._oprot.trans.flush()
2491
 
2492
  def recv_markTransferLotAsReceivedPartial(self, ):
2493
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2494
    if mtype == TMessageType.EXCEPTION:
2495
      x = TApplicationException()
2496
      x.read(self._iprot)
2497
      self._iprot.readMessageEnd()
2498
      raise x
2499
    result = markTransferLotAsReceivedPartial_result()
2500
    result.read(self._iprot)
2501
    self._iprot.readMessageEnd()
2502
    if result.wex is not None:
2503
      raise result.wex
2504
    return
2505
 
10690 manish.sha 2506
  def getInventoryItemScannedInForPO(self, itemId, purchaseIds):
2507
    """
2508
    Parameters:
2509
     - itemId
2510
     - purchaseIds
2511
    """
2512
    self.send_getInventoryItemScannedInForPO(itemId, purchaseIds)
2513
    return self.recv_getInventoryItemScannedInForPO()
10120 manish.sha 2514
 
10690 manish.sha 2515
  def send_getInventoryItemScannedInForPO(self, itemId, purchaseIds):
2516
    self._oprot.writeMessageBegin('getInventoryItemScannedInForPO', TMessageType.CALL, self._seqid)
2517
    args = getInventoryItemScannedInForPO_args()
2518
    args.itemId = itemId
2519
    args.purchaseIds = purchaseIds
2520
    args.write(self._oprot)
2521
    self._oprot.writeMessageEnd()
2522
    self._oprot.trans.flush()
2523
 
2524
  def recv_getInventoryItemScannedInForPO(self, ):
2525
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2526
    if mtype == TMessageType.EXCEPTION:
2527
      x = TApplicationException()
2528
      x.read(self._iprot)
2529
      self._iprot.readMessageEnd()
2530
      raise x
2531
    result = getInventoryItemScannedInForPO_result()
2532
    result.read(self._iprot)
2533
    self._iprot.readMessageEnd()
2534
    if result.success is not None:
2535
      return result.success
2536
    if result.wex is not None:
2537
      raise result.wex
2538
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemScannedInForPO failed: unknown result");
2539
 
2540
  def getAmazonTransferredSkuDetails(self, itemIds):
2541
    """
2542
    Parameters:
2543
     - itemIds
2544
    """
2545
    self.send_getAmazonTransferredSkuDetails(itemIds)
2546
    return self.recv_getAmazonTransferredSkuDetails()
2547
 
2548
  def send_getAmazonTransferredSkuDetails(self, itemIds):
2549
    self._oprot.writeMessageBegin('getAmazonTransferredSkuDetails', TMessageType.CALL, self._seqid)
2550
    args = getAmazonTransferredSkuDetails_args()
2551
    args.itemIds = itemIds
2552
    args.write(self._oprot)
2553
    self._oprot.writeMessageEnd()
2554
    self._oprot.trans.flush()
2555
 
2556
  def recv_getAmazonTransferredSkuDetails(self, ):
2557
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2558
    if mtype == TMessageType.EXCEPTION:
2559
      x = TApplicationException()
2560
      x.read(self._iprot)
2561
      self._iprot.readMessageEnd()
2562
      raise x
2563
    result = getAmazonTransferredSkuDetails_result()
2564
    result.read(self._iprot)
2565
    self._iprot.readMessageEnd()
2566
    if result.success is not None:
2567
      return result.success
2568
    if result.wex is not None:
2569
      raise result.wex
2570
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonTransferredSkuDetails failed: unknown result");
2571
 
2572
  def getScansforPurchase(self, purchaseId, scanType):
2573
    """
2574
    Parameters:
2575
     - purchaseId
2576
     - scanType
2577
    """
2578
    self.send_getScansforPurchase(purchaseId, scanType)
2579
    return self.recv_getScansforPurchase()
2580
 
2581
  def send_getScansforPurchase(self, purchaseId, scanType):
2582
    self._oprot.writeMessageBegin('getScansforPurchase', TMessageType.CALL, self._seqid)
2583
    args = getScansforPurchase_args()
2584
    args.purchaseId = purchaseId
2585
    args.scanType = scanType
2586
    args.write(self._oprot)
2587
    self._oprot.writeMessageEnd()
2588
    self._oprot.trans.flush()
2589
 
2590
  def recv_getScansforPurchase(self, ):
2591
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2592
    if mtype == TMessageType.EXCEPTION:
2593
      x = TApplicationException()
2594
      x.read(self._iprot)
2595
      self._iprot.readMessageEnd()
2596
      raise x
2597
    result = getScansforPurchase_result()
2598
    result.read(self._iprot)
2599
    self._iprot.readMessageEnd()
2600
    if result.success is not None:
2601
      return result.success
2602
    if result.wex is not None:
2603
      raise result.wex
2604
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScansforPurchase failed: unknown result");
2605
 
10864 manish.sha 2606
  def getCurrentBadQuantityForItem(self, itemId, currentWarehouseId, physicalWarehouseId):
2607
    """
2608
    Parameters:
2609
     - itemId
2610
     - currentWarehouseId
2611
     - physicalWarehouseId
2612
    """
2613
    self.send_getCurrentBadQuantityForItem(itemId, currentWarehouseId, physicalWarehouseId)
2614
    return self.recv_getCurrentBadQuantityForItem()
10690 manish.sha 2615
 
10864 manish.sha 2616
  def send_getCurrentBadQuantityForItem(self, itemId, currentWarehouseId, physicalWarehouseId):
2617
    self._oprot.writeMessageBegin('getCurrentBadQuantityForItem', TMessageType.CALL, self._seqid)
2618
    args = getCurrentBadQuantityForItem_args()
2619
    args.itemId = itemId
2620
    args.currentWarehouseId = currentWarehouseId
2621
    args.physicalWarehouseId = physicalWarehouseId
2622
    args.write(self._oprot)
2623
    self._oprot.writeMessageEnd()
2624
    self._oprot.trans.flush()
2625
 
2626
  def recv_getCurrentBadQuantityForItem(self, ):
2627
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2628
    if mtype == TMessageType.EXCEPTION:
2629
      x = TApplicationException()
2630
      x.read(self._iprot)
2631
      self._iprot.readMessageEnd()
2632
      raise x
2633
    result = getCurrentBadQuantityForItem_result()
2634
    result.read(self._iprot)
2635
    self._iprot.readMessageEnd()
2636
    if result.success is not None:
2637
      return result.success
2638
    if result.wex is not None:
2639
      raise result.wex
2640
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentBadQuantityForItem failed: unknown result");
2641
 
2642
  def scanForBadPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
2643
    """
2644
    Parameters:
2645
     - saleReturnItems
2646
     - vendorId
2647
     - billingWarehouseId
2648
    """
2649
    self.send_scanForBadPurchaseReturn(saleReturnItems, vendorId, billingWarehouseId)
2650
    return self.recv_scanForBadPurchaseReturn()
2651
 
2652
  def send_scanForBadPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
2653
    self._oprot.writeMessageBegin('scanForBadPurchaseReturn', TMessageType.CALL, self._seqid)
2654
    args = scanForBadPurchaseReturn_args()
2655
    args.saleReturnItems = saleReturnItems
2656
    args.vendorId = vendorId
2657
    args.billingWarehouseId = billingWarehouseId
2658
    args.write(self._oprot)
2659
    self._oprot.writeMessageEnd()
2660
    self._oprot.trans.flush()
2661
 
2662
  def recv_scanForBadPurchaseReturn(self, ):
2663
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2664
    if mtype == TMessageType.EXCEPTION:
2665
      x = TApplicationException()
2666
      x.read(self._iprot)
2667
      self._iprot.readMessageEnd()
2668
      raise x
2669
    result = scanForBadPurchaseReturn_result()
2670
    result.read(self._iprot)
2671
    self._iprot.readMessageEnd()
2672
    if result.success is not None:
2673
      return result.success
2674
    if result.ex is not None:
2675
      raise result.ex
2676
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForBadPurchaseReturn failed: unknown result");
2677
 
13504 manish.sha 2678
  def getItemsInPurchaseReturn(self, purchaseReturnId, type, returnTime):
10864 manish.sha 2679
    """
2680
    Parameters:
2681
     - purchaseReturnId
11751 manish.sha 2682
     - type
13504 manish.sha 2683
     - returnTime
10864 manish.sha 2684
    """
13504 manish.sha 2685
    self.send_getItemsInPurchaseReturn(purchaseReturnId, type, returnTime)
10864 manish.sha 2686
    return self.recv_getItemsInPurchaseReturn()
2687
 
13504 manish.sha 2688
  def send_getItemsInPurchaseReturn(self, purchaseReturnId, type, returnTime):
10864 manish.sha 2689
    self._oprot.writeMessageBegin('getItemsInPurchaseReturn', TMessageType.CALL, self._seqid)
2690
    args = getItemsInPurchaseReturn_args()
2691
    args.purchaseReturnId = purchaseReturnId
11751 manish.sha 2692
    args.type = type
13504 manish.sha 2693
    args.returnTime = returnTime
10864 manish.sha 2694
    args.write(self._oprot)
2695
    self._oprot.writeMessageEnd()
2696
    self._oprot.trans.flush()
2697
 
2698
  def recv_getItemsInPurchaseReturn(self, ):
2699
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2700
    if mtype == TMessageType.EXCEPTION:
2701
      x = TApplicationException()
2702
      x.read(self._iprot)
2703
      self._iprot.readMessageEnd()
2704
      raise x
2705
    result = getItemsInPurchaseReturn_result()
2706
    result.read(self._iprot)
2707
    self._iprot.readMessageEnd()
2708
    if result.success is not None:
2709
      return result.success
2710
    if result.ex is not None:
2711
      raise result.ex
2712
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsInPurchaseReturn failed: unknown result");
2713
 
10886 manish.sha 2714
  def getScansForInventoryItem(self, inventoryItemId, type):
2715
    """
2716
    Parameters:
2717
     - inventoryItemId
2718
     - type
2719
    """
2720
    self.send_getScansForInventoryItem(inventoryItemId, type)
2721
    return self.recv_getScansForInventoryItem()
10864 manish.sha 2722
 
10886 manish.sha 2723
  def send_getScansForInventoryItem(self, inventoryItemId, type):
2724
    self._oprot.writeMessageBegin('getScansForInventoryItem', TMessageType.CALL, self._seqid)
2725
    args = getScansForInventoryItem_args()
2726
    args.inventoryItemId = inventoryItemId
2727
    args.type = type
2728
    args.write(self._oprot)
2729
    self._oprot.writeMessageEnd()
2730
    self._oprot.trans.flush()
2731
 
2732
  def recv_getScansForInventoryItem(self, ):
2733
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2734
    if mtype == TMessageType.EXCEPTION:
2735
      x = TApplicationException()
2736
      x.read(self._iprot)
2737
      self._iprot.readMessageEnd()
2738
      raise x
2739
    result = getScansForInventoryItem_result()
2740
    result.read(self._iprot)
2741
    self._iprot.readMessageEnd()
2742
    if result.success is not None:
2743
      return result.success
2744
    if result.ex is not None:
2745
      raise result.ex
2746
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScansForInventoryItem failed: unknown result");
2747
 
12531 manish.sha 2748
  def checkGrnImeiStatus(self, imeiNos):
2749
    """
2750
    Parameters:
2751
     - imeiNos
2752
    """
2753
    self.send_checkGrnImeiStatus(imeiNos)
2754
    return self.recv_checkGrnImeiStatus()
10886 manish.sha 2755
 
12531 manish.sha 2756
  def send_checkGrnImeiStatus(self, imeiNos):
2757
    self._oprot.writeMessageBegin('checkGrnImeiStatus', TMessageType.CALL, self._seqid)
2758
    args = checkGrnImeiStatus_args()
2759
    args.imeiNos = imeiNos
2760
    args.write(self._oprot)
2761
    self._oprot.writeMessageEnd()
2762
    self._oprot.trans.flush()
2763
 
2764
  def recv_checkGrnImeiStatus(self, ):
2765
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2766
    if mtype == TMessageType.EXCEPTION:
2767
      x = TApplicationException()
2768
      x.read(self._iprot)
2769
      self._iprot.readMessageEnd()
2770
      raise x
2771
    result = checkGrnImeiStatus_result()
2772
    result.read(self._iprot)
2773
    self._iprot.readMessageEnd()
2774
    if result.success is not None:
2775
      return result.success
2776
    if result.ex is not None:
2777
      raise result.ex
2778
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkGrnImeiStatus failed: unknown result");
2779
 
12800 manish.sha 2780
  def getInventoryAgeConsideredItems(self, itemId):
2781
    """
2782
    Parameters:
2783
     - itemId
2784
    """
2785
    self.send_getInventoryAgeConsideredItems(itemId)
2786
    return self.recv_getInventoryAgeConsideredItems()
12531 manish.sha 2787
 
12800 manish.sha 2788
  def send_getInventoryAgeConsideredItems(self, itemId):
2789
    self._oprot.writeMessageBegin('getInventoryAgeConsideredItems', TMessageType.CALL, self._seqid)
2790
    args = getInventoryAgeConsideredItems_args()
2791
    args.itemId = itemId
2792
    args.write(self._oprot)
2793
    self._oprot.writeMessageEnd()
2794
    self._oprot.trans.flush()
2795
 
2796
  def recv_getInventoryAgeConsideredItems(self, ):
2797
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2798
    if mtype == TMessageType.EXCEPTION:
2799
      x = TApplicationException()
2800
      x.read(self._iprot)
2801
      self._iprot.readMessageEnd()
2802
      raise x
2803
    result = getInventoryAgeConsideredItems_result()
2804
    result.read(self._iprot)
2805
    self._iprot.readMessageEnd()
2806
    if result.success is not None:
2807
      return result.success
2808
    if result.ex is not None:
2809
      raise result.ex
2810
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryAgeConsideredItems failed: unknown result");
2811
 
13529 manish.sha 2812
  def getCompleteMovementForThirdPartyWarehouse(self, startDate, endDate):
2813
    """
2814
    Parameters:
2815
     - startDate
2816
     - endDate
2817
    """
2818
    self.send_getCompleteMovementForThirdPartyWarehouse(startDate, endDate)
2819
    return self.recv_getCompleteMovementForThirdPartyWarehouse()
12800 manish.sha 2820
 
13529 manish.sha 2821
  def send_getCompleteMovementForThirdPartyWarehouse(self, startDate, endDate):
2822
    self._oprot.writeMessageBegin('getCompleteMovementForThirdPartyWarehouse', TMessageType.CALL, self._seqid)
2823
    args = getCompleteMovementForThirdPartyWarehouse_args()
2824
    args.startDate = startDate
2825
    args.endDate = endDate
2826
    args.write(self._oprot)
2827
    self._oprot.writeMessageEnd()
2828
    self._oprot.trans.flush()
2829
 
2830
  def recv_getCompleteMovementForThirdPartyWarehouse(self, ):
2831
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2832
    if mtype == TMessageType.EXCEPTION:
2833
      x = TApplicationException()
2834
      x.read(self._iprot)
2835
      self._iprot.readMessageEnd()
2836
      raise x
2837
    result = getCompleteMovementForThirdPartyWarehouse_result()
2838
    result.read(self._iprot)
2839
    self._iprot.readMessageEnd()
2840
    if result.success is not None:
2841
      return result.success
2842
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementForThirdPartyWarehouse failed: unknown result");
2843
 
2844
 
3376 rajveer 2845
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2821 chandransh 2846
  def __init__(self, handler):
3376 rajveer 2847
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
4501 mandeep.dh 2848
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
5361 mandeep.dh 2849
    self._processMap["getNonSeralizedInventoryItem"] = Processor.process_getNonSeralizedInventoryItem
4501 mandeep.dh 2850
    self._processMap["scan"] = Processor.process_scan
10489 amar.kumar 2851
    self._processMap["genericScan"] = Processor.process_genericScan
4501 mandeep.dh 2852
    self._processMap["scanSerializedItemForOrder"] = Processor.process_scanSerializedItemForOrder
2853
    self._processMap["scanForOrder"] = Processor.process_scanForOrder
2854
    self._processMap["createItemNumberMapping"] = Processor.process_createItemNumberMapping
4620 amit.gupta 2855
    self._processMap["getItemNumbers"] = Processor.process_getItemNumbers
5110 mandeep.dh 2856
    self._processMap["getItemIds"] = Processor.process_getItemIds
5185 mandeep.dh 2857
    self._processMap["getInventoryItemsFromLastScanType"] = Processor.process_getInventoryItemsFromLastScanType
2858
    self._processMap["getInventoryItemFromId"] = Processor.process_getInventoryItemFromId
5372 mandeep.dh 2859
    self._processMap["getPurchaseScans"] = Processor.process_getPurchaseScans
7216 amar.kumar 2860
    self._processMap["getPurchaseScansByGrnDate"] = Processor.process_getPurchaseScansByGrnDate
10407 amar.kumar 2861
    self._processMap["getEmptyGrnsByDate"] = Processor.process_getEmptyGrnsByDate
5496 mandeep.dh 2862
    self._processMap["fetchScansPerInvoiceNumber"] = Processor.process_fetchScansPerInvoiceNumber
5620 mandeep.dh 2863
    self._processMap["getInventoryItemFromOrder"] = Processor.process_getInventoryItemFromOrder
5711 mandeep.dh 2864
    self._processMap["getInventoryAge"] = Processor.process_getInventoryAge
6361 rajveer 2865
    self._processMap["getInventoryScansForItem"] = Processor.process_getInventoryScansForItem
2866
    self._processMap["getScanRecordsForSerialNumber"] = Processor.process_getScanRecordsForSerialNumber
6467 amar.kumar 2867
    self._processMap["scanForPurchaseReturn"] = Processor.process_scanForPurchaseReturn
6630 amar.kumar 2868
    self._processMap["scanForLostItem"] = Processor.process_scanForLostItem
2869
    self._processMap["getCurrentSerializedInventoryByScans"] = Processor.process_getCurrentSerializedInventoryByScans
2870
    self._processMap["getCurrentNonSerializedInventoryByScans"] = Processor.process_getCurrentNonSerializedInventoryByScans
6762 amar.kumar 2871
    self._processMap["getHistoricSerializedInventoryByScans"] = Processor.process_getHistoricSerializedInventoryByScans
2872
    self._processMap["getHistoricNonSerializedInventoryByScans"] = Processor.process_getHistoricNonSerializedInventoryByScans
10407 amar.kumar 2873
    self._processMap["getOurHistoricSerializedInventoryByScans"] = Processor.process_getOurHistoricSerializedInventoryByScans
2874
    self._processMap["getOurHistoricNonSerializedInventoryByScans"] = Processor.process_getOurHistoricNonSerializedInventoryByScans
6762 amar.kumar 2875
    self._processMap["scanForOursExternalSale"] = Processor.process_scanForOursExternalSale
2876
    self._processMap["scanForOursExternalSaleReturn"] = Processor.process_scanForOursExternalSaleReturn
6880 amar.kumar 2877
    self._processMap["getMovementNonSerializedInventoryByScans"] = Processor.process_getMovementNonSerializedInventoryByScans
2878
    self._processMap["getMovementSerializedInventoryByScans"] = Processor.process_getMovementSerializedInventoryByScans
7216 amar.kumar 2879
    self._processMap["getCompleteMovementSerializedInventoryByScans"] = Processor.process_getCompleteMovementSerializedInventoryByScans
2880
    self._processMap["getCompleteMovementNonSerializedInventoryByScans"] = Processor.process_getCompleteMovementNonSerializedInventoryByScans
7190 amar.kumar 2881
    self._processMap["scanfreebie"] = Processor.process_scanfreebie
7199 amar.kumar 2882
    self._processMap["reshipfreebie"] = Processor.process_reshipfreebie
7410 amar.kumar 2883
    self._processMap["isItemTransferAllowed"] = Processor.process_isItemTransferAllowed
2884
    self._processMap["createTransferLot"] = Processor.process_createTransferLot
2885
    self._processMap["getTransferLot"] = Processor.process_getTransferLot
2886
    self._processMap["markTransferLotAsReceived"] = Processor.process_markTransferLotAsReceived
2887
    self._processMap["getTransferLotsByDate"] = Processor.process_getTransferLotsByDate
2888
    self._processMap["getAllowedDestinationWarehousesForTransfer"] = Processor.process_getAllowedDestinationWarehousesForTransfer
2889
    self._processMap["getItemsInTransferLot"] = Processor.process_getItemsInTransferLot
2890
    self._processMap["markItemsAsReceivedForTransferLot"] = Processor.process_markItemsAsReceivedForTransferLot
2891
    self._processMap["updateTransferLotAfterItemReceive"] = Processor.process_updateTransferLotAfterItemReceive
7459 amar.kumar 2892
    self._processMap["scanForTransferOut"] = Processor.process_scanForTransferOut
2893
    self._processMap["scanForTransferIn"] = Processor.process_scanForTransferIn
2894
    self._processMap["scanForOursThirdPartyReceive"] = Processor.process_scanForOursThirdPartyReceive
7574 amar.kumar 2895
    self._processMap["getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse"] = Processor.process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse
7672 rajveer 2896
    self._processMap["getInTransitInventory"] = Processor.process_getInTransitInventory
7968 amar.kumar 2897
    self._processMap["isItemAvailableForSale"] = Processor.process_isItemAvailableForSale
2898
    self._processMap["getHistoricBadInventoryByScans"] = Processor.process_getHistoricBadInventoryByScans
8565 amar.kumar 2899
    self._processMap["scanForBadSale"] = Processor.process_scanForBadSale
10120 manish.sha 2900
    self._processMap["getTransferLotItemsForMarkReceive"] = Processor.process_getTransferLotItemsForMarkReceive
2901
    self._processMap["markItemsAsReceivedForTransferLotPartial"] = Processor.process_markItemsAsReceivedForTransferLotPartial
2902
    self._processMap["markTransferLotAsReceivedPartial"] = Processor.process_markTransferLotAsReceivedPartial
10690 manish.sha 2903
    self._processMap["getInventoryItemScannedInForPO"] = Processor.process_getInventoryItemScannedInForPO
2904
    self._processMap["getAmazonTransferredSkuDetails"] = Processor.process_getAmazonTransferredSkuDetails
2905
    self._processMap["getScansforPurchase"] = Processor.process_getScansforPurchase
10864 manish.sha 2906
    self._processMap["getCurrentBadQuantityForItem"] = Processor.process_getCurrentBadQuantityForItem
2907
    self._processMap["scanForBadPurchaseReturn"] = Processor.process_scanForBadPurchaseReturn
2908
    self._processMap["getItemsInPurchaseReturn"] = Processor.process_getItemsInPurchaseReturn
10886 manish.sha 2909
    self._processMap["getScansForInventoryItem"] = Processor.process_getScansForInventoryItem
12531 manish.sha 2910
    self._processMap["checkGrnImeiStatus"] = Processor.process_checkGrnImeiStatus
12800 manish.sha 2911
    self._processMap["getInventoryAgeConsideredItems"] = Processor.process_getInventoryAgeConsideredItems
13529 manish.sha 2912
    self._processMap["getCompleteMovementForThirdPartyWarehouse"] = Processor.process_getCompleteMovementForThirdPartyWarehouse
2821 chandransh 2913
 
2914
  def process(self, iprot, oprot):
2915
    (name, type, seqid) = iprot.readMessageBegin()
2916
    if name not in self._processMap:
2917
      iprot.skip(TType.STRUCT)
2918
      iprot.readMessageEnd()
2919
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2920
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2921
      x.write(oprot)
2922
      oprot.writeMessageEnd()
2923
      oprot.trans.flush()
2924
      return
2925
    else:
2926
      self._processMap[name](self, seqid, iprot, oprot)
2927
    return True
2928
 
4501 mandeep.dh 2929
  def process_getInventoryItem(self, seqid, iprot, oprot):
2930
    args = getInventoryItem_args()
2832 chandransh 2931
    args.read(iprot)
2932
    iprot.readMessageEnd()
4501 mandeep.dh 2933
    result = getInventoryItem_result()
4541 mandeep.dh 2934
    try:
2935
      result.success = self._handler.getInventoryItem(args.serialNumber)
2936
    except WarehouseServiceException, wex:
2937
      result.wex = wex
4501 mandeep.dh 2938
    oprot.writeMessageBegin("getInventoryItem", TMessageType.REPLY, seqid)
2832 chandransh 2939
    result.write(oprot)
2940
    oprot.writeMessageEnd()
2941
    oprot.trans.flush()
2942
 
5361 mandeep.dh 2943
  def process_getNonSeralizedInventoryItem(self, seqid, iprot, oprot):
2944
    args = getNonSeralizedInventoryItem_args()
2821 chandransh 2945
    args.read(iprot)
2946
    iprot.readMessageEnd()
5361 mandeep.dh 2947
    result = getNonSeralizedInventoryItem_result()
2948
    try:
8565 amar.kumar 2949
      result.success = self._handler.getNonSeralizedInventoryItem(args.itemNumber, args.itemId, args.fulfilmentWarehouseId, args.billingWarehouseId)
5361 mandeep.dh 2950
    except WarehouseServiceException, wex:
2951
      result.wex = wex
2952
    oprot.writeMessageBegin("getNonSeralizedInventoryItem", TMessageType.REPLY, seqid)
2821 chandransh 2953
    result.write(oprot)
2954
    oprot.writeMessageEnd()
2955
    oprot.trans.flush()
2956
 
4501 mandeep.dh 2957
  def process_scan(self, seqid, iprot, oprot):
2958
    args = scan_args()
3383 chandransh 2959
    args.read(iprot)
2960
    iprot.readMessageEnd()
4501 mandeep.dh 2961
    result = scan_result()
3383 chandransh 2962
    try:
7410 amar.kumar 2963
      self._handler.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId, args.transferLotId)
3383 chandransh 2964
    except WarehouseServiceException, wex:
2965
      result.wex = wex
4501 mandeep.dh 2966
    oprot.writeMessageBegin("scan", TMessageType.REPLY, seqid)
3383 chandransh 2967
    result.write(oprot)
2968
    oprot.writeMessageEnd()
2969
    oprot.trans.flush()
2970
 
10489 amar.kumar 2971
  def process_genericScan(self, seqid, iprot, oprot):
2972
    args = genericScan_args()
2973
    args.read(iprot)
2974
    iprot.readMessageEnd()
2975
    result = genericScan_result()
2976
    try:
2977
      self._handler.genericScan(args.inventoryItem, args.scan)
2978
    except WarehouseServiceException, wex:
2979
      result.wex = wex
2980
    oprot.writeMessageBegin("genericScan", TMessageType.REPLY, seqid)
2981
    result.write(oprot)
2982
    oprot.writeMessageEnd()
2983
    oprot.trans.flush()
2984
 
4501 mandeep.dh 2985
  def process_scanSerializedItemForOrder(self, seqid, iprot, oprot):
2986
    args = scanSerializedItemForOrder_args()
2821 chandransh 2987
    args.read(iprot)
2988
    iprot.readMessageEnd()
4501 mandeep.dh 2989
    result = scanSerializedItemForOrder_result()
2821 chandransh 2990
    try:
5110 mandeep.dh 2991
      result.success = self._handler.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId)
2821 chandransh 2992
    except WarehouseServiceException, wex:
2993
      result.wex = wex
4501 mandeep.dh 2994
    oprot.writeMessageBegin("scanSerializedItemForOrder", TMessageType.REPLY, seqid)
2821 chandransh 2995
    result.write(oprot)
2996
    oprot.writeMessageEnd()
2997
    oprot.trans.flush()
2998
 
4501 mandeep.dh 2999
  def process_scanForOrder(self, seqid, iprot, oprot):
3000
    args = scanForOrder_args()
2821 chandransh 3001
    args.read(iprot)
3002
    iprot.readMessageEnd()
4501 mandeep.dh 3003
    result = scanForOrder_result()
2821 chandransh 3004
    try:
5361 mandeep.dh 3005
      result.success = self._handler.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId)
2821 chandransh 3006
    except WarehouseServiceException, wex:
3007
      result.wex = wex
4501 mandeep.dh 3008
    oprot.writeMessageBegin("scanForOrder", TMessageType.REPLY, seqid)
2821 chandransh 3009
    result.write(oprot)
3010
    oprot.writeMessageEnd()
3011
    oprot.trans.flush()
3012
 
4501 mandeep.dh 3013
  def process_createItemNumberMapping(self, seqid, iprot, oprot):
3014
    args = createItemNumberMapping_args()
3015
    args.read(iprot)
3016
    iprot.readMessageEnd()
3017
    result = createItemNumberMapping_result()
3018
    self._handler.createItemNumberMapping(args.itemNumber, args.itemId)
3019
    oprot.writeMessageBegin("createItemNumberMapping", TMessageType.REPLY, seqid)
3020
    result.write(oprot)
3021
    oprot.writeMessageEnd()
3022
    oprot.trans.flush()
2821 chandransh 3023
 
4620 amit.gupta 3024
  def process_getItemNumbers(self, seqid, iprot, oprot):
3025
    args = getItemNumbers_args()
3026
    args.read(iprot)
3027
    iprot.readMessageEnd()
3028
    result = getItemNumbers_result()
3029
    result.success = self._handler.getItemNumbers(args.itemId)
3030
    oprot.writeMessageBegin("getItemNumbers", TMessageType.REPLY, seqid)
3031
    result.write(oprot)
3032
    oprot.writeMessageEnd()
3033
    oprot.trans.flush()
4501 mandeep.dh 3034
 
5110 mandeep.dh 3035
  def process_getItemIds(self, seqid, iprot, oprot):
3036
    args = getItemIds_args()
3037
    args.read(iprot)
3038
    iprot.readMessageEnd()
3039
    result = getItemIds_result()
3040
    result.success = self._handler.getItemIds(args.itemNumber)
3041
    oprot.writeMessageBegin("getItemIds", TMessageType.REPLY, seqid)
3042
    result.write(oprot)
3043
    oprot.writeMessageEnd()
3044
    oprot.trans.flush()
4620 amit.gupta 3045
 
5185 mandeep.dh 3046
  def process_getInventoryItemsFromLastScanType(self, seqid, iprot, oprot):
3047
    args = getInventoryItemsFromLastScanType_args()
3048
    args.read(iprot)
3049
    iprot.readMessageEnd()
3050
    result = getInventoryItemsFromLastScanType_result()
3051
    try:
3052
      result.success = self._handler.getInventoryItemsFromLastScanType(args.lastScanType)
3053
    except WarehouseServiceException, wex:
3054
      result.wex = wex
3055
    oprot.writeMessageBegin("getInventoryItemsFromLastScanType", TMessageType.REPLY, seqid)
3056
    result.write(oprot)
3057
    oprot.writeMessageEnd()
3058
    oprot.trans.flush()
5110 mandeep.dh 3059
 
5185 mandeep.dh 3060
  def process_getInventoryItemFromId(self, seqid, iprot, oprot):
3061
    args = getInventoryItemFromId_args()
3062
    args.read(iprot)
3063
    iprot.readMessageEnd()
3064
    result = getInventoryItemFromId_result()
3065
    try:
3066
      result.success = self._handler.getInventoryItemFromId(args.inventoryItemId)
3067
    except WarehouseServiceException, wex:
3068
      result.wex = wex
3069
    oprot.writeMessageBegin("getInventoryItemFromId", TMessageType.REPLY, seqid)
3070
    result.write(oprot)
3071
    oprot.writeMessageEnd()
3072
    oprot.trans.flush()
3073
 
5372 mandeep.dh 3074
  def process_getPurchaseScans(self, seqid, iprot, oprot):
3075
    args = getPurchaseScans_args()
3076
    args.read(iprot)
3077
    iprot.readMessageEnd()
3078
    result = getPurchaseScans_result()
3079
    result.success = self._handler.getPurchaseScans(args.startDate, args.endDate)
3080
    oprot.writeMessageBegin("getPurchaseScans", TMessageType.REPLY, seqid)
3081
    result.write(oprot)
3082
    oprot.writeMessageEnd()
3083
    oprot.trans.flush()
5185 mandeep.dh 3084
 
7216 amar.kumar 3085
  def process_getPurchaseScansByGrnDate(self, seqid, iprot, oprot):
3086
    args = getPurchaseScansByGrnDate_args()
3087
    args.read(iprot)
3088
    iprot.readMessageEnd()
3089
    result = getPurchaseScansByGrnDate_result()
3090
    result.success = self._handler.getPurchaseScansByGrnDate(args.startDate, args.endDate)
3091
    oprot.writeMessageBegin("getPurchaseScansByGrnDate", TMessageType.REPLY, seqid)
3092
    result.write(oprot)
3093
    oprot.writeMessageEnd()
3094
    oprot.trans.flush()
3095
 
10407 amar.kumar 3096
  def process_getEmptyGrnsByDate(self, seqid, iprot, oprot):
3097
    args = getEmptyGrnsByDate_args()
3098
    args.read(iprot)
3099
    iprot.readMessageEnd()
3100
    result = getEmptyGrnsByDate_result()
3101
    result.success = self._handler.getEmptyGrnsByDate(args.startDate, args.endDate)
3102
    oprot.writeMessageBegin("getEmptyGrnsByDate", TMessageType.REPLY, seqid)
3103
    result.write(oprot)
3104
    oprot.writeMessageEnd()
3105
    oprot.trans.flush()
3106
 
5496 mandeep.dh 3107
  def process_fetchScansPerInvoiceNumber(self, seqid, iprot, oprot):
3108
    args = fetchScansPerInvoiceNumber_args()
3109
    args.read(iprot)
3110
    iprot.readMessageEnd()
3111
    result = fetchScansPerInvoiceNumber_result()
3112
    result.success = self._handler.fetchScansPerInvoiceNumber(args.date)
3113
    oprot.writeMessageBegin("fetchScansPerInvoiceNumber", TMessageType.REPLY, seqid)
3114
    result.write(oprot)
3115
    oprot.writeMessageEnd()
3116
    oprot.trans.flush()
5372 mandeep.dh 3117
 
5620 mandeep.dh 3118
  def process_getInventoryItemFromOrder(self, seqid, iprot, oprot):
3119
    args = getInventoryItemFromOrder_args()
3120
    args.read(iprot)
3121
    iprot.readMessageEnd()
3122
    result = getInventoryItemFromOrder_result()
3123
    try:
3124
      result.success = self._handler.getInventoryItemFromOrder(args.orderId)
3125
    except WarehouseServiceException, we:
3126
      result.we = we
3127
    oprot.writeMessageBegin("getInventoryItemFromOrder", TMessageType.REPLY, seqid)
3128
    result.write(oprot)
3129
    oprot.writeMessageEnd()
3130
    oprot.trans.flush()
5496 mandeep.dh 3131
 
5711 mandeep.dh 3132
  def process_getInventoryAge(self, seqid, iprot, oprot):
3133
    args = getInventoryAge_args()
3134
    args.read(iprot)
3135
    iprot.readMessageEnd()
3136
    result = getInventoryAge_result()
3137
    result.success = self._handler.getInventoryAge()
3138
    oprot.writeMessageBegin("getInventoryAge", TMessageType.REPLY, seqid)
3139
    result.write(oprot)
3140
    oprot.writeMessageEnd()
3141
    oprot.trans.flush()
5620 mandeep.dh 3142
 
6361 rajveer 3143
  def process_getInventoryScansForItem(self, seqid, iprot, oprot):
3144
    args = getInventoryScansForItem_args()
3145
    args.read(iprot)
3146
    iprot.readMessageEnd()
3147
    result = getInventoryScansForItem_result()
3148
    result.success = self._handler.getInventoryScansForItem(args.itemId, args.fromDate, args.toDate)
3149
    oprot.writeMessageBegin("getInventoryScansForItem", TMessageType.REPLY, seqid)
3150
    result.write(oprot)
3151
    oprot.writeMessageEnd()
3152
    oprot.trans.flush()
5711 mandeep.dh 3153
 
6361 rajveer 3154
  def process_getScanRecordsForSerialNumber(self, seqid, iprot, oprot):
3155
    args = getScanRecordsForSerialNumber_args()
3156
    args.read(iprot)
3157
    iprot.readMessageEnd()
3158
    result = getScanRecordsForSerialNumber_result()
3159
    result.success = self._handler.getScanRecordsForSerialNumber(args.serialNumber)
3160
    oprot.writeMessageBegin("getScanRecordsForSerialNumber", TMessageType.REPLY, seqid)
3161
    result.write(oprot)
3162
    oprot.writeMessageEnd()
3163
    oprot.trans.flush()
3164
 
6467 amar.kumar 3165
  def process_scanForPurchaseReturn(self, seqid, iprot, oprot):
3166
    args = scanForPurchaseReturn_args()
3167
    args.read(iprot)
3168
    iprot.readMessageEnd()
3169
    result = scanForPurchaseReturn_result()
3170
    try:
10864 manish.sha 3171
      result.success = self._handler.scanForPurchaseReturn(args.saleReturnItems, args.vendorId, args.billingWarehouseId)
6467 amar.kumar 3172
    except WarehouseServiceException, ex:
3173
      result.ex = ex
3174
    oprot.writeMessageBegin("scanForPurchaseReturn", TMessageType.REPLY, seqid)
3175
    result.write(oprot)
3176
    oprot.writeMessageEnd()
3177
    oprot.trans.flush()
6361 rajveer 3178
 
6630 amar.kumar 3179
  def process_scanForLostItem(self, seqid, iprot, oprot):
3180
    args = scanForLostItem_args()
3181
    args.read(iprot)
3182
    iprot.readMessageEnd()
3183
    result = scanForLostItem_result()
3184
    try:
7718 amar.kumar 3185
      self._handler.scanForLostItem(args.lostItems, args.vendorId, args.billingWarehouseId)
6630 amar.kumar 3186
    except WarehouseServiceException, ex:
3187
      result.ex = ex
3188
    oprot.writeMessageBegin("scanForLostItem", TMessageType.REPLY, seqid)
3189
    result.write(oprot)
3190
    oprot.writeMessageEnd()
3191
    oprot.trans.flush()
6467 amar.kumar 3192
 
6630 amar.kumar 3193
  def process_getCurrentSerializedInventoryByScans(self, seqid, iprot, oprot):
3194
    args = getCurrentSerializedInventoryByScans_args()
3195
    args.read(iprot)
3196
    iprot.readMessageEnd()
3197
    result = getCurrentSerializedInventoryByScans_result()
7715 vikram.rag 3198
    result.success = self._handler.getCurrentSerializedInventoryByScans(args.physicalWarehouseId)
6630 amar.kumar 3199
    oprot.writeMessageBegin("getCurrentSerializedInventoryByScans", TMessageType.REPLY, seqid)
3200
    result.write(oprot)
3201
    oprot.writeMessageEnd()
3202
    oprot.trans.flush()
3203
 
3204
  def process_getCurrentNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3205
    args = getCurrentNonSerializedInventoryByScans_args()
3206
    args.read(iprot)
3207
    iprot.readMessageEnd()
3208
    result = getCurrentNonSerializedInventoryByScans_result()
7715 vikram.rag 3209
    result.success = self._handler.getCurrentNonSerializedInventoryByScans(args.physicalWarehouseId)
6630 amar.kumar 3210
    oprot.writeMessageBegin("getCurrentNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3211
    result.write(oprot)
3212
    oprot.writeMessageEnd()
3213
    oprot.trans.flush()
3214
 
6762 amar.kumar 3215
  def process_getHistoricSerializedInventoryByScans(self, seqid, iprot, oprot):
3216
    args = getHistoricSerializedInventoryByScans_args()
3217
    args.read(iprot)
3218
    iprot.readMessageEnd()
3219
    result = getHistoricSerializedInventoryByScans_result()
3220
    result.success = self._handler.getHistoricSerializedInventoryByScans(args.date)
3221
    oprot.writeMessageBegin("getHistoricSerializedInventoryByScans", TMessageType.REPLY, seqid)
3222
    result.write(oprot)
3223
    oprot.writeMessageEnd()
3224
    oprot.trans.flush()
6630 amar.kumar 3225
 
6762 amar.kumar 3226
  def process_getHistoricNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3227
    args = getHistoricNonSerializedInventoryByScans_args()
3228
    args.read(iprot)
3229
    iprot.readMessageEnd()
3230
    result = getHistoricNonSerializedInventoryByScans_result()
3231
    result.success = self._handler.getHistoricNonSerializedInventoryByScans(args.date)
3232
    oprot.writeMessageBegin("getHistoricNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3233
    result.write(oprot)
3234
    oprot.writeMessageEnd()
3235
    oprot.trans.flush()
3236
 
10407 amar.kumar 3237
  def process_getOurHistoricSerializedInventoryByScans(self, seqid, iprot, oprot):
3238
    args = getOurHistoricSerializedInventoryByScans_args()
3239
    args.read(iprot)
3240
    iprot.readMessageEnd()
3241
    result = getOurHistoricSerializedInventoryByScans_result()
3242
    result.success = self._handler.getOurHistoricSerializedInventoryByScans(args.date)
3243
    oprot.writeMessageBegin("getOurHistoricSerializedInventoryByScans", TMessageType.REPLY, seqid)
3244
    result.write(oprot)
3245
    oprot.writeMessageEnd()
3246
    oprot.trans.flush()
3247
 
3248
  def process_getOurHistoricNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3249
    args = getOurHistoricNonSerializedInventoryByScans_args()
3250
    args.read(iprot)
3251
    iprot.readMessageEnd()
3252
    result = getOurHistoricNonSerializedInventoryByScans_result()
3253
    result.success = self._handler.getOurHistoricNonSerializedInventoryByScans(args.date)
3254
    oprot.writeMessageBegin("getOurHistoricNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3255
    result.write(oprot)
3256
    oprot.writeMessageEnd()
3257
    oprot.trans.flush()
3258
 
6762 amar.kumar 3259
  def process_scanForOursExternalSale(self, seqid, iprot, oprot):
3260
    args = scanForOursExternalSale_args()
3261
    args.read(iprot)
3262
    iprot.readMessageEnd()
3263
    result = scanForOursExternalSale_result()
3264
    try:
7672 rajveer 3265
      result.success = self._handler.scanForOursExternalSale(args.itemId, args.serialNumber, args.itemNumber, args.invoiceNumber, args.warehouseId, args.unitPrice, args.nlc, args.orderId)
6762 amar.kumar 3266
    except WarehouseServiceException, ex:
3267
      result.ex = ex
3268
    oprot.writeMessageBegin("scanForOursExternalSale", TMessageType.REPLY, seqid)
3269
    result.write(oprot)
3270
    oprot.writeMessageEnd()
3271
    oprot.trans.flush()
3272
 
3273
  def process_scanForOursExternalSaleReturn(self, seqid, iprot, oprot):
3274
    args = scanForOursExternalSaleReturn_args()
3275
    args.read(iprot)
3276
    iprot.readMessageEnd()
3277
    result = scanForOursExternalSaleReturn_result()
7410 amar.kumar 3278
    try:
3279
      self._handler.scanForOursExternalSaleReturn(args.orderId, args.unitPrice)
3280
    except WarehouseServiceException, ex:
3281
      result.ex = ex
6762 amar.kumar 3282
    oprot.writeMessageBegin("scanForOursExternalSaleReturn", TMessageType.REPLY, seqid)
3283
    result.write(oprot)
3284
    oprot.writeMessageEnd()
3285
    oprot.trans.flush()
3286
 
6880 amar.kumar 3287
  def process_getMovementNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3288
    args = getMovementNonSerializedInventoryByScans_args()
3289
    args.read(iprot)
3290
    iprot.readMessageEnd()
3291
    result = getMovementNonSerializedInventoryByScans_result()
3292
    result.success = self._handler.getMovementNonSerializedInventoryByScans(args.startDate, args.endDate)
3293
    oprot.writeMessageBegin("getMovementNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3294
    result.write(oprot)
3295
    oprot.writeMessageEnd()
3296
    oprot.trans.flush()
6762 amar.kumar 3297
 
6880 amar.kumar 3298
  def process_getMovementSerializedInventoryByScans(self, seqid, iprot, oprot):
3299
    args = getMovementSerializedInventoryByScans_args()
3300
    args.read(iprot)
3301
    iprot.readMessageEnd()
3302
    result = getMovementSerializedInventoryByScans_result()
3303
    result.success = self._handler.getMovementSerializedInventoryByScans(args.startDate, args.endDate)
3304
    oprot.writeMessageBegin("getMovementSerializedInventoryByScans", TMessageType.REPLY, seqid)
3305
    result.write(oprot)
3306
    oprot.writeMessageEnd()
3307
    oprot.trans.flush()
3308
 
7216 amar.kumar 3309
  def process_getCompleteMovementSerializedInventoryByScans(self, seqid, iprot, oprot):
3310
    args = getCompleteMovementSerializedInventoryByScans_args()
3311
    args.read(iprot)
3312
    iprot.readMessageEnd()
3313
    result = getCompleteMovementSerializedInventoryByScans_result()
3314
    result.success = self._handler.getCompleteMovementSerializedInventoryByScans(args.startDate, args.endDate)
3315
    oprot.writeMessageBegin("getCompleteMovementSerializedInventoryByScans", TMessageType.REPLY, seqid)
3316
    result.write(oprot)
3317
    oprot.writeMessageEnd()
3318
    oprot.trans.flush()
3319
 
3320
  def process_getCompleteMovementNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3321
    args = getCompleteMovementNonSerializedInventoryByScans_args()
3322
    args.read(iprot)
3323
    iprot.readMessageEnd()
3324
    result = getCompleteMovementNonSerializedInventoryByScans_result()
3325
    result.success = self._handler.getCompleteMovementNonSerializedInventoryByScans(args.startDate, args.endDate)
3326
    oprot.writeMessageBegin("getCompleteMovementNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3327
    result.write(oprot)
3328
    oprot.writeMessageEnd()
3329
    oprot.trans.flush()
3330
 
7190 amar.kumar 3331
  def process_scanfreebie(self, seqid, iprot, oprot):
3332
    args = scanfreebie_args()
3333
    args.read(iprot)
3334
    iprot.readMessageEnd()
3335
    result = scanfreebie_result()
3336
    try:
3337
      result.success = self._handler.scanfreebie(args.orderId, args.freebieItemId, args.freebieWarehouseId, args.scanType)
3338
    except WarehouseServiceException, wex:
3339
      result.wex = wex
3340
    oprot.writeMessageBegin("scanfreebie", TMessageType.REPLY, seqid)
3341
    result.write(oprot)
3342
    oprot.writeMessageEnd()
3343
    oprot.trans.flush()
6880 amar.kumar 3344
 
7199 amar.kumar 3345
  def process_reshipfreebie(self, seqid, iprot, oprot):
3346
    args = reshipfreebie_args()
3347
    args.read(iprot)
3348
    iprot.readMessageEnd()
3349
    result = reshipfreebie_result()
3350
    try:
3351
      self._handler.reshipfreebie(args.oldOrderId, args.newOrderId, args.freebieItemId, args.scanType)
3352
    except WarehouseServiceException, wex:
3353
      result.wex = wex
3354
    oprot.writeMessageBegin("reshipfreebie", TMessageType.REPLY, seqid)
3355
    result.write(oprot)
3356
    oprot.writeMessageEnd()
3357
    oprot.trans.flush()
7190 amar.kumar 3358
 
7410 amar.kumar 3359
  def process_isItemTransferAllowed(self, seqid, iprot, oprot):
3360
    args = isItemTransferAllowed_args()
3361
    args.read(iprot)
3362
    iprot.readMessageEnd()
3363
    result = isItemTransferAllowed_result()
3364
    result.success = self._handler.isItemTransferAllowed(args.warehouseId, args.transferWarehouseId)
3365
    oprot.writeMessageBegin("isItemTransferAllowed", TMessageType.REPLY, seqid)
3366
    result.write(oprot)
3367
    oprot.writeMessageEnd()
3368
    oprot.trans.flush()
7199 amar.kumar 3369
 
7410 amar.kumar 3370
  def process_createTransferLot(self, seqid, iprot, oprot):
3371
    args = createTransferLot_args()
3372
    args.read(iprot)
3373
    iprot.readMessageEnd()
3374
    result = createTransferLot_result()
3375
    try:
3376
      result.success = self._handler.createTransferLot(args.originWarehouseId, args.destWarehouseId)
3377
    except WarehouseServiceException, wex:
3378
      result.wex = wex
3379
    oprot.writeMessageBegin("createTransferLot", TMessageType.REPLY, seqid)
3380
    result.write(oprot)
3381
    oprot.writeMessageEnd()
3382
    oprot.trans.flush()
3383
 
3384
  def process_getTransferLot(self, seqid, iprot, oprot):
3385
    args = getTransferLot_args()
3386
    args.read(iprot)
3387
    iprot.readMessageEnd()
3388
    result = getTransferLot_result()
3389
    try:
3390
      result.success = self._handler.getTransferLot(args.transferLotId)
3391
    except WarehouseServiceException, wex:
3392
      result.wex = wex
3393
    oprot.writeMessageBegin("getTransferLot", TMessageType.REPLY, seqid)
3394
    result.write(oprot)
3395
    oprot.writeMessageEnd()
3396
    oprot.trans.flush()
3397
 
3398
  def process_markTransferLotAsReceived(self, seqid, iprot, oprot):
3399
    args = markTransferLotAsReceived_args()
3400
    args.read(iprot)
3401
    iprot.readMessageEnd()
3402
    result = markTransferLotAsReceived_result()
3403
    try:
3404
      self._handler.markTransferLotAsReceived(args.id, args.remoteTransferRefNumber)
3405
    except WarehouseServiceException, wex:
3406
      result.wex = wex
3407
    oprot.writeMessageBegin("markTransferLotAsReceived", TMessageType.REPLY, seqid)
3408
    result.write(oprot)
3409
    oprot.writeMessageEnd()
3410
    oprot.trans.flush()
3411
 
3412
  def process_getTransferLotsByDate(self, seqid, iprot, oprot):
3413
    args = getTransferLotsByDate_args()
3414
    args.read(iprot)
3415
    iprot.readMessageEnd()
3416
    result = getTransferLotsByDate_result()
3417
    try:
3418
      result.success = self._handler.getTransferLotsByDate(args.fromDate, args.toDate)
3419
    except WarehouseServiceException, wex:
3420
      result.wex = wex
3421
    oprot.writeMessageBegin("getTransferLotsByDate", TMessageType.REPLY, seqid)
3422
    result.write(oprot)
3423
    oprot.writeMessageEnd()
3424
    oprot.trans.flush()
3425
 
3426
  def process_getAllowedDestinationWarehousesForTransfer(self, seqid, iprot, oprot):
3427
    args = getAllowedDestinationWarehousesForTransfer_args()
3428
    args.read(iprot)
3429
    iprot.readMessageEnd()
3430
    result = getAllowedDestinationWarehousesForTransfer_result()
3431
    result.success = self._handler.getAllowedDestinationWarehousesForTransfer(args.warehouseId)
3432
    oprot.writeMessageBegin("getAllowedDestinationWarehousesForTransfer", TMessageType.REPLY, seqid)
3433
    result.write(oprot)
3434
    oprot.writeMessageEnd()
3435
    oprot.trans.flush()
3436
 
3437
  def process_getItemsInTransferLot(self, seqid, iprot, oprot):
3438
    args = getItemsInTransferLot_args()
3439
    args.read(iprot)
3440
    iprot.readMessageEnd()
3441
    result = getItemsInTransferLot_result()
3442
    result.success = self._handler.getItemsInTransferLot(args.transferLotId)
3443
    oprot.writeMessageBegin("getItemsInTransferLot", TMessageType.REPLY, seqid)
3444
    result.write(oprot)
3445
    oprot.writeMessageEnd()
3446
    oprot.trans.flush()
3447
 
3448
  def process_markItemsAsReceivedForTransferLot(self, seqid, iprot, oprot):
3449
    args = markItemsAsReceivedForTransferLot_args()
3450
    args.read(iprot)
3451
    iprot.readMessageEnd()
3452
    result = markItemsAsReceivedForTransferLot_result()
3453
    try:
3454
      self._handler.markItemsAsReceivedForTransferLot(args.id)
3455
    except WarehouseServiceException, wex:
3456
      result.wex = wex
3457
    oprot.writeMessageBegin("markItemsAsReceivedForTransferLot", TMessageType.REPLY, seqid)
3458
    result.write(oprot)
3459
    oprot.writeMessageEnd()
3460
    oprot.trans.flush()
3461
 
3462
  def process_updateTransferLotAfterItemReceive(self, seqid, iprot, oprot):
3463
    args = updateTransferLotAfterItemReceive_args()
3464
    args.read(iprot)
3465
    iprot.readMessageEnd()
3466
    result = updateTransferLotAfterItemReceive_result()
3467
    try:
3468
      result.success = self._handler.updateTransferLotAfterItemReceive(args.id)
3469
    except WarehouseServiceException, wex:
3470
      result.wex = wex
3471
    oprot.writeMessageBegin("updateTransferLotAfterItemReceive", TMessageType.REPLY, seqid)
3472
    result.write(oprot)
3473
    oprot.writeMessageEnd()
3474
    oprot.trans.flush()
3475
 
7459 amar.kumar 3476
  def process_scanForTransferOut(self, seqid, iprot, oprot):
3477
    args = scanForTransferOut_args()
7410 amar.kumar 3478
    args.read(iprot)
3479
    iprot.readMessageEnd()
7459 amar.kumar 3480
    result = scanForTransferOut_result()
7410 amar.kumar 3481
    try:
7459 amar.kumar 3482
      self._handler.scanForTransferOut(args.inventoryItems, args.type, args.transferLotId)
7410 amar.kumar 3483
    except WarehouseServiceException, wex:
3484
      result.wex = wex
7459 amar.kumar 3485
    oprot.writeMessageBegin("scanForTransferOut", TMessageType.REPLY, seqid)
7410 amar.kumar 3486
    result.write(oprot)
3487
    oprot.writeMessageEnd()
3488
    oprot.trans.flush()
3489
 
7459 amar.kumar 3490
  def process_scanForTransferIn(self, seqid, iprot, oprot):
3491
    args = scanForTransferIn_args()
3492
    args.read(iprot)
3493
    iprot.readMessageEnd()
3494
    result = scanForTransferIn_result()
3495
    try:
3496
      self._handler.scanForTransferIn(args.inventoryItems, args.type, args.transferLotId)
3497
    except WarehouseServiceException, wex:
3498
      result.wex = wex
3499
    oprot.writeMessageBegin("scanForTransferIn", TMessageType.REPLY, seqid)
3500
    result.write(oprot)
3501
    oprot.writeMessageEnd()
3502
    oprot.trans.flush()
7410 amar.kumar 3503
 
7459 amar.kumar 3504
  def process_scanForOursThirdPartyReceive(self, seqid, iprot, oprot):
3505
    args = scanForOursThirdPartyReceive_args()
3506
    args.read(iprot)
3507
    iprot.readMessageEnd()
3508
    result = scanForOursThirdPartyReceive_result()
3509
    try:
3510
      self._handler.scanForOursThirdPartyReceive(args.inventoryItems, args.id)
3511
    except WarehouseServiceException, wex:
3512
      result.wex = wex
3513
    oprot.writeMessageBegin("scanForOursThirdPartyReceive", TMessageType.REPLY, seqid)
3514
    result.write(oprot)
3515
    oprot.writeMessageEnd()
3516
    oprot.trans.flush()
3517
 
7574 amar.kumar 3518
  def process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, seqid, iprot, oprot):
3519
    args = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args()
3520
    args.read(iprot)
3521
    iprot.readMessageEnd()
3522
    result = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result()
3523
    try:
3524
      result.success = self._handler.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(args.itemId, args.physicalWarehouseId)
3525
    except WarehouseServiceException, wex:
3526
      result.wex = wex
3527
    oprot.writeMessageBegin("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", TMessageType.REPLY, seqid)
3528
    result.write(oprot)
3529
    oprot.writeMessageEnd()
3530
    oprot.trans.flush()
7459 amar.kumar 3531
 
7672 rajveer 3532
  def process_getInTransitInventory(self, seqid, iprot, oprot):
3533
    args = getInTransitInventory_args()
3534
    args.read(iprot)
3535
    iprot.readMessageEnd()
3536
    result = getInTransitInventory_result()
3537
    result.success = self._handler.getInTransitInventory(args.originWarehouseId)
3538
    oprot.writeMessageBegin("getInTransitInventory", TMessageType.REPLY, seqid)
3539
    result.write(oprot)
3540
    oprot.writeMessageEnd()
3541
    oprot.trans.flush()
7574 amar.kumar 3542
 
7968 amar.kumar 3543
  def process_isItemAvailableForSale(self, seqid, iprot, oprot):
3544
    args = isItemAvailableForSale_args()
3545
    args.read(iprot)
3546
    iprot.readMessageEnd()
3547
    result = isItemAvailableForSale_result()
3548
    try:
3549
      result.success = self._handler.isItemAvailableForSale(args.itemId, args.serialNumber, args.warehouseId)
3550
    except WarehouseServiceException, wex:
3551
      result.wex = wex
3552
    oprot.writeMessageBegin("isItemAvailableForSale", TMessageType.REPLY, seqid)
3553
    result.write(oprot)
3554
    oprot.writeMessageEnd()
3555
    oprot.trans.flush()
7672 rajveer 3556
 
7968 amar.kumar 3557
  def process_getHistoricBadInventoryByScans(self, seqid, iprot, oprot):
3558
    args = getHistoricBadInventoryByScans_args()
3559
    args.read(iprot)
3560
    iprot.readMessageEnd()
3561
    result = getHistoricBadInventoryByScans_result()
3562
    try:
3563
      result.success = self._handler.getHistoricBadInventoryByScans(args.date)
3564
    except WarehouseServiceException, wex:
3565
      result.wex = wex
3566
    oprot.writeMessageBegin("getHistoricBadInventoryByScans", TMessageType.REPLY, seqid)
3567
    result.write(oprot)
3568
    oprot.writeMessageEnd()
3569
    oprot.trans.flush()
3570
 
8565 amar.kumar 3571
  def process_scanForBadSale(self, seqid, iprot, oprot):
3572
    args = scanForBadSale_args()
3573
    args.read(iprot)
3574
    iprot.readMessageEnd()
3575
    result = scanForBadSale_result()
8717 amar.kumar 3576
    try:
3577
      result.success = self._handler.scanForBadSale(args.serialNumber, args.itemNumber, args.itemId, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId)
3578
    except WarehouseServiceException, wex:
3579
      result.wex = wex
8565 amar.kumar 3580
    oprot.writeMessageBegin("scanForBadSale", TMessageType.REPLY, seqid)
3581
    result.write(oprot)
3582
    oprot.writeMessageEnd()
3583
    oprot.trans.flush()
7968 amar.kumar 3584
 
10120 manish.sha 3585
  def process_getTransferLotItemsForMarkReceive(self, seqid, iprot, oprot):
3586
    args = getTransferLotItemsForMarkReceive_args()
3587
    args.read(iprot)
3588
    iprot.readMessageEnd()
3589
    result = getTransferLotItemsForMarkReceive_result()
3590
    try:
3591
      result.success = self._handler.getTransferLotItemsForMarkReceive(args.transferLotId, args.scanType)
3592
    except WarehouseServiceException, wex:
3593
      result.wex = wex
3594
    oprot.writeMessageBegin("getTransferLotItemsForMarkReceive", TMessageType.REPLY, seqid)
3595
    result.write(oprot)
3596
    oprot.writeMessageEnd()
3597
    oprot.trans.flush()
8565 amar.kumar 3598
 
10120 manish.sha 3599
  def process_markItemsAsReceivedForTransferLotPartial(self, seqid, iprot, oprot):
3600
    args = markItemsAsReceivedForTransferLotPartial_args()
3601
    args.read(iprot)
3602
    iprot.readMessageEnd()
3603
    result = markItemsAsReceivedForTransferLotPartial_result()
3604
    try:
3605
      self._handler.markItemsAsReceivedForTransferLotPartial(args.inventoryItems, args.transferLotId)
3606
    except WarehouseServiceException, wex:
3607
      result.wex = wex
3608
    oprot.writeMessageBegin("markItemsAsReceivedForTransferLotPartial", TMessageType.REPLY, seqid)
3609
    result.write(oprot)
3610
    oprot.writeMessageEnd()
3611
    oprot.trans.flush()
3612
 
3613
  def process_markTransferLotAsReceivedPartial(self, seqid, iprot, oprot):
3614
    args = markTransferLotAsReceivedPartial_args()
3615
    args.read(iprot)
3616
    iprot.readMessageEnd()
3617
    result = markTransferLotAsReceivedPartial_result()
3618
    try:
3619
      self._handler.markTransferLotAsReceivedPartial(args.id, args.remoteTransferRefNumber)
3620
    except WarehouseServiceException, wex:
3621
      result.wex = wex
3622
    oprot.writeMessageBegin("markTransferLotAsReceivedPartial", TMessageType.REPLY, seqid)
3623
    result.write(oprot)
3624
    oprot.writeMessageEnd()
3625
    oprot.trans.flush()
3626
 
10690 manish.sha 3627
  def process_getInventoryItemScannedInForPO(self, seqid, iprot, oprot):
3628
    args = getInventoryItemScannedInForPO_args()
3629
    args.read(iprot)
3630
    iprot.readMessageEnd()
3631
    result = getInventoryItemScannedInForPO_result()
3632
    try:
3633
      result.success = self._handler.getInventoryItemScannedInForPO(args.itemId, args.purchaseIds)
3634
    except WarehouseServiceException, wex:
3635
      result.wex = wex
3636
    oprot.writeMessageBegin("getInventoryItemScannedInForPO", TMessageType.REPLY, seqid)
3637
    result.write(oprot)
3638
    oprot.writeMessageEnd()
3639
    oprot.trans.flush()
10120 manish.sha 3640
 
10690 manish.sha 3641
  def process_getAmazonTransferredSkuDetails(self, seqid, iprot, oprot):
3642
    args = getAmazonTransferredSkuDetails_args()
3643
    args.read(iprot)
3644
    iprot.readMessageEnd()
3645
    result = getAmazonTransferredSkuDetails_result()
3646
    try:
3647
      result.success = self._handler.getAmazonTransferredSkuDetails(args.itemIds)
3648
    except WarehouseServiceException, wex:
3649
      result.wex = wex
3650
    oprot.writeMessageBegin("getAmazonTransferredSkuDetails", TMessageType.REPLY, seqid)
3651
    result.write(oprot)
3652
    oprot.writeMessageEnd()
3653
    oprot.trans.flush()
3654
 
3655
  def process_getScansforPurchase(self, seqid, iprot, oprot):
3656
    args = getScansforPurchase_args()
3657
    args.read(iprot)
3658
    iprot.readMessageEnd()
3659
    result = getScansforPurchase_result()
3660
    try:
3661
      result.success = self._handler.getScansforPurchase(args.purchaseId, args.scanType)
3662
    except WarehouseServiceException, wex:
3663
      result.wex = wex
3664
    oprot.writeMessageBegin("getScansforPurchase", TMessageType.REPLY, seqid)
3665
    result.write(oprot)
3666
    oprot.writeMessageEnd()
3667
    oprot.trans.flush()
3668
 
10864 manish.sha 3669
  def process_getCurrentBadQuantityForItem(self, seqid, iprot, oprot):
3670
    args = getCurrentBadQuantityForItem_args()
3671
    args.read(iprot)
3672
    iprot.readMessageEnd()
3673
    result = getCurrentBadQuantityForItem_result()
3674
    try:
3675
      result.success = self._handler.getCurrentBadQuantityForItem(args.itemId, args.currentWarehouseId, args.physicalWarehouseId)
3676
    except WarehouseServiceException, wex:
3677
      result.wex = wex
3678
    oprot.writeMessageBegin("getCurrentBadQuantityForItem", TMessageType.REPLY, seqid)
3679
    result.write(oprot)
3680
    oprot.writeMessageEnd()
3681
    oprot.trans.flush()
10690 manish.sha 3682
 
10864 manish.sha 3683
  def process_scanForBadPurchaseReturn(self, seqid, iprot, oprot):
3684
    args = scanForBadPurchaseReturn_args()
3685
    args.read(iprot)
3686
    iprot.readMessageEnd()
3687
    result = scanForBadPurchaseReturn_result()
3688
    try:
3689
      result.success = self._handler.scanForBadPurchaseReturn(args.saleReturnItems, args.vendorId, args.billingWarehouseId)
3690
    except WarehouseServiceException, ex:
3691
      result.ex = ex
3692
    oprot.writeMessageBegin("scanForBadPurchaseReturn", TMessageType.REPLY, seqid)
3693
    result.write(oprot)
3694
    oprot.writeMessageEnd()
3695
    oprot.trans.flush()
3696
 
3697
  def process_getItemsInPurchaseReturn(self, seqid, iprot, oprot):
3698
    args = getItemsInPurchaseReturn_args()
3699
    args.read(iprot)
3700
    iprot.readMessageEnd()
3701
    result = getItemsInPurchaseReturn_result()
3702
    try:
13504 manish.sha 3703
      result.success = self._handler.getItemsInPurchaseReturn(args.purchaseReturnId, args.type, args.returnTime)
10864 manish.sha 3704
    except WarehouseServiceException, ex:
3705
      result.ex = ex
3706
    oprot.writeMessageBegin("getItemsInPurchaseReturn", TMessageType.REPLY, seqid)
3707
    result.write(oprot)
3708
    oprot.writeMessageEnd()
3709
    oprot.trans.flush()
3710
 
10886 manish.sha 3711
  def process_getScansForInventoryItem(self, seqid, iprot, oprot):
3712
    args = getScansForInventoryItem_args()
3713
    args.read(iprot)
3714
    iprot.readMessageEnd()
3715
    result = getScansForInventoryItem_result()
3716
    try:
3717
      result.success = self._handler.getScansForInventoryItem(args.inventoryItemId, args.type)
3718
    except WarehouseServiceException, ex:
3719
      result.ex = ex
3720
    oprot.writeMessageBegin("getScansForInventoryItem", TMessageType.REPLY, seqid)
3721
    result.write(oprot)
3722
    oprot.writeMessageEnd()
3723
    oprot.trans.flush()
10864 manish.sha 3724
 
12531 manish.sha 3725
  def process_checkGrnImeiStatus(self, seqid, iprot, oprot):
3726
    args = checkGrnImeiStatus_args()
3727
    args.read(iprot)
3728
    iprot.readMessageEnd()
3729
    result = checkGrnImeiStatus_result()
3730
    try:
3731
      result.success = self._handler.checkGrnImeiStatus(args.imeiNos)
3732
    except WarehouseServiceException, ex:
3733
      result.ex = ex
3734
    oprot.writeMessageBegin("checkGrnImeiStatus", TMessageType.REPLY, seqid)
3735
    result.write(oprot)
3736
    oprot.writeMessageEnd()
3737
    oprot.trans.flush()
10886 manish.sha 3738
 
12800 manish.sha 3739
  def process_getInventoryAgeConsideredItems(self, seqid, iprot, oprot):
3740
    args = getInventoryAgeConsideredItems_args()
3741
    args.read(iprot)
3742
    iprot.readMessageEnd()
3743
    result = getInventoryAgeConsideredItems_result()
3744
    try:
3745
      result.success = self._handler.getInventoryAgeConsideredItems(args.itemId)
3746
    except WarehouseServiceException, ex:
3747
      result.ex = ex
3748
    oprot.writeMessageBegin("getInventoryAgeConsideredItems", TMessageType.REPLY, seqid)
3749
    result.write(oprot)
3750
    oprot.writeMessageEnd()
3751
    oprot.trans.flush()
12531 manish.sha 3752
 
13529 manish.sha 3753
  def process_getCompleteMovementForThirdPartyWarehouse(self, seqid, iprot, oprot):
3754
    args = getCompleteMovementForThirdPartyWarehouse_args()
3755
    args.read(iprot)
3756
    iprot.readMessageEnd()
3757
    result = getCompleteMovementForThirdPartyWarehouse_result()
3758
    result.success = self._handler.getCompleteMovementForThirdPartyWarehouse(args.startDate, args.endDate)
3759
    oprot.writeMessageBegin("getCompleteMovementForThirdPartyWarehouse", TMessageType.REPLY, seqid)
3760
    result.write(oprot)
3761
    oprot.writeMessageEnd()
3762
    oprot.trans.flush()
12800 manish.sha 3763
 
13529 manish.sha 3764
 
2821 chandransh 3765
# HELPER FUNCTIONS AND STRUCTURES
3766
 
4501 mandeep.dh 3767
class getInventoryItem_args:
2832 chandransh 3768
  """
3769
  Attributes:
4501 mandeep.dh 3770
   - serialNumber
2832 chandransh 3771
  """
3772
 
3773
  thrift_spec = (
3774
    None, # 0
4501 mandeep.dh 3775
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
2832 chandransh 3776
  )
3777
 
4501 mandeep.dh 3778
  def __init__(self, serialNumber=None,):
3779
    self.serialNumber = serialNumber
2832 chandransh 3780
 
3781
  def read(self, iprot):
3782
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3783
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3784
      return
3785
    iprot.readStructBegin()
3786
    while True:
3787
      (fname, ftype, fid) = iprot.readFieldBegin()
3788
      if ftype == TType.STOP:
3789
        break
3790
      if fid == 1:
4501 mandeep.dh 3791
        if ftype == TType.STRING:
3792
          self.serialNumber = iprot.readString();
2832 chandransh 3793
        else:
3794
          iprot.skip(ftype)
3795
      else:
3796
        iprot.skip(ftype)
3797
      iprot.readFieldEnd()
3798
    iprot.readStructEnd()
3799
 
3800
  def write(self, oprot):
3801
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3802
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3803
      return
4501 mandeep.dh 3804
    oprot.writeStructBegin('getInventoryItem_args')
3805
    if self.serialNumber is not None:
3806
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
3807
      oprot.writeString(self.serialNumber)
2832 chandransh 3808
      oprot.writeFieldEnd()
3809
    oprot.writeFieldStop()
3810
    oprot.writeStructEnd()
3811
 
3431 rajveer 3812
  def validate(self):
3813
    return
3814
 
3815
 
2832 chandransh 3816
  def __repr__(self):
3817
    L = ['%s=%r' % (key, value)
3818
      for key, value in self.__dict__.iteritems()]
3819
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3820
 
3821
  def __eq__(self, other):
3822
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3823
 
3824
  def __ne__(self, other):
3825
    return not (self == other)
3826
 
4501 mandeep.dh 3827
class getInventoryItem_result:
2832 chandransh 3828
  """
3829
  Attributes:
3830
   - success
4541 mandeep.dh 3831
   - wex
2832 chandransh 3832
  """
3833
 
3834
  thrift_spec = (
4501 mandeep.dh 3835
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
4541 mandeep.dh 3836
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
2832 chandransh 3837
  )
3838
 
4541 mandeep.dh 3839
  def __init__(self, success=None, wex=None,):
2832 chandransh 3840
    self.success = success
4541 mandeep.dh 3841
    self.wex = wex
2832 chandransh 3842
 
3843
  def read(self, iprot):
3844
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3845
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3846
      return
3847
    iprot.readStructBegin()
3848
    while True:
3849
      (fname, ftype, fid) = iprot.readFieldBegin()
3850
      if ftype == TType.STOP:
3851
        break
3852
      if fid == 0:
3853
        if ftype == TType.STRUCT:
4501 mandeep.dh 3854
          self.success = InventoryItem()
2832 chandransh 3855
          self.success.read(iprot)
3856
        else:
3857
          iprot.skip(ftype)
4541 mandeep.dh 3858
      elif fid == 1:
3859
        if ftype == TType.STRUCT:
3860
          self.wex = WarehouseServiceException()
3861
          self.wex.read(iprot)
3862
        else:
3863
          iprot.skip(ftype)
2832 chandransh 3864
      else:
3865
        iprot.skip(ftype)
3866
      iprot.readFieldEnd()
3867
    iprot.readStructEnd()
3868
 
3869
  def write(self, oprot):
3870
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3871
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3872
      return
4501 mandeep.dh 3873
    oprot.writeStructBegin('getInventoryItem_result')
3431 rajveer 3874
    if self.success is not None:
2832 chandransh 3875
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3876
      self.success.write(oprot)
3877
      oprot.writeFieldEnd()
4541 mandeep.dh 3878
    if self.wex is not None:
3879
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
3880
      self.wex.write(oprot)
3881
      oprot.writeFieldEnd()
2832 chandransh 3882
    oprot.writeFieldStop()
3883
    oprot.writeStructEnd()
3884
 
3431 rajveer 3885
  def validate(self):
3886
    return
3887
 
3888
 
2832 chandransh 3889
  def __repr__(self):
3890
    L = ['%s=%r' % (key, value)
3891
      for key, value in self.__dict__.iteritems()]
3892
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3893
 
3894
  def __eq__(self, other):
3895
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3896
 
3897
  def __ne__(self, other):
3898
    return not (self == other)
3899
 
5361 mandeep.dh 3900
class getNonSeralizedInventoryItem_args:
2821 chandransh 3901
  """
3902
  Attributes:
5530 mandeep.dh 3903
   - itemNumber
4501 mandeep.dh 3904
   - itemId
5530 mandeep.dh 3905
   - fulfilmentWarehouseId
8565 amar.kumar 3906
   - billingWarehouseId
2821 chandransh 3907
  """
3908
 
3909
  thrift_spec = (
3910
    None, # 0
5530 mandeep.dh 3911
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
3912
    (2, TType.I64, 'itemId', None, None, ), # 2
3913
    (3, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 3
8565 amar.kumar 3914
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
2821 chandransh 3915
  )
3916
 
8565 amar.kumar 3917
  def __init__(self, itemNumber=None, itemId=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):
5530 mandeep.dh 3918
    self.itemNumber = itemNumber
4501 mandeep.dh 3919
    self.itemId = itemId
5530 mandeep.dh 3920
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 3921
    self.billingWarehouseId = billingWarehouseId
2821 chandransh 3922
 
3923
  def read(self, iprot):
3924
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3925
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3926
      return
3927
    iprot.readStructBegin()
3928
    while True:
3929
      (fname, ftype, fid) = iprot.readFieldBegin()
3930
      if ftype == TType.STOP:
3931
        break
3932
      if fid == 1:
5530 mandeep.dh 3933
        if ftype == TType.STRING:
3934
          self.itemNumber = iprot.readString();
3935
        else:
3936
          iprot.skip(ftype)
3937
      elif fid == 2:
2821 chandransh 3938
        if ftype == TType.I64:
4501 mandeep.dh 3939
          self.itemId = iprot.readI64();
2821 chandransh 3940
        else:
3941
          iprot.skip(ftype)
5530 mandeep.dh 3942
      elif fid == 3:
4501 mandeep.dh 3943
        if ftype == TType.I64:
5530 mandeep.dh 3944
          self.fulfilmentWarehouseId = iprot.readI64();
2821 chandransh 3945
        else:
3946
          iprot.skip(ftype)
8565 amar.kumar 3947
      elif fid == 4:
3948
        if ftype == TType.I64:
3949
          self.billingWarehouseId = iprot.readI64();
3950
        else:
3951
          iprot.skip(ftype)
2821 chandransh 3952
      else:
3953
        iprot.skip(ftype)
3954
      iprot.readFieldEnd()
3955
    iprot.readStructEnd()
3956
 
3957
  def write(self, oprot):
3958
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3959
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3960
      return
5361 mandeep.dh 3961
    oprot.writeStructBegin('getNonSeralizedInventoryItem_args')
5530 mandeep.dh 3962
    if self.itemNumber is not None:
3963
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
3964
      oprot.writeString(self.itemNumber)
3965
      oprot.writeFieldEnd()
4501 mandeep.dh 3966
    if self.itemId is not None:
5530 mandeep.dh 3967
      oprot.writeFieldBegin('itemId', TType.I64, 2)
4501 mandeep.dh 3968
      oprot.writeI64(self.itemId)
2821 chandransh 3969
      oprot.writeFieldEnd()
5530 mandeep.dh 3970
    if self.fulfilmentWarehouseId is not None:
3971
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 3)
3972
      oprot.writeI64(self.fulfilmentWarehouseId)
2821 chandransh 3973
      oprot.writeFieldEnd()
8565 amar.kumar 3974
    if self.billingWarehouseId is not None:
3975
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
3976
      oprot.writeI64(self.billingWarehouseId)
3977
      oprot.writeFieldEnd()
2821 chandransh 3978
    oprot.writeFieldStop()
3979
    oprot.writeStructEnd()
3980
 
3431 rajveer 3981
  def validate(self):
3982
    return
3983
 
3984
 
2821 chandransh 3985
  def __repr__(self):
3986
    L = ['%s=%r' % (key, value)
3987
      for key, value in self.__dict__.iteritems()]
3988
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3989
 
3990
  def __eq__(self, other):
3991
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3992
 
3993
  def __ne__(self, other):
3994
    return not (self == other)
3995
 
5361 mandeep.dh 3996
class getNonSeralizedInventoryItem_result:
2821 chandransh 3997
  """
3998
  Attributes:
3999
   - success
5361 mandeep.dh 4000
   - wex
2821 chandransh 4001
  """
4002
 
4003
  thrift_spec = (
5361 mandeep.dh 4004
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
4005
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
2821 chandransh 4006
  )
4007
 
5361 mandeep.dh 4008
  def __init__(self, success=None, wex=None,):
2821 chandransh 4009
    self.success = success
5361 mandeep.dh 4010
    self.wex = wex
2821 chandransh 4011
 
4012
  def read(self, iprot):
4013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4015
      return
4016
    iprot.readStructBegin()
4017
    while True:
4018
      (fname, ftype, fid) = iprot.readFieldBegin()
4019
      if ftype == TType.STOP:
4020
        break
4021
      if fid == 0:
5361 mandeep.dh 4022
        if ftype == TType.STRUCT:
4023
          self.success = InventoryItem()
4024
          self.success.read(iprot)
2821 chandransh 4025
        else:
4026
          iprot.skip(ftype)
5361 mandeep.dh 4027
      elif fid == 1:
4028
        if ftype == TType.STRUCT:
4029
          self.wex = WarehouseServiceException()
4030
          self.wex.read(iprot)
2821 chandransh 4031
        else:
4032
          iprot.skip(ftype)
4033
      else:
4034
        iprot.skip(ftype)
4035
      iprot.readFieldEnd()
4036
    iprot.readStructEnd()
4037
 
4038
  def write(self, oprot):
4039
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4040
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4041
      return
5361 mandeep.dh 4042
    oprot.writeStructBegin('getNonSeralizedInventoryItem_result')
3431 rajveer 4043
    if self.success is not None:
5361 mandeep.dh 4044
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4045
      self.success.write(oprot)
2821 chandransh 4046
      oprot.writeFieldEnd()
5361 mandeep.dh 4047
    if self.wex is not None:
4048
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4049
      self.wex.write(oprot)
3383 chandransh 4050
      oprot.writeFieldEnd()
4051
    oprot.writeFieldStop()
4052
    oprot.writeStructEnd()
4053
 
3431 rajveer 4054
  def validate(self):
4055
    return
4056
 
4057
 
3383 chandransh 4058
  def __repr__(self):
4059
    L = ['%s=%r' % (key, value)
4060
      for key, value in self.__dict__.iteritems()]
4061
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4062
 
4063
  def __eq__(self, other):
4064
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4065
 
4066
  def __ne__(self, other):
4067
    return not (self == other)
4068
 
4501 mandeep.dh 4069
class scan_args:
2821 chandransh 4070
  """
4071
  Attributes:
5361 mandeep.dh 4072
   - inventoryItem
2821 chandransh 4073
   - type
4501 mandeep.dh 4074
   - quantity
5361 mandeep.dh 4075
   - billingWarehouseId
7410 amar.kumar 4076
   - transferLotId
2821 chandransh 4077
  """
4078
 
4079
  thrift_spec = (
4080
    None, # 0
5361 mandeep.dh 4081
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4501 mandeep.dh 4082
    (2, TType.I32, 'type', None, None, ), # 2
4083
    (3, TType.I64, 'quantity', None, None, ), # 3
5361 mandeep.dh 4084
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
7410 amar.kumar 4085
    (5, TType.I64, 'transferLotId', None, None, ), # 5
2821 chandransh 4086
  )
4087
 
7410 amar.kumar 4088
  def __init__(self, inventoryItem=None, type=None, quantity=None, billingWarehouseId=None, transferLotId=None,):
5361 mandeep.dh 4089
    self.inventoryItem = inventoryItem
2821 chandransh 4090
    self.type = type
4501 mandeep.dh 4091
    self.quantity = quantity
5361 mandeep.dh 4092
    self.billingWarehouseId = billingWarehouseId
7410 amar.kumar 4093
    self.transferLotId = transferLotId
2821 chandransh 4094
 
4095
  def read(self, iprot):
4096
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4097
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4098
      return
4099
    iprot.readStructBegin()
4100
    while True:
4101
      (fname, ftype, fid) = iprot.readFieldBegin()
4102
      if ftype == TType.STOP:
4103
        break
4104
      if fid == 1:
5361 mandeep.dh 4105
        if ftype == TType.STRUCT:
4106
          self.inventoryItem = InventoryItem()
4107
          self.inventoryItem.read(iprot)
2821 chandransh 4108
        else:
4109
          iprot.skip(ftype)
4110
      elif fid == 2:
4501 mandeep.dh 4111
        if ftype == TType.I32:
4112
          self.type = iprot.readI32();
2821 chandransh 4113
        else:
4114
          iprot.skip(ftype)
3383 chandransh 4115
      elif fid == 3:
4501 mandeep.dh 4116
        if ftype == TType.I64:
4117
          self.quantity = iprot.readI64();
2821 chandransh 4118
        else:
4119
          iprot.skip(ftype)
3383 chandransh 4120
      elif fid == 4:
4501 mandeep.dh 4121
        if ftype == TType.I64:
5361 mandeep.dh 4122
          self.billingWarehouseId = iprot.readI64();
2821 chandransh 4123
        else:
4124
          iprot.skip(ftype)
7410 amar.kumar 4125
      elif fid == 5:
4126
        if ftype == TType.I64:
4127
          self.transferLotId = iprot.readI64();
4128
        else:
4129
          iprot.skip(ftype)
2821 chandransh 4130
      else:
4131
        iprot.skip(ftype)
4132
      iprot.readFieldEnd()
4133
    iprot.readStructEnd()
4134
 
4135
  def write(self, oprot):
4136
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4137
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4138
      return
4501 mandeep.dh 4139
    oprot.writeStructBegin('scan_args')
5361 mandeep.dh 4140
    if self.inventoryItem is not None:
4141
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
4142
      self.inventoryItem.write(oprot)
2821 chandransh 4143
      oprot.writeFieldEnd()
3431 rajveer 4144
    if self.type is not None:
4501 mandeep.dh 4145
      oprot.writeFieldBegin('type', TType.I32, 2)
2821 chandransh 4146
      oprot.writeI32(self.type)
4147
      oprot.writeFieldEnd()
4501 mandeep.dh 4148
    if self.quantity is not None:
4149
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4150
      oprot.writeI64(self.quantity)
4151
      oprot.writeFieldEnd()
5361 mandeep.dh 4152
    if self.billingWarehouseId is not None:
4153
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
4154
      oprot.writeI64(self.billingWarehouseId)
4501 mandeep.dh 4155
      oprot.writeFieldEnd()
7410 amar.kumar 4156
    if self.transferLotId is not None:
4157
      oprot.writeFieldBegin('transferLotId', TType.I64, 5)
4158
      oprot.writeI64(self.transferLotId)
4159
      oprot.writeFieldEnd()
2821 chandransh 4160
    oprot.writeFieldStop()
4161
    oprot.writeStructEnd()
4162
 
3431 rajveer 4163
  def validate(self):
4164
    return
4165
 
4166
 
2821 chandransh 4167
  def __repr__(self):
4168
    L = ['%s=%r' % (key, value)
4169
      for key, value in self.__dict__.iteritems()]
4170
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4171
 
4172
  def __eq__(self, other):
4173
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4174
 
4175
  def __ne__(self, other):
4176
    return not (self == other)
4177
 
4501 mandeep.dh 4178
class scan_result:
2821 chandransh 4179
  """
4180
  Attributes:
4181
   - wex
4182
  """
4183
 
4184
  thrift_spec = (
4185
    None, # 0
4186
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4187
  )
4188
 
4189
  def __init__(self, wex=None,):
4190
    self.wex = wex
4191
 
4192
  def read(self, iprot):
4193
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4194
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4195
      return
4196
    iprot.readStructBegin()
4197
    while True:
4198
      (fname, ftype, fid) = iprot.readFieldBegin()
4199
      if ftype == TType.STOP:
4200
        break
4201
      if fid == 1:
4202
        if ftype == TType.STRUCT:
4203
          self.wex = WarehouseServiceException()
4204
          self.wex.read(iprot)
4205
        else:
4206
          iprot.skip(ftype)
4207
      else:
4208
        iprot.skip(ftype)
4209
      iprot.readFieldEnd()
4210
    iprot.readStructEnd()
4211
 
4212
  def write(self, oprot):
4213
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4214
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4215
      return
4501 mandeep.dh 4216
    oprot.writeStructBegin('scan_result')
3431 rajveer 4217
    if self.wex is not None:
2821 chandransh 4218
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4219
      self.wex.write(oprot)
4220
      oprot.writeFieldEnd()
4221
    oprot.writeFieldStop()
4222
    oprot.writeStructEnd()
4223
 
3431 rajveer 4224
  def validate(self):
4225
    return
4226
 
4227
 
2821 chandransh 4228
  def __repr__(self):
4229
    L = ['%s=%r' % (key, value)
4230
      for key, value in self.__dict__.iteritems()]
4231
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4232
 
4233
  def __eq__(self, other):
4234
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4235
 
4236
  def __ne__(self, other):
4237
    return not (self == other)
4238
 
10489 amar.kumar 4239
class genericScan_args:
4240
  """
4241
  Attributes:
4242
   - inventoryItem
4243
   - scan
4244
  """
4245
 
4246
  thrift_spec = (
4247
    None, # 0
4248
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4249
    (2, TType.STRUCT, 'scan', (Scan, Scan.thrift_spec), None, ), # 2
4250
  )
4251
 
4252
  def __init__(self, inventoryItem=None, scan=None,):
4253
    self.inventoryItem = inventoryItem
4254
    self.scan = scan
4255
 
4256
  def read(self, iprot):
4257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4259
      return
4260
    iprot.readStructBegin()
4261
    while True:
4262
      (fname, ftype, fid) = iprot.readFieldBegin()
4263
      if ftype == TType.STOP:
4264
        break
4265
      if fid == 1:
4266
        if ftype == TType.STRUCT:
4267
          self.inventoryItem = InventoryItem()
4268
          self.inventoryItem.read(iprot)
4269
        else:
4270
          iprot.skip(ftype)
4271
      elif fid == 2:
4272
        if ftype == TType.STRUCT:
4273
          self.scan = Scan()
4274
          self.scan.read(iprot)
4275
        else:
4276
          iprot.skip(ftype)
4277
      else:
4278
        iprot.skip(ftype)
4279
      iprot.readFieldEnd()
4280
    iprot.readStructEnd()
4281
 
4282
  def write(self, oprot):
4283
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4284
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4285
      return
4286
    oprot.writeStructBegin('genericScan_args')
4287
    if self.inventoryItem is not None:
4288
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
4289
      self.inventoryItem.write(oprot)
4290
      oprot.writeFieldEnd()
4291
    if self.scan is not None:
4292
      oprot.writeFieldBegin('scan', TType.STRUCT, 2)
4293
      self.scan.write(oprot)
4294
      oprot.writeFieldEnd()
4295
    oprot.writeFieldStop()
4296
    oprot.writeStructEnd()
4297
 
4298
  def validate(self):
4299
    return
4300
 
4301
 
4302
  def __repr__(self):
4303
    L = ['%s=%r' % (key, value)
4304
      for key, value in self.__dict__.iteritems()]
4305
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4306
 
4307
  def __eq__(self, other):
4308
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4309
 
4310
  def __ne__(self, other):
4311
    return not (self == other)
4312
 
4313
class genericScan_result:
4314
  """
4315
  Attributes:
4316
   - wex
4317
  """
4318
 
4319
  thrift_spec = (
4320
    None, # 0
4321
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4322
  )
4323
 
4324
  def __init__(self, wex=None,):
4325
    self.wex = wex
4326
 
4327
  def read(self, iprot):
4328
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4329
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4330
      return
4331
    iprot.readStructBegin()
4332
    while True:
4333
      (fname, ftype, fid) = iprot.readFieldBegin()
4334
      if ftype == TType.STOP:
4335
        break
4336
      if fid == 1:
4337
        if ftype == TType.STRUCT:
4338
          self.wex = WarehouseServiceException()
4339
          self.wex.read(iprot)
4340
        else:
4341
          iprot.skip(ftype)
4342
      else:
4343
        iprot.skip(ftype)
4344
      iprot.readFieldEnd()
4345
    iprot.readStructEnd()
4346
 
4347
  def write(self, oprot):
4348
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4349
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4350
      return
4351
    oprot.writeStructBegin('genericScan_result')
4352
    if self.wex is not None:
4353
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4354
      self.wex.write(oprot)
4355
      oprot.writeFieldEnd()
4356
    oprot.writeFieldStop()
4357
    oprot.writeStructEnd()
4358
 
4359
  def validate(self):
4360
    return
4361
 
4362
 
4363
  def __repr__(self):
4364
    L = ['%s=%r' % (key, value)
4365
      for key, value in self.__dict__.iteritems()]
4366
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4367
 
4368
  def __eq__(self, other):
4369
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4370
 
4371
  def __ne__(self, other):
4372
    return not (self == other)
4373
 
4501 mandeep.dh 4374
class scanSerializedItemForOrder_args:
2821 chandransh 4375
  """
4376
  Attributes:
4555 mandeep.dh 4377
   - serialNumber
2821 chandransh 4378
   - type
4501 mandeep.dh 4379
   - orderId
5110 mandeep.dh 4380
   - fulfilmentWarehouseId
4381
   - quantity
4382
   - billingWarehouseId
2821 chandransh 4383
  """
4384
 
4385
  thrift_spec = (
4386
    None, # 0
4555 mandeep.dh 4387
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
4501 mandeep.dh 4388
    (2, TType.I32, 'type', None, None, ), # 2
4389
    (3, TType.I64, 'orderId', None, None, ), # 3
5110 mandeep.dh 4390
    (4, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 4
4391
    (5, TType.DOUBLE, 'quantity', None, None, ), # 5
4392
    (6, TType.I64, 'billingWarehouseId', None, None, ), # 6
2821 chandransh 4393
  )
4394
 
5110 mandeep.dh 4395
  def __init__(self, serialNumber=None, type=None, orderId=None, fulfilmentWarehouseId=None, quantity=None, billingWarehouseId=None,):
4555 mandeep.dh 4396
    self.serialNumber = serialNumber
2821 chandransh 4397
    self.type = type
4501 mandeep.dh 4398
    self.orderId = orderId
5110 mandeep.dh 4399
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
4400
    self.quantity = quantity
4401
    self.billingWarehouseId = billingWarehouseId
2821 chandransh 4402
 
4403
  def read(self, iprot):
4404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4406
      return
4407
    iprot.readStructBegin()
4408
    while True:
4409
      (fname, ftype, fid) = iprot.readFieldBegin()
4410
      if ftype == TType.STOP:
4411
        break
4412
      if fid == 1:
4555 mandeep.dh 4413
        if ftype == TType.STRING:
4414
          self.serialNumber = iprot.readString();
2821 chandransh 4415
        else:
4416
          iprot.skip(ftype)
4417
      elif fid == 2:
4501 mandeep.dh 4418
        if ftype == TType.I32:
4419
          self.type = iprot.readI32();
2821 chandransh 4420
        else:
4421
          iprot.skip(ftype)
4422
      elif fid == 3:
4501 mandeep.dh 4423
        if ftype == TType.I64:
4424
          self.orderId = iprot.readI64();
4425
        else:
4426
          iprot.skip(ftype)
4427
      elif fid == 4:
4428
        if ftype == TType.I64:
5110 mandeep.dh 4429
          self.fulfilmentWarehouseId = iprot.readI64();
4501 mandeep.dh 4430
        else:
4431
          iprot.skip(ftype)
5110 mandeep.dh 4432
      elif fid == 5:
4433
        if ftype == TType.DOUBLE:
4434
          self.quantity = iprot.readDouble();
4435
        else:
4436
          iprot.skip(ftype)
4437
      elif fid == 6:
4438
        if ftype == TType.I64:
4439
          self.billingWarehouseId = iprot.readI64();
4440
        else:
4441
          iprot.skip(ftype)
4501 mandeep.dh 4442
      else:
4443
        iprot.skip(ftype)
4444
      iprot.readFieldEnd()
4445
    iprot.readStructEnd()
4446
 
4447
  def write(self, oprot):
4448
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4449
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4450
      return
4451
    oprot.writeStructBegin('scanSerializedItemForOrder_args')
4555 mandeep.dh 4452
    if self.serialNumber is not None:
4453
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
4454
      oprot.writeString(self.serialNumber)
4501 mandeep.dh 4455
      oprot.writeFieldEnd()
4456
    if self.type is not None:
4457
      oprot.writeFieldBegin('type', TType.I32, 2)
4458
      oprot.writeI32(self.type)
4459
      oprot.writeFieldEnd()
4460
    if self.orderId is not None:
4461
      oprot.writeFieldBegin('orderId', TType.I64, 3)
4462
      oprot.writeI64(self.orderId)
4463
      oprot.writeFieldEnd()
5110 mandeep.dh 4464
    if self.fulfilmentWarehouseId is not None:
4465
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 4)
4466
      oprot.writeI64(self.fulfilmentWarehouseId)
4501 mandeep.dh 4467
      oprot.writeFieldEnd()
5110 mandeep.dh 4468
    if self.quantity is not None:
4469
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
4470
      oprot.writeDouble(self.quantity)
4471
      oprot.writeFieldEnd()
4472
    if self.billingWarehouseId is not None:
4473
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)
4474
      oprot.writeI64(self.billingWarehouseId)
4475
      oprot.writeFieldEnd()
4501 mandeep.dh 4476
    oprot.writeFieldStop()
4477
    oprot.writeStructEnd()
4478
 
4479
  def validate(self):
4480
    return
4481
 
4482
 
4483
  def __repr__(self):
4484
    L = ['%s=%r' % (key, value)
4485
      for key, value in self.__dict__.iteritems()]
4486
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4487
 
4488
  def __eq__(self, other):
4489
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4490
 
4491
  def __ne__(self, other):
4492
    return not (self == other)
4493
 
4494
class scanSerializedItemForOrder_result:
4495
  """
4496
  Attributes:
4497
   - success
4498
   - wex
4499
  """
4500
 
4501
  thrift_spec = (
4555 mandeep.dh 4502
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
4501 mandeep.dh 4503
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4504
  )
4505
 
4506
  def __init__(self, success=None, wex=None,):
4507
    self.success = success
4508
    self.wex = wex
4509
 
4510
  def read(self, iprot):
4511
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4512
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4513
      return
4514
    iprot.readStructBegin()
4515
    while True:
4516
      (fname, ftype, fid) = iprot.readFieldBegin()
4517
      if ftype == TType.STOP:
4518
        break
4519
      if fid == 0:
4555 mandeep.dh 4520
        if ftype == TType.STRUCT:
4521
          self.success = InventoryItem()
4522
          self.success.read(iprot)
4501 mandeep.dh 4523
        else:
4524
          iprot.skip(ftype)
4525
      elif fid == 1:
4526
        if ftype == TType.STRUCT:
4527
          self.wex = WarehouseServiceException()
4528
          self.wex.read(iprot)
4529
        else:
4530
          iprot.skip(ftype)
4531
      else:
4532
        iprot.skip(ftype)
4533
      iprot.readFieldEnd()
4534
    iprot.readStructEnd()
4535
 
4536
  def write(self, oprot):
4537
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4538
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4539
      return
4540
    oprot.writeStructBegin('scanSerializedItemForOrder_result')
4541
    if self.success is not None:
4555 mandeep.dh 4542
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4543
      self.success.write(oprot)
4501 mandeep.dh 4544
      oprot.writeFieldEnd()
4545
    if self.wex is not None:
4546
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4547
      self.wex.write(oprot)
4548
      oprot.writeFieldEnd()
4549
    oprot.writeFieldStop()
4550
    oprot.writeStructEnd()
4551
 
4552
  def validate(self):
4553
    return
4554
 
4555
 
4556
  def __repr__(self):
4557
    L = ['%s=%r' % (key, value)
4558
      for key, value in self.__dict__.iteritems()]
4559
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4560
 
4561
  def __eq__(self, other):
4562
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4563
 
4564
  def __ne__(self, other):
4565
    return not (self == other)
4566
 
4567
class scanForOrder_args:
4568
  """
4569
  Attributes:
5361 mandeep.dh 4570
   - inventoryItem
4501 mandeep.dh 4571
   - type
4572
   - quantity
4573
   - orderId
5110 mandeep.dh 4574
   - fulfilmentWarehouseId
5361 mandeep.dh 4575
   - billingWarehouseId
4501 mandeep.dh 4576
  """
4577
 
4578
  thrift_spec = (
4579
    None, # 0
5361 mandeep.dh 4580
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4501 mandeep.dh 4581
    (2, TType.I32, 'type', None, None, ), # 2
4582
    (3, TType.I64, 'quantity', None, None, ), # 3
4583
    (4, TType.I64, 'orderId', None, None, ), # 4
5110 mandeep.dh 4584
    (5, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 5
5361 mandeep.dh 4585
    (6, TType.I64, 'billingWarehouseId', None, None, ), # 6
4501 mandeep.dh 4586
  )
4587
 
5361 mandeep.dh 4588
  def __init__(self, inventoryItem=None, type=None, quantity=None, orderId=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):
4589
    self.inventoryItem = inventoryItem
4501 mandeep.dh 4590
    self.type = type
4591
    self.quantity = quantity
4592
    self.orderId = orderId
5110 mandeep.dh 4593
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
5361 mandeep.dh 4594
    self.billingWarehouseId = billingWarehouseId
4501 mandeep.dh 4595
 
4596
  def read(self, iprot):
4597
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4598
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4599
      return
4600
    iprot.readStructBegin()
4601
    while True:
4602
      (fname, ftype, fid) = iprot.readFieldBegin()
4603
      if ftype == TType.STOP:
4604
        break
4605
      if fid == 1:
5361 mandeep.dh 4606
        if ftype == TType.STRUCT:
4607
          self.inventoryItem = InventoryItem()
4608
          self.inventoryItem.read(iprot)
4501 mandeep.dh 4609
        else:
4610
          iprot.skip(ftype)
4611
      elif fid == 2:
2821 chandransh 4612
        if ftype == TType.I32:
4613
          self.type = iprot.readI32();
4614
        else:
4615
          iprot.skip(ftype)
4501 mandeep.dh 4616
      elif fid == 3:
4617
        if ftype == TType.I64:
4618
          self.quantity = iprot.readI64();
4619
        else:
4620
          iprot.skip(ftype)
4621
      elif fid == 4:
4622
        if ftype == TType.I64:
4623
          self.orderId = iprot.readI64();
4624
        else:
4625
          iprot.skip(ftype)
4626
      elif fid == 5:
4627
        if ftype == TType.I64:
5110 mandeep.dh 4628
          self.fulfilmentWarehouseId = iprot.readI64();
4501 mandeep.dh 4629
        else:
4630
          iprot.skip(ftype)
5361 mandeep.dh 4631
      elif fid == 6:
4632
        if ftype == TType.I64:
4633
          self.billingWarehouseId = iprot.readI64();
4634
        else:
4635
          iprot.skip(ftype)
2821 chandransh 4636
      else:
4637
        iprot.skip(ftype)
4638
      iprot.readFieldEnd()
4639
    iprot.readStructEnd()
4640
 
4641
  def write(self, oprot):
4642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4644
      return
4501 mandeep.dh 4645
    oprot.writeStructBegin('scanForOrder_args')
5361 mandeep.dh 4646
    if self.inventoryItem is not None:
4647
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
4648
      self.inventoryItem.write(oprot)
2821 chandransh 4649
      oprot.writeFieldEnd()
3431 rajveer 4650
    if self.type is not None:
4501 mandeep.dh 4651
      oprot.writeFieldBegin('type', TType.I32, 2)
2821 chandransh 4652
      oprot.writeI32(self.type)
4653
      oprot.writeFieldEnd()
4501 mandeep.dh 4654
    if self.quantity is not None:
4655
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4656
      oprot.writeI64(self.quantity)
4657
      oprot.writeFieldEnd()
4658
    if self.orderId is not None:
4659
      oprot.writeFieldBegin('orderId', TType.I64, 4)
4660
      oprot.writeI64(self.orderId)
4661
      oprot.writeFieldEnd()
5110 mandeep.dh 4662
    if self.fulfilmentWarehouseId is not None:
4663
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 5)
4664
      oprot.writeI64(self.fulfilmentWarehouseId)
4501 mandeep.dh 4665
      oprot.writeFieldEnd()
5361 mandeep.dh 4666
    if self.billingWarehouseId is not None:
4667
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)
4668
      oprot.writeI64(self.billingWarehouseId)
4669
      oprot.writeFieldEnd()
2821 chandransh 4670
    oprot.writeFieldStop()
4671
    oprot.writeStructEnd()
4672
 
3431 rajveer 4673
  def validate(self):
4674
    return
4675
 
4676
 
2821 chandransh 4677
  def __repr__(self):
4678
    L = ['%s=%r' % (key, value)
4679
      for key, value in self.__dict__.iteritems()]
4680
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4681
 
4682
  def __eq__(self, other):
4683
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4684
 
4685
  def __ne__(self, other):
4686
    return not (self == other)
4687
 
4501 mandeep.dh 4688
class scanForOrder_result:
2821 chandransh 4689
  """
4690
  Attributes:
5361 mandeep.dh 4691
   - success
2821 chandransh 4692
   - wex
4693
  """
4694
 
4695
  thrift_spec = (
5361 mandeep.dh 4696
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
2821 chandransh 4697
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4698
  )
4699
 
5361 mandeep.dh 4700
  def __init__(self, success=None, wex=None,):
4701
    self.success = success
2821 chandransh 4702
    self.wex = wex
4703
 
4704
  def read(self, iprot):
4705
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4706
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4707
      return
4708
    iprot.readStructBegin()
4709
    while True:
4710
      (fname, ftype, fid) = iprot.readFieldBegin()
4711
      if ftype == TType.STOP:
4712
        break
5361 mandeep.dh 4713
      if fid == 0:
2821 chandransh 4714
        if ftype == TType.STRUCT:
5361 mandeep.dh 4715
          self.success = InventoryItem()
4716
          self.success.read(iprot)
4717
        else:
4718
          iprot.skip(ftype)
4719
      elif fid == 1:
4720
        if ftype == TType.STRUCT:
2821 chandransh 4721
          self.wex = WarehouseServiceException()
4722
          self.wex.read(iprot)
4723
        else:
4724
          iprot.skip(ftype)
4725
      else:
4726
        iprot.skip(ftype)
4727
      iprot.readFieldEnd()
4728
    iprot.readStructEnd()
4729
 
4730
  def write(self, oprot):
4731
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4732
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4733
      return
4501 mandeep.dh 4734
    oprot.writeStructBegin('scanForOrder_result')
5361 mandeep.dh 4735
    if self.success is not None:
4736
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4737
      self.success.write(oprot)
4738
      oprot.writeFieldEnd()
3431 rajveer 4739
    if self.wex is not None:
2821 chandransh 4740
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4741
      self.wex.write(oprot)
4742
      oprot.writeFieldEnd()
4743
    oprot.writeFieldStop()
4744
    oprot.writeStructEnd()
4745
 
3431 rajveer 4746
  def validate(self):
4747
    return
4748
 
4749
 
2821 chandransh 4750
  def __repr__(self):
4751
    L = ['%s=%r' % (key, value)
4752
      for key, value in self.__dict__.iteritems()]
4753
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4754
 
4755
  def __eq__(self, other):
4756
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4757
 
4758
  def __ne__(self, other):
4759
    return not (self == other)
4501 mandeep.dh 4760
 
4761
class createItemNumberMapping_args:
4762
  """
4763
  Attributes:
4764
   - itemNumber
4765
   - itemId
4766
  """
4767
 
4768
  thrift_spec = (
4769
    None, # 0
4770
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
4771
    (2, TType.I64, 'itemId', None, None, ), # 2
4772
  )
4773
 
4774
  def __init__(self, itemNumber=None, itemId=None,):
4775
    self.itemNumber = itemNumber
4776
    self.itemId = itemId
4777
 
4778
  def read(self, iprot):
4779
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4780
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4781
      return
4782
    iprot.readStructBegin()
4783
    while True:
4784
      (fname, ftype, fid) = iprot.readFieldBegin()
4785
      if ftype == TType.STOP:
4786
        break
4787
      if fid == 1:
4788
        if ftype == TType.STRING:
4789
          self.itemNumber = iprot.readString();
4790
        else:
4791
          iprot.skip(ftype)
4792
      elif fid == 2:
4793
        if ftype == TType.I64:
4794
          self.itemId = iprot.readI64();
4795
        else:
4796
          iprot.skip(ftype)
4797
      else:
4798
        iprot.skip(ftype)
4799
      iprot.readFieldEnd()
4800
    iprot.readStructEnd()
4801
 
4802
  def write(self, oprot):
4803
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4804
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4805
      return
4806
    oprot.writeStructBegin('createItemNumberMapping_args')
4807
    if self.itemNumber is not None:
4808
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
4809
      oprot.writeString(self.itemNumber)
4810
      oprot.writeFieldEnd()
4811
    if self.itemId is not None:
4812
      oprot.writeFieldBegin('itemId', TType.I64, 2)
4813
      oprot.writeI64(self.itemId)
4814
      oprot.writeFieldEnd()
4815
    oprot.writeFieldStop()
4816
    oprot.writeStructEnd()
4817
 
4818
  def validate(self):
4819
    return
4820
 
4821
 
4822
  def __repr__(self):
4823
    L = ['%s=%r' % (key, value)
4824
      for key, value in self.__dict__.iteritems()]
4825
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4826
 
4827
  def __eq__(self, other):
4828
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4829
 
4830
  def __ne__(self, other):
4831
    return not (self == other)
4832
 
4833
class createItemNumberMapping_result:
4834
 
4835
  thrift_spec = (
4836
  )
4837
 
4838
  def read(self, iprot):
4839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4841
      return
4842
    iprot.readStructBegin()
4843
    while True:
4844
      (fname, ftype, fid) = iprot.readFieldBegin()
4845
      if ftype == TType.STOP:
4846
        break
4847
      else:
4848
        iprot.skip(ftype)
4849
      iprot.readFieldEnd()
4850
    iprot.readStructEnd()
4851
 
4852
  def write(self, oprot):
4853
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4854
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4855
      return
4856
    oprot.writeStructBegin('createItemNumberMapping_result')
4857
    oprot.writeFieldStop()
4858
    oprot.writeStructEnd()
4859
 
4860
  def validate(self):
4861
    return
4862
 
4863
 
4864
  def __repr__(self):
4865
    L = ['%s=%r' % (key, value)
4866
      for key, value in self.__dict__.iteritems()]
4867
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4868
 
4869
  def __eq__(self, other):
4870
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4871
 
4872
  def __ne__(self, other):
4873
    return not (self == other)
4620 amit.gupta 4874
 
4875
class getItemNumbers_args:
4876
  """
4877
  Attributes:
4878
   - itemId
4879
  """
4880
 
4881
  thrift_spec = (
4882
    None, # 0
4883
    (1, TType.I64, 'itemId', None, None, ), # 1
4884
  )
4885
 
4886
  def __init__(self, itemId=None,):
4887
    self.itemId = itemId
4888
 
4889
  def read(self, iprot):
4890
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4891
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4892
      return
4893
    iprot.readStructBegin()
4894
    while True:
4895
      (fname, ftype, fid) = iprot.readFieldBegin()
4896
      if ftype == TType.STOP:
4897
        break
4898
      if fid == 1:
4899
        if ftype == TType.I64:
4900
          self.itemId = iprot.readI64();
4901
        else:
4902
          iprot.skip(ftype)
4903
      else:
4904
        iprot.skip(ftype)
4905
      iprot.readFieldEnd()
4906
    iprot.readStructEnd()
4907
 
4908
  def write(self, oprot):
4909
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4910
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4911
      return
4912
    oprot.writeStructBegin('getItemNumbers_args')
4913
    if self.itemId is not None:
4914
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4915
      oprot.writeI64(self.itemId)
4916
      oprot.writeFieldEnd()
4917
    oprot.writeFieldStop()
4918
    oprot.writeStructEnd()
4919
 
4920
  def validate(self):
4921
    return
4922
 
4923
 
4924
  def __repr__(self):
4925
    L = ['%s=%r' % (key, value)
4926
      for key, value in self.__dict__.iteritems()]
4927
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4928
 
4929
  def __eq__(self, other):
4930
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4931
 
4932
  def __ne__(self, other):
4933
    return not (self == other)
4934
 
4935
class getItemNumbers_result:
4936
  """
4937
  Attributes:
4938
   - success
4939
  """
4940
 
4941
  thrift_spec = (
4942
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
4943
  )
4944
 
4945
  def __init__(self, success=None,):
4946
    self.success = success
4947
 
4948
  def read(self, iprot):
4949
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4950
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4951
      return
4952
    iprot.readStructBegin()
4953
    while True:
4954
      (fname, ftype, fid) = iprot.readFieldBegin()
4955
      if ftype == TType.STOP:
4956
        break
4957
      if fid == 0:
4958
        if ftype == TType.LIST:
4959
          self.success = []
5361 mandeep.dh 4960
          (_etype3, _size0) = iprot.readListBegin()
4961
          for _i4 in xrange(_size0):
4962
            _elem5 = iprot.readString();
4963
            self.success.append(_elem5)
4620 amit.gupta 4964
          iprot.readListEnd()
4965
        else:
4966
          iprot.skip(ftype)
4967
      else:
4968
        iprot.skip(ftype)
4969
      iprot.readFieldEnd()
4970
    iprot.readStructEnd()
4971
 
4972
  def write(self, oprot):
4973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4975
      return
4976
    oprot.writeStructBegin('getItemNumbers_result')
4977
    if self.success is not None:
4978
      oprot.writeFieldBegin('success', TType.LIST, 0)
4979
      oprot.writeListBegin(TType.STRING, len(self.success))
5361 mandeep.dh 4980
      for iter6 in self.success:
4981
        oprot.writeString(iter6)
4620 amit.gupta 4982
      oprot.writeListEnd()
4983
      oprot.writeFieldEnd()
4984
    oprot.writeFieldStop()
4985
    oprot.writeStructEnd()
4986
 
4987
  def validate(self):
4988
    return
4989
 
4990
 
4991
  def __repr__(self):
4992
    L = ['%s=%r' % (key, value)
4993
      for key, value in self.__dict__.iteritems()]
4994
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4995
 
4996
  def __eq__(self, other):
4997
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4998
 
4999
  def __ne__(self, other):
5000
    return not (self == other)
5110 mandeep.dh 5001
 
5002
class getItemIds_args:
5003
  """
5004
  Attributes:
5005
   - itemNumber
5006
  """
5007
 
5008
  thrift_spec = (
5009
    None, # 0
5010
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
5011
  )
5012
 
5013
  def __init__(self, itemNumber=None,):
5014
    self.itemNumber = itemNumber
5015
 
5016
  def read(self, iprot):
5017
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5018
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5019
      return
5020
    iprot.readStructBegin()
5021
    while True:
5022
      (fname, ftype, fid) = iprot.readFieldBegin()
5023
      if ftype == TType.STOP:
5024
        break
5025
      if fid == 1:
5026
        if ftype == TType.STRING:
5027
          self.itemNumber = iprot.readString();
5028
        else:
5029
          iprot.skip(ftype)
5030
      else:
5031
        iprot.skip(ftype)
5032
      iprot.readFieldEnd()
5033
    iprot.readStructEnd()
5034
 
5035
  def write(self, oprot):
5036
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5037
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5038
      return
5039
    oprot.writeStructBegin('getItemIds_args')
5040
    if self.itemNumber is not None:
5041
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
5042
      oprot.writeString(self.itemNumber)
5043
      oprot.writeFieldEnd()
5044
    oprot.writeFieldStop()
5045
    oprot.writeStructEnd()
5046
 
5047
  def validate(self):
5048
    return
5049
 
5050
 
5051
  def __repr__(self):
5052
    L = ['%s=%r' % (key, value)
5053
      for key, value in self.__dict__.iteritems()]
5054
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5055
 
5056
  def __eq__(self, other):
5057
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5058
 
5059
  def __ne__(self, other):
5060
    return not (self == other)
5061
 
5062
class getItemIds_result:
5063
  """
5064
  Attributes:
5065
   - success
5066
  """
5067
 
5068
  thrift_spec = (
5069
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5070
  )
5071
 
5072
  def __init__(self, success=None,):
5073
    self.success = success
5074
 
5075
  def read(self, iprot):
5076
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5077
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5078
      return
5079
    iprot.readStructBegin()
5080
    while True:
5081
      (fname, ftype, fid) = iprot.readFieldBegin()
5082
      if ftype == TType.STOP:
5083
        break
5084
      if fid == 0:
5085
        if ftype == TType.LIST:
5086
          self.success = []
5361 mandeep.dh 5087
          (_etype10, _size7) = iprot.readListBegin()
5088
          for _i11 in xrange(_size7):
5089
            _elem12 = iprot.readI64();
5090
            self.success.append(_elem12)
5110 mandeep.dh 5091
          iprot.readListEnd()
5092
        else:
5093
          iprot.skip(ftype)
5094
      else:
5095
        iprot.skip(ftype)
5096
      iprot.readFieldEnd()
5097
    iprot.readStructEnd()
5098
 
5099
  def write(self, oprot):
5100
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5101
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5102
      return
5103
    oprot.writeStructBegin('getItemIds_result')
5104
    if self.success is not None:
5105
      oprot.writeFieldBegin('success', TType.LIST, 0)
5106
      oprot.writeListBegin(TType.I64, len(self.success))
5361 mandeep.dh 5107
      for iter13 in self.success:
5108
        oprot.writeI64(iter13)
5110 mandeep.dh 5109
      oprot.writeListEnd()
5110
      oprot.writeFieldEnd()
5111
    oprot.writeFieldStop()
5112
    oprot.writeStructEnd()
5113
 
5114
  def validate(self):
5115
    return
5116
 
5117
 
5118
  def __repr__(self):
5119
    L = ['%s=%r' % (key, value)
5120
      for key, value in self.__dict__.iteritems()]
5121
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5122
 
5123
  def __eq__(self, other):
5124
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5125
 
5126
  def __ne__(self, other):
5127
    return not (self == other)
5185 mandeep.dh 5128
 
5129
class getInventoryItemsFromLastScanType_args:
5130
  """
5131
  Attributes:
5132
   - lastScanType
5133
  """
5134
 
5135
  thrift_spec = (
5136
    None, # 0
5137
    (1, TType.I32, 'lastScanType', None, None, ), # 1
5138
  )
5139
 
5140
  def __init__(self, lastScanType=None,):
5141
    self.lastScanType = lastScanType
5142
 
5143
  def read(self, iprot):
5144
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5145
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5146
      return
5147
    iprot.readStructBegin()
5148
    while True:
5149
      (fname, ftype, fid) = iprot.readFieldBegin()
5150
      if ftype == TType.STOP:
5151
        break
5152
      if fid == 1:
5153
        if ftype == TType.I32:
5154
          self.lastScanType = iprot.readI32();
5155
        else:
5156
          iprot.skip(ftype)
5157
      else:
5158
        iprot.skip(ftype)
5159
      iprot.readFieldEnd()
5160
    iprot.readStructEnd()
5161
 
5162
  def write(self, oprot):
5163
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5164
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5165
      return
5166
    oprot.writeStructBegin('getInventoryItemsFromLastScanType_args')
5167
    if self.lastScanType is not None:
5168
      oprot.writeFieldBegin('lastScanType', TType.I32, 1)
5169
      oprot.writeI32(self.lastScanType)
5170
      oprot.writeFieldEnd()
5171
    oprot.writeFieldStop()
5172
    oprot.writeStructEnd()
5173
 
5174
  def validate(self):
5175
    return
5176
 
5177
 
5178
  def __repr__(self):
5179
    L = ['%s=%r' % (key, value)
5180
      for key, value in self.__dict__.iteritems()]
5181
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5182
 
5183
  def __eq__(self, other):
5184
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5185
 
5186
  def __ne__(self, other):
5187
    return not (self == other)
5188
 
5189
class getInventoryItemsFromLastScanType_result:
5190
  """
5191
  Attributes:
5192
   - success
5193
   - wex
5194
  """
5195
 
5196
  thrift_spec = (
5197
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
5198
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
5199
  )
5200
 
5201
  def __init__(self, success=None, wex=None,):
5202
    self.success = success
5203
    self.wex = wex
5204
 
5205
  def read(self, iprot):
5206
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5207
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5208
      return
5209
    iprot.readStructBegin()
5210
    while True:
5211
      (fname, ftype, fid) = iprot.readFieldBegin()
5212
      if ftype == TType.STOP:
5213
        break
5214
      if fid == 0:
5215
        if ftype == TType.LIST:
5216
          self.success = []
5361 mandeep.dh 5217
          (_etype17, _size14) = iprot.readListBegin()
5218
          for _i18 in xrange(_size14):
5219
            _elem19 = InventoryItem()
5220
            _elem19.read(iprot)
5221
            self.success.append(_elem19)
5185 mandeep.dh 5222
          iprot.readListEnd()
5223
        else:
5224
          iprot.skip(ftype)
5225
      elif fid == 1:
5226
        if ftype == TType.STRUCT:
5227
          self.wex = WarehouseServiceException()
5228
          self.wex.read(iprot)
5229
        else:
5230
          iprot.skip(ftype)
5231
      else:
5232
        iprot.skip(ftype)
5233
      iprot.readFieldEnd()
5234
    iprot.readStructEnd()
5235
 
5236
  def write(self, oprot):
5237
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5238
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5239
      return
5240
    oprot.writeStructBegin('getInventoryItemsFromLastScanType_result')
5241
    if self.success is not None:
5242
      oprot.writeFieldBegin('success', TType.LIST, 0)
5243
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5361 mandeep.dh 5244
      for iter20 in self.success:
5245
        iter20.write(oprot)
5185 mandeep.dh 5246
      oprot.writeListEnd()
5247
      oprot.writeFieldEnd()
5248
    if self.wex is not None:
5249
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
5250
      self.wex.write(oprot)
5251
      oprot.writeFieldEnd()
5252
    oprot.writeFieldStop()
5253
    oprot.writeStructEnd()
5254
 
5255
  def validate(self):
5256
    return
5257
 
5258
 
5259
  def __repr__(self):
5260
    L = ['%s=%r' % (key, value)
5261
      for key, value in self.__dict__.iteritems()]
5262
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5263
 
5264
  def __eq__(self, other):
5265
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5266
 
5267
  def __ne__(self, other):
5268
    return not (self == other)
5269
 
5270
class getInventoryItemFromId_args:
5271
  """
5272
  Attributes:
5273
   - inventoryItemId
5274
  """
5275
 
5276
  thrift_spec = (
5277
    None, # 0
5278
    (1, TType.I64, 'inventoryItemId', None, None, ), # 1
5279
  )
5280
 
5281
  def __init__(self, inventoryItemId=None,):
5282
    self.inventoryItemId = inventoryItemId
5283
 
5284
  def read(self, iprot):
5285
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5286
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5287
      return
5288
    iprot.readStructBegin()
5289
    while True:
5290
      (fname, ftype, fid) = iprot.readFieldBegin()
5291
      if ftype == TType.STOP:
5292
        break
5293
      if fid == 1:
5294
        if ftype == TType.I64:
5295
          self.inventoryItemId = iprot.readI64();
5296
        else:
5297
          iprot.skip(ftype)
5298
      else:
5299
        iprot.skip(ftype)
5300
      iprot.readFieldEnd()
5301
    iprot.readStructEnd()
5302
 
5303
  def write(self, oprot):
5304
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5305
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5306
      return
5307
    oprot.writeStructBegin('getInventoryItemFromId_args')
5308
    if self.inventoryItemId is not None:
5309
      oprot.writeFieldBegin('inventoryItemId', TType.I64, 1)
5310
      oprot.writeI64(self.inventoryItemId)
5311
      oprot.writeFieldEnd()
5312
    oprot.writeFieldStop()
5313
    oprot.writeStructEnd()
5314
 
5315
  def validate(self):
5316
    return
5317
 
5318
 
5319
  def __repr__(self):
5320
    L = ['%s=%r' % (key, value)
5321
      for key, value in self.__dict__.iteritems()]
5322
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5323
 
5324
  def __eq__(self, other):
5325
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5326
 
5327
  def __ne__(self, other):
5328
    return not (self == other)
5329
 
5330
class getInventoryItemFromId_result:
5331
  """
5332
  Attributes:
5333
   - success
5334
   - wex
5335
  """
5336
 
5337
  thrift_spec = (
5338
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
5339
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
5340
  )
5341
 
5342
  def __init__(self, success=None, wex=None,):
5343
    self.success = success
5344
    self.wex = wex
5345
 
5346
  def read(self, iprot):
5347
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5348
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5349
      return
5350
    iprot.readStructBegin()
5351
    while True:
5352
      (fname, ftype, fid) = iprot.readFieldBegin()
5353
      if ftype == TType.STOP:
5354
        break
5355
      if fid == 0:
5356
        if ftype == TType.STRUCT:
5357
          self.success = InventoryItem()
5358
          self.success.read(iprot)
5359
        else:
5360
          iprot.skip(ftype)
5361
      elif fid == 1:
5362
        if ftype == TType.STRUCT:
5363
          self.wex = WarehouseServiceException()
5364
          self.wex.read(iprot)
5365
        else:
5366
          iprot.skip(ftype)
5367
      else:
5368
        iprot.skip(ftype)
5369
      iprot.readFieldEnd()
5370
    iprot.readStructEnd()
5371
 
5372
  def write(self, oprot):
5373
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5374
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5375
      return
5376
    oprot.writeStructBegin('getInventoryItemFromId_result')
5377
    if self.success is not None:
5378
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5379
      self.success.write(oprot)
5380
      oprot.writeFieldEnd()
5381
    if self.wex is not None:
5382
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
5383
      self.wex.write(oprot)
5384
      oprot.writeFieldEnd()
5385
    oprot.writeFieldStop()
5386
    oprot.writeStructEnd()
5387
 
5388
  def validate(self):
5389
    return
5390
 
5391
 
5392
  def __repr__(self):
5393
    L = ['%s=%r' % (key, value)
5394
      for key, value in self.__dict__.iteritems()]
5395
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5396
 
5397
  def __eq__(self, other):
5398
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5399
 
5400
  def __ne__(self, other):
5401
    return not (self == other)
5372 mandeep.dh 5402
 
5403
class getPurchaseScans_args:
5404
  """
5405
  Attributes:
5406
   - startDate
5407
   - endDate
5408
  """
5409
 
5410
  thrift_spec = (
5411
    None, # 0
5412
    (1, TType.I64, 'startDate', None, None, ), # 1
5413
    (2, TType.I64, 'endDate', None, None, ), # 2
5414
  )
5415
 
5416
  def __init__(self, startDate=None, endDate=None,):
5417
    self.startDate = startDate
5418
    self.endDate = endDate
5419
 
5420
  def read(self, iprot):
5421
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5422
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5423
      return
5424
    iprot.readStructBegin()
5425
    while True:
5426
      (fname, ftype, fid) = iprot.readFieldBegin()
5427
      if ftype == TType.STOP:
5428
        break
5429
      if fid == 1:
5430
        if ftype == TType.I64:
5431
          self.startDate = iprot.readI64();
5432
        else:
5433
          iprot.skip(ftype)
5434
      elif fid == 2:
5435
        if ftype == TType.I64:
5436
          self.endDate = iprot.readI64();
5437
        else:
5438
          iprot.skip(ftype)
5439
      else:
5440
        iprot.skip(ftype)
5441
      iprot.readFieldEnd()
5442
    iprot.readStructEnd()
5443
 
5444
  def write(self, oprot):
5445
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5446
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5447
      return
5448
    oprot.writeStructBegin('getPurchaseScans_args')
5449
    if self.startDate is not None:
5450
      oprot.writeFieldBegin('startDate', TType.I64, 1)
5451
      oprot.writeI64(self.startDate)
5452
      oprot.writeFieldEnd()
5453
    if self.endDate is not None:
5454
      oprot.writeFieldBegin('endDate', TType.I64, 2)
5455
      oprot.writeI64(self.endDate)
5456
      oprot.writeFieldEnd()
5457
    oprot.writeFieldStop()
5458
    oprot.writeStructEnd()
5459
 
5460
  def validate(self):
5461
    return
5462
 
5463
 
5464
  def __repr__(self):
5465
    L = ['%s=%r' % (key, value)
5466
      for key, value in self.__dict__.iteritems()]
5467
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5468
 
5469
  def __eq__(self, other):
5470
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5471
 
5472
  def __ne__(self, other):
5473
    return not (self == other)
5474
 
5475
class getPurchaseScans_result:
5476
  """
5477
  Attributes:
5478
   - success
5479
  """
5480
 
5481
  thrift_spec = (
5482
    (0, TType.LIST, 'success', (TType.STRUCT,(DetailedPurchaseScan, DetailedPurchaseScan.thrift_spec)), None, ), # 0
5483
  )
5484
 
5485
  def __init__(self, success=None,):
5486
    self.success = success
5487
 
5488
  def read(self, iprot):
5489
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5490
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5491
      return
5492
    iprot.readStructBegin()
5493
    while True:
5494
      (fname, ftype, fid) = iprot.readFieldBegin()
5495
      if ftype == TType.STOP:
5496
        break
5497
      if fid == 0:
5498
        if ftype == TType.LIST:
5499
          self.success = []
5500
          (_etype24, _size21) = iprot.readListBegin()
5501
          for _i25 in xrange(_size21):
5502
            _elem26 = DetailedPurchaseScan()
5503
            _elem26.read(iprot)
5504
            self.success.append(_elem26)
5505
          iprot.readListEnd()
5506
        else:
5507
          iprot.skip(ftype)
5508
      else:
5509
        iprot.skip(ftype)
5510
      iprot.readFieldEnd()
5511
    iprot.readStructEnd()
5512
 
5513
  def write(self, oprot):
5514
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5515
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5516
      return
5517
    oprot.writeStructBegin('getPurchaseScans_result')
5518
    if self.success is not None:
5519
      oprot.writeFieldBegin('success', TType.LIST, 0)
5520
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5521
      for iter27 in self.success:
5522
        iter27.write(oprot)
5523
      oprot.writeListEnd()
5524
      oprot.writeFieldEnd()
5525
    oprot.writeFieldStop()
5526
    oprot.writeStructEnd()
5527
 
5528
  def validate(self):
5529
    return
5530
 
5531
 
5532
  def __repr__(self):
5533
    L = ['%s=%r' % (key, value)
5534
      for key, value in self.__dict__.iteritems()]
5535
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5536
 
5537
  def __eq__(self, other):
5538
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5539
 
5540
  def __ne__(self, other):
5541
    return not (self == other)
5496 mandeep.dh 5542
 
7216 amar.kumar 5543
class getPurchaseScansByGrnDate_args:
5544
  """
5545
  Attributes:
5546
   - startDate
5547
   - endDate
5548
  """
5549
 
5550
  thrift_spec = (
5551
    None, # 0
5552
    (1, TType.I64, 'startDate', None, None, ), # 1
5553
    (2, TType.I64, 'endDate', None, None, ), # 2
5554
  )
5555
 
5556
  def __init__(self, startDate=None, endDate=None,):
5557
    self.startDate = startDate
5558
    self.endDate = endDate
5559
 
5560
  def read(self, iprot):
5561
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5562
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5563
      return
5564
    iprot.readStructBegin()
5565
    while True:
5566
      (fname, ftype, fid) = iprot.readFieldBegin()
5567
      if ftype == TType.STOP:
5568
        break
5569
      if fid == 1:
5570
        if ftype == TType.I64:
5571
          self.startDate = iprot.readI64();
5572
        else:
5573
          iprot.skip(ftype)
5574
      elif fid == 2:
5575
        if ftype == TType.I64:
5576
          self.endDate = iprot.readI64();
5577
        else:
5578
          iprot.skip(ftype)
5579
      else:
5580
        iprot.skip(ftype)
5581
      iprot.readFieldEnd()
5582
    iprot.readStructEnd()
5583
 
5584
  def write(self, oprot):
5585
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5586
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5587
      return
5588
    oprot.writeStructBegin('getPurchaseScansByGrnDate_args')
5589
    if self.startDate is not None:
5590
      oprot.writeFieldBegin('startDate', TType.I64, 1)
5591
      oprot.writeI64(self.startDate)
5592
      oprot.writeFieldEnd()
5593
    if self.endDate is not None:
5594
      oprot.writeFieldBegin('endDate', TType.I64, 2)
5595
      oprot.writeI64(self.endDate)
5596
      oprot.writeFieldEnd()
5597
    oprot.writeFieldStop()
5598
    oprot.writeStructEnd()
5599
 
5600
  def validate(self):
5601
    return
5602
 
5603
 
5604
  def __repr__(self):
5605
    L = ['%s=%r' % (key, value)
5606
      for key, value in self.__dict__.iteritems()]
5607
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5608
 
5609
  def __eq__(self, other):
5610
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5611
 
5612
  def __ne__(self, other):
5613
    return not (self == other)
5614
 
5615
class getPurchaseScansByGrnDate_result:
5616
  """
5617
  Attributes:
5618
   - success
5619
  """
5620
 
5621
  thrift_spec = (
5622
    (0, TType.LIST, 'success', (TType.STRUCT,(DetailedPurchaseScan, DetailedPurchaseScan.thrift_spec)), None, ), # 0
5623
  )
5624
 
5625
  def __init__(self, success=None,):
5626
    self.success = success
5627
 
5628
  def read(self, iprot):
5629
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5630
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5631
      return
5632
    iprot.readStructBegin()
5633
    while True:
5634
      (fname, ftype, fid) = iprot.readFieldBegin()
5635
      if ftype == TType.STOP:
5636
        break
5637
      if fid == 0:
5638
        if ftype == TType.LIST:
5639
          self.success = []
5640
          (_etype31, _size28) = iprot.readListBegin()
5641
          for _i32 in xrange(_size28):
5642
            _elem33 = DetailedPurchaseScan()
5643
            _elem33.read(iprot)
5644
            self.success.append(_elem33)
5645
          iprot.readListEnd()
5646
        else:
5647
          iprot.skip(ftype)
5648
      else:
5649
        iprot.skip(ftype)
5650
      iprot.readFieldEnd()
5651
    iprot.readStructEnd()
5652
 
5653
  def write(self, oprot):
5654
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5655
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5656
      return
5657
    oprot.writeStructBegin('getPurchaseScansByGrnDate_result')
5658
    if self.success is not None:
5659
      oprot.writeFieldBegin('success', TType.LIST, 0)
5660
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5661
      for iter34 in self.success:
5662
        iter34.write(oprot)
5663
      oprot.writeListEnd()
5664
      oprot.writeFieldEnd()
5665
    oprot.writeFieldStop()
5666
    oprot.writeStructEnd()
5667
 
5668
  def validate(self):
5669
    return
5670
 
5671
 
5672
  def __repr__(self):
5673
    L = ['%s=%r' % (key, value)
5674
      for key, value in self.__dict__.iteritems()]
5675
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5676
 
5677
  def __eq__(self, other):
5678
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5679
 
5680
  def __ne__(self, other):
5681
    return not (self == other)
5682
 
10407 amar.kumar 5683
class getEmptyGrnsByDate_args:
5684
  """
5685
  Attributes:
5686
   - startDate
5687
   - endDate
5688
  """
5689
 
5690
  thrift_spec = (
5691
    None, # 0
5692
    (1, TType.I64, 'startDate', None, None, ), # 1
5693
    (2, TType.I64, 'endDate', None, None, ), # 2
5694
  )
5695
 
5696
  def __init__(self, startDate=None, endDate=None,):
5697
    self.startDate = startDate
5698
    self.endDate = endDate
5699
 
5700
  def read(self, iprot):
5701
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5702
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5703
      return
5704
    iprot.readStructBegin()
5705
    while True:
5706
      (fname, ftype, fid) = iprot.readFieldBegin()
5707
      if ftype == TType.STOP:
5708
        break
5709
      if fid == 1:
5710
        if ftype == TType.I64:
5711
          self.startDate = iprot.readI64();
5712
        else:
5713
          iprot.skip(ftype)
5714
      elif fid == 2:
5715
        if ftype == TType.I64:
5716
          self.endDate = iprot.readI64();
5717
        else:
5718
          iprot.skip(ftype)
5719
      else:
5720
        iprot.skip(ftype)
5721
      iprot.readFieldEnd()
5722
    iprot.readStructEnd()
5723
 
5724
  def write(self, oprot):
5725
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5726
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5727
      return
5728
    oprot.writeStructBegin('getEmptyGrnsByDate_args')
5729
    if self.startDate is not None:
5730
      oprot.writeFieldBegin('startDate', TType.I64, 1)
5731
      oprot.writeI64(self.startDate)
5732
      oprot.writeFieldEnd()
5733
    if self.endDate is not None:
5734
      oprot.writeFieldBegin('endDate', TType.I64, 2)
5735
      oprot.writeI64(self.endDate)
5736
      oprot.writeFieldEnd()
5737
    oprot.writeFieldStop()
5738
    oprot.writeStructEnd()
5739
 
5740
  def validate(self):
5741
    return
5742
 
5743
 
5744
  def __repr__(self):
5745
    L = ['%s=%r' % (key, value)
5746
      for key, value in self.__dict__.iteritems()]
5747
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5748
 
5749
  def __eq__(self, other):
5750
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5751
 
5752
  def __ne__(self, other):
5753
    return not (self == other)
5754
 
5755
class getEmptyGrnsByDate_result:
5756
  """
5757
  Attributes:
5758
   - success
5759
  """
5760
 
5761
  thrift_spec = (
5762
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5763
  )
5764
 
5765
  def __init__(self, success=None,):
5766
    self.success = success
5767
 
5768
  def read(self, iprot):
5769
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5770
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5771
      return
5772
    iprot.readStructBegin()
5773
    while True:
5774
      (fname, ftype, fid) = iprot.readFieldBegin()
5775
      if ftype == TType.STOP:
5776
        break
5777
      if fid == 0:
5778
        if ftype == TType.LIST:
5779
          self.success = []
5780
          (_etype38, _size35) = iprot.readListBegin()
5781
          for _i39 in xrange(_size35):
5782
            _elem40 = iprot.readI64();
5783
            self.success.append(_elem40)
5784
          iprot.readListEnd()
5785
        else:
5786
          iprot.skip(ftype)
5787
      else:
5788
        iprot.skip(ftype)
5789
      iprot.readFieldEnd()
5790
    iprot.readStructEnd()
5791
 
5792
  def write(self, oprot):
5793
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5794
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5795
      return
5796
    oprot.writeStructBegin('getEmptyGrnsByDate_result')
5797
    if self.success is not None:
5798
      oprot.writeFieldBegin('success', TType.LIST, 0)
5799
      oprot.writeListBegin(TType.I64, len(self.success))
5800
      for iter41 in self.success:
5801
        oprot.writeI64(iter41)
5802
      oprot.writeListEnd()
5803
      oprot.writeFieldEnd()
5804
    oprot.writeFieldStop()
5805
    oprot.writeStructEnd()
5806
 
5807
  def validate(self):
5808
    return
5809
 
5810
 
5811
  def __repr__(self):
5812
    L = ['%s=%r' % (key, value)
5813
      for key, value in self.__dict__.iteritems()]
5814
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5815
 
5816
  def __eq__(self, other):
5817
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5818
 
5819
  def __ne__(self, other):
5820
    return not (self == other)
5821
 
5496 mandeep.dh 5822
class fetchScansPerInvoiceNumber_args:
5823
  """
5824
  Attributes:
5825
   - date
5826
  """
5827
 
5828
  thrift_spec = (
5829
    None, # 0
5830
    (1, TType.I64, 'date', None, None, ), # 1
5831
  )
5832
 
5833
  def __init__(self, date=None,):
5834
    self.date = date
5835
 
5836
  def read(self, iprot):
5837
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5838
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5839
      return
5840
    iprot.readStructBegin()
5841
    while True:
5842
      (fname, ftype, fid) = iprot.readFieldBegin()
5843
      if ftype == TType.STOP:
5844
        break
5845
      if fid == 1:
5846
        if ftype == TType.I64:
5847
          self.date = iprot.readI64();
5848
        else:
5849
          iprot.skip(ftype)
5850
      else:
5851
        iprot.skip(ftype)
5852
      iprot.readFieldEnd()
5853
    iprot.readStructEnd()
5854
 
5855
  def write(self, oprot):
5856
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5857
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5858
      return
5859
    oprot.writeStructBegin('fetchScansPerInvoiceNumber_args')
5860
    if self.date is not None:
5861
      oprot.writeFieldBegin('date', TType.I64, 1)
5862
      oprot.writeI64(self.date)
5863
      oprot.writeFieldEnd()
5864
    oprot.writeFieldStop()
5865
    oprot.writeStructEnd()
5866
 
5867
  def validate(self):
5868
    return
5869
 
5870
 
5871
  def __repr__(self):
5872
    L = ['%s=%r' % (key, value)
5873
      for key, value in self.__dict__.iteritems()]
5874
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5875
 
5876
  def __eq__(self, other):
5877
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5878
 
5879
  def __ne__(self, other):
5880
    return not (self == other)
5881
 
5882
class fetchScansPerInvoiceNumber_result:
5883
  """
5884
  Attributes:
5885
   - success
5886
  """
5887
 
5888
  thrift_spec = (
5889
    (0, TType.LIST, 'success', (TType.STRUCT,(InvoiceScan, InvoiceScan.thrift_spec)), None, ), # 0
5890
  )
5891
 
5892
  def __init__(self, success=None,):
5893
    self.success = success
5894
 
5895
  def read(self, iprot):
5896
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5897
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5898
      return
5899
    iprot.readStructBegin()
5900
    while True:
5901
      (fname, ftype, fid) = iprot.readFieldBegin()
5902
      if ftype == TType.STOP:
5903
        break
5904
      if fid == 0:
5905
        if ftype == TType.LIST:
5906
          self.success = []
10407 amar.kumar 5907
          (_etype45, _size42) = iprot.readListBegin()
5908
          for _i46 in xrange(_size42):
5909
            _elem47 = InvoiceScan()
5910
            _elem47.read(iprot)
5911
            self.success.append(_elem47)
5496 mandeep.dh 5912
          iprot.readListEnd()
5913
        else:
5914
          iprot.skip(ftype)
5915
      else:
5916
        iprot.skip(ftype)
5917
      iprot.readFieldEnd()
5918
    iprot.readStructEnd()
5919
 
5920
  def write(self, oprot):
5921
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5922
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5923
      return
5924
    oprot.writeStructBegin('fetchScansPerInvoiceNumber_result')
5925
    if self.success is not None:
5926
      oprot.writeFieldBegin('success', TType.LIST, 0)
5927
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 5928
      for iter48 in self.success:
5929
        iter48.write(oprot)
5496 mandeep.dh 5930
      oprot.writeListEnd()
5931
      oprot.writeFieldEnd()
5932
    oprot.writeFieldStop()
5933
    oprot.writeStructEnd()
5934
 
5935
  def validate(self):
5936
    return
5937
 
5938
 
5939
  def __repr__(self):
5940
    L = ['%s=%r' % (key, value)
5941
      for key, value in self.__dict__.iteritems()]
5942
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5943
 
5944
  def __eq__(self, other):
5945
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5946
 
5947
  def __ne__(self, other):
5948
    return not (self == other)
5620 mandeep.dh 5949
 
5950
class getInventoryItemFromOrder_args:
5951
  """
5952
  Attributes:
5953
   - orderId
5954
  """
5955
 
5956
  thrift_spec = (
5957
    None, # 0
5958
    (1, TType.I64, 'orderId', None, None, ), # 1
5959
  )
5960
 
5961
  def __init__(self, orderId=None,):
5962
    self.orderId = orderId
5963
 
5964
  def read(self, iprot):
5965
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5966
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5967
      return
5968
    iprot.readStructBegin()
5969
    while True:
5970
      (fname, ftype, fid) = iprot.readFieldBegin()
5971
      if ftype == TType.STOP:
5972
        break
5973
      if fid == 1:
5974
        if ftype == TType.I64:
5975
          self.orderId = iprot.readI64();
5976
        else:
5977
          iprot.skip(ftype)
5978
      else:
5979
        iprot.skip(ftype)
5980
      iprot.readFieldEnd()
5981
    iprot.readStructEnd()
5982
 
5983
  def write(self, oprot):
5984
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5985
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5986
      return
5987
    oprot.writeStructBegin('getInventoryItemFromOrder_args')
5988
    if self.orderId is not None:
5989
      oprot.writeFieldBegin('orderId', TType.I64, 1)
5990
      oprot.writeI64(self.orderId)
5991
      oprot.writeFieldEnd()
5992
    oprot.writeFieldStop()
5993
    oprot.writeStructEnd()
5994
 
5995
  def validate(self):
5996
    return
5997
 
5998
 
5999
  def __repr__(self):
6000
    L = ['%s=%r' % (key, value)
6001
      for key, value in self.__dict__.iteritems()]
6002
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6003
 
6004
  def __eq__(self, other):
6005
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6006
 
6007
  def __ne__(self, other):
6008
    return not (self == other)
6009
 
6010
class getInventoryItemFromOrder_result:
6011
  """
6012
  Attributes:
6013
   - success
6014
   - we
6015
  """
6016
 
6017
  thrift_spec = (
6018
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
6019
    (1, TType.STRUCT, 'we', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6020
  )
6021
 
6022
  def __init__(self, success=None, we=None,):
6023
    self.success = success
6024
    self.we = we
6025
 
6026
  def read(self, iprot):
6027
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6028
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6029
      return
6030
    iprot.readStructBegin()
6031
    while True:
6032
      (fname, ftype, fid) = iprot.readFieldBegin()
6033
      if ftype == TType.STOP:
6034
        break
6035
      if fid == 0:
6036
        if ftype == TType.STRUCT:
6037
          self.success = InventoryItem()
6038
          self.success.read(iprot)
6039
        else:
6040
          iprot.skip(ftype)
6041
      elif fid == 1:
6042
        if ftype == TType.STRUCT:
6043
          self.we = WarehouseServiceException()
6044
          self.we.read(iprot)
6045
        else:
6046
          iprot.skip(ftype)
6047
      else:
6048
        iprot.skip(ftype)
6049
      iprot.readFieldEnd()
6050
    iprot.readStructEnd()
6051
 
6052
  def write(self, oprot):
6053
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6054
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6055
      return
6056
    oprot.writeStructBegin('getInventoryItemFromOrder_result')
6057
    if self.success is not None:
6058
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6059
      self.success.write(oprot)
6060
      oprot.writeFieldEnd()
6061
    if self.we is not None:
6062
      oprot.writeFieldBegin('we', TType.STRUCT, 1)
6063
      self.we.write(oprot)
6064
      oprot.writeFieldEnd()
6065
    oprot.writeFieldStop()
6066
    oprot.writeStructEnd()
6067
 
6068
  def validate(self):
6069
    return
6070
 
6071
 
6072
  def __repr__(self):
6073
    L = ['%s=%r' % (key, value)
6074
      for key, value in self.__dict__.iteritems()]
6075
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6076
 
6077
  def __eq__(self, other):
6078
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6079
 
6080
  def __ne__(self, other):
6081
    return not (self == other)
5711 mandeep.dh 6082
 
6083
class getInventoryAge_args:
6084
 
6085
  thrift_spec = (
6086
  )
6087
 
6088
  def read(self, iprot):
6089
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6090
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6091
      return
6092
    iprot.readStructBegin()
6093
    while True:
6094
      (fname, ftype, fid) = iprot.readFieldBegin()
6095
      if ftype == TType.STOP:
6096
        break
6097
      else:
6098
        iprot.skip(ftype)
6099
      iprot.readFieldEnd()
6100
    iprot.readStructEnd()
6101
 
6102
  def write(self, oprot):
6103
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6104
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6105
      return
6106
    oprot.writeStructBegin('getInventoryAge_args')
6107
    oprot.writeFieldStop()
6108
    oprot.writeStructEnd()
6109
 
6110
  def validate(self):
6111
    return
6112
 
6113
 
6114
  def __repr__(self):
6115
    L = ['%s=%r' % (key, value)
6116
      for key, value in self.__dict__.iteritems()]
6117
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6118
 
6119
  def __eq__(self, other):
6120
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6121
 
6122
  def __ne__(self, other):
6123
    return not (self == other)
6124
 
6125
class getInventoryAge_result:
6126
  """
6127
  Attributes:
6128
   - success
6129
  """
6130
 
6131
  thrift_spec = (
6132
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAge, InventoryAge.thrift_spec)), None, ), # 0
6133
  )
6134
 
6135
  def __init__(self, success=None,):
6136
    self.success = success
6137
 
6138
  def read(self, iprot):
6139
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6140
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6141
      return
6142
    iprot.readStructBegin()
6143
    while True:
6144
      (fname, ftype, fid) = iprot.readFieldBegin()
6145
      if ftype == TType.STOP:
6146
        break
6147
      if fid == 0:
6148
        if ftype == TType.LIST:
6149
          self.success = []
10407 amar.kumar 6150
          (_etype52, _size49) = iprot.readListBegin()
6151
          for _i53 in xrange(_size49):
6152
            _elem54 = InventoryAge()
6153
            _elem54.read(iprot)
6154
            self.success.append(_elem54)
5711 mandeep.dh 6155
          iprot.readListEnd()
6156
        else:
6157
          iprot.skip(ftype)
6158
      else:
6159
        iprot.skip(ftype)
6160
      iprot.readFieldEnd()
6161
    iprot.readStructEnd()
6162
 
6163
  def write(self, oprot):
6164
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6165
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6166
      return
6167
    oprot.writeStructBegin('getInventoryAge_result')
6168
    if self.success is not None:
6169
      oprot.writeFieldBegin('success', TType.LIST, 0)
6170
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6171
      for iter55 in self.success:
6172
        iter55.write(oprot)
5711 mandeep.dh 6173
      oprot.writeListEnd()
6174
      oprot.writeFieldEnd()
6175
    oprot.writeFieldStop()
6176
    oprot.writeStructEnd()
6177
 
6178
  def validate(self):
6179
    return
6180
 
6181
 
6182
  def __repr__(self):
6183
    L = ['%s=%r' % (key, value)
6184
      for key, value in self.__dict__.iteritems()]
6185
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6186
 
6187
  def __eq__(self, other):
6188
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6189
 
6190
  def __ne__(self, other):
6191
    return not (self == other)
6361 rajveer 6192
 
6193
class getInventoryScansForItem_args:
6194
  """
6195
  Attributes:
6196
   - itemId
6197
   - fromDate
6198
   - toDate
6199
  """
6200
 
6201
  thrift_spec = (
6202
    None, # 0
6203
    (1, TType.I64, 'itemId', None, None, ), # 1
6204
    (2, TType.I64, 'fromDate', None, None, ), # 2
6205
    (3, TType.I64, 'toDate', None, None, ), # 3
6206
  )
6207
 
6208
  def __init__(self, itemId=None, fromDate=None, toDate=None,):
6209
    self.itemId = itemId
6210
    self.fromDate = fromDate
6211
    self.toDate = toDate
6212
 
6213
  def read(self, iprot):
6214
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6215
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6216
      return
6217
    iprot.readStructBegin()
6218
    while True:
6219
      (fname, ftype, fid) = iprot.readFieldBegin()
6220
      if ftype == TType.STOP:
6221
        break
6222
      if fid == 1:
6223
        if ftype == TType.I64:
6224
          self.itemId = iprot.readI64();
6225
        else:
6226
          iprot.skip(ftype)
6227
      elif fid == 2:
6228
        if ftype == TType.I64:
6229
          self.fromDate = iprot.readI64();
6230
        else:
6231
          iprot.skip(ftype)
6232
      elif fid == 3:
6233
        if ftype == TType.I64:
6234
          self.toDate = iprot.readI64();
6235
        else:
6236
          iprot.skip(ftype)
6237
      else:
6238
        iprot.skip(ftype)
6239
      iprot.readFieldEnd()
6240
    iprot.readStructEnd()
6241
 
6242
  def write(self, oprot):
6243
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6244
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6245
      return
6246
    oprot.writeStructBegin('getInventoryScansForItem_args')
6247
    if self.itemId is not None:
6248
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6249
      oprot.writeI64(self.itemId)
6250
      oprot.writeFieldEnd()
6251
    if self.fromDate is not None:
6252
      oprot.writeFieldBegin('fromDate', TType.I64, 2)
6253
      oprot.writeI64(self.fromDate)
6254
      oprot.writeFieldEnd()
6255
    if self.toDate is not None:
6256
      oprot.writeFieldBegin('toDate', TType.I64, 3)
6257
      oprot.writeI64(self.toDate)
6258
      oprot.writeFieldEnd()
6259
    oprot.writeFieldStop()
6260
    oprot.writeStructEnd()
6261
 
6262
  def validate(self):
6263
    return
6264
 
6265
 
6266
  def __repr__(self):
6267
    L = ['%s=%r' % (key, value)
6268
      for key, value in self.__dict__.iteritems()]
6269
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6270
 
6271
  def __eq__(self, other):
6272
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6273
 
6274
  def __ne__(self, other):
6275
    return not (self == other)
6276
 
6277
class getInventoryScansForItem_result:
6278
  """
6279
  Attributes:
6280
   - success
6281
  """
6282
 
6283
  thrift_spec = (
6284
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
6285
  )
6286
 
6287
  def __init__(self, success=None,):
6288
    self.success = success
6289
 
6290
  def read(self, iprot):
6291
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6292
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6293
      return
6294
    iprot.readStructBegin()
6295
    while True:
6296
      (fname, ftype, fid) = iprot.readFieldBegin()
6297
      if ftype == TType.STOP:
6298
        break
6299
      if fid == 0:
6300
        if ftype == TType.LIST:
6301
          self.success = []
10407 amar.kumar 6302
          (_etype59, _size56) = iprot.readListBegin()
6303
          for _i60 in xrange(_size56):
6304
            _elem61 = Scan()
6305
            _elem61.read(iprot)
6306
            self.success.append(_elem61)
6361 rajveer 6307
          iprot.readListEnd()
6308
        else:
6309
          iprot.skip(ftype)
6310
      else:
6311
        iprot.skip(ftype)
6312
      iprot.readFieldEnd()
6313
    iprot.readStructEnd()
6314
 
6315
  def write(self, oprot):
6316
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6317
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6318
      return
6319
    oprot.writeStructBegin('getInventoryScansForItem_result')
6320
    if self.success is not None:
6321
      oprot.writeFieldBegin('success', TType.LIST, 0)
6322
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6323
      for iter62 in self.success:
6324
        iter62.write(oprot)
6361 rajveer 6325
      oprot.writeListEnd()
6326
      oprot.writeFieldEnd()
6327
    oprot.writeFieldStop()
6328
    oprot.writeStructEnd()
6329
 
6330
  def validate(self):
6331
    return
6332
 
6333
 
6334
  def __repr__(self):
6335
    L = ['%s=%r' % (key, value)
6336
      for key, value in self.__dict__.iteritems()]
6337
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6338
 
6339
  def __eq__(self, other):
6340
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6341
 
6342
  def __ne__(self, other):
6343
    return not (self == other)
6344
 
6345
class getScanRecordsForSerialNumber_args:
6346
  """
6347
  Attributes:
6348
   - serialNumber
6349
  """
6350
 
6351
  thrift_spec = (
6352
    None, # 0
7410 amar.kumar 6353
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
6361 rajveer 6354
  )
6355
 
6356
  def __init__(self, serialNumber=None,):
6357
    self.serialNumber = serialNumber
6358
 
6359
  def read(self, iprot):
6360
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6361
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6362
      return
6363
    iprot.readStructBegin()
6364
    while True:
6365
      (fname, ftype, fid) = iprot.readFieldBegin()
6366
      if ftype == TType.STOP:
6367
        break
6368
      if fid == 1:
7410 amar.kumar 6369
        if ftype == TType.STRING:
6370
          self.serialNumber = iprot.readString();
6361 rajveer 6371
        else:
6372
          iprot.skip(ftype)
6373
      else:
6374
        iprot.skip(ftype)
6375
      iprot.readFieldEnd()
6376
    iprot.readStructEnd()
6377
 
6378
  def write(self, oprot):
6379
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6380
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6381
      return
6382
    oprot.writeStructBegin('getScanRecordsForSerialNumber_args')
6383
    if self.serialNumber is not None:
7410 amar.kumar 6384
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
6385
      oprot.writeString(self.serialNumber)
6361 rajveer 6386
      oprot.writeFieldEnd()
6387
    oprot.writeFieldStop()
6388
    oprot.writeStructEnd()
6389
 
6390
  def validate(self):
6391
    return
6392
 
6393
 
6394
  def __repr__(self):
6395
    L = ['%s=%r' % (key, value)
6396
      for key, value in self.__dict__.iteritems()]
6397
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6398
 
6399
  def __eq__(self, other):
6400
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6401
 
6402
  def __ne__(self, other):
6403
    return not (self == other)
6404
 
6405
class getScanRecordsForSerialNumber_result:
6406
  """
6407
  Attributes:
6408
   - success
6409
  """
6410
 
6411
  thrift_spec = (
6412
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
6413
  )
6414
 
6415
  def __init__(self, success=None,):
6416
    self.success = success
6417
 
6418
  def read(self, iprot):
6419
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6420
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6421
      return
6422
    iprot.readStructBegin()
6423
    while True:
6424
      (fname, ftype, fid) = iprot.readFieldBegin()
6425
      if ftype == TType.STOP:
6426
        break
6427
      if fid == 0:
6428
        if ftype == TType.LIST:
6429
          self.success = []
10407 amar.kumar 6430
          (_etype66, _size63) = iprot.readListBegin()
6431
          for _i67 in xrange(_size63):
6432
            _elem68 = Scan()
6433
            _elem68.read(iprot)
6434
            self.success.append(_elem68)
6361 rajveer 6435
          iprot.readListEnd()
6436
        else:
6437
          iprot.skip(ftype)
6438
      else:
6439
        iprot.skip(ftype)
6440
      iprot.readFieldEnd()
6441
    iprot.readStructEnd()
6442
 
6443
  def write(self, oprot):
6444
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6445
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6446
      return
6447
    oprot.writeStructBegin('getScanRecordsForSerialNumber_result')
6448
    if self.success is not None:
6449
      oprot.writeFieldBegin('success', TType.LIST, 0)
6450
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6451
      for iter69 in self.success:
6452
        iter69.write(oprot)
6361 rajveer 6453
      oprot.writeListEnd()
6454
      oprot.writeFieldEnd()
6455
    oprot.writeFieldStop()
6456
    oprot.writeStructEnd()
6457
 
6458
  def validate(self):
6459
    return
6460
 
6461
 
6462
  def __repr__(self):
6463
    L = ['%s=%r' % (key, value)
6464
      for key, value in self.__dict__.iteritems()]
6465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6466
 
6467
  def __eq__(self, other):
6468
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6469
 
6470
  def __ne__(self, other):
6471
    return not (self == other)
6467 amar.kumar 6472
 
6473
class scanForPurchaseReturn_args:
6474
  """
6475
  Attributes:
6476
   - saleReturnItems
6477
   - vendorId
7718 amar.kumar 6478
   - billingWarehouseId
6467 amar.kumar 6479
  """
6480
 
6481
  thrift_spec = (
6482
    None, # 0
6483
    (1, TType.LIST, 'saleReturnItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
6484
    (2, TType.I64, 'vendorId', None, None, ), # 2
7718 amar.kumar 6485
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
6467 amar.kumar 6486
  )
6487
 
7718 amar.kumar 6488
  def __init__(self, saleReturnItems=None, vendorId=None, billingWarehouseId=None,):
6467 amar.kumar 6489
    self.saleReturnItems = saleReturnItems
6490
    self.vendorId = vendorId
7718 amar.kumar 6491
    self.billingWarehouseId = billingWarehouseId
6467 amar.kumar 6492
 
6493
  def read(self, iprot):
6494
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6495
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6496
      return
6497
    iprot.readStructBegin()
6498
    while True:
6499
      (fname, ftype, fid) = iprot.readFieldBegin()
6500
      if ftype == TType.STOP:
6501
        break
6502
      if fid == 1:
6503
        if ftype == TType.LIST:
6504
          self.saleReturnItems = []
10407 amar.kumar 6505
          (_etype73, _size70) = iprot.readListBegin()
6506
          for _i74 in xrange(_size70):
6507
            _elem75 = InventoryItem()
6508
            _elem75.read(iprot)
6509
            self.saleReturnItems.append(_elem75)
6467 amar.kumar 6510
          iprot.readListEnd()
6511
        else:
6512
          iprot.skip(ftype)
6513
      elif fid == 2:
6514
        if ftype == TType.I64:
6515
          self.vendorId = iprot.readI64();
6516
        else:
6517
          iprot.skip(ftype)
7718 amar.kumar 6518
      elif fid == 3:
6519
        if ftype == TType.I64:
6520
          self.billingWarehouseId = iprot.readI64();
6521
        else:
6522
          iprot.skip(ftype)
6467 amar.kumar 6523
      else:
6524
        iprot.skip(ftype)
6525
      iprot.readFieldEnd()
6526
    iprot.readStructEnd()
6527
 
6528
  def write(self, oprot):
6529
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6530
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6531
      return
6532
    oprot.writeStructBegin('scanForPurchaseReturn_args')
6533
    if self.saleReturnItems is not None:
6534
      oprot.writeFieldBegin('saleReturnItems', TType.LIST, 1)
6535
      oprot.writeListBegin(TType.STRUCT, len(self.saleReturnItems))
10407 amar.kumar 6536
      for iter76 in self.saleReturnItems:
6537
        iter76.write(oprot)
6467 amar.kumar 6538
      oprot.writeListEnd()
6539
      oprot.writeFieldEnd()
6540
    if self.vendorId is not None:
6541
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6542
      oprot.writeI64(self.vendorId)
6543
      oprot.writeFieldEnd()
7718 amar.kumar 6544
    if self.billingWarehouseId is not None:
6545
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
6546
      oprot.writeI64(self.billingWarehouseId)
6547
      oprot.writeFieldEnd()
6467 amar.kumar 6548
    oprot.writeFieldStop()
6549
    oprot.writeStructEnd()
6550
 
6551
  def validate(self):
6552
    return
6553
 
6554
 
6555
  def __repr__(self):
6556
    L = ['%s=%r' % (key, value)
6557
      for key, value in self.__dict__.iteritems()]
6558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6559
 
6560
  def __eq__(self, other):
6561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6562
 
6563
  def __ne__(self, other):
6564
    return not (self == other)
6565
 
6566
class scanForPurchaseReturn_result:
6567
  """
6568
  Attributes:
10864 manish.sha 6569
   - success
6467 amar.kumar 6570
   - ex
6571
  """
6572
 
6573
  thrift_spec = (
10864 manish.sha 6574
    (0, TType.I64, 'success', None, None, ), # 0
6467 amar.kumar 6575
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6576
  )
6577
 
10864 manish.sha 6578
  def __init__(self, success=None, ex=None,):
6579
    self.success = success
6467 amar.kumar 6580
    self.ex = ex
6581
 
6582
  def read(self, iprot):
6583
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6584
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6585
      return
6586
    iprot.readStructBegin()
6587
    while True:
6588
      (fname, ftype, fid) = iprot.readFieldBegin()
6589
      if ftype == TType.STOP:
6590
        break
10864 manish.sha 6591
      if fid == 0:
6592
        if ftype == TType.I64:
6593
          self.success = iprot.readI64();
6594
        else:
6595
          iprot.skip(ftype)
6596
      elif fid == 1:
6467 amar.kumar 6597
        if ftype == TType.STRUCT:
6598
          self.ex = WarehouseServiceException()
6599
          self.ex.read(iprot)
6600
        else:
6601
          iprot.skip(ftype)
6602
      else:
6603
        iprot.skip(ftype)
6604
      iprot.readFieldEnd()
6605
    iprot.readStructEnd()
6606
 
6607
  def write(self, oprot):
6608
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6609
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6610
      return
6611
    oprot.writeStructBegin('scanForPurchaseReturn_result')
10864 manish.sha 6612
    if self.success is not None:
6613
      oprot.writeFieldBegin('success', TType.I64, 0)
6614
      oprot.writeI64(self.success)
6615
      oprot.writeFieldEnd()
6467 amar.kumar 6616
    if self.ex is not None:
6617
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6618
      self.ex.write(oprot)
6619
      oprot.writeFieldEnd()
6620
    oprot.writeFieldStop()
6621
    oprot.writeStructEnd()
6622
 
6623
  def validate(self):
6624
    return
6625
 
6626
 
6627
  def __repr__(self):
6628
    L = ['%s=%r' % (key, value)
6629
      for key, value in self.__dict__.iteritems()]
6630
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6631
 
6632
  def __eq__(self, other):
6633
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6634
 
6635
  def __ne__(self, other):
6636
    return not (self == other)
6630 amar.kumar 6637
 
6638
class scanForLostItem_args:
6639
  """
6640
  Attributes:
6641
   - lostItems
6642
   - vendorId
7718 amar.kumar 6643
   - billingWarehouseId
6630 amar.kumar 6644
  """
6645
 
6646
  thrift_spec = (
6647
    None, # 0
6648
    (1, TType.LIST, 'lostItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
6649
    (2, TType.I64, 'vendorId', None, None, ), # 2
7718 amar.kumar 6650
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
6630 amar.kumar 6651
  )
6652
 
7718 amar.kumar 6653
  def __init__(self, lostItems=None, vendorId=None, billingWarehouseId=None,):
6630 amar.kumar 6654
    self.lostItems = lostItems
6655
    self.vendorId = vendorId
7718 amar.kumar 6656
    self.billingWarehouseId = billingWarehouseId
6630 amar.kumar 6657
 
6658
  def read(self, iprot):
6659
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6660
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6661
      return
6662
    iprot.readStructBegin()
6663
    while True:
6664
      (fname, ftype, fid) = iprot.readFieldBegin()
6665
      if ftype == TType.STOP:
6666
        break
6667
      if fid == 1:
6668
        if ftype == TType.LIST:
6669
          self.lostItems = []
10407 amar.kumar 6670
          (_etype80, _size77) = iprot.readListBegin()
6671
          for _i81 in xrange(_size77):
6672
            _elem82 = InventoryItem()
6673
            _elem82.read(iprot)
6674
            self.lostItems.append(_elem82)
6630 amar.kumar 6675
          iprot.readListEnd()
6676
        else:
6677
          iprot.skip(ftype)
6678
      elif fid == 2:
6679
        if ftype == TType.I64:
6680
          self.vendorId = iprot.readI64();
6681
        else:
6682
          iprot.skip(ftype)
7718 amar.kumar 6683
      elif fid == 3:
6684
        if ftype == TType.I64:
6685
          self.billingWarehouseId = iprot.readI64();
6686
        else:
6687
          iprot.skip(ftype)
6630 amar.kumar 6688
      else:
6689
        iprot.skip(ftype)
6690
      iprot.readFieldEnd()
6691
    iprot.readStructEnd()
6692
 
6693
  def write(self, oprot):
6694
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6695
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6696
      return
6697
    oprot.writeStructBegin('scanForLostItem_args')
6698
    if self.lostItems is not None:
6699
      oprot.writeFieldBegin('lostItems', TType.LIST, 1)
6700
      oprot.writeListBegin(TType.STRUCT, len(self.lostItems))
10407 amar.kumar 6701
      for iter83 in self.lostItems:
6702
        iter83.write(oprot)
6630 amar.kumar 6703
      oprot.writeListEnd()
6704
      oprot.writeFieldEnd()
6705
    if self.vendorId is not None:
6706
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6707
      oprot.writeI64(self.vendorId)
6708
      oprot.writeFieldEnd()
7718 amar.kumar 6709
    if self.billingWarehouseId is not None:
6710
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
6711
      oprot.writeI64(self.billingWarehouseId)
6712
      oprot.writeFieldEnd()
6630 amar.kumar 6713
    oprot.writeFieldStop()
6714
    oprot.writeStructEnd()
6715
 
6716
  def validate(self):
6717
    return
6718
 
6719
 
6720
  def __repr__(self):
6721
    L = ['%s=%r' % (key, value)
6722
      for key, value in self.__dict__.iteritems()]
6723
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6724
 
6725
  def __eq__(self, other):
6726
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6727
 
6728
  def __ne__(self, other):
6729
    return not (self == other)
6730
 
6731
class scanForLostItem_result:
6732
  """
6733
  Attributes:
6734
   - ex
6735
  """
6736
 
6737
  thrift_spec = (
6738
    None, # 0
6739
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6740
  )
6741
 
6742
  def __init__(self, ex=None,):
6743
    self.ex = ex
6744
 
6745
  def read(self, iprot):
6746
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6747
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6748
      return
6749
    iprot.readStructBegin()
6750
    while True:
6751
      (fname, ftype, fid) = iprot.readFieldBegin()
6752
      if ftype == TType.STOP:
6753
        break
6754
      if fid == 1:
6755
        if ftype == TType.STRUCT:
6756
          self.ex = WarehouseServiceException()
6757
          self.ex.read(iprot)
6758
        else:
6759
          iprot.skip(ftype)
6760
      else:
6761
        iprot.skip(ftype)
6762
      iprot.readFieldEnd()
6763
    iprot.readStructEnd()
6764
 
6765
  def write(self, oprot):
6766
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6767
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6768
      return
6769
    oprot.writeStructBegin('scanForLostItem_result')
6770
    if self.ex is not None:
6771
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6772
      self.ex.write(oprot)
6773
      oprot.writeFieldEnd()
6774
    oprot.writeFieldStop()
6775
    oprot.writeStructEnd()
6776
 
6777
  def validate(self):
6778
    return
6779
 
6780
 
6781
  def __repr__(self):
6782
    L = ['%s=%r' % (key, value)
6783
      for key, value in self.__dict__.iteritems()]
6784
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6785
 
6786
  def __eq__(self, other):
6787
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6788
 
6789
  def __ne__(self, other):
6790
    return not (self == other)
6791
 
6792
class getCurrentSerializedInventoryByScans_args:
7715 vikram.rag 6793
  """
6794
  Attributes:
6795
   - physicalWarehouseId
6796
  """
6630 amar.kumar 6797
 
6798
  thrift_spec = (
7715 vikram.rag 6799
    None, # 0
6800
    (1, TType.I64, 'physicalWarehouseId', None, None, ), # 1
6630 amar.kumar 6801
  )
6802
 
7715 vikram.rag 6803
  def __init__(self, physicalWarehouseId=None,):
6804
    self.physicalWarehouseId = physicalWarehouseId
6805
 
6630 amar.kumar 6806
  def read(self, iprot):
6807
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6808
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6809
      return
6810
    iprot.readStructBegin()
6811
    while True:
6812
      (fname, ftype, fid) = iprot.readFieldBegin()
6813
      if ftype == TType.STOP:
6814
        break
7715 vikram.rag 6815
      if fid == 1:
6816
        if ftype == TType.I64:
6817
          self.physicalWarehouseId = iprot.readI64();
6818
        else:
6819
          iprot.skip(ftype)
6630 amar.kumar 6820
      else:
6821
        iprot.skip(ftype)
6822
      iprot.readFieldEnd()
6823
    iprot.readStructEnd()
6824
 
6825
  def write(self, oprot):
6826
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6827
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6828
      return
6829
    oprot.writeStructBegin('getCurrentSerializedInventoryByScans_args')
7715 vikram.rag 6830
    if self.physicalWarehouseId is not None:
6831
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 1)
6832
      oprot.writeI64(self.physicalWarehouseId)
6833
      oprot.writeFieldEnd()
6630 amar.kumar 6834
    oprot.writeFieldStop()
6835
    oprot.writeStructEnd()
6836
 
6837
  def validate(self):
6838
    return
6839
 
6840
 
6841
  def __repr__(self):
6842
    L = ['%s=%r' % (key, value)
6843
      for key, value in self.__dict__.iteritems()]
6844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6845
 
6846
  def __eq__(self, other):
6847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6848
 
6849
  def __ne__(self, other):
6850
    return not (self == other)
6851
 
6852
class getCurrentSerializedInventoryByScans_result:
6853
  """
6854
  Attributes:
6855
   - success
6856
  """
6857
 
6858
  thrift_spec = (
6859
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
6860
  )
6861
 
6862
  def __init__(self, success=None,):
6863
    self.success = success
6864
 
6865
  def read(self, iprot):
6866
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6867
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6868
      return
6869
    iprot.readStructBegin()
6870
    while True:
6871
      (fname, ftype, fid) = iprot.readFieldBegin()
6872
      if ftype == TType.STOP:
6873
        break
6874
      if fid == 0:
6875
        if ftype == TType.LIST:
6876
          self.success = []
10407 amar.kumar 6877
          (_etype87, _size84) = iprot.readListBegin()
6878
          for _i88 in xrange(_size84):
6879
            _elem89 = InventoryAvailability()
6880
            _elem89.read(iprot)
6881
            self.success.append(_elem89)
6630 amar.kumar 6882
          iprot.readListEnd()
6883
        else:
6884
          iprot.skip(ftype)
6885
      else:
6886
        iprot.skip(ftype)
6887
      iprot.readFieldEnd()
6888
    iprot.readStructEnd()
6889
 
6890
  def write(self, oprot):
6891
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6892
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6893
      return
6894
    oprot.writeStructBegin('getCurrentSerializedInventoryByScans_result')
6895
    if self.success is not None:
6896
      oprot.writeFieldBegin('success', TType.LIST, 0)
6897
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6898
      for iter90 in self.success:
6899
        iter90.write(oprot)
6630 amar.kumar 6900
      oprot.writeListEnd()
6901
      oprot.writeFieldEnd()
6902
    oprot.writeFieldStop()
6903
    oprot.writeStructEnd()
6904
 
6905
  def validate(self):
6906
    return
6907
 
6908
 
6909
  def __repr__(self):
6910
    L = ['%s=%r' % (key, value)
6911
      for key, value in self.__dict__.iteritems()]
6912
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6913
 
6914
  def __eq__(self, other):
6915
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6916
 
6917
  def __ne__(self, other):
6918
    return not (self == other)
6919
 
6920
class getCurrentNonSerializedInventoryByScans_args:
7715 vikram.rag 6921
  """
6922
  Attributes:
6923
   - physicalWarehouseId
6924
  """
6630 amar.kumar 6925
 
6926
  thrift_spec = (
7715 vikram.rag 6927
    None, # 0
6928
    (1, TType.I64, 'physicalWarehouseId', None, None, ), # 1
6630 amar.kumar 6929
  )
6930
 
7715 vikram.rag 6931
  def __init__(self, physicalWarehouseId=None,):
6932
    self.physicalWarehouseId = physicalWarehouseId
6933
 
6630 amar.kumar 6934
  def read(self, iprot):
6935
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6936
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6937
      return
6938
    iprot.readStructBegin()
6939
    while True:
6940
      (fname, ftype, fid) = iprot.readFieldBegin()
6941
      if ftype == TType.STOP:
6942
        break
7715 vikram.rag 6943
      if fid == 1:
6944
        if ftype == TType.I64:
6945
          self.physicalWarehouseId = iprot.readI64();
6946
        else:
6947
          iprot.skip(ftype)
6630 amar.kumar 6948
      else:
6949
        iprot.skip(ftype)
6950
      iprot.readFieldEnd()
6951
    iprot.readStructEnd()
6952
 
6953
  def write(self, oprot):
6954
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6955
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6956
      return
6957
    oprot.writeStructBegin('getCurrentNonSerializedInventoryByScans_args')
7715 vikram.rag 6958
    if self.physicalWarehouseId is not None:
6959
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 1)
6960
      oprot.writeI64(self.physicalWarehouseId)
6961
      oprot.writeFieldEnd()
6630 amar.kumar 6962
    oprot.writeFieldStop()
6963
    oprot.writeStructEnd()
6964
 
6965
  def validate(self):
6966
    return
6967
 
6968
 
6969
  def __repr__(self):
6970
    L = ['%s=%r' % (key, value)
6971
      for key, value in self.__dict__.iteritems()]
6972
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6973
 
6974
  def __eq__(self, other):
6975
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6976
 
6977
  def __ne__(self, other):
6978
    return not (self == other)
6979
 
6980
class getCurrentNonSerializedInventoryByScans_result:
6981
  """
6982
  Attributes:
6983
   - success
6984
  """
6985
 
6986
  thrift_spec = (
6987
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
6988
  )
6989
 
6990
  def __init__(self, success=None,):
6991
    self.success = success
6992
 
6993
  def read(self, iprot):
6994
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6995
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6996
      return
6997
    iprot.readStructBegin()
6998
    while True:
6999
      (fname, ftype, fid) = iprot.readFieldBegin()
7000
      if ftype == TType.STOP:
7001
        break
7002
      if fid == 0:
7003
        if ftype == TType.LIST:
7004
          self.success = []
10407 amar.kumar 7005
          (_etype94, _size91) = iprot.readListBegin()
7006
          for _i95 in xrange(_size91):
7007
            _elem96 = InventoryAvailability()
7008
            _elem96.read(iprot)
7009
            self.success.append(_elem96)
6630 amar.kumar 7010
          iprot.readListEnd()
7011
        else:
7012
          iprot.skip(ftype)
7013
      else:
7014
        iprot.skip(ftype)
7015
      iprot.readFieldEnd()
7016
    iprot.readStructEnd()
7017
 
7018
  def write(self, oprot):
7019
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7020
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7021
      return
7022
    oprot.writeStructBegin('getCurrentNonSerializedInventoryByScans_result')
7023
    if self.success is not None:
7024
      oprot.writeFieldBegin('success', TType.LIST, 0)
7025
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7026
      for iter97 in self.success:
7027
        iter97.write(oprot)
6630 amar.kumar 7028
      oprot.writeListEnd()
7029
      oprot.writeFieldEnd()
7030
    oprot.writeFieldStop()
7031
    oprot.writeStructEnd()
7032
 
7033
  def validate(self):
7034
    return
7035
 
7036
 
7037
  def __repr__(self):
7038
    L = ['%s=%r' % (key, value)
7039
      for key, value in self.__dict__.iteritems()]
7040
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7041
 
7042
  def __eq__(self, other):
7043
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7044
 
7045
  def __ne__(self, other):
7046
    return not (self == other)
6762 amar.kumar 7047
 
7048
class getHistoricSerializedInventoryByScans_args:
7049
  """
7050
  Attributes:
7051
   - date
7052
  """
7053
 
7054
  thrift_spec = (
7055
    None, # 0
7056
    (1, TType.I64, 'date', None, None, ), # 1
7057
  )
7058
 
7059
  def __init__(self, date=None,):
7060
    self.date = date
7061
 
7062
  def read(self, iprot):
7063
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7064
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7065
      return
7066
    iprot.readStructBegin()
7067
    while True:
7068
      (fname, ftype, fid) = iprot.readFieldBegin()
7069
      if ftype == TType.STOP:
7070
        break
7071
      if fid == 1:
7072
        if ftype == TType.I64:
7073
          self.date = iprot.readI64();
7074
        else:
7075
          iprot.skip(ftype)
7076
      else:
7077
        iprot.skip(ftype)
7078
      iprot.readFieldEnd()
7079
    iprot.readStructEnd()
7080
 
7081
  def write(self, oprot):
7082
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7083
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7084
      return
7085
    oprot.writeStructBegin('getHistoricSerializedInventoryByScans_args')
7086
    if self.date is not None:
7087
      oprot.writeFieldBegin('date', TType.I64, 1)
7088
      oprot.writeI64(self.date)
7089
      oprot.writeFieldEnd()
7090
    oprot.writeFieldStop()
7091
    oprot.writeStructEnd()
7092
 
7093
  def validate(self):
7094
    return
7095
 
7096
 
7097
  def __repr__(self):
7098
    L = ['%s=%r' % (key, value)
7099
      for key, value in self.__dict__.iteritems()]
7100
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7101
 
7102
  def __eq__(self, other):
7103
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7104
 
7105
  def __ne__(self, other):
7106
    return not (self == other)
7107
 
7108
class getHistoricSerializedInventoryByScans_result:
7109
  """
7110
  Attributes:
7111
   - success
7112
  """
7113
 
7114
  thrift_spec = (
7115
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7116
  )
7117
 
7118
  def __init__(self, success=None,):
7119
    self.success = success
7120
 
7121
  def read(self, iprot):
7122
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7123
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7124
      return
7125
    iprot.readStructBegin()
7126
    while True:
7127
      (fname, ftype, fid) = iprot.readFieldBegin()
7128
      if ftype == TType.STOP:
7129
        break
7130
      if fid == 0:
7131
        if ftype == TType.LIST:
7132
          self.success = []
10407 amar.kumar 7133
          (_etype101, _size98) = iprot.readListBegin()
7134
          for _i102 in xrange(_size98):
7135
            _elem103 = InventoryAvailability()
7136
            _elem103.read(iprot)
7137
            self.success.append(_elem103)
6762 amar.kumar 7138
          iprot.readListEnd()
7139
        else:
7140
          iprot.skip(ftype)
7141
      else:
7142
        iprot.skip(ftype)
7143
      iprot.readFieldEnd()
7144
    iprot.readStructEnd()
7145
 
7146
  def write(self, oprot):
7147
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7148
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7149
      return
7150
    oprot.writeStructBegin('getHistoricSerializedInventoryByScans_result')
7151
    if self.success is not None:
7152
      oprot.writeFieldBegin('success', TType.LIST, 0)
7153
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7154
      for iter104 in self.success:
7155
        iter104.write(oprot)
6762 amar.kumar 7156
      oprot.writeListEnd()
7157
      oprot.writeFieldEnd()
7158
    oprot.writeFieldStop()
7159
    oprot.writeStructEnd()
7160
 
7161
  def validate(self):
7162
    return
7163
 
7164
 
7165
  def __repr__(self):
7166
    L = ['%s=%r' % (key, value)
7167
      for key, value in self.__dict__.iteritems()]
7168
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7169
 
7170
  def __eq__(self, other):
7171
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7172
 
7173
  def __ne__(self, other):
7174
    return not (self == other)
7175
 
7176
class getHistoricNonSerializedInventoryByScans_args:
7177
  """
7178
  Attributes:
7179
   - date
7180
  """
7181
 
7182
  thrift_spec = (
7183
    None, # 0
7184
    (1, TType.I64, 'date', None, None, ), # 1
7185
  )
7186
 
7187
  def __init__(self, date=None,):
7188
    self.date = date
7189
 
7190
  def read(self, iprot):
7191
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7192
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7193
      return
7194
    iprot.readStructBegin()
7195
    while True:
7196
      (fname, ftype, fid) = iprot.readFieldBegin()
7197
      if ftype == TType.STOP:
7198
        break
7199
      if fid == 1:
7200
        if ftype == TType.I64:
7201
          self.date = iprot.readI64();
7202
        else:
7203
          iprot.skip(ftype)
7204
      else:
7205
        iprot.skip(ftype)
7206
      iprot.readFieldEnd()
7207
    iprot.readStructEnd()
7208
 
7209
  def write(self, oprot):
7210
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7211
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7212
      return
7213
    oprot.writeStructBegin('getHistoricNonSerializedInventoryByScans_args')
7214
    if self.date is not None:
7215
      oprot.writeFieldBegin('date', TType.I64, 1)
7216
      oprot.writeI64(self.date)
7217
      oprot.writeFieldEnd()
7218
    oprot.writeFieldStop()
7219
    oprot.writeStructEnd()
7220
 
7221
  def validate(self):
7222
    return
7223
 
7224
 
7225
  def __repr__(self):
7226
    L = ['%s=%r' % (key, value)
7227
      for key, value in self.__dict__.iteritems()]
7228
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7229
 
7230
  def __eq__(self, other):
7231
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7232
 
7233
  def __ne__(self, other):
7234
    return not (self == other)
7235
 
7236
class getHistoricNonSerializedInventoryByScans_result:
7237
  """
7238
  Attributes:
7239
   - success
7240
  """
7241
 
7242
  thrift_spec = (
7243
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7244
  )
7245
 
7246
  def __init__(self, success=None,):
7247
    self.success = success
7248
 
7249
  def read(self, iprot):
7250
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7251
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7252
      return
7253
    iprot.readStructBegin()
7254
    while True:
7255
      (fname, ftype, fid) = iprot.readFieldBegin()
7256
      if ftype == TType.STOP:
7257
        break
7258
      if fid == 0:
7259
        if ftype == TType.LIST:
7260
          self.success = []
10407 amar.kumar 7261
          (_etype108, _size105) = iprot.readListBegin()
7262
          for _i109 in xrange(_size105):
7263
            _elem110 = InventoryAvailability()
7264
            _elem110.read(iprot)
7265
            self.success.append(_elem110)
6762 amar.kumar 7266
          iprot.readListEnd()
7267
        else:
7268
          iprot.skip(ftype)
7269
      else:
7270
        iprot.skip(ftype)
7271
      iprot.readFieldEnd()
7272
    iprot.readStructEnd()
7273
 
7274
  def write(self, oprot):
7275
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7276
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7277
      return
7278
    oprot.writeStructBegin('getHistoricNonSerializedInventoryByScans_result')
7279
    if self.success is not None:
7280
      oprot.writeFieldBegin('success', TType.LIST, 0)
7281
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7282
      for iter111 in self.success:
7283
        iter111.write(oprot)
6762 amar.kumar 7284
      oprot.writeListEnd()
7285
      oprot.writeFieldEnd()
7286
    oprot.writeFieldStop()
7287
    oprot.writeStructEnd()
7288
 
7289
  def validate(self):
7290
    return
7291
 
7292
 
7293
  def __repr__(self):
7294
    L = ['%s=%r' % (key, value)
7295
      for key, value in self.__dict__.iteritems()]
7296
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7297
 
7298
  def __eq__(self, other):
7299
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7300
 
7301
  def __ne__(self, other):
7302
    return not (self == other)
7303
 
10407 amar.kumar 7304
class getOurHistoricSerializedInventoryByScans_args:
7305
  """
7306
  Attributes:
7307
   - date
7308
  """
7309
 
7310
  thrift_spec = (
7311
    None, # 0
7312
    (1, TType.I64, 'date', None, None, ), # 1
7313
  )
7314
 
7315
  def __init__(self, date=None,):
7316
    self.date = date
7317
 
7318
  def read(self, iprot):
7319
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7320
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7321
      return
7322
    iprot.readStructBegin()
7323
    while True:
7324
      (fname, ftype, fid) = iprot.readFieldBegin()
7325
      if ftype == TType.STOP:
7326
        break
7327
      if fid == 1:
7328
        if ftype == TType.I64:
7329
          self.date = iprot.readI64();
7330
        else:
7331
          iprot.skip(ftype)
7332
      else:
7333
        iprot.skip(ftype)
7334
      iprot.readFieldEnd()
7335
    iprot.readStructEnd()
7336
 
7337
  def write(self, oprot):
7338
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7339
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7340
      return
7341
    oprot.writeStructBegin('getOurHistoricSerializedInventoryByScans_args')
7342
    if self.date is not None:
7343
      oprot.writeFieldBegin('date', TType.I64, 1)
7344
      oprot.writeI64(self.date)
7345
      oprot.writeFieldEnd()
7346
    oprot.writeFieldStop()
7347
    oprot.writeStructEnd()
7348
 
7349
  def validate(self):
7350
    return
7351
 
7352
 
7353
  def __repr__(self):
7354
    L = ['%s=%r' % (key, value)
7355
      for key, value in self.__dict__.iteritems()]
7356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7357
 
7358
  def __eq__(self, other):
7359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7360
 
7361
  def __ne__(self, other):
7362
    return not (self == other)
7363
 
7364
class getOurHistoricSerializedInventoryByScans_result:
7365
  """
7366
  Attributes:
7367
   - success
7368
  """
7369
 
7370
  thrift_spec = (
7371
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7372
  )
7373
 
7374
  def __init__(self, success=None,):
7375
    self.success = success
7376
 
7377
  def read(self, iprot):
7378
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7379
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7380
      return
7381
    iprot.readStructBegin()
7382
    while True:
7383
      (fname, ftype, fid) = iprot.readFieldBegin()
7384
      if ftype == TType.STOP:
7385
        break
7386
      if fid == 0:
7387
        if ftype == TType.LIST:
7388
          self.success = []
7389
          (_etype115, _size112) = iprot.readListBegin()
7390
          for _i116 in xrange(_size112):
7391
            _elem117 = InventoryAvailability()
7392
            _elem117.read(iprot)
7393
            self.success.append(_elem117)
7394
          iprot.readListEnd()
7395
        else:
7396
          iprot.skip(ftype)
7397
      else:
7398
        iprot.skip(ftype)
7399
      iprot.readFieldEnd()
7400
    iprot.readStructEnd()
7401
 
7402
  def write(self, oprot):
7403
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7404
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7405
      return
7406
    oprot.writeStructBegin('getOurHistoricSerializedInventoryByScans_result')
7407
    if self.success is not None:
7408
      oprot.writeFieldBegin('success', TType.LIST, 0)
7409
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7410
      for iter118 in self.success:
7411
        iter118.write(oprot)
7412
      oprot.writeListEnd()
7413
      oprot.writeFieldEnd()
7414
    oprot.writeFieldStop()
7415
    oprot.writeStructEnd()
7416
 
7417
  def validate(self):
7418
    return
7419
 
7420
 
7421
  def __repr__(self):
7422
    L = ['%s=%r' % (key, value)
7423
      for key, value in self.__dict__.iteritems()]
7424
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7425
 
7426
  def __eq__(self, other):
7427
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7428
 
7429
  def __ne__(self, other):
7430
    return not (self == other)
7431
 
7432
class getOurHistoricNonSerializedInventoryByScans_args:
7433
  """
7434
  Attributes:
7435
   - date
7436
  """
7437
 
7438
  thrift_spec = (
7439
    None, # 0
7440
    (1, TType.I64, 'date', None, None, ), # 1
7441
  )
7442
 
7443
  def __init__(self, date=None,):
7444
    self.date = date
7445
 
7446
  def read(self, iprot):
7447
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7448
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7449
      return
7450
    iprot.readStructBegin()
7451
    while True:
7452
      (fname, ftype, fid) = iprot.readFieldBegin()
7453
      if ftype == TType.STOP:
7454
        break
7455
      if fid == 1:
7456
        if ftype == TType.I64:
7457
          self.date = iprot.readI64();
7458
        else:
7459
          iprot.skip(ftype)
7460
      else:
7461
        iprot.skip(ftype)
7462
      iprot.readFieldEnd()
7463
    iprot.readStructEnd()
7464
 
7465
  def write(self, oprot):
7466
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7467
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7468
      return
7469
    oprot.writeStructBegin('getOurHistoricNonSerializedInventoryByScans_args')
7470
    if self.date is not None:
7471
      oprot.writeFieldBegin('date', TType.I64, 1)
7472
      oprot.writeI64(self.date)
7473
      oprot.writeFieldEnd()
7474
    oprot.writeFieldStop()
7475
    oprot.writeStructEnd()
7476
 
7477
  def validate(self):
7478
    return
7479
 
7480
 
7481
  def __repr__(self):
7482
    L = ['%s=%r' % (key, value)
7483
      for key, value in self.__dict__.iteritems()]
7484
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7485
 
7486
  def __eq__(self, other):
7487
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7488
 
7489
  def __ne__(self, other):
7490
    return not (self == other)
7491
 
7492
class getOurHistoricNonSerializedInventoryByScans_result:
7493
  """
7494
  Attributes:
7495
   - success
7496
  """
7497
 
7498
  thrift_spec = (
7499
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7500
  )
7501
 
7502
  def __init__(self, success=None,):
7503
    self.success = success
7504
 
7505
  def read(self, iprot):
7506
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7507
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7508
      return
7509
    iprot.readStructBegin()
7510
    while True:
7511
      (fname, ftype, fid) = iprot.readFieldBegin()
7512
      if ftype == TType.STOP:
7513
        break
7514
      if fid == 0:
7515
        if ftype == TType.LIST:
7516
          self.success = []
7517
          (_etype122, _size119) = iprot.readListBegin()
7518
          for _i123 in xrange(_size119):
7519
            _elem124 = InventoryAvailability()
7520
            _elem124.read(iprot)
7521
            self.success.append(_elem124)
7522
          iprot.readListEnd()
7523
        else:
7524
          iprot.skip(ftype)
7525
      else:
7526
        iprot.skip(ftype)
7527
      iprot.readFieldEnd()
7528
    iprot.readStructEnd()
7529
 
7530
  def write(self, oprot):
7531
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7532
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7533
      return
7534
    oprot.writeStructBegin('getOurHistoricNonSerializedInventoryByScans_result')
7535
    if self.success is not None:
7536
      oprot.writeFieldBegin('success', TType.LIST, 0)
7537
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7538
      for iter125 in self.success:
7539
        iter125.write(oprot)
7540
      oprot.writeListEnd()
7541
      oprot.writeFieldEnd()
7542
    oprot.writeFieldStop()
7543
    oprot.writeStructEnd()
7544
 
7545
  def validate(self):
7546
    return
7547
 
7548
 
7549
  def __repr__(self):
7550
    L = ['%s=%r' % (key, value)
7551
      for key, value in self.__dict__.iteritems()]
7552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7553
 
7554
  def __eq__(self, other):
7555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7556
 
7557
  def __ne__(self, other):
7558
    return not (self == other)
7559
 
6762 amar.kumar 7560
class scanForOursExternalSale_args:
7561
  """
7562
  Attributes:
7563
   - itemId
7564
   - serialNumber
7565
   - itemNumber
7566
   - invoiceNumber
7567
   - warehouseId
7568
   - unitPrice
7672 rajveer 7569
   - nlc
6762 amar.kumar 7570
   - orderId
7571
  """
7572
 
7573
  thrift_spec = (
7574
    None, # 0
7575
    (1, TType.I64, 'itemId', None, None, ), # 1
7576
    (2, TType.STRING, 'serialNumber', None, None, ), # 2
7577
    (3, TType.STRING, 'itemNumber', None, None, ), # 3
7578
    (4, TType.STRING, 'invoiceNumber', None, None, ), # 4
7579
    (5, TType.I64, 'warehouseId', None, None, ), # 5
7580
    (6, TType.DOUBLE, 'unitPrice', None, None, ), # 6
7672 rajveer 7581
    (7, TType.DOUBLE, 'nlc', None, None, ), # 7
7582
    (8, TType.I64, 'orderId', None, None, ), # 8
6762 amar.kumar 7583
  )
7584
 
7672 rajveer 7585
  def __init__(self, itemId=None, serialNumber=None, itemNumber=None, invoiceNumber=None, warehouseId=None, unitPrice=None, nlc=None, orderId=None,):
6762 amar.kumar 7586
    self.itemId = itemId
7587
    self.serialNumber = serialNumber
7588
    self.itemNumber = itemNumber
7589
    self.invoiceNumber = invoiceNumber
7590
    self.warehouseId = warehouseId
7591
    self.unitPrice = unitPrice
7672 rajveer 7592
    self.nlc = nlc
6762 amar.kumar 7593
    self.orderId = orderId
7594
 
7595
  def read(self, iprot):
7596
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7597
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7598
      return
7599
    iprot.readStructBegin()
7600
    while True:
7601
      (fname, ftype, fid) = iprot.readFieldBegin()
7602
      if ftype == TType.STOP:
7603
        break
7604
      if fid == 1:
7605
        if ftype == TType.I64:
7606
          self.itemId = iprot.readI64();
7607
        else:
7608
          iprot.skip(ftype)
7609
      elif fid == 2:
7610
        if ftype == TType.STRING:
7611
          self.serialNumber = iprot.readString();
7612
        else:
7613
          iprot.skip(ftype)
7614
      elif fid == 3:
7615
        if ftype == TType.STRING:
7616
          self.itemNumber = iprot.readString();
7617
        else:
7618
          iprot.skip(ftype)
7619
      elif fid == 4:
7620
        if ftype == TType.STRING:
7621
          self.invoiceNumber = iprot.readString();
7622
        else:
7623
          iprot.skip(ftype)
7624
      elif fid == 5:
7625
        if ftype == TType.I64:
7626
          self.warehouseId = iprot.readI64();
7627
        else:
7628
          iprot.skip(ftype)
7629
      elif fid == 6:
7630
        if ftype == TType.DOUBLE:
7631
          self.unitPrice = iprot.readDouble();
7632
        else:
7633
          iprot.skip(ftype)
7634
      elif fid == 7:
7672 rajveer 7635
        if ftype == TType.DOUBLE:
7636
          self.nlc = iprot.readDouble();
7637
        else:
7638
          iprot.skip(ftype)
7639
      elif fid == 8:
6762 amar.kumar 7640
        if ftype == TType.I64:
7641
          self.orderId = iprot.readI64();
7642
        else:
7643
          iprot.skip(ftype)
7644
      else:
7645
        iprot.skip(ftype)
7646
      iprot.readFieldEnd()
7647
    iprot.readStructEnd()
7648
 
7649
  def write(self, oprot):
7650
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7651
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7652
      return
7653
    oprot.writeStructBegin('scanForOursExternalSale_args')
7654
    if self.itemId is not None:
7655
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7656
      oprot.writeI64(self.itemId)
7657
      oprot.writeFieldEnd()
7658
    if self.serialNumber is not None:
7659
      oprot.writeFieldBegin('serialNumber', TType.STRING, 2)
7660
      oprot.writeString(self.serialNumber)
7661
      oprot.writeFieldEnd()
7662
    if self.itemNumber is not None:
7663
      oprot.writeFieldBegin('itemNumber', TType.STRING, 3)
7664
      oprot.writeString(self.itemNumber)
7665
      oprot.writeFieldEnd()
7666
    if self.invoiceNumber is not None:
7667
      oprot.writeFieldBegin('invoiceNumber', TType.STRING, 4)
7668
      oprot.writeString(self.invoiceNumber)
7669
      oprot.writeFieldEnd()
7670
    if self.warehouseId is not None:
7671
      oprot.writeFieldBegin('warehouseId', TType.I64, 5)
7672
      oprot.writeI64(self.warehouseId)
7673
      oprot.writeFieldEnd()
7674
    if self.unitPrice is not None:
7675
      oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 6)
7676
      oprot.writeDouble(self.unitPrice)
7677
      oprot.writeFieldEnd()
7672 rajveer 7678
    if self.nlc is not None:
7679
      oprot.writeFieldBegin('nlc', TType.DOUBLE, 7)
7680
      oprot.writeDouble(self.nlc)
7681
      oprot.writeFieldEnd()
6762 amar.kumar 7682
    if self.orderId is not None:
7672 rajveer 7683
      oprot.writeFieldBegin('orderId', TType.I64, 8)
6762 amar.kumar 7684
      oprot.writeI64(self.orderId)
7685
      oprot.writeFieldEnd()
7686
    oprot.writeFieldStop()
7687
    oprot.writeStructEnd()
7688
 
7689
  def validate(self):
7690
    return
7691
 
7692
 
7693
  def __repr__(self):
7694
    L = ['%s=%r' % (key, value)
7695
      for key, value in self.__dict__.iteritems()]
7696
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7697
 
7698
  def __eq__(self, other):
7699
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7700
 
7701
  def __ne__(self, other):
7702
    return not (self == other)
7703
 
7704
class scanForOursExternalSale_result:
7705
  """
7706
  Attributes:
7707
   - success
7708
   - ex
7709
  """
7710
 
7711
  thrift_spec = (
7712
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
7713
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
7714
  )
7715
 
7716
  def __init__(self, success=None, ex=None,):
7717
    self.success = success
7718
    self.ex = ex
7719
 
7720
  def read(self, iprot):
7721
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7722
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7723
      return
7724
    iprot.readStructBegin()
7725
    while True:
7726
      (fname, ftype, fid) = iprot.readFieldBegin()
7727
      if ftype == TType.STOP:
7728
        break
7729
      if fid == 0:
7730
        if ftype == TType.STRUCT:
7731
          self.success = InventoryItem()
7732
          self.success.read(iprot)
7733
        else:
7734
          iprot.skip(ftype)
7735
      elif fid == 1:
7736
        if ftype == TType.STRUCT:
7737
          self.ex = WarehouseServiceException()
7738
          self.ex.read(iprot)
7739
        else:
7740
          iprot.skip(ftype)
7741
      else:
7742
        iprot.skip(ftype)
7743
      iprot.readFieldEnd()
7744
    iprot.readStructEnd()
7745
 
7746
  def write(self, oprot):
7747
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7748
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7749
      return
7750
    oprot.writeStructBegin('scanForOursExternalSale_result')
7751
    if self.success is not None:
7752
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7753
      self.success.write(oprot)
7754
      oprot.writeFieldEnd()
7755
    if self.ex is not None:
7756
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7757
      self.ex.write(oprot)
7758
      oprot.writeFieldEnd()
7759
    oprot.writeFieldStop()
7760
    oprot.writeStructEnd()
7761
 
7762
  def validate(self):
7763
    return
7764
 
7765
 
7766
  def __repr__(self):
7767
    L = ['%s=%r' % (key, value)
7768
      for key, value in self.__dict__.iteritems()]
7769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7770
 
7771
  def __eq__(self, other):
7772
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7773
 
7774
  def __ne__(self, other):
7775
    return not (self == other)
7776
 
7777
class scanForOursExternalSaleReturn_args:
7778
  """
7779
  Attributes:
7780
   - orderId
7781
   - unitPrice
7782
  """
7783
 
7784
  thrift_spec = (
7785
    None, # 0
7786
    (1, TType.I64, 'orderId', None, None, ), # 1
7787
    (2, TType.DOUBLE, 'unitPrice', None, None, ), # 2
7788
  )
7789
 
7790
  def __init__(self, orderId=None, unitPrice=None,):
7791
    self.orderId = orderId
7792
    self.unitPrice = unitPrice
7793
 
7794
  def read(self, iprot):
7795
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7796
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7797
      return
7798
    iprot.readStructBegin()
7799
    while True:
7800
      (fname, ftype, fid) = iprot.readFieldBegin()
7801
      if ftype == TType.STOP:
7802
        break
7803
      if fid == 1:
7804
        if ftype == TType.I64:
7805
          self.orderId = iprot.readI64();
7806
        else:
7807
          iprot.skip(ftype)
7808
      elif fid == 2:
7809
        if ftype == TType.DOUBLE:
7810
          self.unitPrice = iprot.readDouble();
7811
        else:
7812
          iprot.skip(ftype)
7813
      else:
7814
        iprot.skip(ftype)
7815
      iprot.readFieldEnd()
7816
    iprot.readStructEnd()
7817
 
7818
  def write(self, oprot):
7819
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7820
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7821
      return
7822
    oprot.writeStructBegin('scanForOursExternalSaleReturn_args')
7823
    if self.orderId is not None:
7824
      oprot.writeFieldBegin('orderId', TType.I64, 1)
7825
      oprot.writeI64(self.orderId)
7826
      oprot.writeFieldEnd()
7827
    if self.unitPrice is not None:
7828
      oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 2)
7829
      oprot.writeDouble(self.unitPrice)
7830
      oprot.writeFieldEnd()
7831
    oprot.writeFieldStop()
7832
    oprot.writeStructEnd()
7833
 
7834
  def validate(self):
7835
    return
7836
 
7837
 
7838
  def __repr__(self):
7839
    L = ['%s=%r' % (key, value)
7840
      for key, value in self.__dict__.iteritems()]
7841
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7842
 
7843
  def __eq__(self, other):
7844
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7845
 
7846
  def __ne__(self, other):
7847
    return not (self == other)
7848
 
7849
class scanForOursExternalSaleReturn_result:
7410 amar.kumar 7850
  """
7851
  Attributes:
7852
   - ex
7853
  """
6762 amar.kumar 7854
 
7855
  thrift_spec = (
7410 amar.kumar 7856
    None, # 0
7857
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6762 amar.kumar 7858
  )
7859
 
7410 amar.kumar 7860
  def __init__(self, ex=None,):
7861
    self.ex = ex
7862
 
6762 amar.kumar 7863
  def read(self, iprot):
7864
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7865
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7866
      return
7867
    iprot.readStructBegin()
7868
    while True:
7869
      (fname, ftype, fid) = iprot.readFieldBegin()
7870
      if ftype == TType.STOP:
7871
        break
7410 amar.kumar 7872
      if fid == 1:
7873
        if ftype == TType.STRUCT:
7874
          self.ex = WarehouseServiceException()
7875
          self.ex.read(iprot)
7876
        else:
7877
          iprot.skip(ftype)
6762 amar.kumar 7878
      else:
7879
        iprot.skip(ftype)
7880
      iprot.readFieldEnd()
7881
    iprot.readStructEnd()
7882
 
7883
  def write(self, oprot):
7884
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7885
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7886
      return
7887
    oprot.writeStructBegin('scanForOursExternalSaleReturn_result')
7410 amar.kumar 7888
    if self.ex is not None:
7889
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7890
      self.ex.write(oprot)
7891
      oprot.writeFieldEnd()
6762 amar.kumar 7892
    oprot.writeFieldStop()
7893
    oprot.writeStructEnd()
7894
 
7895
  def validate(self):
7896
    return
7897
 
7898
 
7899
  def __repr__(self):
7900
    L = ['%s=%r' % (key, value)
7901
      for key, value in self.__dict__.iteritems()]
7902
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7903
 
7904
  def __eq__(self, other):
7905
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7906
 
7907
  def __ne__(self, other):
7908
    return not (self == other)
6880 amar.kumar 7909
 
7910
class getMovementNonSerializedInventoryByScans_args:
7911
  """
7912
  Attributes:
7913
   - startDate
7914
   - endDate
7915
  """
7916
 
7917
  thrift_spec = (
7918
    None, # 0
7919
    (1, TType.I64, 'startDate', None, None, ), # 1
7920
    (2, TType.I64, 'endDate', None, None, ), # 2
7921
  )
7922
 
7923
  def __init__(self, startDate=None, endDate=None,):
7924
    self.startDate = startDate
7925
    self.endDate = endDate
7926
 
7927
  def read(self, iprot):
7928
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7929
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7930
      return
7931
    iprot.readStructBegin()
7932
    while True:
7933
      (fname, ftype, fid) = iprot.readFieldBegin()
7934
      if ftype == TType.STOP:
7935
        break
7936
      if fid == 1:
7937
        if ftype == TType.I64:
7938
          self.startDate = iprot.readI64();
7939
        else:
7940
          iprot.skip(ftype)
7941
      elif fid == 2:
7942
        if ftype == TType.I64:
7943
          self.endDate = iprot.readI64();
7944
        else:
7945
          iprot.skip(ftype)
7946
      else:
7947
        iprot.skip(ftype)
7948
      iprot.readFieldEnd()
7949
    iprot.readStructEnd()
7950
 
7951
  def write(self, oprot):
7952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7954
      return
7955
    oprot.writeStructBegin('getMovementNonSerializedInventoryByScans_args')
7956
    if self.startDate is not None:
7957
      oprot.writeFieldBegin('startDate', TType.I64, 1)
7958
      oprot.writeI64(self.startDate)
7959
      oprot.writeFieldEnd()
7960
    if self.endDate is not None:
7961
      oprot.writeFieldBegin('endDate', TType.I64, 2)
7962
      oprot.writeI64(self.endDate)
7963
      oprot.writeFieldEnd()
7964
    oprot.writeFieldStop()
7965
    oprot.writeStructEnd()
7966
 
7967
  def validate(self):
7968
    return
7969
 
7970
 
7971
  def __repr__(self):
7972
    L = ['%s=%r' % (key, value)
7973
      for key, value in self.__dict__.iteritems()]
7974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7975
 
7976
  def __eq__(self, other):
7977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7978
 
7979
  def __ne__(self, other):
7980
    return not (self == other)
7981
 
7982
class getMovementNonSerializedInventoryByScans_result:
7983
  """
7984
  Attributes:
7985
   - success
7986
  """
7987
 
7988
  thrift_spec = (
7989
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
7990
  )
7991
 
7992
  def __init__(self, success=None,):
7993
    self.success = success
7994
 
7995
  def read(self, iprot):
7996
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7997
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7998
      return
7999
    iprot.readStructBegin()
8000
    while True:
8001
      (fname, ftype, fid) = iprot.readFieldBegin()
8002
      if ftype == TType.STOP:
8003
        break
8004
      if fid == 0:
8005
        if ftype == TType.LIST:
8006
          self.success = []
10407 amar.kumar 8007
          (_etype129, _size126) = iprot.readListBegin()
8008
          for _i130 in xrange(_size126):
8009
            _elem131 = InventoryMovement()
8010
            _elem131.read(iprot)
8011
            self.success.append(_elem131)
6880 amar.kumar 8012
          iprot.readListEnd()
8013
        else:
8014
          iprot.skip(ftype)
8015
      else:
8016
        iprot.skip(ftype)
8017
      iprot.readFieldEnd()
8018
    iprot.readStructEnd()
8019
 
8020
  def write(self, oprot):
8021
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8022
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8023
      return
8024
    oprot.writeStructBegin('getMovementNonSerializedInventoryByScans_result')
8025
    if self.success is not None:
8026
      oprot.writeFieldBegin('success', TType.LIST, 0)
8027
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8028
      for iter132 in self.success:
8029
        iter132.write(oprot)
6880 amar.kumar 8030
      oprot.writeListEnd()
8031
      oprot.writeFieldEnd()
8032
    oprot.writeFieldStop()
8033
    oprot.writeStructEnd()
8034
 
8035
  def validate(self):
8036
    return
8037
 
8038
 
8039
  def __repr__(self):
8040
    L = ['%s=%r' % (key, value)
8041
      for key, value in self.__dict__.iteritems()]
8042
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8043
 
8044
  def __eq__(self, other):
8045
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8046
 
8047
  def __ne__(self, other):
8048
    return not (self == other)
8049
 
8050
class getMovementSerializedInventoryByScans_args:
8051
  """
8052
  Attributes:
8053
   - startDate
8054
   - endDate
8055
  """
8056
 
8057
  thrift_spec = (
8058
    None, # 0
8059
    (1, TType.I64, 'startDate', None, None, ), # 1
8060
    (2, TType.I64, 'endDate', None, None, ), # 2
8061
  )
8062
 
8063
  def __init__(self, startDate=None, endDate=None,):
8064
    self.startDate = startDate
8065
    self.endDate = endDate
8066
 
8067
  def read(self, iprot):
8068
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8069
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8070
      return
8071
    iprot.readStructBegin()
8072
    while True:
8073
      (fname, ftype, fid) = iprot.readFieldBegin()
8074
      if ftype == TType.STOP:
8075
        break
8076
      if fid == 1:
8077
        if ftype == TType.I64:
8078
          self.startDate = iprot.readI64();
8079
        else:
8080
          iprot.skip(ftype)
8081
      elif fid == 2:
8082
        if ftype == TType.I64:
8083
          self.endDate = iprot.readI64();
8084
        else:
8085
          iprot.skip(ftype)
8086
      else:
8087
        iprot.skip(ftype)
8088
      iprot.readFieldEnd()
8089
    iprot.readStructEnd()
8090
 
8091
  def write(self, oprot):
8092
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8093
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8094
      return
8095
    oprot.writeStructBegin('getMovementSerializedInventoryByScans_args')
8096
    if self.startDate is not None:
8097
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8098
      oprot.writeI64(self.startDate)
8099
      oprot.writeFieldEnd()
8100
    if self.endDate is not None:
8101
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8102
      oprot.writeI64(self.endDate)
8103
      oprot.writeFieldEnd()
8104
    oprot.writeFieldStop()
8105
    oprot.writeStructEnd()
8106
 
8107
  def validate(self):
8108
    return
8109
 
8110
 
8111
  def __repr__(self):
8112
    L = ['%s=%r' % (key, value)
8113
      for key, value in self.__dict__.iteritems()]
8114
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8115
 
8116
  def __eq__(self, other):
8117
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8118
 
8119
  def __ne__(self, other):
8120
    return not (self == other)
8121
 
8122
class getMovementSerializedInventoryByScans_result:
8123
  """
8124
  Attributes:
8125
   - success
8126
  """
8127
 
8128
  thrift_spec = (
8129
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8130
  )
8131
 
8132
  def __init__(self, success=None,):
8133
    self.success = success
8134
 
8135
  def read(self, iprot):
8136
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8137
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8138
      return
8139
    iprot.readStructBegin()
8140
    while True:
8141
      (fname, ftype, fid) = iprot.readFieldBegin()
8142
      if ftype == TType.STOP:
8143
        break
8144
      if fid == 0:
8145
        if ftype == TType.LIST:
8146
          self.success = []
10407 amar.kumar 8147
          (_etype136, _size133) = iprot.readListBegin()
8148
          for _i137 in xrange(_size133):
8149
            _elem138 = InventoryMovement()
8150
            _elem138.read(iprot)
8151
            self.success.append(_elem138)
6880 amar.kumar 8152
          iprot.readListEnd()
8153
        else:
8154
          iprot.skip(ftype)
8155
      else:
8156
        iprot.skip(ftype)
8157
      iprot.readFieldEnd()
8158
    iprot.readStructEnd()
8159
 
8160
  def write(self, oprot):
8161
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8162
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8163
      return
8164
    oprot.writeStructBegin('getMovementSerializedInventoryByScans_result')
8165
    if self.success is not None:
8166
      oprot.writeFieldBegin('success', TType.LIST, 0)
8167
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8168
      for iter139 in self.success:
8169
        iter139.write(oprot)
6880 amar.kumar 8170
      oprot.writeListEnd()
8171
      oprot.writeFieldEnd()
8172
    oprot.writeFieldStop()
8173
    oprot.writeStructEnd()
8174
 
8175
  def validate(self):
8176
    return
8177
 
8178
 
8179
  def __repr__(self):
8180
    L = ['%s=%r' % (key, value)
8181
      for key, value in self.__dict__.iteritems()]
8182
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8183
 
8184
  def __eq__(self, other):
8185
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8186
 
8187
  def __ne__(self, other):
8188
    return not (self == other)
7190 amar.kumar 8189
 
7216 amar.kumar 8190
class getCompleteMovementSerializedInventoryByScans_args:
8191
  """
8192
  Attributes:
8193
   - startDate
8194
   - endDate
8195
  """
8196
 
8197
  thrift_spec = (
8198
    None, # 0
8199
    (1, TType.I64, 'startDate', None, None, ), # 1
8200
    (2, TType.I64, 'endDate', None, None, ), # 2
8201
  )
8202
 
8203
  def __init__(self, startDate=None, endDate=None,):
8204
    self.startDate = startDate
8205
    self.endDate = endDate
8206
 
8207
  def read(self, iprot):
8208
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8209
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8210
      return
8211
    iprot.readStructBegin()
8212
    while True:
8213
      (fname, ftype, fid) = iprot.readFieldBegin()
8214
      if ftype == TType.STOP:
8215
        break
8216
      if fid == 1:
8217
        if ftype == TType.I64:
8218
          self.startDate = iprot.readI64();
8219
        else:
8220
          iprot.skip(ftype)
8221
      elif fid == 2:
8222
        if ftype == TType.I64:
8223
          self.endDate = iprot.readI64();
8224
        else:
8225
          iprot.skip(ftype)
8226
      else:
8227
        iprot.skip(ftype)
8228
      iprot.readFieldEnd()
8229
    iprot.readStructEnd()
8230
 
8231
  def write(self, oprot):
8232
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8233
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8234
      return
8235
    oprot.writeStructBegin('getCompleteMovementSerializedInventoryByScans_args')
8236
    if self.startDate is not None:
8237
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8238
      oprot.writeI64(self.startDate)
8239
      oprot.writeFieldEnd()
8240
    if self.endDate is not None:
8241
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8242
      oprot.writeI64(self.endDate)
8243
      oprot.writeFieldEnd()
8244
    oprot.writeFieldStop()
8245
    oprot.writeStructEnd()
8246
 
8247
  def validate(self):
8248
    return
8249
 
8250
 
8251
  def __repr__(self):
8252
    L = ['%s=%r' % (key, value)
8253
      for key, value in self.__dict__.iteritems()]
8254
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8255
 
8256
  def __eq__(self, other):
8257
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8258
 
8259
  def __ne__(self, other):
8260
    return not (self == other)
8261
 
8262
class getCompleteMovementSerializedInventoryByScans_result:
8263
  """
8264
  Attributes:
8265
   - success
8266
  """
8267
 
8268
  thrift_spec = (
8269
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8270
  )
8271
 
8272
  def __init__(self, success=None,):
8273
    self.success = success
8274
 
8275
  def read(self, iprot):
8276
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8277
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8278
      return
8279
    iprot.readStructBegin()
8280
    while True:
8281
      (fname, ftype, fid) = iprot.readFieldBegin()
8282
      if ftype == TType.STOP:
8283
        break
8284
      if fid == 0:
8285
        if ftype == TType.LIST:
8286
          self.success = []
10407 amar.kumar 8287
          (_etype143, _size140) = iprot.readListBegin()
8288
          for _i144 in xrange(_size140):
8289
            _elem145 = InventoryMovement()
8290
            _elem145.read(iprot)
8291
            self.success.append(_elem145)
7216 amar.kumar 8292
          iprot.readListEnd()
8293
        else:
8294
          iprot.skip(ftype)
8295
      else:
8296
        iprot.skip(ftype)
8297
      iprot.readFieldEnd()
8298
    iprot.readStructEnd()
8299
 
8300
  def write(self, oprot):
8301
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8302
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8303
      return
8304
    oprot.writeStructBegin('getCompleteMovementSerializedInventoryByScans_result')
8305
    if self.success is not None:
8306
      oprot.writeFieldBegin('success', TType.LIST, 0)
8307
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8308
      for iter146 in self.success:
8309
        iter146.write(oprot)
7216 amar.kumar 8310
      oprot.writeListEnd()
8311
      oprot.writeFieldEnd()
8312
    oprot.writeFieldStop()
8313
    oprot.writeStructEnd()
8314
 
8315
  def validate(self):
8316
    return
8317
 
8318
 
8319
  def __repr__(self):
8320
    L = ['%s=%r' % (key, value)
8321
      for key, value in self.__dict__.iteritems()]
8322
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8323
 
8324
  def __eq__(self, other):
8325
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8326
 
8327
  def __ne__(self, other):
8328
    return not (self == other)
8329
 
8330
class getCompleteMovementNonSerializedInventoryByScans_args:
8331
  """
8332
  Attributes:
8333
   - startDate
8334
   - endDate
8335
  """
8336
 
8337
  thrift_spec = (
8338
    None, # 0
8339
    (1, TType.I64, 'startDate', None, None, ), # 1
8340
    (2, TType.I64, 'endDate', None, None, ), # 2
8341
  )
8342
 
8343
  def __init__(self, startDate=None, endDate=None,):
8344
    self.startDate = startDate
8345
    self.endDate = endDate
8346
 
8347
  def read(self, iprot):
8348
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8349
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8350
      return
8351
    iprot.readStructBegin()
8352
    while True:
8353
      (fname, ftype, fid) = iprot.readFieldBegin()
8354
      if ftype == TType.STOP:
8355
        break
8356
      if fid == 1:
8357
        if ftype == TType.I64:
8358
          self.startDate = iprot.readI64();
8359
        else:
8360
          iprot.skip(ftype)
8361
      elif fid == 2:
8362
        if ftype == TType.I64:
8363
          self.endDate = iprot.readI64();
8364
        else:
8365
          iprot.skip(ftype)
8366
      else:
8367
        iprot.skip(ftype)
8368
      iprot.readFieldEnd()
8369
    iprot.readStructEnd()
8370
 
8371
  def write(self, oprot):
8372
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8373
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8374
      return
8375
    oprot.writeStructBegin('getCompleteMovementNonSerializedInventoryByScans_args')
8376
    if self.startDate is not None:
8377
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8378
      oprot.writeI64(self.startDate)
8379
      oprot.writeFieldEnd()
8380
    if self.endDate is not None:
8381
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8382
      oprot.writeI64(self.endDate)
8383
      oprot.writeFieldEnd()
8384
    oprot.writeFieldStop()
8385
    oprot.writeStructEnd()
8386
 
8387
  def validate(self):
8388
    return
8389
 
8390
 
8391
  def __repr__(self):
8392
    L = ['%s=%r' % (key, value)
8393
      for key, value in self.__dict__.iteritems()]
8394
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8395
 
8396
  def __eq__(self, other):
8397
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8398
 
8399
  def __ne__(self, other):
8400
    return not (self == other)
8401
 
8402
class getCompleteMovementNonSerializedInventoryByScans_result:
8403
  """
8404
  Attributes:
8405
   - success
8406
  """
8407
 
8408
  thrift_spec = (
8409
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8410
  )
8411
 
8412
  def __init__(self, success=None,):
8413
    self.success = success
8414
 
8415
  def read(self, iprot):
8416
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8417
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8418
      return
8419
    iprot.readStructBegin()
8420
    while True:
8421
      (fname, ftype, fid) = iprot.readFieldBegin()
8422
      if ftype == TType.STOP:
8423
        break
8424
      if fid == 0:
8425
        if ftype == TType.LIST:
8426
          self.success = []
10407 amar.kumar 8427
          (_etype150, _size147) = iprot.readListBegin()
8428
          for _i151 in xrange(_size147):
8429
            _elem152 = InventoryMovement()
8430
            _elem152.read(iprot)
8431
            self.success.append(_elem152)
7216 amar.kumar 8432
          iprot.readListEnd()
8433
        else:
8434
          iprot.skip(ftype)
8435
      else:
8436
        iprot.skip(ftype)
8437
      iprot.readFieldEnd()
8438
    iprot.readStructEnd()
8439
 
8440
  def write(self, oprot):
8441
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8442
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8443
      return
8444
    oprot.writeStructBegin('getCompleteMovementNonSerializedInventoryByScans_result')
8445
    if self.success is not None:
8446
      oprot.writeFieldBegin('success', TType.LIST, 0)
8447
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8448
      for iter153 in self.success:
8449
        iter153.write(oprot)
7216 amar.kumar 8450
      oprot.writeListEnd()
8451
      oprot.writeFieldEnd()
8452
    oprot.writeFieldStop()
8453
    oprot.writeStructEnd()
8454
 
8455
  def validate(self):
8456
    return
8457
 
8458
 
8459
  def __repr__(self):
8460
    L = ['%s=%r' % (key, value)
8461
      for key, value in self.__dict__.iteritems()]
8462
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8463
 
8464
  def __eq__(self, other):
8465
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8466
 
8467
  def __ne__(self, other):
8468
    return not (self == other)
8469
 
7190 amar.kumar 8470
class scanfreebie_args:
8471
  """
8472
  Attributes:
8473
   - orderId
8474
   - freebieItemId
8475
   - freebieWarehouseId
8476
   - scanType
8477
  """
8478
 
8479
  thrift_spec = (
8480
    None, # 0
8481
    (1, TType.I64, 'orderId', None, None, ), # 1
8482
    (2, TType.I64, 'freebieItemId', None, None, ), # 2
8483
    (3, TType.I64, 'freebieWarehouseId', None, None, ), # 3
8484
    (4, TType.I32, 'scanType', None, None, ), # 4
8485
  )
8486
 
8487
  def __init__(self, orderId=None, freebieItemId=None, freebieWarehouseId=None, scanType=None,):
8488
    self.orderId = orderId
8489
    self.freebieItemId = freebieItemId
8490
    self.freebieWarehouseId = freebieWarehouseId
8491
    self.scanType = scanType
8492
 
8493
  def read(self, iprot):
8494
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8495
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8496
      return
8497
    iprot.readStructBegin()
8498
    while True:
8499
      (fname, ftype, fid) = iprot.readFieldBegin()
8500
      if ftype == TType.STOP:
8501
        break
8502
      if fid == 1:
8503
        if ftype == TType.I64:
8504
          self.orderId = iprot.readI64();
8505
        else:
8506
          iprot.skip(ftype)
8507
      elif fid == 2:
8508
        if ftype == TType.I64:
8509
          self.freebieItemId = iprot.readI64();
8510
        else:
8511
          iprot.skip(ftype)
8512
      elif fid == 3:
8513
        if ftype == TType.I64:
8514
          self.freebieWarehouseId = iprot.readI64();
8515
        else:
8516
          iprot.skip(ftype)
8517
      elif fid == 4:
8518
        if ftype == TType.I32:
8519
          self.scanType = iprot.readI32();
8520
        else:
8521
          iprot.skip(ftype)
8522
      else:
8523
        iprot.skip(ftype)
8524
      iprot.readFieldEnd()
8525
    iprot.readStructEnd()
8526
 
8527
  def write(self, oprot):
8528
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8529
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8530
      return
8531
    oprot.writeStructBegin('scanfreebie_args')
8532
    if self.orderId is not None:
8533
      oprot.writeFieldBegin('orderId', TType.I64, 1)
8534
      oprot.writeI64(self.orderId)
8535
      oprot.writeFieldEnd()
8536
    if self.freebieItemId is not None:
8537
      oprot.writeFieldBegin('freebieItemId', TType.I64, 2)
8538
      oprot.writeI64(self.freebieItemId)
8539
      oprot.writeFieldEnd()
8540
    if self.freebieWarehouseId is not None:
8541
      oprot.writeFieldBegin('freebieWarehouseId', TType.I64, 3)
8542
      oprot.writeI64(self.freebieWarehouseId)
8543
      oprot.writeFieldEnd()
8544
    if self.scanType is not None:
8545
      oprot.writeFieldBegin('scanType', TType.I32, 4)
8546
      oprot.writeI32(self.scanType)
8547
      oprot.writeFieldEnd()
8548
    oprot.writeFieldStop()
8549
    oprot.writeStructEnd()
8550
 
8551
  def validate(self):
8552
    return
8553
 
8554
 
8555
  def __repr__(self):
8556
    L = ['%s=%r' % (key, value)
8557
      for key, value in self.__dict__.iteritems()]
8558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8559
 
8560
  def __eq__(self, other):
8561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8562
 
8563
  def __ne__(self, other):
8564
    return not (self == other)
8565
 
8566
class scanfreebie_result:
8567
  """
8568
  Attributes:
8569
   - success
8570
   - wex
8571
  """
8572
 
8573
  thrift_spec = (
8574
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
8575
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8576
  )
8577
 
8578
  def __init__(self, success=None, wex=None,):
8579
    self.success = success
8580
    self.wex = wex
8581
 
8582
  def read(self, iprot):
8583
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8584
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8585
      return
8586
    iprot.readStructBegin()
8587
    while True:
8588
      (fname, ftype, fid) = iprot.readFieldBegin()
8589
      if ftype == TType.STOP:
8590
        break
8591
      if fid == 0:
8592
        if ftype == TType.STRUCT:
8593
          self.success = InventoryItem()
8594
          self.success.read(iprot)
8595
        else:
8596
          iprot.skip(ftype)
8597
      elif fid == 1:
8598
        if ftype == TType.STRUCT:
8599
          self.wex = WarehouseServiceException()
8600
          self.wex.read(iprot)
8601
        else:
8602
          iprot.skip(ftype)
8603
      else:
8604
        iprot.skip(ftype)
8605
      iprot.readFieldEnd()
8606
    iprot.readStructEnd()
8607
 
8608
  def write(self, oprot):
8609
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8610
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8611
      return
8612
    oprot.writeStructBegin('scanfreebie_result')
8613
    if self.success is not None:
8614
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8615
      self.success.write(oprot)
8616
      oprot.writeFieldEnd()
8617
    if self.wex is not None:
8618
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
8619
      self.wex.write(oprot)
8620
      oprot.writeFieldEnd()
8621
    oprot.writeFieldStop()
8622
    oprot.writeStructEnd()
8623
 
8624
  def validate(self):
8625
    return
8626
 
8627
 
8628
  def __repr__(self):
8629
    L = ['%s=%r' % (key, value)
8630
      for key, value in self.__dict__.iteritems()]
8631
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8632
 
8633
  def __eq__(self, other):
8634
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8635
 
8636
  def __ne__(self, other):
8637
    return not (self == other)
7199 amar.kumar 8638
 
8639
class reshipfreebie_args:
8640
  """
8641
  Attributes:
8642
   - oldOrderId
8643
   - newOrderId
8644
   - freebieItemId
8645
   - scanType
8646
  """
8647
 
8648
  thrift_spec = (
8649
    None, # 0
8650
    (1, TType.I64, 'oldOrderId', None, None, ), # 1
8651
    (2, TType.I64, 'newOrderId', None, None, ), # 2
8652
    (3, TType.I64, 'freebieItemId', None, None, ), # 3
8653
    (4, TType.I32, 'scanType', None, None, ), # 4
8654
  )
8655
 
8656
  def __init__(self, oldOrderId=None, newOrderId=None, freebieItemId=None, scanType=None,):
8657
    self.oldOrderId = oldOrderId
8658
    self.newOrderId = newOrderId
8659
    self.freebieItemId = freebieItemId
8660
    self.scanType = scanType
8661
 
8662
  def read(self, iprot):
8663
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8664
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8665
      return
8666
    iprot.readStructBegin()
8667
    while True:
8668
      (fname, ftype, fid) = iprot.readFieldBegin()
8669
      if ftype == TType.STOP:
8670
        break
8671
      if fid == 1:
8672
        if ftype == TType.I64:
8673
          self.oldOrderId = iprot.readI64();
8674
        else:
8675
          iprot.skip(ftype)
8676
      elif fid == 2:
8677
        if ftype == TType.I64:
8678
          self.newOrderId = iprot.readI64();
8679
        else:
8680
          iprot.skip(ftype)
8681
      elif fid == 3:
8682
        if ftype == TType.I64:
8683
          self.freebieItemId = iprot.readI64();
8684
        else:
8685
          iprot.skip(ftype)
8686
      elif fid == 4:
8687
        if ftype == TType.I32:
8688
          self.scanType = iprot.readI32();
8689
        else:
8690
          iprot.skip(ftype)
8691
      else:
8692
        iprot.skip(ftype)
8693
      iprot.readFieldEnd()
8694
    iprot.readStructEnd()
8695
 
8696
  def write(self, oprot):
8697
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8698
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8699
      return
8700
    oprot.writeStructBegin('reshipfreebie_args')
8701
    if self.oldOrderId is not None:
8702
      oprot.writeFieldBegin('oldOrderId', TType.I64, 1)
8703
      oprot.writeI64(self.oldOrderId)
8704
      oprot.writeFieldEnd()
8705
    if self.newOrderId is not None:
8706
      oprot.writeFieldBegin('newOrderId', TType.I64, 2)
8707
      oprot.writeI64(self.newOrderId)
8708
      oprot.writeFieldEnd()
8709
    if self.freebieItemId is not None:
8710
      oprot.writeFieldBegin('freebieItemId', TType.I64, 3)
8711
      oprot.writeI64(self.freebieItemId)
8712
      oprot.writeFieldEnd()
8713
    if self.scanType is not None:
8714
      oprot.writeFieldBegin('scanType', TType.I32, 4)
8715
      oprot.writeI32(self.scanType)
8716
      oprot.writeFieldEnd()
8717
    oprot.writeFieldStop()
8718
    oprot.writeStructEnd()
8719
 
8720
  def validate(self):
8721
    return
8722
 
8723
 
8724
  def __repr__(self):
8725
    L = ['%s=%r' % (key, value)
8726
      for key, value in self.__dict__.iteritems()]
8727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8728
 
8729
  def __eq__(self, other):
8730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8731
 
8732
  def __ne__(self, other):
8733
    return not (self == other)
8734
 
8735
class reshipfreebie_result:
8736
  """
8737
  Attributes:
8738
   - wex
8739
  """
8740
 
8741
  thrift_spec = (
8742
    None, # 0
8743
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8744
  )
8745
 
8746
  def __init__(self, wex=None,):
8747
    self.wex = wex
8748
 
8749
  def read(self, iprot):
8750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8752
      return
8753
    iprot.readStructBegin()
8754
    while True:
8755
      (fname, ftype, fid) = iprot.readFieldBegin()
8756
      if ftype == TType.STOP:
8757
        break
8758
      if fid == 1:
8759
        if ftype == TType.STRUCT:
8760
          self.wex = WarehouseServiceException()
8761
          self.wex.read(iprot)
8762
        else:
8763
          iprot.skip(ftype)
8764
      else:
8765
        iprot.skip(ftype)
8766
      iprot.readFieldEnd()
8767
    iprot.readStructEnd()
8768
 
8769
  def write(self, oprot):
8770
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8771
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8772
      return
8773
    oprot.writeStructBegin('reshipfreebie_result')
8774
    if self.wex is not None:
8775
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
8776
      self.wex.write(oprot)
8777
      oprot.writeFieldEnd()
8778
    oprot.writeFieldStop()
8779
    oprot.writeStructEnd()
8780
 
8781
  def validate(self):
8782
    return
8783
 
8784
 
8785
  def __repr__(self):
8786
    L = ['%s=%r' % (key, value)
8787
      for key, value in self.__dict__.iteritems()]
8788
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8789
 
8790
  def __eq__(self, other):
8791
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8792
 
8793
  def __ne__(self, other):
8794
    return not (self == other)
7410 amar.kumar 8795
 
8796
class isItemTransferAllowed_args:
8797
  """
8798
  Attributes:
8799
   - warehouseId
8800
   - transferWarehouseId
8801
  """
8802
 
8803
  thrift_spec = (
8804
    None, # 0
8805
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8806
    (2, TType.I64, 'transferWarehouseId', None, None, ), # 2
8807
  )
8808
 
8809
  def __init__(self, warehouseId=None, transferWarehouseId=None,):
8810
    self.warehouseId = warehouseId
8811
    self.transferWarehouseId = transferWarehouseId
8812
 
8813
  def read(self, iprot):
8814
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8815
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8816
      return
8817
    iprot.readStructBegin()
8818
    while True:
8819
      (fname, ftype, fid) = iprot.readFieldBegin()
8820
      if ftype == TType.STOP:
8821
        break
8822
      if fid == 1:
8823
        if ftype == TType.I64:
8824
          self.warehouseId = iprot.readI64();
8825
        else:
8826
          iprot.skip(ftype)
8827
      elif fid == 2:
8828
        if ftype == TType.I64:
8829
          self.transferWarehouseId = iprot.readI64();
8830
        else:
8831
          iprot.skip(ftype)
8832
      else:
8833
        iprot.skip(ftype)
8834
      iprot.readFieldEnd()
8835
    iprot.readStructEnd()
8836
 
8837
  def write(self, oprot):
8838
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8839
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8840
      return
8841
    oprot.writeStructBegin('isItemTransferAllowed_args')
8842
    if self.warehouseId is not None:
8843
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8844
      oprot.writeI64(self.warehouseId)
8845
      oprot.writeFieldEnd()
8846
    if self.transferWarehouseId is not None:
8847
      oprot.writeFieldBegin('transferWarehouseId', TType.I64, 2)
8848
      oprot.writeI64(self.transferWarehouseId)
8849
      oprot.writeFieldEnd()
8850
    oprot.writeFieldStop()
8851
    oprot.writeStructEnd()
8852
 
8853
  def validate(self):
8854
    return
8855
 
8856
 
8857
  def __repr__(self):
8858
    L = ['%s=%r' % (key, value)
8859
      for key, value in self.__dict__.iteritems()]
8860
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8861
 
8862
  def __eq__(self, other):
8863
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8864
 
8865
  def __ne__(self, other):
8866
    return not (self == other)
8867
 
8868
class isItemTransferAllowed_result:
8869
  """
8870
  Attributes:
8871
   - success
8872
  """
8873
 
8874
  thrift_spec = (
8875
    (0, TType.BOOL, 'success', None, None, ), # 0
8876
  )
8877
 
8878
  def __init__(self, success=None,):
8879
    self.success = success
8880
 
8881
  def read(self, iprot):
8882
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8883
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8884
      return
8885
    iprot.readStructBegin()
8886
    while True:
8887
      (fname, ftype, fid) = iprot.readFieldBegin()
8888
      if ftype == TType.STOP:
8889
        break
8890
      if fid == 0:
8891
        if ftype == TType.BOOL:
8892
          self.success = iprot.readBool();
8893
        else:
8894
          iprot.skip(ftype)
8895
      else:
8896
        iprot.skip(ftype)
8897
      iprot.readFieldEnd()
8898
    iprot.readStructEnd()
8899
 
8900
  def write(self, oprot):
8901
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8902
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8903
      return
8904
    oprot.writeStructBegin('isItemTransferAllowed_result')
8905
    if self.success is not None:
8906
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8907
      oprot.writeBool(self.success)
8908
      oprot.writeFieldEnd()
8909
    oprot.writeFieldStop()
8910
    oprot.writeStructEnd()
8911
 
8912
  def validate(self):
8913
    return
8914
 
8915
 
8916
  def __repr__(self):
8917
    L = ['%s=%r' % (key, value)
8918
      for key, value in self.__dict__.iteritems()]
8919
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8920
 
8921
  def __eq__(self, other):
8922
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8923
 
8924
  def __ne__(self, other):
8925
    return not (self == other)
8926
 
8927
class createTransferLot_args:
8928
  """
8929
  Attributes:
8930
   - originWarehouseId
8931
   - destWarehouseId
8932
  """
8933
 
8934
  thrift_spec = (
8935
    None, # 0
8936
    (1, TType.I64, 'originWarehouseId', None, None, ), # 1
8937
    (2, TType.I64, 'destWarehouseId', None, None, ), # 2
8938
  )
8939
 
8940
  def __init__(self, originWarehouseId=None, destWarehouseId=None,):
8941
    self.originWarehouseId = originWarehouseId
8942
    self.destWarehouseId = destWarehouseId
8943
 
8944
  def read(self, iprot):
8945
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8946
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8947
      return
8948
    iprot.readStructBegin()
8949
    while True:
8950
      (fname, ftype, fid) = iprot.readFieldBegin()
8951
      if ftype == TType.STOP:
8952
        break
8953
      if fid == 1:
8954
        if ftype == TType.I64:
8955
          self.originWarehouseId = iprot.readI64();
8956
        else:
8957
          iprot.skip(ftype)
8958
      elif fid == 2:
8959
        if ftype == TType.I64:
8960
          self.destWarehouseId = iprot.readI64();
8961
        else:
8962
          iprot.skip(ftype)
8963
      else:
8964
        iprot.skip(ftype)
8965
      iprot.readFieldEnd()
8966
    iprot.readStructEnd()
8967
 
8968
  def write(self, oprot):
8969
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8970
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8971
      return
8972
    oprot.writeStructBegin('createTransferLot_args')
8973
    if self.originWarehouseId is not None:
8974
      oprot.writeFieldBegin('originWarehouseId', TType.I64, 1)
8975
      oprot.writeI64(self.originWarehouseId)
8976
      oprot.writeFieldEnd()
8977
    if self.destWarehouseId is not None:
8978
      oprot.writeFieldBegin('destWarehouseId', TType.I64, 2)
8979
      oprot.writeI64(self.destWarehouseId)
8980
      oprot.writeFieldEnd()
8981
    oprot.writeFieldStop()
8982
    oprot.writeStructEnd()
8983
 
8984
  def validate(self):
8985
    return
8986
 
8987
 
8988
  def __repr__(self):
8989
    L = ['%s=%r' % (key, value)
8990
      for key, value in self.__dict__.iteritems()]
8991
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8992
 
8993
  def __eq__(self, other):
8994
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8995
 
8996
  def __ne__(self, other):
8997
    return not (self == other)
8998
 
8999
class createTransferLot_result:
9000
  """
9001
  Attributes:
9002
   - success
9003
   - wex
9004
  """
9005
 
9006
  thrift_spec = (
9007
    (0, TType.I64, 'success', None, None, ), # 0
9008
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9009
  )
9010
 
9011
  def __init__(self, success=None, wex=None,):
9012
    self.success = success
9013
    self.wex = wex
9014
 
9015
  def read(self, iprot):
9016
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9017
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9018
      return
9019
    iprot.readStructBegin()
9020
    while True:
9021
      (fname, ftype, fid) = iprot.readFieldBegin()
9022
      if ftype == TType.STOP:
9023
        break
9024
      if fid == 0:
9025
        if ftype == TType.I64:
9026
          self.success = iprot.readI64();
9027
        else:
9028
          iprot.skip(ftype)
9029
      elif fid == 1:
9030
        if ftype == TType.STRUCT:
9031
          self.wex = WarehouseServiceException()
9032
          self.wex.read(iprot)
9033
        else:
9034
          iprot.skip(ftype)
9035
      else:
9036
        iprot.skip(ftype)
9037
      iprot.readFieldEnd()
9038
    iprot.readStructEnd()
9039
 
9040
  def write(self, oprot):
9041
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9042
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9043
      return
9044
    oprot.writeStructBegin('createTransferLot_result')
9045
    if self.success is not None:
9046
      oprot.writeFieldBegin('success', TType.I64, 0)
9047
      oprot.writeI64(self.success)
9048
      oprot.writeFieldEnd()
9049
    if self.wex is not None:
9050
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9051
      self.wex.write(oprot)
9052
      oprot.writeFieldEnd()
9053
    oprot.writeFieldStop()
9054
    oprot.writeStructEnd()
9055
 
9056
  def validate(self):
9057
    return
9058
 
9059
 
9060
  def __repr__(self):
9061
    L = ['%s=%r' % (key, value)
9062
      for key, value in self.__dict__.iteritems()]
9063
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9064
 
9065
  def __eq__(self, other):
9066
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9067
 
9068
  def __ne__(self, other):
9069
    return not (self == other)
9070
 
9071
class getTransferLot_args:
9072
  """
9073
  Attributes:
9074
   - transferLotId
9075
  """
9076
 
9077
  thrift_spec = (
9078
    None, # 0
9079
    (1, TType.I64, 'transferLotId', None, None, ), # 1
9080
  )
9081
 
9082
  def __init__(self, transferLotId=None,):
9083
    self.transferLotId = transferLotId
9084
 
9085
  def read(self, iprot):
9086
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9087
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9088
      return
9089
    iprot.readStructBegin()
9090
    while True:
9091
      (fname, ftype, fid) = iprot.readFieldBegin()
9092
      if ftype == TType.STOP:
9093
        break
9094
      if fid == 1:
9095
        if ftype == TType.I64:
9096
          self.transferLotId = iprot.readI64();
9097
        else:
9098
          iprot.skip(ftype)
9099
      else:
9100
        iprot.skip(ftype)
9101
      iprot.readFieldEnd()
9102
    iprot.readStructEnd()
9103
 
9104
  def write(self, oprot):
9105
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9106
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9107
      return
9108
    oprot.writeStructBegin('getTransferLot_args')
9109
    if self.transferLotId is not None:
9110
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
9111
      oprot.writeI64(self.transferLotId)
9112
      oprot.writeFieldEnd()
9113
    oprot.writeFieldStop()
9114
    oprot.writeStructEnd()
9115
 
9116
  def validate(self):
9117
    return
9118
 
9119
 
9120
  def __repr__(self):
9121
    L = ['%s=%r' % (key, value)
9122
      for key, value in self.__dict__.iteritems()]
9123
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9124
 
9125
  def __eq__(self, other):
9126
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9127
 
9128
  def __ne__(self, other):
9129
    return not (self == other)
9130
 
9131
class getTransferLot_result:
9132
  """
9133
  Attributes:
9134
   - success
9135
   - wex
9136
  """
9137
 
9138
  thrift_spec = (
9139
    (0, TType.STRUCT, 'success', (TransferLot, TransferLot.thrift_spec), None, ), # 0
9140
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9141
  )
9142
 
9143
  def __init__(self, success=None, wex=None,):
9144
    self.success = success
9145
    self.wex = wex
9146
 
9147
  def read(self, iprot):
9148
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9149
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9150
      return
9151
    iprot.readStructBegin()
9152
    while True:
9153
      (fname, ftype, fid) = iprot.readFieldBegin()
9154
      if ftype == TType.STOP:
9155
        break
9156
      if fid == 0:
9157
        if ftype == TType.STRUCT:
9158
          self.success = TransferLot()
9159
          self.success.read(iprot)
9160
        else:
9161
          iprot.skip(ftype)
9162
      elif fid == 1:
9163
        if ftype == TType.STRUCT:
9164
          self.wex = WarehouseServiceException()
9165
          self.wex.read(iprot)
9166
        else:
9167
          iprot.skip(ftype)
9168
      else:
9169
        iprot.skip(ftype)
9170
      iprot.readFieldEnd()
9171
    iprot.readStructEnd()
9172
 
9173
  def write(self, oprot):
9174
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9175
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9176
      return
9177
    oprot.writeStructBegin('getTransferLot_result')
9178
    if self.success is not None:
9179
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9180
      self.success.write(oprot)
9181
      oprot.writeFieldEnd()
9182
    if self.wex is not None:
9183
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9184
      self.wex.write(oprot)
9185
      oprot.writeFieldEnd()
9186
    oprot.writeFieldStop()
9187
    oprot.writeStructEnd()
9188
 
9189
  def validate(self):
9190
    return
9191
 
9192
 
9193
  def __repr__(self):
9194
    L = ['%s=%r' % (key, value)
9195
      for key, value in self.__dict__.iteritems()]
9196
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9197
 
9198
  def __eq__(self, other):
9199
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9200
 
9201
  def __ne__(self, other):
9202
    return not (self == other)
9203
 
9204
class markTransferLotAsReceived_args:
9205
  """
9206
  Attributes:
9207
   - id
9208
   - remoteTransferRefNumber
9209
  """
9210
 
9211
  thrift_spec = (
9212
    None, # 0
9213
    (1, TType.I64, 'id', None, None, ), # 1
9214
    (2, TType.STRING, 'remoteTransferRefNumber', None, None, ), # 2
9215
  )
9216
 
9217
  def __init__(self, id=None, remoteTransferRefNumber=None,):
9218
    self.id = id
9219
    self.remoteTransferRefNumber = remoteTransferRefNumber
9220
 
9221
  def read(self, iprot):
9222
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9223
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9224
      return
9225
    iprot.readStructBegin()
9226
    while True:
9227
      (fname, ftype, fid) = iprot.readFieldBegin()
9228
      if ftype == TType.STOP:
9229
        break
9230
      if fid == 1:
9231
        if ftype == TType.I64:
9232
          self.id = iprot.readI64();
9233
        else:
9234
          iprot.skip(ftype)
9235
      elif fid == 2:
9236
        if ftype == TType.STRING:
9237
          self.remoteTransferRefNumber = iprot.readString();
9238
        else:
9239
          iprot.skip(ftype)
9240
      else:
9241
        iprot.skip(ftype)
9242
      iprot.readFieldEnd()
9243
    iprot.readStructEnd()
9244
 
9245
  def write(self, oprot):
9246
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9247
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9248
      return
9249
    oprot.writeStructBegin('markTransferLotAsReceived_args')
9250
    if self.id is not None:
9251
      oprot.writeFieldBegin('id', TType.I64, 1)
9252
      oprot.writeI64(self.id)
9253
      oprot.writeFieldEnd()
9254
    if self.remoteTransferRefNumber is not None:
9255
      oprot.writeFieldBegin('remoteTransferRefNumber', TType.STRING, 2)
9256
      oprot.writeString(self.remoteTransferRefNumber)
9257
      oprot.writeFieldEnd()
9258
    oprot.writeFieldStop()
9259
    oprot.writeStructEnd()
9260
 
9261
  def validate(self):
9262
    return
9263
 
9264
 
9265
  def __repr__(self):
9266
    L = ['%s=%r' % (key, value)
9267
      for key, value in self.__dict__.iteritems()]
9268
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9269
 
9270
  def __eq__(self, other):
9271
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9272
 
9273
  def __ne__(self, other):
9274
    return not (self == other)
9275
 
9276
class markTransferLotAsReceived_result:
9277
  """
9278
  Attributes:
9279
   - wex
9280
  """
9281
 
9282
  thrift_spec = (
9283
    None, # 0
9284
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9285
  )
9286
 
9287
  def __init__(self, wex=None,):
9288
    self.wex = wex
9289
 
9290
  def read(self, iprot):
9291
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9292
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9293
      return
9294
    iprot.readStructBegin()
9295
    while True:
9296
      (fname, ftype, fid) = iprot.readFieldBegin()
9297
      if ftype == TType.STOP:
9298
        break
9299
      if fid == 1:
9300
        if ftype == TType.STRUCT:
9301
          self.wex = WarehouseServiceException()
9302
          self.wex.read(iprot)
9303
        else:
9304
          iprot.skip(ftype)
9305
      else:
9306
        iprot.skip(ftype)
9307
      iprot.readFieldEnd()
9308
    iprot.readStructEnd()
9309
 
9310
  def write(self, oprot):
9311
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9312
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9313
      return
9314
    oprot.writeStructBegin('markTransferLotAsReceived_result')
9315
    if self.wex is not None:
9316
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9317
      self.wex.write(oprot)
9318
      oprot.writeFieldEnd()
9319
    oprot.writeFieldStop()
9320
    oprot.writeStructEnd()
9321
 
9322
  def validate(self):
9323
    return
9324
 
9325
 
9326
  def __repr__(self):
9327
    L = ['%s=%r' % (key, value)
9328
      for key, value in self.__dict__.iteritems()]
9329
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9330
 
9331
  def __eq__(self, other):
9332
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9333
 
9334
  def __ne__(self, other):
9335
    return not (self == other)
9336
 
9337
class getTransferLotsByDate_args:
9338
  """
9339
  Attributes:
9340
   - fromDate
9341
   - toDate
9342
  """
9343
 
9344
  thrift_spec = (
9345
    None, # 0
9346
    (1, TType.I64, 'fromDate', None, None, ), # 1
9347
    (2, TType.I64, 'toDate', None, None, ), # 2
9348
  )
9349
 
9350
  def __init__(self, fromDate=None, toDate=None,):
9351
    self.fromDate = fromDate
9352
    self.toDate = toDate
9353
 
9354
  def read(self, iprot):
9355
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9356
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9357
      return
9358
    iprot.readStructBegin()
9359
    while True:
9360
      (fname, ftype, fid) = iprot.readFieldBegin()
9361
      if ftype == TType.STOP:
9362
        break
9363
      if fid == 1:
9364
        if ftype == TType.I64:
9365
          self.fromDate = iprot.readI64();
9366
        else:
9367
          iprot.skip(ftype)
9368
      elif fid == 2:
9369
        if ftype == TType.I64:
9370
          self.toDate = iprot.readI64();
9371
        else:
9372
          iprot.skip(ftype)
9373
      else:
9374
        iprot.skip(ftype)
9375
      iprot.readFieldEnd()
9376
    iprot.readStructEnd()
9377
 
9378
  def write(self, oprot):
9379
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9380
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9381
      return
9382
    oprot.writeStructBegin('getTransferLotsByDate_args')
9383
    if self.fromDate is not None:
9384
      oprot.writeFieldBegin('fromDate', TType.I64, 1)
9385
      oprot.writeI64(self.fromDate)
9386
      oprot.writeFieldEnd()
9387
    if self.toDate is not None:
9388
      oprot.writeFieldBegin('toDate', TType.I64, 2)
9389
      oprot.writeI64(self.toDate)
9390
      oprot.writeFieldEnd()
9391
    oprot.writeFieldStop()
9392
    oprot.writeStructEnd()
9393
 
9394
  def validate(self):
9395
    return
9396
 
9397
 
9398
  def __repr__(self):
9399
    L = ['%s=%r' % (key, value)
9400
      for key, value in self.__dict__.iteritems()]
9401
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9402
 
9403
  def __eq__(self, other):
9404
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9405
 
9406
  def __ne__(self, other):
9407
    return not (self == other)
9408
 
9409
class getTransferLotsByDate_result:
9410
  """
9411
  Attributes:
9412
   - success
9413
   - wex
9414
  """
9415
 
9416
  thrift_spec = (
9417
    (0, TType.LIST, 'success', (TType.STRUCT,(TransferLot, TransferLot.thrift_spec)), None, ), # 0
9418
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9419
  )
9420
 
9421
  def __init__(self, success=None, wex=None,):
9422
    self.success = success
9423
    self.wex = wex
9424
 
9425
  def read(self, iprot):
9426
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9427
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9428
      return
9429
    iprot.readStructBegin()
9430
    while True:
9431
      (fname, ftype, fid) = iprot.readFieldBegin()
9432
      if ftype == TType.STOP:
9433
        break
9434
      if fid == 0:
9435
        if ftype == TType.LIST:
9436
          self.success = []
10407 amar.kumar 9437
          (_etype157, _size154) = iprot.readListBegin()
9438
          for _i158 in xrange(_size154):
9439
            _elem159 = TransferLot()
9440
            _elem159.read(iprot)
9441
            self.success.append(_elem159)
7410 amar.kumar 9442
          iprot.readListEnd()
9443
        else:
9444
          iprot.skip(ftype)
9445
      elif fid == 1:
9446
        if ftype == TType.STRUCT:
9447
          self.wex = WarehouseServiceException()
9448
          self.wex.read(iprot)
9449
        else:
9450
          iprot.skip(ftype)
9451
      else:
9452
        iprot.skip(ftype)
9453
      iprot.readFieldEnd()
9454
    iprot.readStructEnd()
9455
 
9456
  def write(self, oprot):
9457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9459
      return
9460
    oprot.writeStructBegin('getTransferLotsByDate_result')
9461
    if self.success is not None:
9462
      oprot.writeFieldBegin('success', TType.LIST, 0)
9463
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 9464
      for iter160 in self.success:
9465
        iter160.write(oprot)
7410 amar.kumar 9466
      oprot.writeListEnd()
9467
      oprot.writeFieldEnd()
9468
    if self.wex is not None:
9469
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9470
      self.wex.write(oprot)
9471
      oprot.writeFieldEnd()
9472
    oprot.writeFieldStop()
9473
    oprot.writeStructEnd()
9474
 
9475
  def validate(self):
9476
    return
9477
 
9478
 
9479
  def __repr__(self):
9480
    L = ['%s=%r' % (key, value)
9481
      for key, value in self.__dict__.iteritems()]
9482
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9483
 
9484
  def __eq__(self, other):
9485
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9486
 
9487
  def __ne__(self, other):
9488
    return not (self == other)
9489
 
9490
class getAllowedDestinationWarehousesForTransfer_args:
9491
  """
9492
  Attributes:
9493
   - warehouseId
9494
  """
9495
 
9496
  thrift_spec = (
9497
    None, # 0
9498
    (1, TType.I64, 'warehouseId', None, None, ), # 1
9499
  )
9500
 
9501
  def __init__(self, warehouseId=None,):
9502
    self.warehouseId = warehouseId
9503
 
9504
  def read(self, iprot):
9505
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9506
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9507
      return
9508
    iprot.readStructBegin()
9509
    while True:
9510
      (fname, ftype, fid) = iprot.readFieldBegin()
9511
      if ftype == TType.STOP:
9512
        break
9513
      if fid == 1:
9514
        if ftype == TType.I64:
9515
          self.warehouseId = iprot.readI64();
9516
        else:
9517
          iprot.skip(ftype)
9518
      else:
9519
        iprot.skip(ftype)
9520
      iprot.readFieldEnd()
9521
    iprot.readStructEnd()
9522
 
9523
  def write(self, oprot):
9524
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9525
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9526
      return
9527
    oprot.writeStructBegin('getAllowedDestinationWarehousesForTransfer_args')
9528
    if self.warehouseId is not None:
9529
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
9530
      oprot.writeI64(self.warehouseId)
9531
      oprot.writeFieldEnd()
9532
    oprot.writeFieldStop()
9533
    oprot.writeStructEnd()
9534
 
9535
  def validate(self):
9536
    return
9537
 
9538
 
9539
  def __repr__(self):
9540
    L = ['%s=%r' % (key, value)
9541
      for key, value in self.__dict__.iteritems()]
9542
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9543
 
9544
  def __eq__(self, other):
9545
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9546
 
9547
  def __ne__(self, other):
9548
    return not (self == other)
9549
 
9550
class getAllowedDestinationWarehousesForTransfer_result:
9551
  """
9552
  Attributes:
9553
   - success
9554
  """
9555
 
9556
  thrift_spec = (
9557
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9558
  )
9559
 
9560
  def __init__(self, success=None,):
9561
    self.success = success
9562
 
9563
  def read(self, iprot):
9564
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9565
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9566
      return
9567
    iprot.readStructBegin()
9568
    while True:
9569
      (fname, ftype, fid) = iprot.readFieldBegin()
9570
      if ftype == TType.STOP:
9571
        break
9572
      if fid == 0:
9573
        if ftype == TType.LIST:
9574
          self.success = []
10407 amar.kumar 9575
          (_etype164, _size161) = iprot.readListBegin()
9576
          for _i165 in xrange(_size161):
9577
            _elem166 = iprot.readI64();
9578
            self.success.append(_elem166)
7410 amar.kumar 9579
          iprot.readListEnd()
9580
        else:
9581
          iprot.skip(ftype)
9582
      else:
9583
        iprot.skip(ftype)
9584
      iprot.readFieldEnd()
9585
    iprot.readStructEnd()
9586
 
9587
  def write(self, oprot):
9588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9590
      return
9591
    oprot.writeStructBegin('getAllowedDestinationWarehousesForTransfer_result')
9592
    if self.success is not None:
9593
      oprot.writeFieldBegin('success', TType.LIST, 0)
9594
      oprot.writeListBegin(TType.I64, len(self.success))
10407 amar.kumar 9595
      for iter167 in self.success:
9596
        oprot.writeI64(iter167)
7410 amar.kumar 9597
      oprot.writeListEnd()
9598
      oprot.writeFieldEnd()
9599
    oprot.writeFieldStop()
9600
    oprot.writeStructEnd()
9601
 
9602
  def validate(self):
9603
    return
9604
 
9605
 
9606
  def __repr__(self):
9607
    L = ['%s=%r' % (key, value)
9608
      for key, value in self.__dict__.iteritems()]
9609
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9610
 
9611
  def __eq__(self, other):
9612
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9613
 
9614
  def __ne__(self, other):
9615
    return not (self == other)
9616
 
9617
class getItemsInTransferLot_args:
9618
  """
9619
  Attributes:
9620
   - transferLotId
9621
  """
9622
 
9623
  thrift_spec = (
9624
    None, # 0
9625
    (1, TType.I64, 'transferLotId', None, None, ), # 1
9626
  )
9627
 
9628
  def __init__(self, transferLotId=None,):
9629
    self.transferLotId = transferLotId
9630
 
9631
  def read(self, iprot):
9632
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9633
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9634
      return
9635
    iprot.readStructBegin()
9636
    while True:
9637
      (fname, ftype, fid) = iprot.readFieldBegin()
9638
      if ftype == TType.STOP:
9639
        break
9640
      if fid == 1:
9641
        if ftype == TType.I64:
9642
          self.transferLotId = iprot.readI64();
9643
        else:
9644
          iprot.skip(ftype)
9645
      else:
9646
        iprot.skip(ftype)
9647
      iprot.readFieldEnd()
9648
    iprot.readStructEnd()
9649
 
9650
  def write(self, oprot):
9651
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9652
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9653
      return
9654
    oprot.writeStructBegin('getItemsInTransferLot_args')
9655
    if self.transferLotId is not None:
9656
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
9657
      oprot.writeI64(self.transferLotId)
9658
      oprot.writeFieldEnd()
9659
    oprot.writeFieldStop()
9660
    oprot.writeStructEnd()
9661
 
9662
  def validate(self):
9663
    return
9664
 
9665
 
9666
  def __repr__(self):
9667
    L = ['%s=%r' % (key, value)
9668
      for key, value in self.__dict__.iteritems()]
9669
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9670
 
9671
  def __eq__(self, other):
9672
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9673
 
9674
  def __ne__(self, other):
9675
    return not (self == other)
9676
 
9677
class getItemsInTransferLot_result:
9678
  """
9679
  Attributes:
9680
   - success
9681
  """
9682
 
9683
  thrift_spec = (
9684
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
9685
  )
9686
 
9687
  def __init__(self, success=None,):
9688
    self.success = success
9689
 
9690
  def read(self, iprot):
9691
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9692
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9693
      return
9694
    iprot.readStructBegin()
9695
    while True:
9696
      (fname, ftype, fid) = iprot.readFieldBegin()
9697
      if ftype == TType.STOP:
9698
        break
9699
      if fid == 0:
9700
        if ftype == TType.MAP:
9701
          self.success = {}
10407 amar.kumar 9702
          (_ktype169, _vtype170, _size168 ) = iprot.readMapBegin() 
9703
          for _i172 in xrange(_size168):
9704
            _key173 = iprot.readI64();
9705
            _val174 = iprot.readI64();
9706
            self.success[_key173] = _val174
7410 amar.kumar 9707
          iprot.readMapEnd()
9708
        else:
9709
          iprot.skip(ftype)
9710
      else:
9711
        iprot.skip(ftype)
9712
      iprot.readFieldEnd()
9713
    iprot.readStructEnd()
9714
 
9715
  def write(self, oprot):
9716
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9717
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9718
      return
9719
    oprot.writeStructBegin('getItemsInTransferLot_result')
9720
    if self.success is not None:
9721
      oprot.writeFieldBegin('success', TType.MAP, 0)
9722
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
10407 amar.kumar 9723
      for kiter175,viter176 in self.success.items():
9724
        oprot.writeI64(kiter175)
9725
        oprot.writeI64(viter176)
7410 amar.kumar 9726
      oprot.writeMapEnd()
9727
      oprot.writeFieldEnd()
9728
    oprot.writeFieldStop()
9729
    oprot.writeStructEnd()
9730
 
9731
  def validate(self):
9732
    return
9733
 
9734
 
9735
  def __repr__(self):
9736
    L = ['%s=%r' % (key, value)
9737
      for key, value in self.__dict__.iteritems()]
9738
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9739
 
9740
  def __eq__(self, other):
9741
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9742
 
9743
  def __ne__(self, other):
9744
    return not (self == other)
9745
 
9746
class markItemsAsReceivedForTransferLot_args:
9747
  """
9748
  Attributes:
9749
   - id
9750
  """
9751
 
9752
  thrift_spec = (
9753
    None, # 0
9754
    (1, TType.I64, 'id', None, None, ), # 1
9755
  )
9756
 
9757
  def __init__(self, id=None,):
9758
    self.id = id
9759
 
9760
  def read(self, iprot):
9761
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9762
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9763
      return
9764
    iprot.readStructBegin()
9765
    while True:
9766
      (fname, ftype, fid) = iprot.readFieldBegin()
9767
      if ftype == TType.STOP:
9768
        break
9769
      if fid == 1:
9770
        if ftype == TType.I64:
9771
          self.id = iprot.readI64();
9772
        else:
9773
          iprot.skip(ftype)
9774
      else:
9775
        iprot.skip(ftype)
9776
      iprot.readFieldEnd()
9777
    iprot.readStructEnd()
9778
 
9779
  def write(self, oprot):
9780
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9781
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9782
      return
9783
    oprot.writeStructBegin('markItemsAsReceivedForTransferLot_args')
9784
    if self.id is not None:
9785
      oprot.writeFieldBegin('id', TType.I64, 1)
9786
      oprot.writeI64(self.id)
9787
      oprot.writeFieldEnd()
9788
    oprot.writeFieldStop()
9789
    oprot.writeStructEnd()
9790
 
9791
  def validate(self):
9792
    return
9793
 
9794
 
9795
  def __repr__(self):
9796
    L = ['%s=%r' % (key, value)
9797
      for key, value in self.__dict__.iteritems()]
9798
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9799
 
9800
  def __eq__(self, other):
9801
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9802
 
9803
  def __ne__(self, other):
9804
    return not (self == other)
9805
 
9806
class markItemsAsReceivedForTransferLot_result:
9807
  """
9808
  Attributes:
9809
   - wex
9810
  """
9811
 
9812
  thrift_spec = (
9813
    None, # 0
9814
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9815
  )
9816
 
9817
  def __init__(self, wex=None,):
9818
    self.wex = wex
9819
 
9820
  def read(self, iprot):
9821
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9822
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9823
      return
9824
    iprot.readStructBegin()
9825
    while True:
9826
      (fname, ftype, fid) = iprot.readFieldBegin()
9827
      if ftype == TType.STOP:
9828
        break
9829
      if fid == 1:
9830
        if ftype == TType.STRUCT:
9831
          self.wex = WarehouseServiceException()
9832
          self.wex.read(iprot)
9833
        else:
9834
          iprot.skip(ftype)
9835
      else:
9836
        iprot.skip(ftype)
9837
      iprot.readFieldEnd()
9838
    iprot.readStructEnd()
9839
 
9840
  def write(self, oprot):
9841
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9842
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9843
      return
9844
    oprot.writeStructBegin('markItemsAsReceivedForTransferLot_result')
9845
    if self.wex is not None:
9846
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9847
      self.wex.write(oprot)
9848
      oprot.writeFieldEnd()
9849
    oprot.writeFieldStop()
9850
    oprot.writeStructEnd()
9851
 
9852
  def validate(self):
9853
    return
9854
 
9855
 
9856
  def __repr__(self):
9857
    L = ['%s=%r' % (key, value)
9858
      for key, value in self.__dict__.iteritems()]
9859
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9860
 
9861
  def __eq__(self, other):
9862
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9863
 
9864
  def __ne__(self, other):
9865
    return not (self == other)
9866
 
9867
class updateTransferLotAfterItemReceive_args:
9868
  """
9869
  Attributes:
9870
   - id
9871
  """
9872
 
9873
  thrift_spec = (
9874
    None, # 0
9875
    (1, TType.I64, 'id', None, None, ), # 1
9876
  )
9877
 
9878
  def __init__(self, id=None,):
9879
    self.id = id
9880
 
9881
  def read(self, iprot):
9882
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9883
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9884
      return
9885
    iprot.readStructBegin()
9886
    while True:
9887
      (fname, ftype, fid) = iprot.readFieldBegin()
9888
      if ftype == TType.STOP:
9889
        break
9890
      if fid == 1:
9891
        if ftype == TType.I64:
9892
          self.id = iprot.readI64();
9893
        else:
9894
          iprot.skip(ftype)
9895
      else:
9896
        iprot.skip(ftype)
9897
      iprot.readFieldEnd()
9898
    iprot.readStructEnd()
9899
 
9900
  def write(self, oprot):
9901
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9902
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9903
      return
9904
    oprot.writeStructBegin('updateTransferLotAfterItemReceive_args')
9905
    if self.id is not None:
9906
      oprot.writeFieldBegin('id', TType.I64, 1)
9907
      oprot.writeI64(self.id)
9908
      oprot.writeFieldEnd()
9909
    oprot.writeFieldStop()
9910
    oprot.writeStructEnd()
9911
 
9912
  def validate(self):
9913
    return
9914
 
9915
 
9916
  def __repr__(self):
9917
    L = ['%s=%r' % (key, value)
9918
      for key, value in self.__dict__.iteritems()]
9919
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9920
 
9921
  def __eq__(self, other):
9922
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9923
 
9924
  def __ne__(self, other):
9925
    return not (self == other)
9926
 
9927
class updateTransferLotAfterItemReceive_result:
9928
  """
9929
  Attributes:
9930
   - success
9931
   - wex
9932
  """
9933
 
9934
  thrift_spec = (
9935
    (0, TType.I32, 'success', None, None, ), # 0
9936
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9937
  )
9938
 
9939
  def __init__(self, success=None, wex=None,):
9940
    self.success = success
9941
    self.wex = wex
9942
 
9943
  def read(self, iprot):
9944
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9945
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9946
      return
9947
    iprot.readStructBegin()
9948
    while True:
9949
      (fname, ftype, fid) = iprot.readFieldBegin()
9950
      if ftype == TType.STOP:
9951
        break
9952
      if fid == 0:
9953
        if ftype == TType.I32:
9954
          self.success = iprot.readI32();
9955
        else:
9956
          iprot.skip(ftype)
9957
      elif fid == 1:
9958
        if ftype == TType.STRUCT:
9959
          self.wex = WarehouseServiceException()
9960
          self.wex.read(iprot)
9961
        else:
9962
          iprot.skip(ftype)
9963
      else:
9964
        iprot.skip(ftype)
9965
      iprot.readFieldEnd()
9966
    iprot.readStructEnd()
9967
 
9968
  def write(self, oprot):
9969
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9970
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9971
      return
9972
    oprot.writeStructBegin('updateTransferLotAfterItemReceive_result')
9973
    if self.success is not None:
9974
      oprot.writeFieldBegin('success', TType.I32, 0)
9975
      oprot.writeI32(self.success)
9976
      oprot.writeFieldEnd()
9977
    if self.wex is not None:
9978
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9979
      self.wex.write(oprot)
9980
      oprot.writeFieldEnd()
9981
    oprot.writeFieldStop()
9982
    oprot.writeStructEnd()
9983
 
9984
  def validate(self):
9985
    return
9986
 
9987
 
9988
  def __repr__(self):
9989
    L = ['%s=%r' % (key, value)
9990
      for key, value in self.__dict__.iteritems()]
9991
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9992
 
9993
  def __eq__(self, other):
9994
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9995
 
9996
  def __ne__(self, other):
9997
    return not (self == other)
9998
 
7459 amar.kumar 9999
class scanForTransferOut_args:
7410 amar.kumar 10000
  """
10001
  Attributes:
10002
   - inventoryItems
10003
   - type
10004
   - transferLotId
10005
  """
10006
 
10007
  thrift_spec = (
10008
    None, # 0
10009
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
10010
    (2, TType.I32, 'type', None, None, ), # 2
10011
    (3, TType.I64, 'transferLotId', None, None, ), # 3
10012
  )
10013
 
10014
  def __init__(self, inventoryItems=None, type=None, transferLotId=None,):
10015
    self.inventoryItems = inventoryItems
10016
    self.type = type
10017
    self.transferLotId = transferLotId
10018
 
10019
  def read(self, iprot):
10020
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10021
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10022
      return
10023
    iprot.readStructBegin()
10024
    while True:
10025
      (fname, ftype, fid) = iprot.readFieldBegin()
10026
      if ftype == TType.STOP:
10027
        break
10028
      if fid == 1:
10029
        if ftype == TType.LIST:
10030
          self.inventoryItems = []
10407 amar.kumar 10031
          (_etype180, _size177) = iprot.readListBegin()
10032
          for _i181 in xrange(_size177):
10033
            _elem182 = InventoryItem()
10034
            _elem182.read(iprot)
10035
            self.inventoryItems.append(_elem182)
7410 amar.kumar 10036
          iprot.readListEnd()
10037
        else:
10038
          iprot.skip(ftype)
10039
      elif fid == 2:
10040
        if ftype == TType.I32:
10041
          self.type = iprot.readI32();
10042
        else:
10043
          iprot.skip(ftype)
10044
      elif fid == 3:
10045
        if ftype == TType.I64:
10046
          self.transferLotId = iprot.readI64();
10047
        else:
10048
          iprot.skip(ftype)
10049
      else:
10050
        iprot.skip(ftype)
10051
      iprot.readFieldEnd()
10052
    iprot.readStructEnd()
10053
 
10054
  def write(self, oprot):
10055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10057
      return
7459 amar.kumar 10058
    oprot.writeStructBegin('scanForTransferOut_args')
7410 amar.kumar 10059
    if self.inventoryItems is not None:
10060
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
10061
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 10062
      for iter183 in self.inventoryItems:
10063
        iter183.write(oprot)
7410 amar.kumar 10064
      oprot.writeListEnd()
10065
      oprot.writeFieldEnd()
10066
    if self.type is not None:
10067
      oprot.writeFieldBegin('type', TType.I32, 2)
10068
      oprot.writeI32(self.type)
10069
      oprot.writeFieldEnd()
10070
    if self.transferLotId is not None:
10071
      oprot.writeFieldBegin('transferLotId', TType.I64, 3)
10072
      oprot.writeI64(self.transferLotId)
10073
      oprot.writeFieldEnd()
10074
    oprot.writeFieldStop()
10075
    oprot.writeStructEnd()
10076
 
10077
  def validate(self):
10078
    return
10079
 
10080
 
10081
  def __repr__(self):
10082
    L = ['%s=%r' % (key, value)
10083
      for key, value in self.__dict__.iteritems()]
10084
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10085
 
10086
  def __eq__(self, other):
10087
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10088
 
10089
  def __ne__(self, other):
10090
    return not (self == other)
10091
 
7459 amar.kumar 10092
class scanForTransferOut_result:
7410 amar.kumar 10093
  """
10094
  Attributes:
10095
   - wex
10096
  """
10097
 
10098
  thrift_spec = (
10099
    None, # 0
10100
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10101
  )
10102
 
10103
  def __init__(self, wex=None,):
10104
    self.wex = wex
10105
 
10106
  def read(self, iprot):
10107
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10108
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10109
      return
10110
    iprot.readStructBegin()
10111
    while True:
10112
      (fname, ftype, fid) = iprot.readFieldBegin()
10113
      if ftype == TType.STOP:
10114
        break
10115
      if fid == 1:
10116
        if ftype == TType.STRUCT:
10117
          self.wex = WarehouseServiceException()
10118
          self.wex.read(iprot)
10119
        else:
10120
          iprot.skip(ftype)
10121
      else:
10122
        iprot.skip(ftype)
10123
      iprot.readFieldEnd()
10124
    iprot.readStructEnd()
10125
 
10126
  def write(self, oprot):
10127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10129
      return
7459 amar.kumar 10130
    oprot.writeStructBegin('scanForTransferOut_result')
7410 amar.kumar 10131
    if self.wex is not None:
10132
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10133
      self.wex.write(oprot)
10134
      oprot.writeFieldEnd()
10135
    oprot.writeFieldStop()
10136
    oprot.writeStructEnd()
10137
 
10138
  def validate(self):
10139
    return
10140
 
10141
 
10142
  def __repr__(self):
10143
    L = ['%s=%r' % (key, value)
10144
      for key, value in self.__dict__.iteritems()]
10145
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10146
 
10147
  def __eq__(self, other):
10148
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10149
 
10150
  def __ne__(self, other):
10151
    return not (self == other)
7459 amar.kumar 10152
 
10153
class scanForTransferIn_args:
10154
  """
10155
  Attributes:
10156
   - inventoryItems
10157
   - type
10158
   - transferLotId
10159
  """
10160
 
10161
  thrift_spec = (
10162
    None, # 0
10163
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
10164
    (2, TType.I32, 'type', None, None, ), # 2
10165
    (3, TType.I64, 'transferLotId', None, None, ), # 3
10166
  )
10167
 
10168
  def __init__(self, inventoryItems=None, type=None, transferLotId=None,):
10169
    self.inventoryItems = inventoryItems
10170
    self.type = type
10171
    self.transferLotId = transferLotId
10172
 
10173
  def read(self, iprot):
10174
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10175
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10176
      return
10177
    iprot.readStructBegin()
10178
    while True:
10179
      (fname, ftype, fid) = iprot.readFieldBegin()
10180
      if ftype == TType.STOP:
10181
        break
10182
      if fid == 1:
10183
        if ftype == TType.LIST:
10184
          self.inventoryItems = []
10407 amar.kumar 10185
          (_etype187, _size184) = iprot.readListBegin()
10186
          for _i188 in xrange(_size184):
10187
            _elem189 = InventoryItem()
10188
            _elem189.read(iprot)
10189
            self.inventoryItems.append(_elem189)
7459 amar.kumar 10190
          iprot.readListEnd()
10191
        else:
10192
          iprot.skip(ftype)
10193
      elif fid == 2:
10194
        if ftype == TType.I32:
10195
          self.type = iprot.readI32();
10196
        else:
10197
          iprot.skip(ftype)
10198
      elif fid == 3:
10199
        if ftype == TType.I64:
10200
          self.transferLotId = iprot.readI64();
10201
        else:
10202
          iprot.skip(ftype)
10203
      else:
10204
        iprot.skip(ftype)
10205
      iprot.readFieldEnd()
10206
    iprot.readStructEnd()
10207
 
10208
  def write(self, oprot):
10209
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10210
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10211
      return
10212
    oprot.writeStructBegin('scanForTransferIn_args')
10213
    if self.inventoryItems is not None:
10214
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
10215
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 10216
      for iter190 in self.inventoryItems:
10217
        iter190.write(oprot)
7459 amar.kumar 10218
      oprot.writeListEnd()
10219
      oprot.writeFieldEnd()
10220
    if self.type is not None:
10221
      oprot.writeFieldBegin('type', TType.I32, 2)
10222
      oprot.writeI32(self.type)
10223
      oprot.writeFieldEnd()
10224
    if self.transferLotId is not None:
10225
      oprot.writeFieldBegin('transferLotId', TType.I64, 3)
10226
      oprot.writeI64(self.transferLotId)
10227
      oprot.writeFieldEnd()
10228
    oprot.writeFieldStop()
10229
    oprot.writeStructEnd()
10230
 
10231
  def validate(self):
10232
    return
10233
 
10234
 
10235
  def __repr__(self):
10236
    L = ['%s=%r' % (key, value)
10237
      for key, value in self.__dict__.iteritems()]
10238
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10239
 
10240
  def __eq__(self, other):
10241
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10242
 
10243
  def __ne__(self, other):
10244
    return not (self == other)
10245
 
10246
class scanForTransferIn_result:
10247
  """
10248
  Attributes:
10249
   - wex
10250
  """
10251
 
10252
  thrift_spec = (
10253
    None, # 0
10254
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10255
  )
10256
 
10257
  def __init__(self, wex=None,):
10258
    self.wex = wex
10259
 
10260
  def read(self, iprot):
10261
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10262
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10263
      return
10264
    iprot.readStructBegin()
10265
    while True:
10266
      (fname, ftype, fid) = iprot.readFieldBegin()
10267
      if ftype == TType.STOP:
10268
        break
10269
      if fid == 1:
10270
        if ftype == TType.STRUCT:
10271
          self.wex = WarehouseServiceException()
10272
          self.wex.read(iprot)
10273
        else:
10274
          iprot.skip(ftype)
10275
      else:
10276
        iprot.skip(ftype)
10277
      iprot.readFieldEnd()
10278
    iprot.readStructEnd()
10279
 
10280
  def write(self, oprot):
10281
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10282
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10283
      return
10284
    oprot.writeStructBegin('scanForTransferIn_result')
10285
    if self.wex is not None:
10286
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10287
      self.wex.write(oprot)
10288
      oprot.writeFieldEnd()
10289
    oprot.writeFieldStop()
10290
    oprot.writeStructEnd()
10291
 
10292
  def validate(self):
10293
    return
10294
 
10295
 
10296
  def __repr__(self):
10297
    L = ['%s=%r' % (key, value)
10298
      for key, value in self.__dict__.iteritems()]
10299
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10300
 
10301
  def __eq__(self, other):
10302
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10303
 
10304
  def __ne__(self, other):
10305
    return not (self == other)
10306
 
10307
class scanForOursThirdPartyReceive_args:
10308
  """
10309
  Attributes:
10310
   - inventoryItems
10311
   - id
10312
  """
10313
 
10314
  thrift_spec = (
10315
    None, # 0
10316
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
10317
    (2, TType.I64, 'id', None, None, ), # 2
10318
  )
10319
 
10320
  def __init__(self, inventoryItems=None, id=None,):
10321
    self.inventoryItems = inventoryItems
10322
    self.id = id
10323
 
10324
  def read(self, iprot):
10325
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10326
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10327
      return
10328
    iprot.readStructBegin()
10329
    while True:
10330
      (fname, ftype, fid) = iprot.readFieldBegin()
10331
      if ftype == TType.STOP:
10332
        break
10333
      if fid == 1:
10334
        if ftype == TType.LIST:
10335
          self.inventoryItems = []
10407 amar.kumar 10336
          (_etype194, _size191) = iprot.readListBegin()
10337
          for _i195 in xrange(_size191):
10338
            _elem196 = InventoryItem()
10339
            _elem196.read(iprot)
10340
            self.inventoryItems.append(_elem196)
7459 amar.kumar 10341
          iprot.readListEnd()
10342
        else:
10343
          iprot.skip(ftype)
10344
      elif fid == 2:
10345
        if ftype == TType.I64:
10346
          self.id = iprot.readI64();
10347
        else:
10348
          iprot.skip(ftype)
10349
      else:
10350
        iprot.skip(ftype)
10351
      iprot.readFieldEnd()
10352
    iprot.readStructEnd()
10353
 
10354
  def write(self, oprot):
10355
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10356
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10357
      return
10358
    oprot.writeStructBegin('scanForOursThirdPartyReceive_args')
10359
    if self.inventoryItems is not None:
10360
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
10361
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 10362
      for iter197 in self.inventoryItems:
10363
        iter197.write(oprot)
7459 amar.kumar 10364
      oprot.writeListEnd()
10365
      oprot.writeFieldEnd()
10366
    if self.id is not None:
10367
      oprot.writeFieldBegin('id', TType.I64, 2)
10368
      oprot.writeI64(self.id)
10369
      oprot.writeFieldEnd()
10370
    oprot.writeFieldStop()
10371
    oprot.writeStructEnd()
10372
 
10373
  def validate(self):
10374
    return
10375
 
10376
 
10377
  def __repr__(self):
10378
    L = ['%s=%r' % (key, value)
10379
      for key, value in self.__dict__.iteritems()]
10380
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10381
 
10382
  def __eq__(self, other):
10383
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10384
 
10385
  def __ne__(self, other):
10386
    return not (self == other)
10387
 
10388
class scanForOursThirdPartyReceive_result:
10389
  """
10390
  Attributes:
10391
   - wex
10392
  """
10393
 
10394
  thrift_spec = (
10395
    None, # 0
10396
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10397
  )
10398
 
10399
  def __init__(self, wex=None,):
10400
    self.wex = wex
10401
 
10402
  def read(self, iprot):
10403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10405
      return
10406
    iprot.readStructBegin()
10407
    while True:
10408
      (fname, ftype, fid) = iprot.readFieldBegin()
10409
      if ftype == TType.STOP:
10410
        break
10411
      if fid == 1:
10412
        if ftype == TType.STRUCT:
10413
          self.wex = WarehouseServiceException()
10414
          self.wex.read(iprot)
10415
        else:
10416
          iprot.skip(ftype)
10417
      else:
10418
        iprot.skip(ftype)
10419
      iprot.readFieldEnd()
10420
    iprot.readStructEnd()
10421
 
10422
  def write(self, oprot):
10423
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10424
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10425
      return
10426
    oprot.writeStructBegin('scanForOursThirdPartyReceive_result')
10427
    if self.wex is not None:
10428
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10429
      self.wex.write(oprot)
10430
      oprot.writeFieldEnd()
10431
    oprot.writeFieldStop()
10432
    oprot.writeStructEnd()
10433
 
10434
  def validate(self):
10435
    return
10436
 
10437
 
10438
  def __repr__(self):
10439
    L = ['%s=%r' % (key, value)
10440
      for key, value in self.__dict__.iteritems()]
10441
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10442
 
10443
  def __eq__(self, other):
10444
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10445
 
10446
  def __ne__(self, other):
10447
    return not (self == other)
7574 amar.kumar 10448
 
10449
class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args:
10450
  """
10451
  Attributes:
10452
   - itemId
10453
   - physicalWarehouseId
10454
  """
10455
 
10456
  thrift_spec = (
10457
    None, # 0
10458
    (1, TType.I64, 'itemId', None, None, ), # 1
10459
    (2, TType.I64, 'physicalWarehouseId', None, None, ), # 2
10460
  )
10461
 
10462
  def __init__(self, itemId=None, physicalWarehouseId=None,):
10463
    self.itemId = itemId
10464
    self.physicalWarehouseId = physicalWarehouseId
10465
 
10466
  def read(self, iprot):
10467
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10468
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10469
      return
10470
    iprot.readStructBegin()
10471
    while True:
10472
      (fname, ftype, fid) = iprot.readFieldBegin()
10473
      if ftype == TType.STOP:
10474
        break
10475
      if fid == 1:
10476
        if ftype == TType.I64:
10477
          self.itemId = iprot.readI64();
10478
        else:
10479
          iprot.skip(ftype)
10480
      elif fid == 2:
10481
        if ftype == TType.I64:
10482
          self.physicalWarehouseId = iprot.readI64();
10483
        else:
10484
          iprot.skip(ftype)
10485
      else:
10486
        iprot.skip(ftype)
10487
      iprot.readFieldEnd()
10488
    iprot.readStructEnd()
10489
 
10490
  def write(self, oprot):
10491
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10492
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10493
      return
10494
    oprot.writeStructBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args')
10495
    if self.itemId is not None:
10496
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10497
      oprot.writeI64(self.itemId)
10498
      oprot.writeFieldEnd()
10499
    if self.physicalWarehouseId is not None:
10500
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 2)
10501
      oprot.writeI64(self.physicalWarehouseId)
10502
      oprot.writeFieldEnd()
10503
    oprot.writeFieldStop()
10504
    oprot.writeStructEnd()
10505
 
10506
  def validate(self):
10507
    return
10508
 
10509
 
10510
  def __repr__(self):
10511
    L = ['%s=%r' % (key, value)
10512
      for key, value in self.__dict__.iteritems()]
10513
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10514
 
10515
  def __eq__(self, other):
10516
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10517
 
10518
  def __ne__(self, other):
10519
    return not (self == other)
10520
 
10521
class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result:
10522
  """
10523
  Attributes:
10524
   - success
10525
   - wex
10526
  """
10527
 
10528
  thrift_spec = (
10529
    (0, TType.I64, 'success', None, None, ), # 0
10530
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10531
  )
10532
 
10533
  def __init__(self, success=None, wex=None,):
10534
    self.success = success
10535
    self.wex = wex
10536
 
10537
  def read(self, iprot):
10538
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10539
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10540
      return
10541
    iprot.readStructBegin()
10542
    while True:
10543
      (fname, ftype, fid) = iprot.readFieldBegin()
10544
      if ftype == TType.STOP:
10545
        break
10546
      if fid == 0:
10547
        if ftype == TType.I64:
10548
          self.success = iprot.readI64();
10549
        else:
10550
          iprot.skip(ftype)
10551
      elif fid == 1:
10552
        if ftype == TType.STRUCT:
10553
          self.wex = WarehouseServiceException()
10554
          self.wex.read(iprot)
10555
        else:
10556
          iprot.skip(ftype)
10557
      else:
10558
        iprot.skip(ftype)
10559
      iprot.readFieldEnd()
10560
    iprot.readStructEnd()
10561
 
10562
  def write(self, oprot):
10563
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10564
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10565
      return
10566
    oprot.writeStructBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result')
10567
    if self.success is not None:
10568
      oprot.writeFieldBegin('success', TType.I64, 0)
10569
      oprot.writeI64(self.success)
10570
      oprot.writeFieldEnd()
10571
    if self.wex is not None:
10572
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10573
      self.wex.write(oprot)
10574
      oprot.writeFieldEnd()
10575
    oprot.writeFieldStop()
10576
    oprot.writeStructEnd()
10577
 
10578
  def validate(self):
10579
    return
10580
 
10581
 
10582
  def __repr__(self):
10583
    L = ['%s=%r' % (key, value)
10584
      for key, value in self.__dict__.iteritems()]
10585
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10586
 
10587
  def __eq__(self, other):
10588
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10589
 
10590
  def __ne__(self, other):
10591
    return not (self == other)
7672 rajveer 10592
 
10593
class getInTransitInventory_args:
10594
  """
10595
  Attributes:
10596
   - originWarehouseId
10597
  """
10598
 
10599
  thrift_spec = (
10600
    None, # 0
10601
    (1, TType.I64, 'originWarehouseId', None, None, ), # 1
10602
  )
10603
 
10604
  def __init__(self, originWarehouseId=None,):
10605
    self.originWarehouseId = originWarehouseId
10606
 
10607
  def read(self, iprot):
10608
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10609
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10610
      return
10611
    iprot.readStructBegin()
10612
    while True:
10613
      (fname, ftype, fid) = iprot.readFieldBegin()
10614
      if ftype == TType.STOP:
10615
        break
10616
      if fid == 1:
10617
        if ftype == TType.I64:
10618
          self.originWarehouseId = iprot.readI64();
10619
        else:
10620
          iprot.skip(ftype)
10621
      else:
10622
        iprot.skip(ftype)
10623
      iprot.readFieldEnd()
10624
    iprot.readStructEnd()
10625
 
10626
  def write(self, oprot):
10627
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10628
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10629
      return
10630
    oprot.writeStructBegin('getInTransitInventory_args')
10631
    if self.originWarehouseId is not None:
10632
      oprot.writeFieldBegin('originWarehouseId', TType.I64, 1)
10633
      oprot.writeI64(self.originWarehouseId)
10634
      oprot.writeFieldEnd()
10635
    oprot.writeFieldStop()
10636
    oprot.writeStructEnd()
10637
 
10638
  def validate(self):
10639
    return
10640
 
10641
 
10642
  def __repr__(self):
10643
    L = ['%s=%r' % (key, value)
10644
      for key, value in self.__dict__.iteritems()]
10645
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10646
 
10647
  def __eq__(self, other):
10648
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10649
 
10650
  def __ne__(self, other):
10651
    return not (self == other)
10652
 
10653
class getInTransitInventory_result:
10654
  """
10655
  Attributes:
10656
   - success
10657
  """
10658
 
10659
  thrift_spec = (
10660
    (0, TType.LIST, 'success', (TType.STRUCT,(InTransitInventory, InTransitInventory.thrift_spec)), None, ), # 0
10661
  )
10662
 
10663
  def __init__(self, success=None,):
10664
    self.success = success
10665
 
10666
  def read(self, iprot):
10667
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10668
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10669
      return
10670
    iprot.readStructBegin()
10671
    while True:
10672
      (fname, ftype, fid) = iprot.readFieldBegin()
10673
      if ftype == TType.STOP:
10674
        break
10675
      if fid == 0:
10676
        if ftype == TType.LIST:
10677
          self.success = []
10407 amar.kumar 10678
          (_etype201, _size198) = iprot.readListBegin()
10679
          for _i202 in xrange(_size198):
10680
            _elem203 = InTransitInventory()
10681
            _elem203.read(iprot)
10682
            self.success.append(_elem203)
7672 rajveer 10683
          iprot.readListEnd()
10684
        else:
10685
          iprot.skip(ftype)
10686
      else:
10687
        iprot.skip(ftype)
10688
      iprot.readFieldEnd()
10689
    iprot.readStructEnd()
10690
 
10691
  def write(self, oprot):
10692
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10693
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10694
      return
10695
    oprot.writeStructBegin('getInTransitInventory_result')
10696
    if self.success is not None:
10697
      oprot.writeFieldBegin('success', TType.LIST, 0)
10698
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 10699
      for iter204 in self.success:
10700
        iter204.write(oprot)
7672 rajveer 10701
      oprot.writeListEnd()
10702
      oprot.writeFieldEnd()
10703
    oprot.writeFieldStop()
10704
    oprot.writeStructEnd()
10705
 
10706
  def validate(self):
10707
    return
10708
 
10709
 
10710
  def __repr__(self):
10711
    L = ['%s=%r' % (key, value)
10712
      for key, value in self.__dict__.iteritems()]
10713
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10714
 
10715
  def __eq__(self, other):
10716
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10717
 
10718
  def __ne__(self, other):
10719
    return not (self == other)
7968 amar.kumar 10720
 
10721
class isItemAvailableForSale_args:
10722
  """
10723
  Attributes:
10724
   - itemId
10725
   - serialNumber
10726
   - warehouseId
10727
  """
10728
 
10729
  thrift_spec = (
10730
    None, # 0
10731
    (1, TType.I64, 'itemId', None, None, ), # 1
10732
    (2, TType.STRING, 'serialNumber', None, None, ), # 2
10733
    (3, TType.I64, 'warehouseId', None, None, ), # 3
10734
  )
10735
 
10736
  def __init__(self, itemId=None, serialNumber=None, warehouseId=None,):
10737
    self.itemId = itemId
10738
    self.serialNumber = serialNumber
10739
    self.warehouseId = warehouseId
10740
 
10741
  def read(self, iprot):
10742
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10743
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10744
      return
10745
    iprot.readStructBegin()
10746
    while True:
10747
      (fname, ftype, fid) = iprot.readFieldBegin()
10748
      if ftype == TType.STOP:
10749
        break
10750
      if fid == 1:
10751
        if ftype == TType.I64:
10752
          self.itemId = iprot.readI64();
10753
        else:
10754
          iprot.skip(ftype)
10755
      elif fid == 2:
10756
        if ftype == TType.STRING:
10757
          self.serialNumber = iprot.readString();
10758
        else:
10759
          iprot.skip(ftype)
10760
      elif fid == 3:
10761
        if ftype == TType.I64:
10762
          self.warehouseId = iprot.readI64();
10763
        else:
10764
          iprot.skip(ftype)
10765
      else:
10766
        iprot.skip(ftype)
10767
      iprot.readFieldEnd()
10768
    iprot.readStructEnd()
10769
 
10770
  def write(self, oprot):
10771
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10772
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10773
      return
10774
    oprot.writeStructBegin('isItemAvailableForSale_args')
10775
    if self.itemId is not None:
10776
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10777
      oprot.writeI64(self.itemId)
10778
      oprot.writeFieldEnd()
10779
    if self.serialNumber is not None:
10780
      oprot.writeFieldBegin('serialNumber', TType.STRING, 2)
10781
      oprot.writeString(self.serialNumber)
10782
      oprot.writeFieldEnd()
10783
    if self.warehouseId is not None:
10784
      oprot.writeFieldBegin('warehouseId', TType.I64, 3)
10785
      oprot.writeI64(self.warehouseId)
10786
      oprot.writeFieldEnd()
10787
    oprot.writeFieldStop()
10788
    oprot.writeStructEnd()
10789
 
10790
  def validate(self):
10791
    return
10792
 
10793
 
10794
  def __repr__(self):
10795
    L = ['%s=%r' % (key, value)
10796
      for key, value in self.__dict__.iteritems()]
10797
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10798
 
10799
  def __eq__(self, other):
10800
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10801
 
10802
  def __ne__(self, other):
10803
    return not (self == other)
10804
 
10805
class isItemAvailableForSale_result:
10806
  """
10807
  Attributes:
10808
   - success
10809
   - wex
10810
  """
10811
 
10812
  thrift_spec = (
10813
    (0, TType.BOOL, 'success', None, None, ), # 0
10814
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10815
  )
10816
 
10817
  def __init__(self, success=None, wex=None,):
10818
    self.success = success
10819
    self.wex = wex
10820
 
10821
  def read(self, iprot):
10822
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10823
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10824
      return
10825
    iprot.readStructBegin()
10826
    while True:
10827
      (fname, ftype, fid) = iprot.readFieldBegin()
10828
      if ftype == TType.STOP:
10829
        break
10830
      if fid == 0:
10831
        if ftype == TType.BOOL:
10832
          self.success = iprot.readBool();
10833
        else:
10834
          iprot.skip(ftype)
10835
      elif fid == 1:
10836
        if ftype == TType.STRUCT:
10837
          self.wex = WarehouseServiceException()
10838
          self.wex.read(iprot)
10839
        else:
10840
          iprot.skip(ftype)
10841
      else:
10842
        iprot.skip(ftype)
10843
      iprot.readFieldEnd()
10844
    iprot.readStructEnd()
10845
 
10846
  def write(self, oprot):
10847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10849
      return
10850
    oprot.writeStructBegin('isItemAvailableForSale_result')
10851
    if self.success is not None:
10852
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10853
      oprot.writeBool(self.success)
10854
      oprot.writeFieldEnd()
10855
    if self.wex is not None:
10856
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10857
      self.wex.write(oprot)
10858
      oprot.writeFieldEnd()
10859
    oprot.writeFieldStop()
10860
    oprot.writeStructEnd()
10861
 
10862
  def validate(self):
10863
    return
10864
 
10865
 
10866
  def __repr__(self):
10867
    L = ['%s=%r' % (key, value)
10868
      for key, value in self.__dict__.iteritems()]
10869
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10870
 
10871
  def __eq__(self, other):
10872
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10873
 
10874
  def __ne__(self, other):
10875
    return not (self == other)
10876
 
10877
class getHistoricBadInventoryByScans_args:
10878
  """
10879
  Attributes:
10880
   - date
10881
  """
10882
 
10883
  thrift_spec = (
10884
    None, # 0
10885
    (1, TType.I64, 'date', None, None, ), # 1
10886
  )
10887
 
10888
  def __init__(self, date=None,):
10889
    self.date = date
10890
 
10891
  def read(self, iprot):
10892
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10893
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10894
      return
10895
    iprot.readStructBegin()
10896
    while True:
10897
      (fname, ftype, fid) = iprot.readFieldBegin()
10898
      if ftype == TType.STOP:
10899
        break
10900
      if fid == 1:
10901
        if ftype == TType.I64:
10902
          self.date = iprot.readI64();
10903
        else:
10904
          iprot.skip(ftype)
10905
      else:
10906
        iprot.skip(ftype)
10907
      iprot.readFieldEnd()
10908
    iprot.readStructEnd()
10909
 
10910
  def write(self, oprot):
10911
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10912
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10913
      return
10914
    oprot.writeStructBegin('getHistoricBadInventoryByScans_args')
10915
    if self.date is not None:
10916
      oprot.writeFieldBegin('date', TType.I64, 1)
10917
      oprot.writeI64(self.date)
10918
      oprot.writeFieldEnd()
10919
    oprot.writeFieldStop()
10920
    oprot.writeStructEnd()
10921
 
10922
  def validate(self):
10923
    return
10924
 
10925
 
10926
  def __repr__(self):
10927
    L = ['%s=%r' % (key, value)
10928
      for key, value in self.__dict__.iteritems()]
10929
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10930
 
10931
  def __eq__(self, other):
10932
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10933
 
10934
  def __ne__(self, other):
10935
    return not (self == other)
10936
 
10937
class getHistoricBadInventoryByScans_result:
10938
  """
10939
  Attributes:
10940
   - success
10941
   - wex
10942
  """
10943
 
10944
  thrift_spec = (
10945
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
10946
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10947
  )
10948
 
10949
  def __init__(self, success=None, wex=None,):
10950
    self.success = success
10951
    self.wex = wex
10952
 
10953
  def read(self, iprot):
10954
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10955
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10956
      return
10957
    iprot.readStructBegin()
10958
    while True:
10959
      (fname, ftype, fid) = iprot.readFieldBegin()
10960
      if ftype == TType.STOP:
10961
        break
10962
      if fid == 0:
10963
        if ftype == TType.LIST:
10964
          self.success = []
10407 amar.kumar 10965
          (_etype208, _size205) = iprot.readListBegin()
10966
          for _i209 in xrange(_size205):
10967
            _elem210 = InventoryAvailability()
10968
            _elem210.read(iprot)
10969
            self.success.append(_elem210)
7968 amar.kumar 10970
          iprot.readListEnd()
10971
        else:
10972
          iprot.skip(ftype)
10973
      elif fid == 1:
10974
        if ftype == TType.STRUCT:
10975
          self.wex = WarehouseServiceException()
10976
          self.wex.read(iprot)
10977
        else:
10978
          iprot.skip(ftype)
10979
      else:
10980
        iprot.skip(ftype)
10981
      iprot.readFieldEnd()
10982
    iprot.readStructEnd()
10983
 
10984
  def write(self, oprot):
10985
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10986
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10987
      return
10988
    oprot.writeStructBegin('getHistoricBadInventoryByScans_result')
10989
    if self.success is not None:
10990
      oprot.writeFieldBegin('success', TType.LIST, 0)
10991
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 10992
      for iter211 in self.success:
10993
        iter211.write(oprot)
7968 amar.kumar 10994
      oprot.writeListEnd()
10995
      oprot.writeFieldEnd()
10996
    if self.wex is not None:
10997
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10998
      self.wex.write(oprot)
10999
      oprot.writeFieldEnd()
11000
    oprot.writeFieldStop()
11001
    oprot.writeStructEnd()
11002
 
11003
  def validate(self):
11004
    return
11005
 
11006
 
11007
  def __repr__(self):
11008
    L = ['%s=%r' % (key, value)
11009
      for key, value in self.__dict__.iteritems()]
11010
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11011
 
11012
  def __eq__(self, other):
11013
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11014
 
11015
  def __ne__(self, other):
11016
    return not (self == other)
8565 amar.kumar 11017
 
11018
class scanForBadSale_args:
11019
  """
11020
  Attributes:
8717 amar.kumar 11021
   - serialNumber
11022
   - itemNumber
11023
   - itemId
8565 amar.kumar 11024
   - orderId
8717 amar.kumar 11025
   - fulfilmentWarehouseId
8565 amar.kumar 11026
   - quantity
11027
   - billingWarehouseId
11028
  """
11029
 
11030
  thrift_spec = (
11031
    None, # 0
8717 amar.kumar 11032
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
11033
    (2, TType.STRING, 'itemNumber', None, None, ), # 2
11034
    (3, TType.I64, 'itemId', None, None, ), # 3
11035
    (4, TType.I64, 'orderId', None, None, ), # 4
11036
    (5, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 5
11037
    (6, TType.I64, 'quantity', None, None, ), # 6
11038
    (7, TType.I64, 'billingWarehouseId', None, None, ), # 7
8565 amar.kumar 11039
  )
11040
 
8717 amar.kumar 11041
  def __init__(self, serialNumber=None, itemNumber=None, itemId=None, orderId=None, fulfilmentWarehouseId=None, quantity=None, billingWarehouseId=None,):
11042
    self.serialNumber = serialNumber
11043
    self.itemNumber = itemNumber
11044
    self.itemId = itemId
8565 amar.kumar 11045
    self.orderId = orderId
8717 amar.kumar 11046
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 11047
    self.quantity = quantity
11048
    self.billingWarehouseId = billingWarehouseId
11049
 
11050
  def read(self, iprot):
11051
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11052
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11053
      return
11054
    iprot.readStructBegin()
11055
    while True:
11056
      (fname, ftype, fid) = iprot.readFieldBegin()
11057
      if ftype == TType.STOP:
11058
        break
11059
      if fid == 1:
8717 amar.kumar 11060
        if ftype == TType.STRING:
11061
          self.serialNumber = iprot.readString();
8565 amar.kumar 11062
        else:
11063
          iprot.skip(ftype)
11064
      elif fid == 2:
8717 amar.kumar 11065
        if ftype == TType.STRING:
11066
          self.itemNumber = iprot.readString();
8565 amar.kumar 11067
        else:
11068
          iprot.skip(ftype)
11069
      elif fid == 3:
11070
        if ftype == TType.I64:
8717 amar.kumar 11071
          self.itemId = iprot.readI64();
8565 amar.kumar 11072
        else:
11073
          iprot.skip(ftype)
11074
      elif fid == 4:
11075
        if ftype == TType.I64:
8717 amar.kumar 11076
          self.orderId = iprot.readI64();
8565 amar.kumar 11077
        else:
11078
          iprot.skip(ftype)
11079
      elif fid == 5:
11080
        if ftype == TType.I64:
8717 amar.kumar 11081
          self.fulfilmentWarehouseId = iprot.readI64();
11082
        else:
11083
          iprot.skip(ftype)
11084
      elif fid == 6:
11085
        if ftype == TType.I64:
11086
          self.quantity = iprot.readI64();
11087
        else:
11088
          iprot.skip(ftype)
11089
      elif fid == 7:
11090
        if ftype == TType.I64:
8565 amar.kumar 11091
          self.billingWarehouseId = iprot.readI64();
11092
        else:
11093
          iprot.skip(ftype)
11094
      else:
11095
        iprot.skip(ftype)
11096
      iprot.readFieldEnd()
11097
    iprot.readStructEnd()
11098
 
11099
  def write(self, oprot):
11100
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11101
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11102
      return
11103
    oprot.writeStructBegin('scanForBadSale_args')
8717 amar.kumar 11104
    if self.serialNumber is not None:
11105
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
11106
      oprot.writeString(self.serialNumber)
8565 amar.kumar 11107
      oprot.writeFieldEnd()
8717 amar.kumar 11108
    if self.itemNumber is not None:
11109
      oprot.writeFieldBegin('itemNumber', TType.STRING, 2)
11110
      oprot.writeString(self.itemNumber)
11111
      oprot.writeFieldEnd()
11112
    if self.itemId is not None:
11113
      oprot.writeFieldBegin('itemId', TType.I64, 3)
11114
      oprot.writeI64(self.itemId)
11115
      oprot.writeFieldEnd()
8565 amar.kumar 11116
    if self.orderId is not None:
8717 amar.kumar 11117
      oprot.writeFieldBegin('orderId', TType.I64, 4)
8565 amar.kumar 11118
      oprot.writeI64(self.orderId)
11119
      oprot.writeFieldEnd()
8717 amar.kumar 11120
    if self.fulfilmentWarehouseId is not None:
11121
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 5)
11122
      oprot.writeI64(self.fulfilmentWarehouseId)
11123
      oprot.writeFieldEnd()
8565 amar.kumar 11124
    if self.quantity is not None:
8717 amar.kumar 11125
      oprot.writeFieldBegin('quantity', TType.I64, 6)
8565 amar.kumar 11126
      oprot.writeI64(self.quantity)
11127
      oprot.writeFieldEnd()
11128
    if self.billingWarehouseId is not None:
8717 amar.kumar 11129
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 7)
8565 amar.kumar 11130
      oprot.writeI64(self.billingWarehouseId)
11131
      oprot.writeFieldEnd()
11132
    oprot.writeFieldStop()
11133
    oprot.writeStructEnd()
11134
 
11135
  def validate(self):
11136
    return
11137
 
11138
 
11139
  def __repr__(self):
11140
    L = ['%s=%r' % (key, value)
11141
      for key, value in self.__dict__.iteritems()]
11142
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11143
 
11144
  def __eq__(self, other):
11145
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11146
 
11147
  def __ne__(self, other):
11148
    return not (self == other)
11149
 
11150
class scanForBadSale_result:
8717 amar.kumar 11151
  """
11152
  Attributes:
11153
   - success
11154
   - wex
11155
  """
8565 amar.kumar 11156
 
11157
  thrift_spec = (
8717 amar.kumar 11158
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
11159
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8565 amar.kumar 11160
  )
11161
 
8717 amar.kumar 11162
  def __init__(self, success=None, wex=None,):
11163
    self.success = success
11164
    self.wex = wex
11165
 
8565 amar.kumar 11166
  def read(self, iprot):
11167
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11168
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11169
      return
11170
    iprot.readStructBegin()
11171
    while True:
11172
      (fname, ftype, fid) = iprot.readFieldBegin()
11173
      if ftype == TType.STOP:
11174
        break
8717 amar.kumar 11175
      if fid == 0:
11176
        if ftype == TType.STRUCT:
11177
          self.success = InventoryItem()
11178
          self.success.read(iprot)
11179
        else:
11180
          iprot.skip(ftype)
11181
      elif fid == 1:
11182
        if ftype == TType.STRUCT:
11183
          self.wex = WarehouseServiceException()
11184
          self.wex.read(iprot)
11185
        else:
11186
          iprot.skip(ftype)
8565 amar.kumar 11187
      else:
11188
        iprot.skip(ftype)
11189
      iprot.readFieldEnd()
11190
    iprot.readStructEnd()
11191
 
11192
  def write(self, oprot):
11193
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11194
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11195
      return
11196
    oprot.writeStructBegin('scanForBadSale_result')
8717 amar.kumar 11197
    if self.success is not None:
11198
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11199
      self.success.write(oprot)
11200
      oprot.writeFieldEnd()
11201
    if self.wex is not None:
11202
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11203
      self.wex.write(oprot)
11204
      oprot.writeFieldEnd()
8565 amar.kumar 11205
    oprot.writeFieldStop()
11206
    oprot.writeStructEnd()
11207
 
11208
  def validate(self):
11209
    return
11210
 
11211
 
11212
  def __repr__(self):
11213
    L = ['%s=%r' % (key, value)
11214
      for key, value in self.__dict__.iteritems()]
11215
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11216
 
11217
  def __eq__(self, other):
11218
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11219
 
11220
  def __ne__(self, other):
11221
    return not (self == other)
10120 manish.sha 11222
 
11223
class getTransferLotItemsForMarkReceive_args:
11224
  """
11225
  Attributes:
11226
   - transferLotId
11227
   - scanType
11228
  """
11229
 
11230
  thrift_spec = (
11231
    None, # 0
11232
    (1, TType.I64, 'transferLotId', None, None, ), # 1
11233
    (2, TType.I32, 'scanType', None, None, ), # 2
11234
  )
11235
 
11236
  def __init__(self, transferLotId=None, scanType=None,):
11237
    self.transferLotId = transferLotId
11238
    self.scanType = scanType
11239
 
11240
  def read(self, iprot):
11241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11243
      return
11244
    iprot.readStructBegin()
11245
    while True:
11246
      (fname, ftype, fid) = iprot.readFieldBegin()
11247
      if ftype == TType.STOP:
11248
        break
11249
      if fid == 1:
11250
        if ftype == TType.I64:
11251
          self.transferLotId = iprot.readI64();
11252
        else:
11253
          iprot.skip(ftype)
11254
      elif fid == 2:
11255
        if ftype == TType.I32:
11256
          self.scanType = iprot.readI32();
11257
        else:
11258
          iprot.skip(ftype)
11259
      else:
11260
        iprot.skip(ftype)
11261
      iprot.readFieldEnd()
11262
    iprot.readStructEnd()
11263
 
11264
  def write(self, oprot):
11265
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11266
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11267
      return
11268
    oprot.writeStructBegin('getTransferLotItemsForMarkReceive_args')
11269
    if self.transferLotId is not None:
11270
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
11271
      oprot.writeI64(self.transferLotId)
11272
      oprot.writeFieldEnd()
11273
    if self.scanType is not None:
11274
      oprot.writeFieldBegin('scanType', TType.I32, 2)
11275
      oprot.writeI32(self.scanType)
11276
      oprot.writeFieldEnd()
11277
    oprot.writeFieldStop()
11278
    oprot.writeStructEnd()
11279
 
11280
  def validate(self):
11281
    return
11282
 
11283
 
11284
  def __repr__(self):
11285
    L = ['%s=%r' % (key, value)
11286
      for key, value in self.__dict__.iteritems()]
11287
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11288
 
11289
  def __eq__(self, other):
11290
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11291
 
11292
  def __ne__(self, other):
11293
    return not (self == other)
11294
 
11295
class getTransferLotItemsForMarkReceive_result:
11296
  """
11297
  Attributes:
11298
   - success
11299
   - wex
11300
  """
11301
 
11302
  thrift_spec = (
11303
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
11304
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11305
  )
11306
 
11307
  def __init__(self, success=None, wex=None,):
11308
    self.success = success
11309
    self.wex = wex
11310
 
11311
  def read(self, iprot):
11312
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11313
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11314
      return
11315
    iprot.readStructBegin()
11316
    while True:
11317
      (fname, ftype, fid) = iprot.readFieldBegin()
11318
      if ftype == TType.STOP:
11319
        break
11320
      if fid == 0:
11321
        if ftype == TType.LIST:
11322
          self.success = []
10407 amar.kumar 11323
          (_etype215, _size212) = iprot.readListBegin()
11324
          for _i216 in xrange(_size212):
11325
            _elem217 = InventoryItem()
11326
            _elem217.read(iprot)
11327
            self.success.append(_elem217)
10120 manish.sha 11328
          iprot.readListEnd()
11329
        else:
11330
          iprot.skip(ftype)
11331
      elif fid == 1:
11332
        if ftype == TType.STRUCT:
11333
          self.wex = WarehouseServiceException()
11334
          self.wex.read(iprot)
11335
        else:
11336
          iprot.skip(ftype)
11337
      else:
11338
        iprot.skip(ftype)
11339
      iprot.readFieldEnd()
11340
    iprot.readStructEnd()
11341
 
11342
  def write(self, oprot):
11343
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11344
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11345
      return
11346
    oprot.writeStructBegin('getTransferLotItemsForMarkReceive_result')
11347
    if self.success is not None:
11348
      oprot.writeFieldBegin('success', TType.LIST, 0)
11349
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 11350
      for iter218 in self.success:
11351
        iter218.write(oprot)
10120 manish.sha 11352
      oprot.writeListEnd()
11353
      oprot.writeFieldEnd()
11354
    if self.wex is not None:
11355
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11356
      self.wex.write(oprot)
11357
      oprot.writeFieldEnd()
11358
    oprot.writeFieldStop()
11359
    oprot.writeStructEnd()
11360
 
11361
  def validate(self):
11362
    return
11363
 
11364
 
11365
  def __repr__(self):
11366
    L = ['%s=%r' % (key, value)
11367
      for key, value in self.__dict__.iteritems()]
11368
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11369
 
11370
  def __eq__(self, other):
11371
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11372
 
11373
  def __ne__(self, other):
11374
    return not (self == other)
11375
 
11376
class markItemsAsReceivedForTransferLotPartial_args:
11377
  """
11378
  Attributes:
11379
   - inventoryItems
11380
   - transferLotId
11381
  """
11382
 
11383
  thrift_spec = (
11384
    None, # 0
11385
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
11386
    (2, TType.I64, 'transferLotId', None, None, ), # 2
11387
  )
11388
 
11389
  def __init__(self, inventoryItems=None, transferLotId=None,):
11390
    self.inventoryItems = inventoryItems
11391
    self.transferLotId = transferLotId
11392
 
11393
  def read(self, iprot):
11394
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11395
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11396
      return
11397
    iprot.readStructBegin()
11398
    while True:
11399
      (fname, ftype, fid) = iprot.readFieldBegin()
11400
      if ftype == TType.STOP:
11401
        break
11402
      if fid == 1:
11403
        if ftype == TType.LIST:
11404
          self.inventoryItems = []
10407 amar.kumar 11405
          (_etype222, _size219) = iprot.readListBegin()
11406
          for _i223 in xrange(_size219):
11407
            _elem224 = InventoryItem()
11408
            _elem224.read(iprot)
11409
            self.inventoryItems.append(_elem224)
10120 manish.sha 11410
          iprot.readListEnd()
11411
        else:
11412
          iprot.skip(ftype)
11413
      elif fid == 2:
11414
        if ftype == TType.I64:
11415
          self.transferLotId = iprot.readI64();
11416
        else:
11417
          iprot.skip(ftype)
11418
      else:
11419
        iprot.skip(ftype)
11420
      iprot.readFieldEnd()
11421
    iprot.readStructEnd()
11422
 
11423
  def write(self, oprot):
11424
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11425
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11426
      return
11427
    oprot.writeStructBegin('markItemsAsReceivedForTransferLotPartial_args')
11428
    if self.inventoryItems is not None:
11429
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
11430
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 11431
      for iter225 in self.inventoryItems:
11432
        iter225.write(oprot)
10120 manish.sha 11433
      oprot.writeListEnd()
11434
      oprot.writeFieldEnd()
11435
    if self.transferLotId is not None:
11436
      oprot.writeFieldBegin('transferLotId', TType.I64, 2)
11437
      oprot.writeI64(self.transferLotId)
11438
      oprot.writeFieldEnd()
11439
    oprot.writeFieldStop()
11440
    oprot.writeStructEnd()
11441
 
11442
  def validate(self):
11443
    return
11444
 
11445
 
11446
  def __repr__(self):
11447
    L = ['%s=%r' % (key, value)
11448
      for key, value in self.__dict__.iteritems()]
11449
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11450
 
11451
  def __eq__(self, other):
11452
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11453
 
11454
  def __ne__(self, other):
11455
    return not (self == other)
11456
 
11457
class markItemsAsReceivedForTransferLotPartial_result:
11458
  """
11459
  Attributes:
11460
   - wex
11461
  """
11462
 
11463
  thrift_spec = (
11464
    None, # 0
11465
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11466
  )
11467
 
11468
  def __init__(self, wex=None,):
11469
    self.wex = wex
11470
 
11471
  def read(self, iprot):
11472
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11473
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11474
      return
11475
    iprot.readStructBegin()
11476
    while True:
11477
      (fname, ftype, fid) = iprot.readFieldBegin()
11478
      if ftype == TType.STOP:
11479
        break
11480
      if fid == 1:
11481
        if ftype == TType.STRUCT:
11482
          self.wex = WarehouseServiceException()
11483
          self.wex.read(iprot)
11484
        else:
11485
          iprot.skip(ftype)
11486
      else:
11487
        iprot.skip(ftype)
11488
      iprot.readFieldEnd()
11489
    iprot.readStructEnd()
11490
 
11491
  def write(self, oprot):
11492
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11493
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11494
      return
11495
    oprot.writeStructBegin('markItemsAsReceivedForTransferLotPartial_result')
11496
    if self.wex is not None:
11497
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11498
      self.wex.write(oprot)
11499
      oprot.writeFieldEnd()
11500
    oprot.writeFieldStop()
11501
    oprot.writeStructEnd()
11502
 
11503
  def validate(self):
11504
    return
11505
 
11506
 
11507
  def __repr__(self):
11508
    L = ['%s=%r' % (key, value)
11509
      for key, value in self.__dict__.iteritems()]
11510
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11511
 
11512
  def __eq__(self, other):
11513
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11514
 
11515
  def __ne__(self, other):
11516
    return not (self == other)
11517
 
11518
class markTransferLotAsReceivedPartial_args:
11519
  """
11520
  Attributes:
11521
   - id
11522
   - remoteTransferRefNumber
11523
  """
11524
 
11525
  thrift_spec = (
11526
    None, # 0
11527
    (1, TType.I64, 'id', None, None, ), # 1
11528
    (2, TType.STRING, 'remoteTransferRefNumber', None, None, ), # 2
11529
  )
11530
 
11531
  def __init__(self, id=None, remoteTransferRefNumber=None,):
11532
    self.id = id
11533
    self.remoteTransferRefNumber = remoteTransferRefNumber
11534
 
11535
  def read(self, iprot):
11536
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11537
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11538
      return
11539
    iprot.readStructBegin()
11540
    while True:
11541
      (fname, ftype, fid) = iprot.readFieldBegin()
11542
      if ftype == TType.STOP:
11543
        break
11544
      if fid == 1:
11545
        if ftype == TType.I64:
11546
          self.id = iprot.readI64();
11547
        else:
11548
          iprot.skip(ftype)
11549
      elif fid == 2:
11550
        if ftype == TType.STRING:
11551
          self.remoteTransferRefNumber = iprot.readString();
11552
        else:
11553
          iprot.skip(ftype)
11554
      else:
11555
        iprot.skip(ftype)
11556
      iprot.readFieldEnd()
11557
    iprot.readStructEnd()
11558
 
11559
  def write(self, oprot):
11560
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11561
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11562
      return
11563
    oprot.writeStructBegin('markTransferLotAsReceivedPartial_args')
11564
    if self.id is not None:
11565
      oprot.writeFieldBegin('id', TType.I64, 1)
11566
      oprot.writeI64(self.id)
11567
      oprot.writeFieldEnd()
11568
    if self.remoteTransferRefNumber is not None:
11569
      oprot.writeFieldBegin('remoteTransferRefNumber', TType.STRING, 2)
11570
      oprot.writeString(self.remoteTransferRefNumber)
11571
      oprot.writeFieldEnd()
11572
    oprot.writeFieldStop()
11573
    oprot.writeStructEnd()
11574
 
11575
  def validate(self):
11576
    return
11577
 
11578
 
11579
  def __repr__(self):
11580
    L = ['%s=%r' % (key, value)
11581
      for key, value in self.__dict__.iteritems()]
11582
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11583
 
11584
  def __eq__(self, other):
11585
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11586
 
11587
  def __ne__(self, other):
11588
    return not (self == other)
11589
 
11590
class markTransferLotAsReceivedPartial_result:
11591
  """
11592
  Attributes:
11593
   - wex
11594
  """
11595
 
11596
  thrift_spec = (
11597
    None, # 0
11598
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11599
  )
11600
 
11601
  def __init__(self, wex=None,):
11602
    self.wex = wex
11603
 
11604
  def read(self, iprot):
11605
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11606
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11607
      return
11608
    iprot.readStructBegin()
11609
    while True:
11610
      (fname, ftype, fid) = iprot.readFieldBegin()
11611
      if ftype == TType.STOP:
11612
        break
11613
      if fid == 1:
11614
        if ftype == TType.STRUCT:
11615
          self.wex = WarehouseServiceException()
11616
          self.wex.read(iprot)
11617
        else:
11618
          iprot.skip(ftype)
11619
      else:
11620
        iprot.skip(ftype)
11621
      iprot.readFieldEnd()
11622
    iprot.readStructEnd()
11623
 
11624
  def write(self, oprot):
11625
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11626
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11627
      return
11628
    oprot.writeStructBegin('markTransferLotAsReceivedPartial_result')
11629
    if self.wex is not None:
11630
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11631
      self.wex.write(oprot)
11632
      oprot.writeFieldEnd()
11633
    oprot.writeFieldStop()
11634
    oprot.writeStructEnd()
11635
 
11636
  def validate(self):
11637
    return
11638
 
11639
 
11640
  def __repr__(self):
11641
    L = ['%s=%r' % (key, value)
11642
      for key, value in self.__dict__.iteritems()]
11643
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11644
 
11645
  def __eq__(self, other):
11646
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11647
 
11648
  def __ne__(self, other):
11649
    return not (self == other)
10690 manish.sha 11650
 
11651
class getInventoryItemScannedInForPO_args:
11652
  """
11653
  Attributes:
11654
   - itemId
11655
   - purchaseIds
11656
  """
11657
 
11658
  thrift_spec = (
11659
    None, # 0
11660
    (1, TType.I64, 'itemId', None, None, ), # 1
11661
    (2, TType.LIST, 'purchaseIds', (TType.I64,None), None, ), # 2
11662
  )
11663
 
11664
  def __init__(self, itemId=None, purchaseIds=None,):
11665
    self.itemId = itemId
11666
    self.purchaseIds = purchaseIds
11667
 
11668
  def read(self, iprot):
11669
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11670
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11671
      return
11672
    iprot.readStructBegin()
11673
    while True:
11674
      (fname, ftype, fid) = iprot.readFieldBegin()
11675
      if ftype == TType.STOP:
11676
        break
11677
      if fid == 1:
11678
        if ftype == TType.I64:
11679
          self.itemId = iprot.readI64();
11680
        else:
11681
          iprot.skip(ftype)
11682
      elif fid == 2:
11683
        if ftype == TType.LIST:
11684
          self.purchaseIds = []
11685
          (_etype229, _size226) = iprot.readListBegin()
11686
          for _i230 in xrange(_size226):
11687
            _elem231 = iprot.readI64();
11688
            self.purchaseIds.append(_elem231)
11689
          iprot.readListEnd()
11690
        else:
11691
          iprot.skip(ftype)
11692
      else:
11693
        iprot.skip(ftype)
11694
      iprot.readFieldEnd()
11695
    iprot.readStructEnd()
11696
 
11697
  def write(self, oprot):
11698
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11699
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11700
      return
11701
    oprot.writeStructBegin('getInventoryItemScannedInForPO_args')
11702
    if self.itemId is not None:
11703
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11704
      oprot.writeI64(self.itemId)
11705
      oprot.writeFieldEnd()
11706
    if self.purchaseIds is not None:
11707
      oprot.writeFieldBegin('purchaseIds', TType.LIST, 2)
11708
      oprot.writeListBegin(TType.I64, len(self.purchaseIds))
11709
      for iter232 in self.purchaseIds:
11710
        oprot.writeI64(iter232)
11711
      oprot.writeListEnd()
11712
      oprot.writeFieldEnd()
11713
    oprot.writeFieldStop()
11714
    oprot.writeStructEnd()
11715
 
11716
  def validate(self):
11717
    return
11718
 
11719
 
11720
  def __repr__(self):
11721
    L = ['%s=%r' % (key, value)
11722
      for key, value in self.__dict__.iteritems()]
11723
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11724
 
11725
  def __eq__(self, other):
11726
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11727
 
11728
  def __ne__(self, other):
11729
    return not (self == other)
11730
 
11731
class getInventoryItemScannedInForPO_result:
11732
  """
11733
  Attributes:
11734
   - success
11735
   - wex
11736
  """
11737
 
11738
  thrift_spec = (
11739
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
11740
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11741
  )
11742
 
11743
  def __init__(self, success=None, wex=None,):
11744
    self.success = success
11745
    self.wex = wex
11746
 
11747
  def read(self, iprot):
11748
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11749
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11750
      return
11751
    iprot.readStructBegin()
11752
    while True:
11753
      (fname, ftype, fid) = iprot.readFieldBegin()
11754
      if ftype == TType.STOP:
11755
        break
11756
      if fid == 0:
11757
        if ftype == TType.LIST:
11758
          self.success = []
11759
          (_etype236, _size233) = iprot.readListBegin()
11760
          for _i237 in xrange(_size233):
11761
            _elem238 = InventoryItem()
11762
            _elem238.read(iprot)
11763
            self.success.append(_elem238)
11764
          iprot.readListEnd()
11765
        else:
11766
          iprot.skip(ftype)
11767
      elif fid == 1:
11768
        if ftype == TType.STRUCT:
11769
          self.wex = WarehouseServiceException()
11770
          self.wex.read(iprot)
11771
        else:
11772
          iprot.skip(ftype)
11773
      else:
11774
        iprot.skip(ftype)
11775
      iprot.readFieldEnd()
11776
    iprot.readStructEnd()
11777
 
11778
  def write(self, oprot):
11779
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11780
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11781
      return
11782
    oprot.writeStructBegin('getInventoryItemScannedInForPO_result')
11783
    if self.success is not None:
11784
      oprot.writeFieldBegin('success', TType.LIST, 0)
11785
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11786
      for iter239 in self.success:
11787
        iter239.write(oprot)
11788
      oprot.writeListEnd()
11789
      oprot.writeFieldEnd()
11790
    if self.wex is not None:
11791
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11792
      self.wex.write(oprot)
11793
      oprot.writeFieldEnd()
11794
    oprot.writeFieldStop()
11795
    oprot.writeStructEnd()
11796
 
11797
  def validate(self):
11798
    return
11799
 
11800
 
11801
  def __repr__(self):
11802
    L = ['%s=%r' % (key, value)
11803
      for key, value in self.__dict__.iteritems()]
11804
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11805
 
11806
  def __eq__(self, other):
11807
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11808
 
11809
  def __ne__(self, other):
11810
    return not (self == other)
11811
 
11812
class getAmazonTransferredSkuDetails_args:
11813
  """
11814
  Attributes:
11815
   - itemIds
11816
  """
11817
 
11818
  thrift_spec = (
11819
    None, # 0
11820
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
11821
  )
11822
 
11823
  def __init__(self, itemIds=None,):
11824
    self.itemIds = itemIds
11825
 
11826
  def read(self, iprot):
11827
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11828
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11829
      return
11830
    iprot.readStructBegin()
11831
    while True:
11832
      (fname, ftype, fid) = iprot.readFieldBegin()
11833
      if ftype == TType.STOP:
11834
        break
11835
      if fid == 1:
11836
        if ftype == TType.LIST:
11837
          self.itemIds = []
11838
          (_etype243, _size240) = iprot.readListBegin()
11839
          for _i244 in xrange(_size240):
11840
            _elem245 = iprot.readI64();
11841
            self.itemIds.append(_elem245)
11842
          iprot.readListEnd()
11843
        else:
11844
          iprot.skip(ftype)
11845
      else:
11846
        iprot.skip(ftype)
11847
      iprot.readFieldEnd()
11848
    iprot.readStructEnd()
11849
 
11850
  def write(self, oprot):
11851
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11852
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11853
      return
11854
    oprot.writeStructBegin('getAmazonTransferredSkuDetails_args')
11855
    if self.itemIds is not None:
11856
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
11857
      oprot.writeListBegin(TType.I64, len(self.itemIds))
11858
      for iter246 in self.itemIds:
11859
        oprot.writeI64(iter246)
11860
      oprot.writeListEnd()
11861
      oprot.writeFieldEnd()
11862
    oprot.writeFieldStop()
11863
    oprot.writeStructEnd()
11864
 
11865
  def validate(self):
11866
    return
11867
 
11868
 
11869
  def __repr__(self):
11870
    L = ['%s=%r' % (key, value)
11871
      for key, value in self.__dict__.iteritems()]
11872
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11873
 
11874
  def __eq__(self, other):
11875
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11876
 
11877
  def __ne__(self, other):
11878
    return not (self == other)
11879
 
11880
class getAmazonTransferredSkuDetails_result:
11881
  """
11882
  Attributes:
11883
   - success
11884
   - wex
11885
  """
11886
 
11887
  thrift_spec = (
11888
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonTransferredSkuDetail, AmazonTransferredSkuDetail.thrift_spec)), None, ), # 0
11889
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11890
  )
11891
 
11892
  def __init__(self, success=None, wex=None,):
11893
    self.success = success
11894
    self.wex = wex
11895
 
11896
  def read(self, iprot):
11897
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11898
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11899
      return
11900
    iprot.readStructBegin()
11901
    while True:
11902
      (fname, ftype, fid) = iprot.readFieldBegin()
11903
      if ftype == TType.STOP:
11904
        break
11905
      if fid == 0:
11906
        if ftype == TType.LIST:
11907
          self.success = []
11908
          (_etype250, _size247) = iprot.readListBegin()
11909
          for _i251 in xrange(_size247):
11910
            _elem252 = AmazonTransferredSkuDetail()
11911
            _elem252.read(iprot)
11912
            self.success.append(_elem252)
11913
          iprot.readListEnd()
11914
        else:
11915
          iprot.skip(ftype)
11916
      elif fid == 1:
11917
        if ftype == TType.STRUCT:
11918
          self.wex = WarehouseServiceException()
11919
          self.wex.read(iprot)
11920
        else:
11921
          iprot.skip(ftype)
11922
      else:
11923
        iprot.skip(ftype)
11924
      iprot.readFieldEnd()
11925
    iprot.readStructEnd()
11926
 
11927
  def write(self, oprot):
11928
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11929
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11930
      return
11931
    oprot.writeStructBegin('getAmazonTransferredSkuDetails_result')
11932
    if self.success is not None:
11933
      oprot.writeFieldBegin('success', TType.LIST, 0)
11934
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11935
      for iter253 in self.success:
11936
        iter253.write(oprot)
11937
      oprot.writeListEnd()
11938
      oprot.writeFieldEnd()
11939
    if self.wex is not None:
11940
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11941
      self.wex.write(oprot)
11942
      oprot.writeFieldEnd()
11943
    oprot.writeFieldStop()
11944
    oprot.writeStructEnd()
11945
 
11946
  def validate(self):
11947
    return
11948
 
11949
 
11950
  def __repr__(self):
11951
    L = ['%s=%r' % (key, value)
11952
      for key, value in self.__dict__.iteritems()]
11953
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11954
 
11955
  def __eq__(self, other):
11956
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11957
 
11958
  def __ne__(self, other):
11959
    return not (self == other)
11960
 
11961
class getScansforPurchase_args:
11962
  """
11963
  Attributes:
11964
   - purchaseId
11965
   - scanType
11966
  """
11967
 
11968
  thrift_spec = (
11969
    None, # 0
11970
    (1, TType.I64, 'purchaseId', None, None, ), # 1
11971
    (2, TType.I32, 'scanType', None, None, ), # 2
11972
  )
11973
 
11974
  def __init__(self, purchaseId=None, scanType=None,):
11975
    self.purchaseId = purchaseId
11976
    self.scanType = scanType
11977
 
11978
  def read(self, iprot):
11979
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11980
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11981
      return
11982
    iprot.readStructBegin()
11983
    while True:
11984
      (fname, ftype, fid) = iprot.readFieldBegin()
11985
      if ftype == TType.STOP:
11986
        break
11987
      if fid == 1:
11988
        if ftype == TType.I64:
11989
          self.purchaseId = iprot.readI64();
11990
        else:
11991
          iprot.skip(ftype)
11992
      elif fid == 2:
11993
        if ftype == TType.I32:
11994
          self.scanType = iprot.readI32();
11995
        else:
11996
          iprot.skip(ftype)
11997
      else:
11998
        iprot.skip(ftype)
11999
      iprot.readFieldEnd()
12000
    iprot.readStructEnd()
12001
 
12002
  def write(self, oprot):
12003
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12004
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12005
      return
12006
    oprot.writeStructBegin('getScansforPurchase_args')
12007
    if self.purchaseId is not None:
12008
      oprot.writeFieldBegin('purchaseId', TType.I64, 1)
12009
      oprot.writeI64(self.purchaseId)
12010
      oprot.writeFieldEnd()
12011
    if self.scanType is not None:
12012
      oprot.writeFieldBegin('scanType', TType.I32, 2)
12013
      oprot.writeI32(self.scanType)
12014
      oprot.writeFieldEnd()
12015
    oprot.writeFieldStop()
12016
    oprot.writeStructEnd()
12017
 
12018
  def validate(self):
12019
    return
12020
 
12021
 
12022
  def __repr__(self):
12023
    L = ['%s=%r' % (key, value)
12024
      for key, value in self.__dict__.iteritems()]
12025
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12026
 
12027
  def __eq__(self, other):
12028
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12029
 
12030
  def __ne__(self, other):
12031
    return not (self == other)
12032
 
12033
class getScansforPurchase_result:
12034
  """
12035
  Attributes:
12036
   - success
12037
   - wex
12038
  """
12039
 
12040
  thrift_spec = (
12041
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
12042
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12043
  )
12044
 
12045
  def __init__(self, success=None, wex=None,):
12046
    self.success = success
12047
    self.wex = wex
12048
 
12049
  def read(self, iprot):
12050
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12051
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12052
      return
12053
    iprot.readStructBegin()
12054
    while True:
12055
      (fname, ftype, fid) = iprot.readFieldBegin()
12056
      if ftype == TType.STOP:
12057
        break
12058
      if fid == 0:
12059
        if ftype == TType.LIST:
12060
          self.success = []
12061
          (_etype257, _size254) = iprot.readListBegin()
12062
          for _i258 in xrange(_size254):
12063
            _elem259 = Scan()
12064
            _elem259.read(iprot)
12065
            self.success.append(_elem259)
12066
          iprot.readListEnd()
12067
        else:
12068
          iprot.skip(ftype)
12069
      elif fid == 1:
12070
        if ftype == TType.STRUCT:
12071
          self.wex = WarehouseServiceException()
12072
          self.wex.read(iprot)
12073
        else:
12074
          iprot.skip(ftype)
12075
      else:
12076
        iprot.skip(ftype)
12077
      iprot.readFieldEnd()
12078
    iprot.readStructEnd()
12079
 
12080
  def write(self, oprot):
12081
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12082
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12083
      return
12084
    oprot.writeStructBegin('getScansforPurchase_result')
12085
    if self.success is not None:
12086
      oprot.writeFieldBegin('success', TType.LIST, 0)
12087
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12088
      for iter260 in self.success:
12089
        iter260.write(oprot)
12090
      oprot.writeListEnd()
12091
      oprot.writeFieldEnd()
12092
    if self.wex is not None:
12093
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
12094
      self.wex.write(oprot)
12095
      oprot.writeFieldEnd()
12096
    oprot.writeFieldStop()
12097
    oprot.writeStructEnd()
12098
 
12099
  def validate(self):
12100
    return
12101
 
12102
 
12103
  def __repr__(self):
12104
    L = ['%s=%r' % (key, value)
12105
      for key, value in self.__dict__.iteritems()]
12106
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12107
 
12108
  def __eq__(self, other):
12109
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12110
 
12111
  def __ne__(self, other):
12112
    return not (self == other)
10864 manish.sha 12113
 
12114
class getCurrentBadQuantityForItem_args:
12115
  """
12116
  Attributes:
12117
   - itemId
12118
   - currentWarehouseId
12119
   - physicalWarehouseId
12120
  """
12121
 
12122
  thrift_spec = (
12123
    None, # 0
12124
    (1, TType.I64, 'itemId', None, None, ), # 1
12125
    (2, TType.I64, 'currentWarehouseId', None, None, ), # 2
12126
    (3, TType.I64, 'physicalWarehouseId', None, None, ), # 3
12127
  )
12128
 
12129
  def __init__(self, itemId=None, currentWarehouseId=None, physicalWarehouseId=None,):
12130
    self.itemId = itemId
12131
    self.currentWarehouseId = currentWarehouseId
12132
    self.physicalWarehouseId = physicalWarehouseId
12133
 
12134
  def read(self, iprot):
12135
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12136
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12137
      return
12138
    iprot.readStructBegin()
12139
    while True:
12140
      (fname, ftype, fid) = iprot.readFieldBegin()
12141
      if ftype == TType.STOP:
12142
        break
12143
      if fid == 1:
12144
        if ftype == TType.I64:
12145
          self.itemId = iprot.readI64();
12146
        else:
12147
          iprot.skip(ftype)
12148
      elif fid == 2:
12149
        if ftype == TType.I64:
12150
          self.currentWarehouseId = iprot.readI64();
12151
        else:
12152
          iprot.skip(ftype)
12153
      elif fid == 3:
12154
        if ftype == TType.I64:
12155
          self.physicalWarehouseId = iprot.readI64();
12156
        else:
12157
          iprot.skip(ftype)
12158
      else:
12159
        iprot.skip(ftype)
12160
      iprot.readFieldEnd()
12161
    iprot.readStructEnd()
12162
 
12163
  def write(self, oprot):
12164
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12165
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12166
      return
12167
    oprot.writeStructBegin('getCurrentBadQuantityForItem_args')
12168
    if self.itemId is not None:
12169
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12170
      oprot.writeI64(self.itemId)
12171
      oprot.writeFieldEnd()
12172
    if self.currentWarehouseId is not None:
12173
      oprot.writeFieldBegin('currentWarehouseId', TType.I64, 2)
12174
      oprot.writeI64(self.currentWarehouseId)
12175
      oprot.writeFieldEnd()
12176
    if self.physicalWarehouseId is not None:
12177
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 3)
12178
      oprot.writeI64(self.physicalWarehouseId)
12179
      oprot.writeFieldEnd()
12180
    oprot.writeFieldStop()
12181
    oprot.writeStructEnd()
12182
 
12183
  def validate(self):
12184
    return
12185
 
12186
 
12187
  def __repr__(self):
12188
    L = ['%s=%r' % (key, value)
12189
      for key, value in self.__dict__.iteritems()]
12190
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12191
 
12192
  def __eq__(self, other):
12193
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12194
 
12195
  def __ne__(self, other):
12196
    return not (self == other)
12197
 
12198
class getCurrentBadQuantityForItem_result:
12199
  """
12200
  Attributes:
12201
   - success
12202
   - wex
12203
  """
12204
 
12205
  thrift_spec = (
12206
    (0, TType.I64, 'success', None, None, ), # 0
12207
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12208
  )
12209
 
12210
  def __init__(self, success=None, wex=None,):
12211
    self.success = success
12212
    self.wex = wex
12213
 
12214
  def read(self, iprot):
12215
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12216
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12217
      return
12218
    iprot.readStructBegin()
12219
    while True:
12220
      (fname, ftype, fid) = iprot.readFieldBegin()
12221
      if ftype == TType.STOP:
12222
        break
12223
      if fid == 0:
12224
        if ftype == TType.I64:
12225
          self.success = iprot.readI64();
12226
        else:
12227
          iprot.skip(ftype)
12228
      elif fid == 1:
12229
        if ftype == TType.STRUCT:
12230
          self.wex = WarehouseServiceException()
12231
          self.wex.read(iprot)
12232
        else:
12233
          iprot.skip(ftype)
12234
      else:
12235
        iprot.skip(ftype)
12236
      iprot.readFieldEnd()
12237
    iprot.readStructEnd()
12238
 
12239
  def write(self, oprot):
12240
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12241
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12242
      return
12243
    oprot.writeStructBegin('getCurrentBadQuantityForItem_result')
12244
    if self.success is not None:
12245
      oprot.writeFieldBegin('success', TType.I64, 0)
12246
      oprot.writeI64(self.success)
12247
      oprot.writeFieldEnd()
12248
    if self.wex is not None:
12249
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
12250
      self.wex.write(oprot)
12251
      oprot.writeFieldEnd()
12252
    oprot.writeFieldStop()
12253
    oprot.writeStructEnd()
12254
 
12255
  def validate(self):
12256
    return
12257
 
12258
 
12259
  def __repr__(self):
12260
    L = ['%s=%r' % (key, value)
12261
      for key, value in self.__dict__.iteritems()]
12262
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12263
 
12264
  def __eq__(self, other):
12265
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12266
 
12267
  def __ne__(self, other):
12268
    return not (self == other)
12269
 
12270
class scanForBadPurchaseReturn_args:
12271
  """
12272
  Attributes:
12273
   - saleReturnItems
12274
   - vendorId
12275
   - billingWarehouseId
12276
  """
12277
 
12278
  thrift_spec = (
12279
    None, # 0
12280
    (1, TType.LIST, 'saleReturnItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
12281
    (2, TType.I64, 'vendorId', None, None, ), # 2
12282
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
12283
  )
12284
 
12285
  def __init__(self, saleReturnItems=None, vendorId=None, billingWarehouseId=None,):
12286
    self.saleReturnItems = saleReturnItems
12287
    self.vendorId = vendorId
12288
    self.billingWarehouseId = billingWarehouseId
12289
 
12290
  def read(self, iprot):
12291
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12292
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12293
      return
12294
    iprot.readStructBegin()
12295
    while True:
12296
      (fname, ftype, fid) = iprot.readFieldBegin()
12297
      if ftype == TType.STOP:
12298
        break
12299
      if fid == 1:
12300
        if ftype == TType.LIST:
12301
          self.saleReturnItems = []
12302
          (_etype264, _size261) = iprot.readListBegin()
12303
          for _i265 in xrange(_size261):
12304
            _elem266 = InventoryItem()
12305
            _elem266.read(iprot)
12306
            self.saleReturnItems.append(_elem266)
12307
          iprot.readListEnd()
12308
        else:
12309
          iprot.skip(ftype)
12310
      elif fid == 2:
12311
        if ftype == TType.I64:
12312
          self.vendorId = iprot.readI64();
12313
        else:
12314
          iprot.skip(ftype)
12315
      elif fid == 3:
12316
        if ftype == TType.I64:
12317
          self.billingWarehouseId = iprot.readI64();
12318
        else:
12319
          iprot.skip(ftype)
12320
      else:
12321
        iprot.skip(ftype)
12322
      iprot.readFieldEnd()
12323
    iprot.readStructEnd()
12324
 
12325
  def write(self, oprot):
12326
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12327
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12328
      return
12329
    oprot.writeStructBegin('scanForBadPurchaseReturn_args')
12330
    if self.saleReturnItems is not None:
12331
      oprot.writeFieldBegin('saleReturnItems', TType.LIST, 1)
12332
      oprot.writeListBegin(TType.STRUCT, len(self.saleReturnItems))
12333
      for iter267 in self.saleReturnItems:
12334
        iter267.write(oprot)
12335
      oprot.writeListEnd()
12336
      oprot.writeFieldEnd()
12337
    if self.vendorId is not None:
12338
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
12339
      oprot.writeI64(self.vendorId)
12340
      oprot.writeFieldEnd()
12341
    if self.billingWarehouseId is not None:
12342
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
12343
      oprot.writeI64(self.billingWarehouseId)
12344
      oprot.writeFieldEnd()
12345
    oprot.writeFieldStop()
12346
    oprot.writeStructEnd()
12347
 
12348
  def validate(self):
12349
    return
12350
 
12351
 
12352
  def __repr__(self):
12353
    L = ['%s=%r' % (key, value)
12354
      for key, value in self.__dict__.iteritems()]
12355
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12356
 
12357
  def __eq__(self, other):
12358
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12359
 
12360
  def __ne__(self, other):
12361
    return not (self == other)
12362
 
12363
class scanForBadPurchaseReturn_result:
12364
  """
12365
  Attributes:
12366
   - success
12367
   - ex
12368
  """
12369
 
12370
  thrift_spec = (
12371
    (0, TType.I64, 'success', None, None, ), # 0
12372
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12373
  )
12374
 
12375
  def __init__(self, success=None, ex=None,):
12376
    self.success = success
12377
    self.ex = ex
12378
 
12379
  def read(self, iprot):
12380
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12381
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12382
      return
12383
    iprot.readStructBegin()
12384
    while True:
12385
      (fname, ftype, fid) = iprot.readFieldBegin()
12386
      if ftype == TType.STOP:
12387
        break
12388
      if fid == 0:
12389
        if ftype == TType.I64:
12390
          self.success = iprot.readI64();
12391
        else:
12392
          iprot.skip(ftype)
12393
      elif fid == 1:
12394
        if ftype == TType.STRUCT:
12395
          self.ex = WarehouseServiceException()
12396
          self.ex.read(iprot)
12397
        else:
12398
          iprot.skip(ftype)
12399
      else:
12400
        iprot.skip(ftype)
12401
      iprot.readFieldEnd()
12402
    iprot.readStructEnd()
12403
 
12404
  def write(self, oprot):
12405
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12406
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12407
      return
12408
    oprot.writeStructBegin('scanForBadPurchaseReturn_result')
12409
    if self.success is not None:
12410
      oprot.writeFieldBegin('success', TType.I64, 0)
12411
      oprot.writeI64(self.success)
12412
      oprot.writeFieldEnd()
12413
    if self.ex is not None:
12414
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12415
      self.ex.write(oprot)
12416
      oprot.writeFieldEnd()
12417
    oprot.writeFieldStop()
12418
    oprot.writeStructEnd()
12419
 
12420
  def validate(self):
12421
    return
12422
 
12423
 
12424
  def __repr__(self):
12425
    L = ['%s=%r' % (key, value)
12426
      for key, value in self.__dict__.iteritems()]
12427
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12428
 
12429
  def __eq__(self, other):
12430
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12431
 
12432
  def __ne__(self, other):
12433
    return not (self == other)
12434
 
12435
class getItemsInPurchaseReturn_args:
12436
  """
12437
  Attributes:
12438
   - purchaseReturnId
11751 manish.sha 12439
   - type
13504 manish.sha 12440
   - returnTime
10864 manish.sha 12441
  """
12442
 
12443
  thrift_spec = (
12444
    None, # 0
12445
    (1, TType.I64, 'purchaseReturnId', None, None, ), # 1
11751 manish.sha 12446
    (2, TType.I32, 'type', None, None, ), # 2
13504 manish.sha 12447
    (3, TType.STRING, 'returnTime', None, None, ), # 3
10864 manish.sha 12448
  )
12449
 
13504 manish.sha 12450
  def __init__(self, purchaseReturnId=None, type=None, returnTime=None,):
10864 manish.sha 12451
    self.purchaseReturnId = purchaseReturnId
11751 manish.sha 12452
    self.type = type
13504 manish.sha 12453
    self.returnTime = returnTime
10864 manish.sha 12454
 
12455
  def read(self, iprot):
12456
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12457
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12458
      return
12459
    iprot.readStructBegin()
12460
    while True:
12461
      (fname, ftype, fid) = iprot.readFieldBegin()
12462
      if ftype == TType.STOP:
12463
        break
12464
      if fid == 1:
12465
        if ftype == TType.I64:
12466
          self.purchaseReturnId = iprot.readI64();
12467
        else:
12468
          iprot.skip(ftype)
11751 manish.sha 12469
      elif fid == 2:
12470
        if ftype == TType.I32:
12471
          self.type = iprot.readI32();
12472
        else:
12473
          iprot.skip(ftype)
13504 manish.sha 12474
      elif fid == 3:
12475
        if ftype == TType.STRING:
12476
          self.returnTime = iprot.readString();
12477
        else:
12478
          iprot.skip(ftype)
10864 manish.sha 12479
      else:
12480
        iprot.skip(ftype)
12481
      iprot.readFieldEnd()
12482
    iprot.readStructEnd()
12483
 
12484
  def write(self, oprot):
12485
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12486
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12487
      return
12488
    oprot.writeStructBegin('getItemsInPurchaseReturn_args')
12489
    if self.purchaseReturnId is not None:
12490
      oprot.writeFieldBegin('purchaseReturnId', TType.I64, 1)
12491
      oprot.writeI64(self.purchaseReturnId)
12492
      oprot.writeFieldEnd()
11751 manish.sha 12493
    if self.type is not None:
12494
      oprot.writeFieldBegin('type', TType.I32, 2)
12495
      oprot.writeI32(self.type)
12496
      oprot.writeFieldEnd()
13504 manish.sha 12497
    if self.returnTime is not None:
12498
      oprot.writeFieldBegin('returnTime', TType.STRING, 3)
12499
      oprot.writeString(self.returnTime)
12500
      oprot.writeFieldEnd()
10864 manish.sha 12501
    oprot.writeFieldStop()
12502
    oprot.writeStructEnd()
12503
 
12504
  def validate(self):
12505
    return
12506
 
12507
 
12508
  def __repr__(self):
12509
    L = ['%s=%r' % (key, value)
12510
      for key, value in self.__dict__.iteritems()]
12511
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12512
 
12513
  def __eq__(self, other):
12514
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12515
 
12516
  def __ne__(self, other):
12517
    return not (self == other)
12518
 
12519
class getItemsInPurchaseReturn_result:
12520
  """
12521
  Attributes:
12522
   - success
12523
   - ex
12524
  """
12525
 
12526
  thrift_spec = (
12527
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
12528
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12529
  )
12530
 
12531
  def __init__(self, success=None, ex=None,):
12532
    self.success = success
12533
    self.ex = ex
12534
 
12535
  def read(self, iprot):
12536
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12537
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12538
      return
12539
    iprot.readStructBegin()
12540
    while True:
12541
      (fname, ftype, fid) = iprot.readFieldBegin()
12542
      if ftype == TType.STOP:
12543
        break
12544
      if fid == 0:
12545
        if ftype == TType.MAP:
12546
          self.success = {}
12547
          (_ktype269, _vtype270, _size268 ) = iprot.readMapBegin() 
12548
          for _i272 in xrange(_size268):
12549
            _key273 = iprot.readI64();
12550
            _val274 = iprot.readI64();
12551
            self.success[_key273] = _val274
12552
          iprot.readMapEnd()
12553
        else:
12554
          iprot.skip(ftype)
12555
      elif fid == 1:
12556
        if ftype == TType.STRUCT:
12557
          self.ex = WarehouseServiceException()
12558
          self.ex.read(iprot)
12559
        else:
12560
          iprot.skip(ftype)
12561
      else:
12562
        iprot.skip(ftype)
12563
      iprot.readFieldEnd()
12564
    iprot.readStructEnd()
12565
 
12566
  def write(self, oprot):
12567
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12568
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12569
      return
12570
    oprot.writeStructBegin('getItemsInPurchaseReturn_result')
12571
    if self.success is not None:
12572
      oprot.writeFieldBegin('success', TType.MAP, 0)
12573
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
12574
      for kiter275,viter276 in self.success.items():
12575
        oprot.writeI64(kiter275)
12576
        oprot.writeI64(viter276)
12577
      oprot.writeMapEnd()
12578
      oprot.writeFieldEnd()
12579
    if self.ex is not None:
12580
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12581
      self.ex.write(oprot)
12582
      oprot.writeFieldEnd()
12583
    oprot.writeFieldStop()
12584
    oprot.writeStructEnd()
12585
 
12586
  def validate(self):
12587
    return
12588
 
12589
 
12590
  def __repr__(self):
12591
    L = ['%s=%r' % (key, value)
12592
      for key, value in self.__dict__.iteritems()]
12593
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12594
 
12595
  def __eq__(self, other):
12596
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12597
 
12598
  def __ne__(self, other):
12599
    return not (self == other)
10886 manish.sha 12600
 
12601
class getScansForInventoryItem_args:
12602
  """
12603
  Attributes:
12604
   - inventoryItemId
12605
   - type
12606
  """
12607
 
12608
  thrift_spec = (
12609
    None, # 0
12610
    (1, TType.I64, 'inventoryItemId', None, None, ), # 1
12611
    (2, TType.I32, 'type', None, None, ), # 2
12612
  )
12613
 
12614
  def __init__(self, inventoryItemId=None, type=None,):
12615
    self.inventoryItemId = inventoryItemId
12616
    self.type = type
12617
 
12618
  def read(self, iprot):
12619
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12620
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12621
      return
12622
    iprot.readStructBegin()
12623
    while True:
12624
      (fname, ftype, fid) = iprot.readFieldBegin()
12625
      if ftype == TType.STOP:
12626
        break
12627
      if fid == 1:
12628
        if ftype == TType.I64:
12629
          self.inventoryItemId = iprot.readI64();
12630
        else:
12631
          iprot.skip(ftype)
12632
      elif fid == 2:
12633
        if ftype == TType.I32:
12634
          self.type = iprot.readI32();
12635
        else:
12636
          iprot.skip(ftype)
12637
      else:
12638
        iprot.skip(ftype)
12639
      iprot.readFieldEnd()
12640
    iprot.readStructEnd()
12641
 
12642
  def write(self, oprot):
12643
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12644
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12645
      return
12646
    oprot.writeStructBegin('getScansForInventoryItem_args')
12647
    if self.inventoryItemId is not None:
12648
      oprot.writeFieldBegin('inventoryItemId', TType.I64, 1)
12649
      oprot.writeI64(self.inventoryItemId)
12650
      oprot.writeFieldEnd()
12651
    if self.type is not None:
12652
      oprot.writeFieldBegin('type', TType.I32, 2)
12653
      oprot.writeI32(self.type)
12654
      oprot.writeFieldEnd()
12655
    oprot.writeFieldStop()
12656
    oprot.writeStructEnd()
12657
 
12658
  def validate(self):
12659
    return
12660
 
12661
 
12662
  def __repr__(self):
12663
    L = ['%s=%r' % (key, value)
12664
      for key, value in self.__dict__.iteritems()]
12665
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12666
 
12667
  def __eq__(self, other):
12668
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12669
 
12670
  def __ne__(self, other):
12671
    return not (self == other)
12672
 
12673
class getScansForInventoryItem_result:
12674
  """
12675
  Attributes:
12676
   - success
12677
   - ex
12678
  """
12679
 
12680
  thrift_spec = (
12681
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
12682
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12683
  )
12684
 
12685
  def __init__(self, success=None, ex=None,):
12686
    self.success = success
12687
    self.ex = ex
12688
 
12689
  def read(self, iprot):
12690
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12691
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12692
      return
12693
    iprot.readStructBegin()
12694
    while True:
12695
      (fname, ftype, fid) = iprot.readFieldBegin()
12696
      if ftype == TType.STOP:
12697
        break
12698
      if fid == 0:
12699
        if ftype == TType.LIST:
12700
          self.success = []
12701
          (_etype280, _size277) = iprot.readListBegin()
12702
          for _i281 in xrange(_size277):
12703
            _elem282 = Scan()
12704
            _elem282.read(iprot)
12705
            self.success.append(_elem282)
12706
          iprot.readListEnd()
12707
        else:
12708
          iprot.skip(ftype)
12709
      elif fid == 1:
12710
        if ftype == TType.STRUCT:
12711
          self.ex = WarehouseServiceException()
12712
          self.ex.read(iprot)
12713
        else:
12714
          iprot.skip(ftype)
12715
      else:
12716
        iprot.skip(ftype)
12717
      iprot.readFieldEnd()
12718
    iprot.readStructEnd()
12719
 
12720
  def write(self, oprot):
12721
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12722
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12723
      return
12724
    oprot.writeStructBegin('getScansForInventoryItem_result')
12725
    if self.success is not None:
12726
      oprot.writeFieldBegin('success', TType.LIST, 0)
12727
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12728
      for iter283 in self.success:
12729
        iter283.write(oprot)
12730
      oprot.writeListEnd()
12731
      oprot.writeFieldEnd()
12732
    if self.ex is not None:
12733
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12734
      self.ex.write(oprot)
12735
      oprot.writeFieldEnd()
12736
    oprot.writeFieldStop()
12737
    oprot.writeStructEnd()
12738
 
12739
  def validate(self):
12740
    return
12741
 
12742
 
12743
  def __repr__(self):
12744
    L = ['%s=%r' % (key, value)
12745
      for key, value in self.__dict__.iteritems()]
12746
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12747
 
12748
  def __eq__(self, other):
12749
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12750
 
12751
  def __ne__(self, other):
12752
    return not (self == other)
12531 manish.sha 12753
 
12754
class checkGrnImeiStatus_args:
12755
  """
12756
  Attributes:
12757
   - imeiNos
12758
  """
12759
 
12760
  thrift_spec = (
12761
    None, # 0
12762
    (1, TType.LIST, 'imeiNos', (TType.STRING,None), None, ), # 1
12763
  )
12764
 
12765
  def __init__(self, imeiNos=None,):
12766
    self.imeiNos = imeiNos
12767
 
12768
  def read(self, iprot):
12769
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12770
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12771
      return
12772
    iprot.readStructBegin()
12773
    while True:
12774
      (fname, ftype, fid) = iprot.readFieldBegin()
12775
      if ftype == TType.STOP:
12776
        break
12777
      if fid == 1:
12778
        if ftype == TType.LIST:
12779
          self.imeiNos = []
12780
          (_etype287, _size284) = iprot.readListBegin()
12781
          for _i288 in xrange(_size284):
12782
            _elem289 = iprot.readString();
12783
            self.imeiNos.append(_elem289)
12784
          iprot.readListEnd()
12785
        else:
12786
          iprot.skip(ftype)
12787
      else:
12788
        iprot.skip(ftype)
12789
      iprot.readFieldEnd()
12790
    iprot.readStructEnd()
12791
 
12792
  def write(self, oprot):
12793
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12794
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12795
      return
12796
    oprot.writeStructBegin('checkGrnImeiStatus_args')
12797
    if self.imeiNos is not None:
12798
      oprot.writeFieldBegin('imeiNos', TType.LIST, 1)
12799
      oprot.writeListBegin(TType.STRING, len(self.imeiNos))
12800
      for iter290 in self.imeiNos:
12801
        oprot.writeString(iter290)
12802
      oprot.writeListEnd()
12803
      oprot.writeFieldEnd()
12804
    oprot.writeFieldStop()
12805
    oprot.writeStructEnd()
12806
 
12807
  def validate(self):
12808
    return
12809
 
12810
 
12811
  def __repr__(self):
12812
    L = ['%s=%r' % (key, value)
12813
      for key, value in self.__dict__.iteritems()]
12814
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12815
 
12816
  def __eq__(self, other):
12817
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12818
 
12819
  def __ne__(self, other):
12820
    return not (self == other)
12821
 
12822
class checkGrnImeiStatus_result:
12823
  """
12824
  Attributes:
12825
   - success
12826
   - ex
12827
  """
12828
 
12829
  thrift_spec = (
12830
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
12831
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12832
  )
12833
 
12834
  def __init__(self, success=None, ex=None,):
12835
    self.success = success
12836
    self.ex = ex
12837
 
12838
  def read(self, iprot):
12839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12841
      return
12842
    iprot.readStructBegin()
12843
    while True:
12844
      (fname, ftype, fid) = iprot.readFieldBegin()
12845
      if ftype == TType.STOP:
12846
        break
12847
      if fid == 0:
12848
        if ftype == TType.LIST:
12849
          self.success = []
12850
          (_etype294, _size291) = iprot.readListBegin()
12851
          for _i295 in xrange(_size291):
12852
            _elem296 = iprot.readString();
12853
            self.success.append(_elem296)
12854
          iprot.readListEnd()
12855
        else:
12856
          iprot.skip(ftype)
12857
      elif fid == 1:
12858
        if ftype == TType.STRUCT:
12859
          self.ex = WarehouseServiceException()
12860
          self.ex.read(iprot)
12861
        else:
12862
          iprot.skip(ftype)
12863
      else:
12864
        iprot.skip(ftype)
12865
      iprot.readFieldEnd()
12866
    iprot.readStructEnd()
12867
 
12868
  def write(self, oprot):
12869
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12870
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12871
      return
12872
    oprot.writeStructBegin('checkGrnImeiStatus_result')
12873
    if self.success is not None:
12874
      oprot.writeFieldBegin('success', TType.LIST, 0)
12875
      oprot.writeListBegin(TType.STRING, len(self.success))
12876
      for iter297 in self.success:
12877
        oprot.writeString(iter297)
12878
      oprot.writeListEnd()
12879
      oprot.writeFieldEnd()
12880
    if self.ex is not None:
12881
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12882
      self.ex.write(oprot)
12883
      oprot.writeFieldEnd()
12884
    oprot.writeFieldStop()
12885
    oprot.writeStructEnd()
12886
 
12887
  def validate(self):
12888
    return
12889
 
12890
 
12891
  def __repr__(self):
12892
    L = ['%s=%r' % (key, value)
12893
      for key, value in self.__dict__.iteritems()]
12894
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12895
 
12896
  def __eq__(self, other):
12897
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12898
 
12899
  def __ne__(self, other):
12900
    return not (self == other)
12800 manish.sha 12901
 
12902
class getInventoryAgeConsideredItems_args:
12903
  """
12904
  Attributes:
12905
   - itemId
12906
  """
12907
 
12908
  thrift_spec = (
12909
    None, # 0
12910
    (1, TType.I64, 'itemId', None, None, ), # 1
12911
  )
12912
 
12913
  def __init__(self, itemId=None,):
12914
    self.itemId = itemId
12915
 
12916
  def read(self, iprot):
12917
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12918
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12919
      return
12920
    iprot.readStructBegin()
12921
    while True:
12922
      (fname, ftype, fid) = iprot.readFieldBegin()
12923
      if ftype == TType.STOP:
12924
        break
12925
      if fid == 1:
12926
        if ftype == TType.I64:
12927
          self.itemId = iprot.readI64();
12928
        else:
12929
          iprot.skip(ftype)
12930
      else:
12931
        iprot.skip(ftype)
12932
      iprot.readFieldEnd()
12933
    iprot.readStructEnd()
12934
 
12935
  def write(self, oprot):
12936
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12937
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12938
      return
12939
    oprot.writeStructBegin('getInventoryAgeConsideredItems_args')
12940
    if self.itemId is not None:
12941
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12942
      oprot.writeI64(self.itemId)
12943
      oprot.writeFieldEnd()
12944
    oprot.writeFieldStop()
12945
    oprot.writeStructEnd()
12946
 
12947
  def validate(self):
12948
    return
12949
 
12950
 
12951
  def __repr__(self):
12952
    L = ['%s=%r' % (key, value)
12953
      for key, value in self.__dict__.iteritems()]
12954
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12955
 
12956
  def __eq__(self, other):
12957
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12958
 
12959
  def __ne__(self, other):
12960
    return not (self == other)
12961
 
12962
class getInventoryAgeConsideredItems_result:
12963
  """
12964
  Attributes:
12965
   - success
12966
   - ex
12967
  """
12968
 
12969
  thrift_spec = (
12970
    (0, TType.LIST, 'success', (TType.STRUCT,(InvAgeConsiderItems, InvAgeConsiderItems.thrift_spec)), None, ), # 0
12971
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12972
  )
12973
 
12974
  def __init__(self, success=None, ex=None,):
12975
    self.success = success
12976
    self.ex = ex
12977
 
12978
  def read(self, iprot):
12979
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12980
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12981
      return
12982
    iprot.readStructBegin()
12983
    while True:
12984
      (fname, ftype, fid) = iprot.readFieldBegin()
12985
      if ftype == TType.STOP:
12986
        break
12987
      if fid == 0:
12988
        if ftype == TType.LIST:
12989
          self.success = []
12990
          (_etype301, _size298) = iprot.readListBegin()
12991
          for _i302 in xrange(_size298):
12992
            _elem303 = InvAgeConsiderItems()
12993
            _elem303.read(iprot)
12994
            self.success.append(_elem303)
12995
          iprot.readListEnd()
12996
        else:
12997
          iprot.skip(ftype)
12998
      elif fid == 1:
12999
        if ftype == TType.STRUCT:
13000
          self.ex = WarehouseServiceException()
13001
          self.ex.read(iprot)
13002
        else:
13003
          iprot.skip(ftype)
13004
      else:
13005
        iprot.skip(ftype)
13006
      iprot.readFieldEnd()
13007
    iprot.readStructEnd()
13008
 
13009
  def write(self, oprot):
13010
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13011
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13012
      return
13013
    oprot.writeStructBegin('getInventoryAgeConsideredItems_result')
13014
    if self.success is not None:
13015
      oprot.writeFieldBegin('success', TType.LIST, 0)
13016
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13017
      for iter304 in self.success:
13018
        iter304.write(oprot)
13019
      oprot.writeListEnd()
13020
      oprot.writeFieldEnd()
13021
    if self.ex is not None:
13022
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
13023
      self.ex.write(oprot)
13024
      oprot.writeFieldEnd()
13025
    oprot.writeFieldStop()
13026
    oprot.writeStructEnd()
13027
 
13028
  def validate(self):
13029
    return
13030
 
13031
 
13032
  def __repr__(self):
13033
    L = ['%s=%r' % (key, value)
13034
      for key, value in self.__dict__.iteritems()]
13035
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13036
 
13037
  def __eq__(self, other):
13038
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13039
 
13040
  def __ne__(self, other):
13041
    return not (self == other)
13529 manish.sha 13042
 
13043
class getCompleteMovementForThirdPartyWarehouse_args:
13044
  """
13045
  Attributes:
13046
   - startDate
13047
   - endDate
13048
  """
13049
 
13050
  thrift_spec = (
13051
    None, # 0
13052
    (1, TType.I64, 'startDate', None, None, ), # 1
13053
    (2, TType.I64, 'endDate', None, None, ), # 2
13054
  )
13055
 
13056
  def __init__(self, startDate=None, endDate=None,):
13057
    self.startDate = startDate
13058
    self.endDate = endDate
13059
 
13060
  def read(self, iprot):
13061
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13062
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13063
      return
13064
    iprot.readStructBegin()
13065
    while True:
13066
      (fname, ftype, fid) = iprot.readFieldBegin()
13067
      if ftype == TType.STOP:
13068
        break
13069
      if fid == 1:
13070
        if ftype == TType.I64:
13071
          self.startDate = iprot.readI64();
13072
        else:
13073
          iprot.skip(ftype)
13074
      elif fid == 2:
13075
        if ftype == TType.I64:
13076
          self.endDate = iprot.readI64();
13077
        else:
13078
          iprot.skip(ftype)
13079
      else:
13080
        iprot.skip(ftype)
13081
      iprot.readFieldEnd()
13082
    iprot.readStructEnd()
13083
 
13084
  def write(self, oprot):
13085
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13086
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13087
      return
13088
    oprot.writeStructBegin('getCompleteMovementForThirdPartyWarehouse_args')
13089
    if self.startDate is not None:
13090
      oprot.writeFieldBegin('startDate', TType.I64, 1)
13091
      oprot.writeI64(self.startDate)
13092
      oprot.writeFieldEnd()
13093
    if self.endDate is not None:
13094
      oprot.writeFieldBegin('endDate', TType.I64, 2)
13095
      oprot.writeI64(self.endDate)
13096
      oprot.writeFieldEnd()
13097
    oprot.writeFieldStop()
13098
    oprot.writeStructEnd()
13099
 
13100
  def validate(self):
13101
    return
13102
 
13103
 
13104
  def __repr__(self):
13105
    L = ['%s=%r' % (key, value)
13106
      for key, value in self.__dict__.iteritems()]
13107
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13108
 
13109
  def __eq__(self, other):
13110
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13111
 
13112
  def __ne__(self, other):
13113
    return not (self == other)
13114
 
13115
class getCompleteMovementForThirdPartyWarehouse_result:
13116
  """
13117
  Attributes:
13118
   - success
13119
  """
13120
 
13121
  thrift_spec = (
13122
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
13123
  )
13124
 
13125
  def __init__(self, success=None,):
13126
    self.success = success
13127
 
13128
  def read(self, iprot):
13129
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13130
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13131
      return
13132
    iprot.readStructBegin()
13133
    while True:
13134
      (fname, ftype, fid) = iprot.readFieldBegin()
13135
      if ftype == TType.STOP:
13136
        break
13137
      if fid == 0:
13138
        if ftype == TType.LIST:
13139
          self.success = []
13140
          (_etype308, _size305) = iprot.readListBegin()
13141
          for _i309 in xrange(_size305):
13142
            _elem310 = InventoryMovement()
13143
            _elem310.read(iprot)
13144
            self.success.append(_elem310)
13145
          iprot.readListEnd()
13146
        else:
13147
          iprot.skip(ftype)
13148
      else:
13149
        iprot.skip(ftype)
13150
      iprot.readFieldEnd()
13151
    iprot.readStructEnd()
13152
 
13153
  def write(self, oprot):
13154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13156
      return
13157
    oprot.writeStructBegin('getCompleteMovementForThirdPartyWarehouse_result')
13158
    if self.success is not None:
13159
      oprot.writeFieldBegin('success', TType.LIST, 0)
13160
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13161
      for iter311 in self.success:
13162
        iter311.write(oprot)
13163
      oprot.writeListEnd()
13164
      oprot.writeFieldEnd()
13165
    oprot.writeFieldStop()
13166
    oprot.writeStructEnd()
13167
 
13168
  def validate(self):
13169
    return
13170
 
13171
 
13172
  def __repr__(self):
13173
    L = ['%s=%r' % (key, value)
13174
      for key, value in self.__dict__.iteritems()]
13175
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13176
 
13177
  def __eq__(self, other):
13178
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13179
 
13180
  def __ne__(self, other):
13181
    return not (self == other)