Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
2821 chandransh 1
#
3431 rajveer 2
# Autogenerated by Thrift Compiler (0.7.0)
2821 chandransh 3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
3376 rajveer 8
import shop2020.thriftpy.generic.GenericService
2821 chandransh 9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
3431 rajveer 12
from thrift.protocol import TBinaryProtocol, TProtocol
2821 chandransh 13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
3376 rajveer 19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
4501 mandeep.dh 20
  def getInventoryItem(self, serialNumber):
2832 chandransh 21
    """
4501 mandeep.dh 22
    Retrieves serialized inventory item given a serial number
3431 rajveer 23
 
2832 chandransh 24
    Parameters:
4501 mandeep.dh 25
     - serialNumber
2832 chandransh 26
    """
27
    pass
28
 
8565 amar.kumar 29
  def getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId):
2821 chandransh 30
    """
5361 mandeep.dh 31
    Retrieves non-serialized inventory item from a given supplier
3431 rajveer 32
 
2821 chandransh 33
    Parameters:
5530 mandeep.dh 34
     - itemNumber
4501 mandeep.dh 35
     - itemId
5530 mandeep.dh 36
     - fulfilmentWarehouseId
8565 amar.kumar 37
     - billingWarehouseId
2821 chandransh 38
    """
39
    pass
40
 
7410 amar.kumar 41
  def scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
2821 chandransh 42
    """
4501 mandeep.dh 43
    Scan non-serialized items.
3431 rajveer 44
 
2821 chandransh 45
    Parameters:
5361 mandeep.dh 46
     - inventoryItem
2821 chandransh 47
     - type
4501 mandeep.dh 48
     - quantity
5361 mandeep.dh 49
     - billingWarehouseId
7410 amar.kumar 50
     - transferLotId
2821 chandransh 51
    """
52
    pass
53
 
10489 amar.kumar 54
  def genericScan(self, inventoryItem, scan):
55
    """
56
    Scan non-serialized items.
57
 
58
    Parameters:
59
     - inventoryItem
60
     - scan
61
    """
62
    pass
63
 
5110 mandeep.dh 64
  def scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
4501 mandeep.dh 65
    """
66
    Scan serialized items linked with an order. Returns its price.
2821 chandransh 67
 
4501 mandeep.dh 68
    Parameters:
4555 mandeep.dh 69
     - serialNumber
4501 mandeep.dh 70
     - type
71
     - orderId
5110 mandeep.dh 72
     - fulfilmentWarehouseId
73
     - quantity
74
     - billingWarehouseId
4501 mandeep.dh 75
    """
76
    pass
77
 
5361 mandeep.dh 78
  def scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
4501 mandeep.dh 79
    """
80
    Scan non-serialized items linked with an order.
81
 
82
    Parameters:
5361 mandeep.dh 83
     - inventoryItem
4501 mandeep.dh 84
     - type
85
     - quantity
86
     - orderId
5110 mandeep.dh 87
     - fulfilmentWarehouseId
5361 mandeep.dh 88
     - billingWarehouseId
4501 mandeep.dh 89
    """
90
    pass
91
 
92
  def createItemNumberMapping(self, itemNumber, itemId):
93
    """
94
    Created item number to item id mapping
95
 
96
    Parameters:
97
     - itemNumber
98
     - itemId
99
    """
100
    pass
101
 
4620 amit.gupta 102
  def getItemNumbers(self, itemId):
103
    """
104
    Get itemNumber mappings for itemId
4501 mandeep.dh 105
 
4620 amit.gupta 106
    Parameters:
107
     - itemId
108
    """
109
    pass
110
 
5110 mandeep.dh 111
  def getItemIds(self, itemNumber):
112
    """
113
    Gets item ids for a given item number
4620 amit.gupta 114
 
5110 mandeep.dh 115
    Parameters:
116
     - itemNumber
117
    """
118
    pass
119
 
5185 mandeep.dh 120
  def getInventoryItemsFromLastScanType(self, lastScanType):
121
    """
122
    Retrieves all inventory items given a last scan type
5110 mandeep.dh 123
 
5185 mandeep.dh 124
    Parameters:
125
     - lastScanType
126
    """
127
    pass
128
 
129
  def getInventoryItemFromId(self, inventoryItemId):
130
    """
131
    Retrieves inventory item given a inventoryItem id
132
 
133
    Parameters:
134
     - inventoryItemId
135
    """
136
    pass
137
 
5372 mandeep.dh 138
  def getPurchaseScans(self, startDate, endDate):
139
    """
140
    Returns the purchase scans grouped by items for Purchase register reconciliation
5185 mandeep.dh 141
 
5372 mandeep.dh 142
    Parameters:
143
     - startDate
144
     - endDate
145
    """
146
    pass
147
 
7216 amar.kumar 148
  def getPurchaseScansByGrnDate(self, startDate, endDate):
149
    """
150
    Returns the purchase scans between grn dates grouped by items for Purchase register reconciliation
151
 
152
    Parameters:
153
     - startDate
154
     - endDate
155
    """
156
    pass
157
 
10407 amar.kumar 158
  def getEmptyGrnsByDate(self, startDate, endDate):
159
    """
160
    Returns the empty grn-ids between grn dates
161
 
162
    Parameters:
163
     - startDate
164
     - endDate
165
    """
166
    pass
167
 
5496 mandeep.dh 168
  def fetchScansPerInvoiceNumber(self, date):
169
    """
170
    Returns the invoices and the count of scans against on a given day.
5372 mandeep.dh 171
 
5496 mandeep.dh 172
    Parameters:
173
     - date
174
    """
175
    pass
176
 
5620 mandeep.dh 177
  def getInventoryItemFromOrder(self, orderId):
178
    """
179
    Returns inventory item for a given order
5496 mandeep.dh 180
 
5620 mandeep.dh 181
    Parameters:
182
     - orderId
183
    """
184
    pass
185
 
5711 mandeep.dh 186
  def getInventoryAge(self, ):
187
    """
188
    Fetches the stock inventory age week-wise
189
    """
190
    pass
5620 mandeep.dh 191
 
6361 rajveer 192
  def getInventoryScansForItem(self, itemId, fromDate, toDate):
193
    """
194
    Fetches the scanRecords for a given item for a given time interval
5711 mandeep.dh 195
 
6361 rajveer 196
    Parameters:
197
     - itemId
198
     - fromDate
199
     - toDate
200
    """
201
    pass
202
 
203
  def getScanRecordsForSerialNumber(self, serialNumber):
204
    """
205
    Fetches the scanRecords for a given serialNumber for a given time interval
206
 
207
    Parameters:
208
     - serialNumber
209
    """
210
    pass
211
 
7718 amar.kumar 212
  def scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
6467 amar.kumar 213
    """
6630 amar.kumar 214
    Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
6361 rajveer 215
 
6467 amar.kumar 216
    Parameters:
217
     - saleReturnItems
218
     - vendorId
7718 amar.kumar 219
     - billingWarehouseId
6467 amar.kumar 220
    """
221
    pass
222
 
7718 amar.kumar 223
  def scanForLostItem(self, lostItems, vendorId, billingWarehouseId):
6630 amar.kumar 224
    """
225
    Inserts scans for lost Items and updates lastScanType in InventoryItems
6467 amar.kumar 226
 
6630 amar.kumar 227
    Parameters:
228
     - lostItems
229
     - vendorId
7718 amar.kumar 230
     - billingWarehouseId
6630 amar.kumar 231
    """
232
    pass
233
 
7715 vikram.rag 234
  def getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 235
    """
236
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
7715 vikram.rag 237
 
238
    Parameters:
239
     - physicalWarehouseId
6630 amar.kumar 240
    """
241
    pass
242
 
7715 vikram.rag 243
  def getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 244
    """
245
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
7715 vikram.rag 246
 
247
    Parameters:
248
     - physicalWarehouseId
6630 amar.kumar 249
    """
250
    pass
251
 
6762 amar.kumar 252
  def getHistoricSerializedInventoryByScans(self, date):
253
    """
254
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
6630 amar.kumar 255
 
6762 amar.kumar 256
    Parameters:
257
     - date
258
    """
259
    pass
260
 
261
  def getHistoricNonSerializedInventoryByScans(self, date):
262
    """
263
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
264
 
265
    Parameters:
266
     - date
267
    """
268
    pass
269
 
10407 amar.kumar 270
  def getOurHistoricSerializedInventoryByScans(self, date):
271
    """
272
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
273
 
274
    Parameters:
275
     - date
276
    """
277
    pass
278
 
279
  def getOurHistoricNonSerializedInventoryByScans(self, date):
280
    """
281
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
282
 
283
    Parameters:
284
     - date
285
    """
286
    pass
287
 
7672 rajveer 288
  def scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):
6762 amar.kumar 289
    """
6880 amar.kumar 290
    Insert Purchase/Sale Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 291
 
292
    Parameters:
293
     - itemId
294
     - serialNumber
295
     - itemNumber
296
     - invoiceNumber
297
     - warehouseId
298
     - unitPrice
7672 rajveer 299
     - nlc
6762 amar.kumar 300
     - orderId
301
    """
302
    pass
303
 
304
  def scanForOursExternalSaleReturn(self, orderId, unitPrice):
305
    """
6880 amar.kumar 306
    Insert Purchase_Ret/Sale_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 307
 
308
    Parameters:
309
     - orderId
310
     - unitPrice
311
    """
312
    pass
313
 
6880 amar.kumar 314
  def getMovementNonSerializedInventoryByScans(self, startDate, endDate):
315
    """
10407 amar.kumar 316
    This returns movement for each non serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)
317
 
6880 amar.kumar 318
    Parameters:
319
     - startDate
320
     - endDate
321
    """
322
    pass
6762 amar.kumar 323
 
6880 amar.kumar 324
  def getMovementSerializedInventoryByScans(self, startDate, endDate):
325
    """
10407 amar.kumar 326
    This returns movement for each serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)
327
 
6880 amar.kumar 328
    Parameters:
329
     - startDate
330
     - endDate
331
    """
332
    pass
333
 
7216 amar.kumar 334
  def getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):
335
    """
10407 amar.kumar 336
    This returns movement for each serialized item in the specified window.(Doesn't include Amazon w/h)
337
 
7216 amar.kumar 338
    Parameters:
339
     - startDate
340
     - endDate
341
    """
342
    pass
343
 
344
  def getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):
345
    """
10407 amar.kumar 346
    This returns movement for each non serialized item in the specified window.(Doesn't include Amazon w/h)
347
 
7216 amar.kumar 348
    Parameters:
349
     - startDate
350
     - endDate
351
    """
352
    pass
353
 
7190 amar.kumar 354
  def scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):
355
    """
356
    Parameters:
357
     - orderId
358
     - freebieItemId
359
     - freebieWarehouseId
360
     - scanType
361
    """
362
    pass
6880 amar.kumar 363
 
7199 amar.kumar 364
  def reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):
365
    """
366
    Parameters:
367
     - oldOrderId
368
     - newOrderId
369
     - freebieItemId
370
     - scanType
371
    """
372
    pass
7190 amar.kumar 373
 
7410 amar.kumar 374
  def isItemTransferAllowed(self, warehouseId, transferWarehouseId):
375
    """
376
    Parameters:
377
     - warehouseId
378
     - transferWarehouseId
379
    """
380
    pass
7199 amar.kumar 381
 
7410 amar.kumar 382
  def createTransferLot(self, originWarehouseId, destWarehouseId):
383
    """
384
    Parameters:
385
     - originWarehouseId
386
     - destWarehouseId
387
    """
388
    pass
389
 
390
  def getTransferLot(self, transferLotId):
391
    """
392
    Parameters:
393
     - transferLotId
394
    """
395
    pass
396
 
397
  def markTransferLotAsReceived(self, id, remoteTransferRefNumber):
398
    """
399
    Parameters:
400
     - id
401
     - remoteTransferRefNumber
402
    """
403
    pass
404
 
405
  def getTransferLotsByDate(self, fromDate, toDate):
406
    """
407
    Parameters:
408
     - fromDate
409
     - toDate
410
    """
411
    pass
412
 
413
  def getAllowedDestinationWarehousesForTransfer(self, warehouseId):
414
    """
415
    Parameters:
416
     - warehouseId
417
    """
418
    pass
419
 
420
  def getItemsInTransferLot(self, transferLotId):
421
    """
422
    Parameters:
423
     - transferLotId
424
    """
425
    pass
426
 
427
  def markItemsAsReceivedForTransferLot(self, id):
428
    """
429
    Parameters:
430
     - id
431
    """
432
    pass
433
 
434
  def updateTransferLotAfterItemReceive(self, id):
435
    """
436
    Parameters:
437
     - id
438
    """
439
    pass
440
 
7459 amar.kumar 441
  def scanForTransferOut(self, inventoryItems, type, transferLotId):
7410 amar.kumar 442
    """
443
    Parameters:
444
     - inventoryItems
445
     - type
446
     - transferLotId
447
    """
448
    pass
449
 
7459 amar.kumar 450
  def scanForTransferIn(self, inventoryItems, type, transferLotId):
451
    """
452
    Parameters:
453
     - inventoryItems
454
     - type
455
     - transferLotId
456
    """
457
    pass
7410 amar.kumar 458
 
7459 amar.kumar 459
  def scanForOursThirdPartyReceive(self, inventoryItems, id):
460
    """
461
    Parameters:
462
     - inventoryItems
463
     - id
464
    """
465
    pass
466
 
7574 amar.kumar 467
  def getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
468
    """
469
    Parameters:
470
     - itemId
471
     - physicalWarehouseId
472
    """
473
    pass
7459 amar.kumar 474
 
7672 rajveer 475
  def getInTransitInventory(self, originWarehouseId):
476
    """
477
    Parameters:
478
     - originWarehouseId
479
    """
480
    pass
7574 amar.kumar 481
 
7968 amar.kumar 482
  def isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
483
    """
484
    Parameters:
485
     - itemId
486
     - serialNumber
487
     - warehouseId
488
    """
489
    pass
7672 rajveer 490
 
7968 amar.kumar 491
  def getHistoricBadInventoryByScans(self, date):
492
    """
493
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
494
 
495
    Parameters:
496
     - date
497
    """
498
    pass
499
 
8717 amar.kumar 500
  def scanForBadSale(self, serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
8565 amar.kumar 501
    """
502
    Parameters:
8717 amar.kumar 503
     - serialNumber
504
     - itemNumber
505
     - itemId
8565 amar.kumar 506
     - orderId
8717 amar.kumar 507
     - fulfilmentWarehouseId
8565 amar.kumar 508
     - quantity
509
     - billingWarehouseId
510
    """
511
    pass
7968 amar.kumar 512
 
10120 manish.sha 513
  def getTransferLotItemsForMarkReceive(self, transferLotId, scanType):
514
    """
515
    Parameters:
516
     - transferLotId
517
     - scanType
518
    """
519
    pass
8565 amar.kumar 520
 
10120 manish.sha 521
  def markItemsAsReceivedForTransferLotPartial(self, inventoryItems, transferLotId):
522
    """
523
    Parameters:
524
     - inventoryItems
525
     - transferLotId
526
    """
527
    pass
528
 
529
  def markTransferLotAsReceivedPartial(self, id, remoteTransferRefNumber):
530
    """
531
    Parameters:
532
     - id
533
     - remoteTransferRefNumber
534
    """
535
    pass
536
 
10690 manish.sha 537
  def getInventoryItemScannedInForPO(self, itemId, purchaseIds):
538
    """
539
    Parameters:
540
     - itemId
541
     - purchaseIds
542
    """
543
    pass
10120 manish.sha 544
 
10690 manish.sha 545
  def getAmazonTransferredSkuDetails(self, itemIds):
546
    """
547
    Parameters:
548
     - itemIds
549
    """
550
    pass
551
 
552
  def getScansforPurchase(self, purchaseId, scanType):
553
    """
554
    Parameters:
555
     - purchaseId
556
     - scanType
557
    """
558
    pass
559
 
10864 manish.sha 560
  def getCurrentBadQuantityForItem(self, itemId, currentWarehouseId, physicalWarehouseId):
561
    """
562
    Parameters:
563
     - itemId
564
     - currentWarehouseId
565
     - physicalWarehouseId
566
    """
567
    pass
10690 manish.sha 568
 
10864 manish.sha 569
  def scanForBadPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
570
    """
571
    Parameters:
572
     - saleReturnItems
573
     - vendorId
574
     - billingWarehouseId
575
    """
576
    pass
577
 
13504 manish.sha 578
  def getItemsInPurchaseReturn(self, purchaseReturnId, type, returnTime):
10864 manish.sha 579
    """
580
    Parameters:
581
     - purchaseReturnId
11751 manish.sha 582
     - type
13504 manish.sha 583
     - returnTime
10864 manish.sha 584
    """
585
    pass
586
 
10886 manish.sha 587
  def getScansForInventoryItem(self, inventoryItemId, type):
588
    """
589
    Parameters:
590
     - inventoryItemId
591
     - type
592
    """
593
    pass
10864 manish.sha 594
 
12531 manish.sha 595
  def checkGrnImeiStatus(self, imeiNos):
596
    """
597
    Parameters:
598
     - imeiNos
599
    """
600
    pass
10886 manish.sha 601
 
12800 manish.sha 602
  def getInventoryAgeConsideredItems(self, itemId):
603
    """
604
    Parameters:
605
     - itemId
606
    """
607
    pass
12531 manish.sha 608
 
13529 manish.sha 609
  def getCompleteMovementForThirdPartyWarehouse(self, startDate, endDate):
610
    """
611
    Parameters:
612
     - startDate
613
     - endDate
614
    """
615
    pass
12800 manish.sha 616
 
14491 manish.sha 617
  def getAllDoaOutInventoryItems(self, ):
618
    pass
13529 manish.sha 619
 
14491 manish.sha 620
 
3376 rajveer 621
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2821 chandransh 622
  def __init__(self, iprot, oprot=None):
3376 rajveer 623
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2821 chandransh 624
 
4501 mandeep.dh 625
  def getInventoryItem(self, serialNumber):
2832 chandransh 626
    """
4501 mandeep.dh 627
    Retrieves serialized inventory item given a serial number
3431 rajveer 628
 
2832 chandransh 629
    Parameters:
4501 mandeep.dh 630
     - serialNumber
2832 chandransh 631
    """
4501 mandeep.dh 632
    self.send_getInventoryItem(serialNumber)
633
    return self.recv_getInventoryItem()
2832 chandransh 634
 
4501 mandeep.dh 635
  def send_getInventoryItem(self, serialNumber):
636
    self._oprot.writeMessageBegin('getInventoryItem', TMessageType.CALL, self._seqid)
637
    args = getInventoryItem_args()
638
    args.serialNumber = serialNumber
2832 chandransh 639
    args.write(self._oprot)
640
    self._oprot.writeMessageEnd()
641
    self._oprot.trans.flush()
642
 
4501 mandeep.dh 643
  def recv_getInventoryItem(self, ):
2832 chandransh 644
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
645
    if mtype == TMessageType.EXCEPTION:
646
      x = TApplicationException()
647
      x.read(self._iprot)
648
      self._iprot.readMessageEnd()
649
      raise x
4501 mandeep.dh 650
    result = getInventoryItem_result()
2832 chandransh 651
    result.read(self._iprot)
652
    self._iprot.readMessageEnd()
3431 rajveer 653
    if result.success is not None:
2832 chandransh 654
      return result.success
4541 mandeep.dh 655
    if result.wex is not None:
656
      raise result.wex
4501 mandeep.dh 657
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
2832 chandransh 658
 
8565 amar.kumar 659
  def getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId):
2821 chandransh 660
    """
5361 mandeep.dh 661
    Retrieves non-serialized inventory item from a given supplier
3431 rajveer 662
 
2821 chandransh 663
    Parameters:
5530 mandeep.dh 664
     - itemNumber
4501 mandeep.dh 665
     - itemId
5530 mandeep.dh 666
     - fulfilmentWarehouseId
8565 amar.kumar 667
     - billingWarehouseId
2821 chandransh 668
    """
8565 amar.kumar 669
    self.send_getNonSeralizedInventoryItem(itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId)
5361 mandeep.dh 670
    return self.recv_getNonSeralizedInventoryItem()
2821 chandransh 671
 
8565 amar.kumar 672
  def send_getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId):
5361 mandeep.dh 673
    self._oprot.writeMessageBegin('getNonSeralizedInventoryItem', TMessageType.CALL, self._seqid)
674
    args = getNonSeralizedInventoryItem_args()
5530 mandeep.dh 675
    args.itemNumber = itemNumber
4501 mandeep.dh 676
    args.itemId = itemId
5530 mandeep.dh 677
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 678
    args.billingWarehouseId = billingWarehouseId
2821 chandransh 679
    args.write(self._oprot)
680
    self._oprot.writeMessageEnd()
681
    self._oprot.trans.flush()
682
 
5361 mandeep.dh 683
  def recv_getNonSeralizedInventoryItem(self, ):
2821 chandransh 684
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
685
    if mtype == TMessageType.EXCEPTION:
686
      x = TApplicationException()
687
      x.read(self._iprot)
688
      self._iprot.readMessageEnd()
689
      raise x
5361 mandeep.dh 690
    result = getNonSeralizedInventoryItem_result()
2821 chandransh 691
    result.read(self._iprot)
692
    self._iprot.readMessageEnd()
3431 rajveer 693
    if result.success is not None:
2821 chandransh 694
      return result.success
5361 mandeep.dh 695
    if result.wex is not None:
696
      raise result.wex
697
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
2821 chandransh 698
 
7410 amar.kumar 699
  def scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
3383 chandransh 700
    """
4501 mandeep.dh 701
    Scan non-serialized items.
3431 rajveer 702
 
2821 chandransh 703
    Parameters:
5361 mandeep.dh 704
     - inventoryItem
2821 chandransh 705
     - type
4501 mandeep.dh 706
     - quantity
5361 mandeep.dh 707
     - billingWarehouseId
7410 amar.kumar 708
     - transferLotId
2821 chandransh 709
    """
7410 amar.kumar 710
    self.send_scan(inventoryItem, type, quantity, billingWarehouseId, transferLotId)
4501 mandeep.dh 711
    self.recv_scan()
2821 chandransh 712
 
7410 amar.kumar 713
  def send_scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
4501 mandeep.dh 714
    self._oprot.writeMessageBegin('scan', TMessageType.CALL, self._seqid)
715
    args = scan_args()
5361 mandeep.dh 716
    args.inventoryItem = inventoryItem
2821 chandransh 717
    args.type = type
4501 mandeep.dh 718
    args.quantity = quantity
5361 mandeep.dh 719
    args.billingWarehouseId = billingWarehouseId
7410 amar.kumar 720
    args.transferLotId = transferLotId
2821 chandransh 721
    args.write(self._oprot)
722
    self._oprot.writeMessageEnd()
723
    self._oprot.trans.flush()
724
 
4501 mandeep.dh 725
  def recv_scan(self, ):
2821 chandransh 726
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
727
    if mtype == TMessageType.EXCEPTION:
728
      x = TApplicationException()
729
      x.read(self._iprot)
730
      self._iprot.readMessageEnd()
731
      raise x
4501 mandeep.dh 732
    result = scan_result()
2821 chandransh 733
    result.read(self._iprot)
734
    self._iprot.readMessageEnd()
3431 rajveer 735
    if result.wex is not None:
2821 chandransh 736
      raise result.wex
737
    return
738
 
10489 amar.kumar 739
  def genericScan(self, inventoryItem, scan):
740
    """
741
    Scan non-serialized items.
742
 
743
    Parameters:
744
     - inventoryItem
745
     - scan
746
    """
747
    self.send_genericScan(inventoryItem, scan)
748
    self.recv_genericScan()
749
 
750
  def send_genericScan(self, inventoryItem, scan):
751
    self._oprot.writeMessageBegin('genericScan', TMessageType.CALL, self._seqid)
752
    args = genericScan_args()
753
    args.inventoryItem = inventoryItem
754
    args.scan = scan
755
    args.write(self._oprot)
756
    self._oprot.writeMessageEnd()
757
    self._oprot.trans.flush()
758
 
759
  def recv_genericScan(self, ):
760
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
761
    if mtype == TMessageType.EXCEPTION:
762
      x = TApplicationException()
763
      x.read(self._iprot)
764
      self._iprot.readMessageEnd()
765
      raise x
766
    result = genericScan_result()
767
    result.read(self._iprot)
768
    self._iprot.readMessageEnd()
769
    if result.wex is not None:
770
      raise result.wex
771
    return
772
 
5110 mandeep.dh 773
  def scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
2821 chandransh 774
    """
4501 mandeep.dh 775
    Scan serialized items linked with an order. Returns its price.
3431 rajveer 776
 
2821 chandransh 777
    Parameters:
4555 mandeep.dh 778
     - serialNumber
2821 chandransh 779
     - type
4501 mandeep.dh 780
     - orderId
5110 mandeep.dh 781
     - fulfilmentWarehouseId
782
     - quantity
783
     - billingWarehouseId
2821 chandransh 784
    """
5110 mandeep.dh 785
    self.send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId)
4501 mandeep.dh 786
    return self.recv_scanSerializedItemForOrder()
2821 chandransh 787
 
5110 mandeep.dh 788
  def send_scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
4501 mandeep.dh 789
    self._oprot.writeMessageBegin('scanSerializedItemForOrder', TMessageType.CALL, self._seqid)
790
    args = scanSerializedItemForOrder_args()
4555 mandeep.dh 791
    args.serialNumber = serialNumber
2821 chandransh 792
    args.type = type
4501 mandeep.dh 793
    args.orderId = orderId
5110 mandeep.dh 794
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
795
    args.quantity = quantity
796
    args.billingWarehouseId = billingWarehouseId
2821 chandransh 797
    args.write(self._oprot)
798
    self._oprot.writeMessageEnd()
799
    self._oprot.trans.flush()
800
 
4501 mandeep.dh 801
  def recv_scanSerializedItemForOrder(self, ):
2821 chandransh 802
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
803
    if mtype == TMessageType.EXCEPTION:
804
      x = TApplicationException()
805
      x.read(self._iprot)
806
      self._iprot.readMessageEnd()
807
      raise x
4501 mandeep.dh 808
    result = scanSerializedItemForOrder_result()
2821 chandransh 809
    result.read(self._iprot)
810
    self._iprot.readMessageEnd()
4501 mandeep.dh 811
    if result.success is not None:
812
      return result.success
3431 rajveer 813
    if result.wex is not None:
2821 chandransh 814
      raise result.wex
4501 mandeep.dh 815
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
816
 
5361 mandeep.dh 817
  def scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
4501 mandeep.dh 818
    """
819
    Scan non-serialized items linked with an order.
820
 
821
    Parameters:
5361 mandeep.dh 822
     - inventoryItem
4501 mandeep.dh 823
     - type
824
     - quantity
825
     - orderId
5110 mandeep.dh 826
     - fulfilmentWarehouseId
5361 mandeep.dh 827
     - billingWarehouseId
4501 mandeep.dh 828
    """
5361 mandeep.dh 829
    self.send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId)
830
    return self.recv_scanForOrder()
4501 mandeep.dh 831
 
5361 mandeep.dh 832
  def send_scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
4501 mandeep.dh 833
    self._oprot.writeMessageBegin('scanForOrder', TMessageType.CALL, self._seqid)
834
    args = scanForOrder_args()
5361 mandeep.dh 835
    args.inventoryItem = inventoryItem
4501 mandeep.dh 836
    args.type = type
837
    args.quantity = quantity
838
    args.orderId = orderId
5110 mandeep.dh 839
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
5361 mandeep.dh 840
    args.billingWarehouseId = billingWarehouseId
4501 mandeep.dh 841
    args.write(self._oprot)
842
    self._oprot.writeMessageEnd()
843
    self._oprot.trans.flush()
844
 
845
  def recv_scanForOrder(self, ):
846
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
847
    if mtype == TMessageType.EXCEPTION:
848
      x = TApplicationException()
849
      x.read(self._iprot)
850
      self._iprot.readMessageEnd()
851
      raise x
852
    result = scanForOrder_result()
853
    result.read(self._iprot)
854
    self._iprot.readMessageEnd()
5361 mandeep.dh 855
    if result.success is not None:
856
      return result.success
4501 mandeep.dh 857
    if result.wex is not None:
858
      raise result.wex
5361 mandeep.dh 859
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");
2821 chandransh 860
 
4501 mandeep.dh 861
  def createItemNumberMapping(self, itemNumber, itemId):
862
    """
863
    Created item number to item id mapping
2821 chandransh 864
 
4501 mandeep.dh 865
    Parameters:
866
     - itemNumber
867
     - itemId
868
    """
869
    self.send_createItemNumberMapping(itemNumber, itemId)
870
    self.recv_createItemNumberMapping()
871
 
872
  def send_createItemNumberMapping(self, itemNumber, itemId):
873
    self._oprot.writeMessageBegin('createItemNumberMapping', TMessageType.CALL, self._seqid)
874
    args = createItemNumberMapping_args()
875
    args.itemNumber = itemNumber
876
    args.itemId = itemId
877
    args.write(self._oprot)
878
    self._oprot.writeMessageEnd()
879
    self._oprot.trans.flush()
880
 
881
  def recv_createItemNumberMapping(self, ):
882
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
883
    if mtype == TMessageType.EXCEPTION:
884
      x = TApplicationException()
885
      x.read(self._iprot)
886
      self._iprot.readMessageEnd()
887
      raise x
888
    result = createItemNumberMapping_result()
889
    result.read(self._iprot)
890
    self._iprot.readMessageEnd()
891
    return
892
 
4620 amit.gupta 893
  def getItemNumbers(self, itemId):
894
    """
895
    Get itemNumber mappings for itemId
4501 mandeep.dh 896
 
4620 amit.gupta 897
    Parameters:
898
     - itemId
899
    """
900
    self.send_getItemNumbers(itemId)
901
    return self.recv_getItemNumbers()
902
 
903
  def send_getItemNumbers(self, itemId):
904
    self._oprot.writeMessageBegin('getItemNumbers', TMessageType.CALL, self._seqid)
905
    args = getItemNumbers_args()
906
    args.itemId = itemId
907
    args.write(self._oprot)
908
    self._oprot.writeMessageEnd()
909
    self._oprot.trans.flush()
910
 
911
  def recv_getItemNumbers(self, ):
912
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
913
    if mtype == TMessageType.EXCEPTION:
914
      x = TApplicationException()
915
      x.read(self._iprot)
916
      self._iprot.readMessageEnd()
917
      raise x
918
    result = getItemNumbers_result()
919
    result.read(self._iprot)
920
    self._iprot.readMessageEnd()
921
    if result.success is not None:
922
      return result.success
923
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
924
 
5110 mandeep.dh 925
  def getItemIds(self, itemNumber):
926
    """
927
    Gets item ids for a given item number
4620 amit.gupta 928
 
5110 mandeep.dh 929
    Parameters:
930
     - itemNumber
931
    """
932
    self.send_getItemIds(itemNumber)
933
    return self.recv_getItemIds()
934
 
935
  def send_getItemIds(self, itemNumber):
936
    self._oprot.writeMessageBegin('getItemIds', TMessageType.CALL, self._seqid)
937
    args = getItemIds_args()
938
    args.itemNumber = itemNumber
939
    args.write(self._oprot)
940
    self._oprot.writeMessageEnd()
941
    self._oprot.trans.flush()
942
 
943
  def recv_getItemIds(self, ):
944
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
945
    if mtype == TMessageType.EXCEPTION:
946
      x = TApplicationException()
947
      x.read(self._iprot)
948
      self._iprot.readMessageEnd()
949
      raise x
950
    result = getItemIds_result()
951
    result.read(self._iprot)
952
    self._iprot.readMessageEnd()
953
    if result.success is not None:
954
      return result.success
955
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
956
 
5185 mandeep.dh 957
  def getInventoryItemsFromLastScanType(self, lastScanType):
958
    """
959
    Retrieves all inventory items given a last scan type
5110 mandeep.dh 960
 
5185 mandeep.dh 961
    Parameters:
962
     - lastScanType
963
    """
964
    self.send_getInventoryItemsFromLastScanType(lastScanType)
965
    return self.recv_getInventoryItemsFromLastScanType()
966
 
967
  def send_getInventoryItemsFromLastScanType(self, lastScanType):
968
    self._oprot.writeMessageBegin('getInventoryItemsFromLastScanType', TMessageType.CALL, self._seqid)
969
    args = getInventoryItemsFromLastScanType_args()
970
    args.lastScanType = lastScanType
971
    args.write(self._oprot)
972
    self._oprot.writeMessageEnd()
973
    self._oprot.trans.flush()
974
 
975
  def recv_getInventoryItemsFromLastScanType(self, ):
976
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
977
    if mtype == TMessageType.EXCEPTION:
978
      x = TApplicationException()
979
      x.read(self._iprot)
980
      self._iprot.readMessageEnd()
981
      raise x
982
    result = getInventoryItemsFromLastScanType_result()
983
    result.read(self._iprot)
984
    self._iprot.readMessageEnd()
985
    if result.success is not None:
986
      return result.success
987
    if result.wex is not None:
988
      raise result.wex
989
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemsFromLastScanType failed: unknown result");
990
 
991
  def getInventoryItemFromId(self, inventoryItemId):
992
    """
993
    Retrieves inventory item given a inventoryItem id
994
 
995
    Parameters:
996
     - inventoryItemId
997
    """
998
    self.send_getInventoryItemFromId(inventoryItemId)
999
    return self.recv_getInventoryItemFromId()
1000
 
1001
  def send_getInventoryItemFromId(self, inventoryItemId):
1002
    self._oprot.writeMessageBegin('getInventoryItemFromId', TMessageType.CALL, self._seqid)
1003
    args = getInventoryItemFromId_args()
1004
    args.inventoryItemId = inventoryItemId
1005
    args.write(self._oprot)
1006
    self._oprot.writeMessageEnd()
1007
    self._oprot.trans.flush()
1008
 
1009
  def recv_getInventoryItemFromId(self, ):
1010
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1011
    if mtype == TMessageType.EXCEPTION:
1012
      x = TApplicationException()
1013
      x.read(self._iprot)
1014
      self._iprot.readMessageEnd()
1015
      raise x
1016
    result = getInventoryItemFromId_result()
1017
    result.read(self._iprot)
1018
    self._iprot.readMessageEnd()
1019
    if result.success is not None:
1020
      return result.success
1021
    if result.wex is not None:
1022
      raise result.wex
1023
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");
1024
 
5372 mandeep.dh 1025
  def getPurchaseScans(self, startDate, endDate):
1026
    """
1027
    Returns the purchase scans grouped by items for Purchase register reconciliation
5185 mandeep.dh 1028
 
5372 mandeep.dh 1029
    Parameters:
1030
     - startDate
1031
     - endDate
1032
    """
1033
    self.send_getPurchaseScans(startDate, endDate)
1034
    return self.recv_getPurchaseScans()
1035
 
1036
  def send_getPurchaseScans(self, startDate, endDate):
1037
    self._oprot.writeMessageBegin('getPurchaseScans', TMessageType.CALL, self._seqid)
1038
    args = getPurchaseScans_args()
1039
    args.startDate = startDate
1040
    args.endDate = endDate
1041
    args.write(self._oprot)
1042
    self._oprot.writeMessageEnd()
1043
    self._oprot.trans.flush()
1044
 
1045
  def recv_getPurchaseScans(self, ):
1046
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1047
    if mtype == TMessageType.EXCEPTION:
1048
      x = TApplicationException()
1049
      x.read(self._iprot)
1050
      self._iprot.readMessageEnd()
1051
      raise x
1052
    result = getPurchaseScans_result()
1053
    result.read(self._iprot)
1054
    self._iprot.readMessageEnd()
1055
    if result.success is not None:
1056
      return result.success
1057
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseScans failed: unknown result");
1058
 
7216 amar.kumar 1059
  def getPurchaseScansByGrnDate(self, startDate, endDate):
1060
    """
1061
    Returns the purchase scans between grn dates grouped by items for Purchase register reconciliation
1062
 
1063
    Parameters:
1064
     - startDate
1065
     - endDate
1066
    """
1067
    self.send_getPurchaseScansByGrnDate(startDate, endDate)
1068
    return self.recv_getPurchaseScansByGrnDate()
1069
 
1070
  def send_getPurchaseScansByGrnDate(self, startDate, endDate):
1071
    self._oprot.writeMessageBegin('getPurchaseScansByGrnDate', TMessageType.CALL, self._seqid)
1072
    args = getPurchaseScansByGrnDate_args()
1073
    args.startDate = startDate
1074
    args.endDate = endDate
1075
    args.write(self._oprot)
1076
    self._oprot.writeMessageEnd()
1077
    self._oprot.trans.flush()
1078
 
1079
  def recv_getPurchaseScansByGrnDate(self, ):
1080
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1081
    if mtype == TMessageType.EXCEPTION:
1082
      x = TApplicationException()
1083
      x.read(self._iprot)
1084
      self._iprot.readMessageEnd()
1085
      raise x
1086
    result = getPurchaseScansByGrnDate_result()
1087
    result.read(self._iprot)
1088
    self._iprot.readMessageEnd()
1089
    if result.success is not None:
1090
      return result.success
1091
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseScansByGrnDate failed: unknown result");
1092
 
10407 amar.kumar 1093
  def getEmptyGrnsByDate(self, startDate, endDate):
1094
    """
1095
    Returns the empty grn-ids between grn dates
1096
 
1097
    Parameters:
1098
     - startDate
1099
     - endDate
1100
    """
1101
    self.send_getEmptyGrnsByDate(startDate, endDate)
1102
    return self.recv_getEmptyGrnsByDate()
1103
 
1104
  def send_getEmptyGrnsByDate(self, startDate, endDate):
1105
    self._oprot.writeMessageBegin('getEmptyGrnsByDate', TMessageType.CALL, self._seqid)
1106
    args = getEmptyGrnsByDate_args()
1107
    args.startDate = startDate
1108
    args.endDate = endDate
1109
    args.write(self._oprot)
1110
    self._oprot.writeMessageEnd()
1111
    self._oprot.trans.flush()
1112
 
1113
  def recv_getEmptyGrnsByDate(self, ):
1114
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1115
    if mtype == TMessageType.EXCEPTION:
1116
      x = TApplicationException()
1117
      x.read(self._iprot)
1118
      self._iprot.readMessageEnd()
1119
      raise x
1120
    result = getEmptyGrnsByDate_result()
1121
    result.read(self._iprot)
1122
    self._iprot.readMessageEnd()
1123
    if result.success is not None:
1124
      return result.success
1125
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmptyGrnsByDate failed: unknown result");
1126
 
5496 mandeep.dh 1127
  def fetchScansPerInvoiceNumber(self, date):
1128
    """
1129
    Returns the invoices and the count of scans against on a given day.
5372 mandeep.dh 1130
 
5496 mandeep.dh 1131
    Parameters:
1132
     - date
1133
    """
1134
    self.send_fetchScansPerInvoiceNumber(date)
1135
    return self.recv_fetchScansPerInvoiceNumber()
1136
 
1137
  def send_fetchScansPerInvoiceNumber(self, date):
1138
    self._oprot.writeMessageBegin('fetchScansPerInvoiceNumber', TMessageType.CALL, self._seqid)
1139
    args = fetchScansPerInvoiceNumber_args()
1140
    args.date = date
1141
    args.write(self._oprot)
1142
    self._oprot.writeMessageEnd()
1143
    self._oprot.trans.flush()
1144
 
1145
  def recv_fetchScansPerInvoiceNumber(self, ):
1146
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1147
    if mtype == TMessageType.EXCEPTION:
1148
      x = TApplicationException()
1149
      x.read(self._iprot)
1150
      self._iprot.readMessageEnd()
1151
      raise x
1152
    result = fetchScansPerInvoiceNumber_result()
1153
    result.read(self._iprot)
1154
    self._iprot.readMessageEnd()
1155
    if result.success is not None:
1156
      return result.success
1157
    raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchScansPerInvoiceNumber failed: unknown result");
1158
 
5620 mandeep.dh 1159
  def getInventoryItemFromOrder(self, orderId):
1160
    """
1161
    Returns inventory item for a given order
5496 mandeep.dh 1162
 
5620 mandeep.dh 1163
    Parameters:
1164
     - orderId
1165
    """
1166
    self.send_getInventoryItemFromOrder(orderId)
1167
    return self.recv_getInventoryItemFromOrder()
1168
 
1169
  def send_getInventoryItemFromOrder(self, orderId):
1170
    self._oprot.writeMessageBegin('getInventoryItemFromOrder', TMessageType.CALL, self._seqid)
1171
    args = getInventoryItemFromOrder_args()
1172
    args.orderId = orderId
1173
    args.write(self._oprot)
1174
    self._oprot.writeMessageEnd()
1175
    self._oprot.trans.flush()
1176
 
1177
  def recv_getInventoryItemFromOrder(self, ):
1178
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1179
    if mtype == TMessageType.EXCEPTION:
1180
      x = TApplicationException()
1181
      x.read(self._iprot)
1182
      self._iprot.readMessageEnd()
1183
      raise x
1184
    result = getInventoryItemFromOrder_result()
1185
    result.read(self._iprot)
1186
    self._iprot.readMessageEnd()
1187
    if result.success is not None:
1188
      return result.success
1189
    if result.we is not None:
1190
      raise result.we
1191
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemFromOrder failed: unknown result");
1192
 
5711 mandeep.dh 1193
  def getInventoryAge(self, ):
1194
    """
1195
    Fetches the stock inventory age week-wise
1196
    """
1197
    self.send_getInventoryAge()
1198
    return self.recv_getInventoryAge()
5620 mandeep.dh 1199
 
5711 mandeep.dh 1200
  def send_getInventoryAge(self, ):
1201
    self._oprot.writeMessageBegin('getInventoryAge', TMessageType.CALL, self._seqid)
1202
    args = getInventoryAge_args()
1203
    args.write(self._oprot)
1204
    self._oprot.writeMessageEnd()
1205
    self._oprot.trans.flush()
1206
 
1207
  def recv_getInventoryAge(self, ):
1208
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1209
    if mtype == TMessageType.EXCEPTION:
1210
      x = TApplicationException()
1211
      x.read(self._iprot)
1212
      self._iprot.readMessageEnd()
1213
      raise x
1214
    result = getInventoryAge_result()
1215
    result.read(self._iprot)
1216
    self._iprot.readMessageEnd()
1217
    if result.success is not None:
1218
      return result.success
1219
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryAge failed: unknown result");
1220
 
6361 rajveer 1221
  def getInventoryScansForItem(self, itemId, fromDate, toDate):
1222
    """
1223
    Fetches the scanRecords for a given item for a given time interval
5711 mandeep.dh 1224
 
6361 rajveer 1225
    Parameters:
1226
     - itemId
1227
     - fromDate
1228
     - toDate
1229
    """
1230
    self.send_getInventoryScansForItem(itemId, fromDate, toDate)
1231
    return self.recv_getInventoryScansForItem()
1232
 
1233
  def send_getInventoryScansForItem(self, itemId, fromDate, toDate):
1234
    self._oprot.writeMessageBegin('getInventoryScansForItem', TMessageType.CALL, self._seqid)
1235
    args = getInventoryScansForItem_args()
1236
    args.itemId = itemId
1237
    args.fromDate = fromDate
1238
    args.toDate = toDate
1239
    args.write(self._oprot)
1240
    self._oprot.writeMessageEnd()
1241
    self._oprot.trans.flush()
1242
 
1243
  def recv_getInventoryScansForItem(self, ):
1244
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1245
    if mtype == TMessageType.EXCEPTION:
1246
      x = TApplicationException()
1247
      x.read(self._iprot)
1248
      self._iprot.readMessageEnd()
1249
      raise x
1250
    result = getInventoryScansForItem_result()
1251
    result.read(self._iprot)
1252
    self._iprot.readMessageEnd()
1253
    if result.success is not None:
1254
      return result.success
1255
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryScansForItem failed: unknown result");
1256
 
1257
  def getScanRecordsForSerialNumber(self, serialNumber):
1258
    """
1259
    Fetches the scanRecords for a given serialNumber for a given time interval
1260
 
1261
    Parameters:
1262
     - serialNumber
1263
    """
1264
    self.send_getScanRecordsForSerialNumber(serialNumber)
1265
    return self.recv_getScanRecordsForSerialNumber()
1266
 
1267
  def send_getScanRecordsForSerialNumber(self, serialNumber):
1268
    self._oprot.writeMessageBegin('getScanRecordsForSerialNumber', TMessageType.CALL, self._seqid)
1269
    args = getScanRecordsForSerialNumber_args()
1270
    args.serialNumber = serialNumber
1271
    args.write(self._oprot)
1272
    self._oprot.writeMessageEnd()
1273
    self._oprot.trans.flush()
1274
 
1275
  def recv_getScanRecordsForSerialNumber(self, ):
1276
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1277
    if mtype == TMessageType.EXCEPTION:
1278
      x = TApplicationException()
1279
      x.read(self._iprot)
1280
      self._iprot.readMessageEnd()
1281
      raise x
1282
    result = getScanRecordsForSerialNumber_result()
1283
    result.read(self._iprot)
1284
    self._iprot.readMessageEnd()
1285
    if result.success is not None:
1286
      return result.success
1287
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScanRecordsForSerialNumber failed: unknown result");
1288
 
7718 amar.kumar 1289
  def scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
6467 amar.kumar 1290
    """
6630 amar.kumar 1291
    Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
6361 rajveer 1292
 
6467 amar.kumar 1293
    Parameters:
1294
     - saleReturnItems
1295
     - vendorId
7718 amar.kumar 1296
     - billingWarehouseId
6467 amar.kumar 1297
    """
7718 amar.kumar 1298
    self.send_scanForPurchaseReturn(saleReturnItems, vendorId, billingWarehouseId)
10864 manish.sha 1299
    return self.recv_scanForPurchaseReturn()
6467 amar.kumar 1300
 
7718 amar.kumar 1301
  def send_scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
6467 amar.kumar 1302
    self._oprot.writeMessageBegin('scanForPurchaseReturn', TMessageType.CALL, self._seqid)
1303
    args = scanForPurchaseReturn_args()
1304
    args.saleReturnItems = saleReturnItems
1305
    args.vendorId = vendorId
7718 amar.kumar 1306
    args.billingWarehouseId = billingWarehouseId
6467 amar.kumar 1307
    args.write(self._oprot)
1308
    self._oprot.writeMessageEnd()
1309
    self._oprot.trans.flush()
1310
 
1311
  def recv_scanForPurchaseReturn(self, ):
1312
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1313
    if mtype == TMessageType.EXCEPTION:
1314
      x = TApplicationException()
1315
      x.read(self._iprot)
1316
      self._iprot.readMessageEnd()
1317
      raise x
1318
    result = scanForPurchaseReturn_result()
1319
    result.read(self._iprot)
1320
    self._iprot.readMessageEnd()
10864 manish.sha 1321
    if result.success is not None:
1322
      return result.success
6467 amar.kumar 1323
    if result.ex is not None:
1324
      raise result.ex
10864 manish.sha 1325
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForPurchaseReturn failed: unknown result");
6467 amar.kumar 1326
 
7718 amar.kumar 1327
  def scanForLostItem(self, lostItems, vendorId, billingWarehouseId):
6630 amar.kumar 1328
    """
1329
    Inserts scans for lost Items and updates lastScanType in InventoryItems
6467 amar.kumar 1330
 
6630 amar.kumar 1331
    Parameters:
1332
     - lostItems
1333
     - vendorId
7718 amar.kumar 1334
     - billingWarehouseId
6630 amar.kumar 1335
    """
7718 amar.kumar 1336
    self.send_scanForLostItem(lostItems, vendorId, billingWarehouseId)
6630 amar.kumar 1337
    self.recv_scanForLostItem()
1338
 
7718 amar.kumar 1339
  def send_scanForLostItem(self, lostItems, vendorId, billingWarehouseId):
6630 amar.kumar 1340
    self._oprot.writeMessageBegin('scanForLostItem', TMessageType.CALL, self._seqid)
1341
    args = scanForLostItem_args()
1342
    args.lostItems = lostItems
1343
    args.vendorId = vendorId
7718 amar.kumar 1344
    args.billingWarehouseId = billingWarehouseId
6630 amar.kumar 1345
    args.write(self._oprot)
1346
    self._oprot.writeMessageEnd()
1347
    self._oprot.trans.flush()
1348
 
1349
  def recv_scanForLostItem(self, ):
1350
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1351
    if mtype == TMessageType.EXCEPTION:
1352
      x = TApplicationException()
1353
      x.read(self._iprot)
1354
      self._iprot.readMessageEnd()
1355
      raise x
1356
    result = scanForLostItem_result()
1357
    result.read(self._iprot)
1358
    self._iprot.readMessageEnd()
1359
    if result.ex is not None:
1360
      raise result.ex
1361
    return
1362
 
7715 vikram.rag 1363
  def getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1364
    """
1365
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
7715 vikram.rag 1366
 
1367
    Parameters:
1368
     - physicalWarehouseId
6630 amar.kumar 1369
    """
7715 vikram.rag 1370
    self.send_getCurrentSerializedInventoryByScans(physicalWarehouseId)
6630 amar.kumar 1371
    return self.recv_getCurrentSerializedInventoryByScans()
1372
 
7715 vikram.rag 1373
  def send_getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1374
    self._oprot.writeMessageBegin('getCurrentSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1375
    args = getCurrentSerializedInventoryByScans_args()
7715 vikram.rag 1376
    args.physicalWarehouseId = physicalWarehouseId
6630 amar.kumar 1377
    args.write(self._oprot)
1378
    self._oprot.writeMessageEnd()
1379
    self._oprot.trans.flush()
1380
 
1381
  def recv_getCurrentSerializedInventoryByScans(self, ):
1382
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1383
    if mtype == TMessageType.EXCEPTION:
1384
      x = TApplicationException()
1385
      x.read(self._iprot)
1386
      self._iprot.readMessageEnd()
1387
      raise x
1388
    result = getCurrentSerializedInventoryByScans_result()
1389
    result.read(self._iprot)
1390
    self._iprot.readMessageEnd()
1391
    if result.success is not None:
1392
      return result.success
1393
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");
1394
 
7715 vikram.rag 1395
  def getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1396
    """
1397
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
7715 vikram.rag 1398
 
1399
    Parameters:
1400
     - physicalWarehouseId
6630 amar.kumar 1401
    """
7715 vikram.rag 1402
    self.send_getCurrentNonSerializedInventoryByScans(physicalWarehouseId)
6630 amar.kumar 1403
    return self.recv_getCurrentNonSerializedInventoryByScans()
1404
 
7715 vikram.rag 1405
  def send_getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1406
    self._oprot.writeMessageBegin('getCurrentNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1407
    args = getCurrentNonSerializedInventoryByScans_args()
7715 vikram.rag 1408
    args.physicalWarehouseId = physicalWarehouseId
6630 amar.kumar 1409
    args.write(self._oprot)
1410
    self._oprot.writeMessageEnd()
1411
    self._oprot.trans.flush()
1412
 
1413
  def recv_getCurrentNonSerializedInventoryByScans(self, ):
1414
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1415
    if mtype == TMessageType.EXCEPTION:
1416
      x = TApplicationException()
1417
      x.read(self._iprot)
1418
      self._iprot.readMessageEnd()
1419
      raise x
1420
    result = getCurrentNonSerializedInventoryByScans_result()
1421
    result.read(self._iprot)
1422
    self._iprot.readMessageEnd()
1423
    if result.success is not None:
1424
      return result.success
1425
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");
1426
 
6762 amar.kumar 1427
  def getHistoricSerializedInventoryByScans(self, date):
1428
    """
1429
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
6630 amar.kumar 1430
 
6762 amar.kumar 1431
    Parameters:
1432
     - date
1433
    """
1434
    self.send_getHistoricSerializedInventoryByScans(date)
1435
    return self.recv_getHistoricSerializedInventoryByScans()
1436
 
1437
  def send_getHistoricSerializedInventoryByScans(self, date):
1438
    self._oprot.writeMessageBegin('getHistoricSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1439
    args = getHistoricSerializedInventoryByScans_args()
1440
    args.date = date
1441
    args.write(self._oprot)
1442
    self._oprot.writeMessageEnd()
1443
    self._oprot.trans.flush()
1444
 
1445
  def recv_getHistoricSerializedInventoryByScans(self, ):
1446
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1447
    if mtype == TMessageType.EXCEPTION:
1448
      x = TApplicationException()
1449
      x.read(self._iprot)
1450
      self._iprot.readMessageEnd()
1451
      raise x
1452
    result = getHistoricSerializedInventoryByScans_result()
1453
    result.read(self._iprot)
1454
    self._iprot.readMessageEnd()
1455
    if result.success is not None:
1456
      return result.success
1457
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricSerializedInventoryByScans failed: unknown result");
1458
 
1459
  def getHistoricNonSerializedInventoryByScans(self, date):
1460
    """
1461
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
1462
 
1463
    Parameters:
1464
     - date
1465
    """
1466
    self.send_getHistoricNonSerializedInventoryByScans(date)
1467
    return self.recv_getHistoricNonSerializedInventoryByScans()
1468
 
1469
  def send_getHistoricNonSerializedInventoryByScans(self, date):
1470
    self._oprot.writeMessageBegin('getHistoricNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1471
    args = getHistoricNonSerializedInventoryByScans_args()
1472
    args.date = date
1473
    args.write(self._oprot)
1474
    self._oprot.writeMessageEnd()
1475
    self._oprot.trans.flush()
1476
 
1477
  def recv_getHistoricNonSerializedInventoryByScans(self, ):
1478
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1479
    if mtype == TMessageType.EXCEPTION:
1480
      x = TApplicationException()
1481
      x.read(self._iprot)
1482
      self._iprot.readMessageEnd()
1483
      raise x
1484
    result = getHistoricNonSerializedInventoryByScans_result()
1485
    result.read(self._iprot)
1486
    self._iprot.readMessageEnd()
1487
    if result.success is not None:
1488
      return result.success
1489
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricNonSerializedInventoryByScans failed: unknown result");
1490
 
10407 amar.kumar 1491
  def getOurHistoricSerializedInventoryByScans(self, date):
1492
    """
1493
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
1494
 
1495
    Parameters:
1496
     - date
1497
    """
1498
    self.send_getOurHistoricSerializedInventoryByScans(date)
1499
    return self.recv_getOurHistoricSerializedInventoryByScans()
1500
 
1501
  def send_getOurHistoricSerializedInventoryByScans(self, date):
1502
    self._oprot.writeMessageBegin('getOurHistoricSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1503
    args = getOurHistoricSerializedInventoryByScans_args()
1504
    args.date = date
1505
    args.write(self._oprot)
1506
    self._oprot.writeMessageEnd()
1507
    self._oprot.trans.flush()
1508
 
1509
  def recv_getOurHistoricSerializedInventoryByScans(self, ):
1510
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1511
    if mtype == TMessageType.EXCEPTION:
1512
      x = TApplicationException()
1513
      x.read(self._iprot)
1514
      self._iprot.readMessageEnd()
1515
      raise x
1516
    result = getOurHistoricSerializedInventoryByScans_result()
1517
    result.read(self._iprot)
1518
    self._iprot.readMessageEnd()
1519
    if result.success is not None:
1520
      return result.success
1521
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurHistoricSerializedInventoryByScans failed: unknown result");
1522
 
1523
  def getOurHistoricNonSerializedInventoryByScans(self, date):
1524
    """
1525
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
1526
 
1527
    Parameters:
1528
     - date
1529
    """
1530
    self.send_getOurHistoricNonSerializedInventoryByScans(date)
1531
    return self.recv_getOurHistoricNonSerializedInventoryByScans()
1532
 
1533
  def send_getOurHistoricNonSerializedInventoryByScans(self, date):
1534
    self._oprot.writeMessageBegin('getOurHistoricNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1535
    args = getOurHistoricNonSerializedInventoryByScans_args()
1536
    args.date = date
1537
    args.write(self._oprot)
1538
    self._oprot.writeMessageEnd()
1539
    self._oprot.trans.flush()
1540
 
1541
  def recv_getOurHistoricNonSerializedInventoryByScans(self, ):
1542
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1543
    if mtype == TMessageType.EXCEPTION:
1544
      x = TApplicationException()
1545
      x.read(self._iprot)
1546
      self._iprot.readMessageEnd()
1547
      raise x
1548
    result = getOurHistoricNonSerializedInventoryByScans_result()
1549
    result.read(self._iprot)
1550
    self._iprot.readMessageEnd()
1551
    if result.success is not None:
1552
      return result.success
1553
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurHistoricNonSerializedInventoryByScans failed: unknown result");
1554
 
7672 rajveer 1555
  def scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):
6762 amar.kumar 1556
    """
6880 amar.kumar 1557
    Insert Purchase/Sale Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 1558
 
1559
    Parameters:
1560
     - itemId
1561
     - serialNumber
1562
     - itemNumber
1563
     - invoiceNumber
1564
     - warehouseId
1565
     - unitPrice
7672 rajveer 1566
     - nlc
6762 amar.kumar 1567
     - orderId
1568
    """
7672 rajveer 1569
    self.send_scanForOursExternalSale(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId)
6762 amar.kumar 1570
    return self.recv_scanForOursExternalSale()
1571
 
7672 rajveer 1572
  def send_scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):
6762 amar.kumar 1573
    self._oprot.writeMessageBegin('scanForOursExternalSale', TMessageType.CALL, self._seqid)
1574
    args = scanForOursExternalSale_args()
1575
    args.itemId = itemId
1576
    args.serialNumber = serialNumber
1577
    args.itemNumber = itemNumber
1578
    args.invoiceNumber = invoiceNumber
1579
    args.warehouseId = warehouseId
1580
    args.unitPrice = unitPrice
7672 rajveer 1581
    args.nlc = nlc
6762 amar.kumar 1582
    args.orderId = orderId
1583
    args.write(self._oprot)
1584
    self._oprot.writeMessageEnd()
1585
    self._oprot.trans.flush()
1586
 
1587
  def recv_scanForOursExternalSale(self, ):
1588
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1589
    if mtype == TMessageType.EXCEPTION:
1590
      x = TApplicationException()
1591
      x.read(self._iprot)
1592
      self._iprot.readMessageEnd()
1593
      raise x
1594
    result = scanForOursExternalSale_result()
1595
    result.read(self._iprot)
1596
    self._iprot.readMessageEnd()
1597
    if result.success is not None:
1598
      return result.success
1599
    if result.ex is not None:
1600
      raise result.ex
1601
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOursExternalSale failed: unknown result");
1602
 
1603
  def scanForOursExternalSaleReturn(self, orderId, unitPrice):
1604
    """
6880 amar.kumar 1605
    Insert Purchase_Ret/Sale_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 1606
 
1607
    Parameters:
1608
     - orderId
1609
     - unitPrice
1610
    """
1611
    self.send_scanForOursExternalSaleReturn(orderId, unitPrice)
1612
    self.recv_scanForOursExternalSaleReturn()
1613
 
1614
  def send_scanForOursExternalSaleReturn(self, orderId, unitPrice):
1615
    self._oprot.writeMessageBegin('scanForOursExternalSaleReturn', TMessageType.CALL, self._seqid)
1616
    args = scanForOursExternalSaleReturn_args()
1617
    args.orderId = orderId
1618
    args.unitPrice = unitPrice
1619
    args.write(self._oprot)
1620
    self._oprot.writeMessageEnd()
1621
    self._oprot.trans.flush()
1622
 
1623
  def recv_scanForOursExternalSaleReturn(self, ):
1624
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1625
    if mtype == TMessageType.EXCEPTION:
1626
      x = TApplicationException()
1627
      x.read(self._iprot)
1628
      self._iprot.readMessageEnd()
1629
      raise x
1630
    result = scanForOursExternalSaleReturn_result()
1631
    result.read(self._iprot)
1632
    self._iprot.readMessageEnd()
7410 amar.kumar 1633
    if result.ex is not None:
1634
      raise result.ex
6762 amar.kumar 1635
    return
1636
 
6880 amar.kumar 1637
  def getMovementNonSerializedInventoryByScans(self, startDate, endDate):
1638
    """
10407 amar.kumar 1639
    This returns movement for each non serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)
1640
 
6880 amar.kumar 1641
    Parameters:
1642
     - startDate
1643
     - endDate
1644
    """
1645
    self.send_getMovementNonSerializedInventoryByScans(startDate, endDate)
1646
    return self.recv_getMovementNonSerializedInventoryByScans()
6762 amar.kumar 1647
 
6880 amar.kumar 1648
  def send_getMovementNonSerializedInventoryByScans(self, startDate, endDate):
1649
    self._oprot.writeMessageBegin('getMovementNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1650
    args = getMovementNonSerializedInventoryByScans_args()
1651
    args.startDate = startDate
1652
    args.endDate = endDate
1653
    args.write(self._oprot)
1654
    self._oprot.writeMessageEnd()
1655
    self._oprot.trans.flush()
1656
 
1657
  def recv_getMovementNonSerializedInventoryByScans(self, ):
1658
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1659
    if mtype == TMessageType.EXCEPTION:
1660
      x = TApplicationException()
1661
      x.read(self._iprot)
1662
      self._iprot.readMessageEnd()
1663
      raise x
1664
    result = getMovementNonSerializedInventoryByScans_result()
1665
    result.read(self._iprot)
1666
    self._iprot.readMessageEnd()
1667
    if result.success is not None:
1668
      return result.success
1669
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMovementNonSerializedInventoryByScans failed: unknown result");
1670
 
1671
  def getMovementSerializedInventoryByScans(self, startDate, endDate):
1672
    """
10407 amar.kumar 1673
    This returns movement for each serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)
1674
 
6880 amar.kumar 1675
    Parameters:
1676
     - startDate
1677
     - endDate
1678
    """
1679
    self.send_getMovementSerializedInventoryByScans(startDate, endDate)
1680
    return self.recv_getMovementSerializedInventoryByScans()
1681
 
1682
  def send_getMovementSerializedInventoryByScans(self, startDate, endDate):
1683
    self._oprot.writeMessageBegin('getMovementSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1684
    args = getMovementSerializedInventoryByScans_args()
1685
    args.startDate = startDate
1686
    args.endDate = endDate
1687
    args.write(self._oprot)
1688
    self._oprot.writeMessageEnd()
1689
    self._oprot.trans.flush()
1690
 
1691
  def recv_getMovementSerializedInventoryByScans(self, ):
1692
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1693
    if mtype == TMessageType.EXCEPTION:
1694
      x = TApplicationException()
1695
      x.read(self._iprot)
1696
      self._iprot.readMessageEnd()
1697
      raise x
1698
    result = getMovementSerializedInventoryByScans_result()
1699
    result.read(self._iprot)
1700
    self._iprot.readMessageEnd()
1701
    if result.success is not None:
1702
      return result.success
1703
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMovementSerializedInventoryByScans failed: unknown result");
1704
 
7216 amar.kumar 1705
  def getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):
1706
    """
10407 amar.kumar 1707
    This returns movement for each serialized item in the specified window.(Doesn't include Amazon w/h)
1708
 
7216 amar.kumar 1709
    Parameters:
1710
     - startDate
1711
     - endDate
1712
    """
1713
    self.send_getCompleteMovementSerializedInventoryByScans(startDate, endDate)
1714
    return self.recv_getCompleteMovementSerializedInventoryByScans()
1715
 
1716
  def send_getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):
1717
    self._oprot.writeMessageBegin('getCompleteMovementSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1718
    args = getCompleteMovementSerializedInventoryByScans_args()
1719
    args.startDate = startDate
1720
    args.endDate = endDate
1721
    args.write(self._oprot)
1722
    self._oprot.writeMessageEnd()
1723
    self._oprot.trans.flush()
1724
 
1725
  def recv_getCompleteMovementSerializedInventoryByScans(self, ):
1726
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1727
    if mtype == TMessageType.EXCEPTION:
1728
      x = TApplicationException()
1729
      x.read(self._iprot)
1730
      self._iprot.readMessageEnd()
1731
      raise x
1732
    result = getCompleteMovementSerializedInventoryByScans_result()
1733
    result.read(self._iprot)
1734
    self._iprot.readMessageEnd()
1735
    if result.success is not None:
1736
      return result.success
1737
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementSerializedInventoryByScans failed: unknown result");
1738
 
1739
  def getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):
1740
    """
10407 amar.kumar 1741
    This returns movement for each non serialized item in the specified window.(Doesn't include Amazon w/h)
1742
 
7216 amar.kumar 1743
    Parameters:
1744
     - startDate
1745
     - endDate
1746
    """
1747
    self.send_getCompleteMovementNonSerializedInventoryByScans(startDate, endDate)
1748
    return self.recv_getCompleteMovementNonSerializedInventoryByScans()
1749
 
1750
  def send_getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):
1751
    self._oprot.writeMessageBegin('getCompleteMovementNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1752
    args = getCompleteMovementNonSerializedInventoryByScans_args()
1753
    args.startDate = startDate
1754
    args.endDate = endDate
1755
    args.write(self._oprot)
1756
    self._oprot.writeMessageEnd()
1757
    self._oprot.trans.flush()
1758
 
1759
  def recv_getCompleteMovementNonSerializedInventoryByScans(self, ):
1760
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1761
    if mtype == TMessageType.EXCEPTION:
1762
      x = TApplicationException()
1763
      x.read(self._iprot)
1764
      self._iprot.readMessageEnd()
1765
      raise x
1766
    result = getCompleteMovementNonSerializedInventoryByScans_result()
1767
    result.read(self._iprot)
1768
    self._iprot.readMessageEnd()
1769
    if result.success is not None:
1770
      return result.success
1771
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementNonSerializedInventoryByScans failed: unknown result");
1772
 
7190 amar.kumar 1773
  def scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):
1774
    """
1775
    Parameters:
1776
     - orderId
1777
     - freebieItemId
1778
     - freebieWarehouseId
1779
     - scanType
1780
    """
1781
    self.send_scanfreebie(orderId, freebieItemId, freebieWarehouseId, scanType)
1782
    return self.recv_scanfreebie()
6880 amar.kumar 1783
 
7190 amar.kumar 1784
  def send_scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):
1785
    self._oprot.writeMessageBegin('scanfreebie', TMessageType.CALL, self._seqid)
1786
    args = scanfreebie_args()
1787
    args.orderId = orderId
1788
    args.freebieItemId = freebieItemId
1789
    args.freebieWarehouseId = freebieWarehouseId
1790
    args.scanType = scanType
1791
    args.write(self._oprot)
1792
    self._oprot.writeMessageEnd()
1793
    self._oprot.trans.flush()
1794
 
1795
  def recv_scanfreebie(self, ):
1796
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1797
    if mtype == TMessageType.EXCEPTION:
1798
      x = TApplicationException()
1799
      x.read(self._iprot)
1800
      self._iprot.readMessageEnd()
1801
      raise x
1802
    result = scanfreebie_result()
1803
    result.read(self._iprot)
1804
    self._iprot.readMessageEnd()
1805
    if result.success is not None:
1806
      return result.success
1807
    if result.wex is not None:
1808
      raise result.wex
1809
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanfreebie failed: unknown result");
1810
 
7199 amar.kumar 1811
  def reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):
1812
    """
1813
    Parameters:
1814
     - oldOrderId
1815
     - newOrderId
1816
     - freebieItemId
1817
     - scanType
1818
    """
1819
    self.send_reshipfreebie(oldOrderId, newOrderId, freebieItemId, scanType)
1820
    self.recv_reshipfreebie()
7190 amar.kumar 1821
 
7199 amar.kumar 1822
  def send_reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):
1823
    self._oprot.writeMessageBegin('reshipfreebie', TMessageType.CALL, self._seqid)
1824
    args = reshipfreebie_args()
1825
    args.oldOrderId = oldOrderId
1826
    args.newOrderId = newOrderId
1827
    args.freebieItemId = freebieItemId
1828
    args.scanType = scanType
1829
    args.write(self._oprot)
1830
    self._oprot.writeMessageEnd()
1831
    self._oprot.trans.flush()
1832
 
1833
  def recv_reshipfreebie(self, ):
1834
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1835
    if mtype == TMessageType.EXCEPTION:
1836
      x = TApplicationException()
1837
      x.read(self._iprot)
1838
      self._iprot.readMessageEnd()
1839
      raise x
1840
    result = reshipfreebie_result()
1841
    result.read(self._iprot)
1842
    self._iprot.readMessageEnd()
1843
    if result.wex is not None:
1844
      raise result.wex
1845
    return
1846
 
7410 amar.kumar 1847
  def isItemTransferAllowed(self, warehouseId, transferWarehouseId):
1848
    """
1849
    Parameters:
1850
     - warehouseId
1851
     - transferWarehouseId
1852
    """
1853
    self.send_isItemTransferAllowed(warehouseId, transferWarehouseId)
1854
    return self.recv_isItemTransferAllowed()
7199 amar.kumar 1855
 
7410 amar.kumar 1856
  def send_isItemTransferAllowed(self, warehouseId, transferWarehouseId):
1857
    self._oprot.writeMessageBegin('isItemTransferAllowed', TMessageType.CALL, self._seqid)
1858
    args = isItemTransferAllowed_args()
1859
    args.warehouseId = warehouseId
1860
    args.transferWarehouseId = transferWarehouseId
1861
    args.write(self._oprot)
1862
    self._oprot.writeMessageEnd()
1863
    self._oprot.trans.flush()
1864
 
1865
  def recv_isItemTransferAllowed(self, ):
1866
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1867
    if mtype == TMessageType.EXCEPTION:
1868
      x = TApplicationException()
1869
      x.read(self._iprot)
1870
      self._iprot.readMessageEnd()
1871
      raise x
1872
    result = isItemTransferAllowed_result()
1873
    result.read(self._iprot)
1874
    self._iprot.readMessageEnd()
1875
    if result.success is not None:
1876
      return result.success
1877
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isItemTransferAllowed failed: unknown result");
1878
 
1879
  def createTransferLot(self, originWarehouseId, destWarehouseId):
1880
    """
1881
    Parameters:
1882
     - originWarehouseId
1883
     - destWarehouseId
1884
    """
1885
    self.send_createTransferLot(originWarehouseId, destWarehouseId)
1886
    return self.recv_createTransferLot()
1887
 
1888
  def send_createTransferLot(self, originWarehouseId, destWarehouseId):
1889
    self._oprot.writeMessageBegin('createTransferLot', TMessageType.CALL, self._seqid)
1890
    args = createTransferLot_args()
1891
    args.originWarehouseId = originWarehouseId
1892
    args.destWarehouseId = destWarehouseId
1893
    args.write(self._oprot)
1894
    self._oprot.writeMessageEnd()
1895
    self._oprot.trans.flush()
1896
 
1897
  def recv_createTransferLot(self, ):
1898
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1899
    if mtype == TMessageType.EXCEPTION:
1900
      x = TApplicationException()
1901
      x.read(self._iprot)
1902
      self._iprot.readMessageEnd()
1903
      raise x
1904
    result = createTransferLot_result()
1905
    result.read(self._iprot)
1906
    self._iprot.readMessageEnd()
1907
    if result.success is not None:
1908
      return result.success
1909
    if result.wex is not None:
1910
      raise result.wex
1911
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createTransferLot failed: unknown result");
1912
 
1913
  def getTransferLot(self, transferLotId):
1914
    """
1915
    Parameters:
1916
     - transferLotId
1917
    """
1918
    self.send_getTransferLot(transferLotId)
1919
    return self.recv_getTransferLot()
1920
 
1921
  def send_getTransferLot(self, transferLotId):
1922
    self._oprot.writeMessageBegin('getTransferLot', TMessageType.CALL, self._seqid)
1923
    args = getTransferLot_args()
1924
    args.transferLotId = transferLotId
1925
    args.write(self._oprot)
1926
    self._oprot.writeMessageEnd()
1927
    self._oprot.trans.flush()
1928
 
1929
  def recv_getTransferLot(self, ):
1930
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1931
    if mtype == TMessageType.EXCEPTION:
1932
      x = TApplicationException()
1933
      x.read(self._iprot)
1934
      self._iprot.readMessageEnd()
1935
      raise x
1936
    result = getTransferLot_result()
1937
    result.read(self._iprot)
1938
    self._iprot.readMessageEnd()
1939
    if result.success is not None:
1940
      return result.success
1941
    if result.wex is not None:
1942
      raise result.wex
1943
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLot failed: unknown result");
1944
 
1945
  def markTransferLotAsReceived(self, id, remoteTransferRefNumber):
1946
    """
1947
    Parameters:
1948
     - id
1949
     - remoteTransferRefNumber
1950
    """
1951
    self.send_markTransferLotAsReceived(id, remoteTransferRefNumber)
1952
    self.recv_markTransferLotAsReceived()
1953
 
1954
  def send_markTransferLotAsReceived(self, id, remoteTransferRefNumber):
1955
    self._oprot.writeMessageBegin('markTransferLotAsReceived', TMessageType.CALL, self._seqid)
1956
    args = markTransferLotAsReceived_args()
1957
    args.id = id
1958
    args.remoteTransferRefNumber = remoteTransferRefNumber
1959
    args.write(self._oprot)
1960
    self._oprot.writeMessageEnd()
1961
    self._oprot.trans.flush()
1962
 
1963
  def recv_markTransferLotAsReceived(self, ):
1964
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1965
    if mtype == TMessageType.EXCEPTION:
1966
      x = TApplicationException()
1967
      x.read(self._iprot)
1968
      self._iprot.readMessageEnd()
1969
      raise x
1970
    result = markTransferLotAsReceived_result()
1971
    result.read(self._iprot)
1972
    self._iprot.readMessageEnd()
1973
    if result.wex is not None:
1974
      raise result.wex
1975
    return
1976
 
1977
  def getTransferLotsByDate(self, fromDate, toDate):
1978
    """
1979
    Parameters:
1980
     - fromDate
1981
     - toDate
1982
    """
1983
    self.send_getTransferLotsByDate(fromDate, toDate)
1984
    return self.recv_getTransferLotsByDate()
1985
 
1986
  def send_getTransferLotsByDate(self, fromDate, toDate):
1987
    self._oprot.writeMessageBegin('getTransferLotsByDate', TMessageType.CALL, self._seqid)
1988
    args = getTransferLotsByDate_args()
1989
    args.fromDate = fromDate
1990
    args.toDate = toDate
1991
    args.write(self._oprot)
1992
    self._oprot.writeMessageEnd()
1993
    self._oprot.trans.flush()
1994
 
1995
  def recv_getTransferLotsByDate(self, ):
1996
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1997
    if mtype == TMessageType.EXCEPTION:
1998
      x = TApplicationException()
1999
      x.read(self._iprot)
2000
      self._iprot.readMessageEnd()
2001
      raise x
2002
    result = getTransferLotsByDate_result()
2003
    result.read(self._iprot)
2004
    self._iprot.readMessageEnd()
2005
    if result.success is not None:
2006
      return result.success
2007
    if result.wex is not None:
2008
      raise result.wex
2009
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLotsByDate failed: unknown result");
2010
 
2011
  def getAllowedDestinationWarehousesForTransfer(self, warehouseId):
2012
    """
2013
    Parameters:
2014
     - warehouseId
2015
    """
2016
    self.send_getAllowedDestinationWarehousesForTransfer(warehouseId)
2017
    return self.recv_getAllowedDestinationWarehousesForTransfer()
2018
 
2019
  def send_getAllowedDestinationWarehousesForTransfer(self, warehouseId):
2020
    self._oprot.writeMessageBegin('getAllowedDestinationWarehousesForTransfer', TMessageType.CALL, self._seqid)
2021
    args = getAllowedDestinationWarehousesForTransfer_args()
2022
    args.warehouseId = warehouseId
2023
    args.write(self._oprot)
2024
    self._oprot.writeMessageEnd()
2025
    self._oprot.trans.flush()
2026
 
2027
  def recv_getAllowedDestinationWarehousesForTransfer(self, ):
2028
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2029
    if mtype == TMessageType.EXCEPTION:
2030
      x = TApplicationException()
2031
      x.read(self._iprot)
2032
      self._iprot.readMessageEnd()
2033
      raise x
2034
    result = getAllowedDestinationWarehousesForTransfer_result()
2035
    result.read(self._iprot)
2036
    self._iprot.readMessageEnd()
2037
    if result.success is not None:
2038
      return result.success
2039
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllowedDestinationWarehousesForTransfer failed: unknown result");
2040
 
2041
  def getItemsInTransferLot(self, transferLotId):
2042
    """
2043
    Parameters:
2044
     - transferLotId
2045
    """
2046
    self.send_getItemsInTransferLot(transferLotId)
2047
    return self.recv_getItemsInTransferLot()
2048
 
2049
  def send_getItemsInTransferLot(self, transferLotId):
2050
    self._oprot.writeMessageBegin('getItemsInTransferLot', TMessageType.CALL, self._seqid)
2051
    args = getItemsInTransferLot_args()
2052
    args.transferLotId = transferLotId
2053
    args.write(self._oprot)
2054
    self._oprot.writeMessageEnd()
2055
    self._oprot.trans.flush()
2056
 
2057
  def recv_getItemsInTransferLot(self, ):
2058
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2059
    if mtype == TMessageType.EXCEPTION:
2060
      x = TApplicationException()
2061
      x.read(self._iprot)
2062
      self._iprot.readMessageEnd()
2063
      raise x
2064
    result = getItemsInTransferLot_result()
2065
    result.read(self._iprot)
2066
    self._iprot.readMessageEnd()
2067
    if result.success is not None:
2068
      return result.success
2069
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsInTransferLot failed: unknown result");
2070
 
2071
  def markItemsAsReceivedForTransferLot(self, id):
2072
    """
2073
    Parameters:
2074
     - id
2075
    """
2076
    self.send_markItemsAsReceivedForTransferLot(id)
2077
    self.recv_markItemsAsReceivedForTransferLot()
2078
 
2079
  def send_markItemsAsReceivedForTransferLot(self, id):
2080
    self._oprot.writeMessageBegin('markItemsAsReceivedForTransferLot', TMessageType.CALL, self._seqid)
2081
    args = markItemsAsReceivedForTransferLot_args()
2082
    args.id = id
2083
    args.write(self._oprot)
2084
    self._oprot.writeMessageEnd()
2085
    self._oprot.trans.flush()
2086
 
2087
  def recv_markItemsAsReceivedForTransferLot(self, ):
2088
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2089
    if mtype == TMessageType.EXCEPTION:
2090
      x = TApplicationException()
2091
      x.read(self._iprot)
2092
      self._iprot.readMessageEnd()
2093
      raise x
2094
    result = markItemsAsReceivedForTransferLot_result()
2095
    result.read(self._iprot)
2096
    self._iprot.readMessageEnd()
2097
    if result.wex is not None:
2098
      raise result.wex
2099
    return
2100
 
2101
  def updateTransferLotAfterItemReceive(self, id):
2102
    """
2103
    Parameters:
2104
     - id
2105
    """
2106
    self.send_updateTransferLotAfterItemReceive(id)
2107
    return self.recv_updateTransferLotAfterItemReceive()
2108
 
2109
  def send_updateTransferLotAfterItemReceive(self, id):
2110
    self._oprot.writeMessageBegin('updateTransferLotAfterItemReceive', TMessageType.CALL, self._seqid)
2111
    args = updateTransferLotAfterItemReceive_args()
2112
    args.id = id
2113
    args.write(self._oprot)
2114
    self._oprot.writeMessageEnd()
2115
    self._oprot.trans.flush()
2116
 
2117
  def recv_updateTransferLotAfterItemReceive(self, ):
2118
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2119
    if mtype == TMessageType.EXCEPTION:
2120
      x = TApplicationException()
2121
      x.read(self._iprot)
2122
      self._iprot.readMessageEnd()
2123
      raise x
2124
    result = updateTransferLotAfterItemReceive_result()
2125
    result.read(self._iprot)
2126
    self._iprot.readMessageEnd()
2127
    if result.success is not None:
2128
      return result.success
2129
    if result.wex is not None:
2130
      raise result.wex
2131
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTransferLotAfterItemReceive failed: unknown result");
2132
 
7459 amar.kumar 2133
  def scanForTransferOut(self, inventoryItems, type, transferLotId):
7410 amar.kumar 2134
    """
2135
    Parameters:
2136
     - inventoryItems
2137
     - type
2138
     - transferLotId
2139
    """
7459 amar.kumar 2140
    self.send_scanForTransferOut(inventoryItems, type, transferLotId)
2141
    self.recv_scanForTransferOut()
7410 amar.kumar 2142
 
7459 amar.kumar 2143
  def send_scanForTransferOut(self, inventoryItems, type, transferLotId):
2144
    self._oprot.writeMessageBegin('scanForTransferOut', TMessageType.CALL, self._seqid)
2145
    args = scanForTransferOut_args()
7410 amar.kumar 2146
    args.inventoryItems = inventoryItems
2147
    args.type = type
2148
    args.transferLotId = transferLotId
2149
    args.write(self._oprot)
2150
    self._oprot.writeMessageEnd()
2151
    self._oprot.trans.flush()
2152
 
7459 amar.kumar 2153
  def recv_scanForTransferOut(self, ):
7410 amar.kumar 2154
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2155
    if mtype == TMessageType.EXCEPTION:
2156
      x = TApplicationException()
2157
      x.read(self._iprot)
2158
      self._iprot.readMessageEnd()
2159
      raise x
7459 amar.kumar 2160
    result = scanForTransferOut_result()
7410 amar.kumar 2161
    result.read(self._iprot)
2162
    self._iprot.readMessageEnd()
2163
    if result.wex is not None:
2164
      raise result.wex
2165
    return
2166
 
7459 amar.kumar 2167
  def scanForTransferIn(self, inventoryItems, type, transferLotId):
2168
    """
2169
    Parameters:
2170
     - inventoryItems
2171
     - type
2172
     - transferLotId
2173
    """
2174
    self.send_scanForTransferIn(inventoryItems, type, transferLotId)
2175
    self.recv_scanForTransferIn()
7410 amar.kumar 2176
 
7459 amar.kumar 2177
  def send_scanForTransferIn(self, inventoryItems, type, transferLotId):
2178
    self._oprot.writeMessageBegin('scanForTransferIn', TMessageType.CALL, self._seqid)
2179
    args = scanForTransferIn_args()
2180
    args.inventoryItems = inventoryItems
2181
    args.type = type
2182
    args.transferLotId = transferLotId
2183
    args.write(self._oprot)
2184
    self._oprot.writeMessageEnd()
2185
    self._oprot.trans.flush()
2186
 
2187
  def recv_scanForTransferIn(self, ):
2188
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2189
    if mtype == TMessageType.EXCEPTION:
2190
      x = TApplicationException()
2191
      x.read(self._iprot)
2192
      self._iprot.readMessageEnd()
2193
      raise x
2194
    result = scanForTransferIn_result()
2195
    result.read(self._iprot)
2196
    self._iprot.readMessageEnd()
2197
    if result.wex is not None:
2198
      raise result.wex
2199
    return
2200
 
2201
  def scanForOursThirdPartyReceive(self, inventoryItems, id):
2202
    """
2203
    Parameters:
2204
     - inventoryItems
2205
     - id
2206
    """
2207
    self.send_scanForOursThirdPartyReceive(inventoryItems, id)
2208
    self.recv_scanForOursThirdPartyReceive()
2209
 
2210
  def send_scanForOursThirdPartyReceive(self, inventoryItems, id):
2211
    self._oprot.writeMessageBegin('scanForOursThirdPartyReceive', TMessageType.CALL, self._seqid)
2212
    args = scanForOursThirdPartyReceive_args()
2213
    args.inventoryItems = inventoryItems
2214
    args.id = id
2215
    args.write(self._oprot)
2216
    self._oprot.writeMessageEnd()
2217
    self._oprot.trans.flush()
2218
 
2219
  def recv_scanForOursThirdPartyReceive(self, ):
2220
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2221
    if mtype == TMessageType.EXCEPTION:
2222
      x = TApplicationException()
2223
      x.read(self._iprot)
2224
      self._iprot.readMessageEnd()
2225
      raise x
2226
    result = scanForOursThirdPartyReceive_result()
2227
    result.read(self._iprot)
2228
    self._iprot.readMessageEnd()
2229
    if result.wex is not None:
2230
      raise result.wex
2231
    return
2232
 
7574 amar.kumar 2233
  def getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
2234
    """
2235
    Parameters:
2236
     - itemId
2237
     - physicalWarehouseId
2238
    """
2239
    self.send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(itemId, physicalWarehouseId)
2240
    return self.recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse()
7459 amar.kumar 2241
 
7574 amar.kumar 2242
  def send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
2243
    self._oprot.writeMessageBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse', TMessageType.CALL, self._seqid)
2244
    args = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args()
2245
    args.itemId = itemId
2246
    args.physicalWarehouseId = physicalWarehouseId
2247
    args.write(self._oprot)
2248
    self._oprot.writeMessageEnd()
2249
    self._oprot.trans.flush()
2250
 
2251
  def recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, ):
2252
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2253
    if mtype == TMessageType.EXCEPTION:
2254
      x = TApplicationException()
2255
      x.read(self._iprot)
2256
      self._iprot.readMessageEnd()
2257
      raise x
2258
    result = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result()
2259
    result.read(self._iprot)
2260
    self._iprot.readMessageEnd()
2261
    if result.success is not None:
2262
      return result.success
2263
    if result.wex is not None:
2264
      raise result.wex
2265
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse failed: unknown result");
2266
 
7672 rajveer 2267
  def getInTransitInventory(self, originWarehouseId):
2268
    """
2269
    Parameters:
2270
     - originWarehouseId
2271
    """
2272
    self.send_getInTransitInventory(originWarehouseId)
2273
    return self.recv_getInTransitInventory()
7574 amar.kumar 2274
 
7672 rajveer 2275
  def send_getInTransitInventory(self, originWarehouseId):
2276
    self._oprot.writeMessageBegin('getInTransitInventory', TMessageType.CALL, self._seqid)
2277
    args = getInTransitInventory_args()
2278
    args.originWarehouseId = originWarehouseId
2279
    args.write(self._oprot)
2280
    self._oprot.writeMessageEnd()
2281
    self._oprot.trans.flush()
2282
 
2283
  def recv_getInTransitInventory(self, ):
2284
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2285
    if mtype == TMessageType.EXCEPTION:
2286
      x = TApplicationException()
2287
      x.read(self._iprot)
2288
      self._iprot.readMessageEnd()
2289
      raise x
2290
    result = getInTransitInventory_result()
2291
    result.read(self._iprot)
2292
    self._iprot.readMessageEnd()
2293
    if result.success is not None:
2294
      return result.success
2295
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInTransitInventory failed: unknown result");
2296
 
7968 amar.kumar 2297
  def isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
2298
    """
2299
    Parameters:
2300
     - itemId
2301
     - serialNumber
2302
     - warehouseId
2303
    """
2304
    self.send_isItemAvailableForSale(itemId, serialNumber, warehouseId)
2305
    return self.recv_isItemAvailableForSale()
7672 rajveer 2306
 
7968 amar.kumar 2307
  def send_isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
2308
    self._oprot.writeMessageBegin('isItemAvailableForSale', TMessageType.CALL, self._seqid)
2309
    args = isItemAvailableForSale_args()
2310
    args.itemId = itemId
2311
    args.serialNumber = serialNumber
2312
    args.warehouseId = warehouseId
2313
    args.write(self._oprot)
2314
    self._oprot.writeMessageEnd()
2315
    self._oprot.trans.flush()
2316
 
2317
  def recv_isItemAvailableForSale(self, ):
2318
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2319
    if mtype == TMessageType.EXCEPTION:
2320
      x = TApplicationException()
2321
      x.read(self._iprot)
2322
      self._iprot.readMessageEnd()
2323
      raise x
2324
    result = isItemAvailableForSale_result()
2325
    result.read(self._iprot)
2326
    self._iprot.readMessageEnd()
2327
    if result.success is not None:
2328
      return result.success
2329
    if result.wex is not None:
2330
      raise result.wex
2331
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isItemAvailableForSale failed: unknown result");
2332
 
2333
  def getHistoricBadInventoryByScans(self, date):
2334
    """
2335
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
2336
 
2337
    Parameters:
2338
     - date
2339
    """
2340
    self.send_getHistoricBadInventoryByScans(date)
2341
    return self.recv_getHistoricBadInventoryByScans()
2342
 
2343
  def send_getHistoricBadInventoryByScans(self, date):
2344
    self._oprot.writeMessageBegin('getHistoricBadInventoryByScans', TMessageType.CALL, self._seqid)
2345
    args = getHistoricBadInventoryByScans_args()
2346
    args.date = date
2347
    args.write(self._oprot)
2348
    self._oprot.writeMessageEnd()
2349
    self._oprot.trans.flush()
2350
 
2351
  def recv_getHistoricBadInventoryByScans(self, ):
2352
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2353
    if mtype == TMessageType.EXCEPTION:
2354
      x = TApplicationException()
2355
      x.read(self._iprot)
2356
      self._iprot.readMessageEnd()
2357
      raise x
2358
    result = getHistoricBadInventoryByScans_result()
2359
    result.read(self._iprot)
2360
    self._iprot.readMessageEnd()
2361
    if result.success is not None:
2362
      return result.success
2363
    if result.wex is not None:
2364
      raise result.wex
2365
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricBadInventoryByScans failed: unknown result");
2366
 
8717 amar.kumar 2367
  def scanForBadSale(self, serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
8565 amar.kumar 2368
    """
2369
    Parameters:
8717 amar.kumar 2370
     - serialNumber
2371
     - itemNumber
2372
     - itemId
8565 amar.kumar 2373
     - orderId
8717 amar.kumar 2374
     - fulfilmentWarehouseId
8565 amar.kumar 2375
     - quantity
2376
     - billingWarehouseId
2377
    """
8717 amar.kumar 2378
    self.send_scanForBadSale(serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId)
2379
    return self.recv_scanForBadSale()
7968 amar.kumar 2380
 
8717 amar.kumar 2381
  def send_scanForBadSale(self, serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
8565 amar.kumar 2382
    self._oprot.writeMessageBegin('scanForBadSale', TMessageType.CALL, self._seqid)
2383
    args = scanForBadSale_args()
8717 amar.kumar 2384
    args.serialNumber = serialNumber
2385
    args.itemNumber = itemNumber
2386
    args.itemId = itemId
8565 amar.kumar 2387
    args.orderId = orderId
8717 amar.kumar 2388
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 2389
    args.quantity = quantity
2390
    args.billingWarehouseId = billingWarehouseId
2391
    args.write(self._oprot)
2392
    self._oprot.writeMessageEnd()
2393
    self._oprot.trans.flush()
2394
 
2395
  def recv_scanForBadSale(self, ):
2396
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2397
    if mtype == TMessageType.EXCEPTION:
2398
      x = TApplicationException()
2399
      x.read(self._iprot)
2400
      self._iprot.readMessageEnd()
2401
      raise x
2402
    result = scanForBadSale_result()
2403
    result.read(self._iprot)
2404
    self._iprot.readMessageEnd()
8717 amar.kumar 2405
    if result.success is not None:
2406
      return result.success
2407
    if result.wex is not None:
2408
      raise result.wex
2409
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForBadSale failed: unknown result");
8565 amar.kumar 2410
 
10120 manish.sha 2411
  def getTransferLotItemsForMarkReceive(self, transferLotId, scanType):
2412
    """
2413
    Parameters:
2414
     - transferLotId
2415
     - scanType
2416
    """
2417
    self.send_getTransferLotItemsForMarkReceive(transferLotId, scanType)
2418
    return self.recv_getTransferLotItemsForMarkReceive()
8565 amar.kumar 2419
 
10120 manish.sha 2420
  def send_getTransferLotItemsForMarkReceive(self, transferLotId, scanType):
2421
    self._oprot.writeMessageBegin('getTransferLotItemsForMarkReceive', TMessageType.CALL, self._seqid)
2422
    args = getTransferLotItemsForMarkReceive_args()
2423
    args.transferLotId = transferLotId
2424
    args.scanType = scanType
2425
    args.write(self._oprot)
2426
    self._oprot.writeMessageEnd()
2427
    self._oprot.trans.flush()
2428
 
2429
  def recv_getTransferLotItemsForMarkReceive(self, ):
2430
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2431
    if mtype == TMessageType.EXCEPTION:
2432
      x = TApplicationException()
2433
      x.read(self._iprot)
2434
      self._iprot.readMessageEnd()
2435
      raise x
2436
    result = getTransferLotItemsForMarkReceive_result()
2437
    result.read(self._iprot)
2438
    self._iprot.readMessageEnd()
2439
    if result.success is not None:
2440
      return result.success
2441
    if result.wex is not None:
2442
      raise result.wex
2443
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLotItemsForMarkReceive failed: unknown result");
2444
 
2445
  def markItemsAsReceivedForTransferLotPartial(self, inventoryItems, transferLotId):
2446
    """
2447
    Parameters:
2448
     - inventoryItems
2449
     - transferLotId
2450
    """
2451
    self.send_markItemsAsReceivedForTransferLotPartial(inventoryItems, transferLotId)
2452
    self.recv_markItemsAsReceivedForTransferLotPartial()
2453
 
2454
  def send_markItemsAsReceivedForTransferLotPartial(self, inventoryItems, transferLotId):
2455
    self._oprot.writeMessageBegin('markItemsAsReceivedForTransferLotPartial', TMessageType.CALL, self._seqid)
2456
    args = markItemsAsReceivedForTransferLotPartial_args()
2457
    args.inventoryItems = inventoryItems
2458
    args.transferLotId = transferLotId
2459
    args.write(self._oprot)
2460
    self._oprot.writeMessageEnd()
2461
    self._oprot.trans.flush()
2462
 
2463
  def recv_markItemsAsReceivedForTransferLotPartial(self, ):
2464
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2465
    if mtype == TMessageType.EXCEPTION:
2466
      x = TApplicationException()
2467
      x.read(self._iprot)
2468
      self._iprot.readMessageEnd()
2469
      raise x
2470
    result = markItemsAsReceivedForTransferLotPartial_result()
2471
    result.read(self._iprot)
2472
    self._iprot.readMessageEnd()
2473
    if result.wex is not None:
2474
      raise result.wex
2475
    return
2476
 
2477
  def markTransferLotAsReceivedPartial(self, id, remoteTransferRefNumber):
2478
    """
2479
    Parameters:
2480
     - id
2481
     - remoteTransferRefNumber
2482
    """
2483
    self.send_markTransferLotAsReceivedPartial(id, remoteTransferRefNumber)
2484
    self.recv_markTransferLotAsReceivedPartial()
2485
 
2486
  def send_markTransferLotAsReceivedPartial(self, id, remoteTransferRefNumber):
2487
    self._oprot.writeMessageBegin('markTransferLotAsReceivedPartial', TMessageType.CALL, self._seqid)
2488
    args = markTransferLotAsReceivedPartial_args()
2489
    args.id = id
2490
    args.remoteTransferRefNumber = remoteTransferRefNumber
2491
    args.write(self._oprot)
2492
    self._oprot.writeMessageEnd()
2493
    self._oprot.trans.flush()
2494
 
2495
  def recv_markTransferLotAsReceivedPartial(self, ):
2496
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2497
    if mtype == TMessageType.EXCEPTION:
2498
      x = TApplicationException()
2499
      x.read(self._iprot)
2500
      self._iprot.readMessageEnd()
2501
      raise x
2502
    result = markTransferLotAsReceivedPartial_result()
2503
    result.read(self._iprot)
2504
    self._iprot.readMessageEnd()
2505
    if result.wex is not None:
2506
      raise result.wex
2507
    return
2508
 
10690 manish.sha 2509
  def getInventoryItemScannedInForPO(self, itemId, purchaseIds):
2510
    """
2511
    Parameters:
2512
     - itemId
2513
     - purchaseIds
2514
    """
2515
    self.send_getInventoryItemScannedInForPO(itemId, purchaseIds)
2516
    return self.recv_getInventoryItemScannedInForPO()
10120 manish.sha 2517
 
10690 manish.sha 2518
  def send_getInventoryItemScannedInForPO(self, itemId, purchaseIds):
2519
    self._oprot.writeMessageBegin('getInventoryItemScannedInForPO', TMessageType.CALL, self._seqid)
2520
    args = getInventoryItemScannedInForPO_args()
2521
    args.itemId = itemId
2522
    args.purchaseIds = purchaseIds
2523
    args.write(self._oprot)
2524
    self._oprot.writeMessageEnd()
2525
    self._oprot.trans.flush()
2526
 
2527
  def recv_getInventoryItemScannedInForPO(self, ):
2528
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2529
    if mtype == TMessageType.EXCEPTION:
2530
      x = TApplicationException()
2531
      x.read(self._iprot)
2532
      self._iprot.readMessageEnd()
2533
      raise x
2534
    result = getInventoryItemScannedInForPO_result()
2535
    result.read(self._iprot)
2536
    self._iprot.readMessageEnd()
2537
    if result.success is not None:
2538
      return result.success
2539
    if result.wex is not None:
2540
      raise result.wex
2541
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemScannedInForPO failed: unknown result");
2542
 
2543
  def getAmazonTransferredSkuDetails(self, itemIds):
2544
    """
2545
    Parameters:
2546
     - itemIds
2547
    """
2548
    self.send_getAmazonTransferredSkuDetails(itemIds)
2549
    return self.recv_getAmazonTransferredSkuDetails()
2550
 
2551
  def send_getAmazonTransferredSkuDetails(self, itemIds):
2552
    self._oprot.writeMessageBegin('getAmazonTransferredSkuDetails', TMessageType.CALL, self._seqid)
2553
    args = getAmazonTransferredSkuDetails_args()
2554
    args.itemIds = itemIds
2555
    args.write(self._oprot)
2556
    self._oprot.writeMessageEnd()
2557
    self._oprot.trans.flush()
2558
 
2559
  def recv_getAmazonTransferredSkuDetails(self, ):
2560
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2561
    if mtype == TMessageType.EXCEPTION:
2562
      x = TApplicationException()
2563
      x.read(self._iprot)
2564
      self._iprot.readMessageEnd()
2565
      raise x
2566
    result = getAmazonTransferredSkuDetails_result()
2567
    result.read(self._iprot)
2568
    self._iprot.readMessageEnd()
2569
    if result.success is not None:
2570
      return result.success
2571
    if result.wex is not None:
2572
      raise result.wex
2573
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonTransferredSkuDetails failed: unknown result");
2574
 
2575
  def getScansforPurchase(self, purchaseId, scanType):
2576
    """
2577
    Parameters:
2578
     - purchaseId
2579
     - scanType
2580
    """
2581
    self.send_getScansforPurchase(purchaseId, scanType)
2582
    return self.recv_getScansforPurchase()
2583
 
2584
  def send_getScansforPurchase(self, purchaseId, scanType):
2585
    self._oprot.writeMessageBegin('getScansforPurchase', TMessageType.CALL, self._seqid)
2586
    args = getScansforPurchase_args()
2587
    args.purchaseId = purchaseId
2588
    args.scanType = scanType
2589
    args.write(self._oprot)
2590
    self._oprot.writeMessageEnd()
2591
    self._oprot.trans.flush()
2592
 
2593
  def recv_getScansforPurchase(self, ):
2594
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2595
    if mtype == TMessageType.EXCEPTION:
2596
      x = TApplicationException()
2597
      x.read(self._iprot)
2598
      self._iprot.readMessageEnd()
2599
      raise x
2600
    result = getScansforPurchase_result()
2601
    result.read(self._iprot)
2602
    self._iprot.readMessageEnd()
2603
    if result.success is not None:
2604
      return result.success
2605
    if result.wex is not None:
2606
      raise result.wex
2607
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScansforPurchase failed: unknown result");
2608
 
10864 manish.sha 2609
  def getCurrentBadQuantityForItem(self, itemId, currentWarehouseId, physicalWarehouseId):
2610
    """
2611
    Parameters:
2612
     - itemId
2613
     - currentWarehouseId
2614
     - physicalWarehouseId
2615
    """
2616
    self.send_getCurrentBadQuantityForItem(itemId, currentWarehouseId, physicalWarehouseId)
2617
    return self.recv_getCurrentBadQuantityForItem()
10690 manish.sha 2618
 
10864 manish.sha 2619
  def send_getCurrentBadQuantityForItem(self, itemId, currentWarehouseId, physicalWarehouseId):
2620
    self._oprot.writeMessageBegin('getCurrentBadQuantityForItem', TMessageType.CALL, self._seqid)
2621
    args = getCurrentBadQuantityForItem_args()
2622
    args.itemId = itemId
2623
    args.currentWarehouseId = currentWarehouseId
2624
    args.physicalWarehouseId = physicalWarehouseId
2625
    args.write(self._oprot)
2626
    self._oprot.writeMessageEnd()
2627
    self._oprot.trans.flush()
2628
 
2629
  def recv_getCurrentBadQuantityForItem(self, ):
2630
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2631
    if mtype == TMessageType.EXCEPTION:
2632
      x = TApplicationException()
2633
      x.read(self._iprot)
2634
      self._iprot.readMessageEnd()
2635
      raise x
2636
    result = getCurrentBadQuantityForItem_result()
2637
    result.read(self._iprot)
2638
    self._iprot.readMessageEnd()
2639
    if result.success is not None:
2640
      return result.success
2641
    if result.wex is not None:
2642
      raise result.wex
2643
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentBadQuantityForItem failed: unknown result");
2644
 
2645
  def scanForBadPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
2646
    """
2647
    Parameters:
2648
     - saleReturnItems
2649
     - vendorId
2650
     - billingWarehouseId
2651
    """
2652
    self.send_scanForBadPurchaseReturn(saleReturnItems, vendorId, billingWarehouseId)
2653
    return self.recv_scanForBadPurchaseReturn()
2654
 
2655
  def send_scanForBadPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
2656
    self._oprot.writeMessageBegin('scanForBadPurchaseReturn', TMessageType.CALL, self._seqid)
2657
    args = scanForBadPurchaseReturn_args()
2658
    args.saleReturnItems = saleReturnItems
2659
    args.vendorId = vendorId
2660
    args.billingWarehouseId = billingWarehouseId
2661
    args.write(self._oprot)
2662
    self._oprot.writeMessageEnd()
2663
    self._oprot.trans.flush()
2664
 
2665
  def recv_scanForBadPurchaseReturn(self, ):
2666
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2667
    if mtype == TMessageType.EXCEPTION:
2668
      x = TApplicationException()
2669
      x.read(self._iprot)
2670
      self._iprot.readMessageEnd()
2671
      raise x
2672
    result = scanForBadPurchaseReturn_result()
2673
    result.read(self._iprot)
2674
    self._iprot.readMessageEnd()
2675
    if result.success is not None:
2676
      return result.success
2677
    if result.ex is not None:
2678
      raise result.ex
2679
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForBadPurchaseReturn failed: unknown result");
2680
 
13504 manish.sha 2681
  def getItemsInPurchaseReturn(self, purchaseReturnId, type, returnTime):
10864 manish.sha 2682
    """
2683
    Parameters:
2684
     - purchaseReturnId
11751 manish.sha 2685
     - type
13504 manish.sha 2686
     - returnTime
10864 manish.sha 2687
    """
13504 manish.sha 2688
    self.send_getItemsInPurchaseReturn(purchaseReturnId, type, returnTime)
10864 manish.sha 2689
    return self.recv_getItemsInPurchaseReturn()
2690
 
13504 manish.sha 2691
  def send_getItemsInPurchaseReturn(self, purchaseReturnId, type, returnTime):
10864 manish.sha 2692
    self._oprot.writeMessageBegin('getItemsInPurchaseReturn', TMessageType.CALL, self._seqid)
2693
    args = getItemsInPurchaseReturn_args()
2694
    args.purchaseReturnId = purchaseReturnId
11751 manish.sha 2695
    args.type = type
13504 manish.sha 2696
    args.returnTime = returnTime
10864 manish.sha 2697
    args.write(self._oprot)
2698
    self._oprot.writeMessageEnd()
2699
    self._oprot.trans.flush()
2700
 
2701
  def recv_getItemsInPurchaseReturn(self, ):
2702
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2703
    if mtype == TMessageType.EXCEPTION:
2704
      x = TApplicationException()
2705
      x.read(self._iprot)
2706
      self._iprot.readMessageEnd()
2707
      raise x
2708
    result = getItemsInPurchaseReturn_result()
2709
    result.read(self._iprot)
2710
    self._iprot.readMessageEnd()
2711
    if result.success is not None:
2712
      return result.success
2713
    if result.ex is not None:
2714
      raise result.ex
2715
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsInPurchaseReturn failed: unknown result");
2716
 
10886 manish.sha 2717
  def getScansForInventoryItem(self, inventoryItemId, type):
2718
    """
2719
    Parameters:
2720
     - inventoryItemId
2721
     - type
2722
    """
2723
    self.send_getScansForInventoryItem(inventoryItemId, type)
2724
    return self.recv_getScansForInventoryItem()
10864 manish.sha 2725
 
10886 manish.sha 2726
  def send_getScansForInventoryItem(self, inventoryItemId, type):
2727
    self._oprot.writeMessageBegin('getScansForInventoryItem', TMessageType.CALL, self._seqid)
2728
    args = getScansForInventoryItem_args()
2729
    args.inventoryItemId = inventoryItemId
2730
    args.type = type
2731
    args.write(self._oprot)
2732
    self._oprot.writeMessageEnd()
2733
    self._oprot.trans.flush()
2734
 
2735
  def recv_getScansForInventoryItem(self, ):
2736
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2737
    if mtype == TMessageType.EXCEPTION:
2738
      x = TApplicationException()
2739
      x.read(self._iprot)
2740
      self._iprot.readMessageEnd()
2741
      raise x
2742
    result = getScansForInventoryItem_result()
2743
    result.read(self._iprot)
2744
    self._iprot.readMessageEnd()
2745
    if result.success is not None:
2746
      return result.success
2747
    if result.ex is not None:
2748
      raise result.ex
2749
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScansForInventoryItem failed: unknown result");
2750
 
12531 manish.sha 2751
  def checkGrnImeiStatus(self, imeiNos):
2752
    """
2753
    Parameters:
2754
     - imeiNos
2755
    """
2756
    self.send_checkGrnImeiStatus(imeiNos)
2757
    return self.recv_checkGrnImeiStatus()
10886 manish.sha 2758
 
12531 manish.sha 2759
  def send_checkGrnImeiStatus(self, imeiNos):
2760
    self._oprot.writeMessageBegin('checkGrnImeiStatus', TMessageType.CALL, self._seqid)
2761
    args = checkGrnImeiStatus_args()
2762
    args.imeiNos = imeiNos
2763
    args.write(self._oprot)
2764
    self._oprot.writeMessageEnd()
2765
    self._oprot.trans.flush()
2766
 
2767
  def recv_checkGrnImeiStatus(self, ):
2768
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2769
    if mtype == TMessageType.EXCEPTION:
2770
      x = TApplicationException()
2771
      x.read(self._iprot)
2772
      self._iprot.readMessageEnd()
2773
      raise x
2774
    result = checkGrnImeiStatus_result()
2775
    result.read(self._iprot)
2776
    self._iprot.readMessageEnd()
2777
    if result.success is not None:
2778
      return result.success
2779
    if result.ex is not None:
2780
      raise result.ex
2781
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkGrnImeiStatus failed: unknown result");
2782
 
12800 manish.sha 2783
  def getInventoryAgeConsideredItems(self, itemId):
2784
    """
2785
    Parameters:
2786
     - itemId
2787
    """
2788
    self.send_getInventoryAgeConsideredItems(itemId)
2789
    return self.recv_getInventoryAgeConsideredItems()
12531 manish.sha 2790
 
12800 manish.sha 2791
  def send_getInventoryAgeConsideredItems(self, itemId):
2792
    self._oprot.writeMessageBegin('getInventoryAgeConsideredItems', TMessageType.CALL, self._seqid)
2793
    args = getInventoryAgeConsideredItems_args()
2794
    args.itemId = itemId
2795
    args.write(self._oprot)
2796
    self._oprot.writeMessageEnd()
2797
    self._oprot.trans.flush()
2798
 
2799
  def recv_getInventoryAgeConsideredItems(self, ):
2800
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2801
    if mtype == TMessageType.EXCEPTION:
2802
      x = TApplicationException()
2803
      x.read(self._iprot)
2804
      self._iprot.readMessageEnd()
2805
      raise x
2806
    result = getInventoryAgeConsideredItems_result()
2807
    result.read(self._iprot)
2808
    self._iprot.readMessageEnd()
2809
    if result.success is not None:
2810
      return result.success
2811
    if result.ex is not None:
2812
      raise result.ex
2813
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryAgeConsideredItems failed: unknown result");
2814
 
13529 manish.sha 2815
  def getCompleteMovementForThirdPartyWarehouse(self, startDate, endDate):
2816
    """
2817
    Parameters:
2818
     - startDate
2819
     - endDate
2820
    """
2821
    self.send_getCompleteMovementForThirdPartyWarehouse(startDate, endDate)
2822
    return self.recv_getCompleteMovementForThirdPartyWarehouse()
12800 manish.sha 2823
 
13529 manish.sha 2824
  def send_getCompleteMovementForThirdPartyWarehouse(self, startDate, endDate):
2825
    self._oprot.writeMessageBegin('getCompleteMovementForThirdPartyWarehouse', TMessageType.CALL, self._seqid)
2826
    args = getCompleteMovementForThirdPartyWarehouse_args()
2827
    args.startDate = startDate
2828
    args.endDate = endDate
2829
    args.write(self._oprot)
2830
    self._oprot.writeMessageEnd()
2831
    self._oprot.trans.flush()
2832
 
2833
  def recv_getCompleteMovementForThirdPartyWarehouse(self, ):
2834
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2835
    if mtype == TMessageType.EXCEPTION:
2836
      x = TApplicationException()
2837
      x.read(self._iprot)
2838
      self._iprot.readMessageEnd()
2839
      raise x
2840
    result = getCompleteMovementForThirdPartyWarehouse_result()
2841
    result.read(self._iprot)
2842
    self._iprot.readMessageEnd()
2843
    if result.success is not None:
2844
      return result.success
2845
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementForThirdPartyWarehouse failed: unknown result");
2846
 
14491 manish.sha 2847
  def getAllDoaOutInventoryItems(self, ):
2848
    self.send_getAllDoaOutInventoryItems()
2849
    return self.recv_getAllDoaOutInventoryItems()
13529 manish.sha 2850
 
14491 manish.sha 2851
  def send_getAllDoaOutInventoryItems(self, ):
2852
    self._oprot.writeMessageBegin('getAllDoaOutInventoryItems', TMessageType.CALL, self._seqid)
2853
    args = getAllDoaOutInventoryItems_args()
2854
    args.write(self._oprot)
2855
    self._oprot.writeMessageEnd()
2856
    self._oprot.trans.flush()
2857
 
2858
  def recv_getAllDoaOutInventoryItems(self, ):
2859
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2860
    if mtype == TMessageType.EXCEPTION:
2861
      x = TApplicationException()
2862
      x.read(self._iprot)
2863
      self._iprot.readMessageEnd()
2864
      raise x
2865
    result = getAllDoaOutInventoryItems_result()
2866
    result.read(self._iprot)
2867
    self._iprot.readMessageEnd()
2868
    if result.success is not None:
2869
      return result.success
2870
    if result.ex is not None:
2871
      raise result.ex
2872
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllDoaOutInventoryItems failed: unknown result");
2873
 
2874
 
3376 rajveer 2875
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2821 chandransh 2876
  def __init__(self, handler):
3376 rajveer 2877
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
4501 mandeep.dh 2878
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
5361 mandeep.dh 2879
    self._processMap["getNonSeralizedInventoryItem"] = Processor.process_getNonSeralizedInventoryItem
4501 mandeep.dh 2880
    self._processMap["scan"] = Processor.process_scan
10489 amar.kumar 2881
    self._processMap["genericScan"] = Processor.process_genericScan
4501 mandeep.dh 2882
    self._processMap["scanSerializedItemForOrder"] = Processor.process_scanSerializedItemForOrder
2883
    self._processMap["scanForOrder"] = Processor.process_scanForOrder
2884
    self._processMap["createItemNumberMapping"] = Processor.process_createItemNumberMapping
4620 amit.gupta 2885
    self._processMap["getItemNumbers"] = Processor.process_getItemNumbers
5110 mandeep.dh 2886
    self._processMap["getItemIds"] = Processor.process_getItemIds
5185 mandeep.dh 2887
    self._processMap["getInventoryItemsFromLastScanType"] = Processor.process_getInventoryItemsFromLastScanType
2888
    self._processMap["getInventoryItemFromId"] = Processor.process_getInventoryItemFromId
5372 mandeep.dh 2889
    self._processMap["getPurchaseScans"] = Processor.process_getPurchaseScans
7216 amar.kumar 2890
    self._processMap["getPurchaseScansByGrnDate"] = Processor.process_getPurchaseScansByGrnDate
10407 amar.kumar 2891
    self._processMap["getEmptyGrnsByDate"] = Processor.process_getEmptyGrnsByDate
5496 mandeep.dh 2892
    self._processMap["fetchScansPerInvoiceNumber"] = Processor.process_fetchScansPerInvoiceNumber
5620 mandeep.dh 2893
    self._processMap["getInventoryItemFromOrder"] = Processor.process_getInventoryItemFromOrder
5711 mandeep.dh 2894
    self._processMap["getInventoryAge"] = Processor.process_getInventoryAge
6361 rajveer 2895
    self._processMap["getInventoryScansForItem"] = Processor.process_getInventoryScansForItem
2896
    self._processMap["getScanRecordsForSerialNumber"] = Processor.process_getScanRecordsForSerialNumber
6467 amar.kumar 2897
    self._processMap["scanForPurchaseReturn"] = Processor.process_scanForPurchaseReturn
6630 amar.kumar 2898
    self._processMap["scanForLostItem"] = Processor.process_scanForLostItem
2899
    self._processMap["getCurrentSerializedInventoryByScans"] = Processor.process_getCurrentSerializedInventoryByScans
2900
    self._processMap["getCurrentNonSerializedInventoryByScans"] = Processor.process_getCurrentNonSerializedInventoryByScans
6762 amar.kumar 2901
    self._processMap["getHistoricSerializedInventoryByScans"] = Processor.process_getHistoricSerializedInventoryByScans
2902
    self._processMap["getHistoricNonSerializedInventoryByScans"] = Processor.process_getHistoricNonSerializedInventoryByScans
10407 amar.kumar 2903
    self._processMap["getOurHistoricSerializedInventoryByScans"] = Processor.process_getOurHistoricSerializedInventoryByScans
2904
    self._processMap["getOurHistoricNonSerializedInventoryByScans"] = Processor.process_getOurHistoricNonSerializedInventoryByScans
6762 amar.kumar 2905
    self._processMap["scanForOursExternalSale"] = Processor.process_scanForOursExternalSale
2906
    self._processMap["scanForOursExternalSaleReturn"] = Processor.process_scanForOursExternalSaleReturn
6880 amar.kumar 2907
    self._processMap["getMovementNonSerializedInventoryByScans"] = Processor.process_getMovementNonSerializedInventoryByScans
2908
    self._processMap["getMovementSerializedInventoryByScans"] = Processor.process_getMovementSerializedInventoryByScans
7216 amar.kumar 2909
    self._processMap["getCompleteMovementSerializedInventoryByScans"] = Processor.process_getCompleteMovementSerializedInventoryByScans
2910
    self._processMap["getCompleteMovementNonSerializedInventoryByScans"] = Processor.process_getCompleteMovementNonSerializedInventoryByScans
7190 amar.kumar 2911
    self._processMap["scanfreebie"] = Processor.process_scanfreebie
7199 amar.kumar 2912
    self._processMap["reshipfreebie"] = Processor.process_reshipfreebie
7410 amar.kumar 2913
    self._processMap["isItemTransferAllowed"] = Processor.process_isItemTransferAllowed
2914
    self._processMap["createTransferLot"] = Processor.process_createTransferLot
2915
    self._processMap["getTransferLot"] = Processor.process_getTransferLot
2916
    self._processMap["markTransferLotAsReceived"] = Processor.process_markTransferLotAsReceived
2917
    self._processMap["getTransferLotsByDate"] = Processor.process_getTransferLotsByDate
2918
    self._processMap["getAllowedDestinationWarehousesForTransfer"] = Processor.process_getAllowedDestinationWarehousesForTransfer
2919
    self._processMap["getItemsInTransferLot"] = Processor.process_getItemsInTransferLot
2920
    self._processMap["markItemsAsReceivedForTransferLot"] = Processor.process_markItemsAsReceivedForTransferLot
2921
    self._processMap["updateTransferLotAfterItemReceive"] = Processor.process_updateTransferLotAfterItemReceive
7459 amar.kumar 2922
    self._processMap["scanForTransferOut"] = Processor.process_scanForTransferOut
2923
    self._processMap["scanForTransferIn"] = Processor.process_scanForTransferIn
2924
    self._processMap["scanForOursThirdPartyReceive"] = Processor.process_scanForOursThirdPartyReceive
7574 amar.kumar 2925
    self._processMap["getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse"] = Processor.process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse
7672 rajveer 2926
    self._processMap["getInTransitInventory"] = Processor.process_getInTransitInventory
7968 amar.kumar 2927
    self._processMap["isItemAvailableForSale"] = Processor.process_isItemAvailableForSale
2928
    self._processMap["getHistoricBadInventoryByScans"] = Processor.process_getHistoricBadInventoryByScans
8565 amar.kumar 2929
    self._processMap["scanForBadSale"] = Processor.process_scanForBadSale
10120 manish.sha 2930
    self._processMap["getTransferLotItemsForMarkReceive"] = Processor.process_getTransferLotItemsForMarkReceive
2931
    self._processMap["markItemsAsReceivedForTransferLotPartial"] = Processor.process_markItemsAsReceivedForTransferLotPartial
2932
    self._processMap["markTransferLotAsReceivedPartial"] = Processor.process_markTransferLotAsReceivedPartial
10690 manish.sha 2933
    self._processMap["getInventoryItemScannedInForPO"] = Processor.process_getInventoryItemScannedInForPO
2934
    self._processMap["getAmazonTransferredSkuDetails"] = Processor.process_getAmazonTransferredSkuDetails
2935
    self._processMap["getScansforPurchase"] = Processor.process_getScansforPurchase
10864 manish.sha 2936
    self._processMap["getCurrentBadQuantityForItem"] = Processor.process_getCurrentBadQuantityForItem
2937
    self._processMap["scanForBadPurchaseReturn"] = Processor.process_scanForBadPurchaseReturn
2938
    self._processMap["getItemsInPurchaseReturn"] = Processor.process_getItemsInPurchaseReturn
10886 manish.sha 2939
    self._processMap["getScansForInventoryItem"] = Processor.process_getScansForInventoryItem
12531 manish.sha 2940
    self._processMap["checkGrnImeiStatus"] = Processor.process_checkGrnImeiStatus
12800 manish.sha 2941
    self._processMap["getInventoryAgeConsideredItems"] = Processor.process_getInventoryAgeConsideredItems
13529 manish.sha 2942
    self._processMap["getCompleteMovementForThirdPartyWarehouse"] = Processor.process_getCompleteMovementForThirdPartyWarehouse
14491 manish.sha 2943
    self._processMap["getAllDoaOutInventoryItems"] = Processor.process_getAllDoaOutInventoryItems
2821 chandransh 2944
 
2945
  def process(self, iprot, oprot):
2946
    (name, type, seqid) = iprot.readMessageBegin()
2947
    if name not in self._processMap:
2948
      iprot.skip(TType.STRUCT)
2949
      iprot.readMessageEnd()
2950
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2951
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2952
      x.write(oprot)
2953
      oprot.writeMessageEnd()
2954
      oprot.trans.flush()
2955
      return
2956
    else:
2957
      self._processMap[name](self, seqid, iprot, oprot)
2958
    return True
2959
 
4501 mandeep.dh 2960
  def process_getInventoryItem(self, seqid, iprot, oprot):
2961
    args = getInventoryItem_args()
2832 chandransh 2962
    args.read(iprot)
2963
    iprot.readMessageEnd()
4501 mandeep.dh 2964
    result = getInventoryItem_result()
4541 mandeep.dh 2965
    try:
2966
      result.success = self._handler.getInventoryItem(args.serialNumber)
2967
    except WarehouseServiceException, wex:
2968
      result.wex = wex
4501 mandeep.dh 2969
    oprot.writeMessageBegin("getInventoryItem", TMessageType.REPLY, seqid)
2832 chandransh 2970
    result.write(oprot)
2971
    oprot.writeMessageEnd()
2972
    oprot.trans.flush()
2973
 
5361 mandeep.dh 2974
  def process_getNonSeralizedInventoryItem(self, seqid, iprot, oprot):
2975
    args = getNonSeralizedInventoryItem_args()
2821 chandransh 2976
    args.read(iprot)
2977
    iprot.readMessageEnd()
5361 mandeep.dh 2978
    result = getNonSeralizedInventoryItem_result()
2979
    try:
8565 amar.kumar 2980
      result.success = self._handler.getNonSeralizedInventoryItem(args.itemNumber, args.itemId, args.fulfilmentWarehouseId, args.billingWarehouseId)
5361 mandeep.dh 2981
    except WarehouseServiceException, wex:
2982
      result.wex = wex
2983
    oprot.writeMessageBegin("getNonSeralizedInventoryItem", TMessageType.REPLY, seqid)
2821 chandransh 2984
    result.write(oprot)
2985
    oprot.writeMessageEnd()
2986
    oprot.trans.flush()
2987
 
4501 mandeep.dh 2988
  def process_scan(self, seqid, iprot, oprot):
2989
    args = scan_args()
3383 chandransh 2990
    args.read(iprot)
2991
    iprot.readMessageEnd()
4501 mandeep.dh 2992
    result = scan_result()
3383 chandransh 2993
    try:
7410 amar.kumar 2994
      self._handler.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId, args.transferLotId)
3383 chandransh 2995
    except WarehouseServiceException, wex:
2996
      result.wex = wex
4501 mandeep.dh 2997
    oprot.writeMessageBegin("scan", TMessageType.REPLY, seqid)
3383 chandransh 2998
    result.write(oprot)
2999
    oprot.writeMessageEnd()
3000
    oprot.trans.flush()
3001
 
10489 amar.kumar 3002
  def process_genericScan(self, seqid, iprot, oprot):
3003
    args = genericScan_args()
3004
    args.read(iprot)
3005
    iprot.readMessageEnd()
3006
    result = genericScan_result()
3007
    try:
3008
      self._handler.genericScan(args.inventoryItem, args.scan)
3009
    except WarehouseServiceException, wex:
3010
      result.wex = wex
3011
    oprot.writeMessageBegin("genericScan", TMessageType.REPLY, seqid)
3012
    result.write(oprot)
3013
    oprot.writeMessageEnd()
3014
    oprot.trans.flush()
3015
 
4501 mandeep.dh 3016
  def process_scanSerializedItemForOrder(self, seqid, iprot, oprot):
3017
    args = scanSerializedItemForOrder_args()
2821 chandransh 3018
    args.read(iprot)
3019
    iprot.readMessageEnd()
4501 mandeep.dh 3020
    result = scanSerializedItemForOrder_result()
2821 chandransh 3021
    try:
5110 mandeep.dh 3022
      result.success = self._handler.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId)
2821 chandransh 3023
    except WarehouseServiceException, wex:
3024
      result.wex = wex
4501 mandeep.dh 3025
    oprot.writeMessageBegin("scanSerializedItemForOrder", TMessageType.REPLY, seqid)
2821 chandransh 3026
    result.write(oprot)
3027
    oprot.writeMessageEnd()
3028
    oprot.trans.flush()
3029
 
4501 mandeep.dh 3030
  def process_scanForOrder(self, seqid, iprot, oprot):
3031
    args = scanForOrder_args()
2821 chandransh 3032
    args.read(iprot)
3033
    iprot.readMessageEnd()
4501 mandeep.dh 3034
    result = scanForOrder_result()
2821 chandransh 3035
    try:
5361 mandeep.dh 3036
      result.success = self._handler.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId)
2821 chandransh 3037
    except WarehouseServiceException, wex:
3038
      result.wex = wex
4501 mandeep.dh 3039
    oprot.writeMessageBegin("scanForOrder", TMessageType.REPLY, seqid)
2821 chandransh 3040
    result.write(oprot)
3041
    oprot.writeMessageEnd()
3042
    oprot.trans.flush()
3043
 
4501 mandeep.dh 3044
  def process_createItemNumberMapping(self, seqid, iprot, oprot):
3045
    args = createItemNumberMapping_args()
3046
    args.read(iprot)
3047
    iprot.readMessageEnd()
3048
    result = createItemNumberMapping_result()
3049
    self._handler.createItemNumberMapping(args.itemNumber, args.itemId)
3050
    oprot.writeMessageBegin("createItemNumberMapping", TMessageType.REPLY, seqid)
3051
    result.write(oprot)
3052
    oprot.writeMessageEnd()
3053
    oprot.trans.flush()
2821 chandransh 3054
 
4620 amit.gupta 3055
  def process_getItemNumbers(self, seqid, iprot, oprot):
3056
    args = getItemNumbers_args()
3057
    args.read(iprot)
3058
    iprot.readMessageEnd()
3059
    result = getItemNumbers_result()
3060
    result.success = self._handler.getItemNumbers(args.itemId)
3061
    oprot.writeMessageBegin("getItemNumbers", TMessageType.REPLY, seqid)
3062
    result.write(oprot)
3063
    oprot.writeMessageEnd()
3064
    oprot.trans.flush()
4501 mandeep.dh 3065
 
5110 mandeep.dh 3066
  def process_getItemIds(self, seqid, iprot, oprot):
3067
    args = getItemIds_args()
3068
    args.read(iprot)
3069
    iprot.readMessageEnd()
3070
    result = getItemIds_result()
3071
    result.success = self._handler.getItemIds(args.itemNumber)
3072
    oprot.writeMessageBegin("getItemIds", TMessageType.REPLY, seqid)
3073
    result.write(oprot)
3074
    oprot.writeMessageEnd()
3075
    oprot.trans.flush()
4620 amit.gupta 3076
 
5185 mandeep.dh 3077
  def process_getInventoryItemsFromLastScanType(self, seqid, iprot, oprot):
3078
    args = getInventoryItemsFromLastScanType_args()
3079
    args.read(iprot)
3080
    iprot.readMessageEnd()
3081
    result = getInventoryItemsFromLastScanType_result()
3082
    try:
3083
      result.success = self._handler.getInventoryItemsFromLastScanType(args.lastScanType)
3084
    except WarehouseServiceException, wex:
3085
      result.wex = wex
3086
    oprot.writeMessageBegin("getInventoryItemsFromLastScanType", TMessageType.REPLY, seqid)
3087
    result.write(oprot)
3088
    oprot.writeMessageEnd()
3089
    oprot.trans.flush()
5110 mandeep.dh 3090
 
5185 mandeep.dh 3091
  def process_getInventoryItemFromId(self, seqid, iprot, oprot):
3092
    args = getInventoryItemFromId_args()
3093
    args.read(iprot)
3094
    iprot.readMessageEnd()
3095
    result = getInventoryItemFromId_result()
3096
    try:
3097
      result.success = self._handler.getInventoryItemFromId(args.inventoryItemId)
3098
    except WarehouseServiceException, wex:
3099
      result.wex = wex
3100
    oprot.writeMessageBegin("getInventoryItemFromId", TMessageType.REPLY, seqid)
3101
    result.write(oprot)
3102
    oprot.writeMessageEnd()
3103
    oprot.trans.flush()
3104
 
5372 mandeep.dh 3105
  def process_getPurchaseScans(self, seqid, iprot, oprot):
3106
    args = getPurchaseScans_args()
3107
    args.read(iprot)
3108
    iprot.readMessageEnd()
3109
    result = getPurchaseScans_result()
3110
    result.success = self._handler.getPurchaseScans(args.startDate, args.endDate)
3111
    oprot.writeMessageBegin("getPurchaseScans", TMessageType.REPLY, seqid)
3112
    result.write(oprot)
3113
    oprot.writeMessageEnd()
3114
    oprot.trans.flush()
5185 mandeep.dh 3115
 
7216 amar.kumar 3116
  def process_getPurchaseScansByGrnDate(self, seqid, iprot, oprot):
3117
    args = getPurchaseScansByGrnDate_args()
3118
    args.read(iprot)
3119
    iprot.readMessageEnd()
3120
    result = getPurchaseScansByGrnDate_result()
3121
    result.success = self._handler.getPurchaseScansByGrnDate(args.startDate, args.endDate)
3122
    oprot.writeMessageBegin("getPurchaseScansByGrnDate", TMessageType.REPLY, seqid)
3123
    result.write(oprot)
3124
    oprot.writeMessageEnd()
3125
    oprot.trans.flush()
3126
 
10407 amar.kumar 3127
  def process_getEmptyGrnsByDate(self, seqid, iprot, oprot):
3128
    args = getEmptyGrnsByDate_args()
3129
    args.read(iprot)
3130
    iprot.readMessageEnd()
3131
    result = getEmptyGrnsByDate_result()
3132
    result.success = self._handler.getEmptyGrnsByDate(args.startDate, args.endDate)
3133
    oprot.writeMessageBegin("getEmptyGrnsByDate", TMessageType.REPLY, seqid)
3134
    result.write(oprot)
3135
    oprot.writeMessageEnd()
3136
    oprot.trans.flush()
3137
 
5496 mandeep.dh 3138
  def process_fetchScansPerInvoiceNumber(self, seqid, iprot, oprot):
3139
    args = fetchScansPerInvoiceNumber_args()
3140
    args.read(iprot)
3141
    iprot.readMessageEnd()
3142
    result = fetchScansPerInvoiceNumber_result()
3143
    result.success = self._handler.fetchScansPerInvoiceNumber(args.date)
3144
    oprot.writeMessageBegin("fetchScansPerInvoiceNumber", TMessageType.REPLY, seqid)
3145
    result.write(oprot)
3146
    oprot.writeMessageEnd()
3147
    oprot.trans.flush()
5372 mandeep.dh 3148
 
5620 mandeep.dh 3149
  def process_getInventoryItemFromOrder(self, seqid, iprot, oprot):
3150
    args = getInventoryItemFromOrder_args()
3151
    args.read(iprot)
3152
    iprot.readMessageEnd()
3153
    result = getInventoryItemFromOrder_result()
3154
    try:
3155
      result.success = self._handler.getInventoryItemFromOrder(args.orderId)
3156
    except WarehouseServiceException, we:
3157
      result.we = we
3158
    oprot.writeMessageBegin("getInventoryItemFromOrder", TMessageType.REPLY, seqid)
3159
    result.write(oprot)
3160
    oprot.writeMessageEnd()
3161
    oprot.trans.flush()
5496 mandeep.dh 3162
 
5711 mandeep.dh 3163
  def process_getInventoryAge(self, seqid, iprot, oprot):
3164
    args = getInventoryAge_args()
3165
    args.read(iprot)
3166
    iprot.readMessageEnd()
3167
    result = getInventoryAge_result()
3168
    result.success = self._handler.getInventoryAge()
3169
    oprot.writeMessageBegin("getInventoryAge", TMessageType.REPLY, seqid)
3170
    result.write(oprot)
3171
    oprot.writeMessageEnd()
3172
    oprot.trans.flush()
5620 mandeep.dh 3173
 
6361 rajveer 3174
  def process_getInventoryScansForItem(self, seqid, iprot, oprot):
3175
    args = getInventoryScansForItem_args()
3176
    args.read(iprot)
3177
    iprot.readMessageEnd()
3178
    result = getInventoryScansForItem_result()
3179
    result.success = self._handler.getInventoryScansForItem(args.itemId, args.fromDate, args.toDate)
3180
    oprot.writeMessageBegin("getInventoryScansForItem", TMessageType.REPLY, seqid)
3181
    result.write(oprot)
3182
    oprot.writeMessageEnd()
3183
    oprot.trans.flush()
5711 mandeep.dh 3184
 
6361 rajveer 3185
  def process_getScanRecordsForSerialNumber(self, seqid, iprot, oprot):
3186
    args = getScanRecordsForSerialNumber_args()
3187
    args.read(iprot)
3188
    iprot.readMessageEnd()
3189
    result = getScanRecordsForSerialNumber_result()
3190
    result.success = self._handler.getScanRecordsForSerialNumber(args.serialNumber)
3191
    oprot.writeMessageBegin("getScanRecordsForSerialNumber", TMessageType.REPLY, seqid)
3192
    result.write(oprot)
3193
    oprot.writeMessageEnd()
3194
    oprot.trans.flush()
3195
 
6467 amar.kumar 3196
  def process_scanForPurchaseReturn(self, seqid, iprot, oprot):
3197
    args = scanForPurchaseReturn_args()
3198
    args.read(iprot)
3199
    iprot.readMessageEnd()
3200
    result = scanForPurchaseReturn_result()
3201
    try:
10864 manish.sha 3202
      result.success = self._handler.scanForPurchaseReturn(args.saleReturnItems, args.vendorId, args.billingWarehouseId)
6467 amar.kumar 3203
    except WarehouseServiceException, ex:
3204
      result.ex = ex
3205
    oprot.writeMessageBegin("scanForPurchaseReturn", TMessageType.REPLY, seqid)
3206
    result.write(oprot)
3207
    oprot.writeMessageEnd()
3208
    oprot.trans.flush()
6361 rajveer 3209
 
6630 amar.kumar 3210
  def process_scanForLostItem(self, seqid, iprot, oprot):
3211
    args = scanForLostItem_args()
3212
    args.read(iprot)
3213
    iprot.readMessageEnd()
3214
    result = scanForLostItem_result()
3215
    try:
7718 amar.kumar 3216
      self._handler.scanForLostItem(args.lostItems, args.vendorId, args.billingWarehouseId)
6630 amar.kumar 3217
    except WarehouseServiceException, ex:
3218
      result.ex = ex
3219
    oprot.writeMessageBegin("scanForLostItem", TMessageType.REPLY, seqid)
3220
    result.write(oprot)
3221
    oprot.writeMessageEnd()
3222
    oprot.trans.flush()
6467 amar.kumar 3223
 
6630 amar.kumar 3224
  def process_getCurrentSerializedInventoryByScans(self, seqid, iprot, oprot):
3225
    args = getCurrentSerializedInventoryByScans_args()
3226
    args.read(iprot)
3227
    iprot.readMessageEnd()
3228
    result = getCurrentSerializedInventoryByScans_result()
7715 vikram.rag 3229
    result.success = self._handler.getCurrentSerializedInventoryByScans(args.physicalWarehouseId)
6630 amar.kumar 3230
    oprot.writeMessageBegin("getCurrentSerializedInventoryByScans", TMessageType.REPLY, seqid)
3231
    result.write(oprot)
3232
    oprot.writeMessageEnd()
3233
    oprot.trans.flush()
3234
 
3235
  def process_getCurrentNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3236
    args = getCurrentNonSerializedInventoryByScans_args()
3237
    args.read(iprot)
3238
    iprot.readMessageEnd()
3239
    result = getCurrentNonSerializedInventoryByScans_result()
7715 vikram.rag 3240
    result.success = self._handler.getCurrentNonSerializedInventoryByScans(args.physicalWarehouseId)
6630 amar.kumar 3241
    oprot.writeMessageBegin("getCurrentNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3242
    result.write(oprot)
3243
    oprot.writeMessageEnd()
3244
    oprot.trans.flush()
3245
 
6762 amar.kumar 3246
  def process_getHistoricSerializedInventoryByScans(self, seqid, iprot, oprot):
3247
    args = getHistoricSerializedInventoryByScans_args()
3248
    args.read(iprot)
3249
    iprot.readMessageEnd()
3250
    result = getHistoricSerializedInventoryByScans_result()
3251
    result.success = self._handler.getHistoricSerializedInventoryByScans(args.date)
3252
    oprot.writeMessageBegin("getHistoricSerializedInventoryByScans", TMessageType.REPLY, seqid)
3253
    result.write(oprot)
3254
    oprot.writeMessageEnd()
3255
    oprot.trans.flush()
6630 amar.kumar 3256
 
6762 amar.kumar 3257
  def process_getHistoricNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3258
    args = getHistoricNonSerializedInventoryByScans_args()
3259
    args.read(iprot)
3260
    iprot.readMessageEnd()
3261
    result = getHistoricNonSerializedInventoryByScans_result()
3262
    result.success = self._handler.getHistoricNonSerializedInventoryByScans(args.date)
3263
    oprot.writeMessageBegin("getHistoricNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3264
    result.write(oprot)
3265
    oprot.writeMessageEnd()
3266
    oprot.trans.flush()
3267
 
10407 amar.kumar 3268
  def process_getOurHistoricSerializedInventoryByScans(self, seqid, iprot, oprot):
3269
    args = getOurHistoricSerializedInventoryByScans_args()
3270
    args.read(iprot)
3271
    iprot.readMessageEnd()
3272
    result = getOurHistoricSerializedInventoryByScans_result()
3273
    result.success = self._handler.getOurHistoricSerializedInventoryByScans(args.date)
3274
    oprot.writeMessageBegin("getOurHistoricSerializedInventoryByScans", TMessageType.REPLY, seqid)
3275
    result.write(oprot)
3276
    oprot.writeMessageEnd()
3277
    oprot.trans.flush()
3278
 
3279
  def process_getOurHistoricNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3280
    args = getOurHistoricNonSerializedInventoryByScans_args()
3281
    args.read(iprot)
3282
    iprot.readMessageEnd()
3283
    result = getOurHistoricNonSerializedInventoryByScans_result()
3284
    result.success = self._handler.getOurHistoricNonSerializedInventoryByScans(args.date)
3285
    oprot.writeMessageBegin("getOurHistoricNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3286
    result.write(oprot)
3287
    oprot.writeMessageEnd()
3288
    oprot.trans.flush()
3289
 
6762 amar.kumar 3290
  def process_scanForOursExternalSale(self, seqid, iprot, oprot):
3291
    args = scanForOursExternalSale_args()
3292
    args.read(iprot)
3293
    iprot.readMessageEnd()
3294
    result = scanForOursExternalSale_result()
3295
    try:
7672 rajveer 3296
      result.success = self._handler.scanForOursExternalSale(args.itemId, args.serialNumber, args.itemNumber, args.invoiceNumber, args.warehouseId, args.unitPrice, args.nlc, args.orderId)
6762 amar.kumar 3297
    except WarehouseServiceException, ex:
3298
      result.ex = ex
3299
    oprot.writeMessageBegin("scanForOursExternalSale", TMessageType.REPLY, seqid)
3300
    result.write(oprot)
3301
    oprot.writeMessageEnd()
3302
    oprot.trans.flush()
3303
 
3304
  def process_scanForOursExternalSaleReturn(self, seqid, iprot, oprot):
3305
    args = scanForOursExternalSaleReturn_args()
3306
    args.read(iprot)
3307
    iprot.readMessageEnd()
3308
    result = scanForOursExternalSaleReturn_result()
7410 amar.kumar 3309
    try:
3310
      self._handler.scanForOursExternalSaleReturn(args.orderId, args.unitPrice)
3311
    except WarehouseServiceException, ex:
3312
      result.ex = ex
6762 amar.kumar 3313
    oprot.writeMessageBegin("scanForOursExternalSaleReturn", TMessageType.REPLY, seqid)
3314
    result.write(oprot)
3315
    oprot.writeMessageEnd()
3316
    oprot.trans.flush()
3317
 
6880 amar.kumar 3318
  def process_getMovementNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3319
    args = getMovementNonSerializedInventoryByScans_args()
3320
    args.read(iprot)
3321
    iprot.readMessageEnd()
3322
    result = getMovementNonSerializedInventoryByScans_result()
3323
    result.success = self._handler.getMovementNonSerializedInventoryByScans(args.startDate, args.endDate)
3324
    oprot.writeMessageBegin("getMovementNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3325
    result.write(oprot)
3326
    oprot.writeMessageEnd()
3327
    oprot.trans.flush()
6762 amar.kumar 3328
 
6880 amar.kumar 3329
  def process_getMovementSerializedInventoryByScans(self, seqid, iprot, oprot):
3330
    args = getMovementSerializedInventoryByScans_args()
3331
    args.read(iprot)
3332
    iprot.readMessageEnd()
3333
    result = getMovementSerializedInventoryByScans_result()
3334
    result.success = self._handler.getMovementSerializedInventoryByScans(args.startDate, args.endDate)
3335
    oprot.writeMessageBegin("getMovementSerializedInventoryByScans", TMessageType.REPLY, seqid)
3336
    result.write(oprot)
3337
    oprot.writeMessageEnd()
3338
    oprot.trans.flush()
3339
 
7216 amar.kumar 3340
  def process_getCompleteMovementSerializedInventoryByScans(self, seqid, iprot, oprot):
3341
    args = getCompleteMovementSerializedInventoryByScans_args()
3342
    args.read(iprot)
3343
    iprot.readMessageEnd()
3344
    result = getCompleteMovementSerializedInventoryByScans_result()
3345
    result.success = self._handler.getCompleteMovementSerializedInventoryByScans(args.startDate, args.endDate)
3346
    oprot.writeMessageBegin("getCompleteMovementSerializedInventoryByScans", TMessageType.REPLY, seqid)
3347
    result.write(oprot)
3348
    oprot.writeMessageEnd()
3349
    oprot.trans.flush()
3350
 
3351
  def process_getCompleteMovementNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3352
    args = getCompleteMovementNonSerializedInventoryByScans_args()
3353
    args.read(iprot)
3354
    iprot.readMessageEnd()
3355
    result = getCompleteMovementNonSerializedInventoryByScans_result()
3356
    result.success = self._handler.getCompleteMovementNonSerializedInventoryByScans(args.startDate, args.endDate)
3357
    oprot.writeMessageBegin("getCompleteMovementNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3358
    result.write(oprot)
3359
    oprot.writeMessageEnd()
3360
    oprot.trans.flush()
3361
 
7190 amar.kumar 3362
  def process_scanfreebie(self, seqid, iprot, oprot):
3363
    args = scanfreebie_args()
3364
    args.read(iprot)
3365
    iprot.readMessageEnd()
3366
    result = scanfreebie_result()
3367
    try:
3368
      result.success = self._handler.scanfreebie(args.orderId, args.freebieItemId, args.freebieWarehouseId, args.scanType)
3369
    except WarehouseServiceException, wex:
3370
      result.wex = wex
3371
    oprot.writeMessageBegin("scanfreebie", TMessageType.REPLY, seqid)
3372
    result.write(oprot)
3373
    oprot.writeMessageEnd()
3374
    oprot.trans.flush()
6880 amar.kumar 3375
 
7199 amar.kumar 3376
  def process_reshipfreebie(self, seqid, iprot, oprot):
3377
    args = reshipfreebie_args()
3378
    args.read(iprot)
3379
    iprot.readMessageEnd()
3380
    result = reshipfreebie_result()
3381
    try:
3382
      self._handler.reshipfreebie(args.oldOrderId, args.newOrderId, args.freebieItemId, args.scanType)
3383
    except WarehouseServiceException, wex:
3384
      result.wex = wex
3385
    oprot.writeMessageBegin("reshipfreebie", TMessageType.REPLY, seqid)
3386
    result.write(oprot)
3387
    oprot.writeMessageEnd()
3388
    oprot.trans.flush()
7190 amar.kumar 3389
 
7410 amar.kumar 3390
  def process_isItemTransferAllowed(self, seqid, iprot, oprot):
3391
    args = isItemTransferAllowed_args()
3392
    args.read(iprot)
3393
    iprot.readMessageEnd()
3394
    result = isItemTransferAllowed_result()
3395
    result.success = self._handler.isItemTransferAllowed(args.warehouseId, args.transferWarehouseId)
3396
    oprot.writeMessageBegin("isItemTransferAllowed", TMessageType.REPLY, seqid)
3397
    result.write(oprot)
3398
    oprot.writeMessageEnd()
3399
    oprot.trans.flush()
7199 amar.kumar 3400
 
7410 amar.kumar 3401
  def process_createTransferLot(self, seqid, iprot, oprot):
3402
    args = createTransferLot_args()
3403
    args.read(iprot)
3404
    iprot.readMessageEnd()
3405
    result = createTransferLot_result()
3406
    try:
3407
      result.success = self._handler.createTransferLot(args.originWarehouseId, args.destWarehouseId)
3408
    except WarehouseServiceException, wex:
3409
      result.wex = wex
3410
    oprot.writeMessageBegin("createTransferLot", TMessageType.REPLY, seqid)
3411
    result.write(oprot)
3412
    oprot.writeMessageEnd()
3413
    oprot.trans.flush()
3414
 
3415
  def process_getTransferLot(self, seqid, iprot, oprot):
3416
    args = getTransferLot_args()
3417
    args.read(iprot)
3418
    iprot.readMessageEnd()
3419
    result = getTransferLot_result()
3420
    try:
3421
      result.success = self._handler.getTransferLot(args.transferLotId)
3422
    except WarehouseServiceException, wex:
3423
      result.wex = wex
3424
    oprot.writeMessageBegin("getTransferLot", TMessageType.REPLY, seqid)
3425
    result.write(oprot)
3426
    oprot.writeMessageEnd()
3427
    oprot.trans.flush()
3428
 
3429
  def process_markTransferLotAsReceived(self, seqid, iprot, oprot):
3430
    args = markTransferLotAsReceived_args()
3431
    args.read(iprot)
3432
    iprot.readMessageEnd()
3433
    result = markTransferLotAsReceived_result()
3434
    try:
3435
      self._handler.markTransferLotAsReceived(args.id, args.remoteTransferRefNumber)
3436
    except WarehouseServiceException, wex:
3437
      result.wex = wex
3438
    oprot.writeMessageBegin("markTransferLotAsReceived", TMessageType.REPLY, seqid)
3439
    result.write(oprot)
3440
    oprot.writeMessageEnd()
3441
    oprot.trans.flush()
3442
 
3443
  def process_getTransferLotsByDate(self, seqid, iprot, oprot):
3444
    args = getTransferLotsByDate_args()
3445
    args.read(iprot)
3446
    iprot.readMessageEnd()
3447
    result = getTransferLotsByDate_result()
3448
    try:
3449
      result.success = self._handler.getTransferLotsByDate(args.fromDate, args.toDate)
3450
    except WarehouseServiceException, wex:
3451
      result.wex = wex
3452
    oprot.writeMessageBegin("getTransferLotsByDate", TMessageType.REPLY, seqid)
3453
    result.write(oprot)
3454
    oprot.writeMessageEnd()
3455
    oprot.trans.flush()
3456
 
3457
  def process_getAllowedDestinationWarehousesForTransfer(self, seqid, iprot, oprot):
3458
    args = getAllowedDestinationWarehousesForTransfer_args()
3459
    args.read(iprot)
3460
    iprot.readMessageEnd()
3461
    result = getAllowedDestinationWarehousesForTransfer_result()
3462
    result.success = self._handler.getAllowedDestinationWarehousesForTransfer(args.warehouseId)
3463
    oprot.writeMessageBegin("getAllowedDestinationWarehousesForTransfer", TMessageType.REPLY, seqid)
3464
    result.write(oprot)
3465
    oprot.writeMessageEnd()
3466
    oprot.trans.flush()
3467
 
3468
  def process_getItemsInTransferLot(self, seqid, iprot, oprot):
3469
    args = getItemsInTransferLot_args()
3470
    args.read(iprot)
3471
    iprot.readMessageEnd()
3472
    result = getItemsInTransferLot_result()
3473
    result.success = self._handler.getItemsInTransferLot(args.transferLotId)
3474
    oprot.writeMessageBegin("getItemsInTransferLot", TMessageType.REPLY, seqid)
3475
    result.write(oprot)
3476
    oprot.writeMessageEnd()
3477
    oprot.trans.flush()
3478
 
3479
  def process_markItemsAsReceivedForTransferLot(self, seqid, iprot, oprot):
3480
    args = markItemsAsReceivedForTransferLot_args()
3481
    args.read(iprot)
3482
    iprot.readMessageEnd()
3483
    result = markItemsAsReceivedForTransferLot_result()
3484
    try:
3485
      self._handler.markItemsAsReceivedForTransferLot(args.id)
3486
    except WarehouseServiceException, wex:
3487
      result.wex = wex
3488
    oprot.writeMessageBegin("markItemsAsReceivedForTransferLot", TMessageType.REPLY, seqid)
3489
    result.write(oprot)
3490
    oprot.writeMessageEnd()
3491
    oprot.trans.flush()
3492
 
3493
  def process_updateTransferLotAfterItemReceive(self, seqid, iprot, oprot):
3494
    args = updateTransferLotAfterItemReceive_args()
3495
    args.read(iprot)
3496
    iprot.readMessageEnd()
3497
    result = updateTransferLotAfterItemReceive_result()
3498
    try:
3499
      result.success = self._handler.updateTransferLotAfterItemReceive(args.id)
3500
    except WarehouseServiceException, wex:
3501
      result.wex = wex
3502
    oprot.writeMessageBegin("updateTransferLotAfterItemReceive", TMessageType.REPLY, seqid)
3503
    result.write(oprot)
3504
    oprot.writeMessageEnd()
3505
    oprot.trans.flush()
3506
 
7459 amar.kumar 3507
  def process_scanForTransferOut(self, seqid, iprot, oprot):
3508
    args = scanForTransferOut_args()
7410 amar.kumar 3509
    args.read(iprot)
3510
    iprot.readMessageEnd()
7459 amar.kumar 3511
    result = scanForTransferOut_result()
7410 amar.kumar 3512
    try:
7459 amar.kumar 3513
      self._handler.scanForTransferOut(args.inventoryItems, args.type, args.transferLotId)
7410 amar.kumar 3514
    except WarehouseServiceException, wex:
3515
      result.wex = wex
7459 amar.kumar 3516
    oprot.writeMessageBegin("scanForTransferOut", TMessageType.REPLY, seqid)
7410 amar.kumar 3517
    result.write(oprot)
3518
    oprot.writeMessageEnd()
3519
    oprot.trans.flush()
3520
 
7459 amar.kumar 3521
  def process_scanForTransferIn(self, seqid, iprot, oprot):
3522
    args = scanForTransferIn_args()
3523
    args.read(iprot)
3524
    iprot.readMessageEnd()
3525
    result = scanForTransferIn_result()
3526
    try:
3527
      self._handler.scanForTransferIn(args.inventoryItems, args.type, args.transferLotId)
3528
    except WarehouseServiceException, wex:
3529
      result.wex = wex
3530
    oprot.writeMessageBegin("scanForTransferIn", TMessageType.REPLY, seqid)
3531
    result.write(oprot)
3532
    oprot.writeMessageEnd()
3533
    oprot.trans.flush()
7410 amar.kumar 3534
 
7459 amar.kumar 3535
  def process_scanForOursThirdPartyReceive(self, seqid, iprot, oprot):
3536
    args = scanForOursThirdPartyReceive_args()
3537
    args.read(iprot)
3538
    iprot.readMessageEnd()
3539
    result = scanForOursThirdPartyReceive_result()
3540
    try:
3541
      self._handler.scanForOursThirdPartyReceive(args.inventoryItems, args.id)
3542
    except WarehouseServiceException, wex:
3543
      result.wex = wex
3544
    oprot.writeMessageBegin("scanForOursThirdPartyReceive", TMessageType.REPLY, seqid)
3545
    result.write(oprot)
3546
    oprot.writeMessageEnd()
3547
    oprot.trans.flush()
3548
 
7574 amar.kumar 3549
  def process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, seqid, iprot, oprot):
3550
    args = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args()
3551
    args.read(iprot)
3552
    iprot.readMessageEnd()
3553
    result = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result()
3554
    try:
3555
      result.success = self._handler.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(args.itemId, args.physicalWarehouseId)
3556
    except WarehouseServiceException, wex:
3557
      result.wex = wex
3558
    oprot.writeMessageBegin("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", TMessageType.REPLY, seqid)
3559
    result.write(oprot)
3560
    oprot.writeMessageEnd()
3561
    oprot.trans.flush()
7459 amar.kumar 3562
 
7672 rajveer 3563
  def process_getInTransitInventory(self, seqid, iprot, oprot):
3564
    args = getInTransitInventory_args()
3565
    args.read(iprot)
3566
    iprot.readMessageEnd()
3567
    result = getInTransitInventory_result()
3568
    result.success = self._handler.getInTransitInventory(args.originWarehouseId)
3569
    oprot.writeMessageBegin("getInTransitInventory", TMessageType.REPLY, seqid)
3570
    result.write(oprot)
3571
    oprot.writeMessageEnd()
3572
    oprot.trans.flush()
7574 amar.kumar 3573
 
7968 amar.kumar 3574
  def process_isItemAvailableForSale(self, seqid, iprot, oprot):
3575
    args = isItemAvailableForSale_args()
3576
    args.read(iprot)
3577
    iprot.readMessageEnd()
3578
    result = isItemAvailableForSale_result()
3579
    try:
3580
      result.success = self._handler.isItemAvailableForSale(args.itemId, args.serialNumber, args.warehouseId)
3581
    except WarehouseServiceException, wex:
3582
      result.wex = wex
3583
    oprot.writeMessageBegin("isItemAvailableForSale", TMessageType.REPLY, seqid)
3584
    result.write(oprot)
3585
    oprot.writeMessageEnd()
3586
    oprot.trans.flush()
7672 rajveer 3587
 
7968 amar.kumar 3588
  def process_getHistoricBadInventoryByScans(self, seqid, iprot, oprot):
3589
    args = getHistoricBadInventoryByScans_args()
3590
    args.read(iprot)
3591
    iprot.readMessageEnd()
3592
    result = getHistoricBadInventoryByScans_result()
3593
    try:
3594
      result.success = self._handler.getHistoricBadInventoryByScans(args.date)
3595
    except WarehouseServiceException, wex:
3596
      result.wex = wex
3597
    oprot.writeMessageBegin("getHistoricBadInventoryByScans", TMessageType.REPLY, seqid)
3598
    result.write(oprot)
3599
    oprot.writeMessageEnd()
3600
    oprot.trans.flush()
3601
 
8565 amar.kumar 3602
  def process_scanForBadSale(self, seqid, iprot, oprot):
3603
    args = scanForBadSale_args()
3604
    args.read(iprot)
3605
    iprot.readMessageEnd()
3606
    result = scanForBadSale_result()
8717 amar.kumar 3607
    try:
3608
      result.success = self._handler.scanForBadSale(args.serialNumber, args.itemNumber, args.itemId, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId)
3609
    except WarehouseServiceException, wex:
3610
      result.wex = wex
8565 amar.kumar 3611
    oprot.writeMessageBegin("scanForBadSale", TMessageType.REPLY, seqid)
3612
    result.write(oprot)
3613
    oprot.writeMessageEnd()
3614
    oprot.trans.flush()
7968 amar.kumar 3615
 
10120 manish.sha 3616
  def process_getTransferLotItemsForMarkReceive(self, seqid, iprot, oprot):
3617
    args = getTransferLotItemsForMarkReceive_args()
3618
    args.read(iprot)
3619
    iprot.readMessageEnd()
3620
    result = getTransferLotItemsForMarkReceive_result()
3621
    try:
3622
      result.success = self._handler.getTransferLotItemsForMarkReceive(args.transferLotId, args.scanType)
3623
    except WarehouseServiceException, wex:
3624
      result.wex = wex
3625
    oprot.writeMessageBegin("getTransferLotItemsForMarkReceive", TMessageType.REPLY, seqid)
3626
    result.write(oprot)
3627
    oprot.writeMessageEnd()
3628
    oprot.trans.flush()
8565 amar.kumar 3629
 
10120 manish.sha 3630
  def process_markItemsAsReceivedForTransferLotPartial(self, seqid, iprot, oprot):
3631
    args = markItemsAsReceivedForTransferLotPartial_args()
3632
    args.read(iprot)
3633
    iprot.readMessageEnd()
3634
    result = markItemsAsReceivedForTransferLotPartial_result()
3635
    try:
3636
      self._handler.markItemsAsReceivedForTransferLotPartial(args.inventoryItems, args.transferLotId)
3637
    except WarehouseServiceException, wex:
3638
      result.wex = wex
3639
    oprot.writeMessageBegin("markItemsAsReceivedForTransferLotPartial", TMessageType.REPLY, seqid)
3640
    result.write(oprot)
3641
    oprot.writeMessageEnd()
3642
    oprot.trans.flush()
3643
 
3644
  def process_markTransferLotAsReceivedPartial(self, seqid, iprot, oprot):
3645
    args = markTransferLotAsReceivedPartial_args()
3646
    args.read(iprot)
3647
    iprot.readMessageEnd()
3648
    result = markTransferLotAsReceivedPartial_result()
3649
    try:
3650
      self._handler.markTransferLotAsReceivedPartial(args.id, args.remoteTransferRefNumber)
3651
    except WarehouseServiceException, wex:
3652
      result.wex = wex
3653
    oprot.writeMessageBegin("markTransferLotAsReceivedPartial", TMessageType.REPLY, seqid)
3654
    result.write(oprot)
3655
    oprot.writeMessageEnd()
3656
    oprot.trans.flush()
3657
 
10690 manish.sha 3658
  def process_getInventoryItemScannedInForPO(self, seqid, iprot, oprot):
3659
    args = getInventoryItemScannedInForPO_args()
3660
    args.read(iprot)
3661
    iprot.readMessageEnd()
3662
    result = getInventoryItemScannedInForPO_result()
3663
    try:
3664
      result.success = self._handler.getInventoryItemScannedInForPO(args.itemId, args.purchaseIds)
3665
    except WarehouseServiceException, wex:
3666
      result.wex = wex
3667
    oprot.writeMessageBegin("getInventoryItemScannedInForPO", TMessageType.REPLY, seqid)
3668
    result.write(oprot)
3669
    oprot.writeMessageEnd()
3670
    oprot.trans.flush()
10120 manish.sha 3671
 
10690 manish.sha 3672
  def process_getAmazonTransferredSkuDetails(self, seqid, iprot, oprot):
3673
    args = getAmazonTransferredSkuDetails_args()
3674
    args.read(iprot)
3675
    iprot.readMessageEnd()
3676
    result = getAmazonTransferredSkuDetails_result()
3677
    try:
3678
      result.success = self._handler.getAmazonTransferredSkuDetails(args.itemIds)
3679
    except WarehouseServiceException, wex:
3680
      result.wex = wex
3681
    oprot.writeMessageBegin("getAmazonTransferredSkuDetails", TMessageType.REPLY, seqid)
3682
    result.write(oprot)
3683
    oprot.writeMessageEnd()
3684
    oprot.trans.flush()
3685
 
3686
  def process_getScansforPurchase(self, seqid, iprot, oprot):
3687
    args = getScansforPurchase_args()
3688
    args.read(iprot)
3689
    iprot.readMessageEnd()
3690
    result = getScansforPurchase_result()
3691
    try:
3692
      result.success = self._handler.getScansforPurchase(args.purchaseId, args.scanType)
3693
    except WarehouseServiceException, wex:
3694
      result.wex = wex
3695
    oprot.writeMessageBegin("getScansforPurchase", TMessageType.REPLY, seqid)
3696
    result.write(oprot)
3697
    oprot.writeMessageEnd()
3698
    oprot.trans.flush()
3699
 
10864 manish.sha 3700
  def process_getCurrentBadQuantityForItem(self, seqid, iprot, oprot):
3701
    args = getCurrentBadQuantityForItem_args()
3702
    args.read(iprot)
3703
    iprot.readMessageEnd()
3704
    result = getCurrentBadQuantityForItem_result()
3705
    try:
3706
      result.success = self._handler.getCurrentBadQuantityForItem(args.itemId, args.currentWarehouseId, args.physicalWarehouseId)
3707
    except WarehouseServiceException, wex:
3708
      result.wex = wex
3709
    oprot.writeMessageBegin("getCurrentBadQuantityForItem", TMessageType.REPLY, seqid)
3710
    result.write(oprot)
3711
    oprot.writeMessageEnd()
3712
    oprot.trans.flush()
10690 manish.sha 3713
 
10864 manish.sha 3714
  def process_scanForBadPurchaseReturn(self, seqid, iprot, oprot):
3715
    args = scanForBadPurchaseReturn_args()
3716
    args.read(iprot)
3717
    iprot.readMessageEnd()
3718
    result = scanForBadPurchaseReturn_result()
3719
    try:
3720
      result.success = self._handler.scanForBadPurchaseReturn(args.saleReturnItems, args.vendorId, args.billingWarehouseId)
3721
    except WarehouseServiceException, ex:
3722
      result.ex = ex
3723
    oprot.writeMessageBegin("scanForBadPurchaseReturn", TMessageType.REPLY, seqid)
3724
    result.write(oprot)
3725
    oprot.writeMessageEnd()
3726
    oprot.trans.flush()
3727
 
3728
  def process_getItemsInPurchaseReturn(self, seqid, iprot, oprot):
3729
    args = getItemsInPurchaseReturn_args()
3730
    args.read(iprot)
3731
    iprot.readMessageEnd()
3732
    result = getItemsInPurchaseReturn_result()
3733
    try:
13504 manish.sha 3734
      result.success = self._handler.getItemsInPurchaseReturn(args.purchaseReturnId, args.type, args.returnTime)
10864 manish.sha 3735
    except WarehouseServiceException, ex:
3736
      result.ex = ex
3737
    oprot.writeMessageBegin("getItemsInPurchaseReturn", TMessageType.REPLY, seqid)
3738
    result.write(oprot)
3739
    oprot.writeMessageEnd()
3740
    oprot.trans.flush()
3741
 
10886 manish.sha 3742
  def process_getScansForInventoryItem(self, seqid, iprot, oprot):
3743
    args = getScansForInventoryItem_args()
3744
    args.read(iprot)
3745
    iprot.readMessageEnd()
3746
    result = getScansForInventoryItem_result()
3747
    try:
3748
      result.success = self._handler.getScansForInventoryItem(args.inventoryItemId, args.type)
3749
    except WarehouseServiceException, ex:
3750
      result.ex = ex
3751
    oprot.writeMessageBegin("getScansForInventoryItem", TMessageType.REPLY, seqid)
3752
    result.write(oprot)
3753
    oprot.writeMessageEnd()
3754
    oprot.trans.flush()
10864 manish.sha 3755
 
12531 manish.sha 3756
  def process_checkGrnImeiStatus(self, seqid, iprot, oprot):
3757
    args = checkGrnImeiStatus_args()
3758
    args.read(iprot)
3759
    iprot.readMessageEnd()
3760
    result = checkGrnImeiStatus_result()
3761
    try:
3762
      result.success = self._handler.checkGrnImeiStatus(args.imeiNos)
3763
    except WarehouseServiceException, ex:
3764
      result.ex = ex
3765
    oprot.writeMessageBegin("checkGrnImeiStatus", TMessageType.REPLY, seqid)
3766
    result.write(oprot)
3767
    oprot.writeMessageEnd()
3768
    oprot.trans.flush()
10886 manish.sha 3769
 
12800 manish.sha 3770
  def process_getInventoryAgeConsideredItems(self, seqid, iprot, oprot):
3771
    args = getInventoryAgeConsideredItems_args()
3772
    args.read(iprot)
3773
    iprot.readMessageEnd()
3774
    result = getInventoryAgeConsideredItems_result()
3775
    try:
3776
      result.success = self._handler.getInventoryAgeConsideredItems(args.itemId)
3777
    except WarehouseServiceException, ex:
3778
      result.ex = ex
3779
    oprot.writeMessageBegin("getInventoryAgeConsideredItems", TMessageType.REPLY, seqid)
3780
    result.write(oprot)
3781
    oprot.writeMessageEnd()
3782
    oprot.trans.flush()
12531 manish.sha 3783
 
13529 manish.sha 3784
  def process_getCompleteMovementForThirdPartyWarehouse(self, seqid, iprot, oprot):
3785
    args = getCompleteMovementForThirdPartyWarehouse_args()
3786
    args.read(iprot)
3787
    iprot.readMessageEnd()
3788
    result = getCompleteMovementForThirdPartyWarehouse_result()
3789
    result.success = self._handler.getCompleteMovementForThirdPartyWarehouse(args.startDate, args.endDate)
3790
    oprot.writeMessageBegin("getCompleteMovementForThirdPartyWarehouse", TMessageType.REPLY, seqid)
3791
    result.write(oprot)
3792
    oprot.writeMessageEnd()
3793
    oprot.trans.flush()
12800 manish.sha 3794
 
14491 manish.sha 3795
  def process_getAllDoaOutInventoryItems(self, seqid, iprot, oprot):
3796
    args = getAllDoaOutInventoryItems_args()
3797
    args.read(iprot)
3798
    iprot.readMessageEnd()
3799
    result = getAllDoaOutInventoryItems_result()
3800
    try:
3801
      result.success = self._handler.getAllDoaOutInventoryItems()
3802
    except WarehouseServiceException, ex:
3803
      result.ex = ex
3804
    oprot.writeMessageBegin("getAllDoaOutInventoryItems", TMessageType.REPLY, seqid)
3805
    result.write(oprot)
3806
    oprot.writeMessageEnd()
3807
    oprot.trans.flush()
13529 manish.sha 3808
 
14491 manish.sha 3809
 
2821 chandransh 3810
# HELPER FUNCTIONS AND STRUCTURES
3811
 
4501 mandeep.dh 3812
class getInventoryItem_args:
2832 chandransh 3813
  """
3814
  Attributes:
4501 mandeep.dh 3815
   - serialNumber
2832 chandransh 3816
  """
3817
 
3818
  thrift_spec = (
3819
    None, # 0
4501 mandeep.dh 3820
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
2832 chandransh 3821
  )
3822
 
4501 mandeep.dh 3823
  def __init__(self, serialNumber=None,):
3824
    self.serialNumber = serialNumber
2832 chandransh 3825
 
3826
  def read(self, iprot):
3827
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3828
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3829
      return
3830
    iprot.readStructBegin()
3831
    while True:
3832
      (fname, ftype, fid) = iprot.readFieldBegin()
3833
      if ftype == TType.STOP:
3834
        break
3835
      if fid == 1:
4501 mandeep.dh 3836
        if ftype == TType.STRING:
3837
          self.serialNumber = iprot.readString();
2832 chandransh 3838
        else:
3839
          iprot.skip(ftype)
3840
      else:
3841
        iprot.skip(ftype)
3842
      iprot.readFieldEnd()
3843
    iprot.readStructEnd()
3844
 
3845
  def write(self, oprot):
3846
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3847
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3848
      return
4501 mandeep.dh 3849
    oprot.writeStructBegin('getInventoryItem_args')
3850
    if self.serialNumber is not None:
3851
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
3852
      oprot.writeString(self.serialNumber)
2832 chandransh 3853
      oprot.writeFieldEnd()
3854
    oprot.writeFieldStop()
3855
    oprot.writeStructEnd()
3856
 
3431 rajveer 3857
  def validate(self):
3858
    return
3859
 
3860
 
2832 chandransh 3861
  def __repr__(self):
3862
    L = ['%s=%r' % (key, value)
3863
      for key, value in self.__dict__.iteritems()]
3864
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3865
 
3866
  def __eq__(self, other):
3867
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3868
 
3869
  def __ne__(self, other):
3870
    return not (self == other)
3871
 
4501 mandeep.dh 3872
class getInventoryItem_result:
2832 chandransh 3873
  """
3874
  Attributes:
3875
   - success
4541 mandeep.dh 3876
   - wex
2832 chandransh 3877
  """
3878
 
3879
  thrift_spec = (
4501 mandeep.dh 3880
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
4541 mandeep.dh 3881
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
2832 chandransh 3882
  )
3883
 
4541 mandeep.dh 3884
  def __init__(self, success=None, wex=None,):
2832 chandransh 3885
    self.success = success
4541 mandeep.dh 3886
    self.wex = wex
2832 chandransh 3887
 
3888
  def read(self, iprot):
3889
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3890
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3891
      return
3892
    iprot.readStructBegin()
3893
    while True:
3894
      (fname, ftype, fid) = iprot.readFieldBegin()
3895
      if ftype == TType.STOP:
3896
        break
3897
      if fid == 0:
3898
        if ftype == TType.STRUCT:
4501 mandeep.dh 3899
          self.success = InventoryItem()
2832 chandransh 3900
          self.success.read(iprot)
3901
        else:
3902
          iprot.skip(ftype)
4541 mandeep.dh 3903
      elif fid == 1:
3904
        if ftype == TType.STRUCT:
3905
          self.wex = WarehouseServiceException()
3906
          self.wex.read(iprot)
3907
        else:
3908
          iprot.skip(ftype)
2832 chandransh 3909
      else:
3910
        iprot.skip(ftype)
3911
      iprot.readFieldEnd()
3912
    iprot.readStructEnd()
3913
 
3914
  def write(self, oprot):
3915
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3916
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3917
      return
4501 mandeep.dh 3918
    oprot.writeStructBegin('getInventoryItem_result')
3431 rajveer 3919
    if self.success is not None:
2832 chandransh 3920
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3921
      self.success.write(oprot)
3922
      oprot.writeFieldEnd()
4541 mandeep.dh 3923
    if self.wex is not None:
3924
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
3925
      self.wex.write(oprot)
3926
      oprot.writeFieldEnd()
2832 chandransh 3927
    oprot.writeFieldStop()
3928
    oprot.writeStructEnd()
3929
 
3431 rajveer 3930
  def validate(self):
3931
    return
3932
 
3933
 
2832 chandransh 3934
  def __repr__(self):
3935
    L = ['%s=%r' % (key, value)
3936
      for key, value in self.__dict__.iteritems()]
3937
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3938
 
3939
  def __eq__(self, other):
3940
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3941
 
3942
  def __ne__(self, other):
3943
    return not (self == other)
3944
 
5361 mandeep.dh 3945
class getNonSeralizedInventoryItem_args:
2821 chandransh 3946
  """
3947
  Attributes:
5530 mandeep.dh 3948
   - itemNumber
4501 mandeep.dh 3949
   - itemId
5530 mandeep.dh 3950
   - fulfilmentWarehouseId
8565 amar.kumar 3951
   - billingWarehouseId
2821 chandransh 3952
  """
3953
 
3954
  thrift_spec = (
3955
    None, # 0
5530 mandeep.dh 3956
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
3957
    (2, TType.I64, 'itemId', None, None, ), # 2
3958
    (3, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 3
8565 amar.kumar 3959
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
2821 chandransh 3960
  )
3961
 
8565 amar.kumar 3962
  def __init__(self, itemNumber=None, itemId=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):
5530 mandeep.dh 3963
    self.itemNumber = itemNumber
4501 mandeep.dh 3964
    self.itemId = itemId
5530 mandeep.dh 3965
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 3966
    self.billingWarehouseId = billingWarehouseId
2821 chandransh 3967
 
3968
  def read(self, iprot):
3969
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3970
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3971
      return
3972
    iprot.readStructBegin()
3973
    while True:
3974
      (fname, ftype, fid) = iprot.readFieldBegin()
3975
      if ftype == TType.STOP:
3976
        break
3977
      if fid == 1:
5530 mandeep.dh 3978
        if ftype == TType.STRING:
3979
          self.itemNumber = iprot.readString();
3980
        else:
3981
          iprot.skip(ftype)
3982
      elif fid == 2:
2821 chandransh 3983
        if ftype == TType.I64:
4501 mandeep.dh 3984
          self.itemId = iprot.readI64();
2821 chandransh 3985
        else:
3986
          iprot.skip(ftype)
5530 mandeep.dh 3987
      elif fid == 3:
4501 mandeep.dh 3988
        if ftype == TType.I64:
5530 mandeep.dh 3989
          self.fulfilmentWarehouseId = iprot.readI64();
2821 chandransh 3990
        else:
3991
          iprot.skip(ftype)
8565 amar.kumar 3992
      elif fid == 4:
3993
        if ftype == TType.I64:
3994
          self.billingWarehouseId = iprot.readI64();
3995
        else:
3996
          iprot.skip(ftype)
2821 chandransh 3997
      else:
3998
        iprot.skip(ftype)
3999
      iprot.readFieldEnd()
4000
    iprot.readStructEnd()
4001
 
4002
  def write(self, oprot):
4003
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4004
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4005
      return
5361 mandeep.dh 4006
    oprot.writeStructBegin('getNonSeralizedInventoryItem_args')
5530 mandeep.dh 4007
    if self.itemNumber is not None:
4008
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
4009
      oprot.writeString(self.itemNumber)
4010
      oprot.writeFieldEnd()
4501 mandeep.dh 4011
    if self.itemId is not None:
5530 mandeep.dh 4012
      oprot.writeFieldBegin('itemId', TType.I64, 2)
4501 mandeep.dh 4013
      oprot.writeI64(self.itemId)
2821 chandransh 4014
      oprot.writeFieldEnd()
5530 mandeep.dh 4015
    if self.fulfilmentWarehouseId is not None:
4016
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 3)
4017
      oprot.writeI64(self.fulfilmentWarehouseId)
2821 chandransh 4018
      oprot.writeFieldEnd()
8565 amar.kumar 4019
    if self.billingWarehouseId is not None:
4020
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
4021
      oprot.writeI64(self.billingWarehouseId)
4022
      oprot.writeFieldEnd()
2821 chandransh 4023
    oprot.writeFieldStop()
4024
    oprot.writeStructEnd()
4025
 
3431 rajveer 4026
  def validate(self):
4027
    return
4028
 
4029
 
2821 chandransh 4030
  def __repr__(self):
4031
    L = ['%s=%r' % (key, value)
4032
      for key, value in self.__dict__.iteritems()]
4033
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4034
 
4035
  def __eq__(self, other):
4036
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4037
 
4038
  def __ne__(self, other):
4039
    return not (self == other)
4040
 
5361 mandeep.dh 4041
class getNonSeralizedInventoryItem_result:
2821 chandransh 4042
  """
4043
  Attributes:
4044
   - success
5361 mandeep.dh 4045
   - wex
2821 chandransh 4046
  """
4047
 
4048
  thrift_spec = (
5361 mandeep.dh 4049
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
4050
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
2821 chandransh 4051
  )
4052
 
5361 mandeep.dh 4053
  def __init__(self, success=None, wex=None,):
2821 chandransh 4054
    self.success = success
5361 mandeep.dh 4055
    self.wex = wex
2821 chandransh 4056
 
4057
  def read(self, iprot):
4058
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4059
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4060
      return
4061
    iprot.readStructBegin()
4062
    while True:
4063
      (fname, ftype, fid) = iprot.readFieldBegin()
4064
      if ftype == TType.STOP:
4065
        break
4066
      if fid == 0:
5361 mandeep.dh 4067
        if ftype == TType.STRUCT:
4068
          self.success = InventoryItem()
4069
          self.success.read(iprot)
2821 chandransh 4070
        else:
4071
          iprot.skip(ftype)
5361 mandeep.dh 4072
      elif fid == 1:
4073
        if ftype == TType.STRUCT:
4074
          self.wex = WarehouseServiceException()
4075
          self.wex.read(iprot)
2821 chandransh 4076
        else:
4077
          iprot.skip(ftype)
4078
      else:
4079
        iprot.skip(ftype)
4080
      iprot.readFieldEnd()
4081
    iprot.readStructEnd()
4082
 
4083
  def write(self, oprot):
4084
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4085
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4086
      return
5361 mandeep.dh 4087
    oprot.writeStructBegin('getNonSeralizedInventoryItem_result')
3431 rajveer 4088
    if self.success is not None:
5361 mandeep.dh 4089
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4090
      self.success.write(oprot)
2821 chandransh 4091
      oprot.writeFieldEnd()
5361 mandeep.dh 4092
    if self.wex is not None:
4093
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4094
      self.wex.write(oprot)
3383 chandransh 4095
      oprot.writeFieldEnd()
4096
    oprot.writeFieldStop()
4097
    oprot.writeStructEnd()
4098
 
3431 rajveer 4099
  def validate(self):
4100
    return
4101
 
4102
 
3383 chandransh 4103
  def __repr__(self):
4104
    L = ['%s=%r' % (key, value)
4105
      for key, value in self.__dict__.iteritems()]
4106
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4107
 
4108
  def __eq__(self, other):
4109
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4110
 
4111
  def __ne__(self, other):
4112
    return not (self == other)
4113
 
4501 mandeep.dh 4114
class scan_args:
2821 chandransh 4115
  """
4116
  Attributes:
5361 mandeep.dh 4117
   - inventoryItem
2821 chandransh 4118
   - type
4501 mandeep.dh 4119
   - quantity
5361 mandeep.dh 4120
   - billingWarehouseId
7410 amar.kumar 4121
   - transferLotId
2821 chandransh 4122
  """
4123
 
4124
  thrift_spec = (
4125
    None, # 0
5361 mandeep.dh 4126
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4501 mandeep.dh 4127
    (2, TType.I32, 'type', None, None, ), # 2
4128
    (3, TType.I64, 'quantity', None, None, ), # 3
5361 mandeep.dh 4129
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
7410 amar.kumar 4130
    (5, TType.I64, 'transferLotId', None, None, ), # 5
2821 chandransh 4131
  )
4132
 
7410 amar.kumar 4133
  def __init__(self, inventoryItem=None, type=None, quantity=None, billingWarehouseId=None, transferLotId=None,):
5361 mandeep.dh 4134
    self.inventoryItem = inventoryItem
2821 chandransh 4135
    self.type = type
4501 mandeep.dh 4136
    self.quantity = quantity
5361 mandeep.dh 4137
    self.billingWarehouseId = billingWarehouseId
7410 amar.kumar 4138
    self.transferLotId = transferLotId
2821 chandransh 4139
 
4140
  def read(self, iprot):
4141
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4142
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4143
      return
4144
    iprot.readStructBegin()
4145
    while True:
4146
      (fname, ftype, fid) = iprot.readFieldBegin()
4147
      if ftype == TType.STOP:
4148
        break
4149
      if fid == 1:
5361 mandeep.dh 4150
        if ftype == TType.STRUCT:
4151
          self.inventoryItem = InventoryItem()
4152
          self.inventoryItem.read(iprot)
2821 chandransh 4153
        else:
4154
          iprot.skip(ftype)
4155
      elif fid == 2:
4501 mandeep.dh 4156
        if ftype == TType.I32:
4157
          self.type = iprot.readI32();
2821 chandransh 4158
        else:
4159
          iprot.skip(ftype)
3383 chandransh 4160
      elif fid == 3:
4501 mandeep.dh 4161
        if ftype == TType.I64:
4162
          self.quantity = iprot.readI64();
2821 chandransh 4163
        else:
4164
          iprot.skip(ftype)
3383 chandransh 4165
      elif fid == 4:
4501 mandeep.dh 4166
        if ftype == TType.I64:
5361 mandeep.dh 4167
          self.billingWarehouseId = iprot.readI64();
2821 chandransh 4168
        else:
4169
          iprot.skip(ftype)
7410 amar.kumar 4170
      elif fid == 5:
4171
        if ftype == TType.I64:
4172
          self.transferLotId = iprot.readI64();
4173
        else:
4174
          iprot.skip(ftype)
2821 chandransh 4175
      else:
4176
        iprot.skip(ftype)
4177
      iprot.readFieldEnd()
4178
    iprot.readStructEnd()
4179
 
4180
  def write(self, oprot):
4181
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4182
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4183
      return
4501 mandeep.dh 4184
    oprot.writeStructBegin('scan_args')
5361 mandeep.dh 4185
    if self.inventoryItem is not None:
4186
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
4187
      self.inventoryItem.write(oprot)
2821 chandransh 4188
      oprot.writeFieldEnd()
3431 rajveer 4189
    if self.type is not None:
4501 mandeep.dh 4190
      oprot.writeFieldBegin('type', TType.I32, 2)
2821 chandransh 4191
      oprot.writeI32(self.type)
4192
      oprot.writeFieldEnd()
4501 mandeep.dh 4193
    if self.quantity is not None:
4194
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4195
      oprot.writeI64(self.quantity)
4196
      oprot.writeFieldEnd()
5361 mandeep.dh 4197
    if self.billingWarehouseId is not None:
4198
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
4199
      oprot.writeI64(self.billingWarehouseId)
4501 mandeep.dh 4200
      oprot.writeFieldEnd()
7410 amar.kumar 4201
    if self.transferLotId is not None:
4202
      oprot.writeFieldBegin('transferLotId', TType.I64, 5)
4203
      oprot.writeI64(self.transferLotId)
4204
      oprot.writeFieldEnd()
2821 chandransh 4205
    oprot.writeFieldStop()
4206
    oprot.writeStructEnd()
4207
 
3431 rajveer 4208
  def validate(self):
4209
    return
4210
 
4211
 
2821 chandransh 4212
  def __repr__(self):
4213
    L = ['%s=%r' % (key, value)
4214
      for key, value in self.__dict__.iteritems()]
4215
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4216
 
4217
  def __eq__(self, other):
4218
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4219
 
4220
  def __ne__(self, other):
4221
    return not (self == other)
4222
 
4501 mandeep.dh 4223
class scan_result:
2821 chandransh 4224
  """
4225
  Attributes:
4226
   - wex
4227
  """
4228
 
4229
  thrift_spec = (
4230
    None, # 0
4231
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4232
  )
4233
 
4234
  def __init__(self, wex=None,):
4235
    self.wex = wex
4236
 
4237
  def read(self, iprot):
4238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4240
      return
4241
    iprot.readStructBegin()
4242
    while True:
4243
      (fname, ftype, fid) = iprot.readFieldBegin()
4244
      if ftype == TType.STOP:
4245
        break
4246
      if fid == 1:
4247
        if ftype == TType.STRUCT:
4248
          self.wex = WarehouseServiceException()
4249
          self.wex.read(iprot)
4250
        else:
4251
          iprot.skip(ftype)
4252
      else:
4253
        iprot.skip(ftype)
4254
      iprot.readFieldEnd()
4255
    iprot.readStructEnd()
4256
 
4257
  def write(self, oprot):
4258
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4259
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4260
      return
4501 mandeep.dh 4261
    oprot.writeStructBegin('scan_result')
3431 rajveer 4262
    if self.wex is not None:
2821 chandransh 4263
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4264
      self.wex.write(oprot)
4265
      oprot.writeFieldEnd()
4266
    oprot.writeFieldStop()
4267
    oprot.writeStructEnd()
4268
 
3431 rajveer 4269
  def validate(self):
4270
    return
4271
 
4272
 
2821 chandransh 4273
  def __repr__(self):
4274
    L = ['%s=%r' % (key, value)
4275
      for key, value in self.__dict__.iteritems()]
4276
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4277
 
4278
  def __eq__(self, other):
4279
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4280
 
4281
  def __ne__(self, other):
4282
    return not (self == other)
4283
 
10489 amar.kumar 4284
class genericScan_args:
4285
  """
4286
  Attributes:
4287
   - inventoryItem
4288
   - scan
4289
  """
4290
 
4291
  thrift_spec = (
4292
    None, # 0
4293
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4294
    (2, TType.STRUCT, 'scan', (Scan, Scan.thrift_spec), None, ), # 2
4295
  )
4296
 
4297
  def __init__(self, inventoryItem=None, scan=None,):
4298
    self.inventoryItem = inventoryItem
4299
    self.scan = scan
4300
 
4301
  def read(self, iprot):
4302
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4303
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4304
      return
4305
    iprot.readStructBegin()
4306
    while True:
4307
      (fname, ftype, fid) = iprot.readFieldBegin()
4308
      if ftype == TType.STOP:
4309
        break
4310
      if fid == 1:
4311
        if ftype == TType.STRUCT:
4312
          self.inventoryItem = InventoryItem()
4313
          self.inventoryItem.read(iprot)
4314
        else:
4315
          iprot.skip(ftype)
4316
      elif fid == 2:
4317
        if ftype == TType.STRUCT:
4318
          self.scan = Scan()
4319
          self.scan.read(iprot)
4320
        else:
4321
          iprot.skip(ftype)
4322
      else:
4323
        iprot.skip(ftype)
4324
      iprot.readFieldEnd()
4325
    iprot.readStructEnd()
4326
 
4327
  def write(self, oprot):
4328
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4329
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4330
      return
4331
    oprot.writeStructBegin('genericScan_args')
4332
    if self.inventoryItem is not None:
4333
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
4334
      self.inventoryItem.write(oprot)
4335
      oprot.writeFieldEnd()
4336
    if self.scan is not None:
4337
      oprot.writeFieldBegin('scan', TType.STRUCT, 2)
4338
      self.scan.write(oprot)
4339
      oprot.writeFieldEnd()
4340
    oprot.writeFieldStop()
4341
    oprot.writeStructEnd()
4342
 
4343
  def validate(self):
4344
    return
4345
 
4346
 
4347
  def __repr__(self):
4348
    L = ['%s=%r' % (key, value)
4349
      for key, value in self.__dict__.iteritems()]
4350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4351
 
4352
  def __eq__(self, other):
4353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4354
 
4355
  def __ne__(self, other):
4356
    return not (self == other)
4357
 
4358
class genericScan_result:
4359
  """
4360
  Attributes:
4361
   - wex
4362
  """
4363
 
4364
  thrift_spec = (
4365
    None, # 0
4366
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4367
  )
4368
 
4369
  def __init__(self, wex=None,):
4370
    self.wex = wex
4371
 
4372
  def read(self, iprot):
4373
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4374
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4375
      return
4376
    iprot.readStructBegin()
4377
    while True:
4378
      (fname, ftype, fid) = iprot.readFieldBegin()
4379
      if ftype == TType.STOP:
4380
        break
4381
      if fid == 1:
4382
        if ftype == TType.STRUCT:
4383
          self.wex = WarehouseServiceException()
4384
          self.wex.read(iprot)
4385
        else:
4386
          iprot.skip(ftype)
4387
      else:
4388
        iprot.skip(ftype)
4389
      iprot.readFieldEnd()
4390
    iprot.readStructEnd()
4391
 
4392
  def write(self, oprot):
4393
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4394
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4395
      return
4396
    oprot.writeStructBegin('genericScan_result')
4397
    if self.wex is not None:
4398
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4399
      self.wex.write(oprot)
4400
      oprot.writeFieldEnd()
4401
    oprot.writeFieldStop()
4402
    oprot.writeStructEnd()
4403
 
4404
  def validate(self):
4405
    return
4406
 
4407
 
4408
  def __repr__(self):
4409
    L = ['%s=%r' % (key, value)
4410
      for key, value in self.__dict__.iteritems()]
4411
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4412
 
4413
  def __eq__(self, other):
4414
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4415
 
4416
  def __ne__(self, other):
4417
    return not (self == other)
4418
 
4501 mandeep.dh 4419
class scanSerializedItemForOrder_args:
2821 chandransh 4420
  """
4421
  Attributes:
4555 mandeep.dh 4422
   - serialNumber
2821 chandransh 4423
   - type
4501 mandeep.dh 4424
   - orderId
5110 mandeep.dh 4425
   - fulfilmentWarehouseId
4426
   - quantity
4427
   - billingWarehouseId
2821 chandransh 4428
  """
4429
 
4430
  thrift_spec = (
4431
    None, # 0
4555 mandeep.dh 4432
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
4501 mandeep.dh 4433
    (2, TType.I32, 'type', None, None, ), # 2
4434
    (3, TType.I64, 'orderId', None, None, ), # 3
5110 mandeep.dh 4435
    (4, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 4
4436
    (5, TType.DOUBLE, 'quantity', None, None, ), # 5
4437
    (6, TType.I64, 'billingWarehouseId', None, None, ), # 6
2821 chandransh 4438
  )
4439
 
5110 mandeep.dh 4440
  def __init__(self, serialNumber=None, type=None, orderId=None, fulfilmentWarehouseId=None, quantity=None, billingWarehouseId=None,):
4555 mandeep.dh 4441
    self.serialNumber = serialNumber
2821 chandransh 4442
    self.type = type
4501 mandeep.dh 4443
    self.orderId = orderId
5110 mandeep.dh 4444
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
4445
    self.quantity = quantity
4446
    self.billingWarehouseId = billingWarehouseId
2821 chandransh 4447
 
4448
  def read(self, iprot):
4449
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4450
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4451
      return
4452
    iprot.readStructBegin()
4453
    while True:
4454
      (fname, ftype, fid) = iprot.readFieldBegin()
4455
      if ftype == TType.STOP:
4456
        break
4457
      if fid == 1:
4555 mandeep.dh 4458
        if ftype == TType.STRING:
4459
          self.serialNumber = iprot.readString();
2821 chandransh 4460
        else:
4461
          iprot.skip(ftype)
4462
      elif fid == 2:
4501 mandeep.dh 4463
        if ftype == TType.I32:
4464
          self.type = iprot.readI32();
2821 chandransh 4465
        else:
4466
          iprot.skip(ftype)
4467
      elif fid == 3:
4501 mandeep.dh 4468
        if ftype == TType.I64:
4469
          self.orderId = iprot.readI64();
4470
        else:
4471
          iprot.skip(ftype)
4472
      elif fid == 4:
4473
        if ftype == TType.I64:
5110 mandeep.dh 4474
          self.fulfilmentWarehouseId = iprot.readI64();
4501 mandeep.dh 4475
        else:
4476
          iprot.skip(ftype)
5110 mandeep.dh 4477
      elif fid == 5:
4478
        if ftype == TType.DOUBLE:
4479
          self.quantity = iprot.readDouble();
4480
        else:
4481
          iprot.skip(ftype)
4482
      elif fid == 6:
4483
        if ftype == TType.I64:
4484
          self.billingWarehouseId = iprot.readI64();
4485
        else:
4486
          iprot.skip(ftype)
4501 mandeep.dh 4487
      else:
4488
        iprot.skip(ftype)
4489
      iprot.readFieldEnd()
4490
    iprot.readStructEnd()
4491
 
4492
  def write(self, oprot):
4493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4495
      return
4496
    oprot.writeStructBegin('scanSerializedItemForOrder_args')
4555 mandeep.dh 4497
    if self.serialNumber is not None:
4498
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
4499
      oprot.writeString(self.serialNumber)
4501 mandeep.dh 4500
      oprot.writeFieldEnd()
4501
    if self.type is not None:
4502
      oprot.writeFieldBegin('type', TType.I32, 2)
4503
      oprot.writeI32(self.type)
4504
      oprot.writeFieldEnd()
4505
    if self.orderId is not None:
4506
      oprot.writeFieldBegin('orderId', TType.I64, 3)
4507
      oprot.writeI64(self.orderId)
4508
      oprot.writeFieldEnd()
5110 mandeep.dh 4509
    if self.fulfilmentWarehouseId is not None:
4510
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 4)
4511
      oprot.writeI64(self.fulfilmentWarehouseId)
4501 mandeep.dh 4512
      oprot.writeFieldEnd()
5110 mandeep.dh 4513
    if self.quantity is not None:
4514
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
4515
      oprot.writeDouble(self.quantity)
4516
      oprot.writeFieldEnd()
4517
    if self.billingWarehouseId is not None:
4518
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)
4519
      oprot.writeI64(self.billingWarehouseId)
4520
      oprot.writeFieldEnd()
4501 mandeep.dh 4521
    oprot.writeFieldStop()
4522
    oprot.writeStructEnd()
4523
 
4524
  def validate(self):
4525
    return
4526
 
4527
 
4528
  def __repr__(self):
4529
    L = ['%s=%r' % (key, value)
4530
      for key, value in self.__dict__.iteritems()]
4531
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4532
 
4533
  def __eq__(self, other):
4534
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4535
 
4536
  def __ne__(self, other):
4537
    return not (self == other)
4538
 
4539
class scanSerializedItemForOrder_result:
4540
  """
4541
  Attributes:
4542
   - success
4543
   - wex
4544
  """
4545
 
4546
  thrift_spec = (
4555 mandeep.dh 4547
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
4501 mandeep.dh 4548
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4549
  )
4550
 
4551
  def __init__(self, success=None, wex=None,):
4552
    self.success = success
4553
    self.wex = wex
4554
 
4555
  def read(self, iprot):
4556
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4557
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4558
      return
4559
    iprot.readStructBegin()
4560
    while True:
4561
      (fname, ftype, fid) = iprot.readFieldBegin()
4562
      if ftype == TType.STOP:
4563
        break
4564
      if fid == 0:
4555 mandeep.dh 4565
        if ftype == TType.STRUCT:
4566
          self.success = InventoryItem()
4567
          self.success.read(iprot)
4501 mandeep.dh 4568
        else:
4569
          iprot.skip(ftype)
4570
      elif fid == 1:
4571
        if ftype == TType.STRUCT:
4572
          self.wex = WarehouseServiceException()
4573
          self.wex.read(iprot)
4574
        else:
4575
          iprot.skip(ftype)
4576
      else:
4577
        iprot.skip(ftype)
4578
      iprot.readFieldEnd()
4579
    iprot.readStructEnd()
4580
 
4581
  def write(self, oprot):
4582
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4583
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4584
      return
4585
    oprot.writeStructBegin('scanSerializedItemForOrder_result')
4586
    if self.success is not None:
4555 mandeep.dh 4587
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4588
      self.success.write(oprot)
4501 mandeep.dh 4589
      oprot.writeFieldEnd()
4590
    if self.wex is not None:
4591
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4592
      self.wex.write(oprot)
4593
      oprot.writeFieldEnd()
4594
    oprot.writeFieldStop()
4595
    oprot.writeStructEnd()
4596
 
4597
  def validate(self):
4598
    return
4599
 
4600
 
4601
  def __repr__(self):
4602
    L = ['%s=%r' % (key, value)
4603
      for key, value in self.__dict__.iteritems()]
4604
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4605
 
4606
  def __eq__(self, other):
4607
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4608
 
4609
  def __ne__(self, other):
4610
    return not (self == other)
4611
 
4612
class scanForOrder_args:
4613
  """
4614
  Attributes:
5361 mandeep.dh 4615
   - inventoryItem
4501 mandeep.dh 4616
   - type
4617
   - quantity
4618
   - orderId
5110 mandeep.dh 4619
   - fulfilmentWarehouseId
5361 mandeep.dh 4620
   - billingWarehouseId
4501 mandeep.dh 4621
  """
4622
 
4623
  thrift_spec = (
4624
    None, # 0
5361 mandeep.dh 4625
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4501 mandeep.dh 4626
    (2, TType.I32, 'type', None, None, ), # 2
4627
    (3, TType.I64, 'quantity', None, None, ), # 3
4628
    (4, TType.I64, 'orderId', None, None, ), # 4
5110 mandeep.dh 4629
    (5, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 5
5361 mandeep.dh 4630
    (6, TType.I64, 'billingWarehouseId', None, None, ), # 6
4501 mandeep.dh 4631
  )
4632
 
5361 mandeep.dh 4633
  def __init__(self, inventoryItem=None, type=None, quantity=None, orderId=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):
4634
    self.inventoryItem = inventoryItem
4501 mandeep.dh 4635
    self.type = type
4636
    self.quantity = quantity
4637
    self.orderId = orderId
5110 mandeep.dh 4638
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
5361 mandeep.dh 4639
    self.billingWarehouseId = billingWarehouseId
4501 mandeep.dh 4640
 
4641
  def read(self, iprot):
4642
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4643
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4644
      return
4645
    iprot.readStructBegin()
4646
    while True:
4647
      (fname, ftype, fid) = iprot.readFieldBegin()
4648
      if ftype == TType.STOP:
4649
        break
4650
      if fid == 1:
5361 mandeep.dh 4651
        if ftype == TType.STRUCT:
4652
          self.inventoryItem = InventoryItem()
4653
          self.inventoryItem.read(iprot)
4501 mandeep.dh 4654
        else:
4655
          iprot.skip(ftype)
4656
      elif fid == 2:
2821 chandransh 4657
        if ftype == TType.I32:
4658
          self.type = iprot.readI32();
4659
        else:
4660
          iprot.skip(ftype)
4501 mandeep.dh 4661
      elif fid == 3:
4662
        if ftype == TType.I64:
4663
          self.quantity = iprot.readI64();
4664
        else:
4665
          iprot.skip(ftype)
4666
      elif fid == 4:
4667
        if ftype == TType.I64:
4668
          self.orderId = iprot.readI64();
4669
        else:
4670
          iprot.skip(ftype)
4671
      elif fid == 5:
4672
        if ftype == TType.I64:
5110 mandeep.dh 4673
          self.fulfilmentWarehouseId = iprot.readI64();
4501 mandeep.dh 4674
        else:
4675
          iprot.skip(ftype)
5361 mandeep.dh 4676
      elif fid == 6:
4677
        if ftype == TType.I64:
4678
          self.billingWarehouseId = iprot.readI64();
4679
        else:
4680
          iprot.skip(ftype)
2821 chandransh 4681
      else:
4682
        iprot.skip(ftype)
4683
      iprot.readFieldEnd()
4684
    iprot.readStructEnd()
4685
 
4686
  def write(self, oprot):
4687
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4688
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4689
      return
4501 mandeep.dh 4690
    oprot.writeStructBegin('scanForOrder_args')
5361 mandeep.dh 4691
    if self.inventoryItem is not None:
4692
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
4693
      self.inventoryItem.write(oprot)
2821 chandransh 4694
      oprot.writeFieldEnd()
3431 rajveer 4695
    if self.type is not None:
4501 mandeep.dh 4696
      oprot.writeFieldBegin('type', TType.I32, 2)
2821 chandransh 4697
      oprot.writeI32(self.type)
4698
      oprot.writeFieldEnd()
4501 mandeep.dh 4699
    if self.quantity is not None:
4700
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4701
      oprot.writeI64(self.quantity)
4702
      oprot.writeFieldEnd()
4703
    if self.orderId is not None:
4704
      oprot.writeFieldBegin('orderId', TType.I64, 4)
4705
      oprot.writeI64(self.orderId)
4706
      oprot.writeFieldEnd()
5110 mandeep.dh 4707
    if self.fulfilmentWarehouseId is not None:
4708
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 5)
4709
      oprot.writeI64(self.fulfilmentWarehouseId)
4501 mandeep.dh 4710
      oprot.writeFieldEnd()
5361 mandeep.dh 4711
    if self.billingWarehouseId is not None:
4712
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)
4713
      oprot.writeI64(self.billingWarehouseId)
4714
      oprot.writeFieldEnd()
2821 chandransh 4715
    oprot.writeFieldStop()
4716
    oprot.writeStructEnd()
4717
 
3431 rajveer 4718
  def validate(self):
4719
    return
4720
 
4721
 
2821 chandransh 4722
  def __repr__(self):
4723
    L = ['%s=%r' % (key, value)
4724
      for key, value in self.__dict__.iteritems()]
4725
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4726
 
4727
  def __eq__(self, other):
4728
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4729
 
4730
  def __ne__(self, other):
4731
    return not (self == other)
4732
 
4501 mandeep.dh 4733
class scanForOrder_result:
2821 chandransh 4734
  """
4735
  Attributes:
5361 mandeep.dh 4736
   - success
2821 chandransh 4737
   - wex
4738
  """
4739
 
4740
  thrift_spec = (
5361 mandeep.dh 4741
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
2821 chandransh 4742
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4743
  )
4744
 
5361 mandeep.dh 4745
  def __init__(self, success=None, wex=None,):
4746
    self.success = success
2821 chandransh 4747
    self.wex = wex
4748
 
4749
  def read(self, iprot):
4750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4752
      return
4753
    iprot.readStructBegin()
4754
    while True:
4755
      (fname, ftype, fid) = iprot.readFieldBegin()
4756
      if ftype == TType.STOP:
4757
        break
5361 mandeep.dh 4758
      if fid == 0:
2821 chandransh 4759
        if ftype == TType.STRUCT:
5361 mandeep.dh 4760
          self.success = InventoryItem()
4761
          self.success.read(iprot)
4762
        else:
4763
          iprot.skip(ftype)
4764
      elif fid == 1:
4765
        if ftype == TType.STRUCT:
2821 chandransh 4766
          self.wex = WarehouseServiceException()
4767
          self.wex.read(iprot)
4768
        else:
4769
          iprot.skip(ftype)
4770
      else:
4771
        iprot.skip(ftype)
4772
      iprot.readFieldEnd()
4773
    iprot.readStructEnd()
4774
 
4775
  def write(self, oprot):
4776
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4777
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4778
      return
4501 mandeep.dh 4779
    oprot.writeStructBegin('scanForOrder_result')
5361 mandeep.dh 4780
    if self.success is not None:
4781
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4782
      self.success.write(oprot)
4783
      oprot.writeFieldEnd()
3431 rajveer 4784
    if self.wex is not None:
2821 chandransh 4785
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4786
      self.wex.write(oprot)
4787
      oprot.writeFieldEnd()
4788
    oprot.writeFieldStop()
4789
    oprot.writeStructEnd()
4790
 
3431 rajveer 4791
  def validate(self):
4792
    return
4793
 
4794
 
2821 chandransh 4795
  def __repr__(self):
4796
    L = ['%s=%r' % (key, value)
4797
      for key, value in self.__dict__.iteritems()]
4798
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4799
 
4800
  def __eq__(self, other):
4801
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4802
 
4803
  def __ne__(self, other):
4804
    return not (self == other)
4501 mandeep.dh 4805
 
4806
class createItemNumberMapping_args:
4807
  """
4808
  Attributes:
4809
   - itemNumber
4810
   - itemId
4811
  """
4812
 
4813
  thrift_spec = (
4814
    None, # 0
4815
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
4816
    (2, TType.I64, 'itemId', None, None, ), # 2
4817
  )
4818
 
4819
  def __init__(self, itemNumber=None, itemId=None,):
4820
    self.itemNumber = itemNumber
4821
    self.itemId = itemId
4822
 
4823
  def read(self, iprot):
4824
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4825
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4826
      return
4827
    iprot.readStructBegin()
4828
    while True:
4829
      (fname, ftype, fid) = iprot.readFieldBegin()
4830
      if ftype == TType.STOP:
4831
        break
4832
      if fid == 1:
4833
        if ftype == TType.STRING:
4834
          self.itemNumber = iprot.readString();
4835
        else:
4836
          iprot.skip(ftype)
4837
      elif fid == 2:
4838
        if ftype == TType.I64:
4839
          self.itemId = iprot.readI64();
4840
        else:
4841
          iprot.skip(ftype)
4842
      else:
4843
        iprot.skip(ftype)
4844
      iprot.readFieldEnd()
4845
    iprot.readStructEnd()
4846
 
4847
  def write(self, oprot):
4848
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4849
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4850
      return
4851
    oprot.writeStructBegin('createItemNumberMapping_args')
4852
    if self.itemNumber is not None:
4853
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
4854
      oprot.writeString(self.itemNumber)
4855
      oprot.writeFieldEnd()
4856
    if self.itemId is not None:
4857
      oprot.writeFieldBegin('itemId', TType.I64, 2)
4858
      oprot.writeI64(self.itemId)
4859
      oprot.writeFieldEnd()
4860
    oprot.writeFieldStop()
4861
    oprot.writeStructEnd()
4862
 
4863
  def validate(self):
4864
    return
4865
 
4866
 
4867
  def __repr__(self):
4868
    L = ['%s=%r' % (key, value)
4869
      for key, value in self.__dict__.iteritems()]
4870
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4871
 
4872
  def __eq__(self, other):
4873
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4874
 
4875
  def __ne__(self, other):
4876
    return not (self == other)
4877
 
4878
class createItemNumberMapping_result:
4879
 
4880
  thrift_spec = (
4881
  )
4882
 
4883
  def read(self, iprot):
4884
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4885
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4886
      return
4887
    iprot.readStructBegin()
4888
    while True:
4889
      (fname, ftype, fid) = iprot.readFieldBegin()
4890
      if ftype == TType.STOP:
4891
        break
4892
      else:
4893
        iprot.skip(ftype)
4894
      iprot.readFieldEnd()
4895
    iprot.readStructEnd()
4896
 
4897
  def write(self, oprot):
4898
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4899
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4900
      return
4901
    oprot.writeStructBegin('createItemNumberMapping_result')
4902
    oprot.writeFieldStop()
4903
    oprot.writeStructEnd()
4904
 
4905
  def validate(self):
4906
    return
4907
 
4908
 
4909
  def __repr__(self):
4910
    L = ['%s=%r' % (key, value)
4911
      for key, value in self.__dict__.iteritems()]
4912
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4913
 
4914
  def __eq__(self, other):
4915
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4916
 
4917
  def __ne__(self, other):
4918
    return not (self == other)
4620 amit.gupta 4919
 
4920
class getItemNumbers_args:
4921
  """
4922
  Attributes:
4923
   - itemId
4924
  """
4925
 
4926
  thrift_spec = (
4927
    None, # 0
4928
    (1, TType.I64, 'itemId', None, None, ), # 1
4929
  )
4930
 
4931
  def __init__(self, itemId=None,):
4932
    self.itemId = itemId
4933
 
4934
  def read(self, iprot):
4935
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4936
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4937
      return
4938
    iprot.readStructBegin()
4939
    while True:
4940
      (fname, ftype, fid) = iprot.readFieldBegin()
4941
      if ftype == TType.STOP:
4942
        break
4943
      if fid == 1:
4944
        if ftype == TType.I64:
4945
          self.itemId = iprot.readI64();
4946
        else:
4947
          iprot.skip(ftype)
4948
      else:
4949
        iprot.skip(ftype)
4950
      iprot.readFieldEnd()
4951
    iprot.readStructEnd()
4952
 
4953
  def write(self, oprot):
4954
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4955
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4956
      return
4957
    oprot.writeStructBegin('getItemNumbers_args')
4958
    if self.itemId is not None:
4959
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4960
      oprot.writeI64(self.itemId)
4961
      oprot.writeFieldEnd()
4962
    oprot.writeFieldStop()
4963
    oprot.writeStructEnd()
4964
 
4965
  def validate(self):
4966
    return
4967
 
4968
 
4969
  def __repr__(self):
4970
    L = ['%s=%r' % (key, value)
4971
      for key, value in self.__dict__.iteritems()]
4972
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4973
 
4974
  def __eq__(self, other):
4975
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4976
 
4977
  def __ne__(self, other):
4978
    return not (self == other)
4979
 
4980
class getItemNumbers_result:
4981
  """
4982
  Attributes:
4983
   - success
4984
  """
4985
 
4986
  thrift_spec = (
4987
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
4988
  )
4989
 
4990
  def __init__(self, success=None,):
4991
    self.success = success
4992
 
4993
  def read(self, iprot):
4994
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4995
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4996
      return
4997
    iprot.readStructBegin()
4998
    while True:
4999
      (fname, ftype, fid) = iprot.readFieldBegin()
5000
      if ftype == TType.STOP:
5001
        break
5002
      if fid == 0:
5003
        if ftype == TType.LIST:
5004
          self.success = []
5361 mandeep.dh 5005
          (_etype3, _size0) = iprot.readListBegin()
5006
          for _i4 in xrange(_size0):
5007
            _elem5 = iprot.readString();
5008
            self.success.append(_elem5)
4620 amit.gupta 5009
          iprot.readListEnd()
5010
        else:
5011
          iprot.skip(ftype)
5012
      else:
5013
        iprot.skip(ftype)
5014
      iprot.readFieldEnd()
5015
    iprot.readStructEnd()
5016
 
5017
  def write(self, oprot):
5018
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5019
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5020
      return
5021
    oprot.writeStructBegin('getItemNumbers_result')
5022
    if self.success is not None:
5023
      oprot.writeFieldBegin('success', TType.LIST, 0)
5024
      oprot.writeListBegin(TType.STRING, len(self.success))
5361 mandeep.dh 5025
      for iter6 in self.success:
5026
        oprot.writeString(iter6)
4620 amit.gupta 5027
      oprot.writeListEnd()
5028
      oprot.writeFieldEnd()
5029
    oprot.writeFieldStop()
5030
    oprot.writeStructEnd()
5031
 
5032
  def validate(self):
5033
    return
5034
 
5035
 
5036
  def __repr__(self):
5037
    L = ['%s=%r' % (key, value)
5038
      for key, value in self.__dict__.iteritems()]
5039
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5040
 
5041
  def __eq__(self, other):
5042
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5043
 
5044
  def __ne__(self, other):
5045
    return not (self == other)
5110 mandeep.dh 5046
 
5047
class getItemIds_args:
5048
  """
5049
  Attributes:
5050
   - itemNumber
5051
  """
5052
 
5053
  thrift_spec = (
5054
    None, # 0
5055
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
5056
  )
5057
 
5058
  def __init__(self, itemNumber=None,):
5059
    self.itemNumber = itemNumber
5060
 
5061
  def read(self, iprot):
5062
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5063
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5064
      return
5065
    iprot.readStructBegin()
5066
    while True:
5067
      (fname, ftype, fid) = iprot.readFieldBegin()
5068
      if ftype == TType.STOP:
5069
        break
5070
      if fid == 1:
5071
        if ftype == TType.STRING:
5072
          self.itemNumber = iprot.readString();
5073
        else:
5074
          iprot.skip(ftype)
5075
      else:
5076
        iprot.skip(ftype)
5077
      iprot.readFieldEnd()
5078
    iprot.readStructEnd()
5079
 
5080
  def write(self, oprot):
5081
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5082
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5083
      return
5084
    oprot.writeStructBegin('getItemIds_args')
5085
    if self.itemNumber is not None:
5086
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
5087
      oprot.writeString(self.itemNumber)
5088
      oprot.writeFieldEnd()
5089
    oprot.writeFieldStop()
5090
    oprot.writeStructEnd()
5091
 
5092
  def validate(self):
5093
    return
5094
 
5095
 
5096
  def __repr__(self):
5097
    L = ['%s=%r' % (key, value)
5098
      for key, value in self.__dict__.iteritems()]
5099
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5100
 
5101
  def __eq__(self, other):
5102
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5103
 
5104
  def __ne__(self, other):
5105
    return not (self == other)
5106
 
5107
class getItemIds_result:
5108
  """
5109
  Attributes:
5110
   - success
5111
  """
5112
 
5113
  thrift_spec = (
5114
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5115
  )
5116
 
5117
  def __init__(self, success=None,):
5118
    self.success = success
5119
 
5120
  def read(self, iprot):
5121
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5122
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5123
      return
5124
    iprot.readStructBegin()
5125
    while True:
5126
      (fname, ftype, fid) = iprot.readFieldBegin()
5127
      if ftype == TType.STOP:
5128
        break
5129
      if fid == 0:
5130
        if ftype == TType.LIST:
5131
          self.success = []
5361 mandeep.dh 5132
          (_etype10, _size7) = iprot.readListBegin()
5133
          for _i11 in xrange(_size7):
5134
            _elem12 = iprot.readI64();
5135
            self.success.append(_elem12)
5110 mandeep.dh 5136
          iprot.readListEnd()
5137
        else:
5138
          iprot.skip(ftype)
5139
      else:
5140
        iprot.skip(ftype)
5141
      iprot.readFieldEnd()
5142
    iprot.readStructEnd()
5143
 
5144
  def write(self, oprot):
5145
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5146
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5147
      return
5148
    oprot.writeStructBegin('getItemIds_result')
5149
    if self.success is not None:
5150
      oprot.writeFieldBegin('success', TType.LIST, 0)
5151
      oprot.writeListBegin(TType.I64, len(self.success))
5361 mandeep.dh 5152
      for iter13 in self.success:
5153
        oprot.writeI64(iter13)
5110 mandeep.dh 5154
      oprot.writeListEnd()
5155
      oprot.writeFieldEnd()
5156
    oprot.writeFieldStop()
5157
    oprot.writeStructEnd()
5158
 
5159
  def validate(self):
5160
    return
5161
 
5162
 
5163
  def __repr__(self):
5164
    L = ['%s=%r' % (key, value)
5165
      for key, value in self.__dict__.iteritems()]
5166
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5167
 
5168
  def __eq__(self, other):
5169
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5170
 
5171
  def __ne__(self, other):
5172
    return not (self == other)
5185 mandeep.dh 5173
 
5174
class getInventoryItemsFromLastScanType_args:
5175
  """
5176
  Attributes:
5177
   - lastScanType
5178
  """
5179
 
5180
  thrift_spec = (
5181
    None, # 0
5182
    (1, TType.I32, 'lastScanType', None, None, ), # 1
5183
  )
5184
 
5185
  def __init__(self, lastScanType=None,):
5186
    self.lastScanType = lastScanType
5187
 
5188
  def read(self, iprot):
5189
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5190
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5191
      return
5192
    iprot.readStructBegin()
5193
    while True:
5194
      (fname, ftype, fid) = iprot.readFieldBegin()
5195
      if ftype == TType.STOP:
5196
        break
5197
      if fid == 1:
5198
        if ftype == TType.I32:
5199
          self.lastScanType = iprot.readI32();
5200
        else:
5201
          iprot.skip(ftype)
5202
      else:
5203
        iprot.skip(ftype)
5204
      iprot.readFieldEnd()
5205
    iprot.readStructEnd()
5206
 
5207
  def write(self, oprot):
5208
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5209
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5210
      return
5211
    oprot.writeStructBegin('getInventoryItemsFromLastScanType_args')
5212
    if self.lastScanType is not None:
5213
      oprot.writeFieldBegin('lastScanType', TType.I32, 1)
5214
      oprot.writeI32(self.lastScanType)
5215
      oprot.writeFieldEnd()
5216
    oprot.writeFieldStop()
5217
    oprot.writeStructEnd()
5218
 
5219
  def validate(self):
5220
    return
5221
 
5222
 
5223
  def __repr__(self):
5224
    L = ['%s=%r' % (key, value)
5225
      for key, value in self.__dict__.iteritems()]
5226
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5227
 
5228
  def __eq__(self, other):
5229
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5230
 
5231
  def __ne__(self, other):
5232
    return not (self == other)
5233
 
5234
class getInventoryItemsFromLastScanType_result:
5235
  """
5236
  Attributes:
5237
   - success
5238
   - wex
5239
  """
5240
 
5241
  thrift_spec = (
5242
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
5243
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
5244
  )
5245
 
5246
  def __init__(self, success=None, wex=None,):
5247
    self.success = success
5248
    self.wex = wex
5249
 
5250
  def read(self, iprot):
5251
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5252
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5253
      return
5254
    iprot.readStructBegin()
5255
    while True:
5256
      (fname, ftype, fid) = iprot.readFieldBegin()
5257
      if ftype == TType.STOP:
5258
        break
5259
      if fid == 0:
5260
        if ftype == TType.LIST:
5261
          self.success = []
5361 mandeep.dh 5262
          (_etype17, _size14) = iprot.readListBegin()
5263
          for _i18 in xrange(_size14):
5264
            _elem19 = InventoryItem()
5265
            _elem19.read(iprot)
5266
            self.success.append(_elem19)
5185 mandeep.dh 5267
          iprot.readListEnd()
5268
        else:
5269
          iprot.skip(ftype)
5270
      elif fid == 1:
5271
        if ftype == TType.STRUCT:
5272
          self.wex = WarehouseServiceException()
5273
          self.wex.read(iprot)
5274
        else:
5275
          iprot.skip(ftype)
5276
      else:
5277
        iprot.skip(ftype)
5278
      iprot.readFieldEnd()
5279
    iprot.readStructEnd()
5280
 
5281
  def write(self, oprot):
5282
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5283
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5284
      return
5285
    oprot.writeStructBegin('getInventoryItemsFromLastScanType_result')
5286
    if self.success is not None:
5287
      oprot.writeFieldBegin('success', TType.LIST, 0)
5288
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5361 mandeep.dh 5289
      for iter20 in self.success:
5290
        iter20.write(oprot)
5185 mandeep.dh 5291
      oprot.writeListEnd()
5292
      oprot.writeFieldEnd()
5293
    if self.wex is not None:
5294
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
5295
      self.wex.write(oprot)
5296
      oprot.writeFieldEnd()
5297
    oprot.writeFieldStop()
5298
    oprot.writeStructEnd()
5299
 
5300
  def validate(self):
5301
    return
5302
 
5303
 
5304
  def __repr__(self):
5305
    L = ['%s=%r' % (key, value)
5306
      for key, value in self.__dict__.iteritems()]
5307
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5308
 
5309
  def __eq__(self, other):
5310
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5311
 
5312
  def __ne__(self, other):
5313
    return not (self == other)
5314
 
5315
class getInventoryItemFromId_args:
5316
  """
5317
  Attributes:
5318
   - inventoryItemId
5319
  """
5320
 
5321
  thrift_spec = (
5322
    None, # 0
5323
    (1, TType.I64, 'inventoryItemId', None, None, ), # 1
5324
  )
5325
 
5326
  def __init__(self, inventoryItemId=None,):
5327
    self.inventoryItemId = inventoryItemId
5328
 
5329
  def read(self, iprot):
5330
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5331
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5332
      return
5333
    iprot.readStructBegin()
5334
    while True:
5335
      (fname, ftype, fid) = iprot.readFieldBegin()
5336
      if ftype == TType.STOP:
5337
        break
5338
      if fid == 1:
5339
        if ftype == TType.I64:
5340
          self.inventoryItemId = iprot.readI64();
5341
        else:
5342
          iprot.skip(ftype)
5343
      else:
5344
        iprot.skip(ftype)
5345
      iprot.readFieldEnd()
5346
    iprot.readStructEnd()
5347
 
5348
  def write(self, oprot):
5349
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5350
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5351
      return
5352
    oprot.writeStructBegin('getInventoryItemFromId_args')
5353
    if self.inventoryItemId is not None:
5354
      oprot.writeFieldBegin('inventoryItemId', TType.I64, 1)
5355
      oprot.writeI64(self.inventoryItemId)
5356
      oprot.writeFieldEnd()
5357
    oprot.writeFieldStop()
5358
    oprot.writeStructEnd()
5359
 
5360
  def validate(self):
5361
    return
5362
 
5363
 
5364
  def __repr__(self):
5365
    L = ['%s=%r' % (key, value)
5366
      for key, value in self.__dict__.iteritems()]
5367
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5368
 
5369
  def __eq__(self, other):
5370
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5371
 
5372
  def __ne__(self, other):
5373
    return not (self == other)
5374
 
5375
class getInventoryItemFromId_result:
5376
  """
5377
  Attributes:
5378
   - success
5379
   - wex
5380
  """
5381
 
5382
  thrift_spec = (
5383
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
5384
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
5385
  )
5386
 
5387
  def __init__(self, success=None, wex=None,):
5388
    self.success = success
5389
    self.wex = wex
5390
 
5391
  def read(self, iprot):
5392
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5393
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5394
      return
5395
    iprot.readStructBegin()
5396
    while True:
5397
      (fname, ftype, fid) = iprot.readFieldBegin()
5398
      if ftype == TType.STOP:
5399
        break
5400
      if fid == 0:
5401
        if ftype == TType.STRUCT:
5402
          self.success = InventoryItem()
5403
          self.success.read(iprot)
5404
        else:
5405
          iprot.skip(ftype)
5406
      elif fid == 1:
5407
        if ftype == TType.STRUCT:
5408
          self.wex = WarehouseServiceException()
5409
          self.wex.read(iprot)
5410
        else:
5411
          iprot.skip(ftype)
5412
      else:
5413
        iprot.skip(ftype)
5414
      iprot.readFieldEnd()
5415
    iprot.readStructEnd()
5416
 
5417
  def write(self, oprot):
5418
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5419
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5420
      return
5421
    oprot.writeStructBegin('getInventoryItemFromId_result')
5422
    if self.success is not None:
5423
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5424
      self.success.write(oprot)
5425
      oprot.writeFieldEnd()
5426
    if self.wex is not None:
5427
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
5428
      self.wex.write(oprot)
5429
      oprot.writeFieldEnd()
5430
    oprot.writeFieldStop()
5431
    oprot.writeStructEnd()
5432
 
5433
  def validate(self):
5434
    return
5435
 
5436
 
5437
  def __repr__(self):
5438
    L = ['%s=%r' % (key, value)
5439
      for key, value in self.__dict__.iteritems()]
5440
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5441
 
5442
  def __eq__(self, other):
5443
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5444
 
5445
  def __ne__(self, other):
5446
    return not (self == other)
5372 mandeep.dh 5447
 
5448
class getPurchaseScans_args:
5449
  """
5450
  Attributes:
5451
   - startDate
5452
   - endDate
5453
  """
5454
 
5455
  thrift_spec = (
5456
    None, # 0
5457
    (1, TType.I64, 'startDate', None, None, ), # 1
5458
    (2, TType.I64, 'endDate', None, None, ), # 2
5459
  )
5460
 
5461
  def __init__(self, startDate=None, endDate=None,):
5462
    self.startDate = startDate
5463
    self.endDate = endDate
5464
 
5465
  def read(self, iprot):
5466
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5467
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5468
      return
5469
    iprot.readStructBegin()
5470
    while True:
5471
      (fname, ftype, fid) = iprot.readFieldBegin()
5472
      if ftype == TType.STOP:
5473
        break
5474
      if fid == 1:
5475
        if ftype == TType.I64:
5476
          self.startDate = iprot.readI64();
5477
        else:
5478
          iprot.skip(ftype)
5479
      elif fid == 2:
5480
        if ftype == TType.I64:
5481
          self.endDate = iprot.readI64();
5482
        else:
5483
          iprot.skip(ftype)
5484
      else:
5485
        iprot.skip(ftype)
5486
      iprot.readFieldEnd()
5487
    iprot.readStructEnd()
5488
 
5489
  def write(self, oprot):
5490
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5491
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5492
      return
5493
    oprot.writeStructBegin('getPurchaseScans_args')
5494
    if self.startDate is not None:
5495
      oprot.writeFieldBegin('startDate', TType.I64, 1)
5496
      oprot.writeI64(self.startDate)
5497
      oprot.writeFieldEnd()
5498
    if self.endDate is not None:
5499
      oprot.writeFieldBegin('endDate', TType.I64, 2)
5500
      oprot.writeI64(self.endDate)
5501
      oprot.writeFieldEnd()
5502
    oprot.writeFieldStop()
5503
    oprot.writeStructEnd()
5504
 
5505
  def validate(self):
5506
    return
5507
 
5508
 
5509
  def __repr__(self):
5510
    L = ['%s=%r' % (key, value)
5511
      for key, value in self.__dict__.iteritems()]
5512
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5513
 
5514
  def __eq__(self, other):
5515
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5516
 
5517
  def __ne__(self, other):
5518
    return not (self == other)
5519
 
5520
class getPurchaseScans_result:
5521
  """
5522
  Attributes:
5523
   - success
5524
  """
5525
 
5526
  thrift_spec = (
5527
    (0, TType.LIST, 'success', (TType.STRUCT,(DetailedPurchaseScan, DetailedPurchaseScan.thrift_spec)), None, ), # 0
5528
  )
5529
 
5530
  def __init__(self, success=None,):
5531
    self.success = success
5532
 
5533
  def read(self, iprot):
5534
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5535
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5536
      return
5537
    iprot.readStructBegin()
5538
    while True:
5539
      (fname, ftype, fid) = iprot.readFieldBegin()
5540
      if ftype == TType.STOP:
5541
        break
5542
      if fid == 0:
5543
        if ftype == TType.LIST:
5544
          self.success = []
5545
          (_etype24, _size21) = iprot.readListBegin()
5546
          for _i25 in xrange(_size21):
5547
            _elem26 = DetailedPurchaseScan()
5548
            _elem26.read(iprot)
5549
            self.success.append(_elem26)
5550
          iprot.readListEnd()
5551
        else:
5552
          iprot.skip(ftype)
5553
      else:
5554
        iprot.skip(ftype)
5555
      iprot.readFieldEnd()
5556
    iprot.readStructEnd()
5557
 
5558
  def write(self, oprot):
5559
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5560
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5561
      return
5562
    oprot.writeStructBegin('getPurchaseScans_result')
5563
    if self.success is not None:
5564
      oprot.writeFieldBegin('success', TType.LIST, 0)
5565
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5566
      for iter27 in self.success:
5567
        iter27.write(oprot)
5568
      oprot.writeListEnd()
5569
      oprot.writeFieldEnd()
5570
    oprot.writeFieldStop()
5571
    oprot.writeStructEnd()
5572
 
5573
  def validate(self):
5574
    return
5575
 
5576
 
5577
  def __repr__(self):
5578
    L = ['%s=%r' % (key, value)
5579
      for key, value in self.__dict__.iteritems()]
5580
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5581
 
5582
  def __eq__(self, other):
5583
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5584
 
5585
  def __ne__(self, other):
5586
    return not (self == other)
5496 mandeep.dh 5587
 
7216 amar.kumar 5588
class getPurchaseScansByGrnDate_args:
5589
  """
5590
  Attributes:
5591
   - startDate
5592
   - endDate
5593
  """
5594
 
5595
  thrift_spec = (
5596
    None, # 0
5597
    (1, TType.I64, 'startDate', None, None, ), # 1
5598
    (2, TType.I64, 'endDate', None, None, ), # 2
5599
  )
5600
 
5601
  def __init__(self, startDate=None, endDate=None,):
5602
    self.startDate = startDate
5603
    self.endDate = endDate
5604
 
5605
  def read(self, iprot):
5606
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5607
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5608
      return
5609
    iprot.readStructBegin()
5610
    while True:
5611
      (fname, ftype, fid) = iprot.readFieldBegin()
5612
      if ftype == TType.STOP:
5613
        break
5614
      if fid == 1:
5615
        if ftype == TType.I64:
5616
          self.startDate = iprot.readI64();
5617
        else:
5618
          iprot.skip(ftype)
5619
      elif fid == 2:
5620
        if ftype == TType.I64:
5621
          self.endDate = iprot.readI64();
5622
        else:
5623
          iprot.skip(ftype)
5624
      else:
5625
        iprot.skip(ftype)
5626
      iprot.readFieldEnd()
5627
    iprot.readStructEnd()
5628
 
5629
  def write(self, oprot):
5630
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5631
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5632
      return
5633
    oprot.writeStructBegin('getPurchaseScansByGrnDate_args')
5634
    if self.startDate is not None:
5635
      oprot.writeFieldBegin('startDate', TType.I64, 1)
5636
      oprot.writeI64(self.startDate)
5637
      oprot.writeFieldEnd()
5638
    if self.endDate is not None:
5639
      oprot.writeFieldBegin('endDate', TType.I64, 2)
5640
      oprot.writeI64(self.endDate)
5641
      oprot.writeFieldEnd()
5642
    oprot.writeFieldStop()
5643
    oprot.writeStructEnd()
5644
 
5645
  def validate(self):
5646
    return
5647
 
5648
 
5649
  def __repr__(self):
5650
    L = ['%s=%r' % (key, value)
5651
      for key, value in self.__dict__.iteritems()]
5652
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5653
 
5654
  def __eq__(self, other):
5655
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5656
 
5657
  def __ne__(self, other):
5658
    return not (self == other)
5659
 
5660
class getPurchaseScansByGrnDate_result:
5661
  """
5662
  Attributes:
5663
   - success
5664
  """
5665
 
5666
  thrift_spec = (
5667
    (0, TType.LIST, 'success', (TType.STRUCT,(DetailedPurchaseScan, DetailedPurchaseScan.thrift_spec)), None, ), # 0
5668
  )
5669
 
5670
  def __init__(self, success=None,):
5671
    self.success = success
5672
 
5673
  def read(self, iprot):
5674
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5675
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5676
      return
5677
    iprot.readStructBegin()
5678
    while True:
5679
      (fname, ftype, fid) = iprot.readFieldBegin()
5680
      if ftype == TType.STOP:
5681
        break
5682
      if fid == 0:
5683
        if ftype == TType.LIST:
5684
          self.success = []
5685
          (_etype31, _size28) = iprot.readListBegin()
5686
          for _i32 in xrange(_size28):
5687
            _elem33 = DetailedPurchaseScan()
5688
            _elem33.read(iprot)
5689
            self.success.append(_elem33)
5690
          iprot.readListEnd()
5691
        else:
5692
          iprot.skip(ftype)
5693
      else:
5694
        iprot.skip(ftype)
5695
      iprot.readFieldEnd()
5696
    iprot.readStructEnd()
5697
 
5698
  def write(self, oprot):
5699
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5700
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5701
      return
5702
    oprot.writeStructBegin('getPurchaseScansByGrnDate_result')
5703
    if self.success is not None:
5704
      oprot.writeFieldBegin('success', TType.LIST, 0)
5705
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5706
      for iter34 in self.success:
5707
        iter34.write(oprot)
5708
      oprot.writeListEnd()
5709
      oprot.writeFieldEnd()
5710
    oprot.writeFieldStop()
5711
    oprot.writeStructEnd()
5712
 
5713
  def validate(self):
5714
    return
5715
 
5716
 
5717
  def __repr__(self):
5718
    L = ['%s=%r' % (key, value)
5719
      for key, value in self.__dict__.iteritems()]
5720
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5721
 
5722
  def __eq__(self, other):
5723
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5724
 
5725
  def __ne__(self, other):
5726
    return not (self == other)
5727
 
10407 amar.kumar 5728
class getEmptyGrnsByDate_args:
5729
  """
5730
  Attributes:
5731
   - startDate
5732
   - endDate
5733
  """
5734
 
5735
  thrift_spec = (
5736
    None, # 0
5737
    (1, TType.I64, 'startDate', None, None, ), # 1
5738
    (2, TType.I64, 'endDate', None, None, ), # 2
5739
  )
5740
 
5741
  def __init__(self, startDate=None, endDate=None,):
5742
    self.startDate = startDate
5743
    self.endDate = endDate
5744
 
5745
  def read(self, iprot):
5746
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5747
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5748
      return
5749
    iprot.readStructBegin()
5750
    while True:
5751
      (fname, ftype, fid) = iprot.readFieldBegin()
5752
      if ftype == TType.STOP:
5753
        break
5754
      if fid == 1:
5755
        if ftype == TType.I64:
5756
          self.startDate = iprot.readI64();
5757
        else:
5758
          iprot.skip(ftype)
5759
      elif fid == 2:
5760
        if ftype == TType.I64:
5761
          self.endDate = iprot.readI64();
5762
        else:
5763
          iprot.skip(ftype)
5764
      else:
5765
        iprot.skip(ftype)
5766
      iprot.readFieldEnd()
5767
    iprot.readStructEnd()
5768
 
5769
  def write(self, oprot):
5770
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5771
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5772
      return
5773
    oprot.writeStructBegin('getEmptyGrnsByDate_args')
5774
    if self.startDate is not None:
5775
      oprot.writeFieldBegin('startDate', TType.I64, 1)
5776
      oprot.writeI64(self.startDate)
5777
      oprot.writeFieldEnd()
5778
    if self.endDate is not None:
5779
      oprot.writeFieldBegin('endDate', TType.I64, 2)
5780
      oprot.writeI64(self.endDate)
5781
      oprot.writeFieldEnd()
5782
    oprot.writeFieldStop()
5783
    oprot.writeStructEnd()
5784
 
5785
  def validate(self):
5786
    return
5787
 
5788
 
5789
  def __repr__(self):
5790
    L = ['%s=%r' % (key, value)
5791
      for key, value in self.__dict__.iteritems()]
5792
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5793
 
5794
  def __eq__(self, other):
5795
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5796
 
5797
  def __ne__(self, other):
5798
    return not (self == other)
5799
 
5800
class getEmptyGrnsByDate_result:
5801
  """
5802
  Attributes:
5803
   - success
5804
  """
5805
 
5806
  thrift_spec = (
5807
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5808
  )
5809
 
5810
  def __init__(self, success=None,):
5811
    self.success = success
5812
 
5813
  def read(self, iprot):
5814
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5815
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5816
      return
5817
    iprot.readStructBegin()
5818
    while True:
5819
      (fname, ftype, fid) = iprot.readFieldBegin()
5820
      if ftype == TType.STOP:
5821
        break
5822
      if fid == 0:
5823
        if ftype == TType.LIST:
5824
          self.success = []
5825
          (_etype38, _size35) = iprot.readListBegin()
5826
          for _i39 in xrange(_size35):
5827
            _elem40 = iprot.readI64();
5828
            self.success.append(_elem40)
5829
          iprot.readListEnd()
5830
        else:
5831
          iprot.skip(ftype)
5832
      else:
5833
        iprot.skip(ftype)
5834
      iprot.readFieldEnd()
5835
    iprot.readStructEnd()
5836
 
5837
  def write(self, oprot):
5838
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5839
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5840
      return
5841
    oprot.writeStructBegin('getEmptyGrnsByDate_result')
5842
    if self.success is not None:
5843
      oprot.writeFieldBegin('success', TType.LIST, 0)
5844
      oprot.writeListBegin(TType.I64, len(self.success))
5845
      for iter41 in self.success:
5846
        oprot.writeI64(iter41)
5847
      oprot.writeListEnd()
5848
      oprot.writeFieldEnd()
5849
    oprot.writeFieldStop()
5850
    oprot.writeStructEnd()
5851
 
5852
  def validate(self):
5853
    return
5854
 
5855
 
5856
  def __repr__(self):
5857
    L = ['%s=%r' % (key, value)
5858
      for key, value in self.__dict__.iteritems()]
5859
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5860
 
5861
  def __eq__(self, other):
5862
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5863
 
5864
  def __ne__(self, other):
5865
    return not (self == other)
5866
 
5496 mandeep.dh 5867
class fetchScansPerInvoiceNumber_args:
5868
  """
5869
  Attributes:
5870
   - date
5871
  """
5872
 
5873
  thrift_spec = (
5874
    None, # 0
5875
    (1, TType.I64, 'date', None, None, ), # 1
5876
  )
5877
 
5878
  def __init__(self, date=None,):
5879
    self.date = date
5880
 
5881
  def read(self, iprot):
5882
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5883
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5884
      return
5885
    iprot.readStructBegin()
5886
    while True:
5887
      (fname, ftype, fid) = iprot.readFieldBegin()
5888
      if ftype == TType.STOP:
5889
        break
5890
      if fid == 1:
5891
        if ftype == TType.I64:
5892
          self.date = iprot.readI64();
5893
        else:
5894
          iprot.skip(ftype)
5895
      else:
5896
        iprot.skip(ftype)
5897
      iprot.readFieldEnd()
5898
    iprot.readStructEnd()
5899
 
5900
  def write(self, oprot):
5901
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5902
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5903
      return
5904
    oprot.writeStructBegin('fetchScansPerInvoiceNumber_args')
5905
    if self.date is not None:
5906
      oprot.writeFieldBegin('date', TType.I64, 1)
5907
      oprot.writeI64(self.date)
5908
      oprot.writeFieldEnd()
5909
    oprot.writeFieldStop()
5910
    oprot.writeStructEnd()
5911
 
5912
  def validate(self):
5913
    return
5914
 
5915
 
5916
  def __repr__(self):
5917
    L = ['%s=%r' % (key, value)
5918
      for key, value in self.__dict__.iteritems()]
5919
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5920
 
5921
  def __eq__(self, other):
5922
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5923
 
5924
  def __ne__(self, other):
5925
    return not (self == other)
5926
 
5927
class fetchScansPerInvoiceNumber_result:
5928
  """
5929
  Attributes:
5930
   - success
5931
  """
5932
 
5933
  thrift_spec = (
5934
    (0, TType.LIST, 'success', (TType.STRUCT,(InvoiceScan, InvoiceScan.thrift_spec)), None, ), # 0
5935
  )
5936
 
5937
  def __init__(self, success=None,):
5938
    self.success = success
5939
 
5940
  def read(self, iprot):
5941
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5942
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5943
      return
5944
    iprot.readStructBegin()
5945
    while True:
5946
      (fname, ftype, fid) = iprot.readFieldBegin()
5947
      if ftype == TType.STOP:
5948
        break
5949
      if fid == 0:
5950
        if ftype == TType.LIST:
5951
          self.success = []
10407 amar.kumar 5952
          (_etype45, _size42) = iprot.readListBegin()
5953
          for _i46 in xrange(_size42):
5954
            _elem47 = InvoiceScan()
5955
            _elem47.read(iprot)
5956
            self.success.append(_elem47)
5496 mandeep.dh 5957
          iprot.readListEnd()
5958
        else:
5959
          iprot.skip(ftype)
5960
      else:
5961
        iprot.skip(ftype)
5962
      iprot.readFieldEnd()
5963
    iprot.readStructEnd()
5964
 
5965
  def write(self, oprot):
5966
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5967
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5968
      return
5969
    oprot.writeStructBegin('fetchScansPerInvoiceNumber_result')
5970
    if self.success is not None:
5971
      oprot.writeFieldBegin('success', TType.LIST, 0)
5972
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 5973
      for iter48 in self.success:
5974
        iter48.write(oprot)
5496 mandeep.dh 5975
      oprot.writeListEnd()
5976
      oprot.writeFieldEnd()
5977
    oprot.writeFieldStop()
5978
    oprot.writeStructEnd()
5979
 
5980
  def validate(self):
5981
    return
5982
 
5983
 
5984
  def __repr__(self):
5985
    L = ['%s=%r' % (key, value)
5986
      for key, value in self.__dict__.iteritems()]
5987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5988
 
5989
  def __eq__(self, other):
5990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5991
 
5992
  def __ne__(self, other):
5993
    return not (self == other)
5620 mandeep.dh 5994
 
5995
class getInventoryItemFromOrder_args:
5996
  """
5997
  Attributes:
5998
   - orderId
5999
  """
6000
 
6001
  thrift_spec = (
6002
    None, # 0
6003
    (1, TType.I64, 'orderId', None, None, ), # 1
6004
  )
6005
 
6006
  def __init__(self, orderId=None,):
6007
    self.orderId = orderId
6008
 
6009
  def read(self, iprot):
6010
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6011
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6012
      return
6013
    iprot.readStructBegin()
6014
    while True:
6015
      (fname, ftype, fid) = iprot.readFieldBegin()
6016
      if ftype == TType.STOP:
6017
        break
6018
      if fid == 1:
6019
        if ftype == TType.I64:
6020
          self.orderId = iprot.readI64();
6021
        else:
6022
          iprot.skip(ftype)
6023
      else:
6024
        iprot.skip(ftype)
6025
      iprot.readFieldEnd()
6026
    iprot.readStructEnd()
6027
 
6028
  def write(self, oprot):
6029
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6030
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6031
      return
6032
    oprot.writeStructBegin('getInventoryItemFromOrder_args')
6033
    if self.orderId is not None:
6034
      oprot.writeFieldBegin('orderId', TType.I64, 1)
6035
      oprot.writeI64(self.orderId)
6036
      oprot.writeFieldEnd()
6037
    oprot.writeFieldStop()
6038
    oprot.writeStructEnd()
6039
 
6040
  def validate(self):
6041
    return
6042
 
6043
 
6044
  def __repr__(self):
6045
    L = ['%s=%r' % (key, value)
6046
      for key, value in self.__dict__.iteritems()]
6047
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6048
 
6049
  def __eq__(self, other):
6050
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6051
 
6052
  def __ne__(self, other):
6053
    return not (self == other)
6054
 
6055
class getInventoryItemFromOrder_result:
6056
  """
6057
  Attributes:
6058
   - success
6059
   - we
6060
  """
6061
 
6062
  thrift_spec = (
6063
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
6064
    (1, TType.STRUCT, 'we', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6065
  )
6066
 
6067
  def __init__(self, success=None, we=None,):
6068
    self.success = success
6069
    self.we = we
6070
 
6071
  def read(self, iprot):
6072
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6073
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6074
      return
6075
    iprot.readStructBegin()
6076
    while True:
6077
      (fname, ftype, fid) = iprot.readFieldBegin()
6078
      if ftype == TType.STOP:
6079
        break
6080
      if fid == 0:
6081
        if ftype == TType.STRUCT:
6082
          self.success = InventoryItem()
6083
          self.success.read(iprot)
6084
        else:
6085
          iprot.skip(ftype)
6086
      elif fid == 1:
6087
        if ftype == TType.STRUCT:
6088
          self.we = WarehouseServiceException()
6089
          self.we.read(iprot)
6090
        else:
6091
          iprot.skip(ftype)
6092
      else:
6093
        iprot.skip(ftype)
6094
      iprot.readFieldEnd()
6095
    iprot.readStructEnd()
6096
 
6097
  def write(self, oprot):
6098
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6099
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6100
      return
6101
    oprot.writeStructBegin('getInventoryItemFromOrder_result')
6102
    if self.success is not None:
6103
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6104
      self.success.write(oprot)
6105
      oprot.writeFieldEnd()
6106
    if self.we is not None:
6107
      oprot.writeFieldBegin('we', TType.STRUCT, 1)
6108
      self.we.write(oprot)
6109
      oprot.writeFieldEnd()
6110
    oprot.writeFieldStop()
6111
    oprot.writeStructEnd()
6112
 
6113
  def validate(self):
6114
    return
6115
 
6116
 
6117
  def __repr__(self):
6118
    L = ['%s=%r' % (key, value)
6119
      for key, value in self.__dict__.iteritems()]
6120
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6121
 
6122
  def __eq__(self, other):
6123
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6124
 
6125
  def __ne__(self, other):
6126
    return not (self == other)
5711 mandeep.dh 6127
 
6128
class getInventoryAge_args:
6129
 
6130
  thrift_spec = (
6131
  )
6132
 
6133
  def read(self, iprot):
6134
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6135
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6136
      return
6137
    iprot.readStructBegin()
6138
    while True:
6139
      (fname, ftype, fid) = iprot.readFieldBegin()
6140
      if ftype == TType.STOP:
6141
        break
6142
      else:
6143
        iprot.skip(ftype)
6144
      iprot.readFieldEnd()
6145
    iprot.readStructEnd()
6146
 
6147
  def write(self, oprot):
6148
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6149
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6150
      return
6151
    oprot.writeStructBegin('getInventoryAge_args')
6152
    oprot.writeFieldStop()
6153
    oprot.writeStructEnd()
6154
 
6155
  def validate(self):
6156
    return
6157
 
6158
 
6159
  def __repr__(self):
6160
    L = ['%s=%r' % (key, value)
6161
      for key, value in self.__dict__.iteritems()]
6162
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6163
 
6164
  def __eq__(self, other):
6165
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6166
 
6167
  def __ne__(self, other):
6168
    return not (self == other)
6169
 
6170
class getInventoryAge_result:
6171
  """
6172
  Attributes:
6173
   - success
6174
  """
6175
 
6176
  thrift_spec = (
6177
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAge, InventoryAge.thrift_spec)), None, ), # 0
6178
  )
6179
 
6180
  def __init__(self, success=None,):
6181
    self.success = success
6182
 
6183
  def read(self, iprot):
6184
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6185
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6186
      return
6187
    iprot.readStructBegin()
6188
    while True:
6189
      (fname, ftype, fid) = iprot.readFieldBegin()
6190
      if ftype == TType.STOP:
6191
        break
6192
      if fid == 0:
6193
        if ftype == TType.LIST:
6194
          self.success = []
10407 amar.kumar 6195
          (_etype52, _size49) = iprot.readListBegin()
6196
          for _i53 in xrange(_size49):
6197
            _elem54 = InventoryAge()
6198
            _elem54.read(iprot)
6199
            self.success.append(_elem54)
5711 mandeep.dh 6200
          iprot.readListEnd()
6201
        else:
6202
          iprot.skip(ftype)
6203
      else:
6204
        iprot.skip(ftype)
6205
      iprot.readFieldEnd()
6206
    iprot.readStructEnd()
6207
 
6208
  def write(self, oprot):
6209
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6210
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6211
      return
6212
    oprot.writeStructBegin('getInventoryAge_result')
6213
    if self.success is not None:
6214
      oprot.writeFieldBegin('success', TType.LIST, 0)
6215
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6216
      for iter55 in self.success:
6217
        iter55.write(oprot)
5711 mandeep.dh 6218
      oprot.writeListEnd()
6219
      oprot.writeFieldEnd()
6220
    oprot.writeFieldStop()
6221
    oprot.writeStructEnd()
6222
 
6223
  def validate(self):
6224
    return
6225
 
6226
 
6227
  def __repr__(self):
6228
    L = ['%s=%r' % (key, value)
6229
      for key, value in self.__dict__.iteritems()]
6230
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6231
 
6232
  def __eq__(self, other):
6233
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6234
 
6235
  def __ne__(self, other):
6236
    return not (self == other)
6361 rajveer 6237
 
6238
class getInventoryScansForItem_args:
6239
  """
6240
  Attributes:
6241
   - itemId
6242
   - fromDate
6243
   - toDate
6244
  """
6245
 
6246
  thrift_spec = (
6247
    None, # 0
6248
    (1, TType.I64, 'itemId', None, None, ), # 1
6249
    (2, TType.I64, 'fromDate', None, None, ), # 2
6250
    (3, TType.I64, 'toDate', None, None, ), # 3
6251
  )
6252
 
6253
  def __init__(self, itemId=None, fromDate=None, toDate=None,):
6254
    self.itemId = itemId
6255
    self.fromDate = fromDate
6256
    self.toDate = toDate
6257
 
6258
  def read(self, iprot):
6259
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6260
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6261
      return
6262
    iprot.readStructBegin()
6263
    while True:
6264
      (fname, ftype, fid) = iprot.readFieldBegin()
6265
      if ftype == TType.STOP:
6266
        break
6267
      if fid == 1:
6268
        if ftype == TType.I64:
6269
          self.itemId = iprot.readI64();
6270
        else:
6271
          iprot.skip(ftype)
6272
      elif fid == 2:
6273
        if ftype == TType.I64:
6274
          self.fromDate = iprot.readI64();
6275
        else:
6276
          iprot.skip(ftype)
6277
      elif fid == 3:
6278
        if ftype == TType.I64:
6279
          self.toDate = iprot.readI64();
6280
        else:
6281
          iprot.skip(ftype)
6282
      else:
6283
        iprot.skip(ftype)
6284
      iprot.readFieldEnd()
6285
    iprot.readStructEnd()
6286
 
6287
  def write(self, oprot):
6288
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6289
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6290
      return
6291
    oprot.writeStructBegin('getInventoryScansForItem_args')
6292
    if self.itemId is not None:
6293
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6294
      oprot.writeI64(self.itemId)
6295
      oprot.writeFieldEnd()
6296
    if self.fromDate is not None:
6297
      oprot.writeFieldBegin('fromDate', TType.I64, 2)
6298
      oprot.writeI64(self.fromDate)
6299
      oprot.writeFieldEnd()
6300
    if self.toDate is not None:
6301
      oprot.writeFieldBegin('toDate', TType.I64, 3)
6302
      oprot.writeI64(self.toDate)
6303
      oprot.writeFieldEnd()
6304
    oprot.writeFieldStop()
6305
    oprot.writeStructEnd()
6306
 
6307
  def validate(self):
6308
    return
6309
 
6310
 
6311
  def __repr__(self):
6312
    L = ['%s=%r' % (key, value)
6313
      for key, value in self.__dict__.iteritems()]
6314
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6315
 
6316
  def __eq__(self, other):
6317
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6318
 
6319
  def __ne__(self, other):
6320
    return not (self == other)
6321
 
6322
class getInventoryScansForItem_result:
6323
  """
6324
  Attributes:
6325
   - success
6326
  """
6327
 
6328
  thrift_spec = (
6329
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
6330
  )
6331
 
6332
  def __init__(self, success=None,):
6333
    self.success = success
6334
 
6335
  def read(self, iprot):
6336
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6337
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6338
      return
6339
    iprot.readStructBegin()
6340
    while True:
6341
      (fname, ftype, fid) = iprot.readFieldBegin()
6342
      if ftype == TType.STOP:
6343
        break
6344
      if fid == 0:
6345
        if ftype == TType.LIST:
6346
          self.success = []
10407 amar.kumar 6347
          (_etype59, _size56) = iprot.readListBegin()
6348
          for _i60 in xrange(_size56):
6349
            _elem61 = Scan()
6350
            _elem61.read(iprot)
6351
            self.success.append(_elem61)
6361 rajveer 6352
          iprot.readListEnd()
6353
        else:
6354
          iprot.skip(ftype)
6355
      else:
6356
        iprot.skip(ftype)
6357
      iprot.readFieldEnd()
6358
    iprot.readStructEnd()
6359
 
6360
  def write(self, oprot):
6361
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6362
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6363
      return
6364
    oprot.writeStructBegin('getInventoryScansForItem_result')
6365
    if self.success is not None:
6366
      oprot.writeFieldBegin('success', TType.LIST, 0)
6367
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6368
      for iter62 in self.success:
6369
        iter62.write(oprot)
6361 rajveer 6370
      oprot.writeListEnd()
6371
      oprot.writeFieldEnd()
6372
    oprot.writeFieldStop()
6373
    oprot.writeStructEnd()
6374
 
6375
  def validate(self):
6376
    return
6377
 
6378
 
6379
  def __repr__(self):
6380
    L = ['%s=%r' % (key, value)
6381
      for key, value in self.__dict__.iteritems()]
6382
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6383
 
6384
  def __eq__(self, other):
6385
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6386
 
6387
  def __ne__(self, other):
6388
    return not (self == other)
6389
 
6390
class getScanRecordsForSerialNumber_args:
6391
  """
6392
  Attributes:
6393
   - serialNumber
6394
  """
6395
 
6396
  thrift_spec = (
6397
    None, # 0
7410 amar.kumar 6398
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
6361 rajveer 6399
  )
6400
 
6401
  def __init__(self, serialNumber=None,):
6402
    self.serialNumber = serialNumber
6403
 
6404
  def read(self, iprot):
6405
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6406
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6407
      return
6408
    iprot.readStructBegin()
6409
    while True:
6410
      (fname, ftype, fid) = iprot.readFieldBegin()
6411
      if ftype == TType.STOP:
6412
        break
6413
      if fid == 1:
7410 amar.kumar 6414
        if ftype == TType.STRING:
6415
          self.serialNumber = iprot.readString();
6361 rajveer 6416
        else:
6417
          iprot.skip(ftype)
6418
      else:
6419
        iprot.skip(ftype)
6420
      iprot.readFieldEnd()
6421
    iprot.readStructEnd()
6422
 
6423
  def write(self, oprot):
6424
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6425
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6426
      return
6427
    oprot.writeStructBegin('getScanRecordsForSerialNumber_args')
6428
    if self.serialNumber is not None:
7410 amar.kumar 6429
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
6430
      oprot.writeString(self.serialNumber)
6361 rajveer 6431
      oprot.writeFieldEnd()
6432
    oprot.writeFieldStop()
6433
    oprot.writeStructEnd()
6434
 
6435
  def validate(self):
6436
    return
6437
 
6438
 
6439
  def __repr__(self):
6440
    L = ['%s=%r' % (key, value)
6441
      for key, value in self.__dict__.iteritems()]
6442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6443
 
6444
  def __eq__(self, other):
6445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6446
 
6447
  def __ne__(self, other):
6448
    return not (self == other)
6449
 
6450
class getScanRecordsForSerialNumber_result:
6451
  """
6452
  Attributes:
6453
   - success
6454
  """
6455
 
6456
  thrift_spec = (
6457
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
6458
  )
6459
 
6460
  def __init__(self, success=None,):
6461
    self.success = success
6462
 
6463
  def read(self, iprot):
6464
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6465
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6466
      return
6467
    iprot.readStructBegin()
6468
    while True:
6469
      (fname, ftype, fid) = iprot.readFieldBegin()
6470
      if ftype == TType.STOP:
6471
        break
6472
      if fid == 0:
6473
        if ftype == TType.LIST:
6474
          self.success = []
10407 amar.kumar 6475
          (_etype66, _size63) = iprot.readListBegin()
6476
          for _i67 in xrange(_size63):
6477
            _elem68 = Scan()
6478
            _elem68.read(iprot)
6479
            self.success.append(_elem68)
6361 rajveer 6480
          iprot.readListEnd()
6481
        else:
6482
          iprot.skip(ftype)
6483
      else:
6484
        iprot.skip(ftype)
6485
      iprot.readFieldEnd()
6486
    iprot.readStructEnd()
6487
 
6488
  def write(self, oprot):
6489
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6490
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6491
      return
6492
    oprot.writeStructBegin('getScanRecordsForSerialNumber_result')
6493
    if self.success is not None:
6494
      oprot.writeFieldBegin('success', TType.LIST, 0)
6495
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6496
      for iter69 in self.success:
6497
        iter69.write(oprot)
6361 rajveer 6498
      oprot.writeListEnd()
6499
      oprot.writeFieldEnd()
6500
    oprot.writeFieldStop()
6501
    oprot.writeStructEnd()
6502
 
6503
  def validate(self):
6504
    return
6505
 
6506
 
6507
  def __repr__(self):
6508
    L = ['%s=%r' % (key, value)
6509
      for key, value in self.__dict__.iteritems()]
6510
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6511
 
6512
  def __eq__(self, other):
6513
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6514
 
6515
  def __ne__(self, other):
6516
    return not (self == other)
6467 amar.kumar 6517
 
6518
class scanForPurchaseReturn_args:
6519
  """
6520
  Attributes:
6521
   - saleReturnItems
6522
   - vendorId
7718 amar.kumar 6523
   - billingWarehouseId
6467 amar.kumar 6524
  """
6525
 
6526
  thrift_spec = (
6527
    None, # 0
6528
    (1, TType.LIST, 'saleReturnItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
6529
    (2, TType.I64, 'vendorId', None, None, ), # 2
7718 amar.kumar 6530
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
6467 amar.kumar 6531
  )
6532
 
7718 amar.kumar 6533
  def __init__(self, saleReturnItems=None, vendorId=None, billingWarehouseId=None,):
6467 amar.kumar 6534
    self.saleReturnItems = saleReturnItems
6535
    self.vendorId = vendorId
7718 amar.kumar 6536
    self.billingWarehouseId = billingWarehouseId
6467 amar.kumar 6537
 
6538
  def read(self, iprot):
6539
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6540
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6541
      return
6542
    iprot.readStructBegin()
6543
    while True:
6544
      (fname, ftype, fid) = iprot.readFieldBegin()
6545
      if ftype == TType.STOP:
6546
        break
6547
      if fid == 1:
6548
        if ftype == TType.LIST:
6549
          self.saleReturnItems = []
10407 amar.kumar 6550
          (_etype73, _size70) = iprot.readListBegin()
6551
          for _i74 in xrange(_size70):
6552
            _elem75 = InventoryItem()
6553
            _elem75.read(iprot)
6554
            self.saleReturnItems.append(_elem75)
6467 amar.kumar 6555
          iprot.readListEnd()
6556
        else:
6557
          iprot.skip(ftype)
6558
      elif fid == 2:
6559
        if ftype == TType.I64:
6560
          self.vendorId = iprot.readI64();
6561
        else:
6562
          iprot.skip(ftype)
7718 amar.kumar 6563
      elif fid == 3:
6564
        if ftype == TType.I64:
6565
          self.billingWarehouseId = iprot.readI64();
6566
        else:
6567
          iprot.skip(ftype)
6467 amar.kumar 6568
      else:
6569
        iprot.skip(ftype)
6570
      iprot.readFieldEnd()
6571
    iprot.readStructEnd()
6572
 
6573
  def write(self, oprot):
6574
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6575
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6576
      return
6577
    oprot.writeStructBegin('scanForPurchaseReturn_args')
6578
    if self.saleReturnItems is not None:
6579
      oprot.writeFieldBegin('saleReturnItems', TType.LIST, 1)
6580
      oprot.writeListBegin(TType.STRUCT, len(self.saleReturnItems))
10407 amar.kumar 6581
      for iter76 in self.saleReturnItems:
6582
        iter76.write(oprot)
6467 amar.kumar 6583
      oprot.writeListEnd()
6584
      oprot.writeFieldEnd()
6585
    if self.vendorId is not None:
6586
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6587
      oprot.writeI64(self.vendorId)
6588
      oprot.writeFieldEnd()
7718 amar.kumar 6589
    if self.billingWarehouseId is not None:
6590
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
6591
      oprot.writeI64(self.billingWarehouseId)
6592
      oprot.writeFieldEnd()
6467 amar.kumar 6593
    oprot.writeFieldStop()
6594
    oprot.writeStructEnd()
6595
 
6596
  def validate(self):
6597
    return
6598
 
6599
 
6600
  def __repr__(self):
6601
    L = ['%s=%r' % (key, value)
6602
      for key, value in self.__dict__.iteritems()]
6603
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6604
 
6605
  def __eq__(self, other):
6606
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6607
 
6608
  def __ne__(self, other):
6609
    return not (self == other)
6610
 
6611
class scanForPurchaseReturn_result:
6612
  """
6613
  Attributes:
10864 manish.sha 6614
   - success
6467 amar.kumar 6615
   - ex
6616
  """
6617
 
6618
  thrift_spec = (
10864 manish.sha 6619
    (0, TType.I64, 'success', None, None, ), # 0
6467 amar.kumar 6620
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6621
  )
6622
 
10864 manish.sha 6623
  def __init__(self, success=None, ex=None,):
6624
    self.success = success
6467 amar.kumar 6625
    self.ex = ex
6626
 
6627
  def read(self, iprot):
6628
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6629
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6630
      return
6631
    iprot.readStructBegin()
6632
    while True:
6633
      (fname, ftype, fid) = iprot.readFieldBegin()
6634
      if ftype == TType.STOP:
6635
        break
10864 manish.sha 6636
      if fid == 0:
6637
        if ftype == TType.I64:
6638
          self.success = iprot.readI64();
6639
        else:
6640
          iprot.skip(ftype)
6641
      elif fid == 1:
6467 amar.kumar 6642
        if ftype == TType.STRUCT:
6643
          self.ex = WarehouseServiceException()
6644
          self.ex.read(iprot)
6645
        else:
6646
          iprot.skip(ftype)
6647
      else:
6648
        iprot.skip(ftype)
6649
      iprot.readFieldEnd()
6650
    iprot.readStructEnd()
6651
 
6652
  def write(self, oprot):
6653
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6654
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6655
      return
6656
    oprot.writeStructBegin('scanForPurchaseReturn_result')
10864 manish.sha 6657
    if self.success is not None:
6658
      oprot.writeFieldBegin('success', TType.I64, 0)
6659
      oprot.writeI64(self.success)
6660
      oprot.writeFieldEnd()
6467 amar.kumar 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)
6630 amar.kumar 6682
 
6683
class scanForLostItem_args:
6684
  """
6685
  Attributes:
6686
   - lostItems
6687
   - vendorId
7718 amar.kumar 6688
   - billingWarehouseId
6630 amar.kumar 6689
  """
6690
 
6691
  thrift_spec = (
6692
    None, # 0
6693
    (1, TType.LIST, 'lostItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
6694
    (2, TType.I64, 'vendorId', None, None, ), # 2
7718 amar.kumar 6695
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
6630 amar.kumar 6696
  )
6697
 
7718 amar.kumar 6698
  def __init__(self, lostItems=None, vendorId=None, billingWarehouseId=None,):
6630 amar.kumar 6699
    self.lostItems = lostItems
6700
    self.vendorId = vendorId
7718 amar.kumar 6701
    self.billingWarehouseId = billingWarehouseId
6630 amar.kumar 6702
 
6703
  def read(self, iprot):
6704
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6705
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6706
      return
6707
    iprot.readStructBegin()
6708
    while True:
6709
      (fname, ftype, fid) = iprot.readFieldBegin()
6710
      if ftype == TType.STOP:
6711
        break
6712
      if fid == 1:
6713
        if ftype == TType.LIST:
6714
          self.lostItems = []
10407 amar.kumar 6715
          (_etype80, _size77) = iprot.readListBegin()
6716
          for _i81 in xrange(_size77):
6717
            _elem82 = InventoryItem()
6718
            _elem82.read(iprot)
6719
            self.lostItems.append(_elem82)
6630 amar.kumar 6720
          iprot.readListEnd()
6721
        else:
6722
          iprot.skip(ftype)
6723
      elif fid == 2:
6724
        if ftype == TType.I64:
6725
          self.vendorId = iprot.readI64();
6726
        else:
6727
          iprot.skip(ftype)
7718 amar.kumar 6728
      elif fid == 3:
6729
        if ftype == TType.I64:
6730
          self.billingWarehouseId = iprot.readI64();
6731
        else:
6732
          iprot.skip(ftype)
6630 amar.kumar 6733
      else:
6734
        iprot.skip(ftype)
6735
      iprot.readFieldEnd()
6736
    iprot.readStructEnd()
6737
 
6738
  def write(self, oprot):
6739
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6740
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6741
      return
6742
    oprot.writeStructBegin('scanForLostItem_args')
6743
    if self.lostItems is not None:
6744
      oprot.writeFieldBegin('lostItems', TType.LIST, 1)
6745
      oprot.writeListBegin(TType.STRUCT, len(self.lostItems))
10407 amar.kumar 6746
      for iter83 in self.lostItems:
6747
        iter83.write(oprot)
6630 amar.kumar 6748
      oprot.writeListEnd()
6749
      oprot.writeFieldEnd()
6750
    if self.vendorId is not None:
6751
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6752
      oprot.writeI64(self.vendorId)
6753
      oprot.writeFieldEnd()
7718 amar.kumar 6754
    if self.billingWarehouseId is not None:
6755
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
6756
      oprot.writeI64(self.billingWarehouseId)
6757
      oprot.writeFieldEnd()
6630 amar.kumar 6758
    oprot.writeFieldStop()
6759
    oprot.writeStructEnd()
6760
 
6761
  def validate(self):
6762
    return
6763
 
6764
 
6765
  def __repr__(self):
6766
    L = ['%s=%r' % (key, value)
6767
      for key, value in self.__dict__.iteritems()]
6768
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6769
 
6770
  def __eq__(self, other):
6771
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6772
 
6773
  def __ne__(self, other):
6774
    return not (self == other)
6775
 
6776
class scanForLostItem_result:
6777
  """
6778
  Attributes:
6779
   - ex
6780
  """
6781
 
6782
  thrift_spec = (
6783
    None, # 0
6784
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6785
  )
6786
 
6787
  def __init__(self, ex=None,):
6788
    self.ex = ex
6789
 
6790
  def read(self, iprot):
6791
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6792
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6793
      return
6794
    iprot.readStructBegin()
6795
    while True:
6796
      (fname, ftype, fid) = iprot.readFieldBegin()
6797
      if ftype == TType.STOP:
6798
        break
6799
      if fid == 1:
6800
        if ftype == TType.STRUCT:
6801
          self.ex = WarehouseServiceException()
6802
          self.ex.read(iprot)
6803
        else:
6804
          iprot.skip(ftype)
6805
      else:
6806
        iprot.skip(ftype)
6807
      iprot.readFieldEnd()
6808
    iprot.readStructEnd()
6809
 
6810
  def write(self, oprot):
6811
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6812
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6813
      return
6814
    oprot.writeStructBegin('scanForLostItem_result')
6815
    if self.ex is not None:
6816
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6817
      self.ex.write(oprot)
6818
      oprot.writeFieldEnd()
6819
    oprot.writeFieldStop()
6820
    oprot.writeStructEnd()
6821
 
6822
  def validate(self):
6823
    return
6824
 
6825
 
6826
  def __repr__(self):
6827
    L = ['%s=%r' % (key, value)
6828
      for key, value in self.__dict__.iteritems()]
6829
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6830
 
6831
  def __eq__(self, other):
6832
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6833
 
6834
  def __ne__(self, other):
6835
    return not (self == other)
6836
 
6837
class getCurrentSerializedInventoryByScans_args:
7715 vikram.rag 6838
  """
6839
  Attributes:
6840
   - physicalWarehouseId
6841
  """
6630 amar.kumar 6842
 
6843
  thrift_spec = (
7715 vikram.rag 6844
    None, # 0
6845
    (1, TType.I64, 'physicalWarehouseId', None, None, ), # 1
6630 amar.kumar 6846
  )
6847
 
7715 vikram.rag 6848
  def __init__(self, physicalWarehouseId=None,):
6849
    self.physicalWarehouseId = physicalWarehouseId
6850
 
6630 amar.kumar 6851
  def read(self, iprot):
6852
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6853
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6854
      return
6855
    iprot.readStructBegin()
6856
    while True:
6857
      (fname, ftype, fid) = iprot.readFieldBegin()
6858
      if ftype == TType.STOP:
6859
        break
7715 vikram.rag 6860
      if fid == 1:
6861
        if ftype == TType.I64:
6862
          self.physicalWarehouseId = iprot.readI64();
6863
        else:
6864
          iprot.skip(ftype)
6630 amar.kumar 6865
      else:
6866
        iprot.skip(ftype)
6867
      iprot.readFieldEnd()
6868
    iprot.readStructEnd()
6869
 
6870
  def write(self, oprot):
6871
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6872
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6873
      return
6874
    oprot.writeStructBegin('getCurrentSerializedInventoryByScans_args')
7715 vikram.rag 6875
    if self.physicalWarehouseId is not None:
6876
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 1)
6877
      oprot.writeI64(self.physicalWarehouseId)
6878
      oprot.writeFieldEnd()
6630 amar.kumar 6879
    oprot.writeFieldStop()
6880
    oprot.writeStructEnd()
6881
 
6882
  def validate(self):
6883
    return
6884
 
6885
 
6886
  def __repr__(self):
6887
    L = ['%s=%r' % (key, value)
6888
      for key, value in self.__dict__.iteritems()]
6889
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6890
 
6891
  def __eq__(self, other):
6892
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6893
 
6894
  def __ne__(self, other):
6895
    return not (self == other)
6896
 
6897
class getCurrentSerializedInventoryByScans_result:
6898
  """
6899
  Attributes:
6900
   - success
6901
  """
6902
 
6903
  thrift_spec = (
6904
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
6905
  )
6906
 
6907
  def __init__(self, success=None,):
6908
    self.success = success
6909
 
6910
  def read(self, iprot):
6911
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6912
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6913
      return
6914
    iprot.readStructBegin()
6915
    while True:
6916
      (fname, ftype, fid) = iprot.readFieldBegin()
6917
      if ftype == TType.STOP:
6918
        break
6919
      if fid == 0:
6920
        if ftype == TType.LIST:
6921
          self.success = []
10407 amar.kumar 6922
          (_etype87, _size84) = iprot.readListBegin()
6923
          for _i88 in xrange(_size84):
6924
            _elem89 = InventoryAvailability()
6925
            _elem89.read(iprot)
6926
            self.success.append(_elem89)
6630 amar.kumar 6927
          iprot.readListEnd()
6928
        else:
6929
          iprot.skip(ftype)
6930
      else:
6931
        iprot.skip(ftype)
6932
      iprot.readFieldEnd()
6933
    iprot.readStructEnd()
6934
 
6935
  def write(self, oprot):
6936
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6937
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6938
      return
6939
    oprot.writeStructBegin('getCurrentSerializedInventoryByScans_result')
6940
    if self.success is not None:
6941
      oprot.writeFieldBegin('success', TType.LIST, 0)
6942
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6943
      for iter90 in self.success:
6944
        iter90.write(oprot)
6630 amar.kumar 6945
      oprot.writeListEnd()
6946
      oprot.writeFieldEnd()
6947
    oprot.writeFieldStop()
6948
    oprot.writeStructEnd()
6949
 
6950
  def validate(self):
6951
    return
6952
 
6953
 
6954
  def __repr__(self):
6955
    L = ['%s=%r' % (key, value)
6956
      for key, value in self.__dict__.iteritems()]
6957
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6958
 
6959
  def __eq__(self, other):
6960
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6961
 
6962
  def __ne__(self, other):
6963
    return not (self == other)
6964
 
6965
class getCurrentNonSerializedInventoryByScans_args:
7715 vikram.rag 6966
  """
6967
  Attributes:
6968
   - physicalWarehouseId
6969
  """
6630 amar.kumar 6970
 
6971
  thrift_spec = (
7715 vikram.rag 6972
    None, # 0
6973
    (1, TType.I64, 'physicalWarehouseId', None, None, ), # 1
6630 amar.kumar 6974
  )
6975
 
7715 vikram.rag 6976
  def __init__(self, physicalWarehouseId=None,):
6977
    self.physicalWarehouseId = physicalWarehouseId
6978
 
6630 amar.kumar 6979
  def read(self, iprot):
6980
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6981
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6982
      return
6983
    iprot.readStructBegin()
6984
    while True:
6985
      (fname, ftype, fid) = iprot.readFieldBegin()
6986
      if ftype == TType.STOP:
6987
        break
7715 vikram.rag 6988
      if fid == 1:
6989
        if ftype == TType.I64:
6990
          self.physicalWarehouseId = iprot.readI64();
6991
        else:
6992
          iprot.skip(ftype)
6630 amar.kumar 6993
      else:
6994
        iprot.skip(ftype)
6995
      iprot.readFieldEnd()
6996
    iprot.readStructEnd()
6997
 
6998
  def write(self, oprot):
6999
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7000
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7001
      return
7002
    oprot.writeStructBegin('getCurrentNonSerializedInventoryByScans_args')
7715 vikram.rag 7003
    if self.physicalWarehouseId is not None:
7004
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 1)
7005
      oprot.writeI64(self.physicalWarehouseId)
7006
      oprot.writeFieldEnd()
6630 amar.kumar 7007
    oprot.writeFieldStop()
7008
    oprot.writeStructEnd()
7009
 
7010
  def validate(self):
7011
    return
7012
 
7013
 
7014
  def __repr__(self):
7015
    L = ['%s=%r' % (key, value)
7016
      for key, value in self.__dict__.iteritems()]
7017
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7018
 
7019
  def __eq__(self, other):
7020
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7021
 
7022
  def __ne__(self, other):
7023
    return not (self == other)
7024
 
7025
class getCurrentNonSerializedInventoryByScans_result:
7026
  """
7027
  Attributes:
7028
   - success
7029
  """
7030
 
7031
  thrift_spec = (
7032
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7033
  )
7034
 
7035
  def __init__(self, success=None,):
7036
    self.success = success
7037
 
7038
  def read(self, iprot):
7039
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7040
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7041
      return
7042
    iprot.readStructBegin()
7043
    while True:
7044
      (fname, ftype, fid) = iprot.readFieldBegin()
7045
      if ftype == TType.STOP:
7046
        break
7047
      if fid == 0:
7048
        if ftype == TType.LIST:
7049
          self.success = []
10407 amar.kumar 7050
          (_etype94, _size91) = iprot.readListBegin()
7051
          for _i95 in xrange(_size91):
7052
            _elem96 = InventoryAvailability()
7053
            _elem96.read(iprot)
7054
            self.success.append(_elem96)
6630 amar.kumar 7055
          iprot.readListEnd()
7056
        else:
7057
          iprot.skip(ftype)
7058
      else:
7059
        iprot.skip(ftype)
7060
      iprot.readFieldEnd()
7061
    iprot.readStructEnd()
7062
 
7063
  def write(self, oprot):
7064
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7065
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7066
      return
7067
    oprot.writeStructBegin('getCurrentNonSerializedInventoryByScans_result')
7068
    if self.success is not None:
7069
      oprot.writeFieldBegin('success', TType.LIST, 0)
7070
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7071
      for iter97 in self.success:
7072
        iter97.write(oprot)
6630 amar.kumar 7073
      oprot.writeListEnd()
7074
      oprot.writeFieldEnd()
7075
    oprot.writeFieldStop()
7076
    oprot.writeStructEnd()
7077
 
7078
  def validate(self):
7079
    return
7080
 
7081
 
7082
  def __repr__(self):
7083
    L = ['%s=%r' % (key, value)
7084
      for key, value in self.__dict__.iteritems()]
7085
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7086
 
7087
  def __eq__(self, other):
7088
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7089
 
7090
  def __ne__(self, other):
7091
    return not (self == other)
6762 amar.kumar 7092
 
7093
class getHistoricSerializedInventoryByScans_args:
7094
  """
7095
  Attributes:
7096
   - date
7097
  """
7098
 
7099
  thrift_spec = (
7100
    None, # 0
7101
    (1, TType.I64, 'date', None, None, ), # 1
7102
  )
7103
 
7104
  def __init__(self, date=None,):
7105
    self.date = date
7106
 
7107
  def read(self, iprot):
7108
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7109
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7110
      return
7111
    iprot.readStructBegin()
7112
    while True:
7113
      (fname, ftype, fid) = iprot.readFieldBegin()
7114
      if ftype == TType.STOP:
7115
        break
7116
      if fid == 1:
7117
        if ftype == TType.I64:
7118
          self.date = iprot.readI64();
7119
        else:
7120
          iprot.skip(ftype)
7121
      else:
7122
        iprot.skip(ftype)
7123
      iprot.readFieldEnd()
7124
    iprot.readStructEnd()
7125
 
7126
  def write(self, oprot):
7127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7129
      return
7130
    oprot.writeStructBegin('getHistoricSerializedInventoryByScans_args')
7131
    if self.date is not None:
7132
      oprot.writeFieldBegin('date', TType.I64, 1)
7133
      oprot.writeI64(self.date)
7134
      oprot.writeFieldEnd()
7135
    oprot.writeFieldStop()
7136
    oprot.writeStructEnd()
7137
 
7138
  def validate(self):
7139
    return
7140
 
7141
 
7142
  def __repr__(self):
7143
    L = ['%s=%r' % (key, value)
7144
      for key, value in self.__dict__.iteritems()]
7145
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7146
 
7147
  def __eq__(self, other):
7148
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7149
 
7150
  def __ne__(self, other):
7151
    return not (self == other)
7152
 
7153
class getHistoricSerializedInventoryByScans_result:
7154
  """
7155
  Attributes:
7156
   - success
7157
  """
7158
 
7159
  thrift_spec = (
7160
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7161
  )
7162
 
7163
  def __init__(self, success=None,):
7164
    self.success = success
7165
 
7166
  def read(self, iprot):
7167
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7168
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7169
      return
7170
    iprot.readStructBegin()
7171
    while True:
7172
      (fname, ftype, fid) = iprot.readFieldBegin()
7173
      if ftype == TType.STOP:
7174
        break
7175
      if fid == 0:
7176
        if ftype == TType.LIST:
7177
          self.success = []
10407 amar.kumar 7178
          (_etype101, _size98) = iprot.readListBegin()
7179
          for _i102 in xrange(_size98):
7180
            _elem103 = InventoryAvailability()
7181
            _elem103.read(iprot)
7182
            self.success.append(_elem103)
6762 amar.kumar 7183
          iprot.readListEnd()
7184
        else:
7185
          iprot.skip(ftype)
7186
      else:
7187
        iprot.skip(ftype)
7188
      iprot.readFieldEnd()
7189
    iprot.readStructEnd()
7190
 
7191
  def write(self, oprot):
7192
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7193
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7194
      return
7195
    oprot.writeStructBegin('getHistoricSerializedInventoryByScans_result')
7196
    if self.success is not None:
7197
      oprot.writeFieldBegin('success', TType.LIST, 0)
7198
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7199
      for iter104 in self.success:
7200
        iter104.write(oprot)
6762 amar.kumar 7201
      oprot.writeListEnd()
7202
      oprot.writeFieldEnd()
7203
    oprot.writeFieldStop()
7204
    oprot.writeStructEnd()
7205
 
7206
  def validate(self):
7207
    return
7208
 
7209
 
7210
  def __repr__(self):
7211
    L = ['%s=%r' % (key, value)
7212
      for key, value in self.__dict__.iteritems()]
7213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7214
 
7215
  def __eq__(self, other):
7216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7217
 
7218
  def __ne__(self, other):
7219
    return not (self == other)
7220
 
7221
class getHistoricNonSerializedInventoryByScans_args:
7222
  """
7223
  Attributes:
7224
   - date
7225
  """
7226
 
7227
  thrift_spec = (
7228
    None, # 0
7229
    (1, TType.I64, 'date', None, None, ), # 1
7230
  )
7231
 
7232
  def __init__(self, date=None,):
7233
    self.date = date
7234
 
7235
  def read(self, iprot):
7236
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7237
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7238
      return
7239
    iprot.readStructBegin()
7240
    while True:
7241
      (fname, ftype, fid) = iprot.readFieldBegin()
7242
      if ftype == TType.STOP:
7243
        break
7244
      if fid == 1:
7245
        if ftype == TType.I64:
7246
          self.date = iprot.readI64();
7247
        else:
7248
          iprot.skip(ftype)
7249
      else:
7250
        iprot.skip(ftype)
7251
      iprot.readFieldEnd()
7252
    iprot.readStructEnd()
7253
 
7254
  def write(self, oprot):
7255
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7256
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7257
      return
7258
    oprot.writeStructBegin('getHistoricNonSerializedInventoryByScans_args')
7259
    if self.date is not None:
7260
      oprot.writeFieldBegin('date', TType.I64, 1)
7261
      oprot.writeI64(self.date)
7262
      oprot.writeFieldEnd()
7263
    oprot.writeFieldStop()
7264
    oprot.writeStructEnd()
7265
 
7266
  def validate(self):
7267
    return
7268
 
7269
 
7270
  def __repr__(self):
7271
    L = ['%s=%r' % (key, value)
7272
      for key, value in self.__dict__.iteritems()]
7273
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7274
 
7275
  def __eq__(self, other):
7276
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7277
 
7278
  def __ne__(self, other):
7279
    return not (self == other)
7280
 
7281
class getHistoricNonSerializedInventoryByScans_result:
7282
  """
7283
  Attributes:
7284
   - success
7285
  """
7286
 
7287
  thrift_spec = (
7288
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7289
  )
7290
 
7291
  def __init__(self, success=None,):
7292
    self.success = success
7293
 
7294
  def read(self, iprot):
7295
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7296
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7297
      return
7298
    iprot.readStructBegin()
7299
    while True:
7300
      (fname, ftype, fid) = iprot.readFieldBegin()
7301
      if ftype == TType.STOP:
7302
        break
7303
      if fid == 0:
7304
        if ftype == TType.LIST:
7305
          self.success = []
10407 amar.kumar 7306
          (_etype108, _size105) = iprot.readListBegin()
7307
          for _i109 in xrange(_size105):
7308
            _elem110 = InventoryAvailability()
7309
            _elem110.read(iprot)
7310
            self.success.append(_elem110)
6762 amar.kumar 7311
          iprot.readListEnd()
7312
        else:
7313
          iprot.skip(ftype)
7314
      else:
7315
        iprot.skip(ftype)
7316
      iprot.readFieldEnd()
7317
    iprot.readStructEnd()
7318
 
7319
  def write(self, oprot):
7320
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7321
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7322
      return
7323
    oprot.writeStructBegin('getHistoricNonSerializedInventoryByScans_result')
7324
    if self.success is not None:
7325
      oprot.writeFieldBegin('success', TType.LIST, 0)
7326
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7327
      for iter111 in self.success:
7328
        iter111.write(oprot)
6762 amar.kumar 7329
      oprot.writeListEnd()
7330
      oprot.writeFieldEnd()
7331
    oprot.writeFieldStop()
7332
    oprot.writeStructEnd()
7333
 
7334
  def validate(self):
7335
    return
7336
 
7337
 
7338
  def __repr__(self):
7339
    L = ['%s=%r' % (key, value)
7340
      for key, value in self.__dict__.iteritems()]
7341
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7342
 
7343
  def __eq__(self, other):
7344
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7345
 
7346
  def __ne__(self, other):
7347
    return not (self == other)
7348
 
10407 amar.kumar 7349
class getOurHistoricSerializedInventoryByScans_args:
7350
  """
7351
  Attributes:
7352
   - date
7353
  """
7354
 
7355
  thrift_spec = (
7356
    None, # 0
7357
    (1, TType.I64, 'date', None, None, ), # 1
7358
  )
7359
 
7360
  def __init__(self, date=None,):
7361
    self.date = date
7362
 
7363
  def read(self, iprot):
7364
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7365
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7366
      return
7367
    iprot.readStructBegin()
7368
    while True:
7369
      (fname, ftype, fid) = iprot.readFieldBegin()
7370
      if ftype == TType.STOP:
7371
        break
7372
      if fid == 1:
7373
        if ftype == TType.I64:
7374
          self.date = iprot.readI64();
7375
        else:
7376
          iprot.skip(ftype)
7377
      else:
7378
        iprot.skip(ftype)
7379
      iprot.readFieldEnd()
7380
    iprot.readStructEnd()
7381
 
7382
  def write(self, oprot):
7383
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7384
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7385
      return
7386
    oprot.writeStructBegin('getOurHistoricSerializedInventoryByScans_args')
7387
    if self.date is not None:
7388
      oprot.writeFieldBegin('date', TType.I64, 1)
7389
      oprot.writeI64(self.date)
7390
      oprot.writeFieldEnd()
7391
    oprot.writeFieldStop()
7392
    oprot.writeStructEnd()
7393
 
7394
  def validate(self):
7395
    return
7396
 
7397
 
7398
  def __repr__(self):
7399
    L = ['%s=%r' % (key, value)
7400
      for key, value in self.__dict__.iteritems()]
7401
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7402
 
7403
  def __eq__(self, other):
7404
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7405
 
7406
  def __ne__(self, other):
7407
    return not (self == other)
7408
 
7409
class getOurHistoricSerializedInventoryByScans_result:
7410
  """
7411
  Attributes:
7412
   - success
7413
  """
7414
 
7415
  thrift_spec = (
7416
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7417
  )
7418
 
7419
  def __init__(self, success=None,):
7420
    self.success = success
7421
 
7422
  def read(self, iprot):
7423
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7424
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7425
      return
7426
    iprot.readStructBegin()
7427
    while True:
7428
      (fname, ftype, fid) = iprot.readFieldBegin()
7429
      if ftype == TType.STOP:
7430
        break
7431
      if fid == 0:
7432
        if ftype == TType.LIST:
7433
          self.success = []
7434
          (_etype115, _size112) = iprot.readListBegin()
7435
          for _i116 in xrange(_size112):
7436
            _elem117 = InventoryAvailability()
7437
            _elem117.read(iprot)
7438
            self.success.append(_elem117)
7439
          iprot.readListEnd()
7440
        else:
7441
          iprot.skip(ftype)
7442
      else:
7443
        iprot.skip(ftype)
7444
      iprot.readFieldEnd()
7445
    iprot.readStructEnd()
7446
 
7447
  def write(self, oprot):
7448
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7449
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7450
      return
7451
    oprot.writeStructBegin('getOurHistoricSerializedInventoryByScans_result')
7452
    if self.success is not None:
7453
      oprot.writeFieldBegin('success', TType.LIST, 0)
7454
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7455
      for iter118 in self.success:
7456
        iter118.write(oprot)
7457
      oprot.writeListEnd()
7458
      oprot.writeFieldEnd()
7459
    oprot.writeFieldStop()
7460
    oprot.writeStructEnd()
7461
 
7462
  def validate(self):
7463
    return
7464
 
7465
 
7466
  def __repr__(self):
7467
    L = ['%s=%r' % (key, value)
7468
      for key, value in self.__dict__.iteritems()]
7469
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7470
 
7471
  def __eq__(self, other):
7472
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7473
 
7474
  def __ne__(self, other):
7475
    return not (self == other)
7476
 
7477
class getOurHistoricNonSerializedInventoryByScans_args:
7478
  """
7479
  Attributes:
7480
   - date
7481
  """
7482
 
7483
  thrift_spec = (
7484
    None, # 0
7485
    (1, TType.I64, 'date', None, None, ), # 1
7486
  )
7487
 
7488
  def __init__(self, date=None,):
7489
    self.date = date
7490
 
7491
  def read(self, iprot):
7492
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7493
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7494
      return
7495
    iprot.readStructBegin()
7496
    while True:
7497
      (fname, ftype, fid) = iprot.readFieldBegin()
7498
      if ftype == TType.STOP:
7499
        break
7500
      if fid == 1:
7501
        if ftype == TType.I64:
7502
          self.date = iprot.readI64();
7503
        else:
7504
          iprot.skip(ftype)
7505
      else:
7506
        iprot.skip(ftype)
7507
      iprot.readFieldEnd()
7508
    iprot.readStructEnd()
7509
 
7510
  def write(self, oprot):
7511
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7512
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7513
      return
7514
    oprot.writeStructBegin('getOurHistoricNonSerializedInventoryByScans_args')
7515
    if self.date is not None:
7516
      oprot.writeFieldBegin('date', TType.I64, 1)
7517
      oprot.writeI64(self.date)
7518
      oprot.writeFieldEnd()
7519
    oprot.writeFieldStop()
7520
    oprot.writeStructEnd()
7521
 
7522
  def validate(self):
7523
    return
7524
 
7525
 
7526
  def __repr__(self):
7527
    L = ['%s=%r' % (key, value)
7528
      for key, value in self.__dict__.iteritems()]
7529
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7530
 
7531
  def __eq__(self, other):
7532
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7533
 
7534
  def __ne__(self, other):
7535
    return not (self == other)
7536
 
7537
class getOurHistoricNonSerializedInventoryByScans_result:
7538
  """
7539
  Attributes:
7540
   - success
7541
  """
7542
 
7543
  thrift_spec = (
7544
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7545
  )
7546
 
7547
  def __init__(self, success=None,):
7548
    self.success = success
7549
 
7550
  def read(self, iprot):
7551
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7552
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7553
      return
7554
    iprot.readStructBegin()
7555
    while True:
7556
      (fname, ftype, fid) = iprot.readFieldBegin()
7557
      if ftype == TType.STOP:
7558
        break
7559
      if fid == 0:
7560
        if ftype == TType.LIST:
7561
          self.success = []
7562
          (_etype122, _size119) = iprot.readListBegin()
7563
          for _i123 in xrange(_size119):
7564
            _elem124 = InventoryAvailability()
7565
            _elem124.read(iprot)
7566
            self.success.append(_elem124)
7567
          iprot.readListEnd()
7568
        else:
7569
          iprot.skip(ftype)
7570
      else:
7571
        iprot.skip(ftype)
7572
      iprot.readFieldEnd()
7573
    iprot.readStructEnd()
7574
 
7575
  def write(self, oprot):
7576
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7577
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7578
      return
7579
    oprot.writeStructBegin('getOurHistoricNonSerializedInventoryByScans_result')
7580
    if self.success is not None:
7581
      oprot.writeFieldBegin('success', TType.LIST, 0)
7582
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7583
      for iter125 in self.success:
7584
        iter125.write(oprot)
7585
      oprot.writeListEnd()
7586
      oprot.writeFieldEnd()
7587
    oprot.writeFieldStop()
7588
    oprot.writeStructEnd()
7589
 
7590
  def validate(self):
7591
    return
7592
 
7593
 
7594
  def __repr__(self):
7595
    L = ['%s=%r' % (key, value)
7596
      for key, value in self.__dict__.iteritems()]
7597
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7598
 
7599
  def __eq__(self, other):
7600
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7601
 
7602
  def __ne__(self, other):
7603
    return not (self == other)
7604
 
6762 amar.kumar 7605
class scanForOursExternalSale_args:
7606
  """
7607
  Attributes:
7608
   - itemId
7609
   - serialNumber
7610
   - itemNumber
7611
   - invoiceNumber
7612
   - warehouseId
7613
   - unitPrice
7672 rajveer 7614
   - nlc
6762 amar.kumar 7615
   - orderId
7616
  """
7617
 
7618
  thrift_spec = (
7619
    None, # 0
7620
    (1, TType.I64, 'itemId', None, None, ), # 1
7621
    (2, TType.STRING, 'serialNumber', None, None, ), # 2
7622
    (3, TType.STRING, 'itemNumber', None, None, ), # 3
7623
    (4, TType.STRING, 'invoiceNumber', None, None, ), # 4
7624
    (5, TType.I64, 'warehouseId', None, None, ), # 5
7625
    (6, TType.DOUBLE, 'unitPrice', None, None, ), # 6
7672 rajveer 7626
    (7, TType.DOUBLE, 'nlc', None, None, ), # 7
7627
    (8, TType.I64, 'orderId', None, None, ), # 8
6762 amar.kumar 7628
  )
7629
 
7672 rajveer 7630
  def __init__(self, itemId=None, serialNumber=None, itemNumber=None, invoiceNumber=None, warehouseId=None, unitPrice=None, nlc=None, orderId=None,):
6762 amar.kumar 7631
    self.itemId = itemId
7632
    self.serialNumber = serialNumber
7633
    self.itemNumber = itemNumber
7634
    self.invoiceNumber = invoiceNumber
7635
    self.warehouseId = warehouseId
7636
    self.unitPrice = unitPrice
7672 rajveer 7637
    self.nlc = nlc
6762 amar.kumar 7638
    self.orderId = orderId
7639
 
7640
  def read(self, iprot):
7641
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7642
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7643
      return
7644
    iprot.readStructBegin()
7645
    while True:
7646
      (fname, ftype, fid) = iprot.readFieldBegin()
7647
      if ftype == TType.STOP:
7648
        break
7649
      if fid == 1:
7650
        if ftype == TType.I64:
7651
          self.itemId = iprot.readI64();
7652
        else:
7653
          iprot.skip(ftype)
7654
      elif fid == 2:
7655
        if ftype == TType.STRING:
7656
          self.serialNumber = iprot.readString();
7657
        else:
7658
          iprot.skip(ftype)
7659
      elif fid == 3:
7660
        if ftype == TType.STRING:
7661
          self.itemNumber = iprot.readString();
7662
        else:
7663
          iprot.skip(ftype)
7664
      elif fid == 4:
7665
        if ftype == TType.STRING:
7666
          self.invoiceNumber = iprot.readString();
7667
        else:
7668
          iprot.skip(ftype)
7669
      elif fid == 5:
7670
        if ftype == TType.I64:
7671
          self.warehouseId = iprot.readI64();
7672
        else:
7673
          iprot.skip(ftype)
7674
      elif fid == 6:
7675
        if ftype == TType.DOUBLE:
7676
          self.unitPrice = iprot.readDouble();
7677
        else:
7678
          iprot.skip(ftype)
7679
      elif fid == 7:
7672 rajveer 7680
        if ftype == TType.DOUBLE:
7681
          self.nlc = iprot.readDouble();
7682
        else:
7683
          iprot.skip(ftype)
7684
      elif fid == 8:
6762 amar.kumar 7685
        if ftype == TType.I64:
7686
          self.orderId = iprot.readI64();
7687
        else:
7688
          iprot.skip(ftype)
7689
      else:
7690
        iprot.skip(ftype)
7691
      iprot.readFieldEnd()
7692
    iprot.readStructEnd()
7693
 
7694
  def write(self, oprot):
7695
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7696
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7697
      return
7698
    oprot.writeStructBegin('scanForOursExternalSale_args')
7699
    if self.itemId is not None:
7700
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7701
      oprot.writeI64(self.itemId)
7702
      oprot.writeFieldEnd()
7703
    if self.serialNumber is not None:
7704
      oprot.writeFieldBegin('serialNumber', TType.STRING, 2)
7705
      oprot.writeString(self.serialNumber)
7706
      oprot.writeFieldEnd()
7707
    if self.itemNumber is not None:
7708
      oprot.writeFieldBegin('itemNumber', TType.STRING, 3)
7709
      oprot.writeString(self.itemNumber)
7710
      oprot.writeFieldEnd()
7711
    if self.invoiceNumber is not None:
7712
      oprot.writeFieldBegin('invoiceNumber', TType.STRING, 4)
7713
      oprot.writeString(self.invoiceNumber)
7714
      oprot.writeFieldEnd()
7715
    if self.warehouseId is not None:
7716
      oprot.writeFieldBegin('warehouseId', TType.I64, 5)
7717
      oprot.writeI64(self.warehouseId)
7718
      oprot.writeFieldEnd()
7719
    if self.unitPrice is not None:
7720
      oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 6)
7721
      oprot.writeDouble(self.unitPrice)
7722
      oprot.writeFieldEnd()
7672 rajveer 7723
    if self.nlc is not None:
7724
      oprot.writeFieldBegin('nlc', TType.DOUBLE, 7)
7725
      oprot.writeDouble(self.nlc)
7726
      oprot.writeFieldEnd()
6762 amar.kumar 7727
    if self.orderId is not None:
7672 rajveer 7728
      oprot.writeFieldBegin('orderId', TType.I64, 8)
6762 amar.kumar 7729
      oprot.writeI64(self.orderId)
7730
      oprot.writeFieldEnd()
7731
    oprot.writeFieldStop()
7732
    oprot.writeStructEnd()
7733
 
7734
  def validate(self):
7735
    return
7736
 
7737
 
7738
  def __repr__(self):
7739
    L = ['%s=%r' % (key, value)
7740
      for key, value in self.__dict__.iteritems()]
7741
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7742
 
7743
  def __eq__(self, other):
7744
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7745
 
7746
  def __ne__(self, other):
7747
    return not (self == other)
7748
 
7749
class scanForOursExternalSale_result:
7750
  """
7751
  Attributes:
7752
   - success
7753
   - ex
7754
  """
7755
 
7756
  thrift_spec = (
7757
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
7758
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
7759
  )
7760
 
7761
  def __init__(self, success=None, ex=None,):
7762
    self.success = success
7763
    self.ex = ex
7764
 
7765
  def read(self, iprot):
7766
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7767
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7768
      return
7769
    iprot.readStructBegin()
7770
    while True:
7771
      (fname, ftype, fid) = iprot.readFieldBegin()
7772
      if ftype == TType.STOP:
7773
        break
7774
      if fid == 0:
7775
        if ftype == TType.STRUCT:
7776
          self.success = InventoryItem()
7777
          self.success.read(iprot)
7778
        else:
7779
          iprot.skip(ftype)
7780
      elif fid == 1:
7781
        if ftype == TType.STRUCT:
7782
          self.ex = WarehouseServiceException()
7783
          self.ex.read(iprot)
7784
        else:
7785
          iprot.skip(ftype)
7786
      else:
7787
        iprot.skip(ftype)
7788
      iprot.readFieldEnd()
7789
    iprot.readStructEnd()
7790
 
7791
  def write(self, oprot):
7792
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7793
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7794
      return
7795
    oprot.writeStructBegin('scanForOursExternalSale_result')
7796
    if self.success is not None:
7797
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7798
      self.success.write(oprot)
7799
      oprot.writeFieldEnd()
7800
    if self.ex is not None:
7801
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7802
      self.ex.write(oprot)
7803
      oprot.writeFieldEnd()
7804
    oprot.writeFieldStop()
7805
    oprot.writeStructEnd()
7806
 
7807
  def validate(self):
7808
    return
7809
 
7810
 
7811
  def __repr__(self):
7812
    L = ['%s=%r' % (key, value)
7813
      for key, value in self.__dict__.iteritems()]
7814
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7815
 
7816
  def __eq__(self, other):
7817
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7818
 
7819
  def __ne__(self, other):
7820
    return not (self == other)
7821
 
7822
class scanForOursExternalSaleReturn_args:
7823
  """
7824
  Attributes:
7825
   - orderId
7826
   - unitPrice
7827
  """
7828
 
7829
  thrift_spec = (
7830
    None, # 0
7831
    (1, TType.I64, 'orderId', None, None, ), # 1
7832
    (2, TType.DOUBLE, 'unitPrice', None, None, ), # 2
7833
  )
7834
 
7835
  def __init__(self, orderId=None, unitPrice=None,):
7836
    self.orderId = orderId
7837
    self.unitPrice = unitPrice
7838
 
7839
  def read(self, iprot):
7840
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7841
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7842
      return
7843
    iprot.readStructBegin()
7844
    while True:
7845
      (fname, ftype, fid) = iprot.readFieldBegin()
7846
      if ftype == TType.STOP:
7847
        break
7848
      if fid == 1:
7849
        if ftype == TType.I64:
7850
          self.orderId = iprot.readI64();
7851
        else:
7852
          iprot.skip(ftype)
7853
      elif fid == 2:
7854
        if ftype == TType.DOUBLE:
7855
          self.unitPrice = iprot.readDouble();
7856
        else:
7857
          iprot.skip(ftype)
7858
      else:
7859
        iprot.skip(ftype)
7860
      iprot.readFieldEnd()
7861
    iprot.readStructEnd()
7862
 
7863
  def write(self, oprot):
7864
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7865
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7866
      return
7867
    oprot.writeStructBegin('scanForOursExternalSaleReturn_args')
7868
    if self.orderId is not None:
7869
      oprot.writeFieldBegin('orderId', TType.I64, 1)
7870
      oprot.writeI64(self.orderId)
7871
      oprot.writeFieldEnd()
7872
    if self.unitPrice is not None:
7873
      oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 2)
7874
      oprot.writeDouble(self.unitPrice)
7875
      oprot.writeFieldEnd()
7876
    oprot.writeFieldStop()
7877
    oprot.writeStructEnd()
7878
 
7879
  def validate(self):
7880
    return
7881
 
7882
 
7883
  def __repr__(self):
7884
    L = ['%s=%r' % (key, value)
7885
      for key, value in self.__dict__.iteritems()]
7886
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7887
 
7888
  def __eq__(self, other):
7889
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7890
 
7891
  def __ne__(self, other):
7892
    return not (self == other)
7893
 
7894
class scanForOursExternalSaleReturn_result:
7410 amar.kumar 7895
  """
7896
  Attributes:
7897
   - ex
7898
  """
6762 amar.kumar 7899
 
7900
  thrift_spec = (
7410 amar.kumar 7901
    None, # 0
7902
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6762 amar.kumar 7903
  )
7904
 
7410 amar.kumar 7905
  def __init__(self, ex=None,):
7906
    self.ex = ex
7907
 
6762 amar.kumar 7908
  def read(self, iprot):
7909
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7910
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7911
      return
7912
    iprot.readStructBegin()
7913
    while True:
7914
      (fname, ftype, fid) = iprot.readFieldBegin()
7915
      if ftype == TType.STOP:
7916
        break
7410 amar.kumar 7917
      if fid == 1:
7918
        if ftype == TType.STRUCT:
7919
          self.ex = WarehouseServiceException()
7920
          self.ex.read(iprot)
7921
        else:
7922
          iprot.skip(ftype)
6762 amar.kumar 7923
      else:
7924
        iprot.skip(ftype)
7925
      iprot.readFieldEnd()
7926
    iprot.readStructEnd()
7927
 
7928
  def write(self, oprot):
7929
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7930
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7931
      return
7932
    oprot.writeStructBegin('scanForOursExternalSaleReturn_result')
7410 amar.kumar 7933
    if self.ex is not None:
7934
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7935
      self.ex.write(oprot)
7936
      oprot.writeFieldEnd()
6762 amar.kumar 7937
    oprot.writeFieldStop()
7938
    oprot.writeStructEnd()
7939
 
7940
  def validate(self):
7941
    return
7942
 
7943
 
7944
  def __repr__(self):
7945
    L = ['%s=%r' % (key, value)
7946
      for key, value in self.__dict__.iteritems()]
7947
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7948
 
7949
  def __eq__(self, other):
7950
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7951
 
7952
  def __ne__(self, other):
7953
    return not (self == other)
6880 amar.kumar 7954
 
7955
class getMovementNonSerializedInventoryByScans_args:
7956
  """
7957
  Attributes:
7958
   - startDate
7959
   - endDate
7960
  """
7961
 
7962
  thrift_spec = (
7963
    None, # 0
7964
    (1, TType.I64, 'startDate', None, None, ), # 1
7965
    (2, TType.I64, 'endDate', None, None, ), # 2
7966
  )
7967
 
7968
  def __init__(self, startDate=None, endDate=None,):
7969
    self.startDate = startDate
7970
    self.endDate = endDate
7971
 
7972
  def read(self, iprot):
7973
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7974
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7975
      return
7976
    iprot.readStructBegin()
7977
    while True:
7978
      (fname, ftype, fid) = iprot.readFieldBegin()
7979
      if ftype == TType.STOP:
7980
        break
7981
      if fid == 1:
7982
        if ftype == TType.I64:
7983
          self.startDate = iprot.readI64();
7984
        else:
7985
          iprot.skip(ftype)
7986
      elif fid == 2:
7987
        if ftype == TType.I64:
7988
          self.endDate = iprot.readI64();
7989
        else:
7990
          iprot.skip(ftype)
7991
      else:
7992
        iprot.skip(ftype)
7993
      iprot.readFieldEnd()
7994
    iprot.readStructEnd()
7995
 
7996
  def write(self, oprot):
7997
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7998
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7999
      return
8000
    oprot.writeStructBegin('getMovementNonSerializedInventoryByScans_args')
8001
    if self.startDate is not None:
8002
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8003
      oprot.writeI64(self.startDate)
8004
      oprot.writeFieldEnd()
8005
    if self.endDate is not None:
8006
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8007
      oprot.writeI64(self.endDate)
8008
      oprot.writeFieldEnd()
8009
    oprot.writeFieldStop()
8010
    oprot.writeStructEnd()
8011
 
8012
  def validate(self):
8013
    return
8014
 
8015
 
8016
  def __repr__(self):
8017
    L = ['%s=%r' % (key, value)
8018
      for key, value in self.__dict__.iteritems()]
8019
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8020
 
8021
  def __eq__(self, other):
8022
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8023
 
8024
  def __ne__(self, other):
8025
    return not (self == other)
8026
 
8027
class getMovementNonSerializedInventoryByScans_result:
8028
  """
8029
  Attributes:
8030
   - success
8031
  """
8032
 
8033
  thrift_spec = (
8034
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8035
  )
8036
 
8037
  def __init__(self, success=None,):
8038
    self.success = success
8039
 
8040
  def read(self, iprot):
8041
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8042
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8043
      return
8044
    iprot.readStructBegin()
8045
    while True:
8046
      (fname, ftype, fid) = iprot.readFieldBegin()
8047
      if ftype == TType.STOP:
8048
        break
8049
      if fid == 0:
8050
        if ftype == TType.LIST:
8051
          self.success = []
10407 amar.kumar 8052
          (_etype129, _size126) = iprot.readListBegin()
8053
          for _i130 in xrange(_size126):
8054
            _elem131 = InventoryMovement()
8055
            _elem131.read(iprot)
8056
            self.success.append(_elem131)
6880 amar.kumar 8057
          iprot.readListEnd()
8058
        else:
8059
          iprot.skip(ftype)
8060
      else:
8061
        iprot.skip(ftype)
8062
      iprot.readFieldEnd()
8063
    iprot.readStructEnd()
8064
 
8065
  def write(self, oprot):
8066
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8067
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8068
      return
8069
    oprot.writeStructBegin('getMovementNonSerializedInventoryByScans_result')
8070
    if self.success is not None:
8071
      oprot.writeFieldBegin('success', TType.LIST, 0)
8072
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8073
      for iter132 in self.success:
8074
        iter132.write(oprot)
6880 amar.kumar 8075
      oprot.writeListEnd()
8076
      oprot.writeFieldEnd()
8077
    oprot.writeFieldStop()
8078
    oprot.writeStructEnd()
8079
 
8080
  def validate(self):
8081
    return
8082
 
8083
 
8084
  def __repr__(self):
8085
    L = ['%s=%r' % (key, value)
8086
      for key, value in self.__dict__.iteritems()]
8087
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8088
 
8089
  def __eq__(self, other):
8090
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8091
 
8092
  def __ne__(self, other):
8093
    return not (self == other)
8094
 
8095
class getMovementSerializedInventoryByScans_args:
8096
  """
8097
  Attributes:
8098
   - startDate
8099
   - endDate
8100
  """
8101
 
8102
  thrift_spec = (
8103
    None, # 0
8104
    (1, TType.I64, 'startDate', None, None, ), # 1
8105
    (2, TType.I64, 'endDate', None, None, ), # 2
8106
  )
8107
 
8108
  def __init__(self, startDate=None, endDate=None,):
8109
    self.startDate = startDate
8110
    self.endDate = endDate
8111
 
8112
  def read(self, iprot):
8113
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8114
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8115
      return
8116
    iprot.readStructBegin()
8117
    while True:
8118
      (fname, ftype, fid) = iprot.readFieldBegin()
8119
      if ftype == TType.STOP:
8120
        break
8121
      if fid == 1:
8122
        if ftype == TType.I64:
8123
          self.startDate = iprot.readI64();
8124
        else:
8125
          iprot.skip(ftype)
8126
      elif fid == 2:
8127
        if ftype == TType.I64:
8128
          self.endDate = iprot.readI64();
8129
        else:
8130
          iprot.skip(ftype)
8131
      else:
8132
        iprot.skip(ftype)
8133
      iprot.readFieldEnd()
8134
    iprot.readStructEnd()
8135
 
8136
  def write(self, oprot):
8137
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8138
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8139
      return
8140
    oprot.writeStructBegin('getMovementSerializedInventoryByScans_args')
8141
    if self.startDate is not None:
8142
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8143
      oprot.writeI64(self.startDate)
8144
      oprot.writeFieldEnd()
8145
    if self.endDate is not None:
8146
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8147
      oprot.writeI64(self.endDate)
8148
      oprot.writeFieldEnd()
8149
    oprot.writeFieldStop()
8150
    oprot.writeStructEnd()
8151
 
8152
  def validate(self):
8153
    return
8154
 
8155
 
8156
  def __repr__(self):
8157
    L = ['%s=%r' % (key, value)
8158
      for key, value in self.__dict__.iteritems()]
8159
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8160
 
8161
  def __eq__(self, other):
8162
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8163
 
8164
  def __ne__(self, other):
8165
    return not (self == other)
8166
 
8167
class getMovementSerializedInventoryByScans_result:
8168
  """
8169
  Attributes:
8170
   - success
8171
  """
8172
 
8173
  thrift_spec = (
8174
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8175
  )
8176
 
8177
  def __init__(self, success=None,):
8178
    self.success = success
8179
 
8180
  def read(self, iprot):
8181
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8182
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8183
      return
8184
    iprot.readStructBegin()
8185
    while True:
8186
      (fname, ftype, fid) = iprot.readFieldBegin()
8187
      if ftype == TType.STOP:
8188
        break
8189
      if fid == 0:
8190
        if ftype == TType.LIST:
8191
          self.success = []
10407 amar.kumar 8192
          (_etype136, _size133) = iprot.readListBegin()
8193
          for _i137 in xrange(_size133):
8194
            _elem138 = InventoryMovement()
8195
            _elem138.read(iprot)
8196
            self.success.append(_elem138)
6880 amar.kumar 8197
          iprot.readListEnd()
8198
        else:
8199
          iprot.skip(ftype)
8200
      else:
8201
        iprot.skip(ftype)
8202
      iprot.readFieldEnd()
8203
    iprot.readStructEnd()
8204
 
8205
  def write(self, oprot):
8206
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8207
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8208
      return
8209
    oprot.writeStructBegin('getMovementSerializedInventoryByScans_result')
8210
    if self.success is not None:
8211
      oprot.writeFieldBegin('success', TType.LIST, 0)
8212
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8213
      for iter139 in self.success:
8214
        iter139.write(oprot)
6880 amar.kumar 8215
      oprot.writeListEnd()
8216
      oprot.writeFieldEnd()
8217
    oprot.writeFieldStop()
8218
    oprot.writeStructEnd()
8219
 
8220
  def validate(self):
8221
    return
8222
 
8223
 
8224
  def __repr__(self):
8225
    L = ['%s=%r' % (key, value)
8226
      for key, value in self.__dict__.iteritems()]
8227
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8228
 
8229
  def __eq__(self, other):
8230
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8231
 
8232
  def __ne__(self, other):
8233
    return not (self == other)
7190 amar.kumar 8234
 
7216 amar.kumar 8235
class getCompleteMovementSerializedInventoryByScans_args:
8236
  """
8237
  Attributes:
8238
   - startDate
8239
   - endDate
8240
  """
8241
 
8242
  thrift_spec = (
8243
    None, # 0
8244
    (1, TType.I64, 'startDate', None, None, ), # 1
8245
    (2, TType.I64, 'endDate', None, None, ), # 2
8246
  )
8247
 
8248
  def __init__(self, startDate=None, endDate=None,):
8249
    self.startDate = startDate
8250
    self.endDate = endDate
8251
 
8252
  def read(self, iprot):
8253
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8254
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8255
      return
8256
    iprot.readStructBegin()
8257
    while True:
8258
      (fname, ftype, fid) = iprot.readFieldBegin()
8259
      if ftype == TType.STOP:
8260
        break
8261
      if fid == 1:
8262
        if ftype == TType.I64:
8263
          self.startDate = iprot.readI64();
8264
        else:
8265
          iprot.skip(ftype)
8266
      elif fid == 2:
8267
        if ftype == TType.I64:
8268
          self.endDate = iprot.readI64();
8269
        else:
8270
          iprot.skip(ftype)
8271
      else:
8272
        iprot.skip(ftype)
8273
      iprot.readFieldEnd()
8274
    iprot.readStructEnd()
8275
 
8276
  def write(self, oprot):
8277
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8278
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8279
      return
8280
    oprot.writeStructBegin('getCompleteMovementSerializedInventoryByScans_args')
8281
    if self.startDate is not None:
8282
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8283
      oprot.writeI64(self.startDate)
8284
      oprot.writeFieldEnd()
8285
    if self.endDate is not None:
8286
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8287
      oprot.writeI64(self.endDate)
8288
      oprot.writeFieldEnd()
8289
    oprot.writeFieldStop()
8290
    oprot.writeStructEnd()
8291
 
8292
  def validate(self):
8293
    return
8294
 
8295
 
8296
  def __repr__(self):
8297
    L = ['%s=%r' % (key, value)
8298
      for key, value in self.__dict__.iteritems()]
8299
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8300
 
8301
  def __eq__(self, other):
8302
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8303
 
8304
  def __ne__(self, other):
8305
    return not (self == other)
8306
 
8307
class getCompleteMovementSerializedInventoryByScans_result:
8308
  """
8309
  Attributes:
8310
   - success
8311
  """
8312
 
8313
  thrift_spec = (
8314
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8315
  )
8316
 
8317
  def __init__(self, success=None,):
8318
    self.success = success
8319
 
8320
  def read(self, iprot):
8321
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8322
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8323
      return
8324
    iprot.readStructBegin()
8325
    while True:
8326
      (fname, ftype, fid) = iprot.readFieldBegin()
8327
      if ftype == TType.STOP:
8328
        break
8329
      if fid == 0:
8330
        if ftype == TType.LIST:
8331
          self.success = []
10407 amar.kumar 8332
          (_etype143, _size140) = iprot.readListBegin()
8333
          for _i144 in xrange(_size140):
8334
            _elem145 = InventoryMovement()
8335
            _elem145.read(iprot)
8336
            self.success.append(_elem145)
7216 amar.kumar 8337
          iprot.readListEnd()
8338
        else:
8339
          iprot.skip(ftype)
8340
      else:
8341
        iprot.skip(ftype)
8342
      iprot.readFieldEnd()
8343
    iprot.readStructEnd()
8344
 
8345
  def write(self, oprot):
8346
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8347
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8348
      return
8349
    oprot.writeStructBegin('getCompleteMovementSerializedInventoryByScans_result')
8350
    if self.success is not None:
8351
      oprot.writeFieldBegin('success', TType.LIST, 0)
8352
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8353
      for iter146 in self.success:
8354
        iter146.write(oprot)
7216 amar.kumar 8355
      oprot.writeListEnd()
8356
      oprot.writeFieldEnd()
8357
    oprot.writeFieldStop()
8358
    oprot.writeStructEnd()
8359
 
8360
  def validate(self):
8361
    return
8362
 
8363
 
8364
  def __repr__(self):
8365
    L = ['%s=%r' % (key, value)
8366
      for key, value in self.__dict__.iteritems()]
8367
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8368
 
8369
  def __eq__(self, other):
8370
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8371
 
8372
  def __ne__(self, other):
8373
    return not (self == other)
8374
 
8375
class getCompleteMovementNonSerializedInventoryByScans_args:
8376
  """
8377
  Attributes:
8378
   - startDate
8379
   - endDate
8380
  """
8381
 
8382
  thrift_spec = (
8383
    None, # 0
8384
    (1, TType.I64, 'startDate', None, None, ), # 1
8385
    (2, TType.I64, 'endDate', None, None, ), # 2
8386
  )
8387
 
8388
  def __init__(self, startDate=None, endDate=None,):
8389
    self.startDate = startDate
8390
    self.endDate = endDate
8391
 
8392
  def read(self, iprot):
8393
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8394
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8395
      return
8396
    iprot.readStructBegin()
8397
    while True:
8398
      (fname, ftype, fid) = iprot.readFieldBegin()
8399
      if ftype == TType.STOP:
8400
        break
8401
      if fid == 1:
8402
        if ftype == TType.I64:
8403
          self.startDate = iprot.readI64();
8404
        else:
8405
          iprot.skip(ftype)
8406
      elif fid == 2:
8407
        if ftype == TType.I64:
8408
          self.endDate = iprot.readI64();
8409
        else:
8410
          iprot.skip(ftype)
8411
      else:
8412
        iprot.skip(ftype)
8413
      iprot.readFieldEnd()
8414
    iprot.readStructEnd()
8415
 
8416
  def write(self, oprot):
8417
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8418
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8419
      return
8420
    oprot.writeStructBegin('getCompleteMovementNonSerializedInventoryByScans_args')
8421
    if self.startDate is not None:
8422
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8423
      oprot.writeI64(self.startDate)
8424
      oprot.writeFieldEnd()
8425
    if self.endDate is not None:
8426
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8427
      oprot.writeI64(self.endDate)
8428
      oprot.writeFieldEnd()
8429
    oprot.writeFieldStop()
8430
    oprot.writeStructEnd()
8431
 
8432
  def validate(self):
8433
    return
8434
 
8435
 
8436
  def __repr__(self):
8437
    L = ['%s=%r' % (key, value)
8438
      for key, value in self.__dict__.iteritems()]
8439
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8440
 
8441
  def __eq__(self, other):
8442
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8443
 
8444
  def __ne__(self, other):
8445
    return not (self == other)
8446
 
8447
class getCompleteMovementNonSerializedInventoryByScans_result:
8448
  """
8449
  Attributes:
8450
   - success
8451
  """
8452
 
8453
  thrift_spec = (
8454
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8455
  )
8456
 
8457
  def __init__(self, success=None,):
8458
    self.success = success
8459
 
8460
  def read(self, iprot):
8461
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8462
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8463
      return
8464
    iprot.readStructBegin()
8465
    while True:
8466
      (fname, ftype, fid) = iprot.readFieldBegin()
8467
      if ftype == TType.STOP:
8468
        break
8469
      if fid == 0:
8470
        if ftype == TType.LIST:
8471
          self.success = []
10407 amar.kumar 8472
          (_etype150, _size147) = iprot.readListBegin()
8473
          for _i151 in xrange(_size147):
8474
            _elem152 = InventoryMovement()
8475
            _elem152.read(iprot)
8476
            self.success.append(_elem152)
7216 amar.kumar 8477
          iprot.readListEnd()
8478
        else:
8479
          iprot.skip(ftype)
8480
      else:
8481
        iprot.skip(ftype)
8482
      iprot.readFieldEnd()
8483
    iprot.readStructEnd()
8484
 
8485
  def write(self, oprot):
8486
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8487
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8488
      return
8489
    oprot.writeStructBegin('getCompleteMovementNonSerializedInventoryByScans_result')
8490
    if self.success is not None:
8491
      oprot.writeFieldBegin('success', TType.LIST, 0)
8492
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8493
      for iter153 in self.success:
8494
        iter153.write(oprot)
7216 amar.kumar 8495
      oprot.writeListEnd()
8496
      oprot.writeFieldEnd()
8497
    oprot.writeFieldStop()
8498
    oprot.writeStructEnd()
8499
 
8500
  def validate(self):
8501
    return
8502
 
8503
 
8504
  def __repr__(self):
8505
    L = ['%s=%r' % (key, value)
8506
      for key, value in self.__dict__.iteritems()]
8507
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8508
 
8509
  def __eq__(self, other):
8510
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8511
 
8512
  def __ne__(self, other):
8513
    return not (self == other)
8514
 
7190 amar.kumar 8515
class scanfreebie_args:
8516
  """
8517
  Attributes:
8518
   - orderId
8519
   - freebieItemId
8520
   - freebieWarehouseId
8521
   - scanType
8522
  """
8523
 
8524
  thrift_spec = (
8525
    None, # 0
8526
    (1, TType.I64, 'orderId', None, None, ), # 1
8527
    (2, TType.I64, 'freebieItemId', None, None, ), # 2
8528
    (3, TType.I64, 'freebieWarehouseId', None, None, ), # 3
8529
    (4, TType.I32, 'scanType', None, None, ), # 4
8530
  )
8531
 
8532
  def __init__(self, orderId=None, freebieItemId=None, freebieWarehouseId=None, scanType=None,):
8533
    self.orderId = orderId
8534
    self.freebieItemId = freebieItemId
8535
    self.freebieWarehouseId = freebieWarehouseId
8536
    self.scanType = scanType
8537
 
8538
  def read(self, iprot):
8539
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8540
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8541
      return
8542
    iprot.readStructBegin()
8543
    while True:
8544
      (fname, ftype, fid) = iprot.readFieldBegin()
8545
      if ftype == TType.STOP:
8546
        break
8547
      if fid == 1:
8548
        if ftype == TType.I64:
8549
          self.orderId = iprot.readI64();
8550
        else:
8551
          iprot.skip(ftype)
8552
      elif fid == 2:
8553
        if ftype == TType.I64:
8554
          self.freebieItemId = iprot.readI64();
8555
        else:
8556
          iprot.skip(ftype)
8557
      elif fid == 3:
8558
        if ftype == TType.I64:
8559
          self.freebieWarehouseId = iprot.readI64();
8560
        else:
8561
          iprot.skip(ftype)
8562
      elif fid == 4:
8563
        if ftype == TType.I32:
8564
          self.scanType = iprot.readI32();
8565
        else:
8566
          iprot.skip(ftype)
8567
      else:
8568
        iprot.skip(ftype)
8569
      iprot.readFieldEnd()
8570
    iprot.readStructEnd()
8571
 
8572
  def write(self, oprot):
8573
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8574
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8575
      return
8576
    oprot.writeStructBegin('scanfreebie_args')
8577
    if self.orderId is not None:
8578
      oprot.writeFieldBegin('orderId', TType.I64, 1)
8579
      oprot.writeI64(self.orderId)
8580
      oprot.writeFieldEnd()
8581
    if self.freebieItemId is not None:
8582
      oprot.writeFieldBegin('freebieItemId', TType.I64, 2)
8583
      oprot.writeI64(self.freebieItemId)
8584
      oprot.writeFieldEnd()
8585
    if self.freebieWarehouseId is not None:
8586
      oprot.writeFieldBegin('freebieWarehouseId', TType.I64, 3)
8587
      oprot.writeI64(self.freebieWarehouseId)
8588
      oprot.writeFieldEnd()
8589
    if self.scanType is not None:
8590
      oprot.writeFieldBegin('scanType', TType.I32, 4)
8591
      oprot.writeI32(self.scanType)
8592
      oprot.writeFieldEnd()
8593
    oprot.writeFieldStop()
8594
    oprot.writeStructEnd()
8595
 
8596
  def validate(self):
8597
    return
8598
 
8599
 
8600
  def __repr__(self):
8601
    L = ['%s=%r' % (key, value)
8602
      for key, value in self.__dict__.iteritems()]
8603
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8604
 
8605
  def __eq__(self, other):
8606
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8607
 
8608
  def __ne__(self, other):
8609
    return not (self == other)
8610
 
8611
class scanfreebie_result:
8612
  """
8613
  Attributes:
8614
   - success
8615
   - wex
8616
  """
8617
 
8618
  thrift_spec = (
8619
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
8620
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8621
  )
8622
 
8623
  def __init__(self, success=None, wex=None,):
8624
    self.success = success
8625
    self.wex = wex
8626
 
8627
  def read(self, iprot):
8628
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8629
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8630
      return
8631
    iprot.readStructBegin()
8632
    while True:
8633
      (fname, ftype, fid) = iprot.readFieldBegin()
8634
      if ftype == TType.STOP:
8635
        break
8636
      if fid == 0:
8637
        if ftype == TType.STRUCT:
8638
          self.success = InventoryItem()
8639
          self.success.read(iprot)
8640
        else:
8641
          iprot.skip(ftype)
8642
      elif fid == 1:
8643
        if ftype == TType.STRUCT:
8644
          self.wex = WarehouseServiceException()
8645
          self.wex.read(iprot)
8646
        else:
8647
          iprot.skip(ftype)
8648
      else:
8649
        iprot.skip(ftype)
8650
      iprot.readFieldEnd()
8651
    iprot.readStructEnd()
8652
 
8653
  def write(self, oprot):
8654
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8655
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8656
      return
8657
    oprot.writeStructBegin('scanfreebie_result')
8658
    if self.success is not None:
8659
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8660
      self.success.write(oprot)
8661
      oprot.writeFieldEnd()
8662
    if self.wex is not None:
8663
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
8664
      self.wex.write(oprot)
8665
      oprot.writeFieldEnd()
8666
    oprot.writeFieldStop()
8667
    oprot.writeStructEnd()
8668
 
8669
  def validate(self):
8670
    return
8671
 
8672
 
8673
  def __repr__(self):
8674
    L = ['%s=%r' % (key, value)
8675
      for key, value in self.__dict__.iteritems()]
8676
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8677
 
8678
  def __eq__(self, other):
8679
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8680
 
8681
  def __ne__(self, other):
8682
    return not (self == other)
7199 amar.kumar 8683
 
8684
class reshipfreebie_args:
8685
  """
8686
  Attributes:
8687
   - oldOrderId
8688
   - newOrderId
8689
   - freebieItemId
8690
   - scanType
8691
  """
8692
 
8693
  thrift_spec = (
8694
    None, # 0
8695
    (1, TType.I64, 'oldOrderId', None, None, ), # 1
8696
    (2, TType.I64, 'newOrderId', None, None, ), # 2
8697
    (3, TType.I64, 'freebieItemId', None, None, ), # 3
8698
    (4, TType.I32, 'scanType', None, None, ), # 4
8699
  )
8700
 
8701
  def __init__(self, oldOrderId=None, newOrderId=None, freebieItemId=None, scanType=None,):
8702
    self.oldOrderId = oldOrderId
8703
    self.newOrderId = newOrderId
8704
    self.freebieItemId = freebieItemId
8705
    self.scanType = scanType
8706
 
8707
  def read(self, iprot):
8708
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8709
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8710
      return
8711
    iprot.readStructBegin()
8712
    while True:
8713
      (fname, ftype, fid) = iprot.readFieldBegin()
8714
      if ftype == TType.STOP:
8715
        break
8716
      if fid == 1:
8717
        if ftype == TType.I64:
8718
          self.oldOrderId = iprot.readI64();
8719
        else:
8720
          iprot.skip(ftype)
8721
      elif fid == 2:
8722
        if ftype == TType.I64:
8723
          self.newOrderId = iprot.readI64();
8724
        else:
8725
          iprot.skip(ftype)
8726
      elif fid == 3:
8727
        if ftype == TType.I64:
8728
          self.freebieItemId = iprot.readI64();
8729
        else:
8730
          iprot.skip(ftype)
8731
      elif fid == 4:
8732
        if ftype == TType.I32:
8733
          self.scanType = iprot.readI32();
8734
        else:
8735
          iprot.skip(ftype)
8736
      else:
8737
        iprot.skip(ftype)
8738
      iprot.readFieldEnd()
8739
    iprot.readStructEnd()
8740
 
8741
  def write(self, oprot):
8742
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8743
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8744
      return
8745
    oprot.writeStructBegin('reshipfreebie_args')
8746
    if self.oldOrderId is not None:
8747
      oprot.writeFieldBegin('oldOrderId', TType.I64, 1)
8748
      oprot.writeI64(self.oldOrderId)
8749
      oprot.writeFieldEnd()
8750
    if self.newOrderId is not None:
8751
      oprot.writeFieldBegin('newOrderId', TType.I64, 2)
8752
      oprot.writeI64(self.newOrderId)
8753
      oprot.writeFieldEnd()
8754
    if self.freebieItemId is not None:
8755
      oprot.writeFieldBegin('freebieItemId', TType.I64, 3)
8756
      oprot.writeI64(self.freebieItemId)
8757
      oprot.writeFieldEnd()
8758
    if self.scanType is not None:
8759
      oprot.writeFieldBegin('scanType', TType.I32, 4)
8760
      oprot.writeI32(self.scanType)
8761
      oprot.writeFieldEnd()
8762
    oprot.writeFieldStop()
8763
    oprot.writeStructEnd()
8764
 
8765
  def validate(self):
8766
    return
8767
 
8768
 
8769
  def __repr__(self):
8770
    L = ['%s=%r' % (key, value)
8771
      for key, value in self.__dict__.iteritems()]
8772
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8773
 
8774
  def __eq__(self, other):
8775
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8776
 
8777
  def __ne__(self, other):
8778
    return not (self == other)
8779
 
8780
class reshipfreebie_result:
8781
  """
8782
  Attributes:
8783
   - wex
8784
  """
8785
 
8786
  thrift_spec = (
8787
    None, # 0
8788
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8789
  )
8790
 
8791
  def __init__(self, wex=None,):
8792
    self.wex = wex
8793
 
8794
  def read(self, iprot):
8795
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8796
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8797
      return
8798
    iprot.readStructBegin()
8799
    while True:
8800
      (fname, ftype, fid) = iprot.readFieldBegin()
8801
      if ftype == TType.STOP:
8802
        break
8803
      if fid == 1:
8804
        if ftype == TType.STRUCT:
8805
          self.wex = WarehouseServiceException()
8806
          self.wex.read(iprot)
8807
        else:
8808
          iprot.skip(ftype)
8809
      else:
8810
        iprot.skip(ftype)
8811
      iprot.readFieldEnd()
8812
    iprot.readStructEnd()
8813
 
8814
  def write(self, oprot):
8815
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8816
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8817
      return
8818
    oprot.writeStructBegin('reshipfreebie_result')
8819
    if self.wex is not None:
8820
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
8821
      self.wex.write(oprot)
8822
      oprot.writeFieldEnd()
8823
    oprot.writeFieldStop()
8824
    oprot.writeStructEnd()
8825
 
8826
  def validate(self):
8827
    return
8828
 
8829
 
8830
  def __repr__(self):
8831
    L = ['%s=%r' % (key, value)
8832
      for key, value in self.__dict__.iteritems()]
8833
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8834
 
8835
  def __eq__(self, other):
8836
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8837
 
8838
  def __ne__(self, other):
8839
    return not (self == other)
7410 amar.kumar 8840
 
8841
class isItemTransferAllowed_args:
8842
  """
8843
  Attributes:
8844
   - warehouseId
8845
   - transferWarehouseId
8846
  """
8847
 
8848
  thrift_spec = (
8849
    None, # 0
8850
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8851
    (2, TType.I64, 'transferWarehouseId', None, None, ), # 2
8852
  )
8853
 
8854
  def __init__(self, warehouseId=None, transferWarehouseId=None,):
8855
    self.warehouseId = warehouseId
8856
    self.transferWarehouseId = transferWarehouseId
8857
 
8858
  def read(self, iprot):
8859
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8860
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8861
      return
8862
    iprot.readStructBegin()
8863
    while True:
8864
      (fname, ftype, fid) = iprot.readFieldBegin()
8865
      if ftype == TType.STOP:
8866
        break
8867
      if fid == 1:
8868
        if ftype == TType.I64:
8869
          self.warehouseId = iprot.readI64();
8870
        else:
8871
          iprot.skip(ftype)
8872
      elif fid == 2:
8873
        if ftype == TType.I64:
8874
          self.transferWarehouseId = iprot.readI64();
8875
        else:
8876
          iprot.skip(ftype)
8877
      else:
8878
        iprot.skip(ftype)
8879
      iprot.readFieldEnd()
8880
    iprot.readStructEnd()
8881
 
8882
  def write(self, oprot):
8883
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8884
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8885
      return
8886
    oprot.writeStructBegin('isItemTransferAllowed_args')
8887
    if self.warehouseId is not None:
8888
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8889
      oprot.writeI64(self.warehouseId)
8890
      oprot.writeFieldEnd()
8891
    if self.transferWarehouseId is not None:
8892
      oprot.writeFieldBegin('transferWarehouseId', TType.I64, 2)
8893
      oprot.writeI64(self.transferWarehouseId)
8894
      oprot.writeFieldEnd()
8895
    oprot.writeFieldStop()
8896
    oprot.writeStructEnd()
8897
 
8898
  def validate(self):
8899
    return
8900
 
8901
 
8902
  def __repr__(self):
8903
    L = ['%s=%r' % (key, value)
8904
      for key, value in self.__dict__.iteritems()]
8905
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8906
 
8907
  def __eq__(self, other):
8908
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8909
 
8910
  def __ne__(self, other):
8911
    return not (self == other)
8912
 
8913
class isItemTransferAllowed_result:
8914
  """
8915
  Attributes:
8916
   - success
8917
  """
8918
 
8919
  thrift_spec = (
8920
    (0, TType.BOOL, 'success', None, None, ), # 0
8921
  )
8922
 
8923
  def __init__(self, success=None,):
8924
    self.success = success
8925
 
8926
  def read(self, iprot):
8927
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8928
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8929
      return
8930
    iprot.readStructBegin()
8931
    while True:
8932
      (fname, ftype, fid) = iprot.readFieldBegin()
8933
      if ftype == TType.STOP:
8934
        break
8935
      if fid == 0:
8936
        if ftype == TType.BOOL:
8937
          self.success = iprot.readBool();
8938
        else:
8939
          iprot.skip(ftype)
8940
      else:
8941
        iprot.skip(ftype)
8942
      iprot.readFieldEnd()
8943
    iprot.readStructEnd()
8944
 
8945
  def write(self, oprot):
8946
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8947
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8948
      return
8949
    oprot.writeStructBegin('isItemTransferAllowed_result')
8950
    if self.success is not None:
8951
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8952
      oprot.writeBool(self.success)
8953
      oprot.writeFieldEnd()
8954
    oprot.writeFieldStop()
8955
    oprot.writeStructEnd()
8956
 
8957
  def validate(self):
8958
    return
8959
 
8960
 
8961
  def __repr__(self):
8962
    L = ['%s=%r' % (key, value)
8963
      for key, value in self.__dict__.iteritems()]
8964
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8965
 
8966
  def __eq__(self, other):
8967
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8968
 
8969
  def __ne__(self, other):
8970
    return not (self == other)
8971
 
8972
class createTransferLot_args:
8973
  """
8974
  Attributes:
8975
   - originWarehouseId
8976
   - destWarehouseId
8977
  """
8978
 
8979
  thrift_spec = (
8980
    None, # 0
8981
    (1, TType.I64, 'originWarehouseId', None, None, ), # 1
8982
    (2, TType.I64, 'destWarehouseId', None, None, ), # 2
8983
  )
8984
 
8985
  def __init__(self, originWarehouseId=None, destWarehouseId=None,):
8986
    self.originWarehouseId = originWarehouseId
8987
    self.destWarehouseId = destWarehouseId
8988
 
8989
  def read(self, iprot):
8990
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8991
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8992
      return
8993
    iprot.readStructBegin()
8994
    while True:
8995
      (fname, ftype, fid) = iprot.readFieldBegin()
8996
      if ftype == TType.STOP:
8997
        break
8998
      if fid == 1:
8999
        if ftype == TType.I64:
9000
          self.originWarehouseId = iprot.readI64();
9001
        else:
9002
          iprot.skip(ftype)
9003
      elif fid == 2:
9004
        if ftype == TType.I64:
9005
          self.destWarehouseId = iprot.readI64();
9006
        else:
9007
          iprot.skip(ftype)
9008
      else:
9009
        iprot.skip(ftype)
9010
      iprot.readFieldEnd()
9011
    iprot.readStructEnd()
9012
 
9013
  def write(self, oprot):
9014
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9015
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9016
      return
9017
    oprot.writeStructBegin('createTransferLot_args')
9018
    if self.originWarehouseId is not None:
9019
      oprot.writeFieldBegin('originWarehouseId', TType.I64, 1)
9020
      oprot.writeI64(self.originWarehouseId)
9021
      oprot.writeFieldEnd()
9022
    if self.destWarehouseId is not None:
9023
      oprot.writeFieldBegin('destWarehouseId', TType.I64, 2)
9024
      oprot.writeI64(self.destWarehouseId)
9025
      oprot.writeFieldEnd()
9026
    oprot.writeFieldStop()
9027
    oprot.writeStructEnd()
9028
 
9029
  def validate(self):
9030
    return
9031
 
9032
 
9033
  def __repr__(self):
9034
    L = ['%s=%r' % (key, value)
9035
      for key, value in self.__dict__.iteritems()]
9036
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9037
 
9038
  def __eq__(self, other):
9039
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9040
 
9041
  def __ne__(self, other):
9042
    return not (self == other)
9043
 
9044
class createTransferLot_result:
9045
  """
9046
  Attributes:
9047
   - success
9048
   - wex
9049
  """
9050
 
9051
  thrift_spec = (
9052
    (0, TType.I64, 'success', None, None, ), # 0
9053
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9054
  )
9055
 
9056
  def __init__(self, success=None, wex=None,):
9057
    self.success = success
9058
    self.wex = wex
9059
 
9060
  def read(self, iprot):
9061
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9062
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9063
      return
9064
    iprot.readStructBegin()
9065
    while True:
9066
      (fname, ftype, fid) = iprot.readFieldBegin()
9067
      if ftype == TType.STOP:
9068
        break
9069
      if fid == 0:
9070
        if ftype == TType.I64:
9071
          self.success = iprot.readI64();
9072
        else:
9073
          iprot.skip(ftype)
9074
      elif fid == 1:
9075
        if ftype == TType.STRUCT:
9076
          self.wex = WarehouseServiceException()
9077
          self.wex.read(iprot)
9078
        else:
9079
          iprot.skip(ftype)
9080
      else:
9081
        iprot.skip(ftype)
9082
      iprot.readFieldEnd()
9083
    iprot.readStructEnd()
9084
 
9085
  def write(self, oprot):
9086
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9087
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9088
      return
9089
    oprot.writeStructBegin('createTransferLot_result')
9090
    if self.success is not None:
9091
      oprot.writeFieldBegin('success', TType.I64, 0)
9092
      oprot.writeI64(self.success)
9093
      oprot.writeFieldEnd()
9094
    if self.wex is not None:
9095
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9096
      self.wex.write(oprot)
9097
      oprot.writeFieldEnd()
9098
    oprot.writeFieldStop()
9099
    oprot.writeStructEnd()
9100
 
9101
  def validate(self):
9102
    return
9103
 
9104
 
9105
  def __repr__(self):
9106
    L = ['%s=%r' % (key, value)
9107
      for key, value in self.__dict__.iteritems()]
9108
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9109
 
9110
  def __eq__(self, other):
9111
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9112
 
9113
  def __ne__(self, other):
9114
    return not (self == other)
9115
 
9116
class getTransferLot_args:
9117
  """
9118
  Attributes:
9119
   - transferLotId
9120
  """
9121
 
9122
  thrift_spec = (
9123
    None, # 0
9124
    (1, TType.I64, 'transferLotId', None, None, ), # 1
9125
  )
9126
 
9127
  def __init__(self, transferLotId=None,):
9128
    self.transferLotId = transferLotId
9129
 
9130
  def read(self, iprot):
9131
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9132
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9133
      return
9134
    iprot.readStructBegin()
9135
    while True:
9136
      (fname, ftype, fid) = iprot.readFieldBegin()
9137
      if ftype == TType.STOP:
9138
        break
9139
      if fid == 1:
9140
        if ftype == TType.I64:
9141
          self.transferLotId = iprot.readI64();
9142
        else:
9143
          iprot.skip(ftype)
9144
      else:
9145
        iprot.skip(ftype)
9146
      iprot.readFieldEnd()
9147
    iprot.readStructEnd()
9148
 
9149
  def write(self, oprot):
9150
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9151
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9152
      return
9153
    oprot.writeStructBegin('getTransferLot_args')
9154
    if self.transferLotId is not None:
9155
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
9156
      oprot.writeI64(self.transferLotId)
9157
      oprot.writeFieldEnd()
9158
    oprot.writeFieldStop()
9159
    oprot.writeStructEnd()
9160
 
9161
  def validate(self):
9162
    return
9163
 
9164
 
9165
  def __repr__(self):
9166
    L = ['%s=%r' % (key, value)
9167
      for key, value in self.__dict__.iteritems()]
9168
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9169
 
9170
  def __eq__(self, other):
9171
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9172
 
9173
  def __ne__(self, other):
9174
    return not (self == other)
9175
 
9176
class getTransferLot_result:
9177
  """
9178
  Attributes:
9179
   - success
9180
   - wex
9181
  """
9182
 
9183
  thrift_spec = (
9184
    (0, TType.STRUCT, 'success', (TransferLot, TransferLot.thrift_spec), None, ), # 0
9185
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9186
  )
9187
 
9188
  def __init__(self, success=None, wex=None,):
9189
    self.success = success
9190
    self.wex = wex
9191
 
9192
  def read(self, iprot):
9193
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9194
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9195
      return
9196
    iprot.readStructBegin()
9197
    while True:
9198
      (fname, ftype, fid) = iprot.readFieldBegin()
9199
      if ftype == TType.STOP:
9200
        break
9201
      if fid == 0:
9202
        if ftype == TType.STRUCT:
9203
          self.success = TransferLot()
9204
          self.success.read(iprot)
9205
        else:
9206
          iprot.skip(ftype)
9207
      elif fid == 1:
9208
        if ftype == TType.STRUCT:
9209
          self.wex = WarehouseServiceException()
9210
          self.wex.read(iprot)
9211
        else:
9212
          iprot.skip(ftype)
9213
      else:
9214
        iprot.skip(ftype)
9215
      iprot.readFieldEnd()
9216
    iprot.readStructEnd()
9217
 
9218
  def write(self, oprot):
9219
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9220
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9221
      return
9222
    oprot.writeStructBegin('getTransferLot_result')
9223
    if self.success is not None:
9224
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9225
      self.success.write(oprot)
9226
      oprot.writeFieldEnd()
9227
    if self.wex is not None:
9228
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9229
      self.wex.write(oprot)
9230
      oprot.writeFieldEnd()
9231
    oprot.writeFieldStop()
9232
    oprot.writeStructEnd()
9233
 
9234
  def validate(self):
9235
    return
9236
 
9237
 
9238
  def __repr__(self):
9239
    L = ['%s=%r' % (key, value)
9240
      for key, value in self.__dict__.iteritems()]
9241
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9242
 
9243
  def __eq__(self, other):
9244
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9245
 
9246
  def __ne__(self, other):
9247
    return not (self == other)
9248
 
9249
class markTransferLotAsReceived_args:
9250
  """
9251
  Attributes:
9252
   - id
9253
   - remoteTransferRefNumber
9254
  """
9255
 
9256
  thrift_spec = (
9257
    None, # 0
9258
    (1, TType.I64, 'id', None, None, ), # 1
9259
    (2, TType.STRING, 'remoteTransferRefNumber', None, None, ), # 2
9260
  )
9261
 
9262
  def __init__(self, id=None, remoteTransferRefNumber=None,):
9263
    self.id = id
9264
    self.remoteTransferRefNumber = remoteTransferRefNumber
9265
 
9266
  def read(self, iprot):
9267
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9268
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9269
      return
9270
    iprot.readStructBegin()
9271
    while True:
9272
      (fname, ftype, fid) = iprot.readFieldBegin()
9273
      if ftype == TType.STOP:
9274
        break
9275
      if fid == 1:
9276
        if ftype == TType.I64:
9277
          self.id = iprot.readI64();
9278
        else:
9279
          iprot.skip(ftype)
9280
      elif fid == 2:
9281
        if ftype == TType.STRING:
9282
          self.remoteTransferRefNumber = iprot.readString();
9283
        else:
9284
          iprot.skip(ftype)
9285
      else:
9286
        iprot.skip(ftype)
9287
      iprot.readFieldEnd()
9288
    iprot.readStructEnd()
9289
 
9290
  def write(self, oprot):
9291
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9292
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9293
      return
9294
    oprot.writeStructBegin('markTransferLotAsReceived_args')
9295
    if self.id is not None:
9296
      oprot.writeFieldBegin('id', TType.I64, 1)
9297
      oprot.writeI64(self.id)
9298
      oprot.writeFieldEnd()
9299
    if self.remoteTransferRefNumber is not None:
9300
      oprot.writeFieldBegin('remoteTransferRefNumber', TType.STRING, 2)
9301
      oprot.writeString(self.remoteTransferRefNumber)
9302
      oprot.writeFieldEnd()
9303
    oprot.writeFieldStop()
9304
    oprot.writeStructEnd()
9305
 
9306
  def validate(self):
9307
    return
9308
 
9309
 
9310
  def __repr__(self):
9311
    L = ['%s=%r' % (key, value)
9312
      for key, value in self.__dict__.iteritems()]
9313
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9314
 
9315
  def __eq__(self, other):
9316
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9317
 
9318
  def __ne__(self, other):
9319
    return not (self == other)
9320
 
9321
class markTransferLotAsReceived_result:
9322
  """
9323
  Attributes:
9324
   - wex
9325
  """
9326
 
9327
  thrift_spec = (
9328
    None, # 0
9329
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9330
  )
9331
 
9332
  def __init__(self, wex=None,):
9333
    self.wex = wex
9334
 
9335
  def read(self, iprot):
9336
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9337
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9338
      return
9339
    iprot.readStructBegin()
9340
    while True:
9341
      (fname, ftype, fid) = iprot.readFieldBegin()
9342
      if ftype == TType.STOP:
9343
        break
9344
      if fid == 1:
9345
        if ftype == TType.STRUCT:
9346
          self.wex = WarehouseServiceException()
9347
          self.wex.read(iprot)
9348
        else:
9349
          iprot.skip(ftype)
9350
      else:
9351
        iprot.skip(ftype)
9352
      iprot.readFieldEnd()
9353
    iprot.readStructEnd()
9354
 
9355
  def write(self, oprot):
9356
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9357
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9358
      return
9359
    oprot.writeStructBegin('markTransferLotAsReceived_result')
9360
    if self.wex is not None:
9361
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9362
      self.wex.write(oprot)
9363
      oprot.writeFieldEnd()
9364
    oprot.writeFieldStop()
9365
    oprot.writeStructEnd()
9366
 
9367
  def validate(self):
9368
    return
9369
 
9370
 
9371
  def __repr__(self):
9372
    L = ['%s=%r' % (key, value)
9373
      for key, value in self.__dict__.iteritems()]
9374
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9375
 
9376
  def __eq__(self, other):
9377
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9378
 
9379
  def __ne__(self, other):
9380
    return not (self == other)
9381
 
9382
class getTransferLotsByDate_args:
9383
  """
9384
  Attributes:
9385
   - fromDate
9386
   - toDate
9387
  """
9388
 
9389
  thrift_spec = (
9390
    None, # 0
9391
    (1, TType.I64, 'fromDate', None, None, ), # 1
9392
    (2, TType.I64, 'toDate', None, None, ), # 2
9393
  )
9394
 
9395
  def __init__(self, fromDate=None, toDate=None,):
9396
    self.fromDate = fromDate
9397
    self.toDate = toDate
9398
 
9399
  def read(self, iprot):
9400
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9401
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9402
      return
9403
    iprot.readStructBegin()
9404
    while True:
9405
      (fname, ftype, fid) = iprot.readFieldBegin()
9406
      if ftype == TType.STOP:
9407
        break
9408
      if fid == 1:
9409
        if ftype == TType.I64:
9410
          self.fromDate = iprot.readI64();
9411
        else:
9412
          iprot.skip(ftype)
9413
      elif fid == 2:
9414
        if ftype == TType.I64:
9415
          self.toDate = iprot.readI64();
9416
        else:
9417
          iprot.skip(ftype)
9418
      else:
9419
        iprot.skip(ftype)
9420
      iprot.readFieldEnd()
9421
    iprot.readStructEnd()
9422
 
9423
  def write(self, oprot):
9424
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9425
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9426
      return
9427
    oprot.writeStructBegin('getTransferLotsByDate_args')
9428
    if self.fromDate is not None:
9429
      oprot.writeFieldBegin('fromDate', TType.I64, 1)
9430
      oprot.writeI64(self.fromDate)
9431
      oprot.writeFieldEnd()
9432
    if self.toDate is not None:
9433
      oprot.writeFieldBegin('toDate', TType.I64, 2)
9434
      oprot.writeI64(self.toDate)
9435
      oprot.writeFieldEnd()
9436
    oprot.writeFieldStop()
9437
    oprot.writeStructEnd()
9438
 
9439
  def validate(self):
9440
    return
9441
 
9442
 
9443
  def __repr__(self):
9444
    L = ['%s=%r' % (key, value)
9445
      for key, value in self.__dict__.iteritems()]
9446
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9447
 
9448
  def __eq__(self, other):
9449
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9450
 
9451
  def __ne__(self, other):
9452
    return not (self == other)
9453
 
9454
class getTransferLotsByDate_result:
9455
  """
9456
  Attributes:
9457
   - success
9458
   - wex
9459
  """
9460
 
9461
  thrift_spec = (
9462
    (0, TType.LIST, 'success', (TType.STRUCT,(TransferLot, TransferLot.thrift_spec)), None, ), # 0
9463
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9464
  )
9465
 
9466
  def __init__(self, success=None, wex=None,):
9467
    self.success = success
9468
    self.wex = wex
9469
 
9470
  def read(self, iprot):
9471
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9472
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9473
      return
9474
    iprot.readStructBegin()
9475
    while True:
9476
      (fname, ftype, fid) = iprot.readFieldBegin()
9477
      if ftype == TType.STOP:
9478
        break
9479
      if fid == 0:
9480
        if ftype == TType.LIST:
9481
          self.success = []
10407 amar.kumar 9482
          (_etype157, _size154) = iprot.readListBegin()
9483
          for _i158 in xrange(_size154):
9484
            _elem159 = TransferLot()
9485
            _elem159.read(iprot)
9486
            self.success.append(_elem159)
7410 amar.kumar 9487
          iprot.readListEnd()
9488
        else:
9489
          iprot.skip(ftype)
9490
      elif fid == 1:
9491
        if ftype == TType.STRUCT:
9492
          self.wex = WarehouseServiceException()
9493
          self.wex.read(iprot)
9494
        else:
9495
          iprot.skip(ftype)
9496
      else:
9497
        iprot.skip(ftype)
9498
      iprot.readFieldEnd()
9499
    iprot.readStructEnd()
9500
 
9501
  def write(self, oprot):
9502
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9503
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9504
      return
9505
    oprot.writeStructBegin('getTransferLotsByDate_result')
9506
    if self.success is not None:
9507
      oprot.writeFieldBegin('success', TType.LIST, 0)
9508
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 9509
      for iter160 in self.success:
9510
        iter160.write(oprot)
7410 amar.kumar 9511
      oprot.writeListEnd()
9512
      oprot.writeFieldEnd()
9513
    if self.wex is not None:
9514
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9515
      self.wex.write(oprot)
9516
      oprot.writeFieldEnd()
9517
    oprot.writeFieldStop()
9518
    oprot.writeStructEnd()
9519
 
9520
  def validate(self):
9521
    return
9522
 
9523
 
9524
  def __repr__(self):
9525
    L = ['%s=%r' % (key, value)
9526
      for key, value in self.__dict__.iteritems()]
9527
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9528
 
9529
  def __eq__(self, other):
9530
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9531
 
9532
  def __ne__(self, other):
9533
    return not (self == other)
9534
 
9535
class getAllowedDestinationWarehousesForTransfer_args:
9536
  """
9537
  Attributes:
9538
   - warehouseId
9539
  """
9540
 
9541
  thrift_spec = (
9542
    None, # 0
9543
    (1, TType.I64, 'warehouseId', None, None, ), # 1
9544
  )
9545
 
9546
  def __init__(self, warehouseId=None,):
9547
    self.warehouseId = warehouseId
9548
 
9549
  def read(self, iprot):
9550
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9551
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9552
      return
9553
    iprot.readStructBegin()
9554
    while True:
9555
      (fname, ftype, fid) = iprot.readFieldBegin()
9556
      if ftype == TType.STOP:
9557
        break
9558
      if fid == 1:
9559
        if ftype == TType.I64:
9560
          self.warehouseId = iprot.readI64();
9561
        else:
9562
          iprot.skip(ftype)
9563
      else:
9564
        iprot.skip(ftype)
9565
      iprot.readFieldEnd()
9566
    iprot.readStructEnd()
9567
 
9568
  def write(self, oprot):
9569
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9570
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9571
      return
9572
    oprot.writeStructBegin('getAllowedDestinationWarehousesForTransfer_args')
9573
    if self.warehouseId is not None:
9574
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
9575
      oprot.writeI64(self.warehouseId)
9576
      oprot.writeFieldEnd()
9577
    oprot.writeFieldStop()
9578
    oprot.writeStructEnd()
9579
 
9580
  def validate(self):
9581
    return
9582
 
9583
 
9584
  def __repr__(self):
9585
    L = ['%s=%r' % (key, value)
9586
      for key, value in self.__dict__.iteritems()]
9587
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9588
 
9589
  def __eq__(self, other):
9590
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9591
 
9592
  def __ne__(self, other):
9593
    return not (self == other)
9594
 
9595
class getAllowedDestinationWarehousesForTransfer_result:
9596
  """
9597
  Attributes:
9598
   - success
9599
  """
9600
 
9601
  thrift_spec = (
9602
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9603
  )
9604
 
9605
  def __init__(self, success=None,):
9606
    self.success = success
9607
 
9608
  def read(self, iprot):
9609
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9610
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9611
      return
9612
    iprot.readStructBegin()
9613
    while True:
9614
      (fname, ftype, fid) = iprot.readFieldBegin()
9615
      if ftype == TType.STOP:
9616
        break
9617
      if fid == 0:
9618
        if ftype == TType.LIST:
9619
          self.success = []
10407 amar.kumar 9620
          (_etype164, _size161) = iprot.readListBegin()
9621
          for _i165 in xrange(_size161):
9622
            _elem166 = iprot.readI64();
9623
            self.success.append(_elem166)
7410 amar.kumar 9624
          iprot.readListEnd()
9625
        else:
9626
          iprot.skip(ftype)
9627
      else:
9628
        iprot.skip(ftype)
9629
      iprot.readFieldEnd()
9630
    iprot.readStructEnd()
9631
 
9632
  def write(self, oprot):
9633
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9634
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9635
      return
9636
    oprot.writeStructBegin('getAllowedDestinationWarehousesForTransfer_result')
9637
    if self.success is not None:
9638
      oprot.writeFieldBegin('success', TType.LIST, 0)
9639
      oprot.writeListBegin(TType.I64, len(self.success))
10407 amar.kumar 9640
      for iter167 in self.success:
9641
        oprot.writeI64(iter167)
7410 amar.kumar 9642
      oprot.writeListEnd()
9643
      oprot.writeFieldEnd()
9644
    oprot.writeFieldStop()
9645
    oprot.writeStructEnd()
9646
 
9647
  def validate(self):
9648
    return
9649
 
9650
 
9651
  def __repr__(self):
9652
    L = ['%s=%r' % (key, value)
9653
      for key, value in self.__dict__.iteritems()]
9654
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9655
 
9656
  def __eq__(self, other):
9657
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9658
 
9659
  def __ne__(self, other):
9660
    return not (self == other)
9661
 
9662
class getItemsInTransferLot_args:
9663
  """
9664
  Attributes:
9665
   - transferLotId
9666
  """
9667
 
9668
  thrift_spec = (
9669
    None, # 0
9670
    (1, TType.I64, 'transferLotId', None, None, ), # 1
9671
  )
9672
 
9673
  def __init__(self, transferLotId=None,):
9674
    self.transferLotId = transferLotId
9675
 
9676
  def read(self, iprot):
9677
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9678
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9679
      return
9680
    iprot.readStructBegin()
9681
    while True:
9682
      (fname, ftype, fid) = iprot.readFieldBegin()
9683
      if ftype == TType.STOP:
9684
        break
9685
      if fid == 1:
9686
        if ftype == TType.I64:
9687
          self.transferLotId = iprot.readI64();
9688
        else:
9689
          iprot.skip(ftype)
9690
      else:
9691
        iprot.skip(ftype)
9692
      iprot.readFieldEnd()
9693
    iprot.readStructEnd()
9694
 
9695
  def write(self, oprot):
9696
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9697
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9698
      return
9699
    oprot.writeStructBegin('getItemsInTransferLot_args')
9700
    if self.transferLotId is not None:
9701
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
9702
      oprot.writeI64(self.transferLotId)
9703
      oprot.writeFieldEnd()
9704
    oprot.writeFieldStop()
9705
    oprot.writeStructEnd()
9706
 
9707
  def validate(self):
9708
    return
9709
 
9710
 
9711
  def __repr__(self):
9712
    L = ['%s=%r' % (key, value)
9713
      for key, value in self.__dict__.iteritems()]
9714
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9715
 
9716
  def __eq__(self, other):
9717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9718
 
9719
  def __ne__(self, other):
9720
    return not (self == other)
9721
 
9722
class getItemsInTransferLot_result:
9723
  """
9724
  Attributes:
9725
   - success
9726
  """
9727
 
9728
  thrift_spec = (
9729
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
9730
  )
9731
 
9732
  def __init__(self, success=None,):
9733
    self.success = success
9734
 
9735
  def read(self, iprot):
9736
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9737
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9738
      return
9739
    iprot.readStructBegin()
9740
    while True:
9741
      (fname, ftype, fid) = iprot.readFieldBegin()
9742
      if ftype == TType.STOP:
9743
        break
9744
      if fid == 0:
9745
        if ftype == TType.MAP:
9746
          self.success = {}
10407 amar.kumar 9747
          (_ktype169, _vtype170, _size168 ) = iprot.readMapBegin() 
9748
          for _i172 in xrange(_size168):
9749
            _key173 = iprot.readI64();
9750
            _val174 = iprot.readI64();
9751
            self.success[_key173] = _val174
7410 amar.kumar 9752
          iprot.readMapEnd()
9753
        else:
9754
          iprot.skip(ftype)
9755
      else:
9756
        iprot.skip(ftype)
9757
      iprot.readFieldEnd()
9758
    iprot.readStructEnd()
9759
 
9760
  def write(self, oprot):
9761
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9762
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9763
      return
9764
    oprot.writeStructBegin('getItemsInTransferLot_result')
9765
    if self.success is not None:
9766
      oprot.writeFieldBegin('success', TType.MAP, 0)
9767
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
10407 amar.kumar 9768
      for kiter175,viter176 in self.success.items():
9769
        oprot.writeI64(kiter175)
9770
        oprot.writeI64(viter176)
7410 amar.kumar 9771
      oprot.writeMapEnd()
9772
      oprot.writeFieldEnd()
9773
    oprot.writeFieldStop()
9774
    oprot.writeStructEnd()
9775
 
9776
  def validate(self):
9777
    return
9778
 
9779
 
9780
  def __repr__(self):
9781
    L = ['%s=%r' % (key, value)
9782
      for key, value in self.__dict__.iteritems()]
9783
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9784
 
9785
  def __eq__(self, other):
9786
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9787
 
9788
  def __ne__(self, other):
9789
    return not (self == other)
9790
 
9791
class markItemsAsReceivedForTransferLot_args:
9792
  """
9793
  Attributes:
9794
   - id
9795
  """
9796
 
9797
  thrift_spec = (
9798
    None, # 0
9799
    (1, TType.I64, 'id', None, None, ), # 1
9800
  )
9801
 
9802
  def __init__(self, id=None,):
9803
    self.id = id
9804
 
9805
  def read(self, iprot):
9806
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9807
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9808
      return
9809
    iprot.readStructBegin()
9810
    while True:
9811
      (fname, ftype, fid) = iprot.readFieldBegin()
9812
      if ftype == TType.STOP:
9813
        break
9814
      if fid == 1:
9815
        if ftype == TType.I64:
9816
          self.id = iprot.readI64();
9817
        else:
9818
          iprot.skip(ftype)
9819
      else:
9820
        iprot.skip(ftype)
9821
      iprot.readFieldEnd()
9822
    iprot.readStructEnd()
9823
 
9824
  def write(self, oprot):
9825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9827
      return
9828
    oprot.writeStructBegin('markItemsAsReceivedForTransferLot_args')
9829
    if self.id is not None:
9830
      oprot.writeFieldBegin('id', TType.I64, 1)
9831
      oprot.writeI64(self.id)
9832
      oprot.writeFieldEnd()
9833
    oprot.writeFieldStop()
9834
    oprot.writeStructEnd()
9835
 
9836
  def validate(self):
9837
    return
9838
 
9839
 
9840
  def __repr__(self):
9841
    L = ['%s=%r' % (key, value)
9842
      for key, value in self.__dict__.iteritems()]
9843
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9844
 
9845
  def __eq__(self, other):
9846
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9847
 
9848
  def __ne__(self, other):
9849
    return not (self == other)
9850
 
9851
class markItemsAsReceivedForTransferLot_result:
9852
  """
9853
  Attributes:
9854
   - wex
9855
  """
9856
 
9857
  thrift_spec = (
9858
    None, # 0
9859
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9860
  )
9861
 
9862
  def __init__(self, wex=None,):
9863
    self.wex = wex
9864
 
9865
  def read(self, iprot):
9866
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9867
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9868
      return
9869
    iprot.readStructBegin()
9870
    while True:
9871
      (fname, ftype, fid) = iprot.readFieldBegin()
9872
      if ftype == TType.STOP:
9873
        break
9874
      if fid == 1:
9875
        if ftype == TType.STRUCT:
9876
          self.wex = WarehouseServiceException()
9877
          self.wex.read(iprot)
9878
        else:
9879
          iprot.skip(ftype)
9880
      else:
9881
        iprot.skip(ftype)
9882
      iprot.readFieldEnd()
9883
    iprot.readStructEnd()
9884
 
9885
  def write(self, oprot):
9886
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9887
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9888
      return
9889
    oprot.writeStructBegin('markItemsAsReceivedForTransferLot_result')
9890
    if self.wex is not None:
9891
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9892
      self.wex.write(oprot)
9893
      oprot.writeFieldEnd()
9894
    oprot.writeFieldStop()
9895
    oprot.writeStructEnd()
9896
 
9897
  def validate(self):
9898
    return
9899
 
9900
 
9901
  def __repr__(self):
9902
    L = ['%s=%r' % (key, value)
9903
      for key, value in self.__dict__.iteritems()]
9904
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9905
 
9906
  def __eq__(self, other):
9907
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9908
 
9909
  def __ne__(self, other):
9910
    return not (self == other)
9911
 
9912
class updateTransferLotAfterItemReceive_args:
9913
  """
9914
  Attributes:
9915
   - id
9916
  """
9917
 
9918
  thrift_spec = (
9919
    None, # 0
9920
    (1, TType.I64, 'id', None, None, ), # 1
9921
  )
9922
 
9923
  def __init__(self, id=None,):
9924
    self.id = id
9925
 
9926
  def read(self, iprot):
9927
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9928
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9929
      return
9930
    iprot.readStructBegin()
9931
    while True:
9932
      (fname, ftype, fid) = iprot.readFieldBegin()
9933
      if ftype == TType.STOP:
9934
        break
9935
      if fid == 1:
9936
        if ftype == TType.I64:
9937
          self.id = 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
9949
    oprot.writeStructBegin('updateTransferLotAfterItemReceive_args')
9950
    if self.id is not None:
9951
      oprot.writeFieldBegin('id', TType.I64, 1)
9952
      oprot.writeI64(self.id)
9953
      oprot.writeFieldEnd()
9954
    oprot.writeFieldStop()
9955
    oprot.writeStructEnd()
9956
 
9957
  def validate(self):
9958
    return
9959
 
9960
 
9961
  def __repr__(self):
9962
    L = ['%s=%r' % (key, value)
9963
      for key, value in self.__dict__.iteritems()]
9964
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9965
 
9966
  def __eq__(self, other):
9967
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9968
 
9969
  def __ne__(self, other):
9970
    return not (self == other)
9971
 
9972
class updateTransferLotAfterItemReceive_result:
9973
  """
9974
  Attributes:
9975
   - success
9976
   - wex
9977
  """
9978
 
9979
  thrift_spec = (
9980
    (0, TType.I32, 'success', None, None, ), # 0
9981
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9982
  )
9983
 
9984
  def __init__(self, success=None, wex=None,):
9985
    self.success = success
9986
    self.wex = wex
9987
 
9988
  def read(self, iprot):
9989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9991
      return
9992
    iprot.readStructBegin()
9993
    while True:
9994
      (fname, ftype, fid) = iprot.readFieldBegin()
9995
      if ftype == TType.STOP:
9996
        break
9997
      if fid == 0:
9998
        if ftype == TType.I32:
9999
          self.success = iprot.readI32();
10000
        else:
10001
          iprot.skip(ftype)
10002
      elif fid == 1:
10003
        if ftype == TType.STRUCT:
10004
          self.wex = WarehouseServiceException()
10005
          self.wex.read(iprot)
10006
        else:
10007
          iprot.skip(ftype)
10008
      else:
10009
        iprot.skip(ftype)
10010
      iprot.readFieldEnd()
10011
    iprot.readStructEnd()
10012
 
10013
  def write(self, oprot):
10014
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10015
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10016
      return
10017
    oprot.writeStructBegin('updateTransferLotAfterItemReceive_result')
10018
    if self.success is not None:
10019
      oprot.writeFieldBegin('success', TType.I32, 0)
10020
      oprot.writeI32(self.success)
10021
      oprot.writeFieldEnd()
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)
10043
 
7459 amar.kumar 10044
class scanForTransferOut_args:
7410 amar.kumar 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
          (_etype180, _size177) = iprot.readListBegin()
10077
          for _i181 in xrange(_size177):
10078
            _elem182 = InventoryItem()
10079
            _elem182.read(iprot)
10080
            self.inventoryItems.append(_elem182)
7410 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
7459 amar.kumar 10103
    oprot.writeStructBegin('scanForTransferOut_args')
7410 amar.kumar 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 iter183 in self.inventoryItems:
10108
        iter183.write(oprot)
7410 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
 
7459 amar.kumar 10137
class scanForTransferOut_result:
7410 amar.kumar 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
7459 amar.kumar 10175
    oprot.writeStructBegin('scanForTransferOut_result')
7410 amar.kumar 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)
7459 amar.kumar 10197
 
10198
class scanForTransferIn_args:
10199
  """
10200
  Attributes:
10201
   - inventoryItems
10202
   - type
10203
   - transferLotId
10204
  """
10205
 
10206
  thrift_spec = (
10207
    None, # 0
10208
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
10209
    (2, TType.I32, 'type', None, None, ), # 2
10210
    (3, TType.I64, 'transferLotId', None, None, ), # 3
10211
  )
10212
 
10213
  def __init__(self, inventoryItems=None, type=None, transferLotId=None,):
10214
    self.inventoryItems = inventoryItems
10215
    self.type = type
10216
    self.transferLotId = transferLotId
10217
 
10218
  def read(self, iprot):
10219
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10220
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10221
      return
10222
    iprot.readStructBegin()
10223
    while True:
10224
      (fname, ftype, fid) = iprot.readFieldBegin()
10225
      if ftype == TType.STOP:
10226
        break
10227
      if fid == 1:
10228
        if ftype == TType.LIST:
10229
          self.inventoryItems = []
10407 amar.kumar 10230
          (_etype187, _size184) = iprot.readListBegin()
10231
          for _i188 in xrange(_size184):
10232
            _elem189 = InventoryItem()
10233
            _elem189.read(iprot)
10234
            self.inventoryItems.append(_elem189)
7459 amar.kumar 10235
          iprot.readListEnd()
10236
        else:
10237
          iprot.skip(ftype)
10238
      elif fid == 2:
10239
        if ftype == TType.I32:
10240
          self.type = iprot.readI32();
10241
        else:
10242
          iprot.skip(ftype)
10243
      elif fid == 3:
10244
        if ftype == TType.I64:
10245
          self.transferLotId = iprot.readI64();
10246
        else:
10247
          iprot.skip(ftype)
10248
      else:
10249
        iprot.skip(ftype)
10250
      iprot.readFieldEnd()
10251
    iprot.readStructEnd()
10252
 
10253
  def write(self, oprot):
10254
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10255
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10256
      return
10257
    oprot.writeStructBegin('scanForTransferIn_args')
10258
    if self.inventoryItems is not None:
10259
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
10260
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 10261
      for iter190 in self.inventoryItems:
10262
        iter190.write(oprot)
7459 amar.kumar 10263
      oprot.writeListEnd()
10264
      oprot.writeFieldEnd()
10265
    if self.type is not None:
10266
      oprot.writeFieldBegin('type', TType.I32, 2)
10267
      oprot.writeI32(self.type)
10268
      oprot.writeFieldEnd()
10269
    if self.transferLotId is not None:
10270
      oprot.writeFieldBegin('transferLotId', TType.I64, 3)
10271
      oprot.writeI64(self.transferLotId)
10272
      oprot.writeFieldEnd()
10273
    oprot.writeFieldStop()
10274
    oprot.writeStructEnd()
10275
 
10276
  def validate(self):
10277
    return
10278
 
10279
 
10280
  def __repr__(self):
10281
    L = ['%s=%r' % (key, value)
10282
      for key, value in self.__dict__.iteritems()]
10283
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10284
 
10285
  def __eq__(self, other):
10286
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10287
 
10288
  def __ne__(self, other):
10289
    return not (self == other)
10290
 
10291
class scanForTransferIn_result:
10292
  """
10293
  Attributes:
10294
   - wex
10295
  """
10296
 
10297
  thrift_spec = (
10298
    None, # 0
10299
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10300
  )
10301
 
10302
  def __init__(self, wex=None,):
10303
    self.wex = wex
10304
 
10305
  def read(self, iprot):
10306
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10307
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10308
      return
10309
    iprot.readStructBegin()
10310
    while True:
10311
      (fname, ftype, fid) = iprot.readFieldBegin()
10312
      if ftype == TType.STOP:
10313
        break
10314
      if fid == 1:
10315
        if ftype == TType.STRUCT:
10316
          self.wex = WarehouseServiceException()
10317
          self.wex.read(iprot)
10318
        else:
10319
          iprot.skip(ftype)
10320
      else:
10321
        iprot.skip(ftype)
10322
      iprot.readFieldEnd()
10323
    iprot.readStructEnd()
10324
 
10325
  def write(self, oprot):
10326
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10327
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10328
      return
10329
    oprot.writeStructBegin('scanForTransferIn_result')
10330
    if self.wex is not None:
10331
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10332
      self.wex.write(oprot)
10333
      oprot.writeFieldEnd()
10334
    oprot.writeFieldStop()
10335
    oprot.writeStructEnd()
10336
 
10337
  def validate(self):
10338
    return
10339
 
10340
 
10341
  def __repr__(self):
10342
    L = ['%s=%r' % (key, value)
10343
      for key, value in self.__dict__.iteritems()]
10344
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10345
 
10346
  def __eq__(self, other):
10347
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10348
 
10349
  def __ne__(self, other):
10350
    return not (self == other)
10351
 
10352
class scanForOursThirdPartyReceive_args:
10353
  """
10354
  Attributes:
10355
   - inventoryItems
10356
   - id
10357
  """
10358
 
10359
  thrift_spec = (
10360
    None, # 0
10361
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
10362
    (2, TType.I64, 'id', None, None, ), # 2
10363
  )
10364
 
10365
  def __init__(self, inventoryItems=None, id=None,):
10366
    self.inventoryItems = inventoryItems
10367
    self.id = id
10368
 
10369
  def read(self, iprot):
10370
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10371
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10372
      return
10373
    iprot.readStructBegin()
10374
    while True:
10375
      (fname, ftype, fid) = iprot.readFieldBegin()
10376
      if ftype == TType.STOP:
10377
        break
10378
      if fid == 1:
10379
        if ftype == TType.LIST:
10380
          self.inventoryItems = []
10407 amar.kumar 10381
          (_etype194, _size191) = iprot.readListBegin()
10382
          for _i195 in xrange(_size191):
10383
            _elem196 = InventoryItem()
10384
            _elem196.read(iprot)
10385
            self.inventoryItems.append(_elem196)
7459 amar.kumar 10386
          iprot.readListEnd()
10387
        else:
10388
          iprot.skip(ftype)
10389
      elif fid == 2:
10390
        if ftype == TType.I64:
10391
          self.id = iprot.readI64();
10392
        else:
10393
          iprot.skip(ftype)
10394
      else:
10395
        iprot.skip(ftype)
10396
      iprot.readFieldEnd()
10397
    iprot.readStructEnd()
10398
 
10399
  def write(self, oprot):
10400
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10401
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10402
      return
10403
    oprot.writeStructBegin('scanForOursThirdPartyReceive_args')
10404
    if self.inventoryItems is not None:
10405
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
10406
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 10407
      for iter197 in self.inventoryItems:
10408
        iter197.write(oprot)
7459 amar.kumar 10409
      oprot.writeListEnd()
10410
      oprot.writeFieldEnd()
10411
    if self.id is not None:
10412
      oprot.writeFieldBegin('id', TType.I64, 2)
10413
      oprot.writeI64(self.id)
10414
      oprot.writeFieldEnd()
10415
    oprot.writeFieldStop()
10416
    oprot.writeStructEnd()
10417
 
10418
  def validate(self):
10419
    return
10420
 
10421
 
10422
  def __repr__(self):
10423
    L = ['%s=%r' % (key, value)
10424
      for key, value in self.__dict__.iteritems()]
10425
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10426
 
10427
  def __eq__(self, other):
10428
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10429
 
10430
  def __ne__(self, other):
10431
    return not (self == other)
10432
 
10433
class scanForOursThirdPartyReceive_result:
10434
  """
10435
  Attributes:
10436
   - wex
10437
  """
10438
 
10439
  thrift_spec = (
10440
    None, # 0
10441
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10442
  )
10443
 
10444
  def __init__(self, wex=None,):
10445
    self.wex = wex
10446
 
10447
  def read(self, iprot):
10448
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10449
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10450
      return
10451
    iprot.readStructBegin()
10452
    while True:
10453
      (fname, ftype, fid) = iprot.readFieldBegin()
10454
      if ftype == TType.STOP:
10455
        break
10456
      if fid == 1:
10457
        if ftype == TType.STRUCT:
10458
          self.wex = WarehouseServiceException()
10459
          self.wex.read(iprot)
10460
        else:
10461
          iprot.skip(ftype)
10462
      else:
10463
        iprot.skip(ftype)
10464
      iprot.readFieldEnd()
10465
    iprot.readStructEnd()
10466
 
10467
  def write(self, oprot):
10468
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10469
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10470
      return
10471
    oprot.writeStructBegin('scanForOursThirdPartyReceive_result')
10472
    if self.wex is not None:
10473
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10474
      self.wex.write(oprot)
10475
      oprot.writeFieldEnd()
10476
    oprot.writeFieldStop()
10477
    oprot.writeStructEnd()
10478
 
10479
  def validate(self):
10480
    return
10481
 
10482
 
10483
  def __repr__(self):
10484
    L = ['%s=%r' % (key, value)
10485
      for key, value in self.__dict__.iteritems()]
10486
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10487
 
10488
  def __eq__(self, other):
10489
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10490
 
10491
  def __ne__(self, other):
10492
    return not (self == other)
7574 amar.kumar 10493
 
10494
class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args:
10495
  """
10496
  Attributes:
10497
   - itemId
10498
   - physicalWarehouseId
10499
  """
10500
 
10501
  thrift_spec = (
10502
    None, # 0
10503
    (1, TType.I64, 'itemId', None, None, ), # 1
10504
    (2, TType.I64, 'physicalWarehouseId', None, None, ), # 2
10505
  )
10506
 
10507
  def __init__(self, itemId=None, physicalWarehouseId=None,):
10508
    self.itemId = itemId
10509
    self.physicalWarehouseId = physicalWarehouseId
10510
 
10511
  def read(self, iprot):
10512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10514
      return
10515
    iprot.readStructBegin()
10516
    while True:
10517
      (fname, ftype, fid) = iprot.readFieldBegin()
10518
      if ftype == TType.STOP:
10519
        break
10520
      if fid == 1:
10521
        if ftype == TType.I64:
10522
          self.itemId = iprot.readI64();
10523
        else:
10524
          iprot.skip(ftype)
10525
      elif fid == 2:
10526
        if ftype == TType.I64:
10527
          self.physicalWarehouseId = iprot.readI64();
10528
        else:
10529
          iprot.skip(ftype)
10530
      else:
10531
        iprot.skip(ftype)
10532
      iprot.readFieldEnd()
10533
    iprot.readStructEnd()
10534
 
10535
  def write(self, oprot):
10536
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10537
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10538
      return
10539
    oprot.writeStructBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args')
10540
    if self.itemId is not None:
10541
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10542
      oprot.writeI64(self.itemId)
10543
      oprot.writeFieldEnd()
10544
    if self.physicalWarehouseId is not None:
10545
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 2)
10546
      oprot.writeI64(self.physicalWarehouseId)
10547
      oprot.writeFieldEnd()
10548
    oprot.writeFieldStop()
10549
    oprot.writeStructEnd()
10550
 
10551
  def validate(self):
10552
    return
10553
 
10554
 
10555
  def __repr__(self):
10556
    L = ['%s=%r' % (key, value)
10557
      for key, value in self.__dict__.iteritems()]
10558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10559
 
10560
  def __eq__(self, other):
10561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10562
 
10563
  def __ne__(self, other):
10564
    return not (self == other)
10565
 
10566
class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result:
10567
  """
10568
  Attributes:
10569
   - success
10570
   - wex
10571
  """
10572
 
10573
  thrift_spec = (
10574
    (0, TType.I64, 'success', None, None, ), # 0
10575
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10576
  )
10577
 
10578
  def __init__(self, success=None, wex=None,):
10579
    self.success = success
10580
    self.wex = wex
10581
 
10582
  def read(self, iprot):
10583
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10584
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10585
      return
10586
    iprot.readStructBegin()
10587
    while True:
10588
      (fname, ftype, fid) = iprot.readFieldBegin()
10589
      if ftype == TType.STOP:
10590
        break
10591
      if fid == 0:
10592
        if ftype == TType.I64:
10593
          self.success = iprot.readI64();
10594
        else:
10595
          iprot.skip(ftype)
10596
      elif fid == 1:
10597
        if ftype == TType.STRUCT:
10598
          self.wex = WarehouseServiceException()
10599
          self.wex.read(iprot)
10600
        else:
10601
          iprot.skip(ftype)
10602
      else:
10603
        iprot.skip(ftype)
10604
      iprot.readFieldEnd()
10605
    iprot.readStructEnd()
10606
 
10607
  def write(self, oprot):
10608
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10609
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10610
      return
10611
    oprot.writeStructBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result')
10612
    if self.success is not None:
10613
      oprot.writeFieldBegin('success', TType.I64, 0)
10614
      oprot.writeI64(self.success)
10615
      oprot.writeFieldEnd()
10616
    if self.wex is not None:
10617
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10618
      self.wex.write(oprot)
10619
      oprot.writeFieldEnd()
10620
    oprot.writeFieldStop()
10621
    oprot.writeStructEnd()
10622
 
10623
  def validate(self):
10624
    return
10625
 
10626
 
10627
  def __repr__(self):
10628
    L = ['%s=%r' % (key, value)
10629
      for key, value in self.__dict__.iteritems()]
10630
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10631
 
10632
  def __eq__(self, other):
10633
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10634
 
10635
  def __ne__(self, other):
10636
    return not (self == other)
7672 rajveer 10637
 
10638
class getInTransitInventory_args:
10639
  """
10640
  Attributes:
10641
   - originWarehouseId
10642
  """
10643
 
10644
  thrift_spec = (
10645
    None, # 0
10646
    (1, TType.I64, 'originWarehouseId', None, None, ), # 1
10647
  )
10648
 
10649
  def __init__(self, originWarehouseId=None,):
10650
    self.originWarehouseId = originWarehouseId
10651
 
10652
  def read(self, iprot):
10653
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10654
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10655
      return
10656
    iprot.readStructBegin()
10657
    while True:
10658
      (fname, ftype, fid) = iprot.readFieldBegin()
10659
      if ftype == TType.STOP:
10660
        break
10661
      if fid == 1:
10662
        if ftype == TType.I64:
10663
          self.originWarehouseId = iprot.readI64();
10664
        else:
10665
          iprot.skip(ftype)
10666
      else:
10667
        iprot.skip(ftype)
10668
      iprot.readFieldEnd()
10669
    iprot.readStructEnd()
10670
 
10671
  def write(self, oprot):
10672
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10673
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10674
      return
10675
    oprot.writeStructBegin('getInTransitInventory_args')
10676
    if self.originWarehouseId is not None:
10677
      oprot.writeFieldBegin('originWarehouseId', TType.I64, 1)
10678
      oprot.writeI64(self.originWarehouseId)
10679
      oprot.writeFieldEnd()
10680
    oprot.writeFieldStop()
10681
    oprot.writeStructEnd()
10682
 
10683
  def validate(self):
10684
    return
10685
 
10686
 
10687
  def __repr__(self):
10688
    L = ['%s=%r' % (key, value)
10689
      for key, value in self.__dict__.iteritems()]
10690
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10691
 
10692
  def __eq__(self, other):
10693
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10694
 
10695
  def __ne__(self, other):
10696
    return not (self == other)
10697
 
10698
class getInTransitInventory_result:
10699
  """
10700
  Attributes:
10701
   - success
10702
  """
10703
 
10704
  thrift_spec = (
10705
    (0, TType.LIST, 'success', (TType.STRUCT,(InTransitInventory, InTransitInventory.thrift_spec)), None, ), # 0
10706
  )
10707
 
10708
  def __init__(self, success=None,):
10709
    self.success = success
10710
 
10711
  def read(self, iprot):
10712
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10713
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10714
      return
10715
    iprot.readStructBegin()
10716
    while True:
10717
      (fname, ftype, fid) = iprot.readFieldBegin()
10718
      if ftype == TType.STOP:
10719
        break
10720
      if fid == 0:
10721
        if ftype == TType.LIST:
10722
          self.success = []
10407 amar.kumar 10723
          (_etype201, _size198) = iprot.readListBegin()
10724
          for _i202 in xrange(_size198):
10725
            _elem203 = InTransitInventory()
10726
            _elem203.read(iprot)
10727
            self.success.append(_elem203)
7672 rajveer 10728
          iprot.readListEnd()
10729
        else:
10730
          iprot.skip(ftype)
10731
      else:
10732
        iprot.skip(ftype)
10733
      iprot.readFieldEnd()
10734
    iprot.readStructEnd()
10735
 
10736
  def write(self, oprot):
10737
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10738
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10739
      return
10740
    oprot.writeStructBegin('getInTransitInventory_result')
10741
    if self.success is not None:
10742
      oprot.writeFieldBegin('success', TType.LIST, 0)
10743
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 10744
      for iter204 in self.success:
10745
        iter204.write(oprot)
7672 rajveer 10746
      oprot.writeListEnd()
10747
      oprot.writeFieldEnd()
10748
    oprot.writeFieldStop()
10749
    oprot.writeStructEnd()
10750
 
10751
  def validate(self):
10752
    return
10753
 
10754
 
10755
  def __repr__(self):
10756
    L = ['%s=%r' % (key, value)
10757
      for key, value in self.__dict__.iteritems()]
10758
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10759
 
10760
  def __eq__(self, other):
10761
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10762
 
10763
  def __ne__(self, other):
10764
    return not (self == other)
7968 amar.kumar 10765
 
10766
class isItemAvailableForSale_args:
10767
  """
10768
  Attributes:
10769
   - itemId
10770
   - serialNumber
10771
   - warehouseId
10772
  """
10773
 
10774
  thrift_spec = (
10775
    None, # 0
10776
    (1, TType.I64, 'itemId', None, None, ), # 1
10777
    (2, TType.STRING, 'serialNumber', None, None, ), # 2
10778
    (3, TType.I64, 'warehouseId', None, None, ), # 3
10779
  )
10780
 
10781
  def __init__(self, itemId=None, serialNumber=None, warehouseId=None,):
10782
    self.itemId = itemId
10783
    self.serialNumber = serialNumber
10784
    self.warehouseId = warehouseId
10785
 
10786
  def read(self, iprot):
10787
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10788
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10789
      return
10790
    iprot.readStructBegin()
10791
    while True:
10792
      (fname, ftype, fid) = iprot.readFieldBegin()
10793
      if ftype == TType.STOP:
10794
        break
10795
      if fid == 1:
10796
        if ftype == TType.I64:
10797
          self.itemId = iprot.readI64();
10798
        else:
10799
          iprot.skip(ftype)
10800
      elif fid == 2:
10801
        if ftype == TType.STRING:
10802
          self.serialNumber = iprot.readString();
10803
        else:
10804
          iprot.skip(ftype)
10805
      elif fid == 3:
10806
        if ftype == TType.I64:
10807
          self.warehouseId = iprot.readI64();
10808
        else:
10809
          iprot.skip(ftype)
10810
      else:
10811
        iprot.skip(ftype)
10812
      iprot.readFieldEnd()
10813
    iprot.readStructEnd()
10814
 
10815
  def write(self, oprot):
10816
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10817
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10818
      return
10819
    oprot.writeStructBegin('isItemAvailableForSale_args')
10820
    if self.itemId is not None:
10821
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10822
      oprot.writeI64(self.itemId)
10823
      oprot.writeFieldEnd()
10824
    if self.serialNumber is not None:
10825
      oprot.writeFieldBegin('serialNumber', TType.STRING, 2)
10826
      oprot.writeString(self.serialNumber)
10827
      oprot.writeFieldEnd()
10828
    if self.warehouseId is not None:
10829
      oprot.writeFieldBegin('warehouseId', TType.I64, 3)
10830
      oprot.writeI64(self.warehouseId)
10831
      oprot.writeFieldEnd()
10832
    oprot.writeFieldStop()
10833
    oprot.writeStructEnd()
10834
 
10835
  def validate(self):
10836
    return
10837
 
10838
 
10839
  def __repr__(self):
10840
    L = ['%s=%r' % (key, value)
10841
      for key, value in self.__dict__.iteritems()]
10842
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10843
 
10844
  def __eq__(self, other):
10845
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10846
 
10847
  def __ne__(self, other):
10848
    return not (self == other)
10849
 
10850
class isItemAvailableForSale_result:
10851
  """
10852
  Attributes:
10853
   - success
10854
   - wex
10855
  """
10856
 
10857
  thrift_spec = (
10858
    (0, TType.BOOL, 'success', None, None, ), # 0
10859
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10860
  )
10861
 
10862
  def __init__(self, success=None, wex=None,):
10863
    self.success = success
10864
    self.wex = wex
10865
 
10866
  def read(self, iprot):
10867
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10868
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10869
      return
10870
    iprot.readStructBegin()
10871
    while True:
10872
      (fname, ftype, fid) = iprot.readFieldBegin()
10873
      if ftype == TType.STOP:
10874
        break
10875
      if fid == 0:
10876
        if ftype == TType.BOOL:
10877
          self.success = iprot.readBool();
10878
        else:
10879
          iprot.skip(ftype)
10880
      elif fid == 1:
10881
        if ftype == TType.STRUCT:
10882
          self.wex = WarehouseServiceException()
10883
          self.wex.read(iprot)
10884
        else:
10885
          iprot.skip(ftype)
10886
      else:
10887
        iprot.skip(ftype)
10888
      iprot.readFieldEnd()
10889
    iprot.readStructEnd()
10890
 
10891
  def write(self, oprot):
10892
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10893
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10894
      return
10895
    oprot.writeStructBegin('isItemAvailableForSale_result')
10896
    if self.success is not None:
10897
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10898
      oprot.writeBool(self.success)
10899
      oprot.writeFieldEnd()
10900
    if self.wex is not None:
10901
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10902
      self.wex.write(oprot)
10903
      oprot.writeFieldEnd()
10904
    oprot.writeFieldStop()
10905
    oprot.writeStructEnd()
10906
 
10907
  def validate(self):
10908
    return
10909
 
10910
 
10911
  def __repr__(self):
10912
    L = ['%s=%r' % (key, value)
10913
      for key, value in self.__dict__.iteritems()]
10914
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10915
 
10916
  def __eq__(self, other):
10917
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10918
 
10919
  def __ne__(self, other):
10920
    return not (self == other)
10921
 
10922
class getHistoricBadInventoryByScans_args:
10923
  """
10924
  Attributes:
10925
   - date
10926
  """
10927
 
10928
  thrift_spec = (
10929
    None, # 0
10930
    (1, TType.I64, 'date', None, None, ), # 1
10931
  )
10932
 
10933
  def __init__(self, date=None,):
10934
    self.date = date
10935
 
10936
  def read(self, iprot):
10937
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10938
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10939
      return
10940
    iprot.readStructBegin()
10941
    while True:
10942
      (fname, ftype, fid) = iprot.readFieldBegin()
10943
      if ftype == TType.STOP:
10944
        break
10945
      if fid == 1:
10946
        if ftype == TType.I64:
10947
          self.date = iprot.readI64();
10948
        else:
10949
          iprot.skip(ftype)
10950
      else:
10951
        iprot.skip(ftype)
10952
      iprot.readFieldEnd()
10953
    iprot.readStructEnd()
10954
 
10955
  def write(self, oprot):
10956
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10957
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10958
      return
10959
    oprot.writeStructBegin('getHistoricBadInventoryByScans_args')
10960
    if self.date is not None:
10961
      oprot.writeFieldBegin('date', TType.I64, 1)
10962
      oprot.writeI64(self.date)
10963
      oprot.writeFieldEnd()
10964
    oprot.writeFieldStop()
10965
    oprot.writeStructEnd()
10966
 
10967
  def validate(self):
10968
    return
10969
 
10970
 
10971
  def __repr__(self):
10972
    L = ['%s=%r' % (key, value)
10973
      for key, value in self.__dict__.iteritems()]
10974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10975
 
10976
  def __eq__(self, other):
10977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10978
 
10979
  def __ne__(self, other):
10980
    return not (self == other)
10981
 
10982
class getHistoricBadInventoryByScans_result:
10983
  """
10984
  Attributes:
10985
   - success
10986
   - wex
10987
  """
10988
 
10989
  thrift_spec = (
10990
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
10991
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10992
  )
10993
 
10994
  def __init__(self, success=None, wex=None,):
10995
    self.success = success
10996
    self.wex = wex
10997
 
10998
  def read(self, iprot):
10999
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11000
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11001
      return
11002
    iprot.readStructBegin()
11003
    while True:
11004
      (fname, ftype, fid) = iprot.readFieldBegin()
11005
      if ftype == TType.STOP:
11006
        break
11007
      if fid == 0:
11008
        if ftype == TType.LIST:
11009
          self.success = []
10407 amar.kumar 11010
          (_etype208, _size205) = iprot.readListBegin()
11011
          for _i209 in xrange(_size205):
11012
            _elem210 = InventoryAvailability()
11013
            _elem210.read(iprot)
11014
            self.success.append(_elem210)
7968 amar.kumar 11015
          iprot.readListEnd()
11016
        else:
11017
          iprot.skip(ftype)
11018
      elif fid == 1:
11019
        if ftype == TType.STRUCT:
11020
          self.wex = WarehouseServiceException()
11021
          self.wex.read(iprot)
11022
        else:
11023
          iprot.skip(ftype)
11024
      else:
11025
        iprot.skip(ftype)
11026
      iprot.readFieldEnd()
11027
    iprot.readStructEnd()
11028
 
11029
  def write(self, oprot):
11030
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11031
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11032
      return
11033
    oprot.writeStructBegin('getHistoricBadInventoryByScans_result')
11034
    if self.success is not None:
11035
      oprot.writeFieldBegin('success', TType.LIST, 0)
11036
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 11037
      for iter211 in self.success:
11038
        iter211.write(oprot)
7968 amar.kumar 11039
      oprot.writeListEnd()
11040
      oprot.writeFieldEnd()
11041
    if self.wex is not None:
11042
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11043
      self.wex.write(oprot)
11044
      oprot.writeFieldEnd()
11045
    oprot.writeFieldStop()
11046
    oprot.writeStructEnd()
11047
 
11048
  def validate(self):
11049
    return
11050
 
11051
 
11052
  def __repr__(self):
11053
    L = ['%s=%r' % (key, value)
11054
      for key, value in self.__dict__.iteritems()]
11055
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11056
 
11057
  def __eq__(self, other):
11058
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11059
 
11060
  def __ne__(self, other):
11061
    return not (self == other)
8565 amar.kumar 11062
 
11063
class scanForBadSale_args:
11064
  """
11065
  Attributes:
8717 amar.kumar 11066
   - serialNumber
11067
   - itemNumber
11068
   - itemId
8565 amar.kumar 11069
   - orderId
8717 amar.kumar 11070
   - fulfilmentWarehouseId
8565 amar.kumar 11071
   - quantity
11072
   - billingWarehouseId
11073
  """
11074
 
11075
  thrift_spec = (
11076
    None, # 0
8717 amar.kumar 11077
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
11078
    (2, TType.STRING, 'itemNumber', None, None, ), # 2
11079
    (3, TType.I64, 'itemId', None, None, ), # 3
11080
    (4, TType.I64, 'orderId', None, None, ), # 4
11081
    (5, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 5
11082
    (6, TType.I64, 'quantity', None, None, ), # 6
11083
    (7, TType.I64, 'billingWarehouseId', None, None, ), # 7
8565 amar.kumar 11084
  )
11085
 
8717 amar.kumar 11086
  def __init__(self, serialNumber=None, itemNumber=None, itemId=None, orderId=None, fulfilmentWarehouseId=None, quantity=None, billingWarehouseId=None,):
11087
    self.serialNumber = serialNumber
11088
    self.itemNumber = itemNumber
11089
    self.itemId = itemId
8565 amar.kumar 11090
    self.orderId = orderId
8717 amar.kumar 11091
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 11092
    self.quantity = quantity
11093
    self.billingWarehouseId = billingWarehouseId
11094
 
11095
  def read(self, iprot):
11096
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11097
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11098
      return
11099
    iprot.readStructBegin()
11100
    while True:
11101
      (fname, ftype, fid) = iprot.readFieldBegin()
11102
      if ftype == TType.STOP:
11103
        break
11104
      if fid == 1:
8717 amar.kumar 11105
        if ftype == TType.STRING:
11106
          self.serialNumber = iprot.readString();
8565 amar.kumar 11107
        else:
11108
          iprot.skip(ftype)
11109
      elif fid == 2:
8717 amar.kumar 11110
        if ftype == TType.STRING:
11111
          self.itemNumber = iprot.readString();
8565 amar.kumar 11112
        else:
11113
          iprot.skip(ftype)
11114
      elif fid == 3:
11115
        if ftype == TType.I64:
8717 amar.kumar 11116
          self.itemId = iprot.readI64();
8565 amar.kumar 11117
        else:
11118
          iprot.skip(ftype)
11119
      elif fid == 4:
11120
        if ftype == TType.I64:
8717 amar.kumar 11121
          self.orderId = iprot.readI64();
8565 amar.kumar 11122
        else:
11123
          iprot.skip(ftype)
11124
      elif fid == 5:
11125
        if ftype == TType.I64:
8717 amar.kumar 11126
          self.fulfilmentWarehouseId = iprot.readI64();
11127
        else:
11128
          iprot.skip(ftype)
11129
      elif fid == 6:
11130
        if ftype == TType.I64:
11131
          self.quantity = iprot.readI64();
11132
        else:
11133
          iprot.skip(ftype)
11134
      elif fid == 7:
11135
        if ftype == TType.I64:
8565 amar.kumar 11136
          self.billingWarehouseId = iprot.readI64();
11137
        else:
11138
          iprot.skip(ftype)
11139
      else:
11140
        iprot.skip(ftype)
11141
      iprot.readFieldEnd()
11142
    iprot.readStructEnd()
11143
 
11144
  def write(self, oprot):
11145
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11146
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11147
      return
11148
    oprot.writeStructBegin('scanForBadSale_args')
8717 amar.kumar 11149
    if self.serialNumber is not None:
11150
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
11151
      oprot.writeString(self.serialNumber)
8565 amar.kumar 11152
      oprot.writeFieldEnd()
8717 amar.kumar 11153
    if self.itemNumber is not None:
11154
      oprot.writeFieldBegin('itemNumber', TType.STRING, 2)
11155
      oprot.writeString(self.itemNumber)
11156
      oprot.writeFieldEnd()
11157
    if self.itemId is not None:
11158
      oprot.writeFieldBegin('itemId', TType.I64, 3)
11159
      oprot.writeI64(self.itemId)
11160
      oprot.writeFieldEnd()
8565 amar.kumar 11161
    if self.orderId is not None:
8717 amar.kumar 11162
      oprot.writeFieldBegin('orderId', TType.I64, 4)
8565 amar.kumar 11163
      oprot.writeI64(self.orderId)
11164
      oprot.writeFieldEnd()
8717 amar.kumar 11165
    if self.fulfilmentWarehouseId is not None:
11166
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 5)
11167
      oprot.writeI64(self.fulfilmentWarehouseId)
11168
      oprot.writeFieldEnd()
8565 amar.kumar 11169
    if self.quantity is not None:
8717 amar.kumar 11170
      oprot.writeFieldBegin('quantity', TType.I64, 6)
8565 amar.kumar 11171
      oprot.writeI64(self.quantity)
11172
      oprot.writeFieldEnd()
11173
    if self.billingWarehouseId is not None:
8717 amar.kumar 11174
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 7)
8565 amar.kumar 11175
      oprot.writeI64(self.billingWarehouseId)
11176
      oprot.writeFieldEnd()
11177
    oprot.writeFieldStop()
11178
    oprot.writeStructEnd()
11179
 
11180
  def validate(self):
11181
    return
11182
 
11183
 
11184
  def __repr__(self):
11185
    L = ['%s=%r' % (key, value)
11186
      for key, value in self.__dict__.iteritems()]
11187
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11188
 
11189
  def __eq__(self, other):
11190
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11191
 
11192
  def __ne__(self, other):
11193
    return not (self == other)
11194
 
11195
class scanForBadSale_result:
8717 amar.kumar 11196
  """
11197
  Attributes:
11198
   - success
11199
   - wex
11200
  """
8565 amar.kumar 11201
 
11202
  thrift_spec = (
8717 amar.kumar 11203
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
11204
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8565 amar.kumar 11205
  )
11206
 
8717 amar.kumar 11207
  def __init__(self, success=None, wex=None,):
11208
    self.success = success
11209
    self.wex = wex
11210
 
8565 amar.kumar 11211
  def read(self, iprot):
11212
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11213
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11214
      return
11215
    iprot.readStructBegin()
11216
    while True:
11217
      (fname, ftype, fid) = iprot.readFieldBegin()
11218
      if ftype == TType.STOP:
11219
        break
8717 amar.kumar 11220
      if fid == 0:
11221
        if ftype == TType.STRUCT:
11222
          self.success = InventoryItem()
11223
          self.success.read(iprot)
11224
        else:
11225
          iprot.skip(ftype)
11226
      elif fid == 1:
11227
        if ftype == TType.STRUCT:
11228
          self.wex = WarehouseServiceException()
11229
          self.wex.read(iprot)
11230
        else:
11231
          iprot.skip(ftype)
8565 amar.kumar 11232
      else:
11233
        iprot.skip(ftype)
11234
      iprot.readFieldEnd()
11235
    iprot.readStructEnd()
11236
 
11237
  def write(self, oprot):
11238
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11239
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11240
      return
11241
    oprot.writeStructBegin('scanForBadSale_result')
8717 amar.kumar 11242
    if self.success is not None:
11243
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11244
      self.success.write(oprot)
11245
      oprot.writeFieldEnd()
11246
    if self.wex is not None:
11247
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11248
      self.wex.write(oprot)
11249
      oprot.writeFieldEnd()
8565 amar.kumar 11250
    oprot.writeFieldStop()
11251
    oprot.writeStructEnd()
11252
 
11253
  def validate(self):
11254
    return
11255
 
11256
 
11257
  def __repr__(self):
11258
    L = ['%s=%r' % (key, value)
11259
      for key, value in self.__dict__.iteritems()]
11260
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11261
 
11262
  def __eq__(self, other):
11263
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11264
 
11265
  def __ne__(self, other):
11266
    return not (self == other)
10120 manish.sha 11267
 
11268
class getTransferLotItemsForMarkReceive_args:
11269
  """
11270
  Attributes:
11271
   - transferLotId
11272
   - scanType
11273
  """
11274
 
11275
  thrift_spec = (
11276
    None, # 0
11277
    (1, TType.I64, 'transferLotId', None, None, ), # 1
11278
    (2, TType.I32, 'scanType', None, None, ), # 2
11279
  )
11280
 
11281
  def __init__(self, transferLotId=None, scanType=None,):
11282
    self.transferLotId = transferLotId
11283
    self.scanType = scanType
11284
 
11285
  def read(self, iprot):
11286
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11287
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11288
      return
11289
    iprot.readStructBegin()
11290
    while True:
11291
      (fname, ftype, fid) = iprot.readFieldBegin()
11292
      if ftype == TType.STOP:
11293
        break
11294
      if fid == 1:
11295
        if ftype == TType.I64:
11296
          self.transferLotId = iprot.readI64();
11297
        else:
11298
          iprot.skip(ftype)
11299
      elif fid == 2:
11300
        if ftype == TType.I32:
11301
          self.scanType = iprot.readI32();
11302
        else:
11303
          iprot.skip(ftype)
11304
      else:
11305
        iprot.skip(ftype)
11306
      iprot.readFieldEnd()
11307
    iprot.readStructEnd()
11308
 
11309
  def write(self, oprot):
11310
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11311
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11312
      return
11313
    oprot.writeStructBegin('getTransferLotItemsForMarkReceive_args')
11314
    if self.transferLotId is not None:
11315
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
11316
      oprot.writeI64(self.transferLotId)
11317
      oprot.writeFieldEnd()
11318
    if self.scanType is not None:
11319
      oprot.writeFieldBegin('scanType', TType.I32, 2)
11320
      oprot.writeI32(self.scanType)
11321
      oprot.writeFieldEnd()
11322
    oprot.writeFieldStop()
11323
    oprot.writeStructEnd()
11324
 
11325
  def validate(self):
11326
    return
11327
 
11328
 
11329
  def __repr__(self):
11330
    L = ['%s=%r' % (key, value)
11331
      for key, value in self.__dict__.iteritems()]
11332
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11333
 
11334
  def __eq__(self, other):
11335
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11336
 
11337
  def __ne__(self, other):
11338
    return not (self == other)
11339
 
11340
class getTransferLotItemsForMarkReceive_result:
11341
  """
11342
  Attributes:
11343
   - success
11344
   - wex
11345
  """
11346
 
11347
  thrift_spec = (
11348
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
11349
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11350
  )
11351
 
11352
  def __init__(self, success=None, wex=None,):
11353
    self.success = success
11354
    self.wex = wex
11355
 
11356
  def read(self, iprot):
11357
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11358
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11359
      return
11360
    iprot.readStructBegin()
11361
    while True:
11362
      (fname, ftype, fid) = iprot.readFieldBegin()
11363
      if ftype == TType.STOP:
11364
        break
11365
      if fid == 0:
11366
        if ftype == TType.LIST:
11367
          self.success = []
10407 amar.kumar 11368
          (_etype215, _size212) = iprot.readListBegin()
11369
          for _i216 in xrange(_size212):
11370
            _elem217 = InventoryItem()
11371
            _elem217.read(iprot)
11372
            self.success.append(_elem217)
10120 manish.sha 11373
          iprot.readListEnd()
11374
        else:
11375
          iprot.skip(ftype)
11376
      elif fid == 1:
11377
        if ftype == TType.STRUCT:
11378
          self.wex = WarehouseServiceException()
11379
          self.wex.read(iprot)
11380
        else:
11381
          iprot.skip(ftype)
11382
      else:
11383
        iprot.skip(ftype)
11384
      iprot.readFieldEnd()
11385
    iprot.readStructEnd()
11386
 
11387
  def write(self, oprot):
11388
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11389
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11390
      return
11391
    oprot.writeStructBegin('getTransferLotItemsForMarkReceive_result')
11392
    if self.success is not None:
11393
      oprot.writeFieldBegin('success', TType.LIST, 0)
11394
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 11395
      for iter218 in self.success:
11396
        iter218.write(oprot)
10120 manish.sha 11397
      oprot.writeListEnd()
11398
      oprot.writeFieldEnd()
11399
    if self.wex is not None:
11400
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11401
      self.wex.write(oprot)
11402
      oprot.writeFieldEnd()
11403
    oprot.writeFieldStop()
11404
    oprot.writeStructEnd()
11405
 
11406
  def validate(self):
11407
    return
11408
 
11409
 
11410
  def __repr__(self):
11411
    L = ['%s=%r' % (key, value)
11412
      for key, value in self.__dict__.iteritems()]
11413
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11414
 
11415
  def __eq__(self, other):
11416
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11417
 
11418
  def __ne__(self, other):
11419
    return not (self == other)
11420
 
11421
class markItemsAsReceivedForTransferLotPartial_args:
11422
  """
11423
  Attributes:
11424
   - inventoryItems
11425
   - transferLotId
11426
  """
11427
 
11428
  thrift_spec = (
11429
    None, # 0
11430
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
11431
    (2, TType.I64, 'transferLotId', None, None, ), # 2
11432
  )
11433
 
11434
  def __init__(self, inventoryItems=None, transferLotId=None,):
11435
    self.inventoryItems = inventoryItems
11436
    self.transferLotId = transferLotId
11437
 
11438
  def read(self, iprot):
11439
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11440
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11441
      return
11442
    iprot.readStructBegin()
11443
    while True:
11444
      (fname, ftype, fid) = iprot.readFieldBegin()
11445
      if ftype == TType.STOP:
11446
        break
11447
      if fid == 1:
11448
        if ftype == TType.LIST:
11449
          self.inventoryItems = []
10407 amar.kumar 11450
          (_etype222, _size219) = iprot.readListBegin()
11451
          for _i223 in xrange(_size219):
11452
            _elem224 = InventoryItem()
11453
            _elem224.read(iprot)
11454
            self.inventoryItems.append(_elem224)
10120 manish.sha 11455
          iprot.readListEnd()
11456
        else:
11457
          iprot.skip(ftype)
11458
      elif fid == 2:
11459
        if ftype == TType.I64:
11460
          self.transferLotId = iprot.readI64();
11461
        else:
11462
          iprot.skip(ftype)
11463
      else:
11464
        iprot.skip(ftype)
11465
      iprot.readFieldEnd()
11466
    iprot.readStructEnd()
11467
 
11468
  def write(self, oprot):
11469
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11470
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11471
      return
11472
    oprot.writeStructBegin('markItemsAsReceivedForTransferLotPartial_args')
11473
    if self.inventoryItems is not None:
11474
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
11475
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 11476
      for iter225 in self.inventoryItems:
11477
        iter225.write(oprot)
10120 manish.sha 11478
      oprot.writeListEnd()
11479
      oprot.writeFieldEnd()
11480
    if self.transferLotId is not None:
11481
      oprot.writeFieldBegin('transferLotId', TType.I64, 2)
11482
      oprot.writeI64(self.transferLotId)
11483
      oprot.writeFieldEnd()
11484
    oprot.writeFieldStop()
11485
    oprot.writeStructEnd()
11486
 
11487
  def validate(self):
11488
    return
11489
 
11490
 
11491
  def __repr__(self):
11492
    L = ['%s=%r' % (key, value)
11493
      for key, value in self.__dict__.iteritems()]
11494
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11495
 
11496
  def __eq__(self, other):
11497
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11498
 
11499
  def __ne__(self, other):
11500
    return not (self == other)
11501
 
11502
class markItemsAsReceivedForTransferLotPartial_result:
11503
  """
11504
  Attributes:
11505
   - wex
11506
  """
11507
 
11508
  thrift_spec = (
11509
    None, # 0
11510
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11511
  )
11512
 
11513
  def __init__(self, wex=None,):
11514
    self.wex = wex
11515
 
11516
  def read(self, iprot):
11517
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11518
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11519
      return
11520
    iprot.readStructBegin()
11521
    while True:
11522
      (fname, ftype, fid) = iprot.readFieldBegin()
11523
      if ftype == TType.STOP:
11524
        break
11525
      if fid == 1:
11526
        if ftype == TType.STRUCT:
11527
          self.wex = WarehouseServiceException()
11528
          self.wex.read(iprot)
11529
        else:
11530
          iprot.skip(ftype)
11531
      else:
11532
        iprot.skip(ftype)
11533
      iprot.readFieldEnd()
11534
    iprot.readStructEnd()
11535
 
11536
  def write(self, oprot):
11537
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11538
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11539
      return
11540
    oprot.writeStructBegin('markItemsAsReceivedForTransferLotPartial_result')
11541
    if self.wex is not None:
11542
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11543
      self.wex.write(oprot)
11544
      oprot.writeFieldEnd()
11545
    oprot.writeFieldStop()
11546
    oprot.writeStructEnd()
11547
 
11548
  def validate(self):
11549
    return
11550
 
11551
 
11552
  def __repr__(self):
11553
    L = ['%s=%r' % (key, value)
11554
      for key, value in self.__dict__.iteritems()]
11555
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11556
 
11557
  def __eq__(self, other):
11558
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11559
 
11560
  def __ne__(self, other):
11561
    return not (self == other)
11562
 
11563
class markTransferLotAsReceivedPartial_args:
11564
  """
11565
  Attributes:
11566
   - id
11567
   - remoteTransferRefNumber
11568
  """
11569
 
11570
  thrift_spec = (
11571
    None, # 0
11572
    (1, TType.I64, 'id', None, None, ), # 1
11573
    (2, TType.STRING, 'remoteTransferRefNumber', None, None, ), # 2
11574
  )
11575
 
11576
  def __init__(self, id=None, remoteTransferRefNumber=None,):
11577
    self.id = id
11578
    self.remoteTransferRefNumber = remoteTransferRefNumber
11579
 
11580
  def read(self, iprot):
11581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11583
      return
11584
    iprot.readStructBegin()
11585
    while True:
11586
      (fname, ftype, fid) = iprot.readFieldBegin()
11587
      if ftype == TType.STOP:
11588
        break
11589
      if fid == 1:
11590
        if ftype == TType.I64:
11591
          self.id = iprot.readI64();
11592
        else:
11593
          iprot.skip(ftype)
11594
      elif fid == 2:
11595
        if ftype == TType.STRING:
11596
          self.remoteTransferRefNumber = iprot.readString();
11597
        else:
11598
          iprot.skip(ftype)
11599
      else:
11600
        iprot.skip(ftype)
11601
      iprot.readFieldEnd()
11602
    iprot.readStructEnd()
11603
 
11604
  def write(self, oprot):
11605
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11606
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11607
      return
11608
    oprot.writeStructBegin('markTransferLotAsReceivedPartial_args')
11609
    if self.id is not None:
11610
      oprot.writeFieldBegin('id', TType.I64, 1)
11611
      oprot.writeI64(self.id)
11612
      oprot.writeFieldEnd()
11613
    if self.remoteTransferRefNumber is not None:
11614
      oprot.writeFieldBegin('remoteTransferRefNumber', TType.STRING, 2)
11615
      oprot.writeString(self.remoteTransferRefNumber)
11616
      oprot.writeFieldEnd()
11617
    oprot.writeFieldStop()
11618
    oprot.writeStructEnd()
11619
 
11620
  def validate(self):
11621
    return
11622
 
11623
 
11624
  def __repr__(self):
11625
    L = ['%s=%r' % (key, value)
11626
      for key, value in self.__dict__.iteritems()]
11627
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11628
 
11629
  def __eq__(self, other):
11630
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11631
 
11632
  def __ne__(self, other):
11633
    return not (self == other)
11634
 
11635
class markTransferLotAsReceivedPartial_result:
11636
  """
11637
  Attributes:
11638
   - wex
11639
  """
11640
 
11641
  thrift_spec = (
11642
    None, # 0
11643
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11644
  )
11645
 
11646
  def __init__(self, wex=None,):
11647
    self.wex = wex
11648
 
11649
  def read(self, iprot):
11650
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11651
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11652
      return
11653
    iprot.readStructBegin()
11654
    while True:
11655
      (fname, ftype, fid) = iprot.readFieldBegin()
11656
      if ftype == TType.STOP:
11657
        break
11658
      if 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('markTransferLotAsReceivedPartial_result')
11674
    if self.wex is not None:
11675
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11676
      self.wex.write(oprot)
11677
      oprot.writeFieldEnd()
11678
    oprot.writeFieldStop()
11679
    oprot.writeStructEnd()
11680
 
11681
  def validate(self):
11682
    return
11683
 
11684
 
11685
  def __repr__(self):
11686
    L = ['%s=%r' % (key, value)
11687
      for key, value in self.__dict__.iteritems()]
11688
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11689
 
11690
  def __eq__(self, other):
11691
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11692
 
11693
  def __ne__(self, other):
11694
    return not (self == other)
10690 manish.sha 11695
 
11696
class getInventoryItemScannedInForPO_args:
11697
  """
11698
  Attributes:
11699
   - itemId
11700
   - purchaseIds
11701
  """
11702
 
11703
  thrift_spec = (
11704
    None, # 0
11705
    (1, TType.I64, 'itemId', None, None, ), # 1
11706
    (2, TType.LIST, 'purchaseIds', (TType.I64,None), None, ), # 2
11707
  )
11708
 
11709
  def __init__(self, itemId=None, purchaseIds=None,):
11710
    self.itemId = itemId
11711
    self.purchaseIds = purchaseIds
11712
 
11713
  def read(self, iprot):
11714
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11715
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11716
      return
11717
    iprot.readStructBegin()
11718
    while True:
11719
      (fname, ftype, fid) = iprot.readFieldBegin()
11720
      if ftype == TType.STOP:
11721
        break
11722
      if fid == 1:
11723
        if ftype == TType.I64:
11724
          self.itemId = iprot.readI64();
11725
        else:
11726
          iprot.skip(ftype)
11727
      elif fid == 2:
11728
        if ftype == TType.LIST:
11729
          self.purchaseIds = []
11730
          (_etype229, _size226) = iprot.readListBegin()
11731
          for _i230 in xrange(_size226):
11732
            _elem231 = iprot.readI64();
11733
            self.purchaseIds.append(_elem231)
11734
          iprot.readListEnd()
11735
        else:
11736
          iprot.skip(ftype)
11737
      else:
11738
        iprot.skip(ftype)
11739
      iprot.readFieldEnd()
11740
    iprot.readStructEnd()
11741
 
11742
  def write(self, oprot):
11743
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11744
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11745
      return
11746
    oprot.writeStructBegin('getInventoryItemScannedInForPO_args')
11747
    if self.itemId is not None:
11748
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11749
      oprot.writeI64(self.itemId)
11750
      oprot.writeFieldEnd()
11751
    if self.purchaseIds is not None:
11752
      oprot.writeFieldBegin('purchaseIds', TType.LIST, 2)
11753
      oprot.writeListBegin(TType.I64, len(self.purchaseIds))
11754
      for iter232 in self.purchaseIds:
11755
        oprot.writeI64(iter232)
11756
      oprot.writeListEnd()
11757
      oprot.writeFieldEnd()
11758
    oprot.writeFieldStop()
11759
    oprot.writeStructEnd()
11760
 
11761
  def validate(self):
11762
    return
11763
 
11764
 
11765
  def __repr__(self):
11766
    L = ['%s=%r' % (key, value)
11767
      for key, value in self.__dict__.iteritems()]
11768
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11769
 
11770
  def __eq__(self, other):
11771
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11772
 
11773
  def __ne__(self, other):
11774
    return not (self == other)
11775
 
11776
class getInventoryItemScannedInForPO_result:
11777
  """
11778
  Attributes:
11779
   - success
11780
   - wex
11781
  """
11782
 
11783
  thrift_spec = (
11784
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
11785
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11786
  )
11787
 
11788
  def __init__(self, success=None, wex=None,):
11789
    self.success = success
11790
    self.wex = wex
11791
 
11792
  def read(self, iprot):
11793
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11794
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11795
      return
11796
    iprot.readStructBegin()
11797
    while True:
11798
      (fname, ftype, fid) = iprot.readFieldBegin()
11799
      if ftype == TType.STOP:
11800
        break
11801
      if fid == 0:
11802
        if ftype == TType.LIST:
11803
          self.success = []
11804
          (_etype236, _size233) = iprot.readListBegin()
11805
          for _i237 in xrange(_size233):
11806
            _elem238 = InventoryItem()
11807
            _elem238.read(iprot)
11808
            self.success.append(_elem238)
11809
          iprot.readListEnd()
11810
        else:
11811
          iprot.skip(ftype)
11812
      elif fid == 1:
11813
        if ftype == TType.STRUCT:
11814
          self.wex = WarehouseServiceException()
11815
          self.wex.read(iprot)
11816
        else:
11817
          iprot.skip(ftype)
11818
      else:
11819
        iprot.skip(ftype)
11820
      iprot.readFieldEnd()
11821
    iprot.readStructEnd()
11822
 
11823
  def write(self, oprot):
11824
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11825
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11826
      return
11827
    oprot.writeStructBegin('getInventoryItemScannedInForPO_result')
11828
    if self.success is not None:
11829
      oprot.writeFieldBegin('success', TType.LIST, 0)
11830
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11831
      for iter239 in self.success:
11832
        iter239.write(oprot)
11833
      oprot.writeListEnd()
11834
      oprot.writeFieldEnd()
11835
    if self.wex is not None:
11836
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11837
      self.wex.write(oprot)
11838
      oprot.writeFieldEnd()
11839
    oprot.writeFieldStop()
11840
    oprot.writeStructEnd()
11841
 
11842
  def validate(self):
11843
    return
11844
 
11845
 
11846
  def __repr__(self):
11847
    L = ['%s=%r' % (key, value)
11848
      for key, value in self.__dict__.iteritems()]
11849
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11850
 
11851
  def __eq__(self, other):
11852
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11853
 
11854
  def __ne__(self, other):
11855
    return not (self == other)
11856
 
11857
class getAmazonTransferredSkuDetails_args:
11858
  """
11859
  Attributes:
11860
   - itemIds
11861
  """
11862
 
11863
  thrift_spec = (
11864
    None, # 0
11865
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
11866
  )
11867
 
11868
  def __init__(self, itemIds=None,):
11869
    self.itemIds = itemIds
11870
 
11871
  def read(self, iprot):
11872
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11873
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11874
      return
11875
    iprot.readStructBegin()
11876
    while True:
11877
      (fname, ftype, fid) = iprot.readFieldBegin()
11878
      if ftype == TType.STOP:
11879
        break
11880
      if fid == 1:
11881
        if ftype == TType.LIST:
11882
          self.itemIds = []
11883
          (_etype243, _size240) = iprot.readListBegin()
11884
          for _i244 in xrange(_size240):
11885
            _elem245 = iprot.readI64();
11886
            self.itemIds.append(_elem245)
11887
          iprot.readListEnd()
11888
        else:
11889
          iprot.skip(ftype)
11890
      else:
11891
        iprot.skip(ftype)
11892
      iprot.readFieldEnd()
11893
    iprot.readStructEnd()
11894
 
11895
  def write(self, oprot):
11896
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11897
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11898
      return
11899
    oprot.writeStructBegin('getAmazonTransferredSkuDetails_args')
11900
    if self.itemIds is not None:
11901
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
11902
      oprot.writeListBegin(TType.I64, len(self.itemIds))
11903
      for iter246 in self.itemIds:
11904
        oprot.writeI64(iter246)
11905
      oprot.writeListEnd()
11906
      oprot.writeFieldEnd()
11907
    oprot.writeFieldStop()
11908
    oprot.writeStructEnd()
11909
 
11910
  def validate(self):
11911
    return
11912
 
11913
 
11914
  def __repr__(self):
11915
    L = ['%s=%r' % (key, value)
11916
      for key, value in self.__dict__.iteritems()]
11917
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11918
 
11919
  def __eq__(self, other):
11920
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11921
 
11922
  def __ne__(self, other):
11923
    return not (self == other)
11924
 
11925
class getAmazonTransferredSkuDetails_result:
11926
  """
11927
  Attributes:
11928
   - success
11929
   - wex
11930
  """
11931
 
11932
  thrift_spec = (
11933
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonTransferredSkuDetail, AmazonTransferredSkuDetail.thrift_spec)), None, ), # 0
11934
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11935
  )
11936
 
11937
  def __init__(self, success=None, wex=None,):
11938
    self.success = success
11939
    self.wex = wex
11940
 
11941
  def read(self, iprot):
11942
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11943
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11944
      return
11945
    iprot.readStructBegin()
11946
    while True:
11947
      (fname, ftype, fid) = iprot.readFieldBegin()
11948
      if ftype == TType.STOP:
11949
        break
11950
      if fid == 0:
11951
        if ftype == TType.LIST:
11952
          self.success = []
11953
          (_etype250, _size247) = iprot.readListBegin()
11954
          for _i251 in xrange(_size247):
11955
            _elem252 = AmazonTransferredSkuDetail()
11956
            _elem252.read(iprot)
11957
            self.success.append(_elem252)
11958
          iprot.readListEnd()
11959
        else:
11960
          iprot.skip(ftype)
11961
      elif fid == 1:
11962
        if ftype == TType.STRUCT:
11963
          self.wex = WarehouseServiceException()
11964
          self.wex.read(iprot)
11965
        else:
11966
          iprot.skip(ftype)
11967
      else:
11968
        iprot.skip(ftype)
11969
      iprot.readFieldEnd()
11970
    iprot.readStructEnd()
11971
 
11972
  def write(self, oprot):
11973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11975
      return
11976
    oprot.writeStructBegin('getAmazonTransferredSkuDetails_result')
11977
    if self.success is not None:
11978
      oprot.writeFieldBegin('success', TType.LIST, 0)
11979
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11980
      for iter253 in self.success:
11981
        iter253.write(oprot)
11982
      oprot.writeListEnd()
11983
      oprot.writeFieldEnd()
11984
    if self.wex is not None:
11985
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11986
      self.wex.write(oprot)
11987
      oprot.writeFieldEnd()
11988
    oprot.writeFieldStop()
11989
    oprot.writeStructEnd()
11990
 
11991
  def validate(self):
11992
    return
11993
 
11994
 
11995
  def __repr__(self):
11996
    L = ['%s=%r' % (key, value)
11997
      for key, value in self.__dict__.iteritems()]
11998
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11999
 
12000
  def __eq__(self, other):
12001
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12002
 
12003
  def __ne__(self, other):
12004
    return not (self == other)
12005
 
12006
class getScansforPurchase_args:
12007
  """
12008
  Attributes:
12009
   - purchaseId
12010
   - scanType
12011
  """
12012
 
12013
  thrift_spec = (
12014
    None, # 0
12015
    (1, TType.I64, 'purchaseId', None, None, ), # 1
12016
    (2, TType.I32, 'scanType', None, None, ), # 2
12017
  )
12018
 
12019
  def __init__(self, purchaseId=None, scanType=None,):
12020
    self.purchaseId = purchaseId
12021
    self.scanType = scanType
12022
 
12023
  def read(self, iprot):
12024
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12025
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12026
      return
12027
    iprot.readStructBegin()
12028
    while True:
12029
      (fname, ftype, fid) = iprot.readFieldBegin()
12030
      if ftype == TType.STOP:
12031
        break
12032
      if fid == 1:
12033
        if ftype == TType.I64:
12034
          self.purchaseId = iprot.readI64();
12035
        else:
12036
          iprot.skip(ftype)
12037
      elif fid == 2:
12038
        if ftype == TType.I32:
12039
          self.scanType = iprot.readI32();
12040
        else:
12041
          iprot.skip(ftype)
12042
      else:
12043
        iprot.skip(ftype)
12044
      iprot.readFieldEnd()
12045
    iprot.readStructEnd()
12046
 
12047
  def write(self, oprot):
12048
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12049
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12050
      return
12051
    oprot.writeStructBegin('getScansforPurchase_args')
12052
    if self.purchaseId is not None:
12053
      oprot.writeFieldBegin('purchaseId', TType.I64, 1)
12054
      oprot.writeI64(self.purchaseId)
12055
      oprot.writeFieldEnd()
12056
    if self.scanType is not None:
12057
      oprot.writeFieldBegin('scanType', TType.I32, 2)
12058
      oprot.writeI32(self.scanType)
12059
      oprot.writeFieldEnd()
12060
    oprot.writeFieldStop()
12061
    oprot.writeStructEnd()
12062
 
12063
  def validate(self):
12064
    return
12065
 
12066
 
12067
  def __repr__(self):
12068
    L = ['%s=%r' % (key, value)
12069
      for key, value in self.__dict__.iteritems()]
12070
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12071
 
12072
  def __eq__(self, other):
12073
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12074
 
12075
  def __ne__(self, other):
12076
    return not (self == other)
12077
 
12078
class getScansforPurchase_result:
12079
  """
12080
  Attributes:
12081
   - success
12082
   - wex
12083
  """
12084
 
12085
  thrift_spec = (
12086
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
12087
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12088
  )
12089
 
12090
  def __init__(self, success=None, wex=None,):
12091
    self.success = success
12092
    self.wex = wex
12093
 
12094
  def read(self, iprot):
12095
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12096
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12097
      return
12098
    iprot.readStructBegin()
12099
    while True:
12100
      (fname, ftype, fid) = iprot.readFieldBegin()
12101
      if ftype == TType.STOP:
12102
        break
12103
      if fid == 0:
12104
        if ftype == TType.LIST:
12105
          self.success = []
12106
          (_etype257, _size254) = iprot.readListBegin()
12107
          for _i258 in xrange(_size254):
12108
            _elem259 = Scan()
12109
            _elem259.read(iprot)
12110
            self.success.append(_elem259)
12111
          iprot.readListEnd()
12112
        else:
12113
          iprot.skip(ftype)
12114
      elif fid == 1:
12115
        if ftype == TType.STRUCT:
12116
          self.wex = WarehouseServiceException()
12117
          self.wex.read(iprot)
12118
        else:
12119
          iprot.skip(ftype)
12120
      else:
12121
        iprot.skip(ftype)
12122
      iprot.readFieldEnd()
12123
    iprot.readStructEnd()
12124
 
12125
  def write(self, oprot):
12126
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12127
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12128
      return
12129
    oprot.writeStructBegin('getScansforPurchase_result')
12130
    if self.success is not None:
12131
      oprot.writeFieldBegin('success', TType.LIST, 0)
12132
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12133
      for iter260 in self.success:
12134
        iter260.write(oprot)
12135
      oprot.writeListEnd()
12136
      oprot.writeFieldEnd()
12137
    if self.wex is not None:
12138
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
12139
      self.wex.write(oprot)
12140
      oprot.writeFieldEnd()
12141
    oprot.writeFieldStop()
12142
    oprot.writeStructEnd()
12143
 
12144
  def validate(self):
12145
    return
12146
 
12147
 
12148
  def __repr__(self):
12149
    L = ['%s=%r' % (key, value)
12150
      for key, value in self.__dict__.iteritems()]
12151
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12152
 
12153
  def __eq__(self, other):
12154
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12155
 
12156
  def __ne__(self, other):
12157
    return not (self == other)
10864 manish.sha 12158
 
12159
class getCurrentBadQuantityForItem_args:
12160
  """
12161
  Attributes:
12162
   - itemId
12163
   - currentWarehouseId
12164
   - physicalWarehouseId
12165
  """
12166
 
12167
  thrift_spec = (
12168
    None, # 0
12169
    (1, TType.I64, 'itemId', None, None, ), # 1
12170
    (2, TType.I64, 'currentWarehouseId', None, None, ), # 2
12171
    (3, TType.I64, 'physicalWarehouseId', None, None, ), # 3
12172
  )
12173
 
12174
  def __init__(self, itemId=None, currentWarehouseId=None, physicalWarehouseId=None,):
12175
    self.itemId = itemId
12176
    self.currentWarehouseId = currentWarehouseId
12177
    self.physicalWarehouseId = physicalWarehouseId
12178
 
12179
  def read(self, iprot):
12180
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12181
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12182
      return
12183
    iprot.readStructBegin()
12184
    while True:
12185
      (fname, ftype, fid) = iprot.readFieldBegin()
12186
      if ftype == TType.STOP:
12187
        break
12188
      if fid == 1:
12189
        if ftype == TType.I64:
12190
          self.itemId = iprot.readI64();
12191
        else:
12192
          iprot.skip(ftype)
12193
      elif fid == 2:
12194
        if ftype == TType.I64:
12195
          self.currentWarehouseId = iprot.readI64();
12196
        else:
12197
          iprot.skip(ftype)
12198
      elif fid == 3:
12199
        if ftype == TType.I64:
12200
          self.physicalWarehouseId = iprot.readI64();
12201
        else:
12202
          iprot.skip(ftype)
12203
      else:
12204
        iprot.skip(ftype)
12205
      iprot.readFieldEnd()
12206
    iprot.readStructEnd()
12207
 
12208
  def write(self, oprot):
12209
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12210
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12211
      return
12212
    oprot.writeStructBegin('getCurrentBadQuantityForItem_args')
12213
    if self.itemId is not None:
12214
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12215
      oprot.writeI64(self.itemId)
12216
      oprot.writeFieldEnd()
12217
    if self.currentWarehouseId is not None:
12218
      oprot.writeFieldBegin('currentWarehouseId', TType.I64, 2)
12219
      oprot.writeI64(self.currentWarehouseId)
12220
      oprot.writeFieldEnd()
12221
    if self.physicalWarehouseId is not None:
12222
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 3)
12223
      oprot.writeI64(self.physicalWarehouseId)
12224
      oprot.writeFieldEnd()
12225
    oprot.writeFieldStop()
12226
    oprot.writeStructEnd()
12227
 
12228
  def validate(self):
12229
    return
12230
 
12231
 
12232
  def __repr__(self):
12233
    L = ['%s=%r' % (key, value)
12234
      for key, value in self.__dict__.iteritems()]
12235
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12236
 
12237
  def __eq__(self, other):
12238
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12239
 
12240
  def __ne__(self, other):
12241
    return not (self == other)
12242
 
12243
class getCurrentBadQuantityForItem_result:
12244
  """
12245
  Attributes:
12246
   - success
12247
   - wex
12248
  """
12249
 
12250
  thrift_spec = (
12251
    (0, TType.I64, 'success', None, None, ), # 0
12252
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12253
  )
12254
 
12255
  def __init__(self, success=None, wex=None,):
12256
    self.success = success
12257
    self.wex = wex
12258
 
12259
  def read(self, iprot):
12260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12262
      return
12263
    iprot.readStructBegin()
12264
    while True:
12265
      (fname, ftype, fid) = iprot.readFieldBegin()
12266
      if ftype == TType.STOP:
12267
        break
12268
      if fid == 0:
12269
        if ftype == TType.I64:
12270
          self.success = iprot.readI64();
12271
        else:
12272
          iprot.skip(ftype)
12273
      elif fid == 1:
12274
        if ftype == TType.STRUCT:
12275
          self.wex = WarehouseServiceException()
12276
          self.wex.read(iprot)
12277
        else:
12278
          iprot.skip(ftype)
12279
      else:
12280
        iprot.skip(ftype)
12281
      iprot.readFieldEnd()
12282
    iprot.readStructEnd()
12283
 
12284
  def write(self, oprot):
12285
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12286
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12287
      return
12288
    oprot.writeStructBegin('getCurrentBadQuantityForItem_result')
12289
    if self.success is not None:
12290
      oprot.writeFieldBegin('success', TType.I64, 0)
12291
      oprot.writeI64(self.success)
12292
      oprot.writeFieldEnd()
12293
    if self.wex is not None:
12294
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
12295
      self.wex.write(oprot)
12296
      oprot.writeFieldEnd()
12297
    oprot.writeFieldStop()
12298
    oprot.writeStructEnd()
12299
 
12300
  def validate(self):
12301
    return
12302
 
12303
 
12304
  def __repr__(self):
12305
    L = ['%s=%r' % (key, value)
12306
      for key, value in self.__dict__.iteritems()]
12307
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12308
 
12309
  def __eq__(self, other):
12310
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12311
 
12312
  def __ne__(self, other):
12313
    return not (self == other)
12314
 
12315
class scanForBadPurchaseReturn_args:
12316
  """
12317
  Attributes:
12318
   - saleReturnItems
12319
   - vendorId
12320
   - billingWarehouseId
12321
  """
12322
 
12323
  thrift_spec = (
12324
    None, # 0
12325
    (1, TType.LIST, 'saleReturnItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
12326
    (2, TType.I64, 'vendorId', None, None, ), # 2
12327
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
12328
  )
12329
 
12330
  def __init__(self, saleReturnItems=None, vendorId=None, billingWarehouseId=None,):
12331
    self.saleReturnItems = saleReturnItems
12332
    self.vendorId = vendorId
12333
    self.billingWarehouseId = billingWarehouseId
12334
 
12335
  def read(self, iprot):
12336
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12337
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12338
      return
12339
    iprot.readStructBegin()
12340
    while True:
12341
      (fname, ftype, fid) = iprot.readFieldBegin()
12342
      if ftype == TType.STOP:
12343
        break
12344
      if fid == 1:
12345
        if ftype == TType.LIST:
12346
          self.saleReturnItems = []
12347
          (_etype264, _size261) = iprot.readListBegin()
12348
          for _i265 in xrange(_size261):
12349
            _elem266 = InventoryItem()
12350
            _elem266.read(iprot)
12351
            self.saleReturnItems.append(_elem266)
12352
          iprot.readListEnd()
12353
        else:
12354
          iprot.skip(ftype)
12355
      elif fid == 2:
12356
        if ftype == TType.I64:
12357
          self.vendorId = iprot.readI64();
12358
        else:
12359
          iprot.skip(ftype)
12360
      elif fid == 3:
12361
        if ftype == TType.I64:
12362
          self.billingWarehouseId = iprot.readI64();
12363
        else:
12364
          iprot.skip(ftype)
12365
      else:
12366
        iprot.skip(ftype)
12367
      iprot.readFieldEnd()
12368
    iprot.readStructEnd()
12369
 
12370
  def write(self, oprot):
12371
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12372
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12373
      return
12374
    oprot.writeStructBegin('scanForBadPurchaseReturn_args')
12375
    if self.saleReturnItems is not None:
12376
      oprot.writeFieldBegin('saleReturnItems', TType.LIST, 1)
12377
      oprot.writeListBegin(TType.STRUCT, len(self.saleReturnItems))
12378
      for iter267 in self.saleReturnItems:
12379
        iter267.write(oprot)
12380
      oprot.writeListEnd()
12381
      oprot.writeFieldEnd()
12382
    if self.vendorId is not None:
12383
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
12384
      oprot.writeI64(self.vendorId)
12385
      oprot.writeFieldEnd()
12386
    if self.billingWarehouseId is not None:
12387
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
12388
      oprot.writeI64(self.billingWarehouseId)
12389
      oprot.writeFieldEnd()
12390
    oprot.writeFieldStop()
12391
    oprot.writeStructEnd()
12392
 
12393
  def validate(self):
12394
    return
12395
 
12396
 
12397
  def __repr__(self):
12398
    L = ['%s=%r' % (key, value)
12399
      for key, value in self.__dict__.iteritems()]
12400
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12401
 
12402
  def __eq__(self, other):
12403
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12404
 
12405
  def __ne__(self, other):
12406
    return not (self == other)
12407
 
12408
class scanForBadPurchaseReturn_result:
12409
  """
12410
  Attributes:
12411
   - success
12412
   - ex
12413
  """
12414
 
12415
  thrift_spec = (
12416
    (0, TType.I64, 'success', None, None, ), # 0
12417
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12418
  )
12419
 
12420
  def __init__(self, success=None, ex=None,):
12421
    self.success = success
12422
    self.ex = ex
12423
 
12424
  def read(self, iprot):
12425
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12426
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12427
      return
12428
    iprot.readStructBegin()
12429
    while True:
12430
      (fname, ftype, fid) = iprot.readFieldBegin()
12431
      if ftype == TType.STOP:
12432
        break
12433
      if fid == 0:
12434
        if ftype == TType.I64:
12435
          self.success = iprot.readI64();
12436
        else:
12437
          iprot.skip(ftype)
12438
      elif fid == 1:
12439
        if ftype == TType.STRUCT:
12440
          self.ex = WarehouseServiceException()
12441
          self.ex.read(iprot)
12442
        else:
12443
          iprot.skip(ftype)
12444
      else:
12445
        iprot.skip(ftype)
12446
      iprot.readFieldEnd()
12447
    iprot.readStructEnd()
12448
 
12449
  def write(self, oprot):
12450
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12451
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12452
      return
12453
    oprot.writeStructBegin('scanForBadPurchaseReturn_result')
12454
    if self.success is not None:
12455
      oprot.writeFieldBegin('success', TType.I64, 0)
12456
      oprot.writeI64(self.success)
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)
12479
 
12480
class getItemsInPurchaseReturn_args:
12481
  """
12482
  Attributes:
12483
   - purchaseReturnId
11751 manish.sha 12484
   - type
13504 manish.sha 12485
   - returnTime
10864 manish.sha 12486
  """
12487
 
12488
  thrift_spec = (
12489
    None, # 0
12490
    (1, TType.I64, 'purchaseReturnId', None, None, ), # 1
11751 manish.sha 12491
    (2, TType.I32, 'type', None, None, ), # 2
13504 manish.sha 12492
    (3, TType.STRING, 'returnTime', None, None, ), # 3
10864 manish.sha 12493
  )
12494
 
13504 manish.sha 12495
  def __init__(self, purchaseReturnId=None, type=None, returnTime=None,):
10864 manish.sha 12496
    self.purchaseReturnId = purchaseReturnId
11751 manish.sha 12497
    self.type = type
13504 manish.sha 12498
    self.returnTime = returnTime
10864 manish.sha 12499
 
12500
  def read(self, iprot):
12501
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12502
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12503
      return
12504
    iprot.readStructBegin()
12505
    while True:
12506
      (fname, ftype, fid) = iprot.readFieldBegin()
12507
      if ftype == TType.STOP:
12508
        break
12509
      if fid == 1:
12510
        if ftype == TType.I64:
12511
          self.purchaseReturnId = iprot.readI64();
12512
        else:
12513
          iprot.skip(ftype)
11751 manish.sha 12514
      elif fid == 2:
12515
        if ftype == TType.I32:
12516
          self.type = iprot.readI32();
12517
        else:
12518
          iprot.skip(ftype)
13504 manish.sha 12519
      elif fid == 3:
12520
        if ftype == TType.STRING:
12521
          self.returnTime = iprot.readString();
12522
        else:
12523
          iprot.skip(ftype)
10864 manish.sha 12524
      else:
12525
        iprot.skip(ftype)
12526
      iprot.readFieldEnd()
12527
    iprot.readStructEnd()
12528
 
12529
  def write(self, oprot):
12530
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12531
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12532
      return
12533
    oprot.writeStructBegin('getItemsInPurchaseReturn_args')
12534
    if self.purchaseReturnId is not None:
12535
      oprot.writeFieldBegin('purchaseReturnId', TType.I64, 1)
12536
      oprot.writeI64(self.purchaseReturnId)
12537
      oprot.writeFieldEnd()
11751 manish.sha 12538
    if self.type is not None:
12539
      oprot.writeFieldBegin('type', TType.I32, 2)
12540
      oprot.writeI32(self.type)
12541
      oprot.writeFieldEnd()
13504 manish.sha 12542
    if self.returnTime is not None:
12543
      oprot.writeFieldBegin('returnTime', TType.STRING, 3)
12544
      oprot.writeString(self.returnTime)
12545
      oprot.writeFieldEnd()
10864 manish.sha 12546
    oprot.writeFieldStop()
12547
    oprot.writeStructEnd()
12548
 
12549
  def validate(self):
12550
    return
12551
 
12552
 
12553
  def __repr__(self):
12554
    L = ['%s=%r' % (key, value)
12555
      for key, value in self.__dict__.iteritems()]
12556
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12557
 
12558
  def __eq__(self, other):
12559
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12560
 
12561
  def __ne__(self, other):
12562
    return not (self == other)
12563
 
12564
class getItemsInPurchaseReturn_result:
12565
  """
12566
  Attributes:
12567
   - success
12568
   - ex
12569
  """
12570
 
12571
  thrift_spec = (
12572
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
12573
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12574
  )
12575
 
12576
  def __init__(self, success=None, ex=None,):
12577
    self.success = success
12578
    self.ex = ex
12579
 
12580
  def read(self, iprot):
12581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12583
      return
12584
    iprot.readStructBegin()
12585
    while True:
12586
      (fname, ftype, fid) = iprot.readFieldBegin()
12587
      if ftype == TType.STOP:
12588
        break
12589
      if fid == 0:
12590
        if ftype == TType.MAP:
12591
          self.success = {}
12592
          (_ktype269, _vtype270, _size268 ) = iprot.readMapBegin() 
12593
          for _i272 in xrange(_size268):
12594
            _key273 = iprot.readI64();
12595
            _val274 = iprot.readI64();
12596
            self.success[_key273] = _val274
12597
          iprot.readMapEnd()
12598
        else:
12599
          iprot.skip(ftype)
12600
      elif fid == 1:
12601
        if ftype == TType.STRUCT:
12602
          self.ex = WarehouseServiceException()
12603
          self.ex.read(iprot)
12604
        else:
12605
          iprot.skip(ftype)
12606
      else:
12607
        iprot.skip(ftype)
12608
      iprot.readFieldEnd()
12609
    iprot.readStructEnd()
12610
 
12611
  def write(self, oprot):
12612
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12613
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12614
      return
12615
    oprot.writeStructBegin('getItemsInPurchaseReturn_result')
12616
    if self.success is not None:
12617
      oprot.writeFieldBegin('success', TType.MAP, 0)
12618
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
12619
      for kiter275,viter276 in self.success.items():
12620
        oprot.writeI64(kiter275)
12621
        oprot.writeI64(viter276)
12622
      oprot.writeMapEnd()
12623
      oprot.writeFieldEnd()
12624
    if self.ex is not None:
12625
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12626
      self.ex.write(oprot)
12627
      oprot.writeFieldEnd()
12628
    oprot.writeFieldStop()
12629
    oprot.writeStructEnd()
12630
 
12631
  def validate(self):
12632
    return
12633
 
12634
 
12635
  def __repr__(self):
12636
    L = ['%s=%r' % (key, value)
12637
      for key, value in self.__dict__.iteritems()]
12638
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12639
 
12640
  def __eq__(self, other):
12641
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12642
 
12643
  def __ne__(self, other):
12644
    return not (self == other)
10886 manish.sha 12645
 
12646
class getScansForInventoryItem_args:
12647
  """
12648
  Attributes:
12649
   - inventoryItemId
12650
   - type
12651
  """
12652
 
12653
  thrift_spec = (
12654
    None, # 0
12655
    (1, TType.I64, 'inventoryItemId', None, None, ), # 1
12656
    (2, TType.I32, 'type', None, None, ), # 2
12657
  )
12658
 
12659
  def __init__(self, inventoryItemId=None, type=None,):
12660
    self.inventoryItemId = inventoryItemId
12661
    self.type = type
12662
 
12663
  def read(self, iprot):
12664
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12665
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12666
      return
12667
    iprot.readStructBegin()
12668
    while True:
12669
      (fname, ftype, fid) = iprot.readFieldBegin()
12670
      if ftype == TType.STOP:
12671
        break
12672
      if fid == 1:
12673
        if ftype == TType.I64:
12674
          self.inventoryItemId = iprot.readI64();
12675
        else:
12676
          iprot.skip(ftype)
12677
      elif fid == 2:
12678
        if ftype == TType.I32:
12679
          self.type = iprot.readI32();
12680
        else:
12681
          iprot.skip(ftype)
12682
      else:
12683
        iprot.skip(ftype)
12684
      iprot.readFieldEnd()
12685
    iprot.readStructEnd()
12686
 
12687
  def write(self, oprot):
12688
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12689
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12690
      return
12691
    oprot.writeStructBegin('getScansForInventoryItem_args')
12692
    if self.inventoryItemId is not None:
12693
      oprot.writeFieldBegin('inventoryItemId', TType.I64, 1)
12694
      oprot.writeI64(self.inventoryItemId)
12695
      oprot.writeFieldEnd()
12696
    if self.type is not None:
12697
      oprot.writeFieldBegin('type', TType.I32, 2)
12698
      oprot.writeI32(self.type)
12699
      oprot.writeFieldEnd()
12700
    oprot.writeFieldStop()
12701
    oprot.writeStructEnd()
12702
 
12703
  def validate(self):
12704
    return
12705
 
12706
 
12707
  def __repr__(self):
12708
    L = ['%s=%r' % (key, value)
12709
      for key, value in self.__dict__.iteritems()]
12710
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12711
 
12712
  def __eq__(self, other):
12713
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12714
 
12715
  def __ne__(self, other):
12716
    return not (self == other)
12717
 
12718
class getScansForInventoryItem_result:
12719
  """
12720
  Attributes:
12721
   - success
12722
   - ex
12723
  """
12724
 
12725
  thrift_spec = (
12726
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
12727
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12728
  )
12729
 
12730
  def __init__(self, success=None, ex=None,):
12731
    self.success = success
12732
    self.ex = ex
12733
 
12734
  def read(self, iprot):
12735
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12736
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12737
      return
12738
    iprot.readStructBegin()
12739
    while True:
12740
      (fname, ftype, fid) = iprot.readFieldBegin()
12741
      if ftype == TType.STOP:
12742
        break
12743
      if fid == 0:
12744
        if ftype == TType.LIST:
12745
          self.success = []
12746
          (_etype280, _size277) = iprot.readListBegin()
12747
          for _i281 in xrange(_size277):
12748
            _elem282 = Scan()
12749
            _elem282.read(iprot)
12750
            self.success.append(_elem282)
12751
          iprot.readListEnd()
12752
        else:
12753
          iprot.skip(ftype)
12754
      elif fid == 1:
12755
        if ftype == TType.STRUCT:
12756
          self.ex = WarehouseServiceException()
12757
          self.ex.read(iprot)
12758
        else:
12759
          iprot.skip(ftype)
12760
      else:
12761
        iprot.skip(ftype)
12762
      iprot.readFieldEnd()
12763
    iprot.readStructEnd()
12764
 
12765
  def write(self, oprot):
12766
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12767
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12768
      return
12769
    oprot.writeStructBegin('getScansForInventoryItem_result')
12770
    if self.success is not None:
12771
      oprot.writeFieldBegin('success', TType.LIST, 0)
12772
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12773
      for iter283 in self.success:
12774
        iter283.write(oprot)
12775
      oprot.writeListEnd()
12776
      oprot.writeFieldEnd()
12777
    if self.ex is not None:
12778
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12779
      self.ex.write(oprot)
12780
      oprot.writeFieldEnd()
12781
    oprot.writeFieldStop()
12782
    oprot.writeStructEnd()
12783
 
12784
  def validate(self):
12785
    return
12786
 
12787
 
12788
  def __repr__(self):
12789
    L = ['%s=%r' % (key, value)
12790
      for key, value in self.__dict__.iteritems()]
12791
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12792
 
12793
  def __eq__(self, other):
12794
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12795
 
12796
  def __ne__(self, other):
12797
    return not (self == other)
12531 manish.sha 12798
 
12799
class checkGrnImeiStatus_args:
12800
  """
12801
  Attributes:
12802
   - imeiNos
12803
  """
12804
 
12805
  thrift_spec = (
12806
    None, # 0
12807
    (1, TType.LIST, 'imeiNos', (TType.STRING,None), None, ), # 1
12808
  )
12809
 
12810
  def __init__(self, imeiNos=None,):
12811
    self.imeiNos = imeiNos
12812
 
12813
  def read(self, iprot):
12814
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12815
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12816
      return
12817
    iprot.readStructBegin()
12818
    while True:
12819
      (fname, ftype, fid) = iprot.readFieldBegin()
12820
      if ftype == TType.STOP:
12821
        break
12822
      if fid == 1:
12823
        if ftype == TType.LIST:
12824
          self.imeiNos = []
12825
          (_etype287, _size284) = iprot.readListBegin()
12826
          for _i288 in xrange(_size284):
12827
            _elem289 = iprot.readString();
12828
            self.imeiNos.append(_elem289)
12829
          iprot.readListEnd()
12830
        else:
12831
          iprot.skip(ftype)
12832
      else:
12833
        iprot.skip(ftype)
12834
      iprot.readFieldEnd()
12835
    iprot.readStructEnd()
12836
 
12837
  def write(self, oprot):
12838
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12839
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12840
      return
12841
    oprot.writeStructBegin('checkGrnImeiStatus_args')
12842
    if self.imeiNos is not None:
12843
      oprot.writeFieldBegin('imeiNos', TType.LIST, 1)
12844
      oprot.writeListBegin(TType.STRING, len(self.imeiNos))
12845
      for iter290 in self.imeiNos:
12846
        oprot.writeString(iter290)
12847
      oprot.writeListEnd()
12848
      oprot.writeFieldEnd()
12849
    oprot.writeFieldStop()
12850
    oprot.writeStructEnd()
12851
 
12852
  def validate(self):
12853
    return
12854
 
12855
 
12856
  def __repr__(self):
12857
    L = ['%s=%r' % (key, value)
12858
      for key, value in self.__dict__.iteritems()]
12859
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12860
 
12861
  def __eq__(self, other):
12862
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12863
 
12864
  def __ne__(self, other):
12865
    return not (self == other)
12866
 
12867
class checkGrnImeiStatus_result:
12868
  """
12869
  Attributes:
12870
   - success
12871
   - ex
12872
  """
12873
 
12874
  thrift_spec = (
12875
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
12876
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12877
  )
12878
 
12879
  def __init__(self, success=None, ex=None,):
12880
    self.success = success
12881
    self.ex = ex
12882
 
12883
  def read(self, iprot):
12884
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12885
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12886
      return
12887
    iprot.readStructBegin()
12888
    while True:
12889
      (fname, ftype, fid) = iprot.readFieldBegin()
12890
      if ftype == TType.STOP:
12891
        break
12892
      if fid == 0:
12893
        if ftype == TType.LIST:
12894
          self.success = []
12895
          (_etype294, _size291) = iprot.readListBegin()
12896
          for _i295 in xrange(_size291):
12897
            _elem296 = iprot.readString();
12898
            self.success.append(_elem296)
12899
          iprot.readListEnd()
12900
        else:
12901
          iprot.skip(ftype)
12902
      elif fid == 1:
12903
        if ftype == TType.STRUCT:
12904
          self.ex = WarehouseServiceException()
12905
          self.ex.read(iprot)
12906
        else:
12907
          iprot.skip(ftype)
12908
      else:
12909
        iprot.skip(ftype)
12910
      iprot.readFieldEnd()
12911
    iprot.readStructEnd()
12912
 
12913
  def write(self, oprot):
12914
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12915
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12916
      return
12917
    oprot.writeStructBegin('checkGrnImeiStatus_result')
12918
    if self.success is not None:
12919
      oprot.writeFieldBegin('success', TType.LIST, 0)
12920
      oprot.writeListBegin(TType.STRING, len(self.success))
12921
      for iter297 in self.success:
12922
        oprot.writeString(iter297)
12923
      oprot.writeListEnd()
12924
      oprot.writeFieldEnd()
12925
    if self.ex is not None:
12926
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12927
      self.ex.write(oprot)
12928
      oprot.writeFieldEnd()
12929
    oprot.writeFieldStop()
12930
    oprot.writeStructEnd()
12931
 
12932
  def validate(self):
12933
    return
12934
 
12935
 
12936
  def __repr__(self):
12937
    L = ['%s=%r' % (key, value)
12938
      for key, value in self.__dict__.iteritems()]
12939
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12940
 
12941
  def __eq__(self, other):
12942
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12943
 
12944
  def __ne__(self, other):
12945
    return not (self == other)
12800 manish.sha 12946
 
12947
class getInventoryAgeConsideredItems_args:
12948
  """
12949
  Attributes:
12950
   - itemId
12951
  """
12952
 
12953
  thrift_spec = (
12954
    None, # 0
12955
    (1, TType.I64, 'itemId', None, None, ), # 1
12956
  )
12957
 
12958
  def __init__(self, itemId=None,):
12959
    self.itemId = itemId
12960
 
12961
  def read(self, iprot):
12962
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12963
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12964
      return
12965
    iprot.readStructBegin()
12966
    while True:
12967
      (fname, ftype, fid) = iprot.readFieldBegin()
12968
      if ftype == TType.STOP:
12969
        break
12970
      if fid == 1:
12971
        if ftype == TType.I64:
12972
          self.itemId = iprot.readI64();
12973
        else:
12974
          iprot.skip(ftype)
12975
      else:
12976
        iprot.skip(ftype)
12977
      iprot.readFieldEnd()
12978
    iprot.readStructEnd()
12979
 
12980
  def write(self, oprot):
12981
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12982
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12983
      return
12984
    oprot.writeStructBegin('getInventoryAgeConsideredItems_args')
12985
    if self.itemId is not None:
12986
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12987
      oprot.writeI64(self.itemId)
12988
      oprot.writeFieldEnd()
12989
    oprot.writeFieldStop()
12990
    oprot.writeStructEnd()
12991
 
12992
  def validate(self):
12993
    return
12994
 
12995
 
12996
  def __repr__(self):
12997
    L = ['%s=%r' % (key, value)
12998
      for key, value in self.__dict__.iteritems()]
12999
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13000
 
13001
  def __eq__(self, other):
13002
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13003
 
13004
  def __ne__(self, other):
13005
    return not (self == other)
13006
 
13007
class getInventoryAgeConsideredItems_result:
13008
  """
13009
  Attributes:
13010
   - success
13011
   - ex
13012
  """
13013
 
13014
  thrift_spec = (
13015
    (0, TType.LIST, 'success', (TType.STRUCT,(InvAgeConsiderItems, InvAgeConsiderItems.thrift_spec)), None, ), # 0
13016
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
13017
  )
13018
 
13019
  def __init__(self, success=None, ex=None,):
13020
    self.success = success
13021
    self.ex = ex
13022
 
13023
  def read(self, iprot):
13024
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13025
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13026
      return
13027
    iprot.readStructBegin()
13028
    while True:
13029
      (fname, ftype, fid) = iprot.readFieldBegin()
13030
      if ftype == TType.STOP:
13031
        break
13032
      if fid == 0:
13033
        if ftype == TType.LIST:
13034
          self.success = []
13035
          (_etype301, _size298) = iprot.readListBegin()
13036
          for _i302 in xrange(_size298):
13037
            _elem303 = InvAgeConsiderItems()
13038
            _elem303.read(iprot)
13039
            self.success.append(_elem303)
13040
          iprot.readListEnd()
13041
        else:
13042
          iprot.skip(ftype)
13043
      elif fid == 1:
13044
        if ftype == TType.STRUCT:
13045
          self.ex = WarehouseServiceException()
13046
          self.ex.read(iprot)
13047
        else:
13048
          iprot.skip(ftype)
13049
      else:
13050
        iprot.skip(ftype)
13051
      iprot.readFieldEnd()
13052
    iprot.readStructEnd()
13053
 
13054
  def write(self, oprot):
13055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13057
      return
13058
    oprot.writeStructBegin('getInventoryAgeConsideredItems_result')
13059
    if self.success is not None:
13060
      oprot.writeFieldBegin('success', TType.LIST, 0)
13061
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13062
      for iter304 in self.success:
13063
        iter304.write(oprot)
13064
      oprot.writeListEnd()
13065
      oprot.writeFieldEnd()
13066
    if self.ex is not None:
13067
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
13068
      self.ex.write(oprot)
13069
      oprot.writeFieldEnd()
13070
    oprot.writeFieldStop()
13071
    oprot.writeStructEnd()
13072
 
13073
  def validate(self):
13074
    return
13075
 
13076
 
13077
  def __repr__(self):
13078
    L = ['%s=%r' % (key, value)
13079
      for key, value in self.__dict__.iteritems()]
13080
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13081
 
13082
  def __eq__(self, other):
13083
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13084
 
13085
  def __ne__(self, other):
13086
    return not (self == other)
13529 manish.sha 13087
 
13088
class getCompleteMovementForThirdPartyWarehouse_args:
13089
  """
13090
  Attributes:
13091
   - startDate
13092
   - endDate
13093
  """
13094
 
13095
  thrift_spec = (
13096
    None, # 0
13097
    (1, TType.I64, 'startDate', None, None, ), # 1
13098
    (2, TType.I64, 'endDate', None, None, ), # 2
13099
  )
13100
 
13101
  def __init__(self, startDate=None, endDate=None,):
13102
    self.startDate = startDate
13103
    self.endDate = endDate
13104
 
13105
  def read(self, iprot):
13106
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13107
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13108
      return
13109
    iprot.readStructBegin()
13110
    while True:
13111
      (fname, ftype, fid) = iprot.readFieldBegin()
13112
      if ftype == TType.STOP:
13113
        break
13114
      if fid == 1:
13115
        if ftype == TType.I64:
13116
          self.startDate = iprot.readI64();
13117
        else:
13118
          iprot.skip(ftype)
13119
      elif fid == 2:
13120
        if ftype == TType.I64:
13121
          self.endDate = iprot.readI64();
13122
        else:
13123
          iprot.skip(ftype)
13124
      else:
13125
        iprot.skip(ftype)
13126
      iprot.readFieldEnd()
13127
    iprot.readStructEnd()
13128
 
13129
  def write(self, oprot):
13130
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13131
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13132
      return
13133
    oprot.writeStructBegin('getCompleteMovementForThirdPartyWarehouse_args')
13134
    if self.startDate is not None:
13135
      oprot.writeFieldBegin('startDate', TType.I64, 1)
13136
      oprot.writeI64(self.startDate)
13137
      oprot.writeFieldEnd()
13138
    if self.endDate is not None:
13139
      oprot.writeFieldBegin('endDate', TType.I64, 2)
13140
      oprot.writeI64(self.endDate)
13141
      oprot.writeFieldEnd()
13142
    oprot.writeFieldStop()
13143
    oprot.writeStructEnd()
13144
 
13145
  def validate(self):
13146
    return
13147
 
13148
 
13149
  def __repr__(self):
13150
    L = ['%s=%r' % (key, value)
13151
      for key, value in self.__dict__.iteritems()]
13152
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13153
 
13154
  def __eq__(self, other):
13155
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13156
 
13157
  def __ne__(self, other):
13158
    return not (self == other)
13159
 
13160
class getCompleteMovementForThirdPartyWarehouse_result:
13161
  """
13162
  Attributes:
13163
   - success
13164
  """
13165
 
13166
  thrift_spec = (
13167
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
13168
  )
13169
 
13170
  def __init__(self, success=None,):
13171
    self.success = success
13172
 
13173
  def read(self, iprot):
13174
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13175
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13176
      return
13177
    iprot.readStructBegin()
13178
    while True:
13179
      (fname, ftype, fid) = iprot.readFieldBegin()
13180
      if ftype == TType.STOP:
13181
        break
13182
      if fid == 0:
13183
        if ftype == TType.LIST:
13184
          self.success = []
13185
          (_etype308, _size305) = iprot.readListBegin()
13186
          for _i309 in xrange(_size305):
13187
            _elem310 = InventoryMovement()
13188
            _elem310.read(iprot)
13189
            self.success.append(_elem310)
13190
          iprot.readListEnd()
13191
        else:
13192
          iprot.skip(ftype)
13193
      else:
13194
        iprot.skip(ftype)
13195
      iprot.readFieldEnd()
13196
    iprot.readStructEnd()
13197
 
13198
  def write(self, oprot):
13199
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13200
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13201
      return
13202
    oprot.writeStructBegin('getCompleteMovementForThirdPartyWarehouse_result')
13203
    if self.success is not None:
13204
      oprot.writeFieldBegin('success', TType.LIST, 0)
13205
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13206
      for iter311 in self.success:
13207
        iter311.write(oprot)
13208
      oprot.writeListEnd()
13209
      oprot.writeFieldEnd()
13210
    oprot.writeFieldStop()
13211
    oprot.writeStructEnd()
13212
 
13213
  def validate(self):
13214
    return
13215
 
13216
 
13217
  def __repr__(self):
13218
    L = ['%s=%r' % (key, value)
13219
      for key, value in self.__dict__.iteritems()]
13220
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13221
 
13222
  def __eq__(self, other):
13223
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13224
 
13225
  def __ne__(self, other):
13226
    return not (self == other)
14491 manish.sha 13227
 
13228
class getAllDoaOutInventoryItems_args:
13229
 
13230
  thrift_spec = (
13231
  )
13232
 
13233
  def read(self, iprot):
13234
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13235
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13236
      return
13237
    iprot.readStructBegin()
13238
    while True:
13239
      (fname, ftype, fid) = iprot.readFieldBegin()
13240
      if ftype == TType.STOP:
13241
        break
13242
      else:
13243
        iprot.skip(ftype)
13244
      iprot.readFieldEnd()
13245
    iprot.readStructEnd()
13246
 
13247
  def write(self, oprot):
13248
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13249
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13250
      return
13251
    oprot.writeStructBegin('getAllDoaOutInventoryItems_args')
13252
    oprot.writeFieldStop()
13253
    oprot.writeStructEnd()
13254
 
13255
  def validate(self):
13256
    return
13257
 
13258
 
13259
  def __repr__(self):
13260
    L = ['%s=%r' % (key, value)
13261
      for key, value in self.__dict__.iteritems()]
13262
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13263
 
13264
  def __eq__(self, other):
13265
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13266
 
13267
  def __ne__(self, other):
13268
    return not (self == other)
13269
 
13270
class getAllDoaOutInventoryItems_result:
13271
  """
13272
  Attributes:
13273
   - success
13274
   - ex
13275
  """
13276
 
13277
  thrift_spec = (
13278
    (0, TType.LIST, 'success', (TType.STRUCT,(DoaOutInventoryItem, DoaOutInventoryItem.thrift_spec)), None, ), # 0
13279
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
13280
  )
13281
 
13282
  def __init__(self, success=None, ex=None,):
13283
    self.success = success
13284
    self.ex = ex
13285
 
13286
  def read(self, iprot):
13287
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13288
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13289
      return
13290
    iprot.readStructBegin()
13291
    while True:
13292
      (fname, ftype, fid) = iprot.readFieldBegin()
13293
      if ftype == TType.STOP:
13294
        break
13295
      if fid == 0:
13296
        if ftype == TType.LIST:
13297
          self.success = []
13298
          (_etype315, _size312) = iprot.readListBegin()
13299
          for _i316 in xrange(_size312):
13300
            _elem317 = DoaOutInventoryItem()
13301
            _elem317.read(iprot)
13302
            self.success.append(_elem317)
13303
          iprot.readListEnd()
13304
        else:
13305
          iprot.skip(ftype)
13306
      elif fid == 1:
13307
        if ftype == TType.STRUCT:
13308
          self.ex = WarehouseServiceException()
13309
          self.ex.read(iprot)
13310
        else:
13311
          iprot.skip(ftype)
13312
      else:
13313
        iprot.skip(ftype)
13314
      iprot.readFieldEnd()
13315
    iprot.readStructEnd()
13316
 
13317
  def write(self, oprot):
13318
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13319
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13320
      return
13321
    oprot.writeStructBegin('getAllDoaOutInventoryItems_result')
13322
    if self.success is not None:
13323
      oprot.writeFieldBegin('success', TType.LIST, 0)
13324
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13325
      for iter318 in self.success:
13326
        iter318.write(oprot)
13327
      oprot.writeListEnd()
13328
      oprot.writeFieldEnd()
13329
    if self.ex is not None:
13330
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
13331
      self.ex.write(oprot)
13332
      oprot.writeFieldEnd()
13333
    oprot.writeFieldStop()
13334
    oprot.writeStructEnd()
13335
 
13336
  def validate(self):
13337
    return
13338
 
13339
 
13340
  def __repr__(self):
13341
    L = ['%s=%r' % (key, value)
13342
      for key, value in self.__dict__.iteritems()]
13343
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13344
 
13345
  def __eq__(self, other):
13346
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13347
 
13348
  def __ne__(self, other):
13349
    return not (self == other)