Subversion Repositories SmartDukaan

Rev

Rev 11751 | Rev 12800 | 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
 
11751 manish.sha 578
  def getItemsInPurchaseReturn(self, purchaseReturnId, type):
10864 manish.sha 579
    """
580
    Parameters:
581
     - purchaseReturnId
11751 manish.sha 582
     - type
10864 manish.sha 583
    """
584
    pass
585
 
10886 manish.sha 586
  def getScansForInventoryItem(self, inventoryItemId, type):
587
    """
588
    Parameters:
589
     - inventoryItemId
590
     - type
591
    """
592
    pass
10864 manish.sha 593
 
12531 manish.sha 594
  def checkGrnImeiStatus(self, imeiNos):
595
    """
596
    Parameters:
597
     - imeiNos
598
    """
599
    pass
10886 manish.sha 600
 
12531 manish.sha 601
 
3376 rajveer 602
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2821 chandransh 603
  def __init__(self, iprot, oprot=None):
3376 rajveer 604
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2821 chandransh 605
 
4501 mandeep.dh 606
  def getInventoryItem(self, serialNumber):
2832 chandransh 607
    """
4501 mandeep.dh 608
    Retrieves serialized inventory item given a serial number
3431 rajveer 609
 
2832 chandransh 610
    Parameters:
4501 mandeep.dh 611
     - serialNumber
2832 chandransh 612
    """
4501 mandeep.dh 613
    self.send_getInventoryItem(serialNumber)
614
    return self.recv_getInventoryItem()
2832 chandransh 615
 
4501 mandeep.dh 616
  def send_getInventoryItem(self, serialNumber):
617
    self._oprot.writeMessageBegin('getInventoryItem', TMessageType.CALL, self._seqid)
618
    args = getInventoryItem_args()
619
    args.serialNumber = serialNumber
2832 chandransh 620
    args.write(self._oprot)
621
    self._oprot.writeMessageEnd()
622
    self._oprot.trans.flush()
623
 
4501 mandeep.dh 624
  def recv_getInventoryItem(self, ):
2832 chandransh 625
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
626
    if mtype == TMessageType.EXCEPTION:
627
      x = TApplicationException()
628
      x.read(self._iprot)
629
      self._iprot.readMessageEnd()
630
      raise x
4501 mandeep.dh 631
    result = getInventoryItem_result()
2832 chandransh 632
    result.read(self._iprot)
633
    self._iprot.readMessageEnd()
3431 rajveer 634
    if result.success is not None:
2832 chandransh 635
      return result.success
4541 mandeep.dh 636
    if result.wex is not None:
637
      raise result.wex
4501 mandeep.dh 638
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
2832 chandransh 639
 
8565 amar.kumar 640
  def getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId):
2821 chandransh 641
    """
5361 mandeep.dh 642
    Retrieves non-serialized inventory item from a given supplier
3431 rajveer 643
 
2821 chandransh 644
    Parameters:
5530 mandeep.dh 645
     - itemNumber
4501 mandeep.dh 646
     - itemId
5530 mandeep.dh 647
     - fulfilmentWarehouseId
8565 amar.kumar 648
     - billingWarehouseId
2821 chandransh 649
    """
8565 amar.kumar 650
    self.send_getNonSeralizedInventoryItem(itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId)
5361 mandeep.dh 651
    return self.recv_getNonSeralizedInventoryItem()
2821 chandransh 652
 
8565 amar.kumar 653
  def send_getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId):
5361 mandeep.dh 654
    self._oprot.writeMessageBegin('getNonSeralizedInventoryItem', TMessageType.CALL, self._seqid)
655
    args = getNonSeralizedInventoryItem_args()
5530 mandeep.dh 656
    args.itemNumber = itemNumber
4501 mandeep.dh 657
    args.itemId = itemId
5530 mandeep.dh 658
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 659
    args.billingWarehouseId = billingWarehouseId
2821 chandransh 660
    args.write(self._oprot)
661
    self._oprot.writeMessageEnd()
662
    self._oprot.trans.flush()
663
 
5361 mandeep.dh 664
  def recv_getNonSeralizedInventoryItem(self, ):
2821 chandransh 665
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
666
    if mtype == TMessageType.EXCEPTION:
667
      x = TApplicationException()
668
      x.read(self._iprot)
669
      self._iprot.readMessageEnd()
670
      raise x
5361 mandeep.dh 671
    result = getNonSeralizedInventoryItem_result()
2821 chandransh 672
    result.read(self._iprot)
673
    self._iprot.readMessageEnd()
3431 rajveer 674
    if result.success is not None:
2821 chandransh 675
      return result.success
5361 mandeep.dh 676
    if result.wex is not None:
677
      raise result.wex
678
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
2821 chandransh 679
 
7410 amar.kumar 680
  def scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
3383 chandransh 681
    """
4501 mandeep.dh 682
    Scan non-serialized items.
3431 rajveer 683
 
2821 chandransh 684
    Parameters:
5361 mandeep.dh 685
     - inventoryItem
2821 chandransh 686
     - type
4501 mandeep.dh 687
     - quantity
5361 mandeep.dh 688
     - billingWarehouseId
7410 amar.kumar 689
     - transferLotId
2821 chandransh 690
    """
7410 amar.kumar 691
    self.send_scan(inventoryItem, type, quantity, billingWarehouseId, transferLotId)
4501 mandeep.dh 692
    self.recv_scan()
2821 chandransh 693
 
7410 amar.kumar 694
  def send_scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
4501 mandeep.dh 695
    self._oprot.writeMessageBegin('scan', TMessageType.CALL, self._seqid)
696
    args = scan_args()
5361 mandeep.dh 697
    args.inventoryItem = inventoryItem
2821 chandransh 698
    args.type = type
4501 mandeep.dh 699
    args.quantity = quantity
5361 mandeep.dh 700
    args.billingWarehouseId = billingWarehouseId
7410 amar.kumar 701
    args.transferLotId = transferLotId
2821 chandransh 702
    args.write(self._oprot)
703
    self._oprot.writeMessageEnd()
704
    self._oprot.trans.flush()
705
 
4501 mandeep.dh 706
  def recv_scan(self, ):
2821 chandransh 707
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
708
    if mtype == TMessageType.EXCEPTION:
709
      x = TApplicationException()
710
      x.read(self._iprot)
711
      self._iprot.readMessageEnd()
712
      raise x
4501 mandeep.dh 713
    result = scan_result()
2821 chandransh 714
    result.read(self._iprot)
715
    self._iprot.readMessageEnd()
3431 rajveer 716
    if result.wex is not None:
2821 chandransh 717
      raise result.wex
718
    return
719
 
10489 amar.kumar 720
  def genericScan(self, inventoryItem, scan):
721
    """
722
    Scan non-serialized items.
723
 
724
    Parameters:
725
     - inventoryItem
726
     - scan
727
    """
728
    self.send_genericScan(inventoryItem, scan)
729
    self.recv_genericScan()
730
 
731
  def send_genericScan(self, inventoryItem, scan):
732
    self._oprot.writeMessageBegin('genericScan', TMessageType.CALL, self._seqid)
733
    args = genericScan_args()
734
    args.inventoryItem = inventoryItem
735
    args.scan = scan
736
    args.write(self._oprot)
737
    self._oprot.writeMessageEnd()
738
    self._oprot.trans.flush()
739
 
740
  def recv_genericScan(self, ):
741
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
742
    if mtype == TMessageType.EXCEPTION:
743
      x = TApplicationException()
744
      x.read(self._iprot)
745
      self._iprot.readMessageEnd()
746
      raise x
747
    result = genericScan_result()
748
    result.read(self._iprot)
749
    self._iprot.readMessageEnd()
750
    if result.wex is not None:
751
      raise result.wex
752
    return
753
 
5110 mandeep.dh 754
  def scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
2821 chandransh 755
    """
4501 mandeep.dh 756
    Scan serialized items linked with an order. Returns its price.
3431 rajveer 757
 
2821 chandransh 758
    Parameters:
4555 mandeep.dh 759
     - serialNumber
2821 chandransh 760
     - type
4501 mandeep.dh 761
     - orderId
5110 mandeep.dh 762
     - fulfilmentWarehouseId
763
     - quantity
764
     - billingWarehouseId
2821 chandransh 765
    """
5110 mandeep.dh 766
    self.send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId)
4501 mandeep.dh 767
    return self.recv_scanSerializedItemForOrder()
2821 chandransh 768
 
5110 mandeep.dh 769
  def send_scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
4501 mandeep.dh 770
    self._oprot.writeMessageBegin('scanSerializedItemForOrder', TMessageType.CALL, self._seqid)
771
    args = scanSerializedItemForOrder_args()
4555 mandeep.dh 772
    args.serialNumber = serialNumber
2821 chandransh 773
    args.type = type
4501 mandeep.dh 774
    args.orderId = orderId
5110 mandeep.dh 775
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
776
    args.quantity = quantity
777
    args.billingWarehouseId = billingWarehouseId
2821 chandransh 778
    args.write(self._oprot)
779
    self._oprot.writeMessageEnd()
780
    self._oprot.trans.flush()
781
 
4501 mandeep.dh 782
  def recv_scanSerializedItemForOrder(self, ):
2821 chandransh 783
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
784
    if mtype == TMessageType.EXCEPTION:
785
      x = TApplicationException()
786
      x.read(self._iprot)
787
      self._iprot.readMessageEnd()
788
      raise x
4501 mandeep.dh 789
    result = scanSerializedItemForOrder_result()
2821 chandransh 790
    result.read(self._iprot)
791
    self._iprot.readMessageEnd()
4501 mandeep.dh 792
    if result.success is not None:
793
      return result.success
3431 rajveer 794
    if result.wex is not None:
2821 chandransh 795
      raise result.wex
4501 mandeep.dh 796
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
797
 
5361 mandeep.dh 798
  def scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
4501 mandeep.dh 799
    """
800
    Scan non-serialized items linked with an order.
801
 
802
    Parameters:
5361 mandeep.dh 803
     - inventoryItem
4501 mandeep.dh 804
     - type
805
     - quantity
806
     - orderId
5110 mandeep.dh 807
     - fulfilmentWarehouseId
5361 mandeep.dh 808
     - billingWarehouseId
4501 mandeep.dh 809
    """
5361 mandeep.dh 810
    self.send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId)
811
    return self.recv_scanForOrder()
4501 mandeep.dh 812
 
5361 mandeep.dh 813
  def send_scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
4501 mandeep.dh 814
    self._oprot.writeMessageBegin('scanForOrder', TMessageType.CALL, self._seqid)
815
    args = scanForOrder_args()
5361 mandeep.dh 816
    args.inventoryItem = inventoryItem
4501 mandeep.dh 817
    args.type = type
818
    args.quantity = quantity
819
    args.orderId = orderId
5110 mandeep.dh 820
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
5361 mandeep.dh 821
    args.billingWarehouseId = billingWarehouseId
4501 mandeep.dh 822
    args.write(self._oprot)
823
    self._oprot.writeMessageEnd()
824
    self._oprot.trans.flush()
825
 
826
  def recv_scanForOrder(self, ):
827
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
828
    if mtype == TMessageType.EXCEPTION:
829
      x = TApplicationException()
830
      x.read(self._iprot)
831
      self._iprot.readMessageEnd()
832
      raise x
833
    result = scanForOrder_result()
834
    result.read(self._iprot)
835
    self._iprot.readMessageEnd()
5361 mandeep.dh 836
    if result.success is not None:
837
      return result.success
4501 mandeep.dh 838
    if result.wex is not None:
839
      raise result.wex
5361 mandeep.dh 840
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");
2821 chandransh 841
 
4501 mandeep.dh 842
  def createItemNumberMapping(self, itemNumber, itemId):
843
    """
844
    Created item number to item id mapping
2821 chandransh 845
 
4501 mandeep.dh 846
    Parameters:
847
     - itemNumber
848
     - itemId
849
    """
850
    self.send_createItemNumberMapping(itemNumber, itemId)
851
    self.recv_createItemNumberMapping()
852
 
853
  def send_createItemNumberMapping(self, itemNumber, itemId):
854
    self._oprot.writeMessageBegin('createItemNumberMapping', TMessageType.CALL, self._seqid)
855
    args = createItemNumberMapping_args()
856
    args.itemNumber = itemNumber
857
    args.itemId = itemId
858
    args.write(self._oprot)
859
    self._oprot.writeMessageEnd()
860
    self._oprot.trans.flush()
861
 
862
  def recv_createItemNumberMapping(self, ):
863
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
864
    if mtype == TMessageType.EXCEPTION:
865
      x = TApplicationException()
866
      x.read(self._iprot)
867
      self._iprot.readMessageEnd()
868
      raise x
869
    result = createItemNumberMapping_result()
870
    result.read(self._iprot)
871
    self._iprot.readMessageEnd()
872
    return
873
 
4620 amit.gupta 874
  def getItemNumbers(self, itemId):
875
    """
876
    Get itemNumber mappings for itemId
4501 mandeep.dh 877
 
4620 amit.gupta 878
    Parameters:
879
     - itemId
880
    """
881
    self.send_getItemNumbers(itemId)
882
    return self.recv_getItemNumbers()
883
 
884
  def send_getItemNumbers(self, itemId):
885
    self._oprot.writeMessageBegin('getItemNumbers', TMessageType.CALL, self._seqid)
886
    args = getItemNumbers_args()
887
    args.itemId = itemId
888
    args.write(self._oprot)
889
    self._oprot.writeMessageEnd()
890
    self._oprot.trans.flush()
891
 
892
  def recv_getItemNumbers(self, ):
893
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
894
    if mtype == TMessageType.EXCEPTION:
895
      x = TApplicationException()
896
      x.read(self._iprot)
897
      self._iprot.readMessageEnd()
898
      raise x
899
    result = getItemNumbers_result()
900
    result.read(self._iprot)
901
    self._iprot.readMessageEnd()
902
    if result.success is not None:
903
      return result.success
904
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
905
 
5110 mandeep.dh 906
  def getItemIds(self, itemNumber):
907
    """
908
    Gets item ids for a given item number
4620 amit.gupta 909
 
5110 mandeep.dh 910
    Parameters:
911
     - itemNumber
912
    """
913
    self.send_getItemIds(itemNumber)
914
    return self.recv_getItemIds()
915
 
916
  def send_getItemIds(self, itemNumber):
917
    self._oprot.writeMessageBegin('getItemIds', TMessageType.CALL, self._seqid)
918
    args = getItemIds_args()
919
    args.itemNumber = itemNumber
920
    args.write(self._oprot)
921
    self._oprot.writeMessageEnd()
922
    self._oprot.trans.flush()
923
 
924
  def recv_getItemIds(self, ):
925
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
926
    if mtype == TMessageType.EXCEPTION:
927
      x = TApplicationException()
928
      x.read(self._iprot)
929
      self._iprot.readMessageEnd()
930
      raise x
931
    result = getItemIds_result()
932
    result.read(self._iprot)
933
    self._iprot.readMessageEnd()
934
    if result.success is not None:
935
      return result.success
936
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
937
 
5185 mandeep.dh 938
  def getInventoryItemsFromLastScanType(self, lastScanType):
939
    """
940
    Retrieves all inventory items given a last scan type
5110 mandeep.dh 941
 
5185 mandeep.dh 942
    Parameters:
943
     - lastScanType
944
    """
945
    self.send_getInventoryItemsFromLastScanType(lastScanType)
946
    return self.recv_getInventoryItemsFromLastScanType()
947
 
948
  def send_getInventoryItemsFromLastScanType(self, lastScanType):
949
    self._oprot.writeMessageBegin('getInventoryItemsFromLastScanType', TMessageType.CALL, self._seqid)
950
    args = getInventoryItemsFromLastScanType_args()
951
    args.lastScanType = lastScanType
952
    args.write(self._oprot)
953
    self._oprot.writeMessageEnd()
954
    self._oprot.trans.flush()
955
 
956
  def recv_getInventoryItemsFromLastScanType(self, ):
957
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
958
    if mtype == TMessageType.EXCEPTION:
959
      x = TApplicationException()
960
      x.read(self._iprot)
961
      self._iprot.readMessageEnd()
962
      raise x
963
    result = getInventoryItemsFromLastScanType_result()
964
    result.read(self._iprot)
965
    self._iprot.readMessageEnd()
966
    if result.success is not None:
967
      return result.success
968
    if result.wex is not None:
969
      raise result.wex
970
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemsFromLastScanType failed: unknown result");
971
 
972
  def getInventoryItemFromId(self, inventoryItemId):
973
    """
974
    Retrieves inventory item given a inventoryItem id
975
 
976
    Parameters:
977
     - inventoryItemId
978
    """
979
    self.send_getInventoryItemFromId(inventoryItemId)
980
    return self.recv_getInventoryItemFromId()
981
 
982
  def send_getInventoryItemFromId(self, inventoryItemId):
983
    self._oprot.writeMessageBegin('getInventoryItemFromId', TMessageType.CALL, self._seqid)
984
    args = getInventoryItemFromId_args()
985
    args.inventoryItemId = inventoryItemId
986
    args.write(self._oprot)
987
    self._oprot.writeMessageEnd()
988
    self._oprot.trans.flush()
989
 
990
  def recv_getInventoryItemFromId(self, ):
991
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
992
    if mtype == TMessageType.EXCEPTION:
993
      x = TApplicationException()
994
      x.read(self._iprot)
995
      self._iprot.readMessageEnd()
996
      raise x
997
    result = getInventoryItemFromId_result()
998
    result.read(self._iprot)
999
    self._iprot.readMessageEnd()
1000
    if result.success is not None:
1001
      return result.success
1002
    if result.wex is not None:
1003
      raise result.wex
1004
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");
1005
 
5372 mandeep.dh 1006
  def getPurchaseScans(self, startDate, endDate):
1007
    """
1008
    Returns the purchase scans grouped by items for Purchase register reconciliation
5185 mandeep.dh 1009
 
5372 mandeep.dh 1010
    Parameters:
1011
     - startDate
1012
     - endDate
1013
    """
1014
    self.send_getPurchaseScans(startDate, endDate)
1015
    return self.recv_getPurchaseScans()
1016
 
1017
  def send_getPurchaseScans(self, startDate, endDate):
1018
    self._oprot.writeMessageBegin('getPurchaseScans', TMessageType.CALL, self._seqid)
1019
    args = getPurchaseScans_args()
1020
    args.startDate = startDate
1021
    args.endDate = endDate
1022
    args.write(self._oprot)
1023
    self._oprot.writeMessageEnd()
1024
    self._oprot.trans.flush()
1025
 
1026
  def recv_getPurchaseScans(self, ):
1027
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1028
    if mtype == TMessageType.EXCEPTION:
1029
      x = TApplicationException()
1030
      x.read(self._iprot)
1031
      self._iprot.readMessageEnd()
1032
      raise x
1033
    result = getPurchaseScans_result()
1034
    result.read(self._iprot)
1035
    self._iprot.readMessageEnd()
1036
    if result.success is not None:
1037
      return result.success
1038
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseScans failed: unknown result");
1039
 
7216 amar.kumar 1040
  def getPurchaseScansByGrnDate(self, startDate, endDate):
1041
    """
1042
    Returns the purchase scans between grn dates grouped by items for Purchase register reconciliation
1043
 
1044
    Parameters:
1045
     - startDate
1046
     - endDate
1047
    """
1048
    self.send_getPurchaseScansByGrnDate(startDate, endDate)
1049
    return self.recv_getPurchaseScansByGrnDate()
1050
 
1051
  def send_getPurchaseScansByGrnDate(self, startDate, endDate):
1052
    self._oprot.writeMessageBegin('getPurchaseScansByGrnDate', TMessageType.CALL, self._seqid)
1053
    args = getPurchaseScansByGrnDate_args()
1054
    args.startDate = startDate
1055
    args.endDate = endDate
1056
    args.write(self._oprot)
1057
    self._oprot.writeMessageEnd()
1058
    self._oprot.trans.flush()
1059
 
1060
  def recv_getPurchaseScansByGrnDate(self, ):
1061
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1062
    if mtype == TMessageType.EXCEPTION:
1063
      x = TApplicationException()
1064
      x.read(self._iprot)
1065
      self._iprot.readMessageEnd()
1066
      raise x
1067
    result = getPurchaseScansByGrnDate_result()
1068
    result.read(self._iprot)
1069
    self._iprot.readMessageEnd()
1070
    if result.success is not None:
1071
      return result.success
1072
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseScansByGrnDate failed: unknown result");
1073
 
10407 amar.kumar 1074
  def getEmptyGrnsByDate(self, startDate, endDate):
1075
    """
1076
    Returns the empty grn-ids between grn dates
1077
 
1078
    Parameters:
1079
     - startDate
1080
     - endDate
1081
    """
1082
    self.send_getEmptyGrnsByDate(startDate, endDate)
1083
    return self.recv_getEmptyGrnsByDate()
1084
 
1085
  def send_getEmptyGrnsByDate(self, startDate, endDate):
1086
    self._oprot.writeMessageBegin('getEmptyGrnsByDate', TMessageType.CALL, self._seqid)
1087
    args = getEmptyGrnsByDate_args()
1088
    args.startDate = startDate
1089
    args.endDate = endDate
1090
    args.write(self._oprot)
1091
    self._oprot.writeMessageEnd()
1092
    self._oprot.trans.flush()
1093
 
1094
  def recv_getEmptyGrnsByDate(self, ):
1095
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1096
    if mtype == TMessageType.EXCEPTION:
1097
      x = TApplicationException()
1098
      x.read(self._iprot)
1099
      self._iprot.readMessageEnd()
1100
      raise x
1101
    result = getEmptyGrnsByDate_result()
1102
    result.read(self._iprot)
1103
    self._iprot.readMessageEnd()
1104
    if result.success is not None:
1105
      return result.success
1106
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmptyGrnsByDate failed: unknown result");
1107
 
5496 mandeep.dh 1108
  def fetchScansPerInvoiceNumber(self, date):
1109
    """
1110
    Returns the invoices and the count of scans against on a given day.
5372 mandeep.dh 1111
 
5496 mandeep.dh 1112
    Parameters:
1113
     - date
1114
    """
1115
    self.send_fetchScansPerInvoiceNumber(date)
1116
    return self.recv_fetchScansPerInvoiceNumber()
1117
 
1118
  def send_fetchScansPerInvoiceNumber(self, date):
1119
    self._oprot.writeMessageBegin('fetchScansPerInvoiceNumber', TMessageType.CALL, self._seqid)
1120
    args = fetchScansPerInvoiceNumber_args()
1121
    args.date = date
1122
    args.write(self._oprot)
1123
    self._oprot.writeMessageEnd()
1124
    self._oprot.trans.flush()
1125
 
1126
  def recv_fetchScansPerInvoiceNumber(self, ):
1127
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1128
    if mtype == TMessageType.EXCEPTION:
1129
      x = TApplicationException()
1130
      x.read(self._iprot)
1131
      self._iprot.readMessageEnd()
1132
      raise x
1133
    result = fetchScansPerInvoiceNumber_result()
1134
    result.read(self._iprot)
1135
    self._iprot.readMessageEnd()
1136
    if result.success is not None:
1137
      return result.success
1138
    raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchScansPerInvoiceNumber failed: unknown result");
1139
 
5620 mandeep.dh 1140
  def getInventoryItemFromOrder(self, orderId):
1141
    """
1142
    Returns inventory item for a given order
5496 mandeep.dh 1143
 
5620 mandeep.dh 1144
    Parameters:
1145
     - orderId
1146
    """
1147
    self.send_getInventoryItemFromOrder(orderId)
1148
    return self.recv_getInventoryItemFromOrder()
1149
 
1150
  def send_getInventoryItemFromOrder(self, orderId):
1151
    self._oprot.writeMessageBegin('getInventoryItemFromOrder', TMessageType.CALL, self._seqid)
1152
    args = getInventoryItemFromOrder_args()
1153
    args.orderId = orderId
1154
    args.write(self._oprot)
1155
    self._oprot.writeMessageEnd()
1156
    self._oprot.trans.flush()
1157
 
1158
  def recv_getInventoryItemFromOrder(self, ):
1159
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1160
    if mtype == TMessageType.EXCEPTION:
1161
      x = TApplicationException()
1162
      x.read(self._iprot)
1163
      self._iprot.readMessageEnd()
1164
      raise x
1165
    result = getInventoryItemFromOrder_result()
1166
    result.read(self._iprot)
1167
    self._iprot.readMessageEnd()
1168
    if result.success is not None:
1169
      return result.success
1170
    if result.we is not None:
1171
      raise result.we
1172
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemFromOrder failed: unknown result");
1173
 
5711 mandeep.dh 1174
  def getInventoryAge(self, ):
1175
    """
1176
    Fetches the stock inventory age week-wise
1177
    """
1178
    self.send_getInventoryAge()
1179
    return self.recv_getInventoryAge()
5620 mandeep.dh 1180
 
5711 mandeep.dh 1181
  def send_getInventoryAge(self, ):
1182
    self._oprot.writeMessageBegin('getInventoryAge', TMessageType.CALL, self._seqid)
1183
    args = getInventoryAge_args()
1184
    args.write(self._oprot)
1185
    self._oprot.writeMessageEnd()
1186
    self._oprot.trans.flush()
1187
 
1188
  def recv_getInventoryAge(self, ):
1189
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1190
    if mtype == TMessageType.EXCEPTION:
1191
      x = TApplicationException()
1192
      x.read(self._iprot)
1193
      self._iprot.readMessageEnd()
1194
      raise x
1195
    result = getInventoryAge_result()
1196
    result.read(self._iprot)
1197
    self._iprot.readMessageEnd()
1198
    if result.success is not None:
1199
      return result.success
1200
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryAge failed: unknown result");
1201
 
6361 rajveer 1202
  def getInventoryScansForItem(self, itemId, fromDate, toDate):
1203
    """
1204
    Fetches the scanRecords for a given item for a given time interval
5711 mandeep.dh 1205
 
6361 rajveer 1206
    Parameters:
1207
     - itemId
1208
     - fromDate
1209
     - toDate
1210
    """
1211
    self.send_getInventoryScansForItem(itemId, fromDate, toDate)
1212
    return self.recv_getInventoryScansForItem()
1213
 
1214
  def send_getInventoryScansForItem(self, itemId, fromDate, toDate):
1215
    self._oprot.writeMessageBegin('getInventoryScansForItem', TMessageType.CALL, self._seqid)
1216
    args = getInventoryScansForItem_args()
1217
    args.itemId = itemId
1218
    args.fromDate = fromDate
1219
    args.toDate = toDate
1220
    args.write(self._oprot)
1221
    self._oprot.writeMessageEnd()
1222
    self._oprot.trans.flush()
1223
 
1224
  def recv_getInventoryScansForItem(self, ):
1225
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1226
    if mtype == TMessageType.EXCEPTION:
1227
      x = TApplicationException()
1228
      x.read(self._iprot)
1229
      self._iprot.readMessageEnd()
1230
      raise x
1231
    result = getInventoryScansForItem_result()
1232
    result.read(self._iprot)
1233
    self._iprot.readMessageEnd()
1234
    if result.success is not None:
1235
      return result.success
1236
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryScansForItem failed: unknown result");
1237
 
1238
  def getScanRecordsForSerialNumber(self, serialNumber):
1239
    """
1240
    Fetches the scanRecords for a given serialNumber for a given time interval
1241
 
1242
    Parameters:
1243
     - serialNumber
1244
    """
1245
    self.send_getScanRecordsForSerialNumber(serialNumber)
1246
    return self.recv_getScanRecordsForSerialNumber()
1247
 
1248
  def send_getScanRecordsForSerialNumber(self, serialNumber):
1249
    self._oprot.writeMessageBegin('getScanRecordsForSerialNumber', TMessageType.CALL, self._seqid)
1250
    args = getScanRecordsForSerialNumber_args()
1251
    args.serialNumber = serialNumber
1252
    args.write(self._oprot)
1253
    self._oprot.writeMessageEnd()
1254
    self._oprot.trans.flush()
1255
 
1256
  def recv_getScanRecordsForSerialNumber(self, ):
1257
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1258
    if mtype == TMessageType.EXCEPTION:
1259
      x = TApplicationException()
1260
      x.read(self._iprot)
1261
      self._iprot.readMessageEnd()
1262
      raise x
1263
    result = getScanRecordsForSerialNumber_result()
1264
    result.read(self._iprot)
1265
    self._iprot.readMessageEnd()
1266
    if result.success is not None:
1267
      return result.success
1268
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScanRecordsForSerialNumber failed: unknown result");
1269
 
7718 amar.kumar 1270
  def scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
6467 amar.kumar 1271
    """
6630 amar.kumar 1272
    Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
6361 rajveer 1273
 
6467 amar.kumar 1274
    Parameters:
1275
     - saleReturnItems
1276
     - vendorId
7718 amar.kumar 1277
     - billingWarehouseId
6467 amar.kumar 1278
    """
7718 amar.kumar 1279
    self.send_scanForPurchaseReturn(saleReturnItems, vendorId, billingWarehouseId)
10864 manish.sha 1280
    return self.recv_scanForPurchaseReturn()
6467 amar.kumar 1281
 
7718 amar.kumar 1282
  def send_scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
6467 amar.kumar 1283
    self._oprot.writeMessageBegin('scanForPurchaseReturn', TMessageType.CALL, self._seqid)
1284
    args = scanForPurchaseReturn_args()
1285
    args.saleReturnItems = saleReturnItems
1286
    args.vendorId = vendorId
7718 amar.kumar 1287
    args.billingWarehouseId = billingWarehouseId
6467 amar.kumar 1288
    args.write(self._oprot)
1289
    self._oprot.writeMessageEnd()
1290
    self._oprot.trans.flush()
1291
 
1292
  def recv_scanForPurchaseReturn(self, ):
1293
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1294
    if mtype == TMessageType.EXCEPTION:
1295
      x = TApplicationException()
1296
      x.read(self._iprot)
1297
      self._iprot.readMessageEnd()
1298
      raise x
1299
    result = scanForPurchaseReturn_result()
1300
    result.read(self._iprot)
1301
    self._iprot.readMessageEnd()
10864 manish.sha 1302
    if result.success is not None:
1303
      return result.success
6467 amar.kumar 1304
    if result.ex is not None:
1305
      raise result.ex
10864 manish.sha 1306
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForPurchaseReturn failed: unknown result");
6467 amar.kumar 1307
 
7718 amar.kumar 1308
  def scanForLostItem(self, lostItems, vendorId, billingWarehouseId):
6630 amar.kumar 1309
    """
1310
    Inserts scans for lost Items and updates lastScanType in InventoryItems
6467 amar.kumar 1311
 
6630 amar.kumar 1312
    Parameters:
1313
     - lostItems
1314
     - vendorId
7718 amar.kumar 1315
     - billingWarehouseId
6630 amar.kumar 1316
    """
7718 amar.kumar 1317
    self.send_scanForLostItem(lostItems, vendorId, billingWarehouseId)
6630 amar.kumar 1318
    self.recv_scanForLostItem()
1319
 
7718 amar.kumar 1320
  def send_scanForLostItem(self, lostItems, vendorId, billingWarehouseId):
6630 amar.kumar 1321
    self._oprot.writeMessageBegin('scanForLostItem', TMessageType.CALL, self._seqid)
1322
    args = scanForLostItem_args()
1323
    args.lostItems = lostItems
1324
    args.vendorId = vendorId
7718 amar.kumar 1325
    args.billingWarehouseId = billingWarehouseId
6630 amar.kumar 1326
    args.write(self._oprot)
1327
    self._oprot.writeMessageEnd()
1328
    self._oprot.trans.flush()
1329
 
1330
  def recv_scanForLostItem(self, ):
1331
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1332
    if mtype == TMessageType.EXCEPTION:
1333
      x = TApplicationException()
1334
      x.read(self._iprot)
1335
      self._iprot.readMessageEnd()
1336
      raise x
1337
    result = scanForLostItem_result()
1338
    result.read(self._iprot)
1339
    self._iprot.readMessageEnd()
1340
    if result.ex is not None:
1341
      raise result.ex
1342
    return
1343
 
7715 vikram.rag 1344
  def getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1345
    """
1346
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
7715 vikram.rag 1347
 
1348
    Parameters:
1349
     - physicalWarehouseId
6630 amar.kumar 1350
    """
7715 vikram.rag 1351
    self.send_getCurrentSerializedInventoryByScans(physicalWarehouseId)
6630 amar.kumar 1352
    return self.recv_getCurrentSerializedInventoryByScans()
1353
 
7715 vikram.rag 1354
  def send_getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1355
    self._oprot.writeMessageBegin('getCurrentSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1356
    args = getCurrentSerializedInventoryByScans_args()
7715 vikram.rag 1357
    args.physicalWarehouseId = physicalWarehouseId
6630 amar.kumar 1358
    args.write(self._oprot)
1359
    self._oprot.writeMessageEnd()
1360
    self._oprot.trans.flush()
1361
 
1362
  def recv_getCurrentSerializedInventoryByScans(self, ):
1363
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1364
    if mtype == TMessageType.EXCEPTION:
1365
      x = TApplicationException()
1366
      x.read(self._iprot)
1367
      self._iprot.readMessageEnd()
1368
      raise x
1369
    result = getCurrentSerializedInventoryByScans_result()
1370
    result.read(self._iprot)
1371
    self._iprot.readMessageEnd()
1372
    if result.success is not None:
1373
      return result.success
1374
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");
1375
 
7715 vikram.rag 1376
  def getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1377
    """
1378
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
7715 vikram.rag 1379
 
1380
    Parameters:
1381
     - physicalWarehouseId
6630 amar.kumar 1382
    """
7715 vikram.rag 1383
    self.send_getCurrentNonSerializedInventoryByScans(physicalWarehouseId)
6630 amar.kumar 1384
    return self.recv_getCurrentNonSerializedInventoryByScans()
1385
 
7715 vikram.rag 1386
  def send_getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1387
    self._oprot.writeMessageBegin('getCurrentNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1388
    args = getCurrentNonSerializedInventoryByScans_args()
7715 vikram.rag 1389
    args.physicalWarehouseId = physicalWarehouseId
6630 amar.kumar 1390
    args.write(self._oprot)
1391
    self._oprot.writeMessageEnd()
1392
    self._oprot.trans.flush()
1393
 
1394
  def recv_getCurrentNonSerializedInventoryByScans(self, ):
1395
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1396
    if mtype == TMessageType.EXCEPTION:
1397
      x = TApplicationException()
1398
      x.read(self._iprot)
1399
      self._iprot.readMessageEnd()
1400
      raise x
1401
    result = getCurrentNonSerializedInventoryByScans_result()
1402
    result.read(self._iprot)
1403
    self._iprot.readMessageEnd()
1404
    if result.success is not None:
1405
      return result.success
1406
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");
1407
 
6762 amar.kumar 1408
  def getHistoricSerializedInventoryByScans(self, date):
1409
    """
1410
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
6630 amar.kumar 1411
 
6762 amar.kumar 1412
    Parameters:
1413
     - date
1414
    """
1415
    self.send_getHistoricSerializedInventoryByScans(date)
1416
    return self.recv_getHistoricSerializedInventoryByScans()
1417
 
1418
  def send_getHistoricSerializedInventoryByScans(self, date):
1419
    self._oprot.writeMessageBegin('getHistoricSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1420
    args = getHistoricSerializedInventoryByScans_args()
1421
    args.date = date
1422
    args.write(self._oprot)
1423
    self._oprot.writeMessageEnd()
1424
    self._oprot.trans.flush()
1425
 
1426
  def recv_getHistoricSerializedInventoryByScans(self, ):
1427
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1428
    if mtype == TMessageType.EXCEPTION:
1429
      x = TApplicationException()
1430
      x.read(self._iprot)
1431
      self._iprot.readMessageEnd()
1432
      raise x
1433
    result = getHistoricSerializedInventoryByScans_result()
1434
    result.read(self._iprot)
1435
    self._iprot.readMessageEnd()
1436
    if result.success is not None:
1437
      return result.success
1438
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricSerializedInventoryByScans failed: unknown result");
1439
 
1440
  def getHistoricNonSerializedInventoryByScans(self, date):
1441
    """
1442
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
1443
 
1444
    Parameters:
1445
     - date
1446
    """
1447
    self.send_getHistoricNonSerializedInventoryByScans(date)
1448
    return self.recv_getHistoricNonSerializedInventoryByScans()
1449
 
1450
  def send_getHistoricNonSerializedInventoryByScans(self, date):
1451
    self._oprot.writeMessageBegin('getHistoricNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1452
    args = getHistoricNonSerializedInventoryByScans_args()
1453
    args.date = date
1454
    args.write(self._oprot)
1455
    self._oprot.writeMessageEnd()
1456
    self._oprot.trans.flush()
1457
 
1458
  def recv_getHistoricNonSerializedInventoryByScans(self, ):
1459
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1460
    if mtype == TMessageType.EXCEPTION:
1461
      x = TApplicationException()
1462
      x.read(self._iprot)
1463
      self._iprot.readMessageEnd()
1464
      raise x
1465
    result = getHistoricNonSerializedInventoryByScans_result()
1466
    result.read(self._iprot)
1467
    self._iprot.readMessageEnd()
1468
    if result.success is not None:
1469
      return result.success
1470
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricNonSerializedInventoryByScans failed: unknown result");
1471
 
10407 amar.kumar 1472
  def getOurHistoricSerializedInventoryByScans(self, date):
1473
    """
1474
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
1475
 
1476
    Parameters:
1477
     - date
1478
    """
1479
    self.send_getOurHistoricSerializedInventoryByScans(date)
1480
    return self.recv_getOurHistoricSerializedInventoryByScans()
1481
 
1482
  def send_getOurHistoricSerializedInventoryByScans(self, date):
1483
    self._oprot.writeMessageBegin('getOurHistoricSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1484
    args = getOurHistoricSerializedInventoryByScans_args()
1485
    args.date = date
1486
    args.write(self._oprot)
1487
    self._oprot.writeMessageEnd()
1488
    self._oprot.trans.flush()
1489
 
1490
  def recv_getOurHistoricSerializedInventoryByScans(self, ):
1491
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1492
    if mtype == TMessageType.EXCEPTION:
1493
      x = TApplicationException()
1494
      x.read(self._iprot)
1495
      self._iprot.readMessageEnd()
1496
      raise x
1497
    result = getOurHistoricSerializedInventoryByScans_result()
1498
    result.read(self._iprot)
1499
    self._iprot.readMessageEnd()
1500
    if result.success is not None:
1501
      return result.success
1502
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurHistoricSerializedInventoryByScans failed: unknown result");
1503
 
1504
  def getOurHistoricNonSerializedInventoryByScans(self, date):
1505
    """
1506
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
1507
 
1508
    Parameters:
1509
     - date
1510
    """
1511
    self.send_getOurHistoricNonSerializedInventoryByScans(date)
1512
    return self.recv_getOurHistoricNonSerializedInventoryByScans()
1513
 
1514
  def send_getOurHistoricNonSerializedInventoryByScans(self, date):
1515
    self._oprot.writeMessageBegin('getOurHistoricNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1516
    args = getOurHistoricNonSerializedInventoryByScans_args()
1517
    args.date = date
1518
    args.write(self._oprot)
1519
    self._oprot.writeMessageEnd()
1520
    self._oprot.trans.flush()
1521
 
1522
  def recv_getOurHistoricNonSerializedInventoryByScans(self, ):
1523
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1524
    if mtype == TMessageType.EXCEPTION:
1525
      x = TApplicationException()
1526
      x.read(self._iprot)
1527
      self._iprot.readMessageEnd()
1528
      raise x
1529
    result = getOurHistoricNonSerializedInventoryByScans_result()
1530
    result.read(self._iprot)
1531
    self._iprot.readMessageEnd()
1532
    if result.success is not None:
1533
      return result.success
1534
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurHistoricNonSerializedInventoryByScans failed: unknown result");
1535
 
7672 rajveer 1536
  def scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):
6762 amar.kumar 1537
    """
6880 amar.kumar 1538
    Insert Purchase/Sale Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 1539
 
1540
    Parameters:
1541
     - itemId
1542
     - serialNumber
1543
     - itemNumber
1544
     - invoiceNumber
1545
     - warehouseId
1546
     - unitPrice
7672 rajveer 1547
     - nlc
6762 amar.kumar 1548
     - orderId
1549
    """
7672 rajveer 1550
    self.send_scanForOursExternalSale(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId)
6762 amar.kumar 1551
    return self.recv_scanForOursExternalSale()
1552
 
7672 rajveer 1553
  def send_scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):
6762 amar.kumar 1554
    self._oprot.writeMessageBegin('scanForOursExternalSale', TMessageType.CALL, self._seqid)
1555
    args = scanForOursExternalSale_args()
1556
    args.itemId = itemId
1557
    args.serialNumber = serialNumber
1558
    args.itemNumber = itemNumber
1559
    args.invoiceNumber = invoiceNumber
1560
    args.warehouseId = warehouseId
1561
    args.unitPrice = unitPrice
7672 rajveer 1562
    args.nlc = nlc
6762 amar.kumar 1563
    args.orderId = orderId
1564
    args.write(self._oprot)
1565
    self._oprot.writeMessageEnd()
1566
    self._oprot.trans.flush()
1567
 
1568
  def recv_scanForOursExternalSale(self, ):
1569
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1570
    if mtype == TMessageType.EXCEPTION:
1571
      x = TApplicationException()
1572
      x.read(self._iprot)
1573
      self._iprot.readMessageEnd()
1574
      raise x
1575
    result = scanForOursExternalSale_result()
1576
    result.read(self._iprot)
1577
    self._iprot.readMessageEnd()
1578
    if result.success is not None:
1579
      return result.success
1580
    if result.ex is not None:
1581
      raise result.ex
1582
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOursExternalSale failed: unknown result");
1583
 
1584
  def scanForOursExternalSaleReturn(self, orderId, unitPrice):
1585
    """
6880 amar.kumar 1586
    Insert Purchase_Ret/Sale_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 1587
 
1588
    Parameters:
1589
     - orderId
1590
     - unitPrice
1591
    """
1592
    self.send_scanForOursExternalSaleReturn(orderId, unitPrice)
1593
    self.recv_scanForOursExternalSaleReturn()
1594
 
1595
  def send_scanForOursExternalSaleReturn(self, orderId, unitPrice):
1596
    self._oprot.writeMessageBegin('scanForOursExternalSaleReturn', TMessageType.CALL, self._seqid)
1597
    args = scanForOursExternalSaleReturn_args()
1598
    args.orderId = orderId
1599
    args.unitPrice = unitPrice
1600
    args.write(self._oprot)
1601
    self._oprot.writeMessageEnd()
1602
    self._oprot.trans.flush()
1603
 
1604
  def recv_scanForOursExternalSaleReturn(self, ):
1605
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1606
    if mtype == TMessageType.EXCEPTION:
1607
      x = TApplicationException()
1608
      x.read(self._iprot)
1609
      self._iprot.readMessageEnd()
1610
      raise x
1611
    result = scanForOursExternalSaleReturn_result()
1612
    result.read(self._iprot)
1613
    self._iprot.readMessageEnd()
7410 amar.kumar 1614
    if result.ex is not None:
1615
      raise result.ex
6762 amar.kumar 1616
    return
1617
 
6880 amar.kumar 1618
  def getMovementNonSerializedInventoryByScans(self, startDate, endDate):
1619
    """
10407 amar.kumar 1620
    This returns movement for each non serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)
1621
 
6880 amar.kumar 1622
    Parameters:
1623
     - startDate
1624
     - endDate
1625
    """
1626
    self.send_getMovementNonSerializedInventoryByScans(startDate, endDate)
1627
    return self.recv_getMovementNonSerializedInventoryByScans()
6762 amar.kumar 1628
 
6880 amar.kumar 1629
  def send_getMovementNonSerializedInventoryByScans(self, startDate, endDate):
1630
    self._oprot.writeMessageBegin('getMovementNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1631
    args = getMovementNonSerializedInventoryByScans_args()
1632
    args.startDate = startDate
1633
    args.endDate = endDate
1634
    args.write(self._oprot)
1635
    self._oprot.writeMessageEnd()
1636
    self._oprot.trans.flush()
1637
 
1638
  def recv_getMovementNonSerializedInventoryByScans(self, ):
1639
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1640
    if mtype == TMessageType.EXCEPTION:
1641
      x = TApplicationException()
1642
      x.read(self._iprot)
1643
      self._iprot.readMessageEnd()
1644
      raise x
1645
    result = getMovementNonSerializedInventoryByScans_result()
1646
    result.read(self._iprot)
1647
    self._iprot.readMessageEnd()
1648
    if result.success is not None:
1649
      return result.success
1650
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMovementNonSerializedInventoryByScans failed: unknown result");
1651
 
1652
  def getMovementSerializedInventoryByScans(self, startDate, endDate):
1653
    """
10407 amar.kumar 1654
    This returns movement for each serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)
1655
 
6880 amar.kumar 1656
    Parameters:
1657
     - startDate
1658
     - endDate
1659
    """
1660
    self.send_getMovementSerializedInventoryByScans(startDate, endDate)
1661
    return self.recv_getMovementSerializedInventoryByScans()
1662
 
1663
  def send_getMovementSerializedInventoryByScans(self, startDate, endDate):
1664
    self._oprot.writeMessageBegin('getMovementSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1665
    args = getMovementSerializedInventoryByScans_args()
1666
    args.startDate = startDate
1667
    args.endDate = endDate
1668
    args.write(self._oprot)
1669
    self._oprot.writeMessageEnd()
1670
    self._oprot.trans.flush()
1671
 
1672
  def recv_getMovementSerializedInventoryByScans(self, ):
1673
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1674
    if mtype == TMessageType.EXCEPTION:
1675
      x = TApplicationException()
1676
      x.read(self._iprot)
1677
      self._iprot.readMessageEnd()
1678
      raise x
1679
    result = getMovementSerializedInventoryByScans_result()
1680
    result.read(self._iprot)
1681
    self._iprot.readMessageEnd()
1682
    if result.success is not None:
1683
      return result.success
1684
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMovementSerializedInventoryByScans failed: unknown result");
1685
 
7216 amar.kumar 1686
  def getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):
1687
    """
10407 amar.kumar 1688
    This returns movement for each serialized item in the specified window.(Doesn't include Amazon w/h)
1689
 
7216 amar.kumar 1690
    Parameters:
1691
     - startDate
1692
     - endDate
1693
    """
1694
    self.send_getCompleteMovementSerializedInventoryByScans(startDate, endDate)
1695
    return self.recv_getCompleteMovementSerializedInventoryByScans()
1696
 
1697
  def send_getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):
1698
    self._oprot.writeMessageBegin('getCompleteMovementSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1699
    args = getCompleteMovementSerializedInventoryByScans_args()
1700
    args.startDate = startDate
1701
    args.endDate = endDate
1702
    args.write(self._oprot)
1703
    self._oprot.writeMessageEnd()
1704
    self._oprot.trans.flush()
1705
 
1706
  def recv_getCompleteMovementSerializedInventoryByScans(self, ):
1707
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1708
    if mtype == TMessageType.EXCEPTION:
1709
      x = TApplicationException()
1710
      x.read(self._iprot)
1711
      self._iprot.readMessageEnd()
1712
      raise x
1713
    result = getCompleteMovementSerializedInventoryByScans_result()
1714
    result.read(self._iprot)
1715
    self._iprot.readMessageEnd()
1716
    if result.success is not None:
1717
      return result.success
1718
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementSerializedInventoryByScans failed: unknown result");
1719
 
1720
  def getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):
1721
    """
10407 amar.kumar 1722
    This returns movement for each non serialized item in the specified window.(Doesn't include Amazon w/h)
1723
 
7216 amar.kumar 1724
    Parameters:
1725
     - startDate
1726
     - endDate
1727
    """
1728
    self.send_getCompleteMovementNonSerializedInventoryByScans(startDate, endDate)
1729
    return self.recv_getCompleteMovementNonSerializedInventoryByScans()
1730
 
1731
  def send_getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):
1732
    self._oprot.writeMessageBegin('getCompleteMovementNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1733
    args = getCompleteMovementNonSerializedInventoryByScans_args()
1734
    args.startDate = startDate
1735
    args.endDate = endDate
1736
    args.write(self._oprot)
1737
    self._oprot.writeMessageEnd()
1738
    self._oprot.trans.flush()
1739
 
1740
  def recv_getCompleteMovementNonSerializedInventoryByScans(self, ):
1741
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1742
    if mtype == TMessageType.EXCEPTION:
1743
      x = TApplicationException()
1744
      x.read(self._iprot)
1745
      self._iprot.readMessageEnd()
1746
      raise x
1747
    result = getCompleteMovementNonSerializedInventoryByScans_result()
1748
    result.read(self._iprot)
1749
    self._iprot.readMessageEnd()
1750
    if result.success is not None:
1751
      return result.success
1752
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementNonSerializedInventoryByScans failed: unknown result");
1753
 
7190 amar.kumar 1754
  def scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):
1755
    """
1756
    Parameters:
1757
     - orderId
1758
     - freebieItemId
1759
     - freebieWarehouseId
1760
     - scanType
1761
    """
1762
    self.send_scanfreebie(orderId, freebieItemId, freebieWarehouseId, scanType)
1763
    return self.recv_scanfreebie()
6880 amar.kumar 1764
 
7190 amar.kumar 1765
  def send_scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):
1766
    self._oprot.writeMessageBegin('scanfreebie', TMessageType.CALL, self._seqid)
1767
    args = scanfreebie_args()
1768
    args.orderId = orderId
1769
    args.freebieItemId = freebieItemId
1770
    args.freebieWarehouseId = freebieWarehouseId
1771
    args.scanType = scanType
1772
    args.write(self._oprot)
1773
    self._oprot.writeMessageEnd()
1774
    self._oprot.trans.flush()
1775
 
1776
  def recv_scanfreebie(self, ):
1777
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1778
    if mtype == TMessageType.EXCEPTION:
1779
      x = TApplicationException()
1780
      x.read(self._iprot)
1781
      self._iprot.readMessageEnd()
1782
      raise x
1783
    result = scanfreebie_result()
1784
    result.read(self._iprot)
1785
    self._iprot.readMessageEnd()
1786
    if result.success is not None:
1787
      return result.success
1788
    if result.wex is not None:
1789
      raise result.wex
1790
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanfreebie failed: unknown result");
1791
 
7199 amar.kumar 1792
  def reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):
1793
    """
1794
    Parameters:
1795
     - oldOrderId
1796
     - newOrderId
1797
     - freebieItemId
1798
     - scanType
1799
    """
1800
    self.send_reshipfreebie(oldOrderId, newOrderId, freebieItemId, scanType)
1801
    self.recv_reshipfreebie()
7190 amar.kumar 1802
 
7199 amar.kumar 1803
  def send_reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):
1804
    self._oprot.writeMessageBegin('reshipfreebie', TMessageType.CALL, self._seqid)
1805
    args = reshipfreebie_args()
1806
    args.oldOrderId = oldOrderId
1807
    args.newOrderId = newOrderId
1808
    args.freebieItemId = freebieItemId
1809
    args.scanType = scanType
1810
    args.write(self._oprot)
1811
    self._oprot.writeMessageEnd()
1812
    self._oprot.trans.flush()
1813
 
1814
  def recv_reshipfreebie(self, ):
1815
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1816
    if mtype == TMessageType.EXCEPTION:
1817
      x = TApplicationException()
1818
      x.read(self._iprot)
1819
      self._iprot.readMessageEnd()
1820
      raise x
1821
    result = reshipfreebie_result()
1822
    result.read(self._iprot)
1823
    self._iprot.readMessageEnd()
1824
    if result.wex is not None:
1825
      raise result.wex
1826
    return
1827
 
7410 amar.kumar 1828
  def isItemTransferAllowed(self, warehouseId, transferWarehouseId):
1829
    """
1830
    Parameters:
1831
     - warehouseId
1832
     - transferWarehouseId
1833
    """
1834
    self.send_isItemTransferAllowed(warehouseId, transferWarehouseId)
1835
    return self.recv_isItemTransferAllowed()
7199 amar.kumar 1836
 
7410 amar.kumar 1837
  def send_isItemTransferAllowed(self, warehouseId, transferWarehouseId):
1838
    self._oprot.writeMessageBegin('isItemTransferAllowed', TMessageType.CALL, self._seqid)
1839
    args = isItemTransferAllowed_args()
1840
    args.warehouseId = warehouseId
1841
    args.transferWarehouseId = transferWarehouseId
1842
    args.write(self._oprot)
1843
    self._oprot.writeMessageEnd()
1844
    self._oprot.trans.flush()
1845
 
1846
  def recv_isItemTransferAllowed(self, ):
1847
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1848
    if mtype == TMessageType.EXCEPTION:
1849
      x = TApplicationException()
1850
      x.read(self._iprot)
1851
      self._iprot.readMessageEnd()
1852
      raise x
1853
    result = isItemTransferAllowed_result()
1854
    result.read(self._iprot)
1855
    self._iprot.readMessageEnd()
1856
    if result.success is not None:
1857
      return result.success
1858
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isItemTransferAllowed failed: unknown result");
1859
 
1860
  def createTransferLot(self, originWarehouseId, destWarehouseId):
1861
    """
1862
    Parameters:
1863
     - originWarehouseId
1864
     - destWarehouseId
1865
    """
1866
    self.send_createTransferLot(originWarehouseId, destWarehouseId)
1867
    return self.recv_createTransferLot()
1868
 
1869
  def send_createTransferLot(self, originWarehouseId, destWarehouseId):
1870
    self._oprot.writeMessageBegin('createTransferLot', TMessageType.CALL, self._seqid)
1871
    args = createTransferLot_args()
1872
    args.originWarehouseId = originWarehouseId
1873
    args.destWarehouseId = destWarehouseId
1874
    args.write(self._oprot)
1875
    self._oprot.writeMessageEnd()
1876
    self._oprot.trans.flush()
1877
 
1878
  def recv_createTransferLot(self, ):
1879
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1880
    if mtype == TMessageType.EXCEPTION:
1881
      x = TApplicationException()
1882
      x.read(self._iprot)
1883
      self._iprot.readMessageEnd()
1884
      raise x
1885
    result = createTransferLot_result()
1886
    result.read(self._iprot)
1887
    self._iprot.readMessageEnd()
1888
    if result.success is not None:
1889
      return result.success
1890
    if result.wex is not None:
1891
      raise result.wex
1892
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createTransferLot failed: unknown result");
1893
 
1894
  def getTransferLot(self, transferLotId):
1895
    """
1896
    Parameters:
1897
     - transferLotId
1898
    """
1899
    self.send_getTransferLot(transferLotId)
1900
    return self.recv_getTransferLot()
1901
 
1902
  def send_getTransferLot(self, transferLotId):
1903
    self._oprot.writeMessageBegin('getTransferLot', TMessageType.CALL, self._seqid)
1904
    args = getTransferLot_args()
1905
    args.transferLotId = transferLotId
1906
    args.write(self._oprot)
1907
    self._oprot.writeMessageEnd()
1908
    self._oprot.trans.flush()
1909
 
1910
  def recv_getTransferLot(self, ):
1911
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1912
    if mtype == TMessageType.EXCEPTION:
1913
      x = TApplicationException()
1914
      x.read(self._iprot)
1915
      self._iprot.readMessageEnd()
1916
      raise x
1917
    result = getTransferLot_result()
1918
    result.read(self._iprot)
1919
    self._iprot.readMessageEnd()
1920
    if result.success is not None:
1921
      return result.success
1922
    if result.wex is not None:
1923
      raise result.wex
1924
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLot failed: unknown result");
1925
 
1926
  def markTransferLotAsReceived(self, id, remoteTransferRefNumber):
1927
    """
1928
    Parameters:
1929
     - id
1930
     - remoteTransferRefNumber
1931
    """
1932
    self.send_markTransferLotAsReceived(id, remoteTransferRefNumber)
1933
    self.recv_markTransferLotAsReceived()
1934
 
1935
  def send_markTransferLotAsReceived(self, id, remoteTransferRefNumber):
1936
    self._oprot.writeMessageBegin('markTransferLotAsReceived', TMessageType.CALL, self._seqid)
1937
    args = markTransferLotAsReceived_args()
1938
    args.id = id
1939
    args.remoteTransferRefNumber = remoteTransferRefNumber
1940
    args.write(self._oprot)
1941
    self._oprot.writeMessageEnd()
1942
    self._oprot.trans.flush()
1943
 
1944
  def recv_markTransferLotAsReceived(self, ):
1945
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1946
    if mtype == TMessageType.EXCEPTION:
1947
      x = TApplicationException()
1948
      x.read(self._iprot)
1949
      self._iprot.readMessageEnd()
1950
      raise x
1951
    result = markTransferLotAsReceived_result()
1952
    result.read(self._iprot)
1953
    self._iprot.readMessageEnd()
1954
    if result.wex is not None:
1955
      raise result.wex
1956
    return
1957
 
1958
  def getTransferLotsByDate(self, fromDate, toDate):
1959
    """
1960
    Parameters:
1961
     - fromDate
1962
     - toDate
1963
    """
1964
    self.send_getTransferLotsByDate(fromDate, toDate)
1965
    return self.recv_getTransferLotsByDate()
1966
 
1967
  def send_getTransferLotsByDate(self, fromDate, toDate):
1968
    self._oprot.writeMessageBegin('getTransferLotsByDate', TMessageType.CALL, self._seqid)
1969
    args = getTransferLotsByDate_args()
1970
    args.fromDate = fromDate
1971
    args.toDate = toDate
1972
    args.write(self._oprot)
1973
    self._oprot.writeMessageEnd()
1974
    self._oprot.trans.flush()
1975
 
1976
  def recv_getTransferLotsByDate(self, ):
1977
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1978
    if mtype == TMessageType.EXCEPTION:
1979
      x = TApplicationException()
1980
      x.read(self._iprot)
1981
      self._iprot.readMessageEnd()
1982
      raise x
1983
    result = getTransferLotsByDate_result()
1984
    result.read(self._iprot)
1985
    self._iprot.readMessageEnd()
1986
    if result.success is not None:
1987
      return result.success
1988
    if result.wex is not None:
1989
      raise result.wex
1990
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLotsByDate failed: unknown result");
1991
 
1992
  def getAllowedDestinationWarehousesForTransfer(self, warehouseId):
1993
    """
1994
    Parameters:
1995
     - warehouseId
1996
    """
1997
    self.send_getAllowedDestinationWarehousesForTransfer(warehouseId)
1998
    return self.recv_getAllowedDestinationWarehousesForTransfer()
1999
 
2000
  def send_getAllowedDestinationWarehousesForTransfer(self, warehouseId):
2001
    self._oprot.writeMessageBegin('getAllowedDestinationWarehousesForTransfer', TMessageType.CALL, self._seqid)
2002
    args = getAllowedDestinationWarehousesForTransfer_args()
2003
    args.warehouseId = warehouseId
2004
    args.write(self._oprot)
2005
    self._oprot.writeMessageEnd()
2006
    self._oprot.trans.flush()
2007
 
2008
  def recv_getAllowedDestinationWarehousesForTransfer(self, ):
2009
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2010
    if mtype == TMessageType.EXCEPTION:
2011
      x = TApplicationException()
2012
      x.read(self._iprot)
2013
      self._iprot.readMessageEnd()
2014
      raise x
2015
    result = getAllowedDestinationWarehousesForTransfer_result()
2016
    result.read(self._iprot)
2017
    self._iprot.readMessageEnd()
2018
    if result.success is not None:
2019
      return result.success
2020
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllowedDestinationWarehousesForTransfer failed: unknown result");
2021
 
2022
  def getItemsInTransferLot(self, transferLotId):
2023
    """
2024
    Parameters:
2025
     - transferLotId
2026
    """
2027
    self.send_getItemsInTransferLot(transferLotId)
2028
    return self.recv_getItemsInTransferLot()
2029
 
2030
  def send_getItemsInTransferLot(self, transferLotId):
2031
    self._oprot.writeMessageBegin('getItemsInTransferLot', TMessageType.CALL, self._seqid)
2032
    args = getItemsInTransferLot_args()
2033
    args.transferLotId = transferLotId
2034
    args.write(self._oprot)
2035
    self._oprot.writeMessageEnd()
2036
    self._oprot.trans.flush()
2037
 
2038
  def recv_getItemsInTransferLot(self, ):
2039
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2040
    if mtype == TMessageType.EXCEPTION:
2041
      x = TApplicationException()
2042
      x.read(self._iprot)
2043
      self._iprot.readMessageEnd()
2044
      raise x
2045
    result = getItemsInTransferLot_result()
2046
    result.read(self._iprot)
2047
    self._iprot.readMessageEnd()
2048
    if result.success is not None:
2049
      return result.success
2050
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsInTransferLot failed: unknown result");
2051
 
2052
  def markItemsAsReceivedForTransferLot(self, id):
2053
    """
2054
    Parameters:
2055
     - id
2056
    """
2057
    self.send_markItemsAsReceivedForTransferLot(id)
2058
    self.recv_markItemsAsReceivedForTransferLot()
2059
 
2060
  def send_markItemsAsReceivedForTransferLot(self, id):
2061
    self._oprot.writeMessageBegin('markItemsAsReceivedForTransferLot', TMessageType.CALL, self._seqid)
2062
    args = markItemsAsReceivedForTransferLot_args()
2063
    args.id = id
2064
    args.write(self._oprot)
2065
    self._oprot.writeMessageEnd()
2066
    self._oprot.trans.flush()
2067
 
2068
  def recv_markItemsAsReceivedForTransferLot(self, ):
2069
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2070
    if mtype == TMessageType.EXCEPTION:
2071
      x = TApplicationException()
2072
      x.read(self._iprot)
2073
      self._iprot.readMessageEnd()
2074
      raise x
2075
    result = markItemsAsReceivedForTransferLot_result()
2076
    result.read(self._iprot)
2077
    self._iprot.readMessageEnd()
2078
    if result.wex is not None:
2079
      raise result.wex
2080
    return
2081
 
2082
  def updateTransferLotAfterItemReceive(self, id):
2083
    """
2084
    Parameters:
2085
     - id
2086
    """
2087
    self.send_updateTransferLotAfterItemReceive(id)
2088
    return self.recv_updateTransferLotAfterItemReceive()
2089
 
2090
  def send_updateTransferLotAfterItemReceive(self, id):
2091
    self._oprot.writeMessageBegin('updateTransferLotAfterItemReceive', TMessageType.CALL, self._seqid)
2092
    args = updateTransferLotAfterItemReceive_args()
2093
    args.id = id
2094
    args.write(self._oprot)
2095
    self._oprot.writeMessageEnd()
2096
    self._oprot.trans.flush()
2097
 
2098
  def recv_updateTransferLotAfterItemReceive(self, ):
2099
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2100
    if mtype == TMessageType.EXCEPTION:
2101
      x = TApplicationException()
2102
      x.read(self._iprot)
2103
      self._iprot.readMessageEnd()
2104
      raise x
2105
    result = updateTransferLotAfterItemReceive_result()
2106
    result.read(self._iprot)
2107
    self._iprot.readMessageEnd()
2108
    if result.success is not None:
2109
      return result.success
2110
    if result.wex is not None:
2111
      raise result.wex
2112
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTransferLotAfterItemReceive failed: unknown result");
2113
 
7459 amar.kumar 2114
  def scanForTransferOut(self, inventoryItems, type, transferLotId):
7410 amar.kumar 2115
    """
2116
    Parameters:
2117
     - inventoryItems
2118
     - type
2119
     - transferLotId
2120
    """
7459 amar.kumar 2121
    self.send_scanForTransferOut(inventoryItems, type, transferLotId)
2122
    self.recv_scanForTransferOut()
7410 amar.kumar 2123
 
7459 amar.kumar 2124
  def send_scanForTransferOut(self, inventoryItems, type, transferLotId):
2125
    self._oprot.writeMessageBegin('scanForTransferOut', TMessageType.CALL, self._seqid)
2126
    args = scanForTransferOut_args()
7410 amar.kumar 2127
    args.inventoryItems = inventoryItems
2128
    args.type = type
2129
    args.transferLotId = transferLotId
2130
    args.write(self._oprot)
2131
    self._oprot.writeMessageEnd()
2132
    self._oprot.trans.flush()
2133
 
7459 amar.kumar 2134
  def recv_scanForTransferOut(self, ):
7410 amar.kumar 2135
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2136
    if mtype == TMessageType.EXCEPTION:
2137
      x = TApplicationException()
2138
      x.read(self._iprot)
2139
      self._iprot.readMessageEnd()
2140
      raise x
7459 amar.kumar 2141
    result = scanForTransferOut_result()
7410 amar.kumar 2142
    result.read(self._iprot)
2143
    self._iprot.readMessageEnd()
2144
    if result.wex is not None:
2145
      raise result.wex
2146
    return
2147
 
7459 amar.kumar 2148
  def scanForTransferIn(self, inventoryItems, type, transferLotId):
2149
    """
2150
    Parameters:
2151
     - inventoryItems
2152
     - type
2153
     - transferLotId
2154
    """
2155
    self.send_scanForTransferIn(inventoryItems, type, transferLotId)
2156
    self.recv_scanForTransferIn()
7410 amar.kumar 2157
 
7459 amar.kumar 2158
  def send_scanForTransferIn(self, inventoryItems, type, transferLotId):
2159
    self._oprot.writeMessageBegin('scanForTransferIn', TMessageType.CALL, self._seqid)
2160
    args = scanForTransferIn_args()
2161
    args.inventoryItems = inventoryItems
2162
    args.type = type
2163
    args.transferLotId = transferLotId
2164
    args.write(self._oprot)
2165
    self._oprot.writeMessageEnd()
2166
    self._oprot.trans.flush()
2167
 
2168
  def recv_scanForTransferIn(self, ):
2169
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2170
    if mtype == TMessageType.EXCEPTION:
2171
      x = TApplicationException()
2172
      x.read(self._iprot)
2173
      self._iprot.readMessageEnd()
2174
      raise x
2175
    result = scanForTransferIn_result()
2176
    result.read(self._iprot)
2177
    self._iprot.readMessageEnd()
2178
    if result.wex is not None:
2179
      raise result.wex
2180
    return
2181
 
2182
  def scanForOursThirdPartyReceive(self, inventoryItems, id):
2183
    """
2184
    Parameters:
2185
     - inventoryItems
2186
     - id
2187
    """
2188
    self.send_scanForOursThirdPartyReceive(inventoryItems, id)
2189
    self.recv_scanForOursThirdPartyReceive()
2190
 
2191
  def send_scanForOursThirdPartyReceive(self, inventoryItems, id):
2192
    self._oprot.writeMessageBegin('scanForOursThirdPartyReceive', TMessageType.CALL, self._seqid)
2193
    args = scanForOursThirdPartyReceive_args()
2194
    args.inventoryItems = inventoryItems
2195
    args.id = id
2196
    args.write(self._oprot)
2197
    self._oprot.writeMessageEnd()
2198
    self._oprot.trans.flush()
2199
 
2200
  def recv_scanForOursThirdPartyReceive(self, ):
2201
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2202
    if mtype == TMessageType.EXCEPTION:
2203
      x = TApplicationException()
2204
      x.read(self._iprot)
2205
      self._iprot.readMessageEnd()
2206
      raise x
2207
    result = scanForOursThirdPartyReceive_result()
2208
    result.read(self._iprot)
2209
    self._iprot.readMessageEnd()
2210
    if result.wex is not None:
2211
      raise result.wex
2212
    return
2213
 
7574 amar.kumar 2214
  def getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
2215
    """
2216
    Parameters:
2217
     - itemId
2218
     - physicalWarehouseId
2219
    """
2220
    self.send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(itemId, physicalWarehouseId)
2221
    return self.recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse()
7459 amar.kumar 2222
 
7574 amar.kumar 2223
  def send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
2224
    self._oprot.writeMessageBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse', TMessageType.CALL, self._seqid)
2225
    args = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args()
2226
    args.itemId = itemId
2227
    args.physicalWarehouseId = physicalWarehouseId
2228
    args.write(self._oprot)
2229
    self._oprot.writeMessageEnd()
2230
    self._oprot.trans.flush()
2231
 
2232
  def recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, ):
2233
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2234
    if mtype == TMessageType.EXCEPTION:
2235
      x = TApplicationException()
2236
      x.read(self._iprot)
2237
      self._iprot.readMessageEnd()
2238
      raise x
2239
    result = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result()
2240
    result.read(self._iprot)
2241
    self._iprot.readMessageEnd()
2242
    if result.success is not None:
2243
      return result.success
2244
    if result.wex is not None:
2245
      raise result.wex
2246
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse failed: unknown result");
2247
 
7672 rajveer 2248
  def getInTransitInventory(self, originWarehouseId):
2249
    """
2250
    Parameters:
2251
     - originWarehouseId
2252
    """
2253
    self.send_getInTransitInventory(originWarehouseId)
2254
    return self.recv_getInTransitInventory()
7574 amar.kumar 2255
 
7672 rajveer 2256
  def send_getInTransitInventory(self, originWarehouseId):
2257
    self._oprot.writeMessageBegin('getInTransitInventory', TMessageType.CALL, self._seqid)
2258
    args = getInTransitInventory_args()
2259
    args.originWarehouseId = originWarehouseId
2260
    args.write(self._oprot)
2261
    self._oprot.writeMessageEnd()
2262
    self._oprot.trans.flush()
2263
 
2264
  def recv_getInTransitInventory(self, ):
2265
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2266
    if mtype == TMessageType.EXCEPTION:
2267
      x = TApplicationException()
2268
      x.read(self._iprot)
2269
      self._iprot.readMessageEnd()
2270
      raise x
2271
    result = getInTransitInventory_result()
2272
    result.read(self._iprot)
2273
    self._iprot.readMessageEnd()
2274
    if result.success is not None:
2275
      return result.success
2276
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInTransitInventory failed: unknown result");
2277
 
7968 amar.kumar 2278
  def isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
2279
    """
2280
    Parameters:
2281
     - itemId
2282
     - serialNumber
2283
     - warehouseId
2284
    """
2285
    self.send_isItemAvailableForSale(itemId, serialNumber, warehouseId)
2286
    return self.recv_isItemAvailableForSale()
7672 rajveer 2287
 
7968 amar.kumar 2288
  def send_isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
2289
    self._oprot.writeMessageBegin('isItemAvailableForSale', TMessageType.CALL, self._seqid)
2290
    args = isItemAvailableForSale_args()
2291
    args.itemId = itemId
2292
    args.serialNumber = serialNumber
2293
    args.warehouseId = warehouseId
2294
    args.write(self._oprot)
2295
    self._oprot.writeMessageEnd()
2296
    self._oprot.trans.flush()
2297
 
2298
  def recv_isItemAvailableForSale(self, ):
2299
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2300
    if mtype == TMessageType.EXCEPTION:
2301
      x = TApplicationException()
2302
      x.read(self._iprot)
2303
      self._iprot.readMessageEnd()
2304
      raise x
2305
    result = isItemAvailableForSale_result()
2306
    result.read(self._iprot)
2307
    self._iprot.readMessageEnd()
2308
    if result.success is not None:
2309
      return result.success
2310
    if result.wex is not None:
2311
      raise result.wex
2312
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isItemAvailableForSale failed: unknown result");
2313
 
2314
  def getHistoricBadInventoryByScans(self, date):
2315
    """
2316
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
2317
 
2318
    Parameters:
2319
     - date
2320
    """
2321
    self.send_getHistoricBadInventoryByScans(date)
2322
    return self.recv_getHistoricBadInventoryByScans()
2323
 
2324
  def send_getHistoricBadInventoryByScans(self, date):
2325
    self._oprot.writeMessageBegin('getHistoricBadInventoryByScans', TMessageType.CALL, self._seqid)
2326
    args = getHistoricBadInventoryByScans_args()
2327
    args.date = date
2328
    args.write(self._oprot)
2329
    self._oprot.writeMessageEnd()
2330
    self._oprot.trans.flush()
2331
 
2332
  def recv_getHistoricBadInventoryByScans(self, ):
2333
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2334
    if mtype == TMessageType.EXCEPTION:
2335
      x = TApplicationException()
2336
      x.read(self._iprot)
2337
      self._iprot.readMessageEnd()
2338
      raise x
2339
    result = getHistoricBadInventoryByScans_result()
2340
    result.read(self._iprot)
2341
    self._iprot.readMessageEnd()
2342
    if result.success is not None:
2343
      return result.success
2344
    if result.wex is not None:
2345
      raise result.wex
2346
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricBadInventoryByScans failed: unknown result");
2347
 
8717 amar.kumar 2348
  def scanForBadSale(self, serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
8565 amar.kumar 2349
    """
2350
    Parameters:
8717 amar.kumar 2351
     - serialNumber
2352
     - itemNumber
2353
     - itemId
8565 amar.kumar 2354
     - orderId
8717 amar.kumar 2355
     - fulfilmentWarehouseId
8565 amar.kumar 2356
     - quantity
2357
     - billingWarehouseId
2358
    """
8717 amar.kumar 2359
    self.send_scanForBadSale(serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId)
2360
    return self.recv_scanForBadSale()
7968 amar.kumar 2361
 
8717 amar.kumar 2362
  def send_scanForBadSale(self, serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
8565 amar.kumar 2363
    self._oprot.writeMessageBegin('scanForBadSale', TMessageType.CALL, self._seqid)
2364
    args = scanForBadSale_args()
8717 amar.kumar 2365
    args.serialNumber = serialNumber
2366
    args.itemNumber = itemNumber
2367
    args.itemId = itemId
8565 amar.kumar 2368
    args.orderId = orderId
8717 amar.kumar 2369
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 2370
    args.quantity = quantity
2371
    args.billingWarehouseId = billingWarehouseId
2372
    args.write(self._oprot)
2373
    self._oprot.writeMessageEnd()
2374
    self._oprot.trans.flush()
2375
 
2376
  def recv_scanForBadSale(self, ):
2377
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2378
    if mtype == TMessageType.EXCEPTION:
2379
      x = TApplicationException()
2380
      x.read(self._iprot)
2381
      self._iprot.readMessageEnd()
2382
      raise x
2383
    result = scanForBadSale_result()
2384
    result.read(self._iprot)
2385
    self._iprot.readMessageEnd()
8717 amar.kumar 2386
    if result.success is not None:
2387
      return result.success
2388
    if result.wex is not None:
2389
      raise result.wex
2390
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForBadSale failed: unknown result");
8565 amar.kumar 2391
 
10120 manish.sha 2392
  def getTransferLotItemsForMarkReceive(self, transferLotId, scanType):
2393
    """
2394
    Parameters:
2395
     - transferLotId
2396
     - scanType
2397
    """
2398
    self.send_getTransferLotItemsForMarkReceive(transferLotId, scanType)
2399
    return self.recv_getTransferLotItemsForMarkReceive()
8565 amar.kumar 2400
 
10120 manish.sha 2401
  def send_getTransferLotItemsForMarkReceive(self, transferLotId, scanType):
2402
    self._oprot.writeMessageBegin('getTransferLotItemsForMarkReceive', TMessageType.CALL, self._seqid)
2403
    args = getTransferLotItemsForMarkReceive_args()
2404
    args.transferLotId = transferLotId
2405
    args.scanType = scanType
2406
    args.write(self._oprot)
2407
    self._oprot.writeMessageEnd()
2408
    self._oprot.trans.flush()
2409
 
2410
  def recv_getTransferLotItemsForMarkReceive(self, ):
2411
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2412
    if mtype == TMessageType.EXCEPTION:
2413
      x = TApplicationException()
2414
      x.read(self._iprot)
2415
      self._iprot.readMessageEnd()
2416
      raise x
2417
    result = getTransferLotItemsForMarkReceive_result()
2418
    result.read(self._iprot)
2419
    self._iprot.readMessageEnd()
2420
    if result.success is not None:
2421
      return result.success
2422
    if result.wex is not None:
2423
      raise result.wex
2424
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLotItemsForMarkReceive failed: unknown result");
2425
 
2426
  def markItemsAsReceivedForTransferLotPartial(self, inventoryItems, transferLotId):
2427
    """
2428
    Parameters:
2429
     - inventoryItems
2430
     - transferLotId
2431
    """
2432
    self.send_markItemsAsReceivedForTransferLotPartial(inventoryItems, transferLotId)
2433
    self.recv_markItemsAsReceivedForTransferLotPartial()
2434
 
2435
  def send_markItemsAsReceivedForTransferLotPartial(self, inventoryItems, transferLotId):
2436
    self._oprot.writeMessageBegin('markItemsAsReceivedForTransferLotPartial', TMessageType.CALL, self._seqid)
2437
    args = markItemsAsReceivedForTransferLotPartial_args()
2438
    args.inventoryItems = inventoryItems
2439
    args.transferLotId = transferLotId
2440
    args.write(self._oprot)
2441
    self._oprot.writeMessageEnd()
2442
    self._oprot.trans.flush()
2443
 
2444
  def recv_markItemsAsReceivedForTransferLotPartial(self, ):
2445
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2446
    if mtype == TMessageType.EXCEPTION:
2447
      x = TApplicationException()
2448
      x.read(self._iprot)
2449
      self._iprot.readMessageEnd()
2450
      raise x
2451
    result = markItemsAsReceivedForTransferLotPartial_result()
2452
    result.read(self._iprot)
2453
    self._iprot.readMessageEnd()
2454
    if result.wex is not None:
2455
      raise result.wex
2456
    return
2457
 
2458
  def markTransferLotAsReceivedPartial(self, id, remoteTransferRefNumber):
2459
    """
2460
    Parameters:
2461
     - id
2462
     - remoteTransferRefNumber
2463
    """
2464
    self.send_markTransferLotAsReceivedPartial(id, remoteTransferRefNumber)
2465
    self.recv_markTransferLotAsReceivedPartial()
2466
 
2467
  def send_markTransferLotAsReceivedPartial(self, id, remoteTransferRefNumber):
2468
    self._oprot.writeMessageBegin('markTransferLotAsReceivedPartial', TMessageType.CALL, self._seqid)
2469
    args = markTransferLotAsReceivedPartial_args()
2470
    args.id = id
2471
    args.remoteTransferRefNumber = remoteTransferRefNumber
2472
    args.write(self._oprot)
2473
    self._oprot.writeMessageEnd()
2474
    self._oprot.trans.flush()
2475
 
2476
  def recv_markTransferLotAsReceivedPartial(self, ):
2477
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2478
    if mtype == TMessageType.EXCEPTION:
2479
      x = TApplicationException()
2480
      x.read(self._iprot)
2481
      self._iprot.readMessageEnd()
2482
      raise x
2483
    result = markTransferLotAsReceivedPartial_result()
2484
    result.read(self._iprot)
2485
    self._iprot.readMessageEnd()
2486
    if result.wex is not None:
2487
      raise result.wex
2488
    return
2489
 
10690 manish.sha 2490
  def getInventoryItemScannedInForPO(self, itemId, purchaseIds):
2491
    """
2492
    Parameters:
2493
     - itemId
2494
     - purchaseIds
2495
    """
2496
    self.send_getInventoryItemScannedInForPO(itemId, purchaseIds)
2497
    return self.recv_getInventoryItemScannedInForPO()
10120 manish.sha 2498
 
10690 manish.sha 2499
  def send_getInventoryItemScannedInForPO(self, itemId, purchaseIds):
2500
    self._oprot.writeMessageBegin('getInventoryItemScannedInForPO', TMessageType.CALL, self._seqid)
2501
    args = getInventoryItemScannedInForPO_args()
2502
    args.itemId = itemId
2503
    args.purchaseIds = purchaseIds
2504
    args.write(self._oprot)
2505
    self._oprot.writeMessageEnd()
2506
    self._oprot.trans.flush()
2507
 
2508
  def recv_getInventoryItemScannedInForPO(self, ):
2509
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2510
    if mtype == TMessageType.EXCEPTION:
2511
      x = TApplicationException()
2512
      x.read(self._iprot)
2513
      self._iprot.readMessageEnd()
2514
      raise x
2515
    result = getInventoryItemScannedInForPO_result()
2516
    result.read(self._iprot)
2517
    self._iprot.readMessageEnd()
2518
    if result.success is not None:
2519
      return result.success
2520
    if result.wex is not None:
2521
      raise result.wex
2522
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemScannedInForPO failed: unknown result");
2523
 
2524
  def getAmazonTransferredSkuDetails(self, itemIds):
2525
    """
2526
    Parameters:
2527
     - itemIds
2528
    """
2529
    self.send_getAmazonTransferredSkuDetails(itemIds)
2530
    return self.recv_getAmazonTransferredSkuDetails()
2531
 
2532
  def send_getAmazonTransferredSkuDetails(self, itemIds):
2533
    self._oprot.writeMessageBegin('getAmazonTransferredSkuDetails', TMessageType.CALL, self._seqid)
2534
    args = getAmazonTransferredSkuDetails_args()
2535
    args.itemIds = itemIds
2536
    args.write(self._oprot)
2537
    self._oprot.writeMessageEnd()
2538
    self._oprot.trans.flush()
2539
 
2540
  def recv_getAmazonTransferredSkuDetails(self, ):
2541
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2542
    if mtype == TMessageType.EXCEPTION:
2543
      x = TApplicationException()
2544
      x.read(self._iprot)
2545
      self._iprot.readMessageEnd()
2546
      raise x
2547
    result = getAmazonTransferredSkuDetails_result()
2548
    result.read(self._iprot)
2549
    self._iprot.readMessageEnd()
2550
    if result.success is not None:
2551
      return result.success
2552
    if result.wex is not None:
2553
      raise result.wex
2554
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonTransferredSkuDetails failed: unknown result");
2555
 
2556
  def getScansforPurchase(self, purchaseId, scanType):
2557
    """
2558
    Parameters:
2559
     - purchaseId
2560
     - scanType
2561
    """
2562
    self.send_getScansforPurchase(purchaseId, scanType)
2563
    return self.recv_getScansforPurchase()
2564
 
2565
  def send_getScansforPurchase(self, purchaseId, scanType):
2566
    self._oprot.writeMessageBegin('getScansforPurchase', TMessageType.CALL, self._seqid)
2567
    args = getScansforPurchase_args()
2568
    args.purchaseId = purchaseId
2569
    args.scanType = scanType
2570
    args.write(self._oprot)
2571
    self._oprot.writeMessageEnd()
2572
    self._oprot.trans.flush()
2573
 
2574
  def recv_getScansforPurchase(self, ):
2575
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2576
    if mtype == TMessageType.EXCEPTION:
2577
      x = TApplicationException()
2578
      x.read(self._iprot)
2579
      self._iprot.readMessageEnd()
2580
      raise x
2581
    result = getScansforPurchase_result()
2582
    result.read(self._iprot)
2583
    self._iprot.readMessageEnd()
2584
    if result.success is not None:
2585
      return result.success
2586
    if result.wex is not None:
2587
      raise result.wex
2588
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScansforPurchase failed: unknown result");
2589
 
10864 manish.sha 2590
  def getCurrentBadQuantityForItem(self, itemId, currentWarehouseId, physicalWarehouseId):
2591
    """
2592
    Parameters:
2593
     - itemId
2594
     - currentWarehouseId
2595
     - physicalWarehouseId
2596
    """
2597
    self.send_getCurrentBadQuantityForItem(itemId, currentWarehouseId, physicalWarehouseId)
2598
    return self.recv_getCurrentBadQuantityForItem()
10690 manish.sha 2599
 
10864 manish.sha 2600
  def send_getCurrentBadQuantityForItem(self, itemId, currentWarehouseId, physicalWarehouseId):
2601
    self._oprot.writeMessageBegin('getCurrentBadQuantityForItem', TMessageType.CALL, self._seqid)
2602
    args = getCurrentBadQuantityForItem_args()
2603
    args.itemId = itemId
2604
    args.currentWarehouseId = currentWarehouseId
2605
    args.physicalWarehouseId = physicalWarehouseId
2606
    args.write(self._oprot)
2607
    self._oprot.writeMessageEnd()
2608
    self._oprot.trans.flush()
2609
 
2610
  def recv_getCurrentBadQuantityForItem(self, ):
2611
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2612
    if mtype == TMessageType.EXCEPTION:
2613
      x = TApplicationException()
2614
      x.read(self._iprot)
2615
      self._iprot.readMessageEnd()
2616
      raise x
2617
    result = getCurrentBadQuantityForItem_result()
2618
    result.read(self._iprot)
2619
    self._iprot.readMessageEnd()
2620
    if result.success is not None:
2621
      return result.success
2622
    if result.wex is not None:
2623
      raise result.wex
2624
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentBadQuantityForItem failed: unknown result");
2625
 
2626
  def scanForBadPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
2627
    """
2628
    Parameters:
2629
     - saleReturnItems
2630
     - vendorId
2631
     - billingWarehouseId
2632
    """
2633
    self.send_scanForBadPurchaseReturn(saleReturnItems, vendorId, billingWarehouseId)
2634
    return self.recv_scanForBadPurchaseReturn()
2635
 
2636
  def send_scanForBadPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
2637
    self._oprot.writeMessageBegin('scanForBadPurchaseReturn', TMessageType.CALL, self._seqid)
2638
    args = scanForBadPurchaseReturn_args()
2639
    args.saleReturnItems = saleReturnItems
2640
    args.vendorId = vendorId
2641
    args.billingWarehouseId = billingWarehouseId
2642
    args.write(self._oprot)
2643
    self._oprot.writeMessageEnd()
2644
    self._oprot.trans.flush()
2645
 
2646
  def recv_scanForBadPurchaseReturn(self, ):
2647
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2648
    if mtype == TMessageType.EXCEPTION:
2649
      x = TApplicationException()
2650
      x.read(self._iprot)
2651
      self._iprot.readMessageEnd()
2652
      raise x
2653
    result = scanForBadPurchaseReturn_result()
2654
    result.read(self._iprot)
2655
    self._iprot.readMessageEnd()
2656
    if result.success is not None:
2657
      return result.success
2658
    if result.ex is not None:
2659
      raise result.ex
2660
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForBadPurchaseReturn failed: unknown result");
2661
 
11751 manish.sha 2662
  def getItemsInPurchaseReturn(self, purchaseReturnId, type):
10864 manish.sha 2663
    """
2664
    Parameters:
2665
     - purchaseReturnId
11751 manish.sha 2666
     - type
10864 manish.sha 2667
    """
11751 manish.sha 2668
    self.send_getItemsInPurchaseReturn(purchaseReturnId, type)
10864 manish.sha 2669
    return self.recv_getItemsInPurchaseReturn()
2670
 
11751 manish.sha 2671
  def send_getItemsInPurchaseReturn(self, purchaseReturnId, type):
10864 manish.sha 2672
    self._oprot.writeMessageBegin('getItemsInPurchaseReturn', TMessageType.CALL, self._seqid)
2673
    args = getItemsInPurchaseReturn_args()
2674
    args.purchaseReturnId = purchaseReturnId
11751 manish.sha 2675
    args.type = type
10864 manish.sha 2676
    args.write(self._oprot)
2677
    self._oprot.writeMessageEnd()
2678
    self._oprot.trans.flush()
2679
 
2680
  def recv_getItemsInPurchaseReturn(self, ):
2681
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2682
    if mtype == TMessageType.EXCEPTION:
2683
      x = TApplicationException()
2684
      x.read(self._iprot)
2685
      self._iprot.readMessageEnd()
2686
      raise x
2687
    result = getItemsInPurchaseReturn_result()
2688
    result.read(self._iprot)
2689
    self._iprot.readMessageEnd()
2690
    if result.success is not None:
2691
      return result.success
2692
    if result.ex is not None:
2693
      raise result.ex
2694
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsInPurchaseReturn failed: unknown result");
2695
 
10886 manish.sha 2696
  def getScansForInventoryItem(self, inventoryItemId, type):
2697
    """
2698
    Parameters:
2699
     - inventoryItemId
2700
     - type
2701
    """
2702
    self.send_getScansForInventoryItem(inventoryItemId, type)
2703
    return self.recv_getScansForInventoryItem()
10864 manish.sha 2704
 
10886 manish.sha 2705
  def send_getScansForInventoryItem(self, inventoryItemId, type):
2706
    self._oprot.writeMessageBegin('getScansForInventoryItem', TMessageType.CALL, self._seqid)
2707
    args = getScansForInventoryItem_args()
2708
    args.inventoryItemId = inventoryItemId
2709
    args.type = type
2710
    args.write(self._oprot)
2711
    self._oprot.writeMessageEnd()
2712
    self._oprot.trans.flush()
2713
 
2714
  def recv_getScansForInventoryItem(self, ):
2715
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2716
    if mtype == TMessageType.EXCEPTION:
2717
      x = TApplicationException()
2718
      x.read(self._iprot)
2719
      self._iprot.readMessageEnd()
2720
      raise x
2721
    result = getScansForInventoryItem_result()
2722
    result.read(self._iprot)
2723
    self._iprot.readMessageEnd()
2724
    if result.success is not None:
2725
      return result.success
2726
    if result.ex is not None:
2727
      raise result.ex
2728
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScansForInventoryItem failed: unknown result");
2729
 
12531 manish.sha 2730
  def checkGrnImeiStatus(self, imeiNos):
2731
    """
2732
    Parameters:
2733
     - imeiNos
2734
    """
2735
    self.send_checkGrnImeiStatus(imeiNos)
2736
    return self.recv_checkGrnImeiStatus()
10886 manish.sha 2737
 
12531 manish.sha 2738
  def send_checkGrnImeiStatus(self, imeiNos):
2739
    self._oprot.writeMessageBegin('checkGrnImeiStatus', TMessageType.CALL, self._seqid)
2740
    args = checkGrnImeiStatus_args()
2741
    args.imeiNos = imeiNos
2742
    args.write(self._oprot)
2743
    self._oprot.writeMessageEnd()
2744
    self._oprot.trans.flush()
2745
 
2746
  def recv_checkGrnImeiStatus(self, ):
2747
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2748
    if mtype == TMessageType.EXCEPTION:
2749
      x = TApplicationException()
2750
      x.read(self._iprot)
2751
      self._iprot.readMessageEnd()
2752
      raise x
2753
    result = checkGrnImeiStatus_result()
2754
    result.read(self._iprot)
2755
    self._iprot.readMessageEnd()
2756
    if result.success is not None:
2757
      return result.success
2758
    if result.ex is not None:
2759
      raise result.ex
2760
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkGrnImeiStatus failed: unknown result");
2761
 
2762
 
3376 rajveer 2763
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2821 chandransh 2764
  def __init__(self, handler):
3376 rajveer 2765
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
4501 mandeep.dh 2766
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
5361 mandeep.dh 2767
    self._processMap["getNonSeralizedInventoryItem"] = Processor.process_getNonSeralizedInventoryItem
4501 mandeep.dh 2768
    self._processMap["scan"] = Processor.process_scan
10489 amar.kumar 2769
    self._processMap["genericScan"] = Processor.process_genericScan
4501 mandeep.dh 2770
    self._processMap["scanSerializedItemForOrder"] = Processor.process_scanSerializedItemForOrder
2771
    self._processMap["scanForOrder"] = Processor.process_scanForOrder
2772
    self._processMap["createItemNumberMapping"] = Processor.process_createItemNumberMapping
4620 amit.gupta 2773
    self._processMap["getItemNumbers"] = Processor.process_getItemNumbers
5110 mandeep.dh 2774
    self._processMap["getItemIds"] = Processor.process_getItemIds
5185 mandeep.dh 2775
    self._processMap["getInventoryItemsFromLastScanType"] = Processor.process_getInventoryItemsFromLastScanType
2776
    self._processMap["getInventoryItemFromId"] = Processor.process_getInventoryItemFromId
5372 mandeep.dh 2777
    self._processMap["getPurchaseScans"] = Processor.process_getPurchaseScans
7216 amar.kumar 2778
    self._processMap["getPurchaseScansByGrnDate"] = Processor.process_getPurchaseScansByGrnDate
10407 amar.kumar 2779
    self._processMap["getEmptyGrnsByDate"] = Processor.process_getEmptyGrnsByDate
5496 mandeep.dh 2780
    self._processMap["fetchScansPerInvoiceNumber"] = Processor.process_fetchScansPerInvoiceNumber
5620 mandeep.dh 2781
    self._processMap["getInventoryItemFromOrder"] = Processor.process_getInventoryItemFromOrder
5711 mandeep.dh 2782
    self._processMap["getInventoryAge"] = Processor.process_getInventoryAge
6361 rajveer 2783
    self._processMap["getInventoryScansForItem"] = Processor.process_getInventoryScansForItem
2784
    self._processMap["getScanRecordsForSerialNumber"] = Processor.process_getScanRecordsForSerialNumber
6467 amar.kumar 2785
    self._processMap["scanForPurchaseReturn"] = Processor.process_scanForPurchaseReturn
6630 amar.kumar 2786
    self._processMap["scanForLostItem"] = Processor.process_scanForLostItem
2787
    self._processMap["getCurrentSerializedInventoryByScans"] = Processor.process_getCurrentSerializedInventoryByScans
2788
    self._processMap["getCurrentNonSerializedInventoryByScans"] = Processor.process_getCurrentNonSerializedInventoryByScans
6762 amar.kumar 2789
    self._processMap["getHistoricSerializedInventoryByScans"] = Processor.process_getHistoricSerializedInventoryByScans
2790
    self._processMap["getHistoricNonSerializedInventoryByScans"] = Processor.process_getHistoricNonSerializedInventoryByScans
10407 amar.kumar 2791
    self._processMap["getOurHistoricSerializedInventoryByScans"] = Processor.process_getOurHistoricSerializedInventoryByScans
2792
    self._processMap["getOurHistoricNonSerializedInventoryByScans"] = Processor.process_getOurHistoricNonSerializedInventoryByScans
6762 amar.kumar 2793
    self._processMap["scanForOursExternalSale"] = Processor.process_scanForOursExternalSale
2794
    self._processMap["scanForOursExternalSaleReturn"] = Processor.process_scanForOursExternalSaleReturn
6880 amar.kumar 2795
    self._processMap["getMovementNonSerializedInventoryByScans"] = Processor.process_getMovementNonSerializedInventoryByScans
2796
    self._processMap["getMovementSerializedInventoryByScans"] = Processor.process_getMovementSerializedInventoryByScans
7216 amar.kumar 2797
    self._processMap["getCompleteMovementSerializedInventoryByScans"] = Processor.process_getCompleteMovementSerializedInventoryByScans
2798
    self._processMap["getCompleteMovementNonSerializedInventoryByScans"] = Processor.process_getCompleteMovementNonSerializedInventoryByScans
7190 amar.kumar 2799
    self._processMap["scanfreebie"] = Processor.process_scanfreebie
7199 amar.kumar 2800
    self._processMap["reshipfreebie"] = Processor.process_reshipfreebie
7410 amar.kumar 2801
    self._processMap["isItemTransferAllowed"] = Processor.process_isItemTransferAllowed
2802
    self._processMap["createTransferLot"] = Processor.process_createTransferLot
2803
    self._processMap["getTransferLot"] = Processor.process_getTransferLot
2804
    self._processMap["markTransferLotAsReceived"] = Processor.process_markTransferLotAsReceived
2805
    self._processMap["getTransferLotsByDate"] = Processor.process_getTransferLotsByDate
2806
    self._processMap["getAllowedDestinationWarehousesForTransfer"] = Processor.process_getAllowedDestinationWarehousesForTransfer
2807
    self._processMap["getItemsInTransferLot"] = Processor.process_getItemsInTransferLot
2808
    self._processMap["markItemsAsReceivedForTransferLot"] = Processor.process_markItemsAsReceivedForTransferLot
2809
    self._processMap["updateTransferLotAfterItemReceive"] = Processor.process_updateTransferLotAfterItemReceive
7459 amar.kumar 2810
    self._processMap["scanForTransferOut"] = Processor.process_scanForTransferOut
2811
    self._processMap["scanForTransferIn"] = Processor.process_scanForTransferIn
2812
    self._processMap["scanForOursThirdPartyReceive"] = Processor.process_scanForOursThirdPartyReceive
7574 amar.kumar 2813
    self._processMap["getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse"] = Processor.process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse
7672 rajveer 2814
    self._processMap["getInTransitInventory"] = Processor.process_getInTransitInventory
7968 amar.kumar 2815
    self._processMap["isItemAvailableForSale"] = Processor.process_isItemAvailableForSale
2816
    self._processMap["getHistoricBadInventoryByScans"] = Processor.process_getHistoricBadInventoryByScans
8565 amar.kumar 2817
    self._processMap["scanForBadSale"] = Processor.process_scanForBadSale
10120 manish.sha 2818
    self._processMap["getTransferLotItemsForMarkReceive"] = Processor.process_getTransferLotItemsForMarkReceive
2819
    self._processMap["markItemsAsReceivedForTransferLotPartial"] = Processor.process_markItemsAsReceivedForTransferLotPartial
2820
    self._processMap["markTransferLotAsReceivedPartial"] = Processor.process_markTransferLotAsReceivedPartial
10690 manish.sha 2821
    self._processMap["getInventoryItemScannedInForPO"] = Processor.process_getInventoryItemScannedInForPO
2822
    self._processMap["getAmazonTransferredSkuDetails"] = Processor.process_getAmazonTransferredSkuDetails
2823
    self._processMap["getScansforPurchase"] = Processor.process_getScansforPurchase
10864 manish.sha 2824
    self._processMap["getCurrentBadQuantityForItem"] = Processor.process_getCurrentBadQuantityForItem
2825
    self._processMap["scanForBadPurchaseReturn"] = Processor.process_scanForBadPurchaseReturn
2826
    self._processMap["getItemsInPurchaseReturn"] = Processor.process_getItemsInPurchaseReturn
10886 manish.sha 2827
    self._processMap["getScansForInventoryItem"] = Processor.process_getScansForInventoryItem
12531 manish.sha 2828
    self._processMap["checkGrnImeiStatus"] = Processor.process_checkGrnImeiStatus
2821 chandransh 2829
 
2830
  def process(self, iprot, oprot):
2831
    (name, type, seqid) = iprot.readMessageBegin()
2832
    if name not in self._processMap:
2833
      iprot.skip(TType.STRUCT)
2834
      iprot.readMessageEnd()
2835
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2836
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2837
      x.write(oprot)
2838
      oprot.writeMessageEnd()
2839
      oprot.trans.flush()
2840
      return
2841
    else:
2842
      self._processMap[name](self, seqid, iprot, oprot)
2843
    return True
2844
 
4501 mandeep.dh 2845
  def process_getInventoryItem(self, seqid, iprot, oprot):
2846
    args = getInventoryItem_args()
2832 chandransh 2847
    args.read(iprot)
2848
    iprot.readMessageEnd()
4501 mandeep.dh 2849
    result = getInventoryItem_result()
4541 mandeep.dh 2850
    try:
2851
      result.success = self._handler.getInventoryItem(args.serialNumber)
2852
    except WarehouseServiceException, wex:
2853
      result.wex = wex
4501 mandeep.dh 2854
    oprot.writeMessageBegin("getInventoryItem", TMessageType.REPLY, seqid)
2832 chandransh 2855
    result.write(oprot)
2856
    oprot.writeMessageEnd()
2857
    oprot.trans.flush()
2858
 
5361 mandeep.dh 2859
  def process_getNonSeralizedInventoryItem(self, seqid, iprot, oprot):
2860
    args = getNonSeralizedInventoryItem_args()
2821 chandransh 2861
    args.read(iprot)
2862
    iprot.readMessageEnd()
5361 mandeep.dh 2863
    result = getNonSeralizedInventoryItem_result()
2864
    try:
8565 amar.kumar 2865
      result.success = self._handler.getNonSeralizedInventoryItem(args.itemNumber, args.itemId, args.fulfilmentWarehouseId, args.billingWarehouseId)
5361 mandeep.dh 2866
    except WarehouseServiceException, wex:
2867
      result.wex = wex
2868
    oprot.writeMessageBegin("getNonSeralizedInventoryItem", TMessageType.REPLY, seqid)
2821 chandransh 2869
    result.write(oprot)
2870
    oprot.writeMessageEnd()
2871
    oprot.trans.flush()
2872
 
4501 mandeep.dh 2873
  def process_scan(self, seqid, iprot, oprot):
2874
    args = scan_args()
3383 chandransh 2875
    args.read(iprot)
2876
    iprot.readMessageEnd()
4501 mandeep.dh 2877
    result = scan_result()
3383 chandransh 2878
    try:
7410 amar.kumar 2879
      self._handler.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId, args.transferLotId)
3383 chandransh 2880
    except WarehouseServiceException, wex:
2881
      result.wex = wex
4501 mandeep.dh 2882
    oprot.writeMessageBegin("scan", TMessageType.REPLY, seqid)
3383 chandransh 2883
    result.write(oprot)
2884
    oprot.writeMessageEnd()
2885
    oprot.trans.flush()
2886
 
10489 amar.kumar 2887
  def process_genericScan(self, seqid, iprot, oprot):
2888
    args = genericScan_args()
2889
    args.read(iprot)
2890
    iprot.readMessageEnd()
2891
    result = genericScan_result()
2892
    try:
2893
      self._handler.genericScan(args.inventoryItem, args.scan)
2894
    except WarehouseServiceException, wex:
2895
      result.wex = wex
2896
    oprot.writeMessageBegin("genericScan", TMessageType.REPLY, seqid)
2897
    result.write(oprot)
2898
    oprot.writeMessageEnd()
2899
    oprot.trans.flush()
2900
 
4501 mandeep.dh 2901
  def process_scanSerializedItemForOrder(self, seqid, iprot, oprot):
2902
    args = scanSerializedItemForOrder_args()
2821 chandransh 2903
    args.read(iprot)
2904
    iprot.readMessageEnd()
4501 mandeep.dh 2905
    result = scanSerializedItemForOrder_result()
2821 chandransh 2906
    try:
5110 mandeep.dh 2907
      result.success = self._handler.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId)
2821 chandransh 2908
    except WarehouseServiceException, wex:
2909
      result.wex = wex
4501 mandeep.dh 2910
    oprot.writeMessageBegin("scanSerializedItemForOrder", TMessageType.REPLY, seqid)
2821 chandransh 2911
    result.write(oprot)
2912
    oprot.writeMessageEnd()
2913
    oprot.trans.flush()
2914
 
4501 mandeep.dh 2915
  def process_scanForOrder(self, seqid, iprot, oprot):
2916
    args = scanForOrder_args()
2821 chandransh 2917
    args.read(iprot)
2918
    iprot.readMessageEnd()
4501 mandeep.dh 2919
    result = scanForOrder_result()
2821 chandransh 2920
    try:
5361 mandeep.dh 2921
      result.success = self._handler.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId)
2821 chandransh 2922
    except WarehouseServiceException, wex:
2923
      result.wex = wex
4501 mandeep.dh 2924
    oprot.writeMessageBegin("scanForOrder", TMessageType.REPLY, seqid)
2821 chandransh 2925
    result.write(oprot)
2926
    oprot.writeMessageEnd()
2927
    oprot.trans.flush()
2928
 
4501 mandeep.dh 2929
  def process_createItemNumberMapping(self, seqid, iprot, oprot):
2930
    args = createItemNumberMapping_args()
2931
    args.read(iprot)
2932
    iprot.readMessageEnd()
2933
    result = createItemNumberMapping_result()
2934
    self._handler.createItemNumberMapping(args.itemNumber, args.itemId)
2935
    oprot.writeMessageBegin("createItemNumberMapping", TMessageType.REPLY, seqid)
2936
    result.write(oprot)
2937
    oprot.writeMessageEnd()
2938
    oprot.trans.flush()
2821 chandransh 2939
 
4620 amit.gupta 2940
  def process_getItemNumbers(self, seqid, iprot, oprot):
2941
    args = getItemNumbers_args()
2942
    args.read(iprot)
2943
    iprot.readMessageEnd()
2944
    result = getItemNumbers_result()
2945
    result.success = self._handler.getItemNumbers(args.itemId)
2946
    oprot.writeMessageBegin("getItemNumbers", TMessageType.REPLY, seqid)
2947
    result.write(oprot)
2948
    oprot.writeMessageEnd()
2949
    oprot.trans.flush()
4501 mandeep.dh 2950
 
5110 mandeep.dh 2951
  def process_getItemIds(self, seqid, iprot, oprot):
2952
    args = getItemIds_args()
2953
    args.read(iprot)
2954
    iprot.readMessageEnd()
2955
    result = getItemIds_result()
2956
    result.success = self._handler.getItemIds(args.itemNumber)
2957
    oprot.writeMessageBegin("getItemIds", TMessageType.REPLY, seqid)
2958
    result.write(oprot)
2959
    oprot.writeMessageEnd()
2960
    oprot.trans.flush()
4620 amit.gupta 2961
 
5185 mandeep.dh 2962
  def process_getInventoryItemsFromLastScanType(self, seqid, iprot, oprot):
2963
    args = getInventoryItemsFromLastScanType_args()
2964
    args.read(iprot)
2965
    iprot.readMessageEnd()
2966
    result = getInventoryItemsFromLastScanType_result()
2967
    try:
2968
      result.success = self._handler.getInventoryItemsFromLastScanType(args.lastScanType)
2969
    except WarehouseServiceException, wex:
2970
      result.wex = wex
2971
    oprot.writeMessageBegin("getInventoryItemsFromLastScanType", TMessageType.REPLY, seqid)
2972
    result.write(oprot)
2973
    oprot.writeMessageEnd()
2974
    oprot.trans.flush()
5110 mandeep.dh 2975
 
5185 mandeep.dh 2976
  def process_getInventoryItemFromId(self, seqid, iprot, oprot):
2977
    args = getInventoryItemFromId_args()
2978
    args.read(iprot)
2979
    iprot.readMessageEnd()
2980
    result = getInventoryItemFromId_result()
2981
    try:
2982
      result.success = self._handler.getInventoryItemFromId(args.inventoryItemId)
2983
    except WarehouseServiceException, wex:
2984
      result.wex = wex
2985
    oprot.writeMessageBegin("getInventoryItemFromId", TMessageType.REPLY, seqid)
2986
    result.write(oprot)
2987
    oprot.writeMessageEnd()
2988
    oprot.trans.flush()
2989
 
5372 mandeep.dh 2990
  def process_getPurchaseScans(self, seqid, iprot, oprot):
2991
    args = getPurchaseScans_args()
2992
    args.read(iprot)
2993
    iprot.readMessageEnd()
2994
    result = getPurchaseScans_result()
2995
    result.success = self._handler.getPurchaseScans(args.startDate, args.endDate)
2996
    oprot.writeMessageBegin("getPurchaseScans", TMessageType.REPLY, seqid)
2997
    result.write(oprot)
2998
    oprot.writeMessageEnd()
2999
    oprot.trans.flush()
5185 mandeep.dh 3000
 
7216 amar.kumar 3001
  def process_getPurchaseScansByGrnDate(self, seqid, iprot, oprot):
3002
    args = getPurchaseScansByGrnDate_args()
3003
    args.read(iprot)
3004
    iprot.readMessageEnd()
3005
    result = getPurchaseScansByGrnDate_result()
3006
    result.success = self._handler.getPurchaseScansByGrnDate(args.startDate, args.endDate)
3007
    oprot.writeMessageBegin("getPurchaseScansByGrnDate", TMessageType.REPLY, seqid)
3008
    result.write(oprot)
3009
    oprot.writeMessageEnd()
3010
    oprot.trans.flush()
3011
 
10407 amar.kumar 3012
  def process_getEmptyGrnsByDate(self, seqid, iprot, oprot):
3013
    args = getEmptyGrnsByDate_args()
3014
    args.read(iprot)
3015
    iprot.readMessageEnd()
3016
    result = getEmptyGrnsByDate_result()
3017
    result.success = self._handler.getEmptyGrnsByDate(args.startDate, args.endDate)
3018
    oprot.writeMessageBegin("getEmptyGrnsByDate", TMessageType.REPLY, seqid)
3019
    result.write(oprot)
3020
    oprot.writeMessageEnd()
3021
    oprot.trans.flush()
3022
 
5496 mandeep.dh 3023
  def process_fetchScansPerInvoiceNumber(self, seqid, iprot, oprot):
3024
    args = fetchScansPerInvoiceNumber_args()
3025
    args.read(iprot)
3026
    iprot.readMessageEnd()
3027
    result = fetchScansPerInvoiceNumber_result()
3028
    result.success = self._handler.fetchScansPerInvoiceNumber(args.date)
3029
    oprot.writeMessageBegin("fetchScansPerInvoiceNumber", TMessageType.REPLY, seqid)
3030
    result.write(oprot)
3031
    oprot.writeMessageEnd()
3032
    oprot.trans.flush()
5372 mandeep.dh 3033
 
5620 mandeep.dh 3034
  def process_getInventoryItemFromOrder(self, seqid, iprot, oprot):
3035
    args = getInventoryItemFromOrder_args()
3036
    args.read(iprot)
3037
    iprot.readMessageEnd()
3038
    result = getInventoryItemFromOrder_result()
3039
    try:
3040
      result.success = self._handler.getInventoryItemFromOrder(args.orderId)
3041
    except WarehouseServiceException, we:
3042
      result.we = we
3043
    oprot.writeMessageBegin("getInventoryItemFromOrder", TMessageType.REPLY, seqid)
3044
    result.write(oprot)
3045
    oprot.writeMessageEnd()
3046
    oprot.trans.flush()
5496 mandeep.dh 3047
 
5711 mandeep.dh 3048
  def process_getInventoryAge(self, seqid, iprot, oprot):
3049
    args = getInventoryAge_args()
3050
    args.read(iprot)
3051
    iprot.readMessageEnd()
3052
    result = getInventoryAge_result()
3053
    result.success = self._handler.getInventoryAge()
3054
    oprot.writeMessageBegin("getInventoryAge", TMessageType.REPLY, seqid)
3055
    result.write(oprot)
3056
    oprot.writeMessageEnd()
3057
    oprot.trans.flush()
5620 mandeep.dh 3058
 
6361 rajveer 3059
  def process_getInventoryScansForItem(self, seqid, iprot, oprot):
3060
    args = getInventoryScansForItem_args()
3061
    args.read(iprot)
3062
    iprot.readMessageEnd()
3063
    result = getInventoryScansForItem_result()
3064
    result.success = self._handler.getInventoryScansForItem(args.itemId, args.fromDate, args.toDate)
3065
    oprot.writeMessageBegin("getInventoryScansForItem", TMessageType.REPLY, seqid)
3066
    result.write(oprot)
3067
    oprot.writeMessageEnd()
3068
    oprot.trans.flush()
5711 mandeep.dh 3069
 
6361 rajveer 3070
  def process_getScanRecordsForSerialNumber(self, seqid, iprot, oprot):
3071
    args = getScanRecordsForSerialNumber_args()
3072
    args.read(iprot)
3073
    iprot.readMessageEnd()
3074
    result = getScanRecordsForSerialNumber_result()
3075
    result.success = self._handler.getScanRecordsForSerialNumber(args.serialNumber)
3076
    oprot.writeMessageBegin("getScanRecordsForSerialNumber", TMessageType.REPLY, seqid)
3077
    result.write(oprot)
3078
    oprot.writeMessageEnd()
3079
    oprot.trans.flush()
3080
 
6467 amar.kumar 3081
  def process_scanForPurchaseReturn(self, seqid, iprot, oprot):
3082
    args = scanForPurchaseReturn_args()
3083
    args.read(iprot)
3084
    iprot.readMessageEnd()
3085
    result = scanForPurchaseReturn_result()
3086
    try:
10864 manish.sha 3087
      result.success = self._handler.scanForPurchaseReturn(args.saleReturnItems, args.vendorId, args.billingWarehouseId)
6467 amar.kumar 3088
    except WarehouseServiceException, ex:
3089
      result.ex = ex
3090
    oprot.writeMessageBegin("scanForPurchaseReturn", TMessageType.REPLY, seqid)
3091
    result.write(oprot)
3092
    oprot.writeMessageEnd()
3093
    oprot.trans.flush()
6361 rajveer 3094
 
6630 amar.kumar 3095
  def process_scanForLostItem(self, seqid, iprot, oprot):
3096
    args = scanForLostItem_args()
3097
    args.read(iprot)
3098
    iprot.readMessageEnd()
3099
    result = scanForLostItem_result()
3100
    try:
7718 amar.kumar 3101
      self._handler.scanForLostItem(args.lostItems, args.vendorId, args.billingWarehouseId)
6630 amar.kumar 3102
    except WarehouseServiceException, ex:
3103
      result.ex = ex
3104
    oprot.writeMessageBegin("scanForLostItem", TMessageType.REPLY, seqid)
3105
    result.write(oprot)
3106
    oprot.writeMessageEnd()
3107
    oprot.trans.flush()
6467 amar.kumar 3108
 
6630 amar.kumar 3109
  def process_getCurrentSerializedInventoryByScans(self, seqid, iprot, oprot):
3110
    args = getCurrentSerializedInventoryByScans_args()
3111
    args.read(iprot)
3112
    iprot.readMessageEnd()
3113
    result = getCurrentSerializedInventoryByScans_result()
7715 vikram.rag 3114
    result.success = self._handler.getCurrentSerializedInventoryByScans(args.physicalWarehouseId)
6630 amar.kumar 3115
    oprot.writeMessageBegin("getCurrentSerializedInventoryByScans", TMessageType.REPLY, seqid)
3116
    result.write(oprot)
3117
    oprot.writeMessageEnd()
3118
    oprot.trans.flush()
3119
 
3120
  def process_getCurrentNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3121
    args = getCurrentNonSerializedInventoryByScans_args()
3122
    args.read(iprot)
3123
    iprot.readMessageEnd()
3124
    result = getCurrentNonSerializedInventoryByScans_result()
7715 vikram.rag 3125
    result.success = self._handler.getCurrentNonSerializedInventoryByScans(args.physicalWarehouseId)
6630 amar.kumar 3126
    oprot.writeMessageBegin("getCurrentNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3127
    result.write(oprot)
3128
    oprot.writeMessageEnd()
3129
    oprot.trans.flush()
3130
 
6762 amar.kumar 3131
  def process_getHistoricSerializedInventoryByScans(self, seqid, iprot, oprot):
3132
    args = getHistoricSerializedInventoryByScans_args()
3133
    args.read(iprot)
3134
    iprot.readMessageEnd()
3135
    result = getHistoricSerializedInventoryByScans_result()
3136
    result.success = self._handler.getHistoricSerializedInventoryByScans(args.date)
3137
    oprot.writeMessageBegin("getHistoricSerializedInventoryByScans", TMessageType.REPLY, seqid)
3138
    result.write(oprot)
3139
    oprot.writeMessageEnd()
3140
    oprot.trans.flush()
6630 amar.kumar 3141
 
6762 amar.kumar 3142
  def process_getHistoricNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3143
    args = getHistoricNonSerializedInventoryByScans_args()
3144
    args.read(iprot)
3145
    iprot.readMessageEnd()
3146
    result = getHistoricNonSerializedInventoryByScans_result()
3147
    result.success = self._handler.getHistoricNonSerializedInventoryByScans(args.date)
3148
    oprot.writeMessageBegin("getHistoricNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3149
    result.write(oprot)
3150
    oprot.writeMessageEnd()
3151
    oprot.trans.flush()
3152
 
10407 amar.kumar 3153
  def process_getOurHistoricSerializedInventoryByScans(self, seqid, iprot, oprot):
3154
    args = getOurHistoricSerializedInventoryByScans_args()
3155
    args.read(iprot)
3156
    iprot.readMessageEnd()
3157
    result = getOurHistoricSerializedInventoryByScans_result()
3158
    result.success = self._handler.getOurHistoricSerializedInventoryByScans(args.date)
3159
    oprot.writeMessageBegin("getOurHistoricSerializedInventoryByScans", TMessageType.REPLY, seqid)
3160
    result.write(oprot)
3161
    oprot.writeMessageEnd()
3162
    oprot.trans.flush()
3163
 
3164
  def process_getOurHistoricNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3165
    args = getOurHistoricNonSerializedInventoryByScans_args()
3166
    args.read(iprot)
3167
    iprot.readMessageEnd()
3168
    result = getOurHistoricNonSerializedInventoryByScans_result()
3169
    result.success = self._handler.getOurHistoricNonSerializedInventoryByScans(args.date)
3170
    oprot.writeMessageBegin("getOurHistoricNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3171
    result.write(oprot)
3172
    oprot.writeMessageEnd()
3173
    oprot.trans.flush()
3174
 
6762 amar.kumar 3175
  def process_scanForOursExternalSale(self, seqid, iprot, oprot):
3176
    args = scanForOursExternalSale_args()
3177
    args.read(iprot)
3178
    iprot.readMessageEnd()
3179
    result = scanForOursExternalSale_result()
3180
    try:
7672 rajveer 3181
      result.success = self._handler.scanForOursExternalSale(args.itemId, args.serialNumber, args.itemNumber, args.invoiceNumber, args.warehouseId, args.unitPrice, args.nlc, args.orderId)
6762 amar.kumar 3182
    except WarehouseServiceException, ex:
3183
      result.ex = ex
3184
    oprot.writeMessageBegin("scanForOursExternalSale", TMessageType.REPLY, seqid)
3185
    result.write(oprot)
3186
    oprot.writeMessageEnd()
3187
    oprot.trans.flush()
3188
 
3189
  def process_scanForOursExternalSaleReturn(self, seqid, iprot, oprot):
3190
    args = scanForOursExternalSaleReturn_args()
3191
    args.read(iprot)
3192
    iprot.readMessageEnd()
3193
    result = scanForOursExternalSaleReturn_result()
7410 amar.kumar 3194
    try:
3195
      self._handler.scanForOursExternalSaleReturn(args.orderId, args.unitPrice)
3196
    except WarehouseServiceException, ex:
3197
      result.ex = ex
6762 amar.kumar 3198
    oprot.writeMessageBegin("scanForOursExternalSaleReturn", TMessageType.REPLY, seqid)
3199
    result.write(oprot)
3200
    oprot.writeMessageEnd()
3201
    oprot.trans.flush()
3202
 
6880 amar.kumar 3203
  def process_getMovementNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3204
    args = getMovementNonSerializedInventoryByScans_args()
3205
    args.read(iprot)
3206
    iprot.readMessageEnd()
3207
    result = getMovementNonSerializedInventoryByScans_result()
3208
    result.success = self._handler.getMovementNonSerializedInventoryByScans(args.startDate, args.endDate)
3209
    oprot.writeMessageBegin("getMovementNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3210
    result.write(oprot)
3211
    oprot.writeMessageEnd()
3212
    oprot.trans.flush()
6762 amar.kumar 3213
 
6880 amar.kumar 3214
  def process_getMovementSerializedInventoryByScans(self, seqid, iprot, oprot):
3215
    args = getMovementSerializedInventoryByScans_args()
3216
    args.read(iprot)
3217
    iprot.readMessageEnd()
3218
    result = getMovementSerializedInventoryByScans_result()
3219
    result.success = self._handler.getMovementSerializedInventoryByScans(args.startDate, args.endDate)
3220
    oprot.writeMessageBegin("getMovementSerializedInventoryByScans", TMessageType.REPLY, seqid)
3221
    result.write(oprot)
3222
    oprot.writeMessageEnd()
3223
    oprot.trans.flush()
3224
 
7216 amar.kumar 3225
  def process_getCompleteMovementSerializedInventoryByScans(self, seqid, iprot, oprot):
3226
    args = getCompleteMovementSerializedInventoryByScans_args()
3227
    args.read(iprot)
3228
    iprot.readMessageEnd()
3229
    result = getCompleteMovementSerializedInventoryByScans_result()
3230
    result.success = self._handler.getCompleteMovementSerializedInventoryByScans(args.startDate, args.endDate)
3231
    oprot.writeMessageBegin("getCompleteMovementSerializedInventoryByScans", TMessageType.REPLY, seqid)
3232
    result.write(oprot)
3233
    oprot.writeMessageEnd()
3234
    oprot.trans.flush()
3235
 
3236
  def process_getCompleteMovementNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3237
    args = getCompleteMovementNonSerializedInventoryByScans_args()
3238
    args.read(iprot)
3239
    iprot.readMessageEnd()
3240
    result = getCompleteMovementNonSerializedInventoryByScans_result()
3241
    result.success = self._handler.getCompleteMovementNonSerializedInventoryByScans(args.startDate, args.endDate)
3242
    oprot.writeMessageBegin("getCompleteMovementNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3243
    result.write(oprot)
3244
    oprot.writeMessageEnd()
3245
    oprot.trans.flush()
3246
 
7190 amar.kumar 3247
  def process_scanfreebie(self, seqid, iprot, oprot):
3248
    args = scanfreebie_args()
3249
    args.read(iprot)
3250
    iprot.readMessageEnd()
3251
    result = scanfreebie_result()
3252
    try:
3253
      result.success = self._handler.scanfreebie(args.orderId, args.freebieItemId, args.freebieWarehouseId, args.scanType)
3254
    except WarehouseServiceException, wex:
3255
      result.wex = wex
3256
    oprot.writeMessageBegin("scanfreebie", TMessageType.REPLY, seqid)
3257
    result.write(oprot)
3258
    oprot.writeMessageEnd()
3259
    oprot.trans.flush()
6880 amar.kumar 3260
 
7199 amar.kumar 3261
  def process_reshipfreebie(self, seqid, iprot, oprot):
3262
    args = reshipfreebie_args()
3263
    args.read(iprot)
3264
    iprot.readMessageEnd()
3265
    result = reshipfreebie_result()
3266
    try:
3267
      self._handler.reshipfreebie(args.oldOrderId, args.newOrderId, args.freebieItemId, args.scanType)
3268
    except WarehouseServiceException, wex:
3269
      result.wex = wex
3270
    oprot.writeMessageBegin("reshipfreebie", TMessageType.REPLY, seqid)
3271
    result.write(oprot)
3272
    oprot.writeMessageEnd()
3273
    oprot.trans.flush()
7190 amar.kumar 3274
 
7410 amar.kumar 3275
  def process_isItemTransferAllowed(self, seqid, iprot, oprot):
3276
    args = isItemTransferAllowed_args()
3277
    args.read(iprot)
3278
    iprot.readMessageEnd()
3279
    result = isItemTransferAllowed_result()
3280
    result.success = self._handler.isItemTransferAllowed(args.warehouseId, args.transferWarehouseId)
3281
    oprot.writeMessageBegin("isItemTransferAllowed", TMessageType.REPLY, seqid)
3282
    result.write(oprot)
3283
    oprot.writeMessageEnd()
3284
    oprot.trans.flush()
7199 amar.kumar 3285
 
7410 amar.kumar 3286
  def process_createTransferLot(self, seqid, iprot, oprot):
3287
    args = createTransferLot_args()
3288
    args.read(iprot)
3289
    iprot.readMessageEnd()
3290
    result = createTransferLot_result()
3291
    try:
3292
      result.success = self._handler.createTransferLot(args.originWarehouseId, args.destWarehouseId)
3293
    except WarehouseServiceException, wex:
3294
      result.wex = wex
3295
    oprot.writeMessageBegin("createTransferLot", TMessageType.REPLY, seqid)
3296
    result.write(oprot)
3297
    oprot.writeMessageEnd()
3298
    oprot.trans.flush()
3299
 
3300
  def process_getTransferLot(self, seqid, iprot, oprot):
3301
    args = getTransferLot_args()
3302
    args.read(iprot)
3303
    iprot.readMessageEnd()
3304
    result = getTransferLot_result()
3305
    try:
3306
      result.success = self._handler.getTransferLot(args.transferLotId)
3307
    except WarehouseServiceException, wex:
3308
      result.wex = wex
3309
    oprot.writeMessageBegin("getTransferLot", TMessageType.REPLY, seqid)
3310
    result.write(oprot)
3311
    oprot.writeMessageEnd()
3312
    oprot.trans.flush()
3313
 
3314
  def process_markTransferLotAsReceived(self, seqid, iprot, oprot):
3315
    args = markTransferLotAsReceived_args()
3316
    args.read(iprot)
3317
    iprot.readMessageEnd()
3318
    result = markTransferLotAsReceived_result()
3319
    try:
3320
      self._handler.markTransferLotAsReceived(args.id, args.remoteTransferRefNumber)
3321
    except WarehouseServiceException, wex:
3322
      result.wex = wex
3323
    oprot.writeMessageBegin("markTransferLotAsReceived", TMessageType.REPLY, seqid)
3324
    result.write(oprot)
3325
    oprot.writeMessageEnd()
3326
    oprot.trans.flush()
3327
 
3328
  def process_getTransferLotsByDate(self, seqid, iprot, oprot):
3329
    args = getTransferLotsByDate_args()
3330
    args.read(iprot)
3331
    iprot.readMessageEnd()
3332
    result = getTransferLotsByDate_result()
3333
    try:
3334
      result.success = self._handler.getTransferLotsByDate(args.fromDate, args.toDate)
3335
    except WarehouseServiceException, wex:
3336
      result.wex = wex
3337
    oprot.writeMessageBegin("getTransferLotsByDate", TMessageType.REPLY, seqid)
3338
    result.write(oprot)
3339
    oprot.writeMessageEnd()
3340
    oprot.trans.flush()
3341
 
3342
  def process_getAllowedDestinationWarehousesForTransfer(self, seqid, iprot, oprot):
3343
    args = getAllowedDestinationWarehousesForTransfer_args()
3344
    args.read(iprot)
3345
    iprot.readMessageEnd()
3346
    result = getAllowedDestinationWarehousesForTransfer_result()
3347
    result.success = self._handler.getAllowedDestinationWarehousesForTransfer(args.warehouseId)
3348
    oprot.writeMessageBegin("getAllowedDestinationWarehousesForTransfer", TMessageType.REPLY, seqid)
3349
    result.write(oprot)
3350
    oprot.writeMessageEnd()
3351
    oprot.trans.flush()
3352
 
3353
  def process_getItemsInTransferLot(self, seqid, iprot, oprot):
3354
    args = getItemsInTransferLot_args()
3355
    args.read(iprot)
3356
    iprot.readMessageEnd()
3357
    result = getItemsInTransferLot_result()
3358
    result.success = self._handler.getItemsInTransferLot(args.transferLotId)
3359
    oprot.writeMessageBegin("getItemsInTransferLot", TMessageType.REPLY, seqid)
3360
    result.write(oprot)
3361
    oprot.writeMessageEnd()
3362
    oprot.trans.flush()
3363
 
3364
  def process_markItemsAsReceivedForTransferLot(self, seqid, iprot, oprot):
3365
    args = markItemsAsReceivedForTransferLot_args()
3366
    args.read(iprot)
3367
    iprot.readMessageEnd()
3368
    result = markItemsAsReceivedForTransferLot_result()
3369
    try:
3370
      self._handler.markItemsAsReceivedForTransferLot(args.id)
3371
    except WarehouseServiceException, wex:
3372
      result.wex = wex
3373
    oprot.writeMessageBegin("markItemsAsReceivedForTransferLot", TMessageType.REPLY, seqid)
3374
    result.write(oprot)
3375
    oprot.writeMessageEnd()
3376
    oprot.trans.flush()
3377
 
3378
  def process_updateTransferLotAfterItemReceive(self, seqid, iprot, oprot):
3379
    args = updateTransferLotAfterItemReceive_args()
3380
    args.read(iprot)
3381
    iprot.readMessageEnd()
3382
    result = updateTransferLotAfterItemReceive_result()
3383
    try:
3384
      result.success = self._handler.updateTransferLotAfterItemReceive(args.id)
3385
    except WarehouseServiceException, wex:
3386
      result.wex = wex
3387
    oprot.writeMessageBegin("updateTransferLotAfterItemReceive", TMessageType.REPLY, seqid)
3388
    result.write(oprot)
3389
    oprot.writeMessageEnd()
3390
    oprot.trans.flush()
3391
 
7459 amar.kumar 3392
  def process_scanForTransferOut(self, seqid, iprot, oprot):
3393
    args = scanForTransferOut_args()
7410 amar.kumar 3394
    args.read(iprot)
3395
    iprot.readMessageEnd()
7459 amar.kumar 3396
    result = scanForTransferOut_result()
7410 amar.kumar 3397
    try:
7459 amar.kumar 3398
      self._handler.scanForTransferOut(args.inventoryItems, args.type, args.transferLotId)
7410 amar.kumar 3399
    except WarehouseServiceException, wex:
3400
      result.wex = wex
7459 amar.kumar 3401
    oprot.writeMessageBegin("scanForTransferOut", TMessageType.REPLY, seqid)
7410 amar.kumar 3402
    result.write(oprot)
3403
    oprot.writeMessageEnd()
3404
    oprot.trans.flush()
3405
 
7459 amar.kumar 3406
  def process_scanForTransferIn(self, seqid, iprot, oprot):
3407
    args = scanForTransferIn_args()
3408
    args.read(iprot)
3409
    iprot.readMessageEnd()
3410
    result = scanForTransferIn_result()
3411
    try:
3412
      self._handler.scanForTransferIn(args.inventoryItems, args.type, args.transferLotId)
3413
    except WarehouseServiceException, wex:
3414
      result.wex = wex
3415
    oprot.writeMessageBegin("scanForTransferIn", TMessageType.REPLY, seqid)
3416
    result.write(oprot)
3417
    oprot.writeMessageEnd()
3418
    oprot.trans.flush()
7410 amar.kumar 3419
 
7459 amar.kumar 3420
  def process_scanForOursThirdPartyReceive(self, seqid, iprot, oprot):
3421
    args = scanForOursThirdPartyReceive_args()
3422
    args.read(iprot)
3423
    iprot.readMessageEnd()
3424
    result = scanForOursThirdPartyReceive_result()
3425
    try:
3426
      self._handler.scanForOursThirdPartyReceive(args.inventoryItems, args.id)
3427
    except WarehouseServiceException, wex:
3428
      result.wex = wex
3429
    oprot.writeMessageBegin("scanForOursThirdPartyReceive", TMessageType.REPLY, seqid)
3430
    result.write(oprot)
3431
    oprot.writeMessageEnd()
3432
    oprot.trans.flush()
3433
 
7574 amar.kumar 3434
  def process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, seqid, iprot, oprot):
3435
    args = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args()
3436
    args.read(iprot)
3437
    iprot.readMessageEnd()
3438
    result = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result()
3439
    try:
3440
      result.success = self._handler.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(args.itemId, args.physicalWarehouseId)
3441
    except WarehouseServiceException, wex:
3442
      result.wex = wex
3443
    oprot.writeMessageBegin("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", TMessageType.REPLY, seqid)
3444
    result.write(oprot)
3445
    oprot.writeMessageEnd()
3446
    oprot.trans.flush()
7459 amar.kumar 3447
 
7672 rajveer 3448
  def process_getInTransitInventory(self, seqid, iprot, oprot):
3449
    args = getInTransitInventory_args()
3450
    args.read(iprot)
3451
    iprot.readMessageEnd()
3452
    result = getInTransitInventory_result()
3453
    result.success = self._handler.getInTransitInventory(args.originWarehouseId)
3454
    oprot.writeMessageBegin("getInTransitInventory", TMessageType.REPLY, seqid)
3455
    result.write(oprot)
3456
    oprot.writeMessageEnd()
3457
    oprot.trans.flush()
7574 amar.kumar 3458
 
7968 amar.kumar 3459
  def process_isItemAvailableForSale(self, seqid, iprot, oprot):
3460
    args = isItemAvailableForSale_args()
3461
    args.read(iprot)
3462
    iprot.readMessageEnd()
3463
    result = isItemAvailableForSale_result()
3464
    try:
3465
      result.success = self._handler.isItemAvailableForSale(args.itemId, args.serialNumber, args.warehouseId)
3466
    except WarehouseServiceException, wex:
3467
      result.wex = wex
3468
    oprot.writeMessageBegin("isItemAvailableForSale", TMessageType.REPLY, seqid)
3469
    result.write(oprot)
3470
    oprot.writeMessageEnd()
3471
    oprot.trans.flush()
7672 rajveer 3472
 
7968 amar.kumar 3473
  def process_getHistoricBadInventoryByScans(self, seqid, iprot, oprot):
3474
    args = getHistoricBadInventoryByScans_args()
3475
    args.read(iprot)
3476
    iprot.readMessageEnd()
3477
    result = getHistoricBadInventoryByScans_result()
3478
    try:
3479
      result.success = self._handler.getHistoricBadInventoryByScans(args.date)
3480
    except WarehouseServiceException, wex:
3481
      result.wex = wex
3482
    oprot.writeMessageBegin("getHistoricBadInventoryByScans", TMessageType.REPLY, seqid)
3483
    result.write(oprot)
3484
    oprot.writeMessageEnd()
3485
    oprot.trans.flush()
3486
 
8565 amar.kumar 3487
  def process_scanForBadSale(self, seqid, iprot, oprot):
3488
    args = scanForBadSale_args()
3489
    args.read(iprot)
3490
    iprot.readMessageEnd()
3491
    result = scanForBadSale_result()
8717 amar.kumar 3492
    try:
3493
      result.success = self._handler.scanForBadSale(args.serialNumber, args.itemNumber, args.itemId, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId)
3494
    except WarehouseServiceException, wex:
3495
      result.wex = wex
8565 amar.kumar 3496
    oprot.writeMessageBegin("scanForBadSale", TMessageType.REPLY, seqid)
3497
    result.write(oprot)
3498
    oprot.writeMessageEnd()
3499
    oprot.trans.flush()
7968 amar.kumar 3500
 
10120 manish.sha 3501
  def process_getTransferLotItemsForMarkReceive(self, seqid, iprot, oprot):
3502
    args = getTransferLotItemsForMarkReceive_args()
3503
    args.read(iprot)
3504
    iprot.readMessageEnd()
3505
    result = getTransferLotItemsForMarkReceive_result()
3506
    try:
3507
      result.success = self._handler.getTransferLotItemsForMarkReceive(args.transferLotId, args.scanType)
3508
    except WarehouseServiceException, wex:
3509
      result.wex = wex
3510
    oprot.writeMessageBegin("getTransferLotItemsForMarkReceive", TMessageType.REPLY, seqid)
3511
    result.write(oprot)
3512
    oprot.writeMessageEnd()
3513
    oprot.trans.flush()
8565 amar.kumar 3514
 
10120 manish.sha 3515
  def process_markItemsAsReceivedForTransferLotPartial(self, seqid, iprot, oprot):
3516
    args = markItemsAsReceivedForTransferLotPartial_args()
3517
    args.read(iprot)
3518
    iprot.readMessageEnd()
3519
    result = markItemsAsReceivedForTransferLotPartial_result()
3520
    try:
3521
      self._handler.markItemsAsReceivedForTransferLotPartial(args.inventoryItems, args.transferLotId)
3522
    except WarehouseServiceException, wex:
3523
      result.wex = wex
3524
    oprot.writeMessageBegin("markItemsAsReceivedForTransferLotPartial", TMessageType.REPLY, seqid)
3525
    result.write(oprot)
3526
    oprot.writeMessageEnd()
3527
    oprot.trans.flush()
3528
 
3529
  def process_markTransferLotAsReceivedPartial(self, seqid, iprot, oprot):
3530
    args = markTransferLotAsReceivedPartial_args()
3531
    args.read(iprot)
3532
    iprot.readMessageEnd()
3533
    result = markTransferLotAsReceivedPartial_result()
3534
    try:
3535
      self._handler.markTransferLotAsReceivedPartial(args.id, args.remoteTransferRefNumber)
3536
    except WarehouseServiceException, wex:
3537
      result.wex = wex
3538
    oprot.writeMessageBegin("markTransferLotAsReceivedPartial", TMessageType.REPLY, seqid)
3539
    result.write(oprot)
3540
    oprot.writeMessageEnd()
3541
    oprot.trans.flush()
3542
 
10690 manish.sha 3543
  def process_getInventoryItemScannedInForPO(self, seqid, iprot, oprot):
3544
    args = getInventoryItemScannedInForPO_args()
3545
    args.read(iprot)
3546
    iprot.readMessageEnd()
3547
    result = getInventoryItemScannedInForPO_result()
3548
    try:
3549
      result.success = self._handler.getInventoryItemScannedInForPO(args.itemId, args.purchaseIds)
3550
    except WarehouseServiceException, wex:
3551
      result.wex = wex
3552
    oprot.writeMessageBegin("getInventoryItemScannedInForPO", TMessageType.REPLY, seqid)
3553
    result.write(oprot)
3554
    oprot.writeMessageEnd()
3555
    oprot.trans.flush()
10120 manish.sha 3556
 
10690 manish.sha 3557
  def process_getAmazonTransferredSkuDetails(self, seqid, iprot, oprot):
3558
    args = getAmazonTransferredSkuDetails_args()
3559
    args.read(iprot)
3560
    iprot.readMessageEnd()
3561
    result = getAmazonTransferredSkuDetails_result()
3562
    try:
3563
      result.success = self._handler.getAmazonTransferredSkuDetails(args.itemIds)
3564
    except WarehouseServiceException, wex:
3565
      result.wex = wex
3566
    oprot.writeMessageBegin("getAmazonTransferredSkuDetails", TMessageType.REPLY, seqid)
3567
    result.write(oprot)
3568
    oprot.writeMessageEnd()
3569
    oprot.trans.flush()
3570
 
3571
  def process_getScansforPurchase(self, seqid, iprot, oprot):
3572
    args = getScansforPurchase_args()
3573
    args.read(iprot)
3574
    iprot.readMessageEnd()
3575
    result = getScansforPurchase_result()
3576
    try:
3577
      result.success = self._handler.getScansforPurchase(args.purchaseId, args.scanType)
3578
    except WarehouseServiceException, wex:
3579
      result.wex = wex
3580
    oprot.writeMessageBegin("getScansforPurchase", TMessageType.REPLY, seqid)
3581
    result.write(oprot)
3582
    oprot.writeMessageEnd()
3583
    oprot.trans.flush()
3584
 
10864 manish.sha 3585
  def process_getCurrentBadQuantityForItem(self, seqid, iprot, oprot):
3586
    args = getCurrentBadQuantityForItem_args()
3587
    args.read(iprot)
3588
    iprot.readMessageEnd()
3589
    result = getCurrentBadQuantityForItem_result()
3590
    try:
3591
      result.success = self._handler.getCurrentBadQuantityForItem(args.itemId, args.currentWarehouseId, args.physicalWarehouseId)
3592
    except WarehouseServiceException, wex:
3593
      result.wex = wex
3594
    oprot.writeMessageBegin("getCurrentBadQuantityForItem", TMessageType.REPLY, seqid)
3595
    result.write(oprot)
3596
    oprot.writeMessageEnd()
3597
    oprot.trans.flush()
10690 manish.sha 3598
 
10864 manish.sha 3599
  def process_scanForBadPurchaseReturn(self, seqid, iprot, oprot):
3600
    args = scanForBadPurchaseReturn_args()
3601
    args.read(iprot)
3602
    iprot.readMessageEnd()
3603
    result = scanForBadPurchaseReturn_result()
3604
    try:
3605
      result.success = self._handler.scanForBadPurchaseReturn(args.saleReturnItems, args.vendorId, args.billingWarehouseId)
3606
    except WarehouseServiceException, ex:
3607
      result.ex = ex
3608
    oprot.writeMessageBegin("scanForBadPurchaseReturn", TMessageType.REPLY, seqid)
3609
    result.write(oprot)
3610
    oprot.writeMessageEnd()
3611
    oprot.trans.flush()
3612
 
3613
  def process_getItemsInPurchaseReturn(self, seqid, iprot, oprot):
3614
    args = getItemsInPurchaseReturn_args()
3615
    args.read(iprot)
3616
    iprot.readMessageEnd()
3617
    result = getItemsInPurchaseReturn_result()
3618
    try:
11751 manish.sha 3619
      result.success = self._handler.getItemsInPurchaseReturn(args.purchaseReturnId, args.type)
10864 manish.sha 3620
    except WarehouseServiceException, ex:
3621
      result.ex = ex
3622
    oprot.writeMessageBegin("getItemsInPurchaseReturn", TMessageType.REPLY, seqid)
3623
    result.write(oprot)
3624
    oprot.writeMessageEnd()
3625
    oprot.trans.flush()
3626
 
10886 manish.sha 3627
  def process_getScansForInventoryItem(self, seqid, iprot, oprot):
3628
    args = getScansForInventoryItem_args()
3629
    args.read(iprot)
3630
    iprot.readMessageEnd()
3631
    result = getScansForInventoryItem_result()
3632
    try:
3633
      result.success = self._handler.getScansForInventoryItem(args.inventoryItemId, args.type)
3634
    except WarehouseServiceException, ex:
3635
      result.ex = ex
3636
    oprot.writeMessageBegin("getScansForInventoryItem", TMessageType.REPLY, seqid)
3637
    result.write(oprot)
3638
    oprot.writeMessageEnd()
3639
    oprot.trans.flush()
10864 manish.sha 3640
 
12531 manish.sha 3641
  def process_checkGrnImeiStatus(self, seqid, iprot, oprot):
3642
    args = checkGrnImeiStatus_args()
3643
    args.read(iprot)
3644
    iprot.readMessageEnd()
3645
    result = checkGrnImeiStatus_result()
3646
    try:
3647
      result.success = self._handler.checkGrnImeiStatus(args.imeiNos)
3648
    except WarehouseServiceException, ex:
3649
      result.ex = ex
3650
    oprot.writeMessageBegin("checkGrnImeiStatus", TMessageType.REPLY, seqid)
3651
    result.write(oprot)
3652
    oprot.writeMessageEnd()
3653
    oprot.trans.flush()
10886 manish.sha 3654
 
12531 manish.sha 3655
 
2821 chandransh 3656
# HELPER FUNCTIONS AND STRUCTURES
3657
 
4501 mandeep.dh 3658
class getInventoryItem_args:
2832 chandransh 3659
  """
3660
  Attributes:
4501 mandeep.dh 3661
   - serialNumber
2832 chandransh 3662
  """
3663
 
3664
  thrift_spec = (
3665
    None, # 0
4501 mandeep.dh 3666
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
2832 chandransh 3667
  )
3668
 
4501 mandeep.dh 3669
  def __init__(self, serialNumber=None,):
3670
    self.serialNumber = serialNumber
2832 chandransh 3671
 
3672
  def read(self, iprot):
3673
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3674
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3675
      return
3676
    iprot.readStructBegin()
3677
    while True:
3678
      (fname, ftype, fid) = iprot.readFieldBegin()
3679
      if ftype == TType.STOP:
3680
        break
3681
      if fid == 1:
4501 mandeep.dh 3682
        if ftype == TType.STRING:
3683
          self.serialNumber = iprot.readString();
2832 chandransh 3684
        else:
3685
          iprot.skip(ftype)
3686
      else:
3687
        iprot.skip(ftype)
3688
      iprot.readFieldEnd()
3689
    iprot.readStructEnd()
3690
 
3691
  def write(self, oprot):
3692
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3693
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3694
      return
4501 mandeep.dh 3695
    oprot.writeStructBegin('getInventoryItem_args')
3696
    if self.serialNumber is not None:
3697
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
3698
      oprot.writeString(self.serialNumber)
2832 chandransh 3699
      oprot.writeFieldEnd()
3700
    oprot.writeFieldStop()
3701
    oprot.writeStructEnd()
3702
 
3431 rajveer 3703
  def validate(self):
3704
    return
3705
 
3706
 
2832 chandransh 3707
  def __repr__(self):
3708
    L = ['%s=%r' % (key, value)
3709
      for key, value in self.__dict__.iteritems()]
3710
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3711
 
3712
  def __eq__(self, other):
3713
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3714
 
3715
  def __ne__(self, other):
3716
    return not (self == other)
3717
 
4501 mandeep.dh 3718
class getInventoryItem_result:
2832 chandransh 3719
  """
3720
  Attributes:
3721
   - success
4541 mandeep.dh 3722
   - wex
2832 chandransh 3723
  """
3724
 
3725
  thrift_spec = (
4501 mandeep.dh 3726
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
4541 mandeep.dh 3727
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
2832 chandransh 3728
  )
3729
 
4541 mandeep.dh 3730
  def __init__(self, success=None, wex=None,):
2832 chandransh 3731
    self.success = success
4541 mandeep.dh 3732
    self.wex = wex
2832 chandransh 3733
 
3734
  def read(self, iprot):
3735
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3736
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3737
      return
3738
    iprot.readStructBegin()
3739
    while True:
3740
      (fname, ftype, fid) = iprot.readFieldBegin()
3741
      if ftype == TType.STOP:
3742
        break
3743
      if fid == 0:
3744
        if ftype == TType.STRUCT:
4501 mandeep.dh 3745
          self.success = InventoryItem()
2832 chandransh 3746
          self.success.read(iprot)
3747
        else:
3748
          iprot.skip(ftype)
4541 mandeep.dh 3749
      elif fid == 1:
3750
        if ftype == TType.STRUCT:
3751
          self.wex = WarehouseServiceException()
3752
          self.wex.read(iprot)
3753
        else:
3754
          iprot.skip(ftype)
2832 chandransh 3755
      else:
3756
        iprot.skip(ftype)
3757
      iprot.readFieldEnd()
3758
    iprot.readStructEnd()
3759
 
3760
  def write(self, oprot):
3761
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3762
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3763
      return
4501 mandeep.dh 3764
    oprot.writeStructBegin('getInventoryItem_result')
3431 rajveer 3765
    if self.success is not None:
2832 chandransh 3766
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3767
      self.success.write(oprot)
3768
      oprot.writeFieldEnd()
4541 mandeep.dh 3769
    if self.wex is not None:
3770
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
3771
      self.wex.write(oprot)
3772
      oprot.writeFieldEnd()
2832 chandransh 3773
    oprot.writeFieldStop()
3774
    oprot.writeStructEnd()
3775
 
3431 rajveer 3776
  def validate(self):
3777
    return
3778
 
3779
 
2832 chandransh 3780
  def __repr__(self):
3781
    L = ['%s=%r' % (key, value)
3782
      for key, value in self.__dict__.iteritems()]
3783
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3784
 
3785
  def __eq__(self, other):
3786
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3787
 
3788
  def __ne__(self, other):
3789
    return not (self == other)
3790
 
5361 mandeep.dh 3791
class getNonSeralizedInventoryItem_args:
2821 chandransh 3792
  """
3793
  Attributes:
5530 mandeep.dh 3794
   - itemNumber
4501 mandeep.dh 3795
   - itemId
5530 mandeep.dh 3796
   - fulfilmentWarehouseId
8565 amar.kumar 3797
   - billingWarehouseId
2821 chandransh 3798
  """
3799
 
3800
  thrift_spec = (
3801
    None, # 0
5530 mandeep.dh 3802
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
3803
    (2, TType.I64, 'itemId', None, None, ), # 2
3804
    (3, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 3
8565 amar.kumar 3805
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
2821 chandransh 3806
  )
3807
 
8565 amar.kumar 3808
  def __init__(self, itemNumber=None, itemId=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):
5530 mandeep.dh 3809
    self.itemNumber = itemNumber
4501 mandeep.dh 3810
    self.itemId = itemId
5530 mandeep.dh 3811
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 3812
    self.billingWarehouseId = billingWarehouseId
2821 chandransh 3813
 
3814
  def read(self, iprot):
3815
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3816
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3817
      return
3818
    iprot.readStructBegin()
3819
    while True:
3820
      (fname, ftype, fid) = iprot.readFieldBegin()
3821
      if ftype == TType.STOP:
3822
        break
3823
      if fid == 1:
5530 mandeep.dh 3824
        if ftype == TType.STRING:
3825
          self.itemNumber = iprot.readString();
3826
        else:
3827
          iprot.skip(ftype)
3828
      elif fid == 2:
2821 chandransh 3829
        if ftype == TType.I64:
4501 mandeep.dh 3830
          self.itemId = iprot.readI64();
2821 chandransh 3831
        else:
3832
          iprot.skip(ftype)
5530 mandeep.dh 3833
      elif fid == 3:
4501 mandeep.dh 3834
        if ftype == TType.I64:
5530 mandeep.dh 3835
          self.fulfilmentWarehouseId = iprot.readI64();
2821 chandransh 3836
        else:
3837
          iprot.skip(ftype)
8565 amar.kumar 3838
      elif fid == 4:
3839
        if ftype == TType.I64:
3840
          self.billingWarehouseId = iprot.readI64();
3841
        else:
3842
          iprot.skip(ftype)
2821 chandransh 3843
      else:
3844
        iprot.skip(ftype)
3845
      iprot.readFieldEnd()
3846
    iprot.readStructEnd()
3847
 
3848
  def write(self, oprot):
3849
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3850
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3851
      return
5361 mandeep.dh 3852
    oprot.writeStructBegin('getNonSeralizedInventoryItem_args')
5530 mandeep.dh 3853
    if self.itemNumber is not None:
3854
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
3855
      oprot.writeString(self.itemNumber)
3856
      oprot.writeFieldEnd()
4501 mandeep.dh 3857
    if self.itemId is not None:
5530 mandeep.dh 3858
      oprot.writeFieldBegin('itemId', TType.I64, 2)
4501 mandeep.dh 3859
      oprot.writeI64(self.itemId)
2821 chandransh 3860
      oprot.writeFieldEnd()
5530 mandeep.dh 3861
    if self.fulfilmentWarehouseId is not None:
3862
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 3)
3863
      oprot.writeI64(self.fulfilmentWarehouseId)
2821 chandransh 3864
      oprot.writeFieldEnd()
8565 amar.kumar 3865
    if self.billingWarehouseId is not None:
3866
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
3867
      oprot.writeI64(self.billingWarehouseId)
3868
      oprot.writeFieldEnd()
2821 chandransh 3869
    oprot.writeFieldStop()
3870
    oprot.writeStructEnd()
3871
 
3431 rajveer 3872
  def validate(self):
3873
    return
3874
 
3875
 
2821 chandransh 3876
  def __repr__(self):
3877
    L = ['%s=%r' % (key, value)
3878
      for key, value in self.__dict__.iteritems()]
3879
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3880
 
3881
  def __eq__(self, other):
3882
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3883
 
3884
  def __ne__(self, other):
3885
    return not (self == other)
3886
 
5361 mandeep.dh 3887
class getNonSeralizedInventoryItem_result:
2821 chandransh 3888
  """
3889
  Attributes:
3890
   - success
5361 mandeep.dh 3891
   - wex
2821 chandransh 3892
  """
3893
 
3894
  thrift_spec = (
5361 mandeep.dh 3895
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
3896
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
2821 chandransh 3897
  )
3898
 
5361 mandeep.dh 3899
  def __init__(self, success=None, wex=None,):
2821 chandransh 3900
    self.success = success
5361 mandeep.dh 3901
    self.wex = wex
2821 chandransh 3902
 
3903
  def read(self, iprot):
3904
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3905
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3906
      return
3907
    iprot.readStructBegin()
3908
    while True:
3909
      (fname, ftype, fid) = iprot.readFieldBegin()
3910
      if ftype == TType.STOP:
3911
        break
3912
      if fid == 0:
5361 mandeep.dh 3913
        if ftype == TType.STRUCT:
3914
          self.success = InventoryItem()
3915
          self.success.read(iprot)
2821 chandransh 3916
        else:
3917
          iprot.skip(ftype)
5361 mandeep.dh 3918
      elif fid == 1:
3919
        if ftype == TType.STRUCT:
3920
          self.wex = WarehouseServiceException()
3921
          self.wex.read(iprot)
2821 chandransh 3922
        else:
3923
          iprot.skip(ftype)
3924
      else:
3925
        iprot.skip(ftype)
3926
      iprot.readFieldEnd()
3927
    iprot.readStructEnd()
3928
 
3929
  def write(self, oprot):
3930
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3931
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3932
      return
5361 mandeep.dh 3933
    oprot.writeStructBegin('getNonSeralizedInventoryItem_result')
3431 rajveer 3934
    if self.success is not None:
5361 mandeep.dh 3935
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3936
      self.success.write(oprot)
2821 chandransh 3937
      oprot.writeFieldEnd()
5361 mandeep.dh 3938
    if self.wex is not None:
3939
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
3940
      self.wex.write(oprot)
3383 chandransh 3941
      oprot.writeFieldEnd()
3942
    oprot.writeFieldStop()
3943
    oprot.writeStructEnd()
3944
 
3431 rajveer 3945
  def validate(self):
3946
    return
3947
 
3948
 
3383 chandransh 3949
  def __repr__(self):
3950
    L = ['%s=%r' % (key, value)
3951
      for key, value in self.__dict__.iteritems()]
3952
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3953
 
3954
  def __eq__(self, other):
3955
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3956
 
3957
  def __ne__(self, other):
3958
    return not (self == other)
3959
 
4501 mandeep.dh 3960
class scan_args:
2821 chandransh 3961
  """
3962
  Attributes:
5361 mandeep.dh 3963
   - inventoryItem
2821 chandransh 3964
   - type
4501 mandeep.dh 3965
   - quantity
5361 mandeep.dh 3966
   - billingWarehouseId
7410 amar.kumar 3967
   - transferLotId
2821 chandransh 3968
  """
3969
 
3970
  thrift_spec = (
3971
    None, # 0
5361 mandeep.dh 3972
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4501 mandeep.dh 3973
    (2, TType.I32, 'type', None, None, ), # 2
3974
    (3, TType.I64, 'quantity', None, None, ), # 3
5361 mandeep.dh 3975
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
7410 amar.kumar 3976
    (5, TType.I64, 'transferLotId', None, None, ), # 5
2821 chandransh 3977
  )
3978
 
7410 amar.kumar 3979
  def __init__(self, inventoryItem=None, type=None, quantity=None, billingWarehouseId=None, transferLotId=None,):
5361 mandeep.dh 3980
    self.inventoryItem = inventoryItem
2821 chandransh 3981
    self.type = type
4501 mandeep.dh 3982
    self.quantity = quantity
5361 mandeep.dh 3983
    self.billingWarehouseId = billingWarehouseId
7410 amar.kumar 3984
    self.transferLotId = transferLotId
2821 chandransh 3985
 
3986
  def read(self, iprot):
3987
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3988
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3989
      return
3990
    iprot.readStructBegin()
3991
    while True:
3992
      (fname, ftype, fid) = iprot.readFieldBegin()
3993
      if ftype == TType.STOP:
3994
        break
3995
      if fid == 1:
5361 mandeep.dh 3996
        if ftype == TType.STRUCT:
3997
          self.inventoryItem = InventoryItem()
3998
          self.inventoryItem.read(iprot)
2821 chandransh 3999
        else:
4000
          iprot.skip(ftype)
4001
      elif fid == 2:
4501 mandeep.dh 4002
        if ftype == TType.I32:
4003
          self.type = iprot.readI32();
2821 chandransh 4004
        else:
4005
          iprot.skip(ftype)
3383 chandransh 4006
      elif fid == 3:
4501 mandeep.dh 4007
        if ftype == TType.I64:
4008
          self.quantity = iprot.readI64();
2821 chandransh 4009
        else:
4010
          iprot.skip(ftype)
3383 chandransh 4011
      elif fid == 4:
4501 mandeep.dh 4012
        if ftype == TType.I64:
5361 mandeep.dh 4013
          self.billingWarehouseId = iprot.readI64();
2821 chandransh 4014
        else:
4015
          iprot.skip(ftype)
7410 amar.kumar 4016
      elif fid == 5:
4017
        if ftype == TType.I64:
4018
          self.transferLotId = iprot.readI64();
4019
        else:
4020
          iprot.skip(ftype)
2821 chandransh 4021
      else:
4022
        iprot.skip(ftype)
4023
      iprot.readFieldEnd()
4024
    iprot.readStructEnd()
4025
 
4026
  def write(self, oprot):
4027
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4028
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4029
      return
4501 mandeep.dh 4030
    oprot.writeStructBegin('scan_args')
5361 mandeep.dh 4031
    if self.inventoryItem is not None:
4032
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
4033
      self.inventoryItem.write(oprot)
2821 chandransh 4034
      oprot.writeFieldEnd()
3431 rajveer 4035
    if self.type is not None:
4501 mandeep.dh 4036
      oprot.writeFieldBegin('type', TType.I32, 2)
2821 chandransh 4037
      oprot.writeI32(self.type)
4038
      oprot.writeFieldEnd()
4501 mandeep.dh 4039
    if self.quantity is not None:
4040
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4041
      oprot.writeI64(self.quantity)
4042
      oprot.writeFieldEnd()
5361 mandeep.dh 4043
    if self.billingWarehouseId is not None:
4044
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
4045
      oprot.writeI64(self.billingWarehouseId)
4501 mandeep.dh 4046
      oprot.writeFieldEnd()
7410 amar.kumar 4047
    if self.transferLotId is not None:
4048
      oprot.writeFieldBegin('transferLotId', TType.I64, 5)
4049
      oprot.writeI64(self.transferLotId)
4050
      oprot.writeFieldEnd()
2821 chandransh 4051
    oprot.writeFieldStop()
4052
    oprot.writeStructEnd()
4053
 
3431 rajveer 4054
  def validate(self):
4055
    return
4056
 
4057
 
2821 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_result:
2821 chandransh 4070
  """
4071
  Attributes:
4072
   - wex
4073
  """
4074
 
4075
  thrift_spec = (
4076
    None, # 0
4077
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4078
  )
4079
 
4080
  def __init__(self, wex=None,):
4081
    self.wex = wex
4082
 
4083
  def read(self, iprot):
4084
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4085
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4086
      return
4087
    iprot.readStructBegin()
4088
    while True:
4089
      (fname, ftype, fid) = iprot.readFieldBegin()
4090
      if ftype == TType.STOP:
4091
        break
4092
      if fid == 1:
4093
        if ftype == TType.STRUCT:
4094
          self.wex = WarehouseServiceException()
4095
          self.wex.read(iprot)
4096
        else:
4097
          iprot.skip(ftype)
4098
      else:
4099
        iprot.skip(ftype)
4100
      iprot.readFieldEnd()
4101
    iprot.readStructEnd()
4102
 
4103
  def write(self, oprot):
4104
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4105
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4106
      return
4501 mandeep.dh 4107
    oprot.writeStructBegin('scan_result')
3431 rajveer 4108
    if self.wex is not None:
2821 chandransh 4109
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4110
      self.wex.write(oprot)
4111
      oprot.writeFieldEnd()
4112
    oprot.writeFieldStop()
4113
    oprot.writeStructEnd()
4114
 
3431 rajveer 4115
  def validate(self):
4116
    return
4117
 
4118
 
2821 chandransh 4119
  def __repr__(self):
4120
    L = ['%s=%r' % (key, value)
4121
      for key, value in self.__dict__.iteritems()]
4122
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4123
 
4124
  def __eq__(self, other):
4125
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4126
 
4127
  def __ne__(self, other):
4128
    return not (self == other)
4129
 
10489 amar.kumar 4130
class genericScan_args:
4131
  """
4132
  Attributes:
4133
   - inventoryItem
4134
   - scan
4135
  """
4136
 
4137
  thrift_spec = (
4138
    None, # 0
4139
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4140
    (2, TType.STRUCT, 'scan', (Scan, Scan.thrift_spec), None, ), # 2
4141
  )
4142
 
4143
  def __init__(self, inventoryItem=None, scan=None,):
4144
    self.inventoryItem = inventoryItem
4145
    self.scan = scan
4146
 
4147
  def read(self, iprot):
4148
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4149
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4150
      return
4151
    iprot.readStructBegin()
4152
    while True:
4153
      (fname, ftype, fid) = iprot.readFieldBegin()
4154
      if ftype == TType.STOP:
4155
        break
4156
      if fid == 1:
4157
        if ftype == TType.STRUCT:
4158
          self.inventoryItem = InventoryItem()
4159
          self.inventoryItem.read(iprot)
4160
        else:
4161
          iprot.skip(ftype)
4162
      elif fid == 2:
4163
        if ftype == TType.STRUCT:
4164
          self.scan = Scan()
4165
          self.scan.read(iprot)
4166
        else:
4167
          iprot.skip(ftype)
4168
      else:
4169
        iprot.skip(ftype)
4170
      iprot.readFieldEnd()
4171
    iprot.readStructEnd()
4172
 
4173
  def write(self, oprot):
4174
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4175
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4176
      return
4177
    oprot.writeStructBegin('genericScan_args')
4178
    if self.inventoryItem is not None:
4179
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
4180
      self.inventoryItem.write(oprot)
4181
      oprot.writeFieldEnd()
4182
    if self.scan is not None:
4183
      oprot.writeFieldBegin('scan', TType.STRUCT, 2)
4184
      self.scan.write(oprot)
4185
      oprot.writeFieldEnd()
4186
    oprot.writeFieldStop()
4187
    oprot.writeStructEnd()
4188
 
4189
  def validate(self):
4190
    return
4191
 
4192
 
4193
  def __repr__(self):
4194
    L = ['%s=%r' % (key, value)
4195
      for key, value in self.__dict__.iteritems()]
4196
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4197
 
4198
  def __eq__(self, other):
4199
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4200
 
4201
  def __ne__(self, other):
4202
    return not (self == other)
4203
 
4204
class genericScan_result:
4205
  """
4206
  Attributes:
4207
   - wex
4208
  """
4209
 
4210
  thrift_spec = (
4211
    None, # 0
4212
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4213
  )
4214
 
4215
  def __init__(self, wex=None,):
4216
    self.wex = wex
4217
 
4218
  def read(self, iprot):
4219
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4220
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4221
      return
4222
    iprot.readStructBegin()
4223
    while True:
4224
      (fname, ftype, fid) = iprot.readFieldBegin()
4225
      if ftype == TType.STOP:
4226
        break
4227
      if fid == 1:
4228
        if ftype == TType.STRUCT:
4229
          self.wex = WarehouseServiceException()
4230
          self.wex.read(iprot)
4231
        else:
4232
          iprot.skip(ftype)
4233
      else:
4234
        iprot.skip(ftype)
4235
      iprot.readFieldEnd()
4236
    iprot.readStructEnd()
4237
 
4238
  def write(self, oprot):
4239
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4240
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4241
      return
4242
    oprot.writeStructBegin('genericScan_result')
4243
    if self.wex is not None:
4244
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4245
      self.wex.write(oprot)
4246
      oprot.writeFieldEnd()
4247
    oprot.writeFieldStop()
4248
    oprot.writeStructEnd()
4249
 
4250
  def validate(self):
4251
    return
4252
 
4253
 
4254
  def __repr__(self):
4255
    L = ['%s=%r' % (key, value)
4256
      for key, value in self.__dict__.iteritems()]
4257
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4258
 
4259
  def __eq__(self, other):
4260
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4261
 
4262
  def __ne__(self, other):
4263
    return not (self == other)
4264
 
4501 mandeep.dh 4265
class scanSerializedItemForOrder_args:
2821 chandransh 4266
  """
4267
  Attributes:
4555 mandeep.dh 4268
   - serialNumber
2821 chandransh 4269
   - type
4501 mandeep.dh 4270
   - orderId
5110 mandeep.dh 4271
   - fulfilmentWarehouseId
4272
   - quantity
4273
   - billingWarehouseId
2821 chandransh 4274
  """
4275
 
4276
  thrift_spec = (
4277
    None, # 0
4555 mandeep.dh 4278
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
4501 mandeep.dh 4279
    (2, TType.I32, 'type', None, None, ), # 2
4280
    (3, TType.I64, 'orderId', None, None, ), # 3
5110 mandeep.dh 4281
    (4, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 4
4282
    (5, TType.DOUBLE, 'quantity', None, None, ), # 5
4283
    (6, TType.I64, 'billingWarehouseId', None, None, ), # 6
2821 chandransh 4284
  )
4285
 
5110 mandeep.dh 4286
  def __init__(self, serialNumber=None, type=None, orderId=None, fulfilmentWarehouseId=None, quantity=None, billingWarehouseId=None,):
4555 mandeep.dh 4287
    self.serialNumber = serialNumber
2821 chandransh 4288
    self.type = type
4501 mandeep.dh 4289
    self.orderId = orderId
5110 mandeep.dh 4290
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
4291
    self.quantity = quantity
4292
    self.billingWarehouseId = billingWarehouseId
2821 chandransh 4293
 
4294
  def read(self, iprot):
4295
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4296
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4297
      return
4298
    iprot.readStructBegin()
4299
    while True:
4300
      (fname, ftype, fid) = iprot.readFieldBegin()
4301
      if ftype == TType.STOP:
4302
        break
4303
      if fid == 1:
4555 mandeep.dh 4304
        if ftype == TType.STRING:
4305
          self.serialNumber = iprot.readString();
2821 chandransh 4306
        else:
4307
          iprot.skip(ftype)
4308
      elif fid == 2:
4501 mandeep.dh 4309
        if ftype == TType.I32:
4310
          self.type = iprot.readI32();
2821 chandransh 4311
        else:
4312
          iprot.skip(ftype)
4313
      elif fid == 3:
4501 mandeep.dh 4314
        if ftype == TType.I64:
4315
          self.orderId = iprot.readI64();
4316
        else:
4317
          iprot.skip(ftype)
4318
      elif fid == 4:
4319
        if ftype == TType.I64:
5110 mandeep.dh 4320
          self.fulfilmentWarehouseId = iprot.readI64();
4501 mandeep.dh 4321
        else:
4322
          iprot.skip(ftype)
5110 mandeep.dh 4323
      elif fid == 5:
4324
        if ftype == TType.DOUBLE:
4325
          self.quantity = iprot.readDouble();
4326
        else:
4327
          iprot.skip(ftype)
4328
      elif fid == 6:
4329
        if ftype == TType.I64:
4330
          self.billingWarehouseId = iprot.readI64();
4331
        else:
4332
          iprot.skip(ftype)
4501 mandeep.dh 4333
      else:
4334
        iprot.skip(ftype)
4335
      iprot.readFieldEnd()
4336
    iprot.readStructEnd()
4337
 
4338
  def write(self, oprot):
4339
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4340
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4341
      return
4342
    oprot.writeStructBegin('scanSerializedItemForOrder_args')
4555 mandeep.dh 4343
    if self.serialNumber is not None:
4344
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
4345
      oprot.writeString(self.serialNumber)
4501 mandeep.dh 4346
      oprot.writeFieldEnd()
4347
    if self.type is not None:
4348
      oprot.writeFieldBegin('type', TType.I32, 2)
4349
      oprot.writeI32(self.type)
4350
      oprot.writeFieldEnd()
4351
    if self.orderId is not None:
4352
      oprot.writeFieldBegin('orderId', TType.I64, 3)
4353
      oprot.writeI64(self.orderId)
4354
      oprot.writeFieldEnd()
5110 mandeep.dh 4355
    if self.fulfilmentWarehouseId is not None:
4356
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 4)
4357
      oprot.writeI64(self.fulfilmentWarehouseId)
4501 mandeep.dh 4358
      oprot.writeFieldEnd()
5110 mandeep.dh 4359
    if self.quantity is not None:
4360
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
4361
      oprot.writeDouble(self.quantity)
4362
      oprot.writeFieldEnd()
4363
    if self.billingWarehouseId is not None:
4364
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)
4365
      oprot.writeI64(self.billingWarehouseId)
4366
      oprot.writeFieldEnd()
4501 mandeep.dh 4367
    oprot.writeFieldStop()
4368
    oprot.writeStructEnd()
4369
 
4370
  def validate(self):
4371
    return
4372
 
4373
 
4374
  def __repr__(self):
4375
    L = ['%s=%r' % (key, value)
4376
      for key, value in self.__dict__.iteritems()]
4377
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4378
 
4379
  def __eq__(self, other):
4380
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4381
 
4382
  def __ne__(self, other):
4383
    return not (self == other)
4384
 
4385
class scanSerializedItemForOrder_result:
4386
  """
4387
  Attributes:
4388
   - success
4389
   - wex
4390
  """
4391
 
4392
  thrift_spec = (
4555 mandeep.dh 4393
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
4501 mandeep.dh 4394
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4395
  )
4396
 
4397
  def __init__(self, success=None, wex=None,):
4398
    self.success = success
4399
    self.wex = wex
4400
 
4401
  def read(self, iprot):
4402
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4403
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4404
      return
4405
    iprot.readStructBegin()
4406
    while True:
4407
      (fname, ftype, fid) = iprot.readFieldBegin()
4408
      if ftype == TType.STOP:
4409
        break
4410
      if fid == 0:
4555 mandeep.dh 4411
        if ftype == TType.STRUCT:
4412
          self.success = InventoryItem()
4413
          self.success.read(iprot)
4501 mandeep.dh 4414
        else:
4415
          iprot.skip(ftype)
4416
      elif fid == 1:
4417
        if ftype == TType.STRUCT:
4418
          self.wex = WarehouseServiceException()
4419
          self.wex.read(iprot)
4420
        else:
4421
          iprot.skip(ftype)
4422
      else:
4423
        iprot.skip(ftype)
4424
      iprot.readFieldEnd()
4425
    iprot.readStructEnd()
4426
 
4427
  def write(self, oprot):
4428
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4429
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4430
      return
4431
    oprot.writeStructBegin('scanSerializedItemForOrder_result')
4432
    if self.success is not None:
4555 mandeep.dh 4433
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4434
      self.success.write(oprot)
4501 mandeep.dh 4435
      oprot.writeFieldEnd()
4436
    if self.wex is not None:
4437
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4438
      self.wex.write(oprot)
4439
      oprot.writeFieldEnd()
4440
    oprot.writeFieldStop()
4441
    oprot.writeStructEnd()
4442
 
4443
  def validate(self):
4444
    return
4445
 
4446
 
4447
  def __repr__(self):
4448
    L = ['%s=%r' % (key, value)
4449
      for key, value in self.__dict__.iteritems()]
4450
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4451
 
4452
  def __eq__(self, other):
4453
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4454
 
4455
  def __ne__(self, other):
4456
    return not (self == other)
4457
 
4458
class scanForOrder_args:
4459
  """
4460
  Attributes:
5361 mandeep.dh 4461
   - inventoryItem
4501 mandeep.dh 4462
   - type
4463
   - quantity
4464
   - orderId
5110 mandeep.dh 4465
   - fulfilmentWarehouseId
5361 mandeep.dh 4466
   - billingWarehouseId
4501 mandeep.dh 4467
  """
4468
 
4469
  thrift_spec = (
4470
    None, # 0
5361 mandeep.dh 4471
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4501 mandeep.dh 4472
    (2, TType.I32, 'type', None, None, ), # 2
4473
    (3, TType.I64, 'quantity', None, None, ), # 3
4474
    (4, TType.I64, 'orderId', None, None, ), # 4
5110 mandeep.dh 4475
    (5, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 5
5361 mandeep.dh 4476
    (6, TType.I64, 'billingWarehouseId', None, None, ), # 6
4501 mandeep.dh 4477
  )
4478
 
5361 mandeep.dh 4479
  def __init__(self, inventoryItem=None, type=None, quantity=None, orderId=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):
4480
    self.inventoryItem = inventoryItem
4501 mandeep.dh 4481
    self.type = type
4482
    self.quantity = quantity
4483
    self.orderId = orderId
5110 mandeep.dh 4484
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
5361 mandeep.dh 4485
    self.billingWarehouseId = billingWarehouseId
4501 mandeep.dh 4486
 
4487
  def read(self, iprot):
4488
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4489
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4490
      return
4491
    iprot.readStructBegin()
4492
    while True:
4493
      (fname, ftype, fid) = iprot.readFieldBegin()
4494
      if ftype == TType.STOP:
4495
        break
4496
      if fid == 1:
5361 mandeep.dh 4497
        if ftype == TType.STRUCT:
4498
          self.inventoryItem = InventoryItem()
4499
          self.inventoryItem.read(iprot)
4501 mandeep.dh 4500
        else:
4501
          iprot.skip(ftype)
4502
      elif fid == 2:
2821 chandransh 4503
        if ftype == TType.I32:
4504
          self.type = iprot.readI32();
4505
        else:
4506
          iprot.skip(ftype)
4501 mandeep.dh 4507
      elif fid == 3:
4508
        if ftype == TType.I64:
4509
          self.quantity = iprot.readI64();
4510
        else:
4511
          iprot.skip(ftype)
4512
      elif fid == 4:
4513
        if ftype == TType.I64:
4514
          self.orderId = iprot.readI64();
4515
        else:
4516
          iprot.skip(ftype)
4517
      elif fid == 5:
4518
        if ftype == TType.I64:
5110 mandeep.dh 4519
          self.fulfilmentWarehouseId = iprot.readI64();
4501 mandeep.dh 4520
        else:
4521
          iprot.skip(ftype)
5361 mandeep.dh 4522
      elif fid == 6:
4523
        if ftype == TType.I64:
4524
          self.billingWarehouseId = iprot.readI64();
4525
        else:
4526
          iprot.skip(ftype)
2821 chandransh 4527
      else:
4528
        iprot.skip(ftype)
4529
      iprot.readFieldEnd()
4530
    iprot.readStructEnd()
4531
 
4532
  def write(self, oprot):
4533
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4534
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4535
      return
4501 mandeep.dh 4536
    oprot.writeStructBegin('scanForOrder_args')
5361 mandeep.dh 4537
    if self.inventoryItem is not None:
4538
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
4539
      self.inventoryItem.write(oprot)
2821 chandransh 4540
      oprot.writeFieldEnd()
3431 rajveer 4541
    if self.type is not None:
4501 mandeep.dh 4542
      oprot.writeFieldBegin('type', TType.I32, 2)
2821 chandransh 4543
      oprot.writeI32(self.type)
4544
      oprot.writeFieldEnd()
4501 mandeep.dh 4545
    if self.quantity is not None:
4546
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4547
      oprot.writeI64(self.quantity)
4548
      oprot.writeFieldEnd()
4549
    if self.orderId is not None:
4550
      oprot.writeFieldBegin('orderId', TType.I64, 4)
4551
      oprot.writeI64(self.orderId)
4552
      oprot.writeFieldEnd()
5110 mandeep.dh 4553
    if self.fulfilmentWarehouseId is not None:
4554
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 5)
4555
      oprot.writeI64(self.fulfilmentWarehouseId)
4501 mandeep.dh 4556
      oprot.writeFieldEnd()
5361 mandeep.dh 4557
    if self.billingWarehouseId is not None:
4558
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)
4559
      oprot.writeI64(self.billingWarehouseId)
4560
      oprot.writeFieldEnd()
2821 chandransh 4561
    oprot.writeFieldStop()
4562
    oprot.writeStructEnd()
4563
 
3431 rajveer 4564
  def validate(self):
4565
    return
4566
 
4567
 
2821 chandransh 4568
  def __repr__(self):
4569
    L = ['%s=%r' % (key, value)
4570
      for key, value in self.__dict__.iteritems()]
4571
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4572
 
4573
  def __eq__(self, other):
4574
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4575
 
4576
  def __ne__(self, other):
4577
    return not (self == other)
4578
 
4501 mandeep.dh 4579
class scanForOrder_result:
2821 chandransh 4580
  """
4581
  Attributes:
5361 mandeep.dh 4582
   - success
2821 chandransh 4583
   - wex
4584
  """
4585
 
4586
  thrift_spec = (
5361 mandeep.dh 4587
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
2821 chandransh 4588
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4589
  )
4590
 
5361 mandeep.dh 4591
  def __init__(self, success=None, wex=None,):
4592
    self.success = success
2821 chandransh 4593
    self.wex = wex
4594
 
4595
  def read(self, iprot):
4596
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4597
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4598
      return
4599
    iprot.readStructBegin()
4600
    while True:
4601
      (fname, ftype, fid) = iprot.readFieldBegin()
4602
      if ftype == TType.STOP:
4603
        break
5361 mandeep.dh 4604
      if fid == 0:
2821 chandransh 4605
        if ftype == TType.STRUCT:
5361 mandeep.dh 4606
          self.success = InventoryItem()
4607
          self.success.read(iprot)
4608
        else:
4609
          iprot.skip(ftype)
4610
      elif fid == 1:
4611
        if ftype == TType.STRUCT:
2821 chandransh 4612
          self.wex = WarehouseServiceException()
4613
          self.wex.read(iprot)
4614
        else:
4615
          iprot.skip(ftype)
4616
      else:
4617
        iprot.skip(ftype)
4618
      iprot.readFieldEnd()
4619
    iprot.readStructEnd()
4620
 
4621
  def write(self, oprot):
4622
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4623
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4624
      return
4501 mandeep.dh 4625
    oprot.writeStructBegin('scanForOrder_result')
5361 mandeep.dh 4626
    if self.success is not None:
4627
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4628
      self.success.write(oprot)
4629
      oprot.writeFieldEnd()
3431 rajveer 4630
    if self.wex is not None:
2821 chandransh 4631
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4632
      self.wex.write(oprot)
4633
      oprot.writeFieldEnd()
4634
    oprot.writeFieldStop()
4635
    oprot.writeStructEnd()
4636
 
3431 rajveer 4637
  def validate(self):
4638
    return
4639
 
4640
 
2821 chandransh 4641
  def __repr__(self):
4642
    L = ['%s=%r' % (key, value)
4643
      for key, value in self.__dict__.iteritems()]
4644
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4645
 
4646
  def __eq__(self, other):
4647
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4648
 
4649
  def __ne__(self, other):
4650
    return not (self == other)
4501 mandeep.dh 4651
 
4652
class createItemNumberMapping_args:
4653
  """
4654
  Attributes:
4655
   - itemNumber
4656
   - itemId
4657
  """
4658
 
4659
  thrift_spec = (
4660
    None, # 0
4661
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
4662
    (2, TType.I64, 'itemId', None, None, ), # 2
4663
  )
4664
 
4665
  def __init__(self, itemNumber=None, itemId=None,):
4666
    self.itemNumber = itemNumber
4667
    self.itemId = itemId
4668
 
4669
  def read(self, iprot):
4670
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4671
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4672
      return
4673
    iprot.readStructBegin()
4674
    while True:
4675
      (fname, ftype, fid) = iprot.readFieldBegin()
4676
      if ftype == TType.STOP:
4677
        break
4678
      if fid == 1:
4679
        if ftype == TType.STRING:
4680
          self.itemNumber = iprot.readString();
4681
        else:
4682
          iprot.skip(ftype)
4683
      elif fid == 2:
4684
        if ftype == TType.I64:
4685
          self.itemId = iprot.readI64();
4686
        else:
4687
          iprot.skip(ftype)
4688
      else:
4689
        iprot.skip(ftype)
4690
      iprot.readFieldEnd()
4691
    iprot.readStructEnd()
4692
 
4693
  def write(self, oprot):
4694
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4695
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4696
      return
4697
    oprot.writeStructBegin('createItemNumberMapping_args')
4698
    if self.itemNumber is not None:
4699
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
4700
      oprot.writeString(self.itemNumber)
4701
      oprot.writeFieldEnd()
4702
    if self.itemId is not None:
4703
      oprot.writeFieldBegin('itemId', TType.I64, 2)
4704
      oprot.writeI64(self.itemId)
4705
      oprot.writeFieldEnd()
4706
    oprot.writeFieldStop()
4707
    oprot.writeStructEnd()
4708
 
4709
  def validate(self):
4710
    return
4711
 
4712
 
4713
  def __repr__(self):
4714
    L = ['%s=%r' % (key, value)
4715
      for key, value in self.__dict__.iteritems()]
4716
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4717
 
4718
  def __eq__(self, other):
4719
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4720
 
4721
  def __ne__(self, other):
4722
    return not (self == other)
4723
 
4724
class createItemNumberMapping_result:
4725
 
4726
  thrift_spec = (
4727
  )
4728
 
4729
  def read(self, iprot):
4730
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4731
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4732
      return
4733
    iprot.readStructBegin()
4734
    while True:
4735
      (fname, ftype, fid) = iprot.readFieldBegin()
4736
      if ftype == TType.STOP:
4737
        break
4738
      else:
4739
        iprot.skip(ftype)
4740
      iprot.readFieldEnd()
4741
    iprot.readStructEnd()
4742
 
4743
  def write(self, oprot):
4744
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4745
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4746
      return
4747
    oprot.writeStructBegin('createItemNumberMapping_result')
4748
    oprot.writeFieldStop()
4749
    oprot.writeStructEnd()
4750
 
4751
  def validate(self):
4752
    return
4753
 
4754
 
4755
  def __repr__(self):
4756
    L = ['%s=%r' % (key, value)
4757
      for key, value in self.__dict__.iteritems()]
4758
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4759
 
4760
  def __eq__(self, other):
4761
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4762
 
4763
  def __ne__(self, other):
4764
    return not (self == other)
4620 amit.gupta 4765
 
4766
class getItemNumbers_args:
4767
  """
4768
  Attributes:
4769
   - itemId
4770
  """
4771
 
4772
  thrift_spec = (
4773
    None, # 0
4774
    (1, TType.I64, 'itemId', None, None, ), # 1
4775
  )
4776
 
4777
  def __init__(self, itemId=None,):
4778
    self.itemId = itemId
4779
 
4780
  def read(self, iprot):
4781
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4782
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4783
      return
4784
    iprot.readStructBegin()
4785
    while True:
4786
      (fname, ftype, fid) = iprot.readFieldBegin()
4787
      if ftype == TType.STOP:
4788
        break
4789
      if fid == 1:
4790
        if ftype == TType.I64:
4791
          self.itemId = iprot.readI64();
4792
        else:
4793
          iprot.skip(ftype)
4794
      else:
4795
        iprot.skip(ftype)
4796
      iprot.readFieldEnd()
4797
    iprot.readStructEnd()
4798
 
4799
  def write(self, oprot):
4800
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4801
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4802
      return
4803
    oprot.writeStructBegin('getItemNumbers_args')
4804
    if self.itemId is not None:
4805
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4806
      oprot.writeI64(self.itemId)
4807
      oprot.writeFieldEnd()
4808
    oprot.writeFieldStop()
4809
    oprot.writeStructEnd()
4810
 
4811
  def validate(self):
4812
    return
4813
 
4814
 
4815
  def __repr__(self):
4816
    L = ['%s=%r' % (key, value)
4817
      for key, value in self.__dict__.iteritems()]
4818
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4819
 
4820
  def __eq__(self, other):
4821
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4822
 
4823
  def __ne__(self, other):
4824
    return not (self == other)
4825
 
4826
class getItemNumbers_result:
4827
  """
4828
  Attributes:
4829
   - success
4830
  """
4831
 
4832
  thrift_spec = (
4833
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
4834
  )
4835
 
4836
  def __init__(self, success=None,):
4837
    self.success = success
4838
 
4839
  def read(self, iprot):
4840
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4841
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4842
      return
4843
    iprot.readStructBegin()
4844
    while True:
4845
      (fname, ftype, fid) = iprot.readFieldBegin()
4846
      if ftype == TType.STOP:
4847
        break
4848
      if fid == 0:
4849
        if ftype == TType.LIST:
4850
          self.success = []
5361 mandeep.dh 4851
          (_etype3, _size0) = iprot.readListBegin()
4852
          for _i4 in xrange(_size0):
4853
            _elem5 = iprot.readString();
4854
            self.success.append(_elem5)
4620 amit.gupta 4855
          iprot.readListEnd()
4856
        else:
4857
          iprot.skip(ftype)
4858
      else:
4859
        iprot.skip(ftype)
4860
      iprot.readFieldEnd()
4861
    iprot.readStructEnd()
4862
 
4863
  def write(self, oprot):
4864
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4865
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4866
      return
4867
    oprot.writeStructBegin('getItemNumbers_result')
4868
    if self.success is not None:
4869
      oprot.writeFieldBegin('success', TType.LIST, 0)
4870
      oprot.writeListBegin(TType.STRING, len(self.success))
5361 mandeep.dh 4871
      for iter6 in self.success:
4872
        oprot.writeString(iter6)
4620 amit.gupta 4873
      oprot.writeListEnd()
4874
      oprot.writeFieldEnd()
4875
    oprot.writeFieldStop()
4876
    oprot.writeStructEnd()
4877
 
4878
  def validate(self):
4879
    return
4880
 
4881
 
4882
  def __repr__(self):
4883
    L = ['%s=%r' % (key, value)
4884
      for key, value in self.__dict__.iteritems()]
4885
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4886
 
4887
  def __eq__(self, other):
4888
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4889
 
4890
  def __ne__(self, other):
4891
    return not (self == other)
5110 mandeep.dh 4892
 
4893
class getItemIds_args:
4894
  """
4895
  Attributes:
4896
   - itemNumber
4897
  """
4898
 
4899
  thrift_spec = (
4900
    None, # 0
4901
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
4902
  )
4903
 
4904
  def __init__(self, itemNumber=None,):
4905
    self.itemNumber = itemNumber
4906
 
4907
  def read(self, iprot):
4908
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4909
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4910
      return
4911
    iprot.readStructBegin()
4912
    while True:
4913
      (fname, ftype, fid) = iprot.readFieldBegin()
4914
      if ftype == TType.STOP:
4915
        break
4916
      if fid == 1:
4917
        if ftype == TType.STRING:
4918
          self.itemNumber = iprot.readString();
4919
        else:
4920
          iprot.skip(ftype)
4921
      else:
4922
        iprot.skip(ftype)
4923
      iprot.readFieldEnd()
4924
    iprot.readStructEnd()
4925
 
4926
  def write(self, oprot):
4927
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4928
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4929
      return
4930
    oprot.writeStructBegin('getItemIds_args')
4931
    if self.itemNumber is not None:
4932
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
4933
      oprot.writeString(self.itemNumber)
4934
      oprot.writeFieldEnd()
4935
    oprot.writeFieldStop()
4936
    oprot.writeStructEnd()
4937
 
4938
  def validate(self):
4939
    return
4940
 
4941
 
4942
  def __repr__(self):
4943
    L = ['%s=%r' % (key, value)
4944
      for key, value in self.__dict__.iteritems()]
4945
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4946
 
4947
  def __eq__(self, other):
4948
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4949
 
4950
  def __ne__(self, other):
4951
    return not (self == other)
4952
 
4953
class getItemIds_result:
4954
  """
4955
  Attributes:
4956
   - success
4957
  """
4958
 
4959
  thrift_spec = (
4960
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
4961
  )
4962
 
4963
  def __init__(self, success=None,):
4964
    self.success = success
4965
 
4966
  def read(self, iprot):
4967
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4968
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4969
      return
4970
    iprot.readStructBegin()
4971
    while True:
4972
      (fname, ftype, fid) = iprot.readFieldBegin()
4973
      if ftype == TType.STOP:
4974
        break
4975
      if fid == 0:
4976
        if ftype == TType.LIST:
4977
          self.success = []
5361 mandeep.dh 4978
          (_etype10, _size7) = iprot.readListBegin()
4979
          for _i11 in xrange(_size7):
4980
            _elem12 = iprot.readI64();
4981
            self.success.append(_elem12)
5110 mandeep.dh 4982
          iprot.readListEnd()
4983
        else:
4984
          iprot.skip(ftype)
4985
      else:
4986
        iprot.skip(ftype)
4987
      iprot.readFieldEnd()
4988
    iprot.readStructEnd()
4989
 
4990
  def write(self, oprot):
4991
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4992
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4993
      return
4994
    oprot.writeStructBegin('getItemIds_result')
4995
    if self.success is not None:
4996
      oprot.writeFieldBegin('success', TType.LIST, 0)
4997
      oprot.writeListBegin(TType.I64, len(self.success))
5361 mandeep.dh 4998
      for iter13 in self.success:
4999
        oprot.writeI64(iter13)
5110 mandeep.dh 5000
      oprot.writeListEnd()
5001
      oprot.writeFieldEnd()
5002
    oprot.writeFieldStop()
5003
    oprot.writeStructEnd()
5004
 
5005
  def validate(self):
5006
    return
5007
 
5008
 
5009
  def __repr__(self):
5010
    L = ['%s=%r' % (key, value)
5011
      for key, value in self.__dict__.iteritems()]
5012
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5013
 
5014
  def __eq__(self, other):
5015
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5016
 
5017
  def __ne__(self, other):
5018
    return not (self == other)
5185 mandeep.dh 5019
 
5020
class getInventoryItemsFromLastScanType_args:
5021
  """
5022
  Attributes:
5023
   - lastScanType
5024
  """
5025
 
5026
  thrift_spec = (
5027
    None, # 0
5028
    (1, TType.I32, 'lastScanType', None, None, ), # 1
5029
  )
5030
 
5031
  def __init__(self, lastScanType=None,):
5032
    self.lastScanType = lastScanType
5033
 
5034
  def read(self, iprot):
5035
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5036
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5037
      return
5038
    iprot.readStructBegin()
5039
    while True:
5040
      (fname, ftype, fid) = iprot.readFieldBegin()
5041
      if ftype == TType.STOP:
5042
        break
5043
      if fid == 1:
5044
        if ftype == TType.I32:
5045
          self.lastScanType = iprot.readI32();
5046
        else:
5047
          iprot.skip(ftype)
5048
      else:
5049
        iprot.skip(ftype)
5050
      iprot.readFieldEnd()
5051
    iprot.readStructEnd()
5052
 
5053
  def write(self, oprot):
5054
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5055
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5056
      return
5057
    oprot.writeStructBegin('getInventoryItemsFromLastScanType_args')
5058
    if self.lastScanType is not None:
5059
      oprot.writeFieldBegin('lastScanType', TType.I32, 1)
5060
      oprot.writeI32(self.lastScanType)
5061
      oprot.writeFieldEnd()
5062
    oprot.writeFieldStop()
5063
    oprot.writeStructEnd()
5064
 
5065
  def validate(self):
5066
    return
5067
 
5068
 
5069
  def __repr__(self):
5070
    L = ['%s=%r' % (key, value)
5071
      for key, value in self.__dict__.iteritems()]
5072
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5073
 
5074
  def __eq__(self, other):
5075
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5076
 
5077
  def __ne__(self, other):
5078
    return not (self == other)
5079
 
5080
class getInventoryItemsFromLastScanType_result:
5081
  """
5082
  Attributes:
5083
   - success
5084
   - wex
5085
  """
5086
 
5087
  thrift_spec = (
5088
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
5089
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
5090
  )
5091
 
5092
  def __init__(self, success=None, wex=None,):
5093
    self.success = success
5094
    self.wex = wex
5095
 
5096
  def read(self, iprot):
5097
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5098
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5099
      return
5100
    iprot.readStructBegin()
5101
    while True:
5102
      (fname, ftype, fid) = iprot.readFieldBegin()
5103
      if ftype == TType.STOP:
5104
        break
5105
      if fid == 0:
5106
        if ftype == TType.LIST:
5107
          self.success = []
5361 mandeep.dh 5108
          (_etype17, _size14) = iprot.readListBegin()
5109
          for _i18 in xrange(_size14):
5110
            _elem19 = InventoryItem()
5111
            _elem19.read(iprot)
5112
            self.success.append(_elem19)
5185 mandeep.dh 5113
          iprot.readListEnd()
5114
        else:
5115
          iprot.skip(ftype)
5116
      elif fid == 1:
5117
        if ftype == TType.STRUCT:
5118
          self.wex = WarehouseServiceException()
5119
          self.wex.read(iprot)
5120
        else:
5121
          iprot.skip(ftype)
5122
      else:
5123
        iprot.skip(ftype)
5124
      iprot.readFieldEnd()
5125
    iprot.readStructEnd()
5126
 
5127
  def write(self, oprot):
5128
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5129
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5130
      return
5131
    oprot.writeStructBegin('getInventoryItemsFromLastScanType_result')
5132
    if self.success is not None:
5133
      oprot.writeFieldBegin('success', TType.LIST, 0)
5134
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5361 mandeep.dh 5135
      for iter20 in self.success:
5136
        iter20.write(oprot)
5185 mandeep.dh 5137
      oprot.writeListEnd()
5138
      oprot.writeFieldEnd()
5139
    if self.wex is not None:
5140
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
5141
      self.wex.write(oprot)
5142
      oprot.writeFieldEnd()
5143
    oprot.writeFieldStop()
5144
    oprot.writeStructEnd()
5145
 
5146
  def validate(self):
5147
    return
5148
 
5149
 
5150
  def __repr__(self):
5151
    L = ['%s=%r' % (key, value)
5152
      for key, value in self.__dict__.iteritems()]
5153
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5154
 
5155
  def __eq__(self, other):
5156
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5157
 
5158
  def __ne__(self, other):
5159
    return not (self == other)
5160
 
5161
class getInventoryItemFromId_args:
5162
  """
5163
  Attributes:
5164
   - inventoryItemId
5165
  """
5166
 
5167
  thrift_spec = (
5168
    None, # 0
5169
    (1, TType.I64, 'inventoryItemId', None, None, ), # 1
5170
  )
5171
 
5172
  def __init__(self, inventoryItemId=None,):
5173
    self.inventoryItemId = inventoryItemId
5174
 
5175
  def read(self, iprot):
5176
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5177
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5178
      return
5179
    iprot.readStructBegin()
5180
    while True:
5181
      (fname, ftype, fid) = iprot.readFieldBegin()
5182
      if ftype == TType.STOP:
5183
        break
5184
      if fid == 1:
5185
        if ftype == TType.I64:
5186
          self.inventoryItemId = iprot.readI64();
5187
        else:
5188
          iprot.skip(ftype)
5189
      else:
5190
        iprot.skip(ftype)
5191
      iprot.readFieldEnd()
5192
    iprot.readStructEnd()
5193
 
5194
  def write(self, oprot):
5195
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5196
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5197
      return
5198
    oprot.writeStructBegin('getInventoryItemFromId_args')
5199
    if self.inventoryItemId is not None:
5200
      oprot.writeFieldBegin('inventoryItemId', TType.I64, 1)
5201
      oprot.writeI64(self.inventoryItemId)
5202
      oprot.writeFieldEnd()
5203
    oprot.writeFieldStop()
5204
    oprot.writeStructEnd()
5205
 
5206
  def validate(self):
5207
    return
5208
 
5209
 
5210
  def __repr__(self):
5211
    L = ['%s=%r' % (key, value)
5212
      for key, value in self.__dict__.iteritems()]
5213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5214
 
5215
  def __eq__(self, other):
5216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5217
 
5218
  def __ne__(self, other):
5219
    return not (self == other)
5220
 
5221
class getInventoryItemFromId_result:
5222
  """
5223
  Attributes:
5224
   - success
5225
   - wex
5226
  """
5227
 
5228
  thrift_spec = (
5229
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
5230
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
5231
  )
5232
 
5233
  def __init__(self, success=None, wex=None,):
5234
    self.success = success
5235
    self.wex = wex
5236
 
5237
  def read(self, iprot):
5238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5240
      return
5241
    iprot.readStructBegin()
5242
    while True:
5243
      (fname, ftype, fid) = iprot.readFieldBegin()
5244
      if ftype == TType.STOP:
5245
        break
5246
      if fid == 0:
5247
        if ftype == TType.STRUCT:
5248
          self.success = InventoryItem()
5249
          self.success.read(iprot)
5250
        else:
5251
          iprot.skip(ftype)
5252
      elif fid == 1:
5253
        if ftype == TType.STRUCT:
5254
          self.wex = WarehouseServiceException()
5255
          self.wex.read(iprot)
5256
        else:
5257
          iprot.skip(ftype)
5258
      else:
5259
        iprot.skip(ftype)
5260
      iprot.readFieldEnd()
5261
    iprot.readStructEnd()
5262
 
5263
  def write(self, oprot):
5264
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5265
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5266
      return
5267
    oprot.writeStructBegin('getInventoryItemFromId_result')
5268
    if self.success is not None:
5269
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5270
      self.success.write(oprot)
5271
      oprot.writeFieldEnd()
5272
    if self.wex is not None:
5273
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
5274
      self.wex.write(oprot)
5275
      oprot.writeFieldEnd()
5276
    oprot.writeFieldStop()
5277
    oprot.writeStructEnd()
5278
 
5279
  def validate(self):
5280
    return
5281
 
5282
 
5283
  def __repr__(self):
5284
    L = ['%s=%r' % (key, value)
5285
      for key, value in self.__dict__.iteritems()]
5286
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5287
 
5288
  def __eq__(self, other):
5289
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5290
 
5291
  def __ne__(self, other):
5292
    return not (self == other)
5372 mandeep.dh 5293
 
5294
class getPurchaseScans_args:
5295
  """
5296
  Attributes:
5297
   - startDate
5298
   - endDate
5299
  """
5300
 
5301
  thrift_spec = (
5302
    None, # 0
5303
    (1, TType.I64, 'startDate', None, None, ), # 1
5304
    (2, TType.I64, 'endDate', None, None, ), # 2
5305
  )
5306
 
5307
  def __init__(self, startDate=None, endDate=None,):
5308
    self.startDate = startDate
5309
    self.endDate = endDate
5310
 
5311
  def read(self, iprot):
5312
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5313
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5314
      return
5315
    iprot.readStructBegin()
5316
    while True:
5317
      (fname, ftype, fid) = iprot.readFieldBegin()
5318
      if ftype == TType.STOP:
5319
        break
5320
      if fid == 1:
5321
        if ftype == TType.I64:
5322
          self.startDate = iprot.readI64();
5323
        else:
5324
          iprot.skip(ftype)
5325
      elif fid == 2:
5326
        if ftype == TType.I64:
5327
          self.endDate = iprot.readI64();
5328
        else:
5329
          iprot.skip(ftype)
5330
      else:
5331
        iprot.skip(ftype)
5332
      iprot.readFieldEnd()
5333
    iprot.readStructEnd()
5334
 
5335
  def write(self, oprot):
5336
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5337
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5338
      return
5339
    oprot.writeStructBegin('getPurchaseScans_args')
5340
    if self.startDate is not None:
5341
      oprot.writeFieldBegin('startDate', TType.I64, 1)
5342
      oprot.writeI64(self.startDate)
5343
      oprot.writeFieldEnd()
5344
    if self.endDate is not None:
5345
      oprot.writeFieldBegin('endDate', TType.I64, 2)
5346
      oprot.writeI64(self.endDate)
5347
      oprot.writeFieldEnd()
5348
    oprot.writeFieldStop()
5349
    oprot.writeStructEnd()
5350
 
5351
  def validate(self):
5352
    return
5353
 
5354
 
5355
  def __repr__(self):
5356
    L = ['%s=%r' % (key, value)
5357
      for key, value in self.__dict__.iteritems()]
5358
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5359
 
5360
  def __eq__(self, other):
5361
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5362
 
5363
  def __ne__(self, other):
5364
    return not (self == other)
5365
 
5366
class getPurchaseScans_result:
5367
  """
5368
  Attributes:
5369
   - success
5370
  """
5371
 
5372
  thrift_spec = (
5373
    (0, TType.LIST, 'success', (TType.STRUCT,(DetailedPurchaseScan, DetailedPurchaseScan.thrift_spec)), None, ), # 0
5374
  )
5375
 
5376
  def __init__(self, success=None,):
5377
    self.success = success
5378
 
5379
  def read(self, iprot):
5380
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5381
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5382
      return
5383
    iprot.readStructBegin()
5384
    while True:
5385
      (fname, ftype, fid) = iprot.readFieldBegin()
5386
      if ftype == TType.STOP:
5387
        break
5388
      if fid == 0:
5389
        if ftype == TType.LIST:
5390
          self.success = []
5391
          (_etype24, _size21) = iprot.readListBegin()
5392
          for _i25 in xrange(_size21):
5393
            _elem26 = DetailedPurchaseScan()
5394
            _elem26.read(iprot)
5395
            self.success.append(_elem26)
5396
          iprot.readListEnd()
5397
        else:
5398
          iprot.skip(ftype)
5399
      else:
5400
        iprot.skip(ftype)
5401
      iprot.readFieldEnd()
5402
    iprot.readStructEnd()
5403
 
5404
  def write(self, oprot):
5405
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5406
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5407
      return
5408
    oprot.writeStructBegin('getPurchaseScans_result')
5409
    if self.success is not None:
5410
      oprot.writeFieldBegin('success', TType.LIST, 0)
5411
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5412
      for iter27 in self.success:
5413
        iter27.write(oprot)
5414
      oprot.writeListEnd()
5415
      oprot.writeFieldEnd()
5416
    oprot.writeFieldStop()
5417
    oprot.writeStructEnd()
5418
 
5419
  def validate(self):
5420
    return
5421
 
5422
 
5423
  def __repr__(self):
5424
    L = ['%s=%r' % (key, value)
5425
      for key, value in self.__dict__.iteritems()]
5426
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5427
 
5428
  def __eq__(self, other):
5429
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5430
 
5431
  def __ne__(self, other):
5432
    return not (self == other)
5496 mandeep.dh 5433
 
7216 amar.kumar 5434
class getPurchaseScansByGrnDate_args:
5435
  """
5436
  Attributes:
5437
   - startDate
5438
   - endDate
5439
  """
5440
 
5441
  thrift_spec = (
5442
    None, # 0
5443
    (1, TType.I64, 'startDate', None, None, ), # 1
5444
    (2, TType.I64, 'endDate', None, None, ), # 2
5445
  )
5446
 
5447
  def __init__(self, startDate=None, endDate=None,):
5448
    self.startDate = startDate
5449
    self.endDate = endDate
5450
 
5451
  def read(self, iprot):
5452
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5453
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5454
      return
5455
    iprot.readStructBegin()
5456
    while True:
5457
      (fname, ftype, fid) = iprot.readFieldBegin()
5458
      if ftype == TType.STOP:
5459
        break
5460
      if fid == 1:
5461
        if ftype == TType.I64:
5462
          self.startDate = iprot.readI64();
5463
        else:
5464
          iprot.skip(ftype)
5465
      elif fid == 2:
5466
        if ftype == TType.I64:
5467
          self.endDate = iprot.readI64();
5468
        else:
5469
          iprot.skip(ftype)
5470
      else:
5471
        iprot.skip(ftype)
5472
      iprot.readFieldEnd()
5473
    iprot.readStructEnd()
5474
 
5475
  def write(self, oprot):
5476
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5477
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5478
      return
5479
    oprot.writeStructBegin('getPurchaseScansByGrnDate_args')
5480
    if self.startDate is not None:
5481
      oprot.writeFieldBegin('startDate', TType.I64, 1)
5482
      oprot.writeI64(self.startDate)
5483
      oprot.writeFieldEnd()
5484
    if self.endDate is not None:
5485
      oprot.writeFieldBegin('endDate', TType.I64, 2)
5486
      oprot.writeI64(self.endDate)
5487
      oprot.writeFieldEnd()
5488
    oprot.writeFieldStop()
5489
    oprot.writeStructEnd()
5490
 
5491
  def validate(self):
5492
    return
5493
 
5494
 
5495
  def __repr__(self):
5496
    L = ['%s=%r' % (key, value)
5497
      for key, value in self.__dict__.iteritems()]
5498
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5499
 
5500
  def __eq__(self, other):
5501
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5502
 
5503
  def __ne__(self, other):
5504
    return not (self == other)
5505
 
5506
class getPurchaseScansByGrnDate_result:
5507
  """
5508
  Attributes:
5509
   - success
5510
  """
5511
 
5512
  thrift_spec = (
5513
    (0, TType.LIST, 'success', (TType.STRUCT,(DetailedPurchaseScan, DetailedPurchaseScan.thrift_spec)), None, ), # 0
5514
  )
5515
 
5516
  def __init__(self, success=None,):
5517
    self.success = success
5518
 
5519
  def read(self, iprot):
5520
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5521
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5522
      return
5523
    iprot.readStructBegin()
5524
    while True:
5525
      (fname, ftype, fid) = iprot.readFieldBegin()
5526
      if ftype == TType.STOP:
5527
        break
5528
      if fid == 0:
5529
        if ftype == TType.LIST:
5530
          self.success = []
5531
          (_etype31, _size28) = iprot.readListBegin()
5532
          for _i32 in xrange(_size28):
5533
            _elem33 = DetailedPurchaseScan()
5534
            _elem33.read(iprot)
5535
            self.success.append(_elem33)
5536
          iprot.readListEnd()
5537
        else:
5538
          iprot.skip(ftype)
5539
      else:
5540
        iprot.skip(ftype)
5541
      iprot.readFieldEnd()
5542
    iprot.readStructEnd()
5543
 
5544
  def write(self, oprot):
5545
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5546
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5547
      return
5548
    oprot.writeStructBegin('getPurchaseScansByGrnDate_result')
5549
    if self.success is not None:
5550
      oprot.writeFieldBegin('success', TType.LIST, 0)
5551
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5552
      for iter34 in self.success:
5553
        iter34.write(oprot)
5554
      oprot.writeListEnd()
5555
      oprot.writeFieldEnd()
5556
    oprot.writeFieldStop()
5557
    oprot.writeStructEnd()
5558
 
5559
  def validate(self):
5560
    return
5561
 
5562
 
5563
  def __repr__(self):
5564
    L = ['%s=%r' % (key, value)
5565
      for key, value in self.__dict__.iteritems()]
5566
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5567
 
5568
  def __eq__(self, other):
5569
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5570
 
5571
  def __ne__(self, other):
5572
    return not (self == other)
5573
 
10407 amar.kumar 5574
class getEmptyGrnsByDate_args:
5575
  """
5576
  Attributes:
5577
   - startDate
5578
   - endDate
5579
  """
5580
 
5581
  thrift_spec = (
5582
    None, # 0
5583
    (1, TType.I64, 'startDate', None, None, ), # 1
5584
    (2, TType.I64, 'endDate', None, None, ), # 2
5585
  )
5586
 
5587
  def __init__(self, startDate=None, endDate=None,):
5588
    self.startDate = startDate
5589
    self.endDate = endDate
5590
 
5591
  def read(self, iprot):
5592
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5593
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5594
      return
5595
    iprot.readStructBegin()
5596
    while True:
5597
      (fname, ftype, fid) = iprot.readFieldBegin()
5598
      if ftype == TType.STOP:
5599
        break
5600
      if fid == 1:
5601
        if ftype == TType.I64:
5602
          self.startDate = iprot.readI64();
5603
        else:
5604
          iprot.skip(ftype)
5605
      elif fid == 2:
5606
        if ftype == TType.I64:
5607
          self.endDate = iprot.readI64();
5608
        else:
5609
          iprot.skip(ftype)
5610
      else:
5611
        iprot.skip(ftype)
5612
      iprot.readFieldEnd()
5613
    iprot.readStructEnd()
5614
 
5615
  def write(self, oprot):
5616
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5617
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5618
      return
5619
    oprot.writeStructBegin('getEmptyGrnsByDate_args')
5620
    if self.startDate is not None:
5621
      oprot.writeFieldBegin('startDate', TType.I64, 1)
5622
      oprot.writeI64(self.startDate)
5623
      oprot.writeFieldEnd()
5624
    if self.endDate is not None:
5625
      oprot.writeFieldBegin('endDate', TType.I64, 2)
5626
      oprot.writeI64(self.endDate)
5627
      oprot.writeFieldEnd()
5628
    oprot.writeFieldStop()
5629
    oprot.writeStructEnd()
5630
 
5631
  def validate(self):
5632
    return
5633
 
5634
 
5635
  def __repr__(self):
5636
    L = ['%s=%r' % (key, value)
5637
      for key, value in self.__dict__.iteritems()]
5638
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5639
 
5640
  def __eq__(self, other):
5641
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5642
 
5643
  def __ne__(self, other):
5644
    return not (self == other)
5645
 
5646
class getEmptyGrnsByDate_result:
5647
  """
5648
  Attributes:
5649
   - success
5650
  """
5651
 
5652
  thrift_spec = (
5653
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5654
  )
5655
 
5656
  def __init__(self, success=None,):
5657
    self.success = success
5658
 
5659
  def read(self, iprot):
5660
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5661
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5662
      return
5663
    iprot.readStructBegin()
5664
    while True:
5665
      (fname, ftype, fid) = iprot.readFieldBegin()
5666
      if ftype == TType.STOP:
5667
        break
5668
      if fid == 0:
5669
        if ftype == TType.LIST:
5670
          self.success = []
5671
          (_etype38, _size35) = iprot.readListBegin()
5672
          for _i39 in xrange(_size35):
5673
            _elem40 = iprot.readI64();
5674
            self.success.append(_elem40)
5675
          iprot.readListEnd()
5676
        else:
5677
          iprot.skip(ftype)
5678
      else:
5679
        iprot.skip(ftype)
5680
      iprot.readFieldEnd()
5681
    iprot.readStructEnd()
5682
 
5683
  def write(self, oprot):
5684
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5685
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5686
      return
5687
    oprot.writeStructBegin('getEmptyGrnsByDate_result')
5688
    if self.success is not None:
5689
      oprot.writeFieldBegin('success', TType.LIST, 0)
5690
      oprot.writeListBegin(TType.I64, len(self.success))
5691
      for iter41 in self.success:
5692
        oprot.writeI64(iter41)
5693
      oprot.writeListEnd()
5694
      oprot.writeFieldEnd()
5695
    oprot.writeFieldStop()
5696
    oprot.writeStructEnd()
5697
 
5698
  def validate(self):
5699
    return
5700
 
5701
 
5702
  def __repr__(self):
5703
    L = ['%s=%r' % (key, value)
5704
      for key, value in self.__dict__.iteritems()]
5705
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5706
 
5707
  def __eq__(self, other):
5708
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5709
 
5710
  def __ne__(self, other):
5711
    return not (self == other)
5712
 
5496 mandeep.dh 5713
class fetchScansPerInvoiceNumber_args:
5714
  """
5715
  Attributes:
5716
   - date
5717
  """
5718
 
5719
  thrift_spec = (
5720
    None, # 0
5721
    (1, TType.I64, 'date', None, None, ), # 1
5722
  )
5723
 
5724
  def __init__(self, date=None,):
5725
    self.date = date
5726
 
5727
  def read(self, iprot):
5728
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5729
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5730
      return
5731
    iprot.readStructBegin()
5732
    while True:
5733
      (fname, ftype, fid) = iprot.readFieldBegin()
5734
      if ftype == TType.STOP:
5735
        break
5736
      if fid == 1:
5737
        if ftype == TType.I64:
5738
          self.date = iprot.readI64();
5739
        else:
5740
          iprot.skip(ftype)
5741
      else:
5742
        iprot.skip(ftype)
5743
      iprot.readFieldEnd()
5744
    iprot.readStructEnd()
5745
 
5746
  def write(self, oprot):
5747
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5748
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5749
      return
5750
    oprot.writeStructBegin('fetchScansPerInvoiceNumber_args')
5751
    if self.date is not None:
5752
      oprot.writeFieldBegin('date', TType.I64, 1)
5753
      oprot.writeI64(self.date)
5754
      oprot.writeFieldEnd()
5755
    oprot.writeFieldStop()
5756
    oprot.writeStructEnd()
5757
 
5758
  def validate(self):
5759
    return
5760
 
5761
 
5762
  def __repr__(self):
5763
    L = ['%s=%r' % (key, value)
5764
      for key, value in self.__dict__.iteritems()]
5765
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5766
 
5767
  def __eq__(self, other):
5768
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5769
 
5770
  def __ne__(self, other):
5771
    return not (self == other)
5772
 
5773
class fetchScansPerInvoiceNumber_result:
5774
  """
5775
  Attributes:
5776
   - success
5777
  """
5778
 
5779
  thrift_spec = (
5780
    (0, TType.LIST, 'success', (TType.STRUCT,(InvoiceScan, InvoiceScan.thrift_spec)), None, ), # 0
5781
  )
5782
 
5783
  def __init__(self, success=None,):
5784
    self.success = success
5785
 
5786
  def read(self, iprot):
5787
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5788
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5789
      return
5790
    iprot.readStructBegin()
5791
    while True:
5792
      (fname, ftype, fid) = iprot.readFieldBegin()
5793
      if ftype == TType.STOP:
5794
        break
5795
      if fid == 0:
5796
        if ftype == TType.LIST:
5797
          self.success = []
10407 amar.kumar 5798
          (_etype45, _size42) = iprot.readListBegin()
5799
          for _i46 in xrange(_size42):
5800
            _elem47 = InvoiceScan()
5801
            _elem47.read(iprot)
5802
            self.success.append(_elem47)
5496 mandeep.dh 5803
          iprot.readListEnd()
5804
        else:
5805
          iprot.skip(ftype)
5806
      else:
5807
        iprot.skip(ftype)
5808
      iprot.readFieldEnd()
5809
    iprot.readStructEnd()
5810
 
5811
  def write(self, oprot):
5812
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5813
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5814
      return
5815
    oprot.writeStructBegin('fetchScansPerInvoiceNumber_result')
5816
    if self.success is not None:
5817
      oprot.writeFieldBegin('success', TType.LIST, 0)
5818
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 5819
      for iter48 in self.success:
5820
        iter48.write(oprot)
5496 mandeep.dh 5821
      oprot.writeListEnd()
5822
      oprot.writeFieldEnd()
5823
    oprot.writeFieldStop()
5824
    oprot.writeStructEnd()
5825
 
5826
  def validate(self):
5827
    return
5828
 
5829
 
5830
  def __repr__(self):
5831
    L = ['%s=%r' % (key, value)
5832
      for key, value in self.__dict__.iteritems()]
5833
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5834
 
5835
  def __eq__(self, other):
5836
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5837
 
5838
  def __ne__(self, other):
5839
    return not (self == other)
5620 mandeep.dh 5840
 
5841
class getInventoryItemFromOrder_args:
5842
  """
5843
  Attributes:
5844
   - orderId
5845
  """
5846
 
5847
  thrift_spec = (
5848
    None, # 0
5849
    (1, TType.I64, 'orderId', None, None, ), # 1
5850
  )
5851
 
5852
  def __init__(self, orderId=None,):
5853
    self.orderId = orderId
5854
 
5855
  def read(self, iprot):
5856
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5857
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5858
      return
5859
    iprot.readStructBegin()
5860
    while True:
5861
      (fname, ftype, fid) = iprot.readFieldBegin()
5862
      if ftype == TType.STOP:
5863
        break
5864
      if fid == 1:
5865
        if ftype == TType.I64:
5866
          self.orderId = iprot.readI64();
5867
        else:
5868
          iprot.skip(ftype)
5869
      else:
5870
        iprot.skip(ftype)
5871
      iprot.readFieldEnd()
5872
    iprot.readStructEnd()
5873
 
5874
  def write(self, oprot):
5875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5877
      return
5878
    oprot.writeStructBegin('getInventoryItemFromOrder_args')
5879
    if self.orderId is not None:
5880
      oprot.writeFieldBegin('orderId', TType.I64, 1)
5881
      oprot.writeI64(self.orderId)
5882
      oprot.writeFieldEnd()
5883
    oprot.writeFieldStop()
5884
    oprot.writeStructEnd()
5885
 
5886
  def validate(self):
5887
    return
5888
 
5889
 
5890
  def __repr__(self):
5891
    L = ['%s=%r' % (key, value)
5892
      for key, value in self.__dict__.iteritems()]
5893
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5894
 
5895
  def __eq__(self, other):
5896
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5897
 
5898
  def __ne__(self, other):
5899
    return not (self == other)
5900
 
5901
class getInventoryItemFromOrder_result:
5902
  """
5903
  Attributes:
5904
   - success
5905
   - we
5906
  """
5907
 
5908
  thrift_spec = (
5909
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
5910
    (1, TType.STRUCT, 'we', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
5911
  )
5912
 
5913
  def __init__(self, success=None, we=None,):
5914
    self.success = success
5915
    self.we = we
5916
 
5917
  def read(self, iprot):
5918
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5919
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5920
      return
5921
    iprot.readStructBegin()
5922
    while True:
5923
      (fname, ftype, fid) = iprot.readFieldBegin()
5924
      if ftype == TType.STOP:
5925
        break
5926
      if fid == 0:
5927
        if ftype == TType.STRUCT:
5928
          self.success = InventoryItem()
5929
          self.success.read(iprot)
5930
        else:
5931
          iprot.skip(ftype)
5932
      elif fid == 1:
5933
        if ftype == TType.STRUCT:
5934
          self.we = WarehouseServiceException()
5935
          self.we.read(iprot)
5936
        else:
5937
          iprot.skip(ftype)
5938
      else:
5939
        iprot.skip(ftype)
5940
      iprot.readFieldEnd()
5941
    iprot.readStructEnd()
5942
 
5943
  def write(self, oprot):
5944
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5945
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5946
      return
5947
    oprot.writeStructBegin('getInventoryItemFromOrder_result')
5948
    if self.success is not None:
5949
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5950
      self.success.write(oprot)
5951
      oprot.writeFieldEnd()
5952
    if self.we is not None:
5953
      oprot.writeFieldBegin('we', TType.STRUCT, 1)
5954
      self.we.write(oprot)
5955
      oprot.writeFieldEnd()
5956
    oprot.writeFieldStop()
5957
    oprot.writeStructEnd()
5958
 
5959
  def validate(self):
5960
    return
5961
 
5962
 
5963
  def __repr__(self):
5964
    L = ['%s=%r' % (key, value)
5965
      for key, value in self.__dict__.iteritems()]
5966
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5967
 
5968
  def __eq__(self, other):
5969
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5970
 
5971
  def __ne__(self, other):
5972
    return not (self == other)
5711 mandeep.dh 5973
 
5974
class getInventoryAge_args:
5975
 
5976
  thrift_spec = (
5977
  )
5978
 
5979
  def read(self, iprot):
5980
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5981
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5982
      return
5983
    iprot.readStructBegin()
5984
    while True:
5985
      (fname, ftype, fid) = iprot.readFieldBegin()
5986
      if ftype == TType.STOP:
5987
        break
5988
      else:
5989
        iprot.skip(ftype)
5990
      iprot.readFieldEnd()
5991
    iprot.readStructEnd()
5992
 
5993
  def write(self, oprot):
5994
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5995
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5996
      return
5997
    oprot.writeStructBegin('getInventoryAge_args')
5998
    oprot.writeFieldStop()
5999
    oprot.writeStructEnd()
6000
 
6001
  def validate(self):
6002
    return
6003
 
6004
 
6005
  def __repr__(self):
6006
    L = ['%s=%r' % (key, value)
6007
      for key, value in self.__dict__.iteritems()]
6008
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6009
 
6010
  def __eq__(self, other):
6011
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6012
 
6013
  def __ne__(self, other):
6014
    return not (self == other)
6015
 
6016
class getInventoryAge_result:
6017
  """
6018
  Attributes:
6019
   - success
6020
  """
6021
 
6022
  thrift_spec = (
6023
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAge, InventoryAge.thrift_spec)), None, ), # 0
6024
  )
6025
 
6026
  def __init__(self, success=None,):
6027
    self.success = success
6028
 
6029
  def read(self, iprot):
6030
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6031
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6032
      return
6033
    iprot.readStructBegin()
6034
    while True:
6035
      (fname, ftype, fid) = iprot.readFieldBegin()
6036
      if ftype == TType.STOP:
6037
        break
6038
      if fid == 0:
6039
        if ftype == TType.LIST:
6040
          self.success = []
10407 amar.kumar 6041
          (_etype52, _size49) = iprot.readListBegin()
6042
          for _i53 in xrange(_size49):
6043
            _elem54 = InventoryAge()
6044
            _elem54.read(iprot)
6045
            self.success.append(_elem54)
5711 mandeep.dh 6046
          iprot.readListEnd()
6047
        else:
6048
          iprot.skip(ftype)
6049
      else:
6050
        iprot.skip(ftype)
6051
      iprot.readFieldEnd()
6052
    iprot.readStructEnd()
6053
 
6054
  def write(self, oprot):
6055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6057
      return
6058
    oprot.writeStructBegin('getInventoryAge_result')
6059
    if self.success is not None:
6060
      oprot.writeFieldBegin('success', TType.LIST, 0)
6061
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6062
      for iter55 in self.success:
6063
        iter55.write(oprot)
5711 mandeep.dh 6064
      oprot.writeListEnd()
6065
      oprot.writeFieldEnd()
6066
    oprot.writeFieldStop()
6067
    oprot.writeStructEnd()
6068
 
6069
  def validate(self):
6070
    return
6071
 
6072
 
6073
  def __repr__(self):
6074
    L = ['%s=%r' % (key, value)
6075
      for key, value in self.__dict__.iteritems()]
6076
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6077
 
6078
  def __eq__(self, other):
6079
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6080
 
6081
  def __ne__(self, other):
6082
    return not (self == other)
6361 rajveer 6083
 
6084
class getInventoryScansForItem_args:
6085
  """
6086
  Attributes:
6087
   - itemId
6088
   - fromDate
6089
   - toDate
6090
  """
6091
 
6092
  thrift_spec = (
6093
    None, # 0
6094
    (1, TType.I64, 'itemId', None, None, ), # 1
6095
    (2, TType.I64, 'fromDate', None, None, ), # 2
6096
    (3, TType.I64, 'toDate', None, None, ), # 3
6097
  )
6098
 
6099
  def __init__(self, itemId=None, fromDate=None, toDate=None,):
6100
    self.itemId = itemId
6101
    self.fromDate = fromDate
6102
    self.toDate = toDate
6103
 
6104
  def read(self, iprot):
6105
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6106
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6107
      return
6108
    iprot.readStructBegin()
6109
    while True:
6110
      (fname, ftype, fid) = iprot.readFieldBegin()
6111
      if ftype == TType.STOP:
6112
        break
6113
      if fid == 1:
6114
        if ftype == TType.I64:
6115
          self.itemId = iprot.readI64();
6116
        else:
6117
          iprot.skip(ftype)
6118
      elif fid == 2:
6119
        if ftype == TType.I64:
6120
          self.fromDate = iprot.readI64();
6121
        else:
6122
          iprot.skip(ftype)
6123
      elif fid == 3:
6124
        if ftype == TType.I64:
6125
          self.toDate = iprot.readI64();
6126
        else:
6127
          iprot.skip(ftype)
6128
      else:
6129
        iprot.skip(ftype)
6130
      iprot.readFieldEnd()
6131
    iprot.readStructEnd()
6132
 
6133
  def write(self, oprot):
6134
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6135
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6136
      return
6137
    oprot.writeStructBegin('getInventoryScansForItem_args')
6138
    if self.itemId is not None:
6139
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6140
      oprot.writeI64(self.itemId)
6141
      oprot.writeFieldEnd()
6142
    if self.fromDate is not None:
6143
      oprot.writeFieldBegin('fromDate', TType.I64, 2)
6144
      oprot.writeI64(self.fromDate)
6145
      oprot.writeFieldEnd()
6146
    if self.toDate is not None:
6147
      oprot.writeFieldBegin('toDate', TType.I64, 3)
6148
      oprot.writeI64(self.toDate)
6149
      oprot.writeFieldEnd()
6150
    oprot.writeFieldStop()
6151
    oprot.writeStructEnd()
6152
 
6153
  def validate(self):
6154
    return
6155
 
6156
 
6157
  def __repr__(self):
6158
    L = ['%s=%r' % (key, value)
6159
      for key, value in self.__dict__.iteritems()]
6160
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6161
 
6162
  def __eq__(self, other):
6163
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6164
 
6165
  def __ne__(self, other):
6166
    return not (self == other)
6167
 
6168
class getInventoryScansForItem_result:
6169
  """
6170
  Attributes:
6171
   - success
6172
  """
6173
 
6174
  thrift_spec = (
6175
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
6176
  )
6177
 
6178
  def __init__(self, success=None,):
6179
    self.success = success
6180
 
6181
  def read(self, iprot):
6182
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6183
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6184
      return
6185
    iprot.readStructBegin()
6186
    while True:
6187
      (fname, ftype, fid) = iprot.readFieldBegin()
6188
      if ftype == TType.STOP:
6189
        break
6190
      if fid == 0:
6191
        if ftype == TType.LIST:
6192
          self.success = []
10407 amar.kumar 6193
          (_etype59, _size56) = iprot.readListBegin()
6194
          for _i60 in xrange(_size56):
6195
            _elem61 = Scan()
6196
            _elem61.read(iprot)
6197
            self.success.append(_elem61)
6361 rajveer 6198
          iprot.readListEnd()
6199
        else:
6200
          iprot.skip(ftype)
6201
      else:
6202
        iprot.skip(ftype)
6203
      iprot.readFieldEnd()
6204
    iprot.readStructEnd()
6205
 
6206
  def write(self, oprot):
6207
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6208
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6209
      return
6210
    oprot.writeStructBegin('getInventoryScansForItem_result')
6211
    if self.success is not None:
6212
      oprot.writeFieldBegin('success', TType.LIST, 0)
6213
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6214
      for iter62 in self.success:
6215
        iter62.write(oprot)
6361 rajveer 6216
      oprot.writeListEnd()
6217
      oprot.writeFieldEnd()
6218
    oprot.writeFieldStop()
6219
    oprot.writeStructEnd()
6220
 
6221
  def validate(self):
6222
    return
6223
 
6224
 
6225
  def __repr__(self):
6226
    L = ['%s=%r' % (key, value)
6227
      for key, value in self.__dict__.iteritems()]
6228
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6229
 
6230
  def __eq__(self, other):
6231
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6232
 
6233
  def __ne__(self, other):
6234
    return not (self == other)
6235
 
6236
class getScanRecordsForSerialNumber_args:
6237
  """
6238
  Attributes:
6239
   - serialNumber
6240
  """
6241
 
6242
  thrift_spec = (
6243
    None, # 0
7410 amar.kumar 6244
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
6361 rajveer 6245
  )
6246
 
6247
  def __init__(self, serialNumber=None,):
6248
    self.serialNumber = serialNumber
6249
 
6250
  def read(self, iprot):
6251
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6252
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6253
      return
6254
    iprot.readStructBegin()
6255
    while True:
6256
      (fname, ftype, fid) = iprot.readFieldBegin()
6257
      if ftype == TType.STOP:
6258
        break
6259
      if fid == 1:
7410 amar.kumar 6260
        if ftype == TType.STRING:
6261
          self.serialNumber = iprot.readString();
6361 rajveer 6262
        else:
6263
          iprot.skip(ftype)
6264
      else:
6265
        iprot.skip(ftype)
6266
      iprot.readFieldEnd()
6267
    iprot.readStructEnd()
6268
 
6269
  def write(self, oprot):
6270
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6271
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6272
      return
6273
    oprot.writeStructBegin('getScanRecordsForSerialNumber_args')
6274
    if self.serialNumber is not None:
7410 amar.kumar 6275
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
6276
      oprot.writeString(self.serialNumber)
6361 rajveer 6277
      oprot.writeFieldEnd()
6278
    oprot.writeFieldStop()
6279
    oprot.writeStructEnd()
6280
 
6281
  def validate(self):
6282
    return
6283
 
6284
 
6285
  def __repr__(self):
6286
    L = ['%s=%r' % (key, value)
6287
      for key, value in self.__dict__.iteritems()]
6288
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6289
 
6290
  def __eq__(self, other):
6291
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6292
 
6293
  def __ne__(self, other):
6294
    return not (self == other)
6295
 
6296
class getScanRecordsForSerialNumber_result:
6297
  """
6298
  Attributes:
6299
   - success
6300
  """
6301
 
6302
  thrift_spec = (
6303
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
6304
  )
6305
 
6306
  def __init__(self, success=None,):
6307
    self.success = success
6308
 
6309
  def read(self, iprot):
6310
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6311
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6312
      return
6313
    iprot.readStructBegin()
6314
    while True:
6315
      (fname, ftype, fid) = iprot.readFieldBegin()
6316
      if ftype == TType.STOP:
6317
        break
6318
      if fid == 0:
6319
        if ftype == TType.LIST:
6320
          self.success = []
10407 amar.kumar 6321
          (_etype66, _size63) = iprot.readListBegin()
6322
          for _i67 in xrange(_size63):
6323
            _elem68 = Scan()
6324
            _elem68.read(iprot)
6325
            self.success.append(_elem68)
6361 rajveer 6326
          iprot.readListEnd()
6327
        else:
6328
          iprot.skip(ftype)
6329
      else:
6330
        iprot.skip(ftype)
6331
      iprot.readFieldEnd()
6332
    iprot.readStructEnd()
6333
 
6334
  def write(self, oprot):
6335
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6336
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6337
      return
6338
    oprot.writeStructBegin('getScanRecordsForSerialNumber_result')
6339
    if self.success is not None:
6340
      oprot.writeFieldBegin('success', TType.LIST, 0)
6341
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6342
      for iter69 in self.success:
6343
        iter69.write(oprot)
6361 rajveer 6344
      oprot.writeListEnd()
6345
      oprot.writeFieldEnd()
6346
    oprot.writeFieldStop()
6347
    oprot.writeStructEnd()
6348
 
6349
  def validate(self):
6350
    return
6351
 
6352
 
6353
  def __repr__(self):
6354
    L = ['%s=%r' % (key, value)
6355
      for key, value in self.__dict__.iteritems()]
6356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6357
 
6358
  def __eq__(self, other):
6359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6360
 
6361
  def __ne__(self, other):
6362
    return not (self == other)
6467 amar.kumar 6363
 
6364
class scanForPurchaseReturn_args:
6365
  """
6366
  Attributes:
6367
   - saleReturnItems
6368
   - vendorId
7718 amar.kumar 6369
   - billingWarehouseId
6467 amar.kumar 6370
  """
6371
 
6372
  thrift_spec = (
6373
    None, # 0
6374
    (1, TType.LIST, 'saleReturnItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
6375
    (2, TType.I64, 'vendorId', None, None, ), # 2
7718 amar.kumar 6376
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
6467 amar.kumar 6377
  )
6378
 
7718 amar.kumar 6379
  def __init__(self, saleReturnItems=None, vendorId=None, billingWarehouseId=None,):
6467 amar.kumar 6380
    self.saleReturnItems = saleReturnItems
6381
    self.vendorId = vendorId
7718 amar.kumar 6382
    self.billingWarehouseId = billingWarehouseId
6467 amar.kumar 6383
 
6384
  def read(self, iprot):
6385
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6386
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6387
      return
6388
    iprot.readStructBegin()
6389
    while True:
6390
      (fname, ftype, fid) = iprot.readFieldBegin()
6391
      if ftype == TType.STOP:
6392
        break
6393
      if fid == 1:
6394
        if ftype == TType.LIST:
6395
          self.saleReturnItems = []
10407 amar.kumar 6396
          (_etype73, _size70) = iprot.readListBegin()
6397
          for _i74 in xrange(_size70):
6398
            _elem75 = InventoryItem()
6399
            _elem75.read(iprot)
6400
            self.saleReturnItems.append(_elem75)
6467 amar.kumar 6401
          iprot.readListEnd()
6402
        else:
6403
          iprot.skip(ftype)
6404
      elif fid == 2:
6405
        if ftype == TType.I64:
6406
          self.vendorId = iprot.readI64();
6407
        else:
6408
          iprot.skip(ftype)
7718 amar.kumar 6409
      elif fid == 3:
6410
        if ftype == TType.I64:
6411
          self.billingWarehouseId = iprot.readI64();
6412
        else:
6413
          iprot.skip(ftype)
6467 amar.kumar 6414
      else:
6415
        iprot.skip(ftype)
6416
      iprot.readFieldEnd()
6417
    iprot.readStructEnd()
6418
 
6419
  def write(self, oprot):
6420
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6421
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6422
      return
6423
    oprot.writeStructBegin('scanForPurchaseReturn_args')
6424
    if self.saleReturnItems is not None:
6425
      oprot.writeFieldBegin('saleReturnItems', TType.LIST, 1)
6426
      oprot.writeListBegin(TType.STRUCT, len(self.saleReturnItems))
10407 amar.kumar 6427
      for iter76 in self.saleReturnItems:
6428
        iter76.write(oprot)
6467 amar.kumar 6429
      oprot.writeListEnd()
6430
      oprot.writeFieldEnd()
6431
    if self.vendorId is not None:
6432
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6433
      oprot.writeI64(self.vendorId)
6434
      oprot.writeFieldEnd()
7718 amar.kumar 6435
    if self.billingWarehouseId is not None:
6436
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
6437
      oprot.writeI64(self.billingWarehouseId)
6438
      oprot.writeFieldEnd()
6467 amar.kumar 6439
    oprot.writeFieldStop()
6440
    oprot.writeStructEnd()
6441
 
6442
  def validate(self):
6443
    return
6444
 
6445
 
6446
  def __repr__(self):
6447
    L = ['%s=%r' % (key, value)
6448
      for key, value in self.__dict__.iteritems()]
6449
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6450
 
6451
  def __eq__(self, other):
6452
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6453
 
6454
  def __ne__(self, other):
6455
    return not (self == other)
6456
 
6457
class scanForPurchaseReturn_result:
6458
  """
6459
  Attributes:
10864 manish.sha 6460
   - success
6467 amar.kumar 6461
   - ex
6462
  """
6463
 
6464
  thrift_spec = (
10864 manish.sha 6465
    (0, TType.I64, 'success', None, None, ), # 0
6467 amar.kumar 6466
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6467
  )
6468
 
10864 manish.sha 6469
  def __init__(self, success=None, ex=None,):
6470
    self.success = success
6467 amar.kumar 6471
    self.ex = ex
6472
 
6473
  def read(self, iprot):
6474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6476
      return
6477
    iprot.readStructBegin()
6478
    while True:
6479
      (fname, ftype, fid) = iprot.readFieldBegin()
6480
      if ftype == TType.STOP:
6481
        break
10864 manish.sha 6482
      if fid == 0:
6483
        if ftype == TType.I64:
6484
          self.success = iprot.readI64();
6485
        else:
6486
          iprot.skip(ftype)
6487
      elif fid == 1:
6467 amar.kumar 6488
        if ftype == TType.STRUCT:
6489
          self.ex = WarehouseServiceException()
6490
          self.ex.read(iprot)
6491
        else:
6492
          iprot.skip(ftype)
6493
      else:
6494
        iprot.skip(ftype)
6495
      iprot.readFieldEnd()
6496
    iprot.readStructEnd()
6497
 
6498
  def write(self, oprot):
6499
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6500
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6501
      return
6502
    oprot.writeStructBegin('scanForPurchaseReturn_result')
10864 manish.sha 6503
    if self.success is not None:
6504
      oprot.writeFieldBegin('success', TType.I64, 0)
6505
      oprot.writeI64(self.success)
6506
      oprot.writeFieldEnd()
6467 amar.kumar 6507
    if self.ex is not None:
6508
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6509
      self.ex.write(oprot)
6510
      oprot.writeFieldEnd()
6511
    oprot.writeFieldStop()
6512
    oprot.writeStructEnd()
6513
 
6514
  def validate(self):
6515
    return
6516
 
6517
 
6518
  def __repr__(self):
6519
    L = ['%s=%r' % (key, value)
6520
      for key, value in self.__dict__.iteritems()]
6521
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6522
 
6523
  def __eq__(self, other):
6524
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6525
 
6526
  def __ne__(self, other):
6527
    return not (self == other)
6630 amar.kumar 6528
 
6529
class scanForLostItem_args:
6530
  """
6531
  Attributes:
6532
   - lostItems
6533
   - vendorId
7718 amar.kumar 6534
   - billingWarehouseId
6630 amar.kumar 6535
  """
6536
 
6537
  thrift_spec = (
6538
    None, # 0
6539
    (1, TType.LIST, 'lostItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
6540
    (2, TType.I64, 'vendorId', None, None, ), # 2
7718 amar.kumar 6541
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
6630 amar.kumar 6542
  )
6543
 
7718 amar.kumar 6544
  def __init__(self, lostItems=None, vendorId=None, billingWarehouseId=None,):
6630 amar.kumar 6545
    self.lostItems = lostItems
6546
    self.vendorId = vendorId
7718 amar.kumar 6547
    self.billingWarehouseId = billingWarehouseId
6630 amar.kumar 6548
 
6549
  def read(self, iprot):
6550
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6551
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6552
      return
6553
    iprot.readStructBegin()
6554
    while True:
6555
      (fname, ftype, fid) = iprot.readFieldBegin()
6556
      if ftype == TType.STOP:
6557
        break
6558
      if fid == 1:
6559
        if ftype == TType.LIST:
6560
          self.lostItems = []
10407 amar.kumar 6561
          (_etype80, _size77) = iprot.readListBegin()
6562
          for _i81 in xrange(_size77):
6563
            _elem82 = InventoryItem()
6564
            _elem82.read(iprot)
6565
            self.lostItems.append(_elem82)
6630 amar.kumar 6566
          iprot.readListEnd()
6567
        else:
6568
          iprot.skip(ftype)
6569
      elif fid == 2:
6570
        if ftype == TType.I64:
6571
          self.vendorId = iprot.readI64();
6572
        else:
6573
          iprot.skip(ftype)
7718 amar.kumar 6574
      elif fid == 3:
6575
        if ftype == TType.I64:
6576
          self.billingWarehouseId = iprot.readI64();
6577
        else:
6578
          iprot.skip(ftype)
6630 amar.kumar 6579
      else:
6580
        iprot.skip(ftype)
6581
      iprot.readFieldEnd()
6582
    iprot.readStructEnd()
6583
 
6584
  def write(self, oprot):
6585
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6586
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6587
      return
6588
    oprot.writeStructBegin('scanForLostItem_args')
6589
    if self.lostItems is not None:
6590
      oprot.writeFieldBegin('lostItems', TType.LIST, 1)
6591
      oprot.writeListBegin(TType.STRUCT, len(self.lostItems))
10407 amar.kumar 6592
      for iter83 in self.lostItems:
6593
        iter83.write(oprot)
6630 amar.kumar 6594
      oprot.writeListEnd()
6595
      oprot.writeFieldEnd()
6596
    if self.vendorId is not None:
6597
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6598
      oprot.writeI64(self.vendorId)
6599
      oprot.writeFieldEnd()
7718 amar.kumar 6600
    if self.billingWarehouseId is not None:
6601
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
6602
      oprot.writeI64(self.billingWarehouseId)
6603
      oprot.writeFieldEnd()
6630 amar.kumar 6604
    oprot.writeFieldStop()
6605
    oprot.writeStructEnd()
6606
 
6607
  def validate(self):
6608
    return
6609
 
6610
 
6611
  def __repr__(self):
6612
    L = ['%s=%r' % (key, value)
6613
      for key, value in self.__dict__.iteritems()]
6614
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6615
 
6616
  def __eq__(self, other):
6617
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6618
 
6619
  def __ne__(self, other):
6620
    return not (self == other)
6621
 
6622
class scanForLostItem_result:
6623
  """
6624
  Attributes:
6625
   - ex
6626
  """
6627
 
6628
  thrift_spec = (
6629
    None, # 0
6630
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6631
  )
6632
 
6633
  def __init__(self, ex=None,):
6634
    self.ex = ex
6635
 
6636
  def read(self, iprot):
6637
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6638
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6639
      return
6640
    iprot.readStructBegin()
6641
    while True:
6642
      (fname, ftype, fid) = iprot.readFieldBegin()
6643
      if ftype == TType.STOP:
6644
        break
6645
      if fid == 1:
6646
        if ftype == TType.STRUCT:
6647
          self.ex = WarehouseServiceException()
6648
          self.ex.read(iprot)
6649
        else:
6650
          iprot.skip(ftype)
6651
      else:
6652
        iprot.skip(ftype)
6653
      iprot.readFieldEnd()
6654
    iprot.readStructEnd()
6655
 
6656
  def write(self, oprot):
6657
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6658
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6659
      return
6660
    oprot.writeStructBegin('scanForLostItem_result')
6661
    if self.ex is not None:
6662
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6663
      self.ex.write(oprot)
6664
      oprot.writeFieldEnd()
6665
    oprot.writeFieldStop()
6666
    oprot.writeStructEnd()
6667
 
6668
  def validate(self):
6669
    return
6670
 
6671
 
6672
  def __repr__(self):
6673
    L = ['%s=%r' % (key, value)
6674
      for key, value in self.__dict__.iteritems()]
6675
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6676
 
6677
  def __eq__(self, other):
6678
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6679
 
6680
  def __ne__(self, other):
6681
    return not (self == other)
6682
 
6683
class getCurrentSerializedInventoryByScans_args:
7715 vikram.rag 6684
  """
6685
  Attributes:
6686
   - physicalWarehouseId
6687
  """
6630 amar.kumar 6688
 
6689
  thrift_spec = (
7715 vikram.rag 6690
    None, # 0
6691
    (1, TType.I64, 'physicalWarehouseId', None, None, ), # 1
6630 amar.kumar 6692
  )
6693
 
7715 vikram.rag 6694
  def __init__(self, physicalWarehouseId=None,):
6695
    self.physicalWarehouseId = physicalWarehouseId
6696
 
6630 amar.kumar 6697
  def read(self, iprot):
6698
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6699
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6700
      return
6701
    iprot.readStructBegin()
6702
    while True:
6703
      (fname, ftype, fid) = iprot.readFieldBegin()
6704
      if ftype == TType.STOP:
6705
        break
7715 vikram.rag 6706
      if fid == 1:
6707
        if ftype == TType.I64:
6708
          self.physicalWarehouseId = iprot.readI64();
6709
        else:
6710
          iprot.skip(ftype)
6630 amar.kumar 6711
      else:
6712
        iprot.skip(ftype)
6713
      iprot.readFieldEnd()
6714
    iprot.readStructEnd()
6715
 
6716
  def write(self, oprot):
6717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6719
      return
6720
    oprot.writeStructBegin('getCurrentSerializedInventoryByScans_args')
7715 vikram.rag 6721
    if self.physicalWarehouseId is not None:
6722
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 1)
6723
      oprot.writeI64(self.physicalWarehouseId)
6724
      oprot.writeFieldEnd()
6630 amar.kumar 6725
    oprot.writeFieldStop()
6726
    oprot.writeStructEnd()
6727
 
6728
  def validate(self):
6729
    return
6730
 
6731
 
6732
  def __repr__(self):
6733
    L = ['%s=%r' % (key, value)
6734
      for key, value in self.__dict__.iteritems()]
6735
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6736
 
6737
  def __eq__(self, other):
6738
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6739
 
6740
  def __ne__(self, other):
6741
    return not (self == other)
6742
 
6743
class getCurrentSerializedInventoryByScans_result:
6744
  """
6745
  Attributes:
6746
   - success
6747
  """
6748
 
6749
  thrift_spec = (
6750
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
6751
  )
6752
 
6753
  def __init__(self, success=None,):
6754
    self.success = success
6755
 
6756
  def read(self, iprot):
6757
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6758
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6759
      return
6760
    iprot.readStructBegin()
6761
    while True:
6762
      (fname, ftype, fid) = iprot.readFieldBegin()
6763
      if ftype == TType.STOP:
6764
        break
6765
      if fid == 0:
6766
        if ftype == TType.LIST:
6767
          self.success = []
10407 amar.kumar 6768
          (_etype87, _size84) = iprot.readListBegin()
6769
          for _i88 in xrange(_size84):
6770
            _elem89 = InventoryAvailability()
6771
            _elem89.read(iprot)
6772
            self.success.append(_elem89)
6630 amar.kumar 6773
          iprot.readListEnd()
6774
        else:
6775
          iprot.skip(ftype)
6776
      else:
6777
        iprot.skip(ftype)
6778
      iprot.readFieldEnd()
6779
    iprot.readStructEnd()
6780
 
6781
  def write(self, oprot):
6782
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6783
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6784
      return
6785
    oprot.writeStructBegin('getCurrentSerializedInventoryByScans_result')
6786
    if self.success is not None:
6787
      oprot.writeFieldBegin('success', TType.LIST, 0)
6788
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6789
      for iter90 in self.success:
6790
        iter90.write(oprot)
6630 amar.kumar 6791
      oprot.writeListEnd()
6792
      oprot.writeFieldEnd()
6793
    oprot.writeFieldStop()
6794
    oprot.writeStructEnd()
6795
 
6796
  def validate(self):
6797
    return
6798
 
6799
 
6800
  def __repr__(self):
6801
    L = ['%s=%r' % (key, value)
6802
      for key, value in self.__dict__.iteritems()]
6803
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6804
 
6805
  def __eq__(self, other):
6806
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6807
 
6808
  def __ne__(self, other):
6809
    return not (self == other)
6810
 
6811
class getCurrentNonSerializedInventoryByScans_args:
7715 vikram.rag 6812
  """
6813
  Attributes:
6814
   - physicalWarehouseId
6815
  """
6630 amar.kumar 6816
 
6817
  thrift_spec = (
7715 vikram.rag 6818
    None, # 0
6819
    (1, TType.I64, 'physicalWarehouseId', None, None, ), # 1
6630 amar.kumar 6820
  )
6821
 
7715 vikram.rag 6822
  def __init__(self, physicalWarehouseId=None,):
6823
    self.physicalWarehouseId = physicalWarehouseId
6824
 
6630 amar.kumar 6825
  def read(self, iprot):
6826
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6827
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6828
      return
6829
    iprot.readStructBegin()
6830
    while True:
6831
      (fname, ftype, fid) = iprot.readFieldBegin()
6832
      if ftype == TType.STOP:
6833
        break
7715 vikram.rag 6834
      if fid == 1:
6835
        if ftype == TType.I64:
6836
          self.physicalWarehouseId = iprot.readI64();
6837
        else:
6838
          iprot.skip(ftype)
6630 amar.kumar 6839
      else:
6840
        iprot.skip(ftype)
6841
      iprot.readFieldEnd()
6842
    iprot.readStructEnd()
6843
 
6844
  def write(self, oprot):
6845
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6846
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6847
      return
6848
    oprot.writeStructBegin('getCurrentNonSerializedInventoryByScans_args')
7715 vikram.rag 6849
    if self.physicalWarehouseId is not None:
6850
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 1)
6851
      oprot.writeI64(self.physicalWarehouseId)
6852
      oprot.writeFieldEnd()
6630 amar.kumar 6853
    oprot.writeFieldStop()
6854
    oprot.writeStructEnd()
6855
 
6856
  def validate(self):
6857
    return
6858
 
6859
 
6860
  def __repr__(self):
6861
    L = ['%s=%r' % (key, value)
6862
      for key, value in self.__dict__.iteritems()]
6863
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6864
 
6865
  def __eq__(self, other):
6866
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6867
 
6868
  def __ne__(self, other):
6869
    return not (self == other)
6870
 
6871
class getCurrentNonSerializedInventoryByScans_result:
6872
  """
6873
  Attributes:
6874
   - success
6875
  """
6876
 
6877
  thrift_spec = (
6878
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
6879
  )
6880
 
6881
  def __init__(self, success=None,):
6882
    self.success = success
6883
 
6884
  def read(self, iprot):
6885
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6886
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6887
      return
6888
    iprot.readStructBegin()
6889
    while True:
6890
      (fname, ftype, fid) = iprot.readFieldBegin()
6891
      if ftype == TType.STOP:
6892
        break
6893
      if fid == 0:
6894
        if ftype == TType.LIST:
6895
          self.success = []
10407 amar.kumar 6896
          (_etype94, _size91) = iprot.readListBegin()
6897
          for _i95 in xrange(_size91):
6898
            _elem96 = InventoryAvailability()
6899
            _elem96.read(iprot)
6900
            self.success.append(_elem96)
6630 amar.kumar 6901
          iprot.readListEnd()
6902
        else:
6903
          iprot.skip(ftype)
6904
      else:
6905
        iprot.skip(ftype)
6906
      iprot.readFieldEnd()
6907
    iprot.readStructEnd()
6908
 
6909
  def write(self, oprot):
6910
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6911
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6912
      return
6913
    oprot.writeStructBegin('getCurrentNonSerializedInventoryByScans_result')
6914
    if self.success is not None:
6915
      oprot.writeFieldBegin('success', TType.LIST, 0)
6916
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6917
      for iter97 in self.success:
6918
        iter97.write(oprot)
6630 amar.kumar 6919
      oprot.writeListEnd()
6920
      oprot.writeFieldEnd()
6921
    oprot.writeFieldStop()
6922
    oprot.writeStructEnd()
6923
 
6924
  def validate(self):
6925
    return
6926
 
6927
 
6928
  def __repr__(self):
6929
    L = ['%s=%r' % (key, value)
6930
      for key, value in self.__dict__.iteritems()]
6931
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6932
 
6933
  def __eq__(self, other):
6934
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6935
 
6936
  def __ne__(self, other):
6937
    return not (self == other)
6762 amar.kumar 6938
 
6939
class getHistoricSerializedInventoryByScans_args:
6940
  """
6941
  Attributes:
6942
   - date
6943
  """
6944
 
6945
  thrift_spec = (
6946
    None, # 0
6947
    (1, TType.I64, 'date', None, None, ), # 1
6948
  )
6949
 
6950
  def __init__(self, date=None,):
6951
    self.date = date
6952
 
6953
  def read(self, iprot):
6954
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6955
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6956
      return
6957
    iprot.readStructBegin()
6958
    while True:
6959
      (fname, ftype, fid) = iprot.readFieldBegin()
6960
      if ftype == TType.STOP:
6961
        break
6962
      if fid == 1:
6963
        if ftype == TType.I64:
6964
          self.date = iprot.readI64();
6965
        else:
6966
          iprot.skip(ftype)
6967
      else:
6968
        iprot.skip(ftype)
6969
      iprot.readFieldEnd()
6970
    iprot.readStructEnd()
6971
 
6972
  def write(self, oprot):
6973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6975
      return
6976
    oprot.writeStructBegin('getHistoricSerializedInventoryByScans_args')
6977
    if self.date is not None:
6978
      oprot.writeFieldBegin('date', TType.I64, 1)
6979
      oprot.writeI64(self.date)
6980
      oprot.writeFieldEnd()
6981
    oprot.writeFieldStop()
6982
    oprot.writeStructEnd()
6983
 
6984
  def validate(self):
6985
    return
6986
 
6987
 
6988
  def __repr__(self):
6989
    L = ['%s=%r' % (key, value)
6990
      for key, value in self.__dict__.iteritems()]
6991
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6992
 
6993
  def __eq__(self, other):
6994
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6995
 
6996
  def __ne__(self, other):
6997
    return not (self == other)
6998
 
6999
class getHistoricSerializedInventoryByScans_result:
7000
  """
7001
  Attributes:
7002
   - success
7003
  """
7004
 
7005
  thrift_spec = (
7006
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7007
  )
7008
 
7009
  def __init__(self, success=None,):
7010
    self.success = success
7011
 
7012
  def read(self, iprot):
7013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7015
      return
7016
    iprot.readStructBegin()
7017
    while True:
7018
      (fname, ftype, fid) = iprot.readFieldBegin()
7019
      if ftype == TType.STOP:
7020
        break
7021
      if fid == 0:
7022
        if ftype == TType.LIST:
7023
          self.success = []
10407 amar.kumar 7024
          (_etype101, _size98) = iprot.readListBegin()
7025
          for _i102 in xrange(_size98):
7026
            _elem103 = InventoryAvailability()
7027
            _elem103.read(iprot)
7028
            self.success.append(_elem103)
6762 amar.kumar 7029
          iprot.readListEnd()
7030
        else:
7031
          iprot.skip(ftype)
7032
      else:
7033
        iprot.skip(ftype)
7034
      iprot.readFieldEnd()
7035
    iprot.readStructEnd()
7036
 
7037
  def write(self, oprot):
7038
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7039
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7040
      return
7041
    oprot.writeStructBegin('getHistoricSerializedInventoryByScans_result')
7042
    if self.success is not None:
7043
      oprot.writeFieldBegin('success', TType.LIST, 0)
7044
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7045
      for iter104 in self.success:
7046
        iter104.write(oprot)
6762 amar.kumar 7047
      oprot.writeListEnd()
7048
      oprot.writeFieldEnd()
7049
    oprot.writeFieldStop()
7050
    oprot.writeStructEnd()
7051
 
7052
  def validate(self):
7053
    return
7054
 
7055
 
7056
  def __repr__(self):
7057
    L = ['%s=%r' % (key, value)
7058
      for key, value in self.__dict__.iteritems()]
7059
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7060
 
7061
  def __eq__(self, other):
7062
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7063
 
7064
  def __ne__(self, other):
7065
    return not (self == other)
7066
 
7067
class getHistoricNonSerializedInventoryByScans_args:
7068
  """
7069
  Attributes:
7070
   - date
7071
  """
7072
 
7073
  thrift_spec = (
7074
    None, # 0
7075
    (1, TType.I64, 'date', None, None, ), # 1
7076
  )
7077
 
7078
  def __init__(self, date=None,):
7079
    self.date = date
7080
 
7081
  def read(self, iprot):
7082
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7083
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7084
      return
7085
    iprot.readStructBegin()
7086
    while True:
7087
      (fname, ftype, fid) = iprot.readFieldBegin()
7088
      if ftype == TType.STOP:
7089
        break
7090
      if fid == 1:
7091
        if ftype == TType.I64:
7092
          self.date = iprot.readI64();
7093
        else:
7094
          iprot.skip(ftype)
7095
      else:
7096
        iprot.skip(ftype)
7097
      iprot.readFieldEnd()
7098
    iprot.readStructEnd()
7099
 
7100
  def write(self, oprot):
7101
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7102
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7103
      return
7104
    oprot.writeStructBegin('getHistoricNonSerializedInventoryByScans_args')
7105
    if self.date is not None:
7106
      oprot.writeFieldBegin('date', TType.I64, 1)
7107
      oprot.writeI64(self.date)
7108
      oprot.writeFieldEnd()
7109
    oprot.writeFieldStop()
7110
    oprot.writeStructEnd()
7111
 
7112
  def validate(self):
7113
    return
7114
 
7115
 
7116
  def __repr__(self):
7117
    L = ['%s=%r' % (key, value)
7118
      for key, value in self.__dict__.iteritems()]
7119
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7120
 
7121
  def __eq__(self, other):
7122
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7123
 
7124
  def __ne__(self, other):
7125
    return not (self == other)
7126
 
7127
class getHistoricNonSerializedInventoryByScans_result:
7128
  """
7129
  Attributes:
7130
   - success
7131
  """
7132
 
7133
  thrift_spec = (
7134
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7135
  )
7136
 
7137
  def __init__(self, success=None,):
7138
    self.success = success
7139
 
7140
  def read(self, iprot):
7141
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7142
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7143
      return
7144
    iprot.readStructBegin()
7145
    while True:
7146
      (fname, ftype, fid) = iprot.readFieldBegin()
7147
      if ftype == TType.STOP:
7148
        break
7149
      if fid == 0:
7150
        if ftype == TType.LIST:
7151
          self.success = []
10407 amar.kumar 7152
          (_etype108, _size105) = iprot.readListBegin()
7153
          for _i109 in xrange(_size105):
7154
            _elem110 = InventoryAvailability()
7155
            _elem110.read(iprot)
7156
            self.success.append(_elem110)
6762 amar.kumar 7157
          iprot.readListEnd()
7158
        else:
7159
          iprot.skip(ftype)
7160
      else:
7161
        iprot.skip(ftype)
7162
      iprot.readFieldEnd()
7163
    iprot.readStructEnd()
7164
 
7165
  def write(self, oprot):
7166
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7167
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7168
      return
7169
    oprot.writeStructBegin('getHistoricNonSerializedInventoryByScans_result')
7170
    if self.success is not None:
7171
      oprot.writeFieldBegin('success', TType.LIST, 0)
7172
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7173
      for iter111 in self.success:
7174
        iter111.write(oprot)
6762 amar.kumar 7175
      oprot.writeListEnd()
7176
      oprot.writeFieldEnd()
7177
    oprot.writeFieldStop()
7178
    oprot.writeStructEnd()
7179
 
7180
  def validate(self):
7181
    return
7182
 
7183
 
7184
  def __repr__(self):
7185
    L = ['%s=%r' % (key, value)
7186
      for key, value in self.__dict__.iteritems()]
7187
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7188
 
7189
  def __eq__(self, other):
7190
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7191
 
7192
  def __ne__(self, other):
7193
    return not (self == other)
7194
 
10407 amar.kumar 7195
class getOurHistoricSerializedInventoryByScans_args:
7196
  """
7197
  Attributes:
7198
   - date
7199
  """
7200
 
7201
  thrift_spec = (
7202
    None, # 0
7203
    (1, TType.I64, 'date', None, None, ), # 1
7204
  )
7205
 
7206
  def __init__(self, date=None,):
7207
    self.date = date
7208
 
7209
  def read(self, iprot):
7210
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7211
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7212
      return
7213
    iprot.readStructBegin()
7214
    while True:
7215
      (fname, ftype, fid) = iprot.readFieldBegin()
7216
      if ftype == TType.STOP:
7217
        break
7218
      if fid == 1:
7219
        if ftype == TType.I64:
7220
          self.date = iprot.readI64();
7221
        else:
7222
          iprot.skip(ftype)
7223
      else:
7224
        iprot.skip(ftype)
7225
      iprot.readFieldEnd()
7226
    iprot.readStructEnd()
7227
 
7228
  def write(self, oprot):
7229
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7230
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7231
      return
7232
    oprot.writeStructBegin('getOurHistoricSerializedInventoryByScans_args')
7233
    if self.date is not None:
7234
      oprot.writeFieldBegin('date', TType.I64, 1)
7235
      oprot.writeI64(self.date)
7236
      oprot.writeFieldEnd()
7237
    oprot.writeFieldStop()
7238
    oprot.writeStructEnd()
7239
 
7240
  def validate(self):
7241
    return
7242
 
7243
 
7244
  def __repr__(self):
7245
    L = ['%s=%r' % (key, value)
7246
      for key, value in self.__dict__.iteritems()]
7247
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7248
 
7249
  def __eq__(self, other):
7250
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7251
 
7252
  def __ne__(self, other):
7253
    return not (self == other)
7254
 
7255
class getOurHistoricSerializedInventoryByScans_result:
7256
  """
7257
  Attributes:
7258
   - success
7259
  """
7260
 
7261
  thrift_spec = (
7262
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7263
  )
7264
 
7265
  def __init__(self, success=None,):
7266
    self.success = success
7267
 
7268
  def read(self, iprot):
7269
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7270
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7271
      return
7272
    iprot.readStructBegin()
7273
    while True:
7274
      (fname, ftype, fid) = iprot.readFieldBegin()
7275
      if ftype == TType.STOP:
7276
        break
7277
      if fid == 0:
7278
        if ftype == TType.LIST:
7279
          self.success = []
7280
          (_etype115, _size112) = iprot.readListBegin()
7281
          for _i116 in xrange(_size112):
7282
            _elem117 = InventoryAvailability()
7283
            _elem117.read(iprot)
7284
            self.success.append(_elem117)
7285
          iprot.readListEnd()
7286
        else:
7287
          iprot.skip(ftype)
7288
      else:
7289
        iprot.skip(ftype)
7290
      iprot.readFieldEnd()
7291
    iprot.readStructEnd()
7292
 
7293
  def write(self, oprot):
7294
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7295
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7296
      return
7297
    oprot.writeStructBegin('getOurHistoricSerializedInventoryByScans_result')
7298
    if self.success is not None:
7299
      oprot.writeFieldBegin('success', TType.LIST, 0)
7300
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7301
      for iter118 in self.success:
7302
        iter118.write(oprot)
7303
      oprot.writeListEnd()
7304
      oprot.writeFieldEnd()
7305
    oprot.writeFieldStop()
7306
    oprot.writeStructEnd()
7307
 
7308
  def validate(self):
7309
    return
7310
 
7311
 
7312
  def __repr__(self):
7313
    L = ['%s=%r' % (key, value)
7314
      for key, value in self.__dict__.iteritems()]
7315
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7316
 
7317
  def __eq__(self, other):
7318
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7319
 
7320
  def __ne__(self, other):
7321
    return not (self == other)
7322
 
7323
class getOurHistoricNonSerializedInventoryByScans_args:
7324
  """
7325
  Attributes:
7326
   - date
7327
  """
7328
 
7329
  thrift_spec = (
7330
    None, # 0
7331
    (1, TType.I64, 'date', None, None, ), # 1
7332
  )
7333
 
7334
  def __init__(self, date=None,):
7335
    self.date = date
7336
 
7337
  def read(self, iprot):
7338
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7339
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7340
      return
7341
    iprot.readStructBegin()
7342
    while True:
7343
      (fname, ftype, fid) = iprot.readFieldBegin()
7344
      if ftype == TType.STOP:
7345
        break
7346
      if fid == 1:
7347
        if ftype == TType.I64:
7348
          self.date = iprot.readI64();
7349
        else:
7350
          iprot.skip(ftype)
7351
      else:
7352
        iprot.skip(ftype)
7353
      iprot.readFieldEnd()
7354
    iprot.readStructEnd()
7355
 
7356
  def write(self, oprot):
7357
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7358
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7359
      return
7360
    oprot.writeStructBegin('getOurHistoricNonSerializedInventoryByScans_args')
7361
    if self.date is not None:
7362
      oprot.writeFieldBegin('date', TType.I64, 1)
7363
      oprot.writeI64(self.date)
7364
      oprot.writeFieldEnd()
7365
    oprot.writeFieldStop()
7366
    oprot.writeStructEnd()
7367
 
7368
  def validate(self):
7369
    return
7370
 
7371
 
7372
  def __repr__(self):
7373
    L = ['%s=%r' % (key, value)
7374
      for key, value in self.__dict__.iteritems()]
7375
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7376
 
7377
  def __eq__(self, other):
7378
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7379
 
7380
  def __ne__(self, other):
7381
    return not (self == other)
7382
 
7383
class getOurHistoricNonSerializedInventoryByScans_result:
7384
  """
7385
  Attributes:
7386
   - success
7387
  """
7388
 
7389
  thrift_spec = (
7390
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7391
  )
7392
 
7393
  def __init__(self, success=None,):
7394
    self.success = success
7395
 
7396
  def read(self, iprot):
7397
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7398
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7399
      return
7400
    iprot.readStructBegin()
7401
    while True:
7402
      (fname, ftype, fid) = iprot.readFieldBegin()
7403
      if ftype == TType.STOP:
7404
        break
7405
      if fid == 0:
7406
        if ftype == TType.LIST:
7407
          self.success = []
7408
          (_etype122, _size119) = iprot.readListBegin()
7409
          for _i123 in xrange(_size119):
7410
            _elem124 = InventoryAvailability()
7411
            _elem124.read(iprot)
7412
            self.success.append(_elem124)
7413
          iprot.readListEnd()
7414
        else:
7415
          iprot.skip(ftype)
7416
      else:
7417
        iprot.skip(ftype)
7418
      iprot.readFieldEnd()
7419
    iprot.readStructEnd()
7420
 
7421
  def write(self, oprot):
7422
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7423
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7424
      return
7425
    oprot.writeStructBegin('getOurHistoricNonSerializedInventoryByScans_result')
7426
    if self.success is not None:
7427
      oprot.writeFieldBegin('success', TType.LIST, 0)
7428
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7429
      for iter125 in self.success:
7430
        iter125.write(oprot)
7431
      oprot.writeListEnd()
7432
      oprot.writeFieldEnd()
7433
    oprot.writeFieldStop()
7434
    oprot.writeStructEnd()
7435
 
7436
  def validate(self):
7437
    return
7438
 
7439
 
7440
  def __repr__(self):
7441
    L = ['%s=%r' % (key, value)
7442
      for key, value in self.__dict__.iteritems()]
7443
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7444
 
7445
  def __eq__(self, other):
7446
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7447
 
7448
  def __ne__(self, other):
7449
    return not (self == other)
7450
 
6762 amar.kumar 7451
class scanForOursExternalSale_args:
7452
  """
7453
  Attributes:
7454
   - itemId
7455
   - serialNumber
7456
   - itemNumber
7457
   - invoiceNumber
7458
   - warehouseId
7459
   - unitPrice
7672 rajveer 7460
   - nlc
6762 amar.kumar 7461
   - orderId
7462
  """
7463
 
7464
  thrift_spec = (
7465
    None, # 0
7466
    (1, TType.I64, 'itemId', None, None, ), # 1
7467
    (2, TType.STRING, 'serialNumber', None, None, ), # 2
7468
    (3, TType.STRING, 'itemNumber', None, None, ), # 3
7469
    (4, TType.STRING, 'invoiceNumber', None, None, ), # 4
7470
    (5, TType.I64, 'warehouseId', None, None, ), # 5
7471
    (6, TType.DOUBLE, 'unitPrice', None, None, ), # 6
7672 rajveer 7472
    (7, TType.DOUBLE, 'nlc', None, None, ), # 7
7473
    (8, TType.I64, 'orderId', None, None, ), # 8
6762 amar.kumar 7474
  )
7475
 
7672 rajveer 7476
  def __init__(self, itemId=None, serialNumber=None, itemNumber=None, invoiceNumber=None, warehouseId=None, unitPrice=None, nlc=None, orderId=None,):
6762 amar.kumar 7477
    self.itemId = itemId
7478
    self.serialNumber = serialNumber
7479
    self.itemNumber = itemNumber
7480
    self.invoiceNumber = invoiceNumber
7481
    self.warehouseId = warehouseId
7482
    self.unitPrice = unitPrice
7672 rajveer 7483
    self.nlc = nlc
6762 amar.kumar 7484
    self.orderId = orderId
7485
 
7486
  def read(self, iprot):
7487
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7488
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7489
      return
7490
    iprot.readStructBegin()
7491
    while True:
7492
      (fname, ftype, fid) = iprot.readFieldBegin()
7493
      if ftype == TType.STOP:
7494
        break
7495
      if fid == 1:
7496
        if ftype == TType.I64:
7497
          self.itemId = iprot.readI64();
7498
        else:
7499
          iprot.skip(ftype)
7500
      elif fid == 2:
7501
        if ftype == TType.STRING:
7502
          self.serialNumber = iprot.readString();
7503
        else:
7504
          iprot.skip(ftype)
7505
      elif fid == 3:
7506
        if ftype == TType.STRING:
7507
          self.itemNumber = iprot.readString();
7508
        else:
7509
          iprot.skip(ftype)
7510
      elif fid == 4:
7511
        if ftype == TType.STRING:
7512
          self.invoiceNumber = iprot.readString();
7513
        else:
7514
          iprot.skip(ftype)
7515
      elif fid == 5:
7516
        if ftype == TType.I64:
7517
          self.warehouseId = iprot.readI64();
7518
        else:
7519
          iprot.skip(ftype)
7520
      elif fid == 6:
7521
        if ftype == TType.DOUBLE:
7522
          self.unitPrice = iprot.readDouble();
7523
        else:
7524
          iprot.skip(ftype)
7525
      elif fid == 7:
7672 rajveer 7526
        if ftype == TType.DOUBLE:
7527
          self.nlc = iprot.readDouble();
7528
        else:
7529
          iprot.skip(ftype)
7530
      elif fid == 8:
6762 amar.kumar 7531
        if ftype == TType.I64:
7532
          self.orderId = iprot.readI64();
7533
        else:
7534
          iprot.skip(ftype)
7535
      else:
7536
        iprot.skip(ftype)
7537
      iprot.readFieldEnd()
7538
    iprot.readStructEnd()
7539
 
7540
  def write(self, oprot):
7541
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7542
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7543
      return
7544
    oprot.writeStructBegin('scanForOursExternalSale_args')
7545
    if self.itemId is not None:
7546
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7547
      oprot.writeI64(self.itemId)
7548
      oprot.writeFieldEnd()
7549
    if self.serialNumber is not None:
7550
      oprot.writeFieldBegin('serialNumber', TType.STRING, 2)
7551
      oprot.writeString(self.serialNumber)
7552
      oprot.writeFieldEnd()
7553
    if self.itemNumber is not None:
7554
      oprot.writeFieldBegin('itemNumber', TType.STRING, 3)
7555
      oprot.writeString(self.itemNumber)
7556
      oprot.writeFieldEnd()
7557
    if self.invoiceNumber is not None:
7558
      oprot.writeFieldBegin('invoiceNumber', TType.STRING, 4)
7559
      oprot.writeString(self.invoiceNumber)
7560
      oprot.writeFieldEnd()
7561
    if self.warehouseId is not None:
7562
      oprot.writeFieldBegin('warehouseId', TType.I64, 5)
7563
      oprot.writeI64(self.warehouseId)
7564
      oprot.writeFieldEnd()
7565
    if self.unitPrice is not None:
7566
      oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 6)
7567
      oprot.writeDouble(self.unitPrice)
7568
      oprot.writeFieldEnd()
7672 rajveer 7569
    if self.nlc is not None:
7570
      oprot.writeFieldBegin('nlc', TType.DOUBLE, 7)
7571
      oprot.writeDouble(self.nlc)
7572
      oprot.writeFieldEnd()
6762 amar.kumar 7573
    if self.orderId is not None:
7672 rajveer 7574
      oprot.writeFieldBegin('orderId', TType.I64, 8)
6762 amar.kumar 7575
      oprot.writeI64(self.orderId)
7576
      oprot.writeFieldEnd()
7577
    oprot.writeFieldStop()
7578
    oprot.writeStructEnd()
7579
 
7580
  def validate(self):
7581
    return
7582
 
7583
 
7584
  def __repr__(self):
7585
    L = ['%s=%r' % (key, value)
7586
      for key, value in self.__dict__.iteritems()]
7587
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7588
 
7589
  def __eq__(self, other):
7590
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7591
 
7592
  def __ne__(self, other):
7593
    return not (self == other)
7594
 
7595
class scanForOursExternalSale_result:
7596
  """
7597
  Attributes:
7598
   - success
7599
   - ex
7600
  """
7601
 
7602
  thrift_spec = (
7603
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
7604
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
7605
  )
7606
 
7607
  def __init__(self, success=None, ex=None,):
7608
    self.success = success
7609
    self.ex = ex
7610
 
7611
  def read(self, iprot):
7612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7614
      return
7615
    iprot.readStructBegin()
7616
    while True:
7617
      (fname, ftype, fid) = iprot.readFieldBegin()
7618
      if ftype == TType.STOP:
7619
        break
7620
      if fid == 0:
7621
        if ftype == TType.STRUCT:
7622
          self.success = InventoryItem()
7623
          self.success.read(iprot)
7624
        else:
7625
          iprot.skip(ftype)
7626
      elif fid == 1:
7627
        if ftype == TType.STRUCT:
7628
          self.ex = WarehouseServiceException()
7629
          self.ex.read(iprot)
7630
        else:
7631
          iprot.skip(ftype)
7632
      else:
7633
        iprot.skip(ftype)
7634
      iprot.readFieldEnd()
7635
    iprot.readStructEnd()
7636
 
7637
  def write(self, oprot):
7638
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7639
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7640
      return
7641
    oprot.writeStructBegin('scanForOursExternalSale_result')
7642
    if self.success is not None:
7643
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7644
      self.success.write(oprot)
7645
      oprot.writeFieldEnd()
7646
    if self.ex is not None:
7647
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7648
      self.ex.write(oprot)
7649
      oprot.writeFieldEnd()
7650
    oprot.writeFieldStop()
7651
    oprot.writeStructEnd()
7652
 
7653
  def validate(self):
7654
    return
7655
 
7656
 
7657
  def __repr__(self):
7658
    L = ['%s=%r' % (key, value)
7659
      for key, value in self.__dict__.iteritems()]
7660
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7661
 
7662
  def __eq__(self, other):
7663
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7664
 
7665
  def __ne__(self, other):
7666
    return not (self == other)
7667
 
7668
class scanForOursExternalSaleReturn_args:
7669
  """
7670
  Attributes:
7671
   - orderId
7672
   - unitPrice
7673
  """
7674
 
7675
  thrift_spec = (
7676
    None, # 0
7677
    (1, TType.I64, 'orderId', None, None, ), # 1
7678
    (2, TType.DOUBLE, 'unitPrice', None, None, ), # 2
7679
  )
7680
 
7681
  def __init__(self, orderId=None, unitPrice=None,):
7682
    self.orderId = orderId
7683
    self.unitPrice = unitPrice
7684
 
7685
  def read(self, iprot):
7686
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7687
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7688
      return
7689
    iprot.readStructBegin()
7690
    while True:
7691
      (fname, ftype, fid) = iprot.readFieldBegin()
7692
      if ftype == TType.STOP:
7693
        break
7694
      if fid == 1:
7695
        if ftype == TType.I64:
7696
          self.orderId = iprot.readI64();
7697
        else:
7698
          iprot.skip(ftype)
7699
      elif fid == 2:
7700
        if ftype == TType.DOUBLE:
7701
          self.unitPrice = iprot.readDouble();
7702
        else:
7703
          iprot.skip(ftype)
7704
      else:
7705
        iprot.skip(ftype)
7706
      iprot.readFieldEnd()
7707
    iprot.readStructEnd()
7708
 
7709
  def write(self, oprot):
7710
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7711
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7712
      return
7713
    oprot.writeStructBegin('scanForOursExternalSaleReturn_args')
7714
    if self.orderId is not None:
7715
      oprot.writeFieldBegin('orderId', TType.I64, 1)
7716
      oprot.writeI64(self.orderId)
7717
      oprot.writeFieldEnd()
7718
    if self.unitPrice is not None:
7719
      oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 2)
7720
      oprot.writeDouble(self.unitPrice)
7721
      oprot.writeFieldEnd()
7722
    oprot.writeFieldStop()
7723
    oprot.writeStructEnd()
7724
 
7725
  def validate(self):
7726
    return
7727
 
7728
 
7729
  def __repr__(self):
7730
    L = ['%s=%r' % (key, value)
7731
      for key, value in self.__dict__.iteritems()]
7732
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7733
 
7734
  def __eq__(self, other):
7735
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7736
 
7737
  def __ne__(self, other):
7738
    return not (self == other)
7739
 
7740
class scanForOursExternalSaleReturn_result:
7410 amar.kumar 7741
  """
7742
  Attributes:
7743
   - ex
7744
  """
6762 amar.kumar 7745
 
7746
  thrift_spec = (
7410 amar.kumar 7747
    None, # 0
7748
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6762 amar.kumar 7749
  )
7750
 
7410 amar.kumar 7751
  def __init__(self, ex=None,):
7752
    self.ex = ex
7753
 
6762 amar.kumar 7754
  def read(self, iprot):
7755
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7756
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7757
      return
7758
    iprot.readStructBegin()
7759
    while True:
7760
      (fname, ftype, fid) = iprot.readFieldBegin()
7761
      if ftype == TType.STOP:
7762
        break
7410 amar.kumar 7763
      if fid == 1:
7764
        if ftype == TType.STRUCT:
7765
          self.ex = WarehouseServiceException()
7766
          self.ex.read(iprot)
7767
        else:
7768
          iprot.skip(ftype)
6762 amar.kumar 7769
      else:
7770
        iprot.skip(ftype)
7771
      iprot.readFieldEnd()
7772
    iprot.readStructEnd()
7773
 
7774
  def write(self, oprot):
7775
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7776
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7777
      return
7778
    oprot.writeStructBegin('scanForOursExternalSaleReturn_result')
7410 amar.kumar 7779
    if self.ex is not None:
7780
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7781
      self.ex.write(oprot)
7782
      oprot.writeFieldEnd()
6762 amar.kumar 7783
    oprot.writeFieldStop()
7784
    oprot.writeStructEnd()
7785
 
7786
  def validate(self):
7787
    return
7788
 
7789
 
7790
  def __repr__(self):
7791
    L = ['%s=%r' % (key, value)
7792
      for key, value in self.__dict__.iteritems()]
7793
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7794
 
7795
  def __eq__(self, other):
7796
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7797
 
7798
  def __ne__(self, other):
7799
    return not (self == other)
6880 amar.kumar 7800
 
7801
class getMovementNonSerializedInventoryByScans_args:
7802
  """
7803
  Attributes:
7804
   - startDate
7805
   - endDate
7806
  """
7807
 
7808
  thrift_spec = (
7809
    None, # 0
7810
    (1, TType.I64, 'startDate', None, None, ), # 1
7811
    (2, TType.I64, 'endDate', None, None, ), # 2
7812
  )
7813
 
7814
  def __init__(self, startDate=None, endDate=None,):
7815
    self.startDate = startDate
7816
    self.endDate = endDate
7817
 
7818
  def read(self, iprot):
7819
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7820
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7821
      return
7822
    iprot.readStructBegin()
7823
    while True:
7824
      (fname, ftype, fid) = iprot.readFieldBegin()
7825
      if ftype == TType.STOP:
7826
        break
7827
      if fid == 1:
7828
        if ftype == TType.I64:
7829
          self.startDate = iprot.readI64();
7830
        else:
7831
          iprot.skip(ftype)
7832
      elif fid == 2:
7833
        if ftype == TType.I64:
7834
          self.endDate = iprot.readI64();
7835
        else:
7836
          iprot.skip(ftype)
7837
      else:
7838
        iprot.skip(ftype)
7839
      iprot.readFieldEnd()
7840
    iprot.readStructEnd()
7841
 
7842
  def write(self, oprot):
7843
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7844
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7845
      return
7846
    oprot.writeStructBegin('getMovementNonSerializedInventoryByScans_args')
7847
    if self.startDate is not None:
7848
      oprot.writeFieldBegin('startDate', TType.I64, 1)
7849
      oprot.writeI64(self.startDate)
7850
      oprot.writeFieldEnd()
7851
    if self.endDate is not None:
7852
      oprot.writeFieldBegin('endDate', TType.I64, 2)
7853
      oprot.writeI64(self.endDate)
7854
      oprot.writeFieldEnd()
7855
    oprot.writeFieldStop()
7856
    oprot.writeStructEnd()
7857
 
7858
  def validate(self):
7859
    return
7860
 
7861
 
7862
  def __repr__(self):
7863
    L = ['%s=%r' % (key, value)
7864
      for key, value in self.__dict__.iteritems()]
7865
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7866
 
7867
  def __eq__(self, other):
7868
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7869
 
7870
  def __ne__(self, other):
7871
    return not (self == other)
7872
 
7873
class getMovementNonSerializedInventoryByScans_result:
7874
  """
7875
  Attributes:
7876
   - success
7877
  """
7878
 
7879
  thrift_spec = (
7880
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
7881
  )
7882
 
7883
  def __init__(self, success=None,):
7884
    self.success = success
7885
 
7886
  def read(self, iprot):
7887
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7888
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7889
      return
7890
    iprot.readStructBegin()
7891
    while True:
7892
      (fname, ftype, fid) = iprot.readFieldBegin()
7893
      if ftype == TType.STOP:
7894
        break
7895
      if fid == 0:
7896
        if ftype == TType.LIST:
7897
          self.success = []
10407 amar.kumar 7898
          (_etype129, _size126) = iprot.readListBegin()
7899
          for _i130 in xrange(_size126):
7900
            _elem131 = InventoryMovement()
7901
            _elem131.read(iprot)
7902
            self.success.append(_elem131)
6880 amar.kumar 7903
          iprot.readListEnd()
7904
        else:
7905
          iprot.skip(ftype)
7906
      else:
7907
        iprot.skip(ftype)
7908
      iprot.readFieldEnd()
7909
    iprot.readStructEnd()
7910
 
7911
  def write(self, oprot):
7912
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7913
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7914
      return
7915
    oprot.writeStructBegin('getMovementNonSerializedInventoryByScans_result')
7916
    if self.success is not None:
7917
      oprot.writeFieldBegin('success', TType.LIST, 0)
7918
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7919
      for iter132 in self.success:
7920
        iter132.write(oprot)
6880 amar.kumar 7921
      oprot.writeListEnd()
7922
      oprot.writeFieldEnd()
7923
    oprot.writeFieldStop()
7924
    oprot.writeStructEnd()
7925
 
7926
  def validate(self):
7927
    return
7928
 
7929
 
7930
  def __repr__(self):
7931
    L = ['%s=%r' % (key, value)
7932
      for key, value in self.__dict__.iteritems()]
7933
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7934
 
7935
  def __eq__(self, other):
7936
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7937
 
7938
  def __ne__(self, other):
7939
    return not (self == other)
7940
 
7941
class getMovementSerializedInventoryByScans_args:
7942
  """
7943
  Attributes:
7944
   - startDate
7945
   - endDate
7946
  """
7947
 
7948
  thrift_spec = (
7949
    None, # 0
7950
    (1, TType.I64, 'startDate', None, None, ), # 1
7951
    (2, TType.I64, 'endDate', None, None, ), # 2
7952
  )
7953
 
7954
  def __init__(self, startDate=None, endDate=None,):
7955
    self.startDate = startDate
7956
    self.endDate = endDate
7957
 
7958
  def read(self, iprot):
7959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7961
      return
7962
    iprot.readStructBegin()
7963
    while True:
7964
      (fname, ftype, fid) = iprot.readFieldBegin()
7965
      if ftype == TType.STOP:
7966
        break
7967
      if fid == 1:
7968
        if ftype == TType.I64:
7969
          self.startDate = iprot.readI64();
7970
        else:
7971
          iprot.skip(ftype)
7972
      elif fid == 2:
7973
        if ftype == TType.I64:
7974
          self.endDate = iprot.readI64();
7975
        else:
7976
          iprot.skip(ftype)
7977
      else:
7978
        iprot.skip(ftype)
7979
      iprot.readFieldEnd()
7980
    iprot.readStructEnd()
7981
 
7982
  def write(self, oprot):
7983
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7984
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7985
      return
7986
    oprot.writeStructBegin('getMovementSerializedInventoryByScans_args')
7987
    if self.startDate is not None:
7988
      oprot.writeFieldBegin('startDate', TType.I64, 1)
7989
      oprot.writeI64(self.startDate)
7990
      oprot.writeFieldEnd()
7991
    if self.endDate is not None:
7992
      oprot.writeFieldBegin('endDate', TType.I64, 2)
7993
      oprot.writeI64(self.endDate)
7994
      oprot.writeFieldEnd()
7995
    oprot.writeFieldStop()
7996
    oprot.writeStructEnd()
7997
 
7998
  def validate(self):
7999
    return
8000
 
8001
 
8002
  def __repr__(self):
8003
    L = ['%s=%r' % (key, value)
8004
      for key, value in self.__dict__.iteritems()]
8005
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8006
 
8007
  def __eq__(self, other):
8008
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8009
 
8010
  def __ne__(self, other):
8011
    return not (self == other)
8012
 
8013
class getMovementSerializedInventoryByScans_result:
8014
  """
8015
  Attributes:
8016
   - success
8017
  """
8018
 
8019
  thrift_spec = (
8020
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8021
  )
8022
 
8023
  def __init__(self, success=None,):
8024
    self.success = success
8025
 
8026
  def read(self, iprot):
8027
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8028
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8029
      return
8030
    iprot.readStructBegin()
8031
    while True:
8032
      (fname, ftype, fid) = iprot.readFieldBegin()
8033
      if ftype == TType.STOP:
8034
        break
8035
      if fid == 0:
8036
        if ftype == TType.LIST:
8037
          self.success = []
10407 amar.kumar 8038
          (_etype136, _size133) = iprot.readListBegin()
8039
          for _i137 in xrange(_size133):
8040
            _elem138 = InventoryMovement()
8041
            _elem138.read(iprot)
8042
            self.success.append(_elem138)
6880 amar.kumar 8043
          iprot.readListEnd()
8044
        else:
8045
          iprot.skip(ftype)
8046
      else:
8047
        iprot.skip(ftype)
8048
      iprot.readFieldEnd()
8049
    iprot.readStructEnd()
8050
 
8051
  def write(self, oprot):
8052
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8053
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8054
      return
8055
    oprot.writeStructBegin('getMovementSerializedInventoryByScans_result')
8056
    if self.success is not None:
8057
      oprot.writeFieldBegin('success', TType.LIST, 0)
8058
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8059
      for iter139 in self.success:
8060
        iter139.write(oprot)
6880 amar.kumar 8061
      oprot.writeListEnd()
8062
      oprot.writeFieldEnd()
8063
    oprot.writeFieldStop()
8064
    oprot.writeStructEnd()
8065
 
8066
  def validate(self):
8067
    return
8068
 
8069
 
8070
  def __repr__(self):
8071
    L = ['%s=%r' % (key, value)
8072
      for key, value in self.__dict__.iteritems()]
8073
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8074
 
8075
  def __eq__(self, other):
8076
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8077
 
8078
  def __ne__(self, other):
8079
    return not (self == other)
7190 amar.kumar 8080
 
7216 amar.kumar 8081
class getCompleteMovementSerializedInventoryByScans_args:
8082
  """
8083
  Attributes:
8084
   - startDate
8085
   - endDate
8086
  """
8087
 
8088
  thrift_spec = (
8089
    None, # 0
8090
    (1, TType.I64, 'startDate', None, None, ), # 1
8091
    (2, TType.I64, 'endDate', None, None, ), # 2
8092
  )
8093
 
8094
  def __init__(self, startDate=None, endDate=None,):
8095
    self.startDate = startDate
8096
    self.endDate = endDate
8097
 
8098
  def read(self, iprot):
8099
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8100
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8101
      return
8102
    iprot.readStructBegin()
8103
    while True:
8104
      (fname, ftype, fid) = iprot.readFieldBegin()
8105
      if ftype == TType.STOP:
8106
        break
8107
      if fid == 1:
8108
        if ftype == TType.I64:
8109
          self.startDate = iprot.readI64();
8110
        else:
8111
          iprot.skip(ftype)
8112
      elif fid == 2:
8113
        if ftype == TType.I64:
8114
          self.endDate = iprot.readI64();
8115
        else:
8116
          iprot.skip(ftype)
8117
      else:
8118
        iprot.skip(ftype)
8119
      iprot.readFieldEnd()
8120
    iprot.readStructEnd()
8121
 
8122
  def write(self, oprot):
8123
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8124
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8125
      return
8126
    oprot.writeStructBegin('getCompleteMovementSerializedInventoryByScans_args')
8127
    if self.startDate is not None:
8128
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8129
      oprot.writeI64(self.startDate)
8130
      oprot.writeFieldEnd()
8131
    if self.endDate is not None:
8132
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8133
      oprot.writeI64(self.endDate)
8134
      oprot.writeFieldEnd()
8135
    oprot.writeFieldStop()
8136
    oprot.writeStructEnd()
8137
 
8138
  def validate(self):
8139
    return
8140
 
8141
 
8142
  def __repr__(self):
8143
    L = ['%s=%r' % (key, value)
8144
      for key, value in self.__dict__.iteritems()]
8145
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8146
 
8147
  def __eq__(self, other):
8148
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8149
 
8150
  def __ne__(self, other):
8151
    return not (self == other)
8152
 
8153
class getCompleteMovementSerializedInventoryByScans_result:
8154
  """
8155
  Attributes:
8156
   - success
8157
  """
8158
 
8159
  thrift_spec = (
8160
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8161
  )
8162
 
8163
  def __init__(self, success=None,):
8164
    self.success = success
8165
 
8166
  def read(self, iprot):
8167
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8168
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8169
      return
8170
    iprot.readStructBegin()
8171
    while True:
8172
      (fname, ftype, fid) = iprot.readFieldBegin()
8173
      if ftype == TType.STOP:
8174
        break
8175
      if fid == 0:
8176
        if ftype == TType.LIST:
8177
          self.success = []
10407 amar.kumar 8178
          (_etype143, _size140) = iprot.readListBegin()
8179
          for _i144 in xrange(_size140):
8180
            _elem145 = InventoryMovement()
8181
            _elem145.read(iprot)
8182
            self.success.append(_elem145)
7216 amar.kumar 8183
          iprot.readListEnd()
8184
        else:
8185
          iprot.skip(ftype)
8186
      else:
8187
        iprot.skip(ftype)
8188
      iprot.readFieldEnd()
8189
    iprot.readStructEnd()
8190
 
8191
  def write(self, oprot):
8192
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8193
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8194
      return
8195
    oprot.writeStructBegin('getCompleteMovementSerializedInventoryByScans_result')
8196
    if self.success is not None:
8197
      oprot.writeFieldBegin('success', TType.LIST, 0)
8198
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8199
      for iter146 in self.success:
8200
        iter146.write(oprot)
7216 amar.kumar 8201
      oprot.writeListEnd()
8202
      oprot.writeFieldEnd()
8203
    oprot.writeFieldStop()
8204
    oprot.writeStructEnd()
8205
 
8206
  def validate(self):
8207
    return
8208
 
8209
 
8210
  def __repr__(self):
8211
    L = ['%s=%r' % (key, value)
8212
      for key, value in self.__dict__.iteritems()]
8213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8214
 
8215
  def __eq__(self, other):
8216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8217
 
8218
  def __ne__(self, other):
8219
    return not (self == other)
8220
 
8221
class getCompleteMovementNonSerializedInventoryByScans_args:
8222
  """
8223
  Attributes:
8224
   - startDate
8225
   - endDate
8226
  """
8227
 
8228
  thrift_spec = (
8229
    None, # 0
8230
    (1, TType.I64, 'startDate', None, None, ), # 1
8231
    (2, TType.I64, 'endDate', None, None, ), # 2
8232
  )
8233
 
8234
  def __init__(self, startDate=None, endDate=None,):
8235
    self.startDate = startDate
8236
    self.endDate = endDate
8237
 
8238
  def read(self, iprot):
8239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8241
      return
8242
    iprot.readStructBegin()
8243
    while True:
8244
      (fname, ftype, fid) = iprot.readFieldBegin()
8245
      if ftype == TType.STOP:
8246
        break
8247
      if fid == 1:
8248
        if ftype == TType.I64:
8249
          self.startDate = iprot.readI64();
8250
        else:
8251
          iprot.skip(ftype)
8252
      elif fid == 2:
8253
        if ftype == TType.I64:
8254
          self.endDate = iprot.readI64();
8255
        else:
8256
          iprot.skip(ftype)
8257
      else:
8258
        iprot.skip(ftype)
8259
      iprot.readFieldEnd()
8260
    iprot.readStructEnd()
8261
 
8262
  def write(self, oprot):
8263
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8264
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8265
      return
8266
    oprot.writeStructBegin('getCompleteMovementNonSerializedInventoryByScans_args')
8267
    if self.startDate is not None:
8268
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8269
      oprot.writeI64(self.startDate)
8270
      oprot.writeFieldEnd()
8271
    if self.endDate is not None:
8272
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8273
      oprot.writeI64(self.endDate)
8274
      oprot.writeFieldEnd()
8275
    oprot.writeFieldStop()
8276
    oprot.writeStructEnd()
8277
 
8278
  def validate(self):
8279
    return
8280
 
8281
 
8282
  def __repr__(self):
8283
    L = ['%s=%r' % (key, value)
8284
      for key, value in self.__dict__.iteritems()]
8285
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8286
 
8287
  def __eq__(self, other):
8288
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8289
 
8290
  def __ne__(self, other):
8291
    return not (self == other)
8292
 
8293
class getCompleteMovementNonSerializedInventoryByScans_result:
8294
  """
8295
  Attributes:
8296
   - success
8297
  """
8298
 
8299
  thrift_spec = (
8300
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8301
  )
8302
 
8303
  def __init__(self, success=None,):
8304
    self.success = success
8305
 
8306
  def read(self, iprot):
8307
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8308
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8309
      return
8310
    iprot.readStructBegin()
8311
    while True:
8312
      (fname, ftype, fid) = iprot.readFieldBegin()
8313
      if ftype == TType.STOP:
8314
        break
8315
      if fid == 0:
8316
        if ftype == TType.LIST:
8317
          self.success = []
10407 amar.kumar 8318
          (_etype150, _size147) = iprot.readListBegin()
8319
          for _i151 in xrange(_size147):
8320
            _elem152 = InventoryMovement()
8321
            _elem152.read(iprot)
8322
            self.success.append(_elem152)
7216 amar.kumar 8323
          iprot.readListEnd()
8324
        else:
8325
          iprot.skip(ftype)
8326
      else:
8327
        iprot.skip(ftype)
8328
      iprot.readFieldEnd()
8329
    iprot.readStructEnd()
8330
 
8331
  def write(self, oprot):
8332
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8333
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8334
      return
8335
    oprot.writeStructBegin('getCompleteMovementNonSerializedInventoryByScans_result')
8336
    if self.success is not None:
8337
      oprot.writeFieldBegin('success', TType.LIST, 0)
8338
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8339
      for iter153 in self.success:
8340
        iter153.write(oprot)
7216 amar.kumar 8341
      oprot.writeListEnd()
8342
      oprot.writeFieldEnd()
8343
    oprot.writeFieldStop()
8344
    oprot.writeStructEnd()
8345
 
8346
  def validate(self):
8347
    return
8348
 
8349
 
8350
  def __repr__(self):
8351
    L = ['%s=%r' % (key, value)
8352
      for key, value in self.__dict__.iteritems()]
8353
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8354
 
8355
  def __eq__(self, other):
8356
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8357
 
8358
  def __ne__(self, other):
8359
    return not (self == other)
8360
 
7190 amar.kumar 8361
class scanfreebie_args:
8362
  """
8363
  Attributes:
8364
   - orderId
8365
   - freebieItemId
8366
   - freebieWarehouseId
8367
   - scanType
8368
  """
8369
 
8370
  thrift_spec = (
8371
    None, # 0
8372
    (1, TType.I64, 'orderId', None, None, ), # 1
8373
    (2, TType.I64, 'freebieItemId', None, None, ), # 2
8374
    (3, TType.I64, 'freebieWarehouseId', None, None, ), # 3
8375
    (4, TType.I32, 'scanType', None, None, ), # 4
8376
  )
8377
 
8378
  def __init__(self, orderId=None, freebieItemId=None, freebieWarehouseId=None, scanType=None,):
8379
    self.orderId = orderId
8380
    self.freebieItemId = freebieItemId
8381
    self.freebieWarehouseId = freebieWarehouseId
8382
    self.scanType = scanType
8383
 
8384
  def read(self, iprot):
8385
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8386
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8387
      return
8388
    iprot.readStructBegin()
8389
    while True:
8390
      (fname, ftype, fid) = iprot.readFieldBegin()
8391
      if ftype == TType.STOP:
8392
        break
8393
      if fid == 1:
8394
        if ftype == TType.I64:
8395
          self.orderId = iprot.readI64();
8396
        else:
8397
          iprot.skip(ftype)
8398
      elif fid == 2:
8399
        if ftype == TType.I64:
8400
          self.freebieItemId = iprot.readI64();
8401
        else:
8402
          iprot.skip(ftype)
8403
      elif fid == 3:
8404
        if ftype == TType.I64:
8405
          self.freebieWarehouseId = iprot.readI64();
8406
        else:
8407
          iprot.skip(ftype)
8408
      elif fid == 4:
8409
        if ftype == TType.I32:
8410
          self.scanType = iprot.readI32();
8411
        else:
8412
          iprot.skip(ftype)
8413
      else:
8414
        iprot.skip(ftype)
8415
      iprot.readFieldEnd()
8416
    iprot.readStructEnd()
8417
 
8418
  def write(self, oprot):
8419
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8420
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8421
      return
8422
    oprot.writeStructBegin('scanfreebie_args')
8423
    if self.orderId is not None:
8424
      oprot.writeFieldBegin('orderId', TType.I64, 1)
8425
      oprot.writeI64(self.orderId)
8426
      oprot.writeFieldEnd()
8427
    if self.freebieItemId is not None:
8428
      oprot.writeFieldBegin('freebieItemId', TType.I64, 2)
8429
      oprot.writeI64(self.freebieItemId)
8430
      oprot.writeFieldEnd()
8431
    if self.freebieWarehouseId is not None:
8432
      oprot.writeFieldBegin('freebieWarehouseId', TType.I64, 3)
8433
      oprot.writeI64(self.freebieWarehouseId)
8434
      oprot.writeFieldEnd()
8435
    if self.scanType is not None:
8436
      oprot.writeFieldBegin('scanType', TType.I32, 4)
8437
      oprot.writeI32(self.scanType)
8438
      oprot.writeFieldEnd()
8439
    oprot.writeFieldStop()
8440
    oprot.writeStructEnd()
8441
 
8442
  def validate(self):
8443
    return
8444
 
8445
 
8446
  def __repr__(self):
8447
    L = ['%s=%r' % (key, value)
8448
      for key, value in self.__dict__.iteritems()]
8449
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8450
 
8451
  def __eq__(self, other):
8452
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8453
 
8454
  def __ne__(self, other):
8455
    return not (self == other)
8456
 
8457
class scanfreebie_result:
8458
  """
8459
  Attributes:
8460
   - success
8461
   - wex
8462
  """
8463
 
8464
  thrift_spec = (
8465
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
8466
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8467
  )
8468
 
8469
  def __init__(self, success=None, wex=None,):
8470
    self.success = success
8471
    self.wex = wex
8472
 
8473
  def read(self, iprot):
8474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8476
      return
8477
    iprot.readStructBegin()
8478
    while True:
8479
      (fname, ftype, fid) = iprot.readFieldBegin()
8480
      if ftype == TType.STOP:
8481
        break
8482
      if fid == 0:
8483
        if ftype == TType.STRUCT:
8484
          self.success = InventoryItem()
8485
          self.success.read(iprot)
8486
        else:
8487
          iprot.skip(ftype)
8488
      elif fid == 1:
8489
        if ftype == TType.STRUCT:
8490
          self.wex = WarehouseServiceException()
8491
          self.wex.read(iprot)
8492
        else:
8493
          iprot.skip(ftype)
8494
      else:
8495
        iprot.skip(ftype)
8496
      iprot.readFieldEnd()
8497
    iprot.readStructEnd()
8498
 
8499
  def write(self, oprot):
8500
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8501
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8502
      return
8503
    oprot.writeStructBegin('scanfreebie_result')
8504
    if self.success is not None:
8505
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8506
      self.success.write(oprot)
8507
      oprot.writeFieldEnd()
8508
    if self.wex is not None:
8509
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
8510
      self.wex.write(oprot)
8511
      oprot.writeFieldEnd()
8512
    oprot.writeFieldStop()
8513
    oprot.writeStructEnd()
8514
 
8515
  def validate(self):
8516
    return
8517
 
8518
 
8519
  def __repr__(self):
8520
    L = ['%s=%r' % (key, value)
8521
      for key, value in self.__dict__.iteritems()]
8522
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8523
 
8524
  def __eq__(self, other):
8525
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8526
 
8527
  def __ne__(self, other):
8528
    return not (self == other)
7199 amar.kumar 8529
 
8530
class reshipfreebie_args:
8531
  """
8532
  Attributes:
8533
   - oldOrderId
8534
   - newOrderId
8535
   - freebieItemId
8536
   - scanType
8537
  """
8538
 
8539
  thrift_spec = (
8540
    None, # 0
8541
    (1, TType.I64, 'oldOrderId', None, None, ), # 1
8542
    (2, TType.I64, 'newOrderId', None, None, ), # 2
8543
    (3, TType.I64, 'freebieItemId', None, None, ), # 3
8544
    (4, TType.I32, 'scanType', None, None, ), # 4
8545
  )
8546
 
8547
  def __init__(self, oldOrderId=None, newOrderId=None, freebieItemId=None, scanType=None,):
8548
    self.oldOrderId = oldOrderId
8549
    self.newOrderId = newOrderId
8550
    self.freebieItemId = freebieItemId
8551
    self.scanType = scanType
8552
 
8553
  def read(self, iprot):
8554
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8555
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8556
      return
8557
    iprot.readStructBegin()
8558
    while True:
8559
      (fname, ftype, fid) = iprot.readFieldBegin()
8560
      if ftype == TType.STOP:
8561
        break
8562
      if fid == 1:
8563
        if ftype == TType.I64:
8564
          self.oldOrderId = iprot.readI64();
8565
        else:
8566
          iprot.skip(ftype)
8567
      elif fid == 2:
8568
        if ftype == TType.I64:
8569
          self.newOrderId = iprot.readI64();
8570
        else:
8571
          iprot.skip(ftype)
8572
      elif fid == 3:
8573
        if ftype == TType.I64:
8574
          self.freebieItemId = iprot.readI64();
8575
        else:
8576
          iprot.skip(ftype)
8577
      elif fid == 4:
8578
        if ftype == TType.I32:
8579
          self.scanType = iprot.readI32();
8580
        else:
8581
          iprot.skip(ftype)
8582
      else:
8583
        iprot.skip(ftype)
8584
      iprot.readFieldEnd()
8585
    iprot.readStructEnd()
8586
 
8587
  def write(self, oprot):
8588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8590
      return
8591
    oprot.writeStructBegin('reshipfreebie_args')
8592
    if self.oldOrderId is not None:
8593
      oprot.writeFieldBegin('oldOrderId', TType.I64, 1)
8594
      oprot.writeI64(self.oldOrderId)
8595
      oprot.writeFieldEnd()
8596
    if self.newOrderId is not None:
8597
      oprot.writeFieldBegin('newOrderId', TType.I64, 2)
8598
      oprot.writeI64(self.newOrderId)
8599
      oprot.writeFieldEnd()
8600
    if self.freebieItemId is not None:
8601
      oprot.writeFieldBegin('freebieItemId', TType.I64, 3)
8602
      oprot.writeI64(self.freebieItemId)
8603
      oprot.writeFieldEnd()
8604
    if self.scanType is not None:
8605
      oprot.writeFieldBegin('scanType', TType.I32, 4)
8606
      oprot.writeI32(self.scanType)
8607
      oprot.writeFieldEnd()
8608
    oprot.writeFieldStop()
8609
    oprot.writeStructEnd()
8610
 
8611
  def validate(self):
8612
    return
8613
 
8614
 
8615
  def __repr__(self):
8616
    L = ['%s=%r' % (key, value)
8617
      for key, value in self.__dict__.iteritems()]
8618
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8619
 
8620
  def __eq__(self, other):
8621
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8622
 
8623
  def __ne__(self, other):
8624
    return not (self == other)
8625
 
8626
class reshipfreebie_result:
8627
  """
8628
  Attributes:
8629
   - wex
8630
  """
8631
 
8632
  thrift_spec = (
8633
    None, # 0
8634
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8635
  )
8636
 
8637
  def __init__(self, wex=None,):
8638
    self.wex = wex
8639
 
8640
  def read(self, iprot):
8641
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8642
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8643
      return
8644
    iprot.readStructBegin()
8645
    while True:
8646
      (fname, ftype, fid) = iprot.readFieldBegin()
8647
      if ftype == TType.STOP:
8648
        break
8649
      if fid == 1:
8650
        if ftype == TType.STRUCT:
8651
          self.wex = WarehouseServiceException()
8652
          self.wex.read(iprot)
8653
        else:
8654
          iprot.skip(ftype)
8655
      else:
8656
        iprot.skip(ftype)
8657
      iprot.readFieldEnd()
8658
    iprot.readStructEnd()
8659
 
8660
  def write(self, oprot):
8661
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8662
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8663
      return
8664
    oprot.writeStructBegin('reshipfreebie_result')
8665
    if self.wex is not None:
8666
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
8667
      self.wex.write(oprot)
8668
      oprot.writeFieldEnd()
8669
    oprot.writeFieldStop()
8670
    oprot.writeStructEnd()
8671
 
8672
  def validate(self):
8673
    return
8674
 
8675
 
8676
  def __repr__(self):
8677
    L = ['%s=%r' % (key, value)
8678
      for key, value in self.__dict__.iteritems()]
8679
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8680
 
8681
  def __eq__(self, other):
8682
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8683
 
8684
  def __ne__(self, other):
8685
    return not (self == other)
7410 amar.kumar 8686
 
8687
class isItemTransferAllowed_args:
8688
  """
8689
  Attributes:
8690
   - warehouseId
8691
   - transferWarehouseId
8692
  """
8693
 
8694
  thrift_spec = (
8695
    None, # 0
8696
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8697
    (2, TType.I64, 'transferWarehouseId', None, None, ), # 2
8698
  )
8699
 
8700
  def __init__(self, warehouseId=None, transferWarehouseId=None,):
8701
    self.warehouseId = warehouseId
8702
    self.transferWarehouseId = transferWarehouseId
8703
 
8704
  def read(self, iprot):
8705
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8706
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8707
      return
8708
    iprot.readStructBegin()
8709
    while True:
8710
      (fname, ftype, fid) = iprot.readFieldBegin()
8711
      if ftype == TType.STOP:
8712
        break
8713
      if fid == 1:
8714
        if ftype == TType.I64:
8715
          self.warehouseId = iprot.readI64();
8716
        else:
8717
          iprot.skip(ftype)
8718
      elif fid == 2:
8719
        if ftype == TType.I64:
8720
          self.transferWarehouseId = iprot.readI64();
8721
        else:
8722
          iprot.skip(ftype)
8723
      else:
8724
        iprot.skip(ftype)
8725
      iprot.readFieldEnd()
8726
    iprot.readStructEnd()
8727
 
8728
  def write(self, oprot):
8729
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8730
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8731
      return
8732
    oprot.writeStructBegin('isItemTransferAllowed_args')
8733
    if self.warehouseId is not None:
8734
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8735
      oprot.writeI64(self.warehouseId)
8736
      oprot.writeFieldEnd()
8737
    if self.transferWarehouseId is not None:
8738
      oprot.writeFieldBegin('transferWarehouseId', TType.I64, 2)
8739
      oprot.writeI64(self.transferWarehouseId)
8740
      oprot.writeFieldEnd()
8741
    oprot.writeFieldStop()
8742
    oprot.writeStructEnd()
8743
 
8744
  def validate(self):
8745
    return
8746
 
8747
 
8748
  def __repr__(self):
8749
    L = ['%s=%r' % (key, value)
8750
      for key, value in self.__dict__.iteritems()]
8751
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8752
 
8753
  def __eq__(self, other):
8754
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8755
 
8756
  def __ne__(self, other):
8757
    return not (self == other)
8758
 
8759
class isItemTransferAllowed_result:
8760
  """
8761
  Attributes:
8762
   - success
8763
  """
8764
 
8765
  thrift_spec = (
8766
    (0, TType.BOOL, 'success', None, None, ), # 0
8767
  )
8768
 
8769
  def __init__(self, success=None,):
8770
    self.success = success
8771
 
8772
  def read(self, iprot):
8773
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8774
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8775
      return
8776
    iprot.readStructBegin()
8777
    while True:
8778
      (fname, ftype, fid) = iprot.readFieldBegin()
8779
      if ftype == TType.STOP:
8780
        break
8781
      if fid == 0:
8782
        if ftype == TType.BOOL:
8783
          self.success = iprot.readBool();
8784
        else:
8785
          iprot.skip(ftype)
8786
      else:
8787
        iprot.skip(ftype)
8788
      iprot.readFieldEnd()
8789
    iprot.readStructEnd()
8790
 
8791
  def write(self, oprot):
8792
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8793
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8794
      return
8795
    oprot.writeStructBegin('isItemTransferAllowed_result')
8796
    if self.success is not None:
8797
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8798
      oprot.writeBool(self.success)
8799
      oprot.writeFieldEnd()
8800
    oprot.writeFieldStop()
8801
    oprot.writeStructEnd()
8802
 
8803
  def validate(self):
8804
    return
8805
 
8806
 
8807
  def __repr__(self):
8808
    L = ['%s=%r' % (key, value)
8809
      for key, value in self.__dict__.iteritems()]
8810
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8811
 
8812
  def __eq__(self, other):
8813
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8814
 
8815
  def __ne__(self, other):
8816
    return not (self == other)
8817
 
8818
class createTransferLot_args:
8819
  """
8820
  Attributes:
8821
   - originWarehouseId
8822
   - destWarehouseId
8823
  """
8824
 
8825
  thrift_spec = (
8826
    None, # 0
8827
    (1, TType.I64, 'originWarehouseId', None, None, ), # 1
8828
    (2, TType.I64, 'destWarehouseId', None, None, ), # 2
8829
  )
8830
 
8831
  def __init__(self, originWarehouseId=None, destWarehouseId=None,):
8832
    self.originWarehouseId = originWarehouseId
8833
    self.destWarehouseId = destWarehouseId
8834
 
8835
  def read(self, iprot):
8836
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8837
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8838
      return
8839
    iprot.readStructBegin()
8840
    while True:
8841
      (fname, ftype, fid) = iprot.readFieldBegin()
8842
      if ftype == TType.STOP:
8843
        break
8844
      if fid == 1:
8845
        if ftype == TType.I64:
8846
          self.originWarehouseId = iprot.readI64();
8847
        else:
8848
          iprot.skip(ftype)
8849
      elif fid == 2:
8850
        if ftype == TType.I64:
8851
          self.destWarehouseId = iprot.readI64();
8852
        else:
8853
          iprot.skip(ftype)
8854
      else:
8855
        iprot.skip(ftype)
8856
      iprot.readFieldEnd()
8857
    iprot.readStructEnd()
8858
 
8859
  def write(self, oprot):
8860
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8861
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8862
      return
8863
    oprot.writeStructBegin('createTransferLot_args')
8864
    if self.originWarehouseId is not None:
8865
      oprot.writeFieldBegin('originWarehouseId', TType.I64, 1)
8866
      oprot.writeI64(self.originWarehouseId)
8867
      oprot.writeFieldEnd()
8868
    if self.destWarehouseId is not None:
8869
      oprot.writeFieldBegin('destWarehouseId', TType.I64, 2)
8870
      oprot.writeI64(self.destWarehouseId)
8871
      oprot.writeFieldEnd()
8872
    oprot.writeFieldStop()
8873
    oprot.writeStructEnd()
8874
 
8875
  def validate(self):
8876
    return
8877
 
8878
 
8879
  def __repr__(self):
8880
    L = ['%s=%r' % (key, value)
8881
      for key, value in self.__dict__.iteritems()]
8882
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8883
 
8884
  def __eq__(self, other):
8885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8886
 
8887
  def __ne__(self, other):
8888
    return not (self == other)
8889
 
8890
class createTransferLot_result:
8891
  """
8892
  Attributes:
8893
   - success
8894
   - wex
8895
  """
8896
 
8897
  thrift_spec = (
8898
    (0, TType.I64, 'success', None, None, ), # 0
8899
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8900
  )
8901
 
8902
  def __init__(self, success=None, wex=None,):
8903
    self.success = success
8904
    self.wex = wex
8905
 
8906
  def read(self, iprot):
8907
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8908
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8909
      return
8910
    iprot.readStructBegin()
8911
    while True:
8912
      (fname, ftype, fid) = iprot.readFieldBegin()
8913
      if ftype == TType.STOP:
8914
        break
8915
      if fid == 0:
8916
        if ftype == TType.I64:
8917
          self.success = iprot.readI64();
8918
        else:
8919
          iprot.skip(ftype)
8920
      elif fid == 1:
8921
        if ftype == TType.STRUCT:
8922
          self.wex = WarehouseServiceException()
8923
          self.wex.read(iprot)
8924
        else:
8925
          iprot.skip(ftype)
8926
      else:
8927
        iprot.skip(ftype)
8928
      iprot.readFieldEnd()
8929
    iprot.readStructEnd()
8930
 
8931
  def write(self, oprot):
8932
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8933
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8934
      return
8935
    oprot.writeStructBegin('createTransferLot_result')
8936
    if self.success is not None:
8937
      oprot.writeFieldBegin('success', TType.I64, 0)
8938
      oprot.writeI64(self.success)
8939
      oprot.writeFieldEnd()
8940
    if self.wex is not None:
8941
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
8942
      self.wex.write(oprot)
8943
      oprot.writeFieldEnd()
8944
    oprot.writeFieldStop()
8945
    oprot.writeStructEnd()
8946
 
8947
  def validate(self):
8948
    return
8949
 
8950
 
8951
  def __repr__(self):
8952
    L = ['%s=%r' % (key, value)
8953
      for key, value in self.__dict__.iteritems()]
8954
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8955
 
8956
  def __eq__(self, other):
8957
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8958
 
8959
  def __ne__(self, other):
8960
    return not (self == other)
8961
 
8962
class getTransferLot_args:
8963
  """
8964
  Attributes:
8965
   - transferLotId
8966
  """
8967
 
8968
  thrift_spec = (
8969
    None, # 0
8970
    (1, TType.I64, 'transferLotId', None, None, ), # 1
8971
  )
8972
 
8973
  def __init__(self, transferLotId=None,):
8974
    self.transferLotId = transferLotId
8975
 
8976
  def read(self, iprot):
8977
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8978
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8979
      return
8980
    iprot.readStructBegin()
8981
    while True:
8982
      (fname, ftype, fid) = iprot.readFieldBegin()
8983
      if ftype == TType.STOP:
8984
        break
8985
      if fid == 1:
8986
        if ftype == TType.I64:
8987
          self.transferLotId = iprot.readI64();
8988
        else:
8989
          iprot.skip(ftype)
8990
      else:
8991
        iprot.skip(ftype)
8992
      iprot.readFieldEnd()
8993
    iprot.readStructEnd()
8994
 
8995
  def write(self, oprot):
8996
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8997
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8998
      return
8999
    oprot.writeStructBegin('getTransferLot_args')
9000
    if self.transferLotId is not None:
9001
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
9002
      oprot.writeI64(self.transferLotId)
9003
      oprot.writeFieldEnd()
9004
    oprot.writeFieldStop()
9005
    oprot.writeStructEnd()
9006
 
9007
  def validate(self):
9008
    return
9009
 
9010
 
9011
  def __repr__(self):
9012
    L = ['%s=%r' % (key, value)
9013
      for key, value in self.__dict__.iteritems()]
9014
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9015
 
9016
  def __eq__(self, other):
9017
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9018
 
9019
  def __ne__(self, other):
9020
    return not (self == other)
9021
 
9022
class getTransferLot_result:
9023
  """
9024
  Attributes:
9025
   - success
9026
   - wex
9027
  """
9028
 
9029
  thrift_spec = (
9030
    (0, TType.STRUCT, 'success', (TransferLot, TransferLot.thrift_spec), None, ), # 0
9031
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9032
  )
9033
 
9034
  def __init__(self, success=None, wex=None,):
9035
    self.success = success
9036
    self.wex = wex
9037
 
9038
  def read(self, iprot):
9039
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9040
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9041
      return
9042
    iprot.readStructBegin()
9043
    while True:
9044
      (fname, ftype, fid) = iprot.readFieldBegin()
9045
      if ftype == TType.STOP:
9046
        break
9047
      if fid == 0:
9048
        if ftype == TType.STRUCT:
9049
          self.success = TransferLot()
9050
          self.success.read(iprot)
9051
        else:
9052
          iprot.skip(ftype)
9053
      elif fid == 1:
9054
        if ftype == TType.STRUCT:
9055
          self.wex = WarehouseServiceException()
9056
          self.wex.read(iprot)
9057
        else:
9058
          iprot.skip(ftype)
9059
      else:
9060
        iprot.skip(ftype)
9061
      iprot.readFieldEnd()
9062
    iprot.readStructEnd()
9063
 
9064
  def write(self, oprot):
9065
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9066
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9067
      return
9068
    oprot.writeStructBegin('getTransferLot_result')
9069
    if self.success is not None:
9070
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9071
      self.success.write(oprot)
9072
      oprot.writeFieldEnd()
9073
    if self.wex is not None:
9074
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9075
      self.wex.write(oprot)
9076
      oprot.writeFieldEnd()
9077
    oprot.writeFieldStop()
9078
    oprot.writeStructEnd()
9079
 
9080
  def validate(self):
9081
    return
9082
 
9083
 
9084
  def __repr__(self):
9085
    L = ['%s=%r' % (key, value)
9086
      for key, value in self.__dict__.iteritems()]
9087
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9088
 
9089
  def __eq__(self, other):
9090
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9091
 
9092
  def __ne__(self, other):
9093
    return not (self == other)
9094
 
9095
class markTransferLotAsReceived_args:
9096
  """
9097
  Attributes:
9098
   - id
9099
   - remoteTransferRefNumber
9100
  """
9101
 
9102
  thrift_spec = (
9103
    None, # 0
9104
    (1, TType.I64, 'id', None, None, ), # 1
9105
    (2, TType.STRING, 'remoteTransferRefNumber', None, None, ), # 2
9106
  )
9107
 
9108
  def __init__(self, id=None, remoteTransferRefNumber=None,):
9109
    self.id = id
9110
    self.remoteTransferRefNumber = remoteTransferRefNumber
9111
 
9112
  def read(self, iprot):
9113
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9114
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9115
      return
9116
    iprot.readStructBegin()
9117
    while True:
9118
      (fname, ftype, fid) = iprot.readFieldBegin()
9119
      if ftype == TType.STOP:
9120
        break
9121
      if fid == 1:
9122
        if ftype == TType.I64:
9123
          self.id = iprot.readI64();
9124
        else:
9125
          iprot.skip(ftype)
9126
      elif fid == 2:
9127
        if ftype == TType.STRING:
9128
          self.remoteTransferRefNumber = iprot.readString();
9129
        else:
9130
          iprot.skip(ftype)
9131
      else:
9132
        iprot.skip(ftype)
9133
      iprot.readFieldEnd()
9134
    iprot.readStructEnd()
9135
 
9136
  def write(self, oprot):
9137
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9138
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9139
      return
9140
    oprot.writeStructBegin('markTransferLotAsReceived_args')
9141
    if self.id is not None:
9142
      oprot.writeFieldBegin('id', TType.I64, 1)
9143
      oprot.writeI64(self.id)
9144
      oprot.writeFieldEnd()
9145
    if self.remoteTransferRefNumber is not None:
9146
      oprot.writeFieldBegin('remoteTransferRefNumber', TType.STRING, 2)
9147
      oprot.writeString(self.remoteTransferRefNumber)
9148
      oprot.writeFieldEnd()
9149
    oprot.writeFieldStop()
9150
    oprot.writeStructEnd()
9151
 
9152
  def validate(self):
9153
    return
9154
 
9155
 
9156
  def __repr__(self):
9157
    L = ['%s=%r' % (key, value)
9158
      for key, value in self.__dict__.iteritems()]
9159
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9160
 
9161
  def __eq__(self, other):
9162
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9163
 
9164
  def __ne__(self, other):
9165
    return not (self == other)
9166
 
9167
class markTransferLotAsReceived_result:
9168
  """
9169
  Attributes:
9170
   - wex
9171
  """
9172
 
9173
  thrift_spec = (
9174
    None, # 0
9175
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9176
  )
9177
 
9178
  def __init__(self, wex=None,):
9179
    self.wex = wex
9180
 
9181
  def read(self, iprot):
9182
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9183
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9184
      return
9185
    iprot.readStructBegin()
9186
    while True:
9187
      (fname, ftype, fid) = iprot.readFieldBegin()
9188
      if ftype == TType.STOP:
9189
        break
9190
      if fid == 1:
9191
        if ftype == TType.STRUCT:
9192
          self.wex = WarehouseServiceException()
9193
          self.wex.read(iprot)
9194
        else:
9195
          iprot.skip(ftype)
9196
      else:
9197
        iprot.skip(ftype)
9198
      iprot.readFieldEnd()
9199
    iprot.readStructEnd()
9200
 
9201
  def write(self, oprot):
9202
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9203
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9204
      return
9205
    oprot.writeStructBegin('markTransferLotAsReceived_result')
9206
    if self.wex is not None:
9207
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9208
      self.wex.write(oprot)
9209
      oprot.writeFieldEnd()
9210
    oprot.writeFieldStop()
9211
    oprot.writeStructEnd()
9212
 
9213
  def validate(self):
9214
    return
9215
 
9216
 
9217
  def __repr__(self):
9218
    L = ['%s=%r' % (key, value)
9219
      for key, value in self.__dict__.iteritems()]
9220
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9221
 
9222
  def __eq__(self, other):
9223
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9224
 
9225
  def __ne__(self, other):
9226
    return not (self == other)
9227
 
9228
class getTransferLotsByDate_args:
9229
  """
9230
  Attributes:
9231
   - fromDate
9232
   - toDate
9233
  """
9234
 
9235
  thrift_spec = (
9236
    None, # 0
9237
    (1, TType.I64, 'fromDate', None, None, ), # 1
9238
    (2, TType.I64, 'toDate', None, None, ), # 2
9239
  )
9240
 
9241
  def __init__(self, fromDate=None, toDate=None,):
9242
    self.fromDate = fromDate
9243
    self.toDate = toDate
9244
 
9245
  def read(self, iprot):
9246
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9247
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9248
      return
9249
    iprot.readStructBegin()
9250
    while True:
9251
      (fname, ftype, fid) = iprot.readFieldBegin()
9252
      if ftype == TType.STOP:
9253
        break
9254
      if fid == 1:
9255
        if ftype == TType.I64:
9256
          self.fromDate = iprot.readI64();
9257
        else:
9258
          iprot.skip(ftype)
9259
      elif fid == 2:
9260
        if ftype == TType.I64:
9261
          self.toDate = iprot.readI64();
9262
        else:
9263
          iprot.skip(ftype)
9264
      else:
9265
        iprot.skip(ftype)
9266
      iprot.readFieldEnd()
9267
    iprot.readStructEnd()
9268
 
9269
  def write(self, oprot):
9270
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9271
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9272
      return
9273
    oprot.writeStructBegin('getTransferLotsByDate_args')
9274
    if self.fromDate is not None:
9275
      oprot.writeFieldBegin('fromDate', TType.I64, 1)
9276
      oprot.writeI64(self.fromDate)
9277
      oprot.writeFieldEnd()
9278
    if self.toDate is not None:
9279
      oprot.writeFieldBegin('toDate', TType.I64, 2)
9280
      oprot.writeI64(self.toDate)
9281
      oprot.writeFieldEnd()
9282
    oprot.writeFieldStop()
9283
    oprot.writeStructEnd()
9284
 
9285
  def validate(self):
9286
    return
9287
 
9288
 
9289
  def __repr__(self):
9290
    L = ['%s=%r' % (key, value)
9291
      for key, value in self.__dict__.iteritems()]
9292
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9293
 
9294
  def __eq__(self, other):
9295
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9296
 
9297
  def __ne__(self, other):
9298
    return not (self == other)
9299
 
9300
class getTransferLotsByDate_result:
9301
  """
9302
  Attributes:
9303
   - success
9304
   - wex
9305
  """
9306
 
9307
  thrift_spec = (
9308
    (0, TType.LIST, 'success', (TType.STRUCT,(TransferLot, TransferLot.thrift_spec)), None, ), # 0
9309
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9310
  )
9311
 
9312
  def __init__(self, success=None, wex=None,):
9313
    self.success = success
9314
    self.wex = wex
9315
 
9316
  def read(self, iprot):
9317
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9318
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9319
      return
9320
    iprot.readStructBegin()
9321
    while True:
9322
      (fname, ftype, fid) = iprot.readFieldBegin()
9323
      if ftype == TType.STOP:
9324
        break
9325
      if fid == 0:
9326
        if ftype == TType.LIST:
9327
          self.success = []
10407 amar.kumar 9328
          (_etype157, _size154) = iprot.readListBegin()
9329
          for _i158 in xrange(_size154):
9330
            _elem159 = TransferLot()
9331
            _elem159.read(iprot)
9332
            self.success.append(_elem159)
7410 amar.kumar 9333
          iprot.readListEnd()
9334
        else:
9335
          iprot.skip(ftype)
9336
      elif fid == 1:
9337
        if ftype == TType.STRUCT:
9338
          self.wex = WarehouseServiceException()
9339
          self.wex.read(iprot)
9340
        else:
9341
          iprot.skip(ftype)
9342
      else:
9343
        iprot.skip(ftype)
9344
      iprot.readFieldEnd()
9345
    iprot.readStructEnd()
9346
 
9347
  def write(self, oprot):
9348
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9349
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9350
      return
9351
    oprot.writeStructBegin('getTransferLotsByDate_result')
9352
    if self.success is not None:
9353
      oprot.writeFieldBegin('success', TType.LIST, 0)
9354
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 9355
      for iter160 in self.success:
9356
        iter160.write(oprot)
7410 amar.kumar 9357
      oprot.writeListEnd()
9358
      oprot.writeFieldEnd()
9359
    if self.wex is not None:
9360
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9361
      self.wex.write(oprot)
9362
      oprot.writeFieldEnd()
9363
    oprot.writeFieldStop()
9364
    oprot.writeStructEnd()
9365
 
9366
  def validate(self):
9367
    return
9368
 
9369
 
9370
  def __repr__(self):
9371
    L = ['%s=%r' % (key, value)
9372
      for key, value in self.__dict__.iteritems()]
9373
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9374
 
9375
  def __eq__(self, other):
9376
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9377
 
9378
  def __ne__(self, other):
9379
    return not (self == other)
9380
 
9381
class getAllowedDestinationWarehousesForTransfer_args:
9382
  """
9383
  Attributes:
9384
   - warehouseId
9385
  """
9386
 
9387
  thrift_spec = (
9388
    None, # 0
9389
    (1, TType.I64, 'warehouseId', None, None, ), # 1
9390
  )
9391
 
9392
  def __init__(self, warehouseId=None,):
9393
    self.warehouseId = warehouseId
9394
 
9395
  def read(self, iprot):
9396
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9397
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9398
      return
9399
    iprot.readStructBegin()
9400
    while True:
9401
      (fname, ftype, fid) = iprot.readFieldBegin()
9402
      if ftype == TType.STOP:
9403
        break
9404
      if fid == 1:
9405
        if ftype == TType.I64:
9406
          self.warehouseId = iprot.readI64();
9407
        else:
9408
          iprot.skip(ftype)
9409
      else:
9410
        iprot.skip(ftype)
9411
      iprot.readFieldEnd()
9412
    iprot.readStructEnd()
9413
 
9414
  def write(self, oprot):
9415
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9416
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9417
      return
9418
    oprot.writeStructBegin('getAllowedDestinationWarehousesForTransfer_args')
9419
    if self.warehouseId is not None:
9420
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
9421
      oprot.writeI64(self.warehouseId)
9422
      oprot.writeFieldEnd()
9423
    oprot.writeFieldStop()
9424
    oprot.writeStructEnd()
9425
 
9426
  def validate(self):
9427
    return
9428
 
9429
 
9430
  def __repr__(self):
9431
    L = ['%s=%r' % (key, value)
9432
      for key, value in self.__dict__.iteritems()]
9433
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9434
 
9435
  def __eq__(self, other):
9436
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9437
 
9438
  def __ne__(self, other):
9439
    return not (self == other)
9440
 
9441
class getAllowedDestinationWarehousesForTransfer_result:
9442
  """
9443
  Attributes:
9444
   - success
9445
  """
9446
 
9447
  thrift_spec = (
9448
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9449
  )
9450
 
9451
  def __init__(self, success=None,):
9452
    self.success = success
9453
 
9454
  def read(self, iprot):
9455
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9456
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9457
      return
9458
    iprot.readStructBegin()
9459
    while True:
9460
      (fname, ftype, fid) = iprot.readFieldBegin()
9461
      if ftype == TType.STOP:
9462
        break
9463
      if fid == 0:
9464
        if ftype == TType.LIST:
9465
          self.success = []
10407 amar.kumar 9466
          (_etype164, _size161) = iprot.readListBegin()
9467
          for _i165 in xrange(_size161):
9468
            _elem166 = iprot.readI64();
9469
            self.success.append(_elem166)
7410 amar.kumar 9470
          iprot.readListEnd()
9471
        else:
9472
          iprot.skip(ftype)
9473
      else:
9474
        iprot.skip(ftype)
9475
      iprot.readFieldEnd()
9476
    iprot.readStructEnd()
9477
 
9478
  def write(self, oprot):
9479
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9480
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9481
      return
9482
    oprot.writeStructBegin('getAllowedDestinationWarehousesForTransfer_result')
9483
    if self.success is not None:
9484
      oprot.writeFieldBegin('success', TType.LIST, 0)
9485
      oprot.writeListBegin(TType.I64, len(self.success))
10407 amar.kumar 9486
      for iter167 in self.success:
9487
        oprot.writeI64(iter167)
7410 amar.kumar 9488
      oprot.writeListEnd()
9489
      oprot.writeFieldEnd()
9490
    oprot.writeFieldStop()
9491
    oprot.writeStructEnd()
9492
 
9493
  def validate(self):
9494
    return
9495
 
9496
 
9497
  def __repr__(self):
9498
    L = ['%s=%r' % (key, value)
9499
      for key, value in self.__dict__.iteritems()]
9500
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9501
 
9502
  def __eq__(self, other):
9503
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9504
 
9505
  def __ne__(self, other):
9506
    return not (self == other)
9507
 
9508
class getItemsInTransferLot_args:
9509
  """
9510
  Attributes:
9511
   - transferLotId
9512
  """
9513
 
9514
  thrift_spec = (
9515
    None, # 0
9516
    (1, TType.I64, 'transferLotId', None, None, ), # 1
9517
  )
9518
 
9519
  def __init__(self, transferLotId=None,):
9520
    self.transferLotId = transferLotId
9521
 
9522
  def read(self, iprot):
9523
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9524
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9525
      return
9526
    iprot.readStructBegin()
9527
    while True:
9528
      (fname, ftype, fid) = iprot.readFieldBegin()
9529
      if ftype == TType.STOP:
9530
        break
9531
      if fid == 1:
9532
        if ftype == TType.I64:
9533
          self.transferLotId = iprot.readI64();
9534
        else:
9535
          iprot.skip(ftype)
9536
      else:
9537
        iprot.skip(ftype)
9538
      iprot.readFieldEnd()
9539
    iprot.readStructEnd()
9540
 
9541
  def write(self, oprot):
9542
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9543
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9544
      return
9545
    oprot.writeStructBegin('getItemsInTransferLot_args')
9546
    if self.transferLotId is not None:
9547
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
9548
      oprot.writeI64(self.transferLotId)
9549
      oprot.writeFieldEnd()
9550
    oprot.writeFieldStop()
9551
    oprot.writeStructEnd()
9552
 
9553
  def validate(self):
9554
    return
9555
 
9556
 
9557
  def __repr__(self):
9558
    L = ['%s=%r' % (key, value)
9559
      for key, value in self.__dict__.iteritems()]
9560
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9561
 
9562
  def __eq__(self, other):
9563
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9564
 
9565
  def __ne__(self, other):
9566
    return not (self == other)
9567
 
9568
class getItemsInTransferLot_result:
9569
  """
9570
  Attributes:
9571
   - success
9572
  """
9573
 
9574
  thrift_spec = (
9575
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
9576
  )
9577
 
9578
  def __init__(self, success=None,):
9579
    self.success = success
9580
 
9581
  def read(self, iprot):
9582
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9583
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9584
      return
9585
    iprot.readStructBegin()
9586
    while True:
9587
      (fname, ftype, fid) = iprot.readFieldBegin()
9588
      if ftype == TType.STOP:
9589
        break
9590
      if fid == 0:
9591
        if ftype == TType.MAP:
9592
          self.success = {}
10407 amar.kumar 9593
          (_ktype169, _vtype170, _size168 ) = iprot.readMapBegin() 
9594
          for _i172 in xrange(_size168):
9595
            _key173 = iprot.readI64();
9596
            _val174 = iprot.readI64();
9597
            self.success[_key173] = _val174
7410 amar.kumar 9598
          iprot.readMapEnd()
9599
        else:
9600
          iprot.skip(ftype)
9601
      else:
9602
        iprot.skip(ftype)
9603
      iprot.readFieldEnd()
9604
    iprot.readStructEnd()
9605
 
9606
  def write(self, oprot):
9607
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9608
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9609
      return
9610
    oprot.writeStructBegin('getItemsInTransferLot_result')
9611
    if self.success is not None:
9612
      oprot.writeFieldBegin('success', TType.MAP, 0)
9613
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
10407 amar.kumar 9614
      for kiter175,viter176 in self.success.items():
9615
        oprot.writeI64(kiter175)
9616
        oprot.writeI64(viter176)
7410 amar.kumar 9617
      oprot.writeMapEnd()
9618
      oprot.writeFieldEnd()
9619
    oprot.writeFieldStop()
9620
    oprot.writeStructEnd()
9621
 
9622
  def validate(self):
9623
    return
9624
 
9625
 
9626
  def __repr__(self):
9627
    L = ['%s=%r' % (key, value)
9628
      for key, value in self.__dict__.iteritems()]
9629
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9630
 
9631
  def __eq__(self, other):
9632
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9633
 
9634
  def __ne__(self, other):
9635
    return not (self == other)
9636
 
9637
class markItemsAsReceivedForTransferLot_args:
9638
  """
9639
  Attributes:
9640
   - id
9641
  """
9642
 
9643
  thrift_spec = (
9644
    None, # 0
9645
    (1, TType.I64, 'id', None, None, ), # 1
9646
  )
9647
 
9648
  def __init__(self, id=None,):
9649
    self.id = id
9650
 
9651
  def read(self, iprot):
9652
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9653
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9654
      return
9655
    iprot.readStructBegin()
9656
    while True:
9657
      (fname, ftype, fid) = iprot.readFieldBegin()
9658
      if ftype == TType.STOP:
9659
        break
9660
      if fid == 1:
9661
        if ftype == TType.I64:
9662
          self.id = iprot.readI64();
9663
        else:
9664
          iprot.skip(ftype)
9665
      else:
9666
        iprot.skip(ftype)
9667
      iprot.readFieldEnd()
9668
    iprot.readStructEnd()
9669
 
9670
  def write(self, oprot):
9671
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9672
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9673
      return
9674
    oprot.writeStructBegin('markItemsAsReceivedForTransferLot_args')
9675
    if self.id is not None:
9676
      oprot.writeFieldBegin('id', TType.I64, 1)
9677
      oprot.writeI64(self.id)
9678
      oprot.writeFieldEnd()
9679
    oprot.writeFieldStop()
9680
    oprot.writeStructEnd()
9681
 
9682
  def validate(self):
9683
    return
9684
 
9685
 
9686
  def __repr__(self):
9687
    L = ['%s=%r' % (key, value)
9688
      for key, value in self.__dict__.iteritems()]
9689
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9690
 
9691
  def __eq__(self, other):
9692
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9693
 
9694
  def __ne__(self, other):
9695
    return not (self == other)
9696
 
9697
class markItemsAsReceivedForTransferLot_result:
9698
  """
9699
  Attributes:
9700
   - wex
9701
  """
9702
 
9703
  thrift_spec = (
9704
    None, # 0
9705
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9706
  )
9707
 
9708
  def __init__(self, wex=None,):
9709
    self.wex = wex
9710
 
9711
  def read(self, iprot):
9712
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9713
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9714
      return
9715
    iprot.readStructBegin()
9716
    while True:
9717
      (fname, ftype, fid) = iprot.readFieldBegin()
9718
      if ftype == TType.STOP:
9719
        break
9720
      if fid == 1:
9721
        if ftype == TType.STRUCT:
9722
          self.wex = WarehouseServiceException()
9723
          self.wex.read(iprot)
9724
        else:
9725
          iprot.skip(ftype)
9726
      else:
9727
        iprot.skip(ftype)
9728
      iprot.readFieldEnd()
9729
    iprot.readStructEnd()
9730
 
9731
  def write(self, oprot):
9732
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9733
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9734
      return
9735
    oprot.writeStructBegin('markItemsAsReceivedForTransferLot_result')
9736
    if self.wex is not None:
9737
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9738
      self.wex.write(oprot)
9739
      oprot.writeFieldEnd()
9740
    oprot.writeFieldStop()
9741
    oprot.writeStructEnd()
9742
 
9743
  def validate(self):
9744
    return
9745
 
9746
 
9747
  def __repr__(self):
9748
    L = ['%s=%r' % (key, value)
9749
      for key, value in self.__dict__.iteritems()]
9750
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9751
 
9752
  def __eq__(self, other):
9753
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9754
 
9755
  def __ne__(self, other):
9756
    return not (self == other)
9757
 
9758
class updateTransferLotAfterItemReceive_args:
9759
  """
9760
  Attributes:
9761
   - id
9762
  """
9763
 
9764
  thrift_spec = (
9765
    None, # 0
9766
    (1, TType.I64, 'id', None, None, ), # 1
9767
  )
9768
 
9769
  def __init__(self, id=None,):
9770
    self.id = id
9771
 
9772
  def read(self, iprot):
9773
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9774
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9775
      return
9776
    iprot.readStructBegin()
9777
    while True:
9778
      (fname, ftype, fid) = iprot.readFieldBegin()
9779
      if ftype == TType.STOP:
9780
        break
9781
      if fid == 1:
9782
        if ftype == TType.I64:
9783
          self.id = iprot.readI64();
9784
        else:
9785
          iprot.skip(ftype)
9786
      else:
9787
        iprot.skip(ftype)
9788
      iprot.readFieldEnd()
9789
    iprot.readStructEnd()
9790
 
9791
  def write(self, oprot):
9792
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9793
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9794
      return
9795
    oprot.writeStructBegin('updateTransferLotAfterItemReceive_args')
9796
    if self.id is not None:
9797
      oprot.writeFieldBegin('id', TType.I64, 1)
9798
      oprot.writeI64(self.id)
9799
      oprot.writeFieldEnd()
9800
    oprot.writeFieldStop()
9801
    oprot.writeStructEnd()
9802
 
9803
  def validate(self):
9804
    return
9805
 
9806
 
9807
  def __repr__(self):
9808
    L = ['%s=%r' % (key, value)
9809
      for key, value in self.__dict__.iteritems()]
9810
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9811
 
9812
  def __eq__(self, other):
9813
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9814
 
9815
  def __ne__(self, other):
9816
    return not (self == other)
9817
 
9818
class updateTransferLotAfterItemReceive_result:
9819
  """
9820
  Attributes:
9821
   - success
9822
   - wex
9823
  """
9824
 
9825
  thrift_spec = (
9826
    (0, TType.I32, 'success', None, None, ), # 0
9827
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9828
  )
9829
 
9830
  def __init__(self, success=None, wex=None,):
9831
    self.success = success
9832
    self.wex = wex
9833
 
9834
  def read(self, iprot):
9835
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9836
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9837
      return
9838
    iprot.readStructBegin()
9839
    while True:
9840
      (fname, ftype, fid) = iprot.readFieldBegin()
9841
      if ftype == TType.STOP:
9842
        break
9843
      if fid == 0:
9844
        if ftype == TType.I32:
9845
          self.success = iprot.readI32();
9846
        else:
9847
          iprot.skip(ftype)
9848
      elif fid == 1:
9849
        if ftype == TType.STRUCT:
9850
          self.wex = WarehouseServiceException()
9851
          self.wex.read(iprot)
9852
        else:
9853
          iprot.skip(ftype)
9854
      else:
9855
        iprot.skip(ftype)
9856
      iprot.readFieldEnd()
9857
    iprot.readStructEnd()
9858
 
9859
  def write(self, oprot):
9860
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9861
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9862
      return
9863
    oprot.writeStructBegin('updateTransferLotAfterItemReceive_result')
9864
    if self.success is not None:
9865
      oprot.writeFieldBegin('success', TType.I32, 0)
9866
      oprot.writeI32(self.success)
9867
      oprot.writeFieldEnd()
9868
    if self.wex is not None:
9869
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9870
      self.wex.write(oprot)
9871
      oprot.writeFieldEnd()
9872
    oprot.writeFieldStop()
9873
    oprot.writeStructEnd()
9874
 
9875
  def validate(self):
9876
    return
9877
 
9878
 
9879
  def __repr__(self):
9880
    L = ['%s=%r' % (key, value)
9881
      for key, value in self.__dict__.iteritems()]
9882
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9883
 
9884
  def __eq__(self, other):
9885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9886
 
9887
  def __ne__(self, other):
9888
    return not (self == other)
9889
 
7459 amar.kumar 9890
class scanForTransferOut_args:
7410 amar.kumar 9891
  """
9892
  Attributes:
9893
   - inventoryItems
9894
   - type
9895
   - transferLotId
9896
  """
9897
 
9898
  thrift_spec = (
9899
    None, # 0
9900
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
9901
    (2, TType.I32, 'type', None, None, ), # 2
9902
    (3, TType.I64, 'transferLotId', None, None, ), # 3
9903
  )
9904
 
9905
  def __init__(self, inventoryItems=None, type=None, transferLotId=None,):
9906
    self.inventoryItems = inventoryItems
9907
    self.type = type
9908
    self.transferLotId = transferLotId
9909
 
9910
  def read(self, iprot):
9911
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9912
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9913
      return
9914
    iprot.readStructBegin()
9915
    while True:
9916
      (fname, ftype, fid) = iprot.readFieldBegin()
9917
      if ftype == TType.STOP:
9918
        break
9919
      if fid == 1:
9920
        if ftype == TType.LIST:
9921
          self.inventoryItems = []
10407 amar.kumar 9922
          (_etype180, _size177) = iprot.readListBegin()
9923
          for _i181 in xrange(_size177):
9924
            _elem182 = InventoryItem()
9925
            _elem182.read(iprot)
9926
            self.inventoryItems.append(_elem182)
7410 amar.kumar 9927
          iprot.readListEnd()
9928
        else:
9929
          iprot.skip(ftype)
9930
      elif fid == 2:
9931
        if ftype == TType.I32:
9932
          self.type = iprot.readI32();
9933
        else:
9934
          iprot.skip(ftype)
9935
      elif fid == 3:
9936
        if ftype == TType.I64:
9937
          self.transferLotId = iprot.readI64();
9938
        else:
9939
          iprot.skip(ftype)
9940
      else:
9941
        iprot.skip(ftype)
9942
      iprot.readFieldEnd()
9943
    iprot.readStructEnd()
9944
 
9945
  def write(self, oprot):
9946
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9947
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9948
      return
7459 amar.kumar 9949
    oprot.writeStructBegin('scanForTransferOut_args')
7410 amar.kumar 9950
    if self.inventoryItems is not None:
9951
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
9952
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 9953
      for iter183 in self.inventoryItems:
9954
        iter183.write(oprot)
7410 amar.kumar 9955
      oprot.writeListEnd()
9956
      oprot.writeFieldEnd()
9957
    if self.type is not None:
9958
      oprot.writeFieldBegin('type', TType.I32, 2)
9959
      oprot.writeI32(self.type)
9960
      oprot.writeFieldEnd()
9961
    if self.transferLotId is not None:
9962
      oprot.writeFieldBegin('transferLotId', TType.I64, 3)
9963
      oprot.writeI64(self.transferLotId)
9964
      oprot.writeFieldEnd()
9965
    oprot.writeFieldStop()
9966
    oprot.writeStructEnd()
9967
 
9968
  def validate(self):
9969
    return
9970
 
9971
 
9972
  def __repr__(self):
9973
    L = ['%s=%r' % (key, value)
9974
      for key, value in self.__dict__.iteritems()]
9975
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9976
 
9977
  def __eq__(self, other):
9978
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9979
 
9980
  def __ne__(self, other):
9981
    return not (self == other)
9982
 
7459 amar.kumar 9983
class scanForTransferOut_result:
7410 amar.kumar 9984
  """
9985
  Attributes:
9986
   - wex
9987
  """
9988
 
9989
  thrift_spec = (
9990
    None, # 0
9991
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9992
  )
9993
 
9994
  def __init__(self, wex=None,):
9995
    self.wex = wex
9996
 
9997
  def read(self, iprot):
9998
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9999
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10000
      return
10001
    iprot.readStructBegin()
10002
    while True:
10003
      (fname, ftype, fid) = iprot.readFieldBegin()
10004
      if ftype == TType.STOP:
10005
        break
10006
      if fid == 1:
10007
        if ftype == TType.STRUCT:
10008
          self.wex = WarehouseServiceException()
10009
          self.wex.read(iprot)
10010
        else:
10011
          iprot.skip(ftype)
10012
      else:
10013
        iprot.skip(ftype)
10014
      iprot.readFieldEnd()
10015
    iprot.readStructEnd()
10016
 
10017
  def write(self, oprot):
10018
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10019
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10020
      return
7459 amar.kumar 10021
    oprot.writeStructBegin('scanForTransferOut_result')
7410 amar.kumar 10022
    if self.wex is not None:
10023
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10024
      self.wex.write(oprot)
10025
      oprot.writeFieldEnd()
10026
    oprot.writeFieldStop()
10027
    oprot.writeStructEnd()
10028
 
10029
  def validate(self):
10030
    return
10031
 
10032
 
10033
  def __repr__(self):
10034
    L = ['%s=%r' % (key, value)
10035
      for key, value in self.__dict__.iteritems()]
10036
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10037
 
10038
  def __eq__(self, other):
10039
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10040
 
10041
  def __ne__(self, other):
10042
    return not (self == other)
7459 amar.kumar 10043
 
10044
class scanForTransferIn_args:
10045
  """
10046
  Attributes:
10047
   - inventoryItems
10048
   - type
10049
   - transferLotId
10050
  """
10051
 
10052
  thrift_spec = (
10053
    None, # 0
10054
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
10055
    (2, TType.I32, 'type', None, None, ), # 2
10056
    (3, TType.I64, 'transferLotId', None, None, ), # 3
10057
  )
10058
 
10059
  def __init__(self, inventoryItems=None, type=None, transferLotId=None,):
10060
    self.inventoryItems = inventoryItems
10061
    self.type = type
10062
    self.transferLotId = transferLotId
10063
 
10064
  def read(self, iprot):
10065
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10066
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10067
      return
10068
    iprot.readStructBegin()
10069
    while True:
10070
      (fname, ftype, fid) = iprot.readFieldBegin()
10071
      if ftype == TType.STOP:
10072
        break
10073
      if fid == 1:
10074
        if ftype == TType.LIST:
10075
          self.inventoryItems = []
10407 amar.kumar 10076
          (_etype187, _size184) = iprot.readListBegin()
10077
          for _i188 in xrange(_size184):
10078
            _elem189 = InventoryItem()
10079
            _elem189.read(iprot)
10080
            self.inventoryItems.append(_elem189)
7459 amar.kumar 10081
          iprot.readListEnd()
10082
        else:
10083
          iprot.skip(ftype)
10084
      elif fid == 2:
10085
        if ftype == TType.I32:
10086
          self.type = iprot.readI32();
10087
        else:
10088
          iprot.skip(ftype)
10089
      elif fid == 3:
10090
        if ftype == TType.I64:
10091
          self.transferLotId = iprot.readI64();
10092
        else:
10093
          iprot.skip(ftype)
10094
      else:
10095
        iprot.skip(ftype)
10096
      iprot.readFieldEnd()
10097
    iprot.readStructEnd()
10098
 
10099
  def write(self, oprot):
10100
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10101
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10102
      return
10103
    oprot.writeStructBegin('scanForTransferIn_args')
10104
    if self.inventoryItems is not None:
10105
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
10106
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 10107
      for iter190 in self.inventoryItems:
10108
        iter190.write(oprot)
7459 amar.kumar 10109
      oprot.writeListEnd()
10110
      oprot.writeFieldEnd()
10111
    if self.type is not None:
10112
      oprot.writeFieldBegin('type', TType.I32, 2)
10113
      oprot.writeI32(self.type)
10114
      oprot.writeFieldEnd()
10115
    if self.transferLotId is not None:
10116
      oprot.writeFieldBegin('transferLotId', TType.I64, 3)
10117
      oprot.writeI64(self.transferLotId)
10118
      oprot.writeFieldEnd()
10119
    oprot.writeFieldStop()
10120
    oprot.writeStructEnd()
10121
 
10122
  def validate(self):
10123
    return
10124
 
10125
 
10126
  def __repr__(self):
10127
    L = ['%s=%r' % (key, value)
10128
      for key, value in self.__dict__.iteritems()]
10129
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10130
 
10131
  def __eq__(self, other):
10132
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10133
 
10134
  def __ne__(self, other):
10135
    return not (self == other)
10136
 
10137
class scanForTransferIn_result:
10138
  """
10139
  Attributes:
10140
   - wex
10141
  """
10142
 
10143
  thrift_spec = (
10144
    None, # 0
10145
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10146
  )
10147
 
10148
  def __init__(self, wex=None,):
10149
    self.wex = wex
10150
 
10151
  def read(self, iprot):
10152
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10153
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10154
      return
10155
    iprot.readStructBegin()
10156
    while True:
10157
      (fname, ftype, fid) = iprot.readFieldBegin()
10158
      if ftype == TType.STOP:
10159
        break
10160
      if fid == 1:
10161
        if ftype == TType.STRUCT:
10162
          self.wex = WarehouseServiceException()
10163
          self.wex.read(iprot)
10164
        else:
10165
          iprot.skip(ftype)
10166
      else:
10167
        iprot.skip(ftype)
10168
      iprot.readFieldEnd()
10169
    iprot.readStructEnd()
10170
 
10171
  def write(self, oprot):
10172
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10173
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10174
      return
10175
    oprot.writeStructBegin('scanForTransferIn_result')
10176
    if self.wex is not None:
10177
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10178
      self.wex.write(oprot)
10179
      oprot.writeFieldEnd()
10180
    oprot.writeFieldStop()
10181
    oprot.writeStructEnd()
10182
 
10183
  def validate(self):
10184
    return
10185
 
10186
 
10187
  def __repr__(self):
10188
    L = ['%s=%r' % (key, value)
10189
      for key, value in self.__dict__.iteritems()]
10190
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10191
 
10192
  def __eq__(self, other):
10193
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10194
 
10195
  def __ne__(self, other):
10196
    return not (self == other)
10197
 
10198
class scanForOursThirdPartyReceive_args:
10199
  """
10200
  Attributes:
10201
   - inventoryItems
10202
   - id
10203
  """
10204
 
10205
  thrift_spec = (
10206
    None, # 0
10207
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
10208
    (2, TType.I64, 'id', None, None, ), # 2
10209
  )
10210
 
10211
  def __init__(self, inventoryItems=None, id=None,):
10212
    self.inventoryItems = inventoryItems
10213
    self.id = id
10214
 
10215
  def read(self, iprot):
10216
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10217
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10218
      return
10219
    iprot.readStructBegin()
10220
    while True:
10221
      (fname, ftype, fid) = iprot.readFieldBegin()
10222
      if ftype == TType.STOP:
10223
        break
10224
      if fid == 1:
10225
        if ftype == TType.LIST:
10226
          self.inventoryItems = []
10407 amar.kumar 10227
          (_etype194, _size191) = iprot.readListBegin()
10228
          for _i195 in xrange(_size191):
10229
            _elem196 = InventoryItem()
10230
            _elem196.read(iprot)
10231
            self.inventoryItems.append(_elem196)
7459 amar.kumar 10232
          iprot.readListEnd()
10233
        else:
10234
          iprot.skip(ftype)
10235
      elif fid == 2:
10236
        if ftype == TType.I64:
10237
          self.id = iprot.readI64();
10238
        else:
10239
          iprot.skip(ftype)
10240
      else:
10241
        iprot.skip(ftype)
10242
      iprot.readFieldEnd()
10243
    iprot.readStructEnd()
10244
 
10245
  def write(self, oprot):
10246
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10247
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10248
      return
10249
    oprot.writeStructBegin('scanForOursThirdPartyReceive_args')
10250
    if self.inventoryItems is not None:
10251
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
10252
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 10253
      for iter197 in self.inventoryItems:
10254
        iter197.write(oprot)
7459 amar.kumar 10255
      oprot.writeListEnd()
10256
      oprot.writeFieldEnd()
10257
    if self.id is not None:
10258
      oprot.writeFieldBegin('id', TType.I64, 2)
10259
      oprot.writeI64(self.id)
10260
      oprot.writeFieldEnd()
10261
    oprot.writeFieldStop()
10262
    oprot.writeStructEnd()
10263
 
10264
  def validate(self):
10265
    return
10266
 
10267
 
10268
  def __repr__(self):
10269
    L = ['%s=%r' % (key, value)
10270
      for key, value in self.__dict__.iteritems()]
10271
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10272
 
10273
  def __eq__(self, other):
10274
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10275
 
10276
  def __ne__(self, other):
10277
    return not (self == other)
10278
 
10279
class scanForOursThirdPartyReceive_result:
10280
  """
10281
  Attributes:
10282
   - wex
10283
  """
10284
 
10285
  thrift_spec = (
10286
    None, # 0
10287
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10288
  )
10289
 
10290
  def __init__(self, wex=None,):
10291
    self.wex = wex
10292
 
10293
  def read(self, iprot):
10294
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10295
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10296
      return
10297
    iprot.readStructBegin()
10298
    while True:
10299
      (fname, ftype, fid) = iprot.readFieldBegin()
10300
      if ftype == TType.STOP:
10301
        break
10302
      if fid == 1:
10303
        if ftype == TType.STRUCT:
10304
          self.wex = WarehouseServiceException()
10305
          self.wex.read(iprot)
10306
        else:
10307
          iprot.skip(ftype)
10308
      else:
10309
        iprot.skip(ftype)
10310
      iprot.readFieldEnd()
10311
    iprot.readStructEnd()
10312
 
10313
  def write(self, oprot):
10314
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10315
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10316
      return
10317
    oprot.writeStructBegin('scanForOursThirdPartyReceive_result')
10318
    if self.wex is not None:
10319
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10320
      self.wex.write(oprot)
10321
      oprot.writeFieldEnd()
10322
    oprot.writeFieldStop()
10323
    oprot.writeStructEnd()
10324
 
10325
  def validate(self):
10326
    return
10327
 
10328
 
10329
  def __repr__(self):
10330
    L = ['%s=%r' % (key, value)
10331
      for key, value in self.__dict__.iteritems()]
10332
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10333
 
10334
  def __eq__(self, other):
10335
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10336
 
10337
  def __ne__(self, other):
10338
    return not (self == other)
7574 amar.kumar 10339
 
10340
class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args:
10341
  """
10342
  Attributes:
10343
   - itemId
10344
   - physicalWarehouseId
10345
  """
10346
 
10347
  thrift_spec = (
10348
    None, # 0
10349
    (1, TType.I64, 'itemId', None, None, ), # 1
10350
    (2, TType.I64, 'physicalWarehouseId', None, None, ), # 2
10351
  )
10352
 
10353
  def __init__(self, itemId=None, physicalWarehouseId=None,):
10354
    self.itemId = itemId
10355
    self.physicalWarehouseId = physicalWarehouseId
10356
 
10357
  def read(self, iprot):
10358
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10359
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10360
      return
10361
    iprot.readStructBegin()
10362
    while True:
10363
      (fname, ftype, fid) = iprot.readFieldBegin()
10364
      if ftype == TType.STOP:
10365
        break
10366
      if fid == 1:
10367
        if ftype == TType.I64:
10368
          self.itemId = iprot.readI64();
10369
        else:
10370
          iprot.skip(ftype)
10371
      elif fid == 2:
10372
        if ftype == TType.I64:
10373
          self.physicalWarehouseId = iprot.readI64();
10374
        else:
10375
          iprot.skip(ftype)
10376
      else:
10377
        iprot.skip(ftype)
10378
      iprot.readFieldEnd()
10379
    iprot.readStructEnd()
10380
 
10381
  def write(self, oprot):
10382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10384
      return
10385
    oprot.writeStructBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args')
10386
    if self.itemId is not None:
10387
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10388
      oprot.writeI64(self.itemId)
10389
      oprot.writeFieldEnd()
10390
    if self.physicalWarehouseId is not None:
10391
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 2)
10392
      oprot.writeI64(self.physicalWarehouseId)
10393
      oprot.writeFieldEnd()
10394
    oprot.writeFieldStop()
10395
    oprot.writeStructEnd()
10396
 
10397
  def validate(self):
10398
    return
10399
 
10400
 
10401
  def __repr__(self):
10402
    L = ['%s=%r' % (key, value)
10403
      for key, value in self.__dict__.iteritems()]
10404
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10405
 
10406
  def __eq__(self, other):
10407
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10408
 
10409
  def __ne__(self, other):
10410
    return not (self == other)
10411
 
10412
class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result:
10413
  """
10414
  Attributes:
10415
   - success
10416
   - wex
10417
  """
10418
 
10419
  thrift_spec = (
10420
    (0, TType.I64, 'success', None, None, ), # 0
10421
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10422
  )
10423
 
10424
  def __init__(self, success=None, wex=None,):
10425
    self.success = success
10426
    self.wex = wex
10427
 
10428
  def read(self, iprot):
10429
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10430
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10431
      return
10432
    iprot.readStructBegin()
10433
    while True:
10434
      (fname, ftype, fid) = iprot.readFieldBegin()
10435
      if ftype == TType.STOP:
10436
        break
10437
      if fid == 0:
10438
        if ftype == TType.I64:
10439
          self.success = iprot.readI64();
10440
        else:
10441
          iprot.skip(ftype)
10442
      elif fid == 1:
10443
        if ftype == TType.STRUCT:
10444
          self.wex = WarehouseServiceException()
10445
          self.wex.read(iprot)
10446
        else:
10447
          iprot.skip(ftype)
10448
      else:
10449
        iprot.skip(ftype)
10450
      iprot.readFieldEnd()
10451
    iprot.readStructEnd()
10452
 
10453
  def write(self, oprot):
10454
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10455
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10456
      return
10457
    oprot.writeStructBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result')
10458
    if self.success is not None:
10459
      oprot.writeFieldBegin('success', TType.I64, 0)
10460
      oprot.writeI64(self.success)
10461
      oprot.writeFieldEnd()
10462
    if self.wex is not None:
10463
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10464
      self.wex.write(oprot)
10465
      oprot.writeFieldEnd()
10466
    oprot.writeFieldStop()
10467
    oprot.writeStructEnd()
10468
 
10469
  def validate(self):
10470
    return
10471
 
10472
 
10473
  def __repr__(self):
10474
    L = ['%s=%r' % (key, value)
10475
      for key, value in self.__dict__.iteritems()]
10476
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10477
 
10478
  def __eq__(self, other):
10479
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10480
 
10481
  def __ne__(self, other):
10482
    return not (self == other)
7672 rajveer 10483
 
10484
class getInTransitInventory_args:
10485
  """
10486
  Attributes:
10487
   - originWarehouseId
10488
  """
10489
 
10490
  thrift_spec = (
10491
    None, # 0
10492
    (1, TType.I64, 'originWarehouseId', None, None, ), # 1
10493
  )
10494
 
10495
  def __init__(self, originWarehouseId=None,):
10496
    self.originWarehouseId = originWarehouseId
10497
 
10498
  def read(self, iprot):
10499
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10500
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10501
      return
10502
    iprot.readStructBegin()
10503
    while True:
10504
      (fname, ftype, fid) = iprot.readFieldBegin()
10505
      if ftype == TType.STOP:
10506
        break
10507
      if fid == 1:
10508
        if ftype == TType.I64:
10509
          self.originWarehouseId = iprot.readI64();
10510
        else:
10511
          iprot.skip(ftype)
10512
      else:
10513
        iprot.skip(ftype)
10514
      iprot.readFieldEnd()
10515
    iprot.readStructEnd()
10516
 
10517
  def write(self, oprot):
10518
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10519
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10520
      return
10521
    oprot.writeStructBegin('getInTransitInventory_args')
10522
    if self.originWarehouseId is not None:
10523
      oprot.writeFieldBegin('originWarehouseId', TType.I64, 1)
10524
      oprot.writeI64(self.originWarehouseId)
10525
      oprot.writeFieldEnd()
10526
    oprot.writeFieldStop()
10527
    oprot.writeStructEnd()
10528
 
10529
  def validate(self):
10530
    return
10531
 
10532
 
10533
  def __repr__(self):
10534
    L = ['%s=%r' % (key, value)
10535
      for key, value in self.__dict__.iteritems()]
10536
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10537
 
10538
  def __eq__(self, other):
10539
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10540
 
10541
  def __ne__(self, other):
10542
    return not (self == other)
10543
 
10544
class getInTransitInventory_result:
10545
  """
10546
  Attributes:
10547
   - success
10548
  """
10549
 
10550
  thrift_spec = (
10551
    (0, TType.LIST, 'success', (TType.STRUCT,(InTransitInventory, InTransitInventory.thrift_spec)), None, ), # 0
10552
  )
10553
 
10554
  def __init__(self, success=None,):
10555
    self.success = success
10556
 
10557
  def read(self, iprot):
10558
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10559
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10560
      return
10561
    iprot.readStructBegin()
10562
    while True:
10563
      (fname, ftype, fid) = iprot.readFieldBegin()
10564
      if ftype == TType.STOP:
10565
        break
10566
      if fid == 0:
10567
        if ftype == TType.LIST:
10568
          self.success = []
10407 amar.kumar 10569
          (_etype201, _size198) = iprot.readListBegin()
10570
          for _i202 in xrange(_size198):
10571
            _elem203 = InTransitInventory()
10572
            _elem203.read(iprot)
10573
            self.success.append(_elem203)
7672 rajveer 10574
          iprot.readListEnd()
10575
        else:
10576
          iprot.skip(ftype)
10577
      else:
10578
        iprot.skip(ftype)
10579
      iprot.readFieldEnd()
10580
    iprot.readStructEnd()
10581
 
10582
  def write(self, oprot):
10583
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10584
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10585
      return
10586
    oprot.writeStructBegin('getInTransitInventory_result')
10587
    if self.success is not None:
10588
      oprot.writeFieldBegin('success', TType.LIST, 0)
10589
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 10590
      for iter204 in self.success:
10591
        iter204.write(oprot)
7672 rajveer 10592
      oprot.writeListEnd()
10593
      oprot.writeFieldEnd()
10594
    oprot.writeFieldStop()
10595
    oprot.writeStructEnd()
10596
 
10597
  def validate(self):
10598
    return
10599
 
10600
 
10601
  def __repr__(self):
10602
    L = ['%s=%r' % (key, value)
10603
      for key, value in self.__dict__.iteritems()]
10604
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10605
 
10606
  def __eq__(self, other):
10607
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10608
 
10609
  def __ne__(self, other):
10610
    return not (self == other)
7968 amar.kumar 10611
 
10612
class isItemAvailableForSale_args:
10613
  """
10614
  Attributes:
10615
   - itemId
10616
   - serialNumber
10617
   - warehouseId
10618
  """
10619
 
10620
  thrift_spec = (
10621
    None, # 0
10622
    (1, TType.I64, 'itemId', None, None, ), # 1
10623
    (2, TType.STRING, 'serialNumber', None, None, ), # 2
10624
    (3, TType.I64, 'warehouseId', None, None, ), # 3
10625
  )
10626
 
10627
  def __init__(self, itemId=None, serialNumber=None, warehouseId=None,):
10628
    self.itemId = itemId
10629
    self.serialNumber = serialNumber
10630
    self.warehouseId = warehouseId
10631
 
10632
  def read(self, iprot):
10633
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10634
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10635
      return
10636
    iprot.readStructBegin()
10637
    while True:
10638
      (fname, ftype, fid) = iprot.readFieldBegin()
10639
      if ftype == TType.STOP:
10640
        break
10641
      if fid == 1:
10642
        if ftype == TType.I64:
10643
          self.itemId = iprot.readI64();
10644
        else:
10645
          iprot.skip(ftype)
10646
      elif fid == 2:
10647
        if ftype == TType.STRING:
10648
          self.serialNumber = iprot.readString();
10649
        else:
10650
          iprot.skip(ftype)
10651
      elif fid == 3:
10652
        if ftype == TType.I64:
10653
          self.warehouseId = iprot.readI64();
10654
        else:
10655
          iprot.skip(ftype)
10656
      else:
10657
        iprot.skip(ftype)
10658
      iprot.readFieldEnd()
10659
    iprot.readStructEnd()
10660
 
10661
  def write(self, oprot):
10662
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10663
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10664
      return
10665
    oprot.writeStructBegin('isItemAvailableForSale_args')
10666
    if self.itemId is not None:
10667
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10668
      oprot.writeI64(self.itemId)
10669
      oprot.writeFieldEnd()
10670
    if self.serialNumber is not None:
10671
      oprot.writeFieldBegin('serialNumber', TType.STRING, 2)
10672
      oprot.writeString(self.serialNumber)
10673
      oprot.writeFieldEnd()
10674
    if self.warehouseId is not None:
10675
      oprot.writeFieldBegin('warehouseId', TType.I64, 3)
10676
      oprot.writeI64(self.warehouseId)
10677
      oprot.writeFieldEnd()
10678
    oprot.writeFieldStop()
10679
    oprot.writeStructEnd()
10680
 
10681
  def validate(self):
10682
    return
10683
 
10684
 
10685
  def __repr__(self):
10686
    L = ['%s=%r' % (key, value)
10687
      for key, value in self.__dict__.iteritems()]
10688
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10689
 
10690
  def __eq__(self, other):
10691
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10692
 
10693
  def __ne__(self, other):
10694
    return not (self == other)
10695
 
10696
class isItemAvailableForSale_result:
10697
  """
10698
  Attributes:
10699
   - success
10700
   - wex
10701
  """
10702
 
10703
  thrift_spec = (
10704
    (0, TType.BOOL, 'success', None, None, ), # 0
10705
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10706
  )
10707
 
10708
  def __init__(self, success=None, wex=None,):
10709
    self.success = success
10710
    self.wex = wex
10711
 
10712
  def read(self, iprot):
10713
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10714
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10715
      return
10716
    iprot.readStructBegin()
10717
    while True:
10718
      (fname, ftype, fid) = iprot.readFieldBegin()
10719
      if ftype == TType.STOP:
10720
        break
10721
      if fid == 0:
10722
        if ftype == TType.BOOL:
10723
          self.success = iprot.readBool();
10724
        else:
10725
          iprot.skip(ftype)
10726
      elif fid == 1:
10727
        if ftype == TType.STRUCT:
10728
          self.wex = WarehouseServiceException()
10729
          self.wex.read(iprot)
10730
        else:
10731
          iprot.skip(ftype)
10732
      else:
10733
        iprot.skip(ftype)
10734
      iprot.readFieldEnd()
10735
    iprot.readStructEnd()
10736
 
10737
  def write(self, oprot):
10738
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10739
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10740
      return
10741
    oprot.writeStructBegin('isItemAvailableForSale_result')
10742
    if self.success is not None:
10743
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10744
      oprot.writeBool(self.success)
10745
      oprot.writeFieldEnd()
10746
    if self.wex is not None:
10747
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10748
      self.wex.write(oprot)
10749
      oprot.writeFieldEnd()
10750
    oprot.writeFieldStop()
10751
    oprot.writeStructEnd()
10752
 
10753
  def validate(self):
10754
    return
10755
 
10756
 
10757
  def __repr__(self):
10758
    L = ['%s=%r' % (key, value)
10759
      for key, value in self.__dict__.iteritems()]
10760
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10761
 
10762
  def __eq__(self, other):
10763
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10764
 
10765
  def __ne__(self, other):
10766
    return not (self == other)
10767
 
10768
class getHistoricBadInventoryByScans_args:
10769
  """
10770
  Attributes:
10771
   - date
10772
  """
10773
 
10774
  thrift_spec = (
10775
    None, # 0
10776
    (1, TType.I64, 'date', None, None, ), # 1
10777
  )
10778
 
10779
  def __init__(self, date=None,):
10780
    self.date = date
10781
 
10782
  def read(self, iprot):
10783
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10784
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10785
      return
10786
    iprot.readStructBegin()
10787
    while True:
10788
      (fname, ftype, fid) = iprot.readFieldBegin()
10789
      if ftype == TType.STOP:
10790
        break
10791
      if fid == 1:
10792
        if ftype == TType.I64:
10793
          self.date = iprot.readI64();
10794
        else:
10795
          iprot.skip(ftype)
10796
      else:
10797
        iprot.skip(ftype)
10798
      iprot.readFieldEnd()
10799
    iprot.readStructEnd()
10800
 
10801
  def write(self, oprot):
10802
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10803
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10804
      return
10805
    oprot.writeStructBegin('getHistoricBadInventoryByScans_args')
10806
    if self.date is not None:
10807
      oprot.writeFieldBegin('date', TType.I64, 1)
10808
      oprot.writeI64(self.date)
10809
      oprot.writeFieldEnd()
10810
    oprot.writeFieldStop()
10811
    oprot.writeStructEnd()
10812
 
10813
  def validate(self):
10814
    return
10815
 
10816
 
10817
  def __repr__(self):
10818
    L = ['%s=%r' % (key, value)
10819
      for key, value in self.__dict__.iteritems()]
10820
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10821
 
10822
  def __eq__(self, other):
10823
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10824
 
10825
  def __ne__(self, other):
10826
    return not (self == other)
10827
 
10828
class getHistoricBadInventoryByScans_result:
10829
  """
10830
  Attributes:
10831
   - success
10832
   - wex
10833
  """
10834
 
10835
  thrift_spec = (
10836
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
10837
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10838
  )
10839
 
10840
  def __init__(self, success=None, wex=None,):
10841
    self.success = success
10842
    self.wex = wex
10843
 
10844
  def read(self, iprot):
10845
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10846
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10847
      return
10848
    iprot.readStructBegin()
10849
    while True:
10850
      (fname, ftype, fid) = iprot.readFieldBegin()
10851
      if ftype == TType.STOP:
10852
        break
10853
      if fid == 0:
10854
        if ftype == TType.LIST:
10855
          self.success = []
10407 amar.kumar 10856
          (_etype208, _size205) = iprot.readListBegin()
10857
          for _i209 in xrange(_size205):
10858
            _elem210 = InventoryAvailability()
10859
            _elem210.read(iprot)
10860
            self.success.append(_elem210)
7968 amar.kumar 10861
          iprot.readListEnd()
10862
        else:
10863
          iprot.skip(ftype)
10864
      elif fid == 1:
10865
        if ftype == TType.STRUCT:
10866
          self.wex = WarehouseServiceException()
10867
          self.wex.read(iprot)
10868
        else:
10869
          iprot.skip(ftype)
10870
      else:
10871
        iprot.skip(ftype)
10872
      iprot.readFieldEnd()
10873
    iprot.readStructEnd()
10874
 
10875
  def write(self, oprot):
10876
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10877
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10878
      return
10879
    oprot.writeStructBegin('getHistoricBadInventoryByScans_result')
10880
    if self.success is not None:
10881
      oprot.writeFieldBegin('success', TType.LIST, 0)
10882
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 10883
      for iter211 in self.success:
10884
        iter211.write(oprot)
7968 amar.kumar 10885
      oprot.writeListEnd()
10886
      oprot.writeFieldEnd()
10887
    if self.wex is not None:
10888
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10889
      self.wex.write(oprot)
10890
      oprot.writeFieldEnd()
10891
    oprot.writeFieldStop()
10892
    oprot.writeStructEnd()
10893
 
10894
  def validate(self):
10895
    return
10896
 
10897
 
10898
  def __repr__(self):
10899
    L = ['%s=%r' % (key, value)
10900
      for key, value in self.__dict__.iteritems()]
10901
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10902
 
10903
  def __eq__(self, other):
10904
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10905
 
10906
  def __ne__(self, other):
10907
    return not (self == other)
8565 amar.kumar 10908
 
10909
class scanForBadSale_args:
10910
  """
10911
  Attributes:
8717 amar.kumar 10912
   - serialNumber
10913
   - itemNumber
10914
   - itemId
8565 amar.kumar 10915
   - orderId
8717 amar.kumar 10916
   - fulfilmentWarehouseId
8565 amar.kumar 10917
   - quantity
10918
   - billingWarehouseId
10919
  """
10920
 
10921
  thrift_spec = (
10922
    None, # 0
8717 amar.kumar 10923
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
10924
    (2, TType.STRING, 'itemNumber', None, None, ), # 2
10925
    (3, TType.I64, 'itemId', None, None, ), # 3
10926
    (4, TType.I64, 'orderId', None, None, ), # 4
10927
    (5, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 5
10928
    (6, TType.I64, 'quantity', None, None, ), # 6
10929
    (7, TType.I64, 'billingWarehouseId', None, None, ), # 7
8565 amar.kumar 10930
  )
10931
 
8717 amar.kumar 10932
  def __init__(self, serialNumber=None, itemNumber=None, itemId=None, orderId=None, fulfilmentWarehouseId=None, quantity=None, billingWarehouseId=None,):
10933
    self.serialNumber = serialNumber
10934
    self.itemNumber = itemNumber
10935
    self.itemId = itemId
8565 amar.kumar 10936
    self.orderId = orderId
8717 amar.kumar 10937
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 10938
    self.quantity = quantity
10939
    self.billingWarehouseId = billingWarehouseId
10940
 
10941
  def read(self, iprot):
10942
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10943
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10944
      return
10945
    iprot.readStructBegin()
10946
    while True:
10947
      (fname, ftype, fid) = iprot.readFieldBegin()
10948
      if ftype == TType.STOP:
10949
        break
10950
      if fid == 1:
8717 amar.kumar 10951
        if ftype == TType.STRING:
10952
          self.serialNumber = iprot.readString();
8565 amar.kumar 10953
        else:
10954
          iprot.skip(ftype)
10955
      elif fid == 2:
8717 amar.kumar 10956
        if ftype == TType.STRING:
10957
          self.itemNumber = iprot.readString();
8565 amar.kumar 10958
        else:
10959
          iprot.skip(ftype)
10960
      elif fid == 3:
10961
        if ftype == TType.I64:
8717 amar.kumar 10962
          self.itemId = iprot.readI64();
8565 amar.kumar 10963
        else:
10964
          iprot.skip(ftype)
10965
      elif fid == 4:
10966
        if ftype == TType.I64:
8717 amar.kumar 10967
          self.orderId = iprot.readI64();
8565 amar.kumar 10968
        else:
10969
          iprot.skip(ftype)
10970
      elif fid == 5:
10971
        if ftype == TType.I64:
8717 amar.kumar 10972
          self.fulfilmentWarehouseId = iprot.readI64();
10973
        else:
10974
          iprot.skip(ftype)
10975
      elif fid == 6:
10976
        if ftype == TType.I64:
10977
          self.quantity = iprot.readI64();
10978
        else:
10979
          iprot.skip(ftype)
10980
      elif fid == 7:
10981
        if ftype == TType.I64:
8565 amar.kumar 10982
          self.billingWarehouseId = iprot.readI64();
10983
        else:
10984
          iprot.skip(ftype)
10985
      else:
10986
        iprot.skip(ftype)
10987
      iprot.readFieldEnd()
10988
    iprot.readStructEnd()
10989
 
10990
  def write(self, oprot):
10991
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10992
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10993
      return
10994
    oprot.writeStructBegin('scanForBadSale_args')
8717 amar.kumar 10995
    if self.serialNumber is not None:
10996
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
10997
      oprot.writeString(self.serialNumber)
8565 amar.kumar 10998
      oprot.writeFieldEnd()
8717 amar.kumar 10999
    if self.itemNumber is not None:
11000
      oprot.writeFieldBegin('itemNumber', TType.STRING, 2)
11001
      oprot.writeString(self.itemNumber)
11002
      oprot.writeFieldEnd()
11003
    if self.itemId is not None:
11004
      oprot.writeFieldBegin('itemId', TType.I64, 3)
11005
      oprot.writeI64(self.itemId)
11006
      oprot.writeFieldEnd()
8565 amar.kumar 11007
    if self.orderId is not None:
8717 amar.kumar 11008
      oprot.writeFieldBegin('orderId', TType.I64, 4)
8565 amar.kumar 11009
      oprot.writeI64(self.orderId)
11010
      oprot.writeFieldEnd()
8717 amar.kumar 11011
    if self.fulfilmentWarehouseId is not None:
11012
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 5)
11013
      oprot.writeI64(self.fulfilmentWarehouseId)
11014
      oprot.writeFieldEnd()
8565 amar.kumar 11015
    if self.quantity is not None:
8717 amar.kumar 11016
      oprot.writeFieldBegin('quantity', TType.I64, 6)
8565 amar.kumar 11017
      oprot.writeI64(self.quantity)
11018
      oprot.writeFieldEnd()
11019
    if self.billingWarehouseId is not None:
8717 amar.kumar 11020
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 7)
8565 amar.kumar 11021
      oprot.writeI64(self.billingWarehouseId)
11022
      oprot.writeFieldEnd()
11023
    oprot.writeFieldStop()
11024
    oprot.writeStructEnd()
11025
 
11026
  def validate(self):
11027
    return
11028
 
11029
 
11030
  def __repr__(self):
11031
    L = ['%s=%r' % (key, value)
11032
      for key, value in self.__dict__.iteritems()]
11033
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11034
 
11035
  def __eq__(self, other):
11036
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11037
 
11038
  def __ne__(self, other):
11039
    return not (self == other)
11040
 
11041
class scanForBadSale_result:
8717 amar.kumar 11042
  """
11043
  Attributes:
11044
   - success
11045
   - wex
11046
  """
8565 amar.kumar 11047
 
11048
  thrift_spec = (
8717 amar.kumar 11049
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
11050
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8565 amar.kumar 11051
  )
11052
 
8717 amar.kumar 11053
  def __init__(self, success=None, wex=None,):
11054
    self.success = success
11055
    self.wex = wex
11056
 
8565 amar.kumar 11057
  def read(self, iprot):
11058
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11059
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11060
      return
11061
    iprot.readStructBegin()
11062
    while True:
11063
      (fname, ftype, fid) = iprot.readFieldBegin()
11064
      if ftype == TType.STOP:
11065
        break
8717 amar.kumar 11066
      if fid == 0:
11067
        if ftype == TType.STRUCT:
11068
          self.success = InventoryItem()
11069
          self.success.read(iprot)
11070
        else:
11071
          iprot.skip(ftype)
11072
      elif fid == 1:
11073
        if ftype == TType.STRUCT:
11074
          self.wex = WarehouseServiceException()
11075
          self.wex.read(iprot)
11076
        else:
11077
          iprot.skip(ftype)
8565 amar.kumar 11078
      else:
11079
        iprot.skip(ftype)
11080
      iprot.readFieldEnd()
11081
    iprot.readStructEnd()
11082
 
11083
  def write(self, oprot):
11084
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11085
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11086
      return
11087
    oprot.writeStructBegin('scanForBadSale_result')
8717 amar.kumar 11088
    if self.success is not None:
11089
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11090
      self.success.write(oprot)
11091
      oprot.writeFieldEnd()
11092
    if self.wex is not None:
11093
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11094
      self.wex.write(oprot)
11095
      oprot.writeFieldEnd()
8565 amar.kumar 11096
    oprot.writeFieldStop()
11097
    oprot.writeStructEnd()
11098
 
11099
  def validate(self):
11100
    return
11101
 
11102
 
11103
  def __repr__(self):
11104
    L = ['%s=%r' % (key, value)
11105
      for key, value in self.__dict__.iteritems()]
11106
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11107
 
11108
  def __eq__(self, other):
11109
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11110
 
11111
  def __ne__(self, other):
11112
    return not (self == other)
10120 manish.sha 11113
 
11114
class getTransferLotItemsForMarkReceive_args:
11115
  """
11116
  Attributes:
11117
   - transferLotId
11118
   - scanType
11119
  """
11120
 
11121
  thrift_spec = (
11122
    None, # 0
11123
    (1, TType.I64, 'transferLotId', None, None, ), # 1
11124
    (2, TType.I32, 'scanType', None, None, ), # 2
11125
  )
11126
 
11127
  def __init__(self, transferLotId=None, scanType=None,):
11128
    self.transferLotId = transferLotId
11129
    self.scanType = scanType
11130
 
11131
  def read(self, iprot):
11132
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11133
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11134
      return
11135
    iprot.readStructBegin()
11136
    while True:
11137
      (fname, ftype, fid) = iprot.readFieldBegin()
11138
      if ftype == TType.STOP:
11139
        break
11140
      if fid == 1:
11141
        if ftype == TType.I64:
11142
          self.transferLotId = iprot.readI64();
11143
        else:
11144
          iprot.skip(ftype)
11145
      elif fid == 2:
11146
        if ftype == TType.I32:
11147
          self.scanType = iprot.readI32();
11148
        else:
11149
          iprot.skip(ftype)
11150
      else:
11151
        iprot.skip(ftype)
11152
      iprot.readFieldEnd()
11153
    iprot.readStructEnd()
11154
 
11155
  def write(self, oprot):
11156
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11157
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11158
      return
11159
    oprot.writeStructBegin('getTransferLotItemsForMarkReceive_args')
11160
    if self.transferLotId is not None:
11161
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
11162
      oprot.writeI64(self.transferLotId)
11163
      oprot.writeFieldEnd()
11164
    if self.scanType is not None:
11165
      oprot.writeFieldBegin('scanType', TType.I32, 2)
11166
      oprot.writeI32(self.scanType)
11167
      oprot.writeFieldEnd()
11168
    oprot.writeFieldStop()
11169
    oprot.writeStructEnd()
11170
 
11171
  def validate(self):
11172
    return
11173
 
11174
 
11175
  def __repr__(self):
11176
    L = ['%s=%r' % (key, value)
11177
      for key, value in self.__dict__.iteritems()]
11178
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11179
 
11180
  def __eq__(self, other):
11181
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11182
 
11183
  def __ne__(self, other):
11184
    return not (self == other)
11185
 
11186
class getTransferLotItemsForMarkReceive_result:
11187
  """
11188
  Attributes:
11189
   - success
11190
   - wex
11191
  """
11192
 
11193
  thrift_spec = (
11194
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
11195
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11196
  )
11197
 
11198
  def __init__(self, success=None, wex=None,):
11199
    self.success = success
11200
    self.wex = wex
11201
 
11202
  def read(self, iprot):
11203
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11204
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11205
      return
11206
    iprot.readStructBegin()
11207
    while True:
11208
      (fname, ftype, fid) = iprot.readFieldBegin()
11209
      if ftype == TType.STOP:
11210
        break
11211
      if fid == 0:
11212
        if ftype == TType.LIST:
11213
          self.success = []
10407 amar.kumar 11214
          (_etype215, _size212) = iprot.readListBegin()
11215
          for _i216 in xrange(_size212):
11216
            _elem217 = InventoryItem()
11217
            _elem217.read(iprot)
11218
            self.success.append(_elem217)
10120 manish.sha 11219
          iprot.readListEnd()
11220
        else:
11221
          iprot.skip(ftype)
11222
      elif fid == 1:
11223
        if ftype == TType.STRUCT:
11224
          self.wex = WarehouseServiceException()
11225
          self.wex.read(iprot)
11226
        else:
11227
          iprot.skip(ftype)
11228
      else:
11229
        iprot.skip(ftype)
11230
      iprot.readFieldEnd()
11231
    iprot.readStructEnd()
11232
 
11233
  def write(self, oprot):
11234
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11235
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11236
      return
11237
    oprot.writeStructBegin('getTransferLotItemsForMarkReceive_result')
11238
    if self.success is not None:
11239
      oprot.writeFieldBegin('success', TType.LIST, 0)
11240
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 11241
      for iter218 in self.success:
11242
        iter218.write(oprot)
10120 manish.sha 11243
      oprot.writeListEnd()
11244
      oprot.writeFieldEnd()
11245
    if self.wex is not None:
11246
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11247
      self.wex.write(oprot)
11248
      oprot.writeFieldEnd()
11249
    oprot.writeFieldStop()
11250
    oprot.writeStructEnd()
11251
 
11252
  def validate(self):
11253
    return
11254
 
11255
 
11256
  def __repr__(self):
11257
    L = ['%s=%r' % (key, value)
11258
      for key, value in self.__dict__.iteritems()]
11259
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11260
 
11261
  def __eq__(self, other):
11262
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11263
 
11264
  def __ne__(self, other):
11265
    return not (self == other)
11266
 
11267
class markItemsAsReceivedForTransferLotPartial_args:
11268
  """
11269
  Attributes:
11270
   - inventoryItems
11271
   - transferLotId
11272
  """
11273
 
11274
  thrift_spec = (
11275
    None, # 0
11276
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
11277
    (2, TType.I64, 'transferLotId', None, None, ), # 2
11278
  )
11279
 
11280
  def __init__(self, inventoryItems=None, transferLotId=None,):
11281
    self.inventoryItems = inventoryItems
11282
    self.transferLotId = transferLotId
11283
 
11284
  def read(self, iprot):
11285
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11286
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11287
      return
11288
    iprot.readStructBegin()
11289
    while True:
11290
      (fname, ftype, fid) = iprot.readFieldBegin()
11291
      if ftype == TType.STOP:
11292
        break
11293
      if fid == 1:
11294
        if ftype == TType.LIST:
11295
          self.inventoryItems = []
10407 amar.kumar 11296
          (_etype222, _size219) = iprot.readListBegin()
11297
          for _i223 in xrange(_size219):
11298
            _elem224 = InventoryItem()
11299
            _elem224.read(iprot)
11300
            self.inventoryItems.append(_elem224)
10120 manish.sha 11301
          iprot.readListEnd()
11302
        else:
11303
          iprot.skip(ftype)
11304
      elif fid == 2:
11305
        if ftype == TType.I64:
11306
          self.transferLotId = iprot.readI64();
11307
        else:
11308
          iprot.skip(ftype)
11309
      else:
11310
        iprot.skip(ftype)
11311
      iprot.readFieldEnd()
11312
    iprot.readStructEnd()
11313
 
11314
  def write(self, oprot):
11315
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11316
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11317
      return
11318
    oprot.writeStructBegin('markItemsAsReceivedForTransferLotPartial_args')
11319
    if self.inventoryItems is not None:
11320
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
11321
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 11322
      for iter225 in self.inventoryItems:
11323
        iter225.write(oprot)
10120 manish.sha 11324
      oprot.writeListEnd()
11325
      oprot.writeFieldEnd()
11326
    if self.transferLotId is not None:
11327
      oprot.writeFieldBegin('transferLotId', TType.I64, 2)
11328
      oprot.writeI64(self.transferLotId)
11329
      oprot.writeFieldEnd()
11330
    oprot.writeFieldStop()
11331
    oprot.writeStructEnd()
11332
 
11333
  def validate(self):
11334
    return
11335
 
11336
 
11337
  def __repr__(self):
11338
    L = ['%s=%r' % (key, value)
11339
      for key, value in self.__dict__.iteritems()]
11340
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11341
 
11342
  def __eq__(self, other):
11343
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11344
 
11345
  def __ne__(self, other):
11346
    return not (self == other)
11347
 
11348
class markItemsAsReceivedForTransferLotPartial_result:
11349
  """
11350
  Attributes:
11351
   - wex
11352
  """
11353
 
11354
  thrift_spec = (
11355
    None, # 0
11356
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11357
  )
11358
 
11359
  def __init__(self, wex=None,):
11360
    self.wex = wex
11361
 
11362
  def read(self, iprot):
11363
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11364
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11365
      return
11366
    iprot.readStructBegin()
11367
    while True:
11368
      (fname, ftype, fid) = iprot.readFieldBegin()
11369
      if ftype == TType.STOP:
11370
        break
11371
      if fid == 1:
11372
        if ftype == TType.STRUCT:
11373
          self.wex = WarehouseServiceException()
11374
          self.wex.read(iprot)
11375
        else:
11376
          iprot.skip(ftype)
11377
      else:
11378
        iprot.skip(ftype)
11379
      iprot.readFieldEnd()
11380
    iprot.readStructEnd()
11381
 
11382
  def write(self, oprot):
11383
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11384
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11385
      return
11386
    oprot.writeStructBegin('markItemsAsReceivedForTransferLotPartial_result')
11387
    if self.wex is not None:
11388
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11389
      self.wex.write(oprot)
11390
      oprot.writeFieldEnd()
11391
    oprot.writeFieldStop()
11392
    oprot.writeStructEnd()
11393
 
11394
  def validate(self):
11395
    return
11396
 
11397
 
11398
  def __repr__(self):
11399
    L = ['%s=%r' % (key, value)
11400
      for key, value in self.__dict__.iteritems()]
11401
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11402
 
11403
  def __eq__(self, other):
11404
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11405
 
11406
  def __ne__(self, other):
11407
    return not (self == other)
11408
 
11409
class markTransferLotAsReceivedPartial_args:
11410
  """
11411
  Attributes:
11412
   - id
11413
   - remoteTransferRefNumber
11414
  """
11415
 
11416
  thrift_spec = (
11417
    None, # 0
11418
    (1, TType.I64, 'id', None, None, ), # 1
11419
    (2, TType.STRING, 'remoteTransferRefNumber', None, None, ), # 2
11420
  )
11421
 
11422
  def __init__(self, id=None, remoteTransferRefNumber=None,):
11423
    self.id = id
11424
    self.remoteTransferRefNumber = remoteTransferRefNumber
11425
 
11426
  def read(self, iprot):
11427
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11428
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11429
      return
11430
    iprot.readStructBegin()
11431
    while True:
11432
      (fname, ftype, fid) = iprot.readFieldBegin()
11433
      if ftype == TType.STOP:
11434
        break
11435
      if fid == 1:
11436
        if ftype == TType.I64:
11437
          self.id = iprot.readI64();
11438
        else:
11439
          iprot.skip(ftype)
11440
      elif fid == 2:
11441
        if ftype == TType.STRING:
11442
          self.remoteTransferRefNumber = iprot.readString();
11443
        else:
11444
          iprot.skip(ftype)
11445
      else:
11446
        iprot.skip(ftype)
11447
      iprot.readFieldEnd()
11448
    iprot.readStructEnd()
11449
 
11450
  def write(self, oprot):
11451
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11452
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11453
      return
11454
    oprot.writeStructBegin('markTransferLotAsReceivedPartial_args')
11455
    if self.id is not None:
11456
      oprot.writeFieldBegin('id', TType.I64, 1)
11457
      oprot.writeI64(self.id)
11458
      oprot.writeFieldEnd()
11459
    if self.remoteTransferRefNumber is not None:
11460
      oprot.writeFieldBegin('remoteTransferRefNumber', TType.STRING, 2)
11461
      oprot.writeString(self.remoteTransferRefNumber)
11462
      oprot.writeFieldEnd()
11463
    oprot.writeFieldStop()
11464
    oprot.writeStructEnd()
11465
 
11466
  def validate(self):
11467
    return
11468
 
11469
 
11470
  def __repr__(self):
11471
    L = ['%s=%r' % (key, value)
11472
      for key, value in self.__dict__.iteritems()]
11473
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11474
 
11475
  def __eq__(self, other):
11476
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11477
 
11478
  def __ne__(self, other):
11479
    return not (self == other)
11480
 
11481
class markTransferLotAsReceivedPartial_result:
11482
  """
11483
  Attributes:
11484
   - wex
11485
  """
11486
 
11487
  thrift_spec = (
11488
    None, # 0
11489
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11490
  )
11491
 
11492
  def __init__(self, wex=None,):
11493
    self.wex = wex
11494
 
11495
  def read(self, iprot):
11496
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11497
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11498
      return
11499
    iprot.readStructBegin()
11500
    while True:
11501
      (fname, ftype, fid) = iprot.readFieldBegin()
11502
      if ftype == TType.STOP:
11503
        break
11504
      if fid == 1:
11505
        if ftype == TType.STRUCT:
11506
          self.wex = WarehouseServiceException()
11507
          self.wex.read(iprot)
11508
        else:
11509
          iprot.skip(ftype)
11510
      else:
11511
        iprot.skip(ftype)
11512
      iprot.readFieldEnd()
11513
    iprot.readStructEnd()
11514
 
11515
  def write(self, oprot):
11516
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11517
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11518
      return
11519
    oprot.writeStructBegin('markTransferLotAsReceivedPartial_result')
11520
    if self.wex is not None:
11521
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11522
      self.wex.write(oprot)
11523
      oprot.writeFieldEnd()
11524
    oprot.writeFieldStop()
11525
    oprot.writeStructEnd()
11526
 
11527
  def validate(self):
11528
    return
11529
 
11530
 
11531
  def __repr__(self):
11532
    L = ['%s=%r' % (key, value)
11533
      for key, value in self.__dict__.iteritems()]
11534
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11535
 
11536
  def __eq__(self, other):
11537
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11538
 
11539
  def __ne__(self, other):
11540
    return not (self == other)
10690 manish.sha 11541
 
11542
class getInventoryItemScannedInForPO_args:
11543
  """
11544
  Attributes:
11545
   - itemId
11546
   - purchaseIds
11547
  """
11548
 
11549
  thrift_spec = (
11550
    None, # 0
11551
    (1, TType.I64, 'itemId', None, None, ), # 1
11552
    (2, TType.LIST, 'purchaseIds', (TType.I64,None), None, ), # 2
11553
  )
11554
 
11555
  def __init__(self, itemId=None, purchaseIds=None,):
11556
    self.itemId = itemId
11557
    self.purchaseIds = purchaseIds
11558
 
11559
  def read(self, iprot):
11560
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11561
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11562
      return
11563
    iprot.readStructBegin()
11564
    while True:
11565
      (fname, ftype, fid) = iprot.readFieldBegin()
11566
      if ftype == TType.STOP:
11567
        break
11568
      if fid == 1:
11569
        if ftype == TType.I64:
11570
          self.itemId = iprot.readI64();
11571
        else:
11572
          iprot.skip(ftype)
11573
      elif fid == 2:
11574
        if ftype == TType.LIST:
11575
          self.purchaseIds = []
11576
          (_etype229, _size226) = iprot.readListBegin()
11577
          for _i230 in xrange(_size226):
11578
            _elem231 = iprot.readI64();
11579
            self.purchaseIds.append(_elem231)
11580
          iprot.readListEnd()
11581
        else:
11582
          iprot.skip(ftype)
11583
      else:
11584
        iprot.skip(ftype)
11585
      iprot.readFieldEnd()
11586
    iprot.readStructEnd()
11587
 
11588
  def write(self, oprot):
11589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11591
      return
11592
    oprot.writeStructBegin('getInventoryItemScannedInForPO_args')
11593
    if self.itemId is not None:
11594
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11595
      oprot.writeI64(self.itemId)
11596
      oprot.writeFieldEnd()
11597
    if self.purchaseIds is not None:
11598
      oprot.writeFieldBegin('purchaseIds', TType.LIST, 2)
11599
      oprot.writeListBegin(TType.I64, len(self.purchaseIds))
11600
      for iter232 in self.purchaseIds:
11601
        oprot.writeI64(iter232)
11602
      oprot.writeListEnd()
11603
      oprot.writeFieldEnd()
11604
    oprot.writeFieldStop()
11605
    oprot.writeStructEnd()
11606
 
11607
  def validate(self):
11608
    return
11609
 
11610
 
11611
  def __repr__(self):
11612
    L = ['%s=%r' % (key, value)
11613
      for key, value in self.__dict__.iteritems()]
11614
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11615
 
11616
  def __eq__(self, other):
11617
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11618
 
11619
  def __ne__(self, other):
11620
    return not (self == other)
11621
 
11622
class getInventoryItemScannedInForPO_result:
11623
  """
11624
  Attributes:
11625
   - success
11626
   - wex
11627
  """
11628
 
11629
  thrift_spec = (
11630
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
11631
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11632
  )
11633
 
11634
  def __init__(self, success=None, wex=None,):
11635
    self.success = success
11636
    self.wex = wex
11637
 
11638
  def read(self, iprot):
11639
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11640
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11641
      return
11642
    iprot.readStructBegin()
11643
    while True:
11644
      (fname, ftype, fid) = iprot.readFieldBegin()
11645
      if ftype == TType.STOP:
11646
        break
11647
      if fid == 0:
11648
        if ftype == TType.LIST:
11649
          self.success = []
11650
          (_etype236, _size233) = iprot.readListBegin()
11651
          for _i237 in xrange(_size233):
11652
            _elem238 = InventoryItem()
11653
            _elem238.read(iprot)
11654
            self.success.append(_elem238)
11655
          iprot.readListEnd()
11656
        else:
11657
          iprot.skip(ftype)
11658
      elif fid == 1:
11659
        if ftype == TType.STRUCT:
11660
          self.wex = WarehouseServiceException()
11661
          self.wex.read(iprot)
11662
        else:
11663
          iprot.skip(ftype)
11664
      else:
11665
        iprot.skip(ftype)
11666
      iprot.readFieldEnd()
11667
    iprot.readStructEnd()
11668
 
11669
  def write(self, oprot):
11670
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11671
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11672
      return
11673
    oprot.writeStructBegin('getInventoryItemScannedInForPO_result')
11674
    if self.success is not None:
11675
      oprot.writeFieldBegin('success', TType.LIST, 0)
11676
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11677
      for iter239 in self.success:
11678
        iter239.write(oprot)
11679
      oprot.writeListEnd()
11680
      oprot.writeFieldEnd()
11681
    if self.wex is not None:
11682
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11683
      self.wex.write(oprot)
11684
      oprot.writeFieldEnd()
11685
    oprot.writeFieldStop()
11686
    oprot.writeStructEnd()
11687
 
11688
  def validate(self):
11689
    return
11690
 
11691
 
11692
  def __repr__(self):
11693
    L = ['%s=%r' % (key, value)
11694
      for key, value in self.__dict__.iteritems()]
11695
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11696
 
11697
  def __eq__(self, other):
11698
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11699
 
11700
  def __ne__(self, other):
11701
    return not (self == other)
11702
 
11703
class getAmazonTransferredSkuDetails_args:
11704
  """
11705
  Attributes:
11706
   - itemIds
11707
  """
11708
 
11709
  thrift_spec = (
11710
    None, # 0
11711
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
11712
  )
11713
 
11714
  def __init__(self, itemIds=None,):
11715
    self.itemIds = itemIds
11716
 
11717
  def read(self, iprot):
11718
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11719
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11720
      return
11721
    iprot.readStructBegin()
11722
    while True:
11723
      (fname, ftype, fid) = iprot.readFieldBegin()
11724
      if ftype == TType.STOP:
11725
        break
11726
      if fid == 1:
11727
        if ftype == TType.LIST:
11728
          self.itemIds = []
11729
          (_etype243, _size240) = iprot.readListBegin()
11730
          for _i244 in xrange(_size240):
11731
            _elem245 = iprot.readI64();
11732
            self.itemIds.append(_elem245)
11733
          iprot.readListEnd()
11734
        else:
11735
          iprot.skip(ftype)
11736
      else:
11737
        iprot.skip(ftype)
11738
      iprot.readFieldEnd()
11739
    iprot.readStructEnd()
11740
 
11741
  def write(self, oprot):
11742
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11743
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11744
      return
11745
    oprot.writeStructBegin('getAmazonTransferredSkuDetails_args')
11746
    if self.itemIds is not None:
11747
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
11748
      oprot.writeListBegin(TType.I64, len(self.itemIds))
11749
      for iter246 in self.itemIds:
11750
        oprot.writeI64(iter246)
11751
      oprot.writeListEnd()
11752
      oprot.writeFieldEnd()
11753
    oprot.writeFieldStop()
11754
    oprot.writeStructEnd()
11755
 
11756
  def validate(self):
11757
    return
11758
 
11759
 
11760
  def __repr__(self):
11761
    L = ['%s=%r' % (key, value)
11762
      for key, value in self.__dict__.iteritems()]
11763
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11764
 
11765
  def __eq__(self, other):
11766
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11767
 
11768
  def __ne__(self, other):
11769
    return not (self == other)
11770
 
11771
class getAmazonTransferredSkuDetails_result:
11772
  """
11773
  Attributes:
11774
   - success
11775
   - wex
11776
  """
11777
 
11778
  thrift_spec = (
11779
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonTransferredSkuDetail, AmazonTransferredSkuDetail.thrift_spec)), None, ), # 0
11780
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11781
  )
11782
 
11783
  def __init__(self, success=None, wex=None,):
11784
    self.success = success
11785
    self.wex = wex
11786
 
11787
  def read(self, iprot):
11788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11790
      return
11791
    iprot.readStructBegin()
11792
    while True:
11793
      (fname, ftype, fid) = iprot.readFieldBegin()
11794
      if ftype == TType.STOP:
11795
        break
11796
      if fid == 0:
11797
        if ftype == TType.LIST:
11798
          self.success = []
11799
          (_etype250, _size247) = iprot.readListBegin()
11800
          for _i251 in xrange(_size247):
11801
            _elem252 = AmazonTransferredSkuDetail()
11802
            _elem252.read(iprot)
11803
            self.success.append(_elem252)
11804
          iprot.readListEnd()
11805
        else:
11806
          iprot.skip(ftype)
11807
      elif fid == 1:
11808
        if ftype == TType.STRUCT:
11809
          self.wex = WarehouseServiceException()
11810
          self.wex.read(iprot)
11811
        else:
11812
          iprot.skip(ftype)
11813
      else:
11814
        iprot.skip(ftype)
11815
      iprot.readFieldEnd()
11816
    iprot.readStructEnd()
11817
 
11818
  def write(self, oprot):
11819
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11820
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11821
      return
11822
    oprot.writeStructBegin('getAmazonTransferredSkuDetails_result')
11823
    if self.success is not None:
11824
      oprot.writeFieldBegin('success', TType.LIST, 0)
11825
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11826
      for iter253 in self.success:
11827
        iter253.write(oprot)
11828
      oprot.writeListEnd()
11829
      oprot.writeFieldEnd()
11830
    if self.wex is not None:
11831
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11832
      self.wex.write(oprot)
11833
      oprot.writeFieldEnd()
11834
    oprot.writeFieldStop()
11835
    oprot.writeStructEnd()
11836
 
11837
  def validate(self):
11838
    return
11839
 
11840
 
11841
  def __repr__(self):
11842
    L = ['%s=%r' % (key, value)
11843
      for key, value in self.__dict__.iteritems()]
11844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11845
 
11846
  def __eq__(self, other):
11847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11848
 
11849
  def __ne__(self, other):
11850
    return not (self == other)
11851
 
11852
class getScansforPurchase_args:
11853
  """
11854
  Attributes:
11855
   - purchaseId
11856
   - scanType
11857
  """
11858
 
11859
  thrift_spec = (
11860
    None, # 0
11861
    (1, TType.I64, 'purchaseId', None, None, ), # 1
11862
    (2, TType.I32, 'scanType', None, None, ), # 2
11863
  )
11864
 
11865
  def __init__(self, purchaseId=None, scanType=None,):
11866
    self.purchaseId = purchaseId
11867
    self.scanType = scanType
11868
 
11869
  def read(self, iprot):
11870
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11871
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11872
      return
11873
    iprot.readStructBegin()
11874
    while True:
11875
      (fname, ftype, fid) = iprot.readFieldBegin()
11876
      if ftype == TType.STOP:
11877
        break
11878
      if fid == 1:
11879
        if ftype == TType.I64:
11880
          self.purchaseId = iprot.readI64();
11881
        else:
11882
          iprot.skip(ftype)
11883
      elif fid == 2:
11884
        if ftype == TType.I32:
11885
          self.scanType = iprot.readI32();
11886
        else:
11887
          iprot.skip(ftype)
11888
      else:
11889
        iprot.skip(ftype)
11890
      iprot.readFieldEnd()
11891
    iprot.readStructEnd()
11892
 
11893
  def write(self, oprot):
11894
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11895
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11896
      return
11897
    oprot.writeStructBegin('getScansforPurchase_args')
11898
    if self.purchaseId is not None:
11899
      oprot.writeFieldBegin('purchaseId', TType.I64, 1)
11900
      oprot.writeI64(self.purchaseId)
11901
      oprot.writeFieldEnd()
11902
    if self.scanType is not None:
11903
      oprot.writeFieldBegin('scanType', TType.I32, 2)
11904
      oprot.writeI32(self.scanType)
11905
      oprot.writeFieldEnd()
11906
    oprot.writeFieldStop()
11907
    oprot.writeStructEnd()
11908
 
11909
  def validate(self):
11910
    return
11911
 
11912
 
11913
  def __repr__(self):
11914
    L = ['%s=%r' % (key, value)
11915
      for key, value in self.__dict__.iteritems()]
11916
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11917
 
11918
  def __eq__(self, other):
11919
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11920
 
11921
  def __ne__(self, other):
11922
    return not (self == other)
11923
 
11924
class getScansforPurchase_result:
11925
  """
11926
  Attributes:
11927
   - success
11928
   - wex
11929
  """
11930
 
11931
  thrift_spec = (
11932
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
11933
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11934
  )
11935
 
11936
  def __init__(self, success=None, wex=None,):
11937
    self.success = success
11938
    self.wex = wex
11939
 
11940
  def read(self, iprot):
11941
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11942
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11943
      return
11944
    iprot.readStructBegin()
11945
    while True:
11946
      (fname, ftype, fid) = iprot.readFieldBegin()
11947
      if ftype == TType.STOP:
11948
        break
11949
      if fid == 0:
11950
        if ftype == TType.LIST:
11951
          self.success = []
11952
          (_etype257, _size254) = iprot.readListBegin()
11953
          for _i258 in xrange(_size254):
11954
            _elem259 = Scan()
11955
            _elem259.read(iprot)
11956
            self.success.append(_elem259)
11957
          iprot.readListEnd()
11958
        else:
11959
          iprot.skip(ftype)
11960
      elif fid == 1:
11961
        if ftype == TType.STRUCT:
11962
          self.wex = WarehouseServiceException()
11963
          self.wex.read(iprot)
11964
        else:
11965
          iprot.skip(ftype)
11966
      else:
11967
        iprot.skip(ftype)
11968
      iprot.readFieldEnd()
11969
    iprot.readStructEnd()
11970
 
11971
  def write(self, oprot):
11972
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11973
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11974
      return
11975
    oprot.writeStructBegin('getScansforPurchase_result')
11976
    if self.success is not None:
11977
      oprot.writeFieldBegin('success', TType.LIST, 0)
11978
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11979
      for iter260 in self.success:
11980
        iter260.write(oprot)
11981
      oprot.writeListEnd()
11982
      oprot.writeFieldEnd()
11983
    if self.wex is not None:
11984
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11985
      self.wex.write(oprot)
11986
      oprot.writeFieldEnd()
11987
    oprot.writeFieldStop()
11988
    oprot.writeStructEnd()
11989
 
11990
  def validate(self):
11991
    return
11992
 
11993
 
11994
  def __repr__(self):
11995
    L = ['%s=%r' % (key, value)
11996
      for key, value in self.__dict__.iteritems()]
11997
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11998
 
11999
  def __eq__(self, other):
12000
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12001
 
12002
  def __ne__(self, other):
12003
    return not (self == other)
10864 manish.sha 12004
 
12005
class getCurrentBadQuantityForItem_args:
12006
  """
12007
  Attributes:
12008
   - itemId
12009
   - currentWarehouseId
12010
   - physicalWarehouseId
12011
  """
12012
 
12013
  thrift_spec = (
12014
    None, # 0
12015
    (1, TType.I64, 'itemId', None, None, ), # 1
12016
    (2, TType.I64, 'currentWarehouseId', None, None, ), # 2
12017
    (3, TType.I64, 'physicalWarehouseId', None, None, ), # 3
12018
  )
12019
 
12020
  def __init__(self, itemId=None, currentWarehouseId=None, physicalWarehouseId=None,):
12021
    self.itemId = itemId
12022
    self.currentWarehouseId = currentWarehouseId
12023
    self.physicalWarehouseId = physicalWarehouseId
12024
 
12025
  def read(self, iprot):
12026
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12027
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12028
      return
12029
    iprot.readStructBegin()
12030
    while True:
12031
      (fname, ftype, fid) = iprot.readFieldBegin()
12032
      if ftype == TType.STOP:
12033
        break
12034
      if fid == 1:
12035
        if ftype == TType.I64:
12036
          self.itemId = iprot.readI64();
12037
        else:
12038
          iprot.skip(ftype)
12039
      elif fid == 2:
12040
        if ftype == TType.I64:
12041
          self.currentWarehouseId = iprot.readI64();
12042
        else:
12043
          iprot.skip(ftype)
12044
      elif fid == 3:
12045
        if ftype == TType.I64:
12046
          self.physicalWarehouseId = iprot.readI64();
12047
        else:
12048
          iprot.skip(ftype)
12049
      else:
12050
        iprot.skip(ftype)
12051
      iprot.readFieldEnd()
12052
    iprot.readStructEnd()
12053
 
12054
  def write(self, oprot):
12055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12057
      return
12058
    oprot.writeStructBegin('getCurrentBadQuantityForItem_args')
12059
    if self.itemId is not None:
12060
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12061
      oprot.writeI64(self.itemId)
12062
      oprot.writeFieldEnd()
12063
    if self.currentWarehouseId is not None:
12064
      oprot.writeFieldBegin('currentWarehouseId', TType.I64, 2)
12065
      oprot.writeI64(self.currentWarehouseId)
12066
      oprot.writeFieldEnd()
12067
    if self.physicalWarehouseId is not None:
12068
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 3)
12069
      oprot.writeI64(self.physicalWarehouseId)
12070
      oprot.writeFieldEnd()
12071
    oprot.writeFieldStop()
12072
    oprot.writeStructEnd()
12073
 
12074
  def validate(self):
12075
    return
12076
 
12077
 
12078
  def __repr__(self):
12079
    L = ['%s=%r' % (key, value)
12080
      for key, value in self.__dict__.iteritems()]
12081
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12082
 
12083
  def __eq__(self, other):
12084
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12085
 
12086
  def __ne__(self, other):
12087
    return not (self == other)
12088
 
12089
class getCurrentBadQuantityForItem_result:
12090
  """
12091
  Attributes:
12092
   - success
12093
   - wex
12094
  """
12095
 
12096
  thrift_spec = (
12097
    (0, TType.I64, 'success', None, None, ), # 0
12098
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12099
  )
12100
 
12101
  def __init__(self, success=None, wex=None,):
12102
    self.success = success
12103
    self.wex = wex
12104
 
12105
  def read(self, iprot):
12106
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12107
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12108
      return
12109
    iprot.readStructBegin()
12110
    while True:
12111
      (fname, ftype, fid) = iprot.readFieldBegin()
12112
      if ftype == TType.STOP:
12113
        break
12114
      if fid == 0:
12115
        if ftype == TType.I64:
12116
          self.success = iprot.readI64();
12117
        else:
12118
          iprot.skip(ftype)
12119
      elif fid == 1:
12120
        if ftype == TType.STRUCT:
12121
          self.wex = WarehouseServiceException()
12122
          self.wex.read(iprot)
12123
        else:
12124
          iprot.skip(ftype)
12125
      else:
12126
        iprot.skip(ftype)
12127
      iprot.readFieldEnd()
12128
    iprot.readStructEnd()
12129
 
12130
  def write(self, oprot):
12131
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12132
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12133
      return
12134
    oprot.writeStructBegin('getCurrentBadQuantityForItem_result')
12135
    if self.success is not None:
12136
      oprot.writeFieldBegin('success', TType.I64, 0)
12137
      oprot.writeI64(self.success)
12138
      oprot.writeFieldEnd()
12139
    if self.wex is not None:
12140
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
12141
      self.wex.write(oprot)
12142
      oprot.writeFieldEnd()
12143
    oprot.writeFieldStop()
12144
    oprot.writeStructEnd()
12145
 
12146
  def validate(self):
12147
    return
12148
 
12149
 
12150
  def __repr__(self):
12151
    L = ['%s=%r' % (key, value)
12152
      for key, value in self.__dict__.iteritems()]
12153
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12154
 
12155
  def __eq__(self, other):
12156
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12157
 
12158
  def __ne__(self, other):
12159
    return not (self == other)
12160
 
12161
class scanForBadPurchaseReturn_args:
12162
  """
12163
  Attributes:
12164
   - saleReturnItems
12165
   - vendorId
12166
   - billingWarehouseId
12167
  """
12168
 
12169
  thrift_spec = (
12170
    None, # 0
12171
    (1, TType.LIST, 'saleReturnItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
12172
    (2, TType.I64, 'vendorId', None, None, ), # 2
12173
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
12174
  )
12175
 
12176
  def __init__(self, saleReturnItems=None, vendorId=None, billingWarehouseId=None,):
12177
    self.saleReturnItems = saleReturnItems
12178
    self.vendorId = vendorId
12179
    self.billingWarehouseId = billingWarehouseId
12180
 
12181
  def read(self, iprot):
12182
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12183
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12184
      return
12185
    iprot.readStructBegin()
12186
    while True:
12187
      (fname, ftype, fid) = iprot.readFieldBegin()
12188
      if ftype == TType.STOP:
12189
        break
12190
      if fid == 1:
12191
        if ftype == TType.LIST:
12192
          self.saleReturnItems = []
12193
          (_etype264, _size261) = iprot.readListBegin()
12194
          for _i265 in xrange(_size261):
12195
            _elem266 = InventoryItem()
12196
            _elem266.read(iprot)
12197
            self.saleReturnItems.append(_elem266)
12198
          iprot.readListEnd()
12199
        else:
12200
          iprot.skip(ftype)
12201
      elif fid == 2:
12202
        if ftype == TType.I64:
12203
          self.vendorId = iprot.readI64();
12204
        else:
12205
          iprot.skip(ftype)
12206
      elif fid == 3:
12207
        if ftype == TType.I64:
12208
          self.billingWarehouseId = iprot.readI64();
12209
        else:
12210
          iprot.skip(ftype)
12211
      else:
12212
        iprot.skip(ftype)
12213
      iprot.readFieldEnd()
12214
    iprot.readStructEnd()
12215
 
12216
  def write(self, oprot):
12217
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12218
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12219
      return
12220
    oprot.writeStructBegin('scanForBadPurchaseReturn_args')
12221
    if self.saleReturnItems is not None:
12222
      oprot.writeFieldBegin('saleReturnItems', TType.LIST, 1)
12223
      oprot.writeListBegin(TType.STRUCT, len(self.saleReturnItems))
12224
      for iter267 in self.saleReturnItems:
12225
        iter267.write(oprot)
12226
      oprot.writeListEnd()
12227
      oprot.writeFieldEnd()
12228
    if self.vendorId is not None:
12229
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
12230
      oprot.writeI64(self.vendorId)
12231
      oprot.writeFieldEnd()
12232
    if self.billingWarehouseId is not None:
12233
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
12234
      oprot.writeI64(self.billingWarehouseId)
12235
      oprot.writeFieldEnd()
12236
    oprot.writeFieldStop()
12237
    oprot.writeStructEnd()
12238
 
12239
  def validate(self):
12240
    return
12241
 
12242
 
12243
  def __repr__(self):
12244
    L = ['%s=%r' % (key, value)
12245
      for key, value in self.__dict__.iteritems()]
12246
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12247
 
12248
  def __eq__(self, other):
12249
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12250
 
12251
  def __ne__(self, other):
12252
    return not (self == other)
12253
 
12254
class scanForBadPurchaseReturn_result:
12255
  """
12256
  Attributes:
12257
   - success
12258
   - ex
12259
  """
12260
 
12261
  thrift_spec = (
12262
    (0, TType.I64, 'success', None, None, ), # 0
12263
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12264
  )
12265
 
12266
  def __init__(self, success=None, ex=None,):
12267
    self.success = success
12268
    self.ex = ex
12269
 
12270
  def read(self, iprot):
12271
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12272
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12273
      return
12274
    iprot.readStructBegin()
12275
    while True:
12276
      (fname, ftype, fid) = iprot.readFieldBegin()
12277
      if ftype == TType.STOP:
12278
        break
12279
      if fid == 0:
12280
        if ftype == TType.I64:
12281
          self.success = iprot.readI64();
12282
        else:
12283
          iprot.skip(ftype)
12284
      elif fid == 1:
12285
        if ftype == TType.STRUCT:
12286
          self.ex = WarehouseServiceException()
12287
          self.ex.read(iprot)
12288
        else:
12289
          iprot.skip(ftype)
12290
      else:
12291
        iprot.skip(ftype)
12292
      iprot.readFieldEnd()
12293
    iprot.readStructEnd()
12294
 
12295
  def write(self, oprot):
12296
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12297
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12298
      return
12299
    oprot.writeStructBegin('scanForBadPurchaseReturn_result')
12300
    if self.success is not None:
12301
      oprot.writeFieldBegin('success', TType.I64, 0)
12302
      oprot.writeI64(self.success)
12303
      oprot.writeFieldEnd()
12304
    if self.ex is not None:
12305
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12306
      self.ex.write(oprot)
12307
      oprot.writeFieldEnd()
12308
    oprot.writeFieldStop()
12309
    oprot.writeStructEnd()
12310
 
12311
  def validate(self):
12312
    return
12313
 
12314
 
12315
  def __repr__(self):
12316
    L = ['%s=%r' % (key, value)
12317
      for key, value in self.__dict__.iteritems()]
12318
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12319
 
12320
  def __eq__(self, other):
12321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12322
 
12323
  def __ne__(self, other):
12324
    return not (self == other)
12325
 
12326
class getItemsInPurchaseReturn_args:
12327
  """
12328
  Attributes:
12329
   - purchaseReturnId
11751 manish.sha 12330
   - type
10864 manish.sha 12331
  """
12332
 
12333
  thrift_spec = (
12334
    None, # 0
12335
    (1, TType.I64, 'purchaseReturnId', None, None, ), # 1
11751 manish.sha 12336
    (2, TType.I32, 'type', None, None, ), # 2
10864 manish.sha 12337
  )
12338
 
11751 manish.sha 12339
  def __init__(self, purchaseReturnId=None, type=None,):
10864 manish.sha 12340
    self.purchaseReturnId = purchaseReturnId
11751 manish.sha 12341
    self.type = type
10864 manish.sha 12342
 
12343
  def read(self, iprot):
12344
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12345
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12346
      return
12347
    iprot.readStructBegin()
12348
    while True:
12349
      (fname, ftype, fid) = iprot.readFieldBegin()
12350
      if ftype == TType.STOP:
12351
        break
12352
      if fid == 1:
12353
        if ftype == TType.I64:
12354
          self.purchaseReturnId = iprot.readI64();
12355
        else:
12356
          iprot.skip(ftype)
11751 manish.sha 12357
      elif fid == 2:
12358
        if ftype == TType.I32:
12359
          self.type = iprot.readI32();
12360
        else:
12361
          iprot.skip(ftype)
10864 manish.sha 12362
      else:
12363
        iprot.skip(ftype)
12364
      iprot.readFieldEnd()
12365
    iprot.readStructEnd()
12366
 
12367
  def write(self, oprot):
12368
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12369
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12370
      return
12371
    oprot.writeStructBegin('getItemsInPurchaseReturn_args')
12372
    if self.purchaseReturnId is not None:
12373
      oprot.writeFieldBegin('purchaseReturnId', TType.I64, 1)
12374
      oprot.writeI64(self.purchaseReturnId)
12375
      oprot.writeFieldEnd()
11751 manish.sha 12376
    if self.type is not None:
12377
      oprot.writeFieldBegin('type', TType.I32, 2)
12378
      oprot.writeI32(self.type)
12379
      oprot.writeFieldEnd()
10864 manish.sha 12380
    oprot.writeFieldStop()
12381
    oprot.writeStructEnd()
12382
 
12383
  def validate(self):
12384
    return
12385
 
12386
 
12387
  def __repr__(self):
12388
    L = ['%s=%r' % (key, value)
12389
      for key, value in self.__dict__.iteritems()]
12390
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12391
 
12392
  def __eq__(self, other):
12393
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12394
 
12395
  def __ne__(self, other):
12396
    return not (self == other)
12397
 
12398
class getItemsInPurchaseReturn_result:
12399
  """
12400
  Attributes:
12401
   - success
12402
   - ex
12403
  """
12404
 
12405
  thrift_spec = (
12406
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
12407
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12408
  )
12409
 
12410
  def __init__(self, success=None, ex=None,):
12411
    self.success = success
12412
    self.ex = ex
12413
 
12414
  def read(self, iprot):
12415
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12416
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12417
      return
12418
    iprot.readStructBegin()
12419
    while True:
12420
      (fname, ftype, fid) = iprot.readFieldBegin()
12421
      if ftype == TType.STOP:
12422
        break
12423
      if fid == 0:
12424
        if ftype == TType.MAP:
12425
          self.success = {}
12426
          (_ktype269, _vtype270, _size268 ) = iprot.readMapBegin() 
12427
          for _i272 in xrange(_size268):
12428
            _key273 = iprot.readI64();
12429
            _val274 = iprot.readI64();
12430
            self.success[_key273] = _val274
12431
          iprot.readMapEnd()
12432
        else:
12433
          iprot.skip(ftype)
12434
      elif fid == 1:
12435
        if ftype == TType.STRUCT:
12436
          self.ex = WarehouseServiceException()
12437
          self.ex.read(iprot)
12438
        else:
12439
          iprot.skip(ftype)
12440
      else:
12441
        iprot.skip(ftype)
12442
      iprot.readFieldEnd()
12443
    iprot.readStructEnd()
12444
 
12445
  def write(self, oprot):
12446
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12447
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12448
      return
12449
    oprot.writeStructBegin('getItemsInPurchaseReturn_result')
12450
    if self.success is not None:
12451
      oprot.writeFieldBegin('success', TType.MAP, 0)
12452
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
12453
      for kiter275,viter276 in self.success.items():
12454
        oprot.writeI64(kiter275)
12455
        oprot.writeI64(viter276)
12456
      oprot.writeMapEnd()
12457
      oprot.writeFieldEnd()
12458
    if self.ex is not None:
12459
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12460
      self.ex.write(oprot)
12461
      oprot.writeFieldEnd()
12462
    oprot.writeFieldStop()
12463
    oprot.writeStructEnd()
12464
 
12465
  def validate(self):
12466
    return
12467
 
12468
 
12469
  def __repr__(self):
12470
    L = ['%s=%r' % (key, value)
12471
      for key, value in self.__dict__.iteritems()]
12472
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12473
 
12474
  def __eq__(self, other):
12475
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12476
 
12477
  def __ne__(self, other):
12478
    return not (self == other)
10886 manish.sha 12479
 
12480
class getScansForInventoryItem_args:
12481
  """
12482
  Attributes:
12483
   - inventoryItemId
12484
   - type
12485
  """
12486
 
12487
  thrift_spec = (
12488
    None, # 0
12489
    (1, TType.I64, 'inventoryItemId', None, None, ), # 1
12490
    (2, TType.I32, 'type', None, None, ), # 2
12491
  )
12492
 
12493
  def __init__(self, inventoryItemId=None, type=None,):
12494
    self.inventoryItemId = inventoryItemId
12495
    self.type = type
12496
 
12497
  def read(self, iprot):
12498
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12499
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12500
      return
12501
    iprot.readStructBegin()
12502
    while True:
12503
      (fname, ftype, fid) = iprot.readFieldBegin()
12504
      if ftype == TType.STOP:
12505
        break
12506
      if fid == 1:
12507
        if ftype == TType.I64:
12508
          self.inventoryItemId = iprot.readI64();
12509
        else:
12510
          iprot.skip(ftype)
12511
      elif fid == 2:
12512
        if ftype == TType.I32:
12513
          self.type = iprot.readI32();
12514
        else:
12515
          iprot.skip(ftype)
12516
      else:
12517
        iprot.skip(ftype)
12518
      iprot.readFieldEnd()
12519
    iprot.readStructEnd()
12520
 
12521
  def write(self, oprot):
12522
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12523
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12524
      return
12525
    oprot.writeStructBegin('getScansForInventoryItem_args')
12526
    if self.inventoryItemId is not None:
12527
      oprot.writeFieldBegin('inventoryItemId', TType.I64, 1)
12528
      oprot.writeI64(self.inventoryItemId)
12529
      oprot.writeFieldEnd()
12530
    if self.type is not None:
12531
      oprot.writeFieldBegin('type', TType.I32, 2)
12532
      oprot.writeI32(self.type)
12533
      oprot.writeFieldEnd()
12534
    oprot.writeFieldStop()
12535
    oprot.writeStructEnd()
12536
 
12537
  def validate(self):
12538
    return
12539
 
12540
 
12541
  def __repr__(self):
12542
    L = ['%s=%r' % (key, value)
12543
      for key, value in self.__dict__.iteritems()]
12544
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12545
 
12546
  def __eq__(self, other):
12547
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12548
 
12549
  def __ne__(self, other):
12550
    return not (self == other)
12551
 
12552
class getScansForInventoryItem_result:
12553
  """
12554
  Attributes:
12555
   - success
12556
   - ex
12557
  """
12558
 
12559
  thrift_spec = (
12560
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
12561
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12562
  )
12563
 
12564
  def __init__(self, success=None, ex=None,):
12565
    self.success = success
12566
    self.ex = ex
12567
 
12568
  def read(self, iprot):
12569
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12570
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12571
      return
12572
    iprot.readStructBegin()
12573
    while True:
12574
      (fname, ftype, fid) = iprot.readFieldBegin()
12575
      if ftype == TType.STOP:
12576
        break
12577
      if fid == 0:
12578
        if ftype == TType.LIST:
12579
          self.success = []
12580
          (_etype280, _size277) = iprot.readListBegin()
12581
          for _i281 in xrange(_size277):
12582
            _elem282 = Scan()
12583
            _elem282.read(iprot)
12584
            self.success.append(_elem282)
12585
          iprot.readListEnd()
12586
        else:
12587
          iprot.skip(ftype)
12588
      elif fid == 1:
12589
        if ftype == TType.STRUCT:
12590
          self.ex = WarehouseServiceException()
12591
          self.ex.read(iprot)
12592
        else:
12593
          iprot.skip(ftype)
12594
      else:
12595
        iprot.skip(ftype)
12596
      iprot.readFieldEnd()
12597
    iprot.readStructEnd()
12598
 
12599
  def write(self, oprot):
12600
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12601
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12602
      return
12603
    oprot.writeStructBegin('getScansForInventoryItem_result')
12604
    if self.success is not None:
12605
      oprot.writeFieldBegin('success', TType.LIST, 0)
12606
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12607
      for iter283 in self.success:
12608
        iter283.write(oprot)
12609
      oprot.writeListEnd()
12610
      oprot.writeFieldEnd()
12611
    if self.ex is not None:
12612
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12613
      self.ex.write(oprot)
12614
      oprot.writeFieldEnd()
12615
    oprot.writeFieldStop()
12616
    oprot.writeStructEnd()
12617
 
12618
  def validate(self):
12619
    return
12620
 
12621
 
12622
  def __repr__(self):
12623
    L = ['%s=%r' % (key, value)
12624
      for key, value in self.__dict__.iteritems()]
12625
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12626
 
12627
  def __eq__(self, other):
12628
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12629
 
12630
  def __ne__(self, other):
12631
    return not (self == other)
12531 manish.sha 12632
 
12633
class checkGrnImeiStatus_args:
12634
  """
12635
  Attributes:
12636
   - imeiNos
12637
  """
12638
 
12639
  thrift_spec = (
12640
    None, # 0
12641
    (1, TType.LIST, 'imeiNos', (TType.STRING,None), None, ), # 1
12642
  )
12643
 
12644
  def __init__(self, imeiNos=None,):
12645
    self.imeiNos = imeiNos
12646
 
12647
  def read(self, iprot):
12648
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12649
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12650
      return
12651
    iprot.readStructBegin()
12652
    while True:
12653
      (fname, ftype, fid) = iprot.readFieldBegin()
12654
      if ftype == TType.STOP:
12655
        break
12656
      if fid == 1:
12657
        if ftype == TType.LIST:
12658
          self.imeiNos = []
12659
          (_etype287, _size284) = iprot.readListBegin()
12660
          for _i288 in xrange(_size284):
12661
            _elem289 = iprot.readString();
12662
            self.imeiNos.append(_elem289)
12663
          iprot.readListEnd()
12664
        else:
12665
          iprot.skip(ftype)
12666
      else:
12667
        iprot.skip(ftype)
12668
      iprot.readFieldEnd()
12669
    iprot.readStructEnd()
12670
 
12671
  def write(self, oprot):
12672
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12673
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12674
      return
12675
    oprot.writeStructBegin('checkGrnImeiStatus_args')
12676
    if self.imeiNos is not None:
12677
      oprot.writeFieldBegin('imeiNos', TType.LIST, 1)
12678
      oprot.writeListBegin(TType.STRING, len(self.imeiNos))
12679
      for iter290 in self.imeiNos:
12680
        oprot.writeString(iter290)
12681
      oprot.writeListEnd()
12682
      oprot.writeFieldEnd()
12683
    oprot.writeFieldStop()
12684
    oprot.writeStructEnd()
12685
 
12686
  def validate(self):
12687
    return
12688
 
12689
 
12690
  def __repr__(self):
12691
    L = ['%s=%r' % (key, value)
12692
      for key, value in self.__dict__.iteritems()]
12693
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12694
 
12695
  def __eq__(self, other):
12696
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12697
 
12698
  def __ne__(self, other):
12699
    return not (self == other)
12700
 
12701
class checkGrnImeiStatus_result:
12702
  """
12703
  Attributes:
12704
   - success
12705
   - ex
12706
  """
12707
 
12708
  thrift_spec = (
12709
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
12710
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12711
  )
12712
 
12713
  def __init__(self, success=None, ex=None,):
12714
    self.success = success
12715
    self.ex = ex
12716
 
12717
  def read(self, iprot):
12718
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12719
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12720
      return
12721
    iprot.readStructBegin()
12722
    while True:
12723
      (fname, ftype, fid) = iprot.readFieldBegin()
12724
      if ftype == TType.STOP:
12725
        break
12726
      if fid == 0:
12727
        if ftype == TType.LIST:
12728
          self.success = []
12729
          (_etype294, _size291) = iprot.readListBegin()
12730
          for _i295 in xrange(_size291):
12731
            _elem296 = iprot.readString();
12732
            self.success.append(_elem296)
12733
          iprot.readListEnd()
12734
        else:
12735
          iprot.skip(ftype)
12736
      elif fid == 1:
12737
        if ftype == TType.STRUCT:
12738
          self.ex = WarehouseServiceException()
12739
          self.ex.read(iprot)
12740
        else:
12741
          iprot.skip(ftype)
12742
      else:
12743
        iprot.skip(ftype)
12744
      iprot.readFieldEnd()
12745
    iprot.readStructEnd()
12746
 
12747
  def write(self, oprot):
12748
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12749
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12750
      return
12751
    oprot.writeStructBegin('checkGrnImeiStatus_result')
12752
    if self.success is not None:
12753
      oprot.writeFieldBegin('success', TType.LIST, 0)
12754
      oprot.writeListBegin(TType.STRING, len(self.success))
12755
      for iter297 in self.success:
12756
        oprot.writeString(iter297)
12757
      oprot.writeListEnd()
12758
      oprot.writeFieldEnd()
12759
    if self.ex is not None:
12760
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12761
      self.ex.write(oprot)
12762
      oprot.writeFieldEnd()
12763
    oprot.writeFieldStop()
12764
    oprot.writeStructEnd()
12765
 
12766
  def validate(self):
12767
    return
12768
 
12769
 
12770
  def __repr__(self):
12771
    L = ['%s=%r' % (key, value)
12772
      for key, value in self.__dict__.iteritems()]
12773
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12774
 
12775
  def __eq__(self, other):
12776
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12777
 
12778
  def __ne__(self, other):
12779
    return not (self == other)