Subversion Repositories SmartDukaan

Rev

Rev 10864 | Rev 11751 | 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
 
578
  def getItemsInPurchaseReturn(self, purchaseReturnId):
579
    """
580
    Parameters:
581
     - purchaseReturnId
582
    """
583
    pass
584
 
10886 manish.sha 585
  def getScansForInventoryItem(self, inventoryItemId, type):
586
    """
587
    Parameters:
588
     - inventoryItemId
589
     - type
590
    """
591
    pass
10864 manish.sha 592
 
10886 manish.sha 593
 
3376 rajveer 594
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2821 chandransh 595
  def __init__(self, iprot, oprot=None):
3376 rajveer 596
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2821 chandransh 597
 
4501 mandeep.dh 598
  def getInventoryItem(self, serialNumber):
2832 chandransh 599
    """
4501 mandeep.dh 600
    Retrieves serialized inventory item given a serial number
3431 rajveer 601
 
2832 chandransh 602
    Parameters:
4501 mandeep.dh 603
     - serialNumber
2832 chandransh 604
    """
4501 mandeep.dh 605
    self.send_getInventoryItem(serialNumber)
606
    return self.recv_getInventoryItem()
2832 chandransh 607
 
4501 mandeep.dh 608
  def send_getInventoryItem(self, serialNumber):
609
    self._oprot.writeMessageBegin('getInventoryItem', TMessageType.CALL, self._seqid)
610
    args = getInventoryItem_args()
611
    args.serialNumber = serialNumber
2832 chandransh 612
    args.write(self._oprot)
613
    self._oprot.writeMessageEnd()
614
    self._oprot.trans.flush()
615
 
4501 mandeep.dh 616
  def recv_getInventoryItem(self, ):
2832 chandransh 617
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
618
    if mtype == TMessageType.EXCEPTION:
619
      x = TApplicationException()
620
      x.read(self._iprot)
621
      self._iprot.readMessageEnd()
622
      raise x
4501 mandeep.dh 623
    result = getInventoryItem_result()
2832 chandransh 624
    result.read(self._iprot)
625
    self._iprot.readMessageEnd()
3431 rajveer 626
    if result.success is not None:
2832 chandransh 627
      return result.success
4541 mandeep.dh 628
    if result.wex is not None:
629
      raise result.wex
4501 mandeep.dh 630
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
2832 chandransh 631
 
8565 amar.kumar 632
  def getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId):
2821 chandransh 633
    """
5361 mandeep.dh 634
    Retrieves non-serialized inventory item from a given supplier
3431 rajveer 635
 
2821 chandransh 636
    Parameters:
5530 mandeep.dh 637
     - itemNumber
4501 mandeep.dh 638
     - itemId
5530 mandeep.dh 639
     - fulfilmentWarehouseId
8565 amar.kumar 640
     - billingWarehouseId
2821 chandransh 641
    """
8565 amar.kumar 642
    self.send_getNonSeralizedInventoryItem(itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId)
5361 mandeep.dh 643
    return self.recv_getNonSeralizedInventoryItem()
2821 chandransh 644
 
8565 amar.kumar 645
  def send_getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId):
5361 mandeep.dh 646
    self._oprot.writeMessageBegin('getNonSeralizedInventoryItem', TMessageType.CALL, self._seqid)
647
    args = getNonSeralizedInventoryItem_args()
5530 mandeep.dh 648
    args.itemNumber = itemNumber
4501 mandeep.dh 649
    args.itemId = itemId
5530 mandeep.dh 650
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 651
    args.billingWarehouseId = billingWarehouseId
2821 chandransh 652
    args.write(self._oprot)
653
    self._oprot.writeMessageEnd()
654
    self._oprot.trans.flush()
655
 
5361 mandeep.dh 656
  def recv_getNonSeralizedInventoryItem(self, ):
2821 chandransh 657
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
658
    if mtype == TMessageType.EXCEPTION:
659
      x = TApplicationException()
660
      x.read(self._iprot)
661
      self._iprot.readMessageEnd()
662
      raise x
5361 mandeep.dh 663
    result = getNonSeralizedInventoryItem_result()
2821 chandransh 664
    result.read(self._iprot)
665
    self._iprot.readMessageEnd()
3431 rajveer 666
    if result.success is not None:
2821 chandransh 667
      return result.success
5361 mandeep.dh 668
    if result.wex is not None:
669
      raise result.wex
670
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
2821 chandransh 671
 
7410 amar.kumar 672
  def scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
3383 chandransh 673
    """
4501 mandeep.dh 674
    Scan non-serialized items.
3431 rajveer 675
 
2821 chandransh 676
    Parameters:
5361 mandeep.dh 677
     - inventoryItem
2821 chandransh 678
     - type
4501 mandeep.dh 679
     - quantity
5361 mandeep.dh 680
     - billingWarehouseId
7410 amar.kumar 681
     - transferLotId
2821 chandransh 682
    """
7410 amar.kumar 683
    self.send_scan(inventoryItem, type, quantity, billingWarehouseId, transferLotId)
4501 mandeep.dh 684
    self.recv_scan()
2821 chandransh 685
 
7410 amar.kumar 686
  def send_scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):
4501 mandeep.dh 687
    self._oprot.writeMessageBegin('scan', TMessageType.CALL, self._seqid)
688
    args = scan_args()
5361 mandeep.dh 689
    args.inventoryItem = inventoryItem
2821 chandransh 690
    args.type = type
4501 mandeep.dh 691
    args.quantity = quantity
5361 mandeep.dh 692
    args.billingWarehouseId = billingWarehouseId
7410 amar.kumar 693
    args.transferLotId = transferLotId
2821 chandransh 694
    args.write(self._oprot)
695
    self._oprot.writeMessageEnd()
696
    self._oprot.trans.flush()
697
 
4501 mandeep.dh 698
  def recv_scan(self, ):
2821 chandransh 699
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
700
    if mtype == TMessageType.EXCEPTION:
701
      x = TApplicationException()
702
      x.read(self._iprot)
703
      self._iprot.readMessageEnd()
704
      raise x
4501 mandeep.dh 705
    result = scan_result()
2821 chandransh 706
    result.read(self._iprot)
707
    self._iprot.readMessageEnd()
3431 rajveer 708
    if result.wex is not None:
2821 chandransh 709
      raise result.wex
710
    return
711
 
10489 amar.kumar 712
  def genericScan(self, inventoryItem, scan):
713
    """
714
    Scan non-serialized items.
715
 
716
    Parameters:
717
     - inventoryItem
718
     - scan
719
    """
720
    self.send_genericScan(inventoryItem, scan)
721
    self.recv_genericScan()
722
 
723
  def send_genericScan(self, inventoryItem, scan):
724
    self._oprot.writeMessageBegin('genericScan', TMessageType.CALL, self._seqid)
725
    args = genericScan_args()
726
    args.inventoryItem = inventoryItem
727
    args.scan = scan
728
    args.write(self._oprot)
729
    self._oprot.writeMessageEnd()
730
    self._oprot.trans.flush()
731
 
732
  def recv_genericScan(self, ):
733
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
734
    if mtype == TMessageType.EXCEPTION:
735
      x = TApplicationException()
736
      x.read(self._iprot)
737
      self._iprot.readMessageEnd()
738
      raise x
739
    result = genericScan_result()
740
    result.read(self._iprot)
741
    self._iprot.readMessageEnd()
742
    if result.wex is not None:
743
      raise result.wex
744
    return
745
 
5110 mandeep.dh 746
  def scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
2821 chandransh 747
    """
4501 mandeep.dh 748
    Scan serialized items linked with an order. Returns its price.
3431 rajveer 749
 
2821 chandransh 750
    Parameters:
4555 mandeep.dh 751
     - serialNumber
2821 chandransh 752
     - type
4501 mandeep.dh 753
     - orderId
5110 mandeep.dh 754
     - fulfilmentWarehouseId
755
     - quantity
756
     - billingWarehouseId
2821 chandransh 757
    """
5110 mandeep.dh 758
    self.send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId)
4501 mandeep.dh 759
    return self.recv_scanSerializedItemForOrder()
2821 chandransh 760
 
5110 mandeep.dh 761
  def send_scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
4501 mandeep.dh 762
    self._oprot.writeMessageBegin('scanSerializedItemForOrder', TMessageType.CALL, self._seqid)
763
    args = scanSerializedItemForOrder_args()
4555 mandeep.dh 764
    args.serialNumber = serialNumber
2821 chandransh 765
    args.type = type
4501 mandeep.dh 766
    args.orderId = orderId
5110 mandeep.dh 767
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
768
    args.quantity = quantity
769
    args.billingWarehouseId = billingWarehouseId
2821 chandransh 770
    args.write(self._oprot)
771
    self._oprot.writeMessageEnd()
772
    self._oprot.trans.flush()
773
 
4501 mandeep.dh 774
  def recv_scanSerializedItemForOrder(self, ):
2821 chandransh 775
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
776
    if mtype == TMessageType.EXCEPTION:
777
      x = TApplicationException()
778
      x.read(self._iprot)
779
      self._iprot.readMessageEnd()
780
      raise x
4501 mandeep.dh 781
    result = scanSerializedItemForOrder_result()
2821 chandransh 782
    result.read(self._iprot)
783
    self._iprot.readMessageEnd()
4501 mandeep.dh 784
    if result.success is not None:
785
      return result.success
3431 rajveer 786
    if result.wex is not None:
2821 chandransh 787
      raise result.wex
4501 mandeep.dh 788
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
789
 
5361 mandeep.dh 790
  def scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
4501 mandeep.dh 791
    """
792
    Scan non-serialized items linked with an order.
793
 
794
    Parameters:
5361 mandeep.dh 795
     - inventoryItem
4501 mandeep.dh 796
     - type
797
     - quantity
798
     - orderId
5110 mandeep.dh 799
     - fulfilmentWarehouseId
5361 mandeep.dh 800
     - billingWarehouseId
4501 mandeep.dh 801
    """
5361 mandeep.dh 802
    self.send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId)
803
    return self.recv_scanForOrder()
4501 mandeep.dh 804
 
5361 mandeep.dh 805
  def send_scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
4501 mandeep.dh 806
    self._oprot.writeMessageBegin('scanForOrder', TMessageType.CALL, self._seqid)
807
    args = scanForOrder_args()
5361 mandeep.dh 808
    args.inventoryItem = inventoryItem
4501 mandeep.dh 809
    args.type = type
810
    args.quantity = quantity
811
    args.orderId = orderId
5110 mandeep.dh 812
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
5361 mandeep.dh 813
    args.billingWarehouseId = billingWarehouseId
4501 mandeep.dh 814
    args.write(self._oprot)
815
    self._oprot.writeMessageEnd()
816
    self._oprot.trans.flush()
817
 
818
  def recv_scanForOrder(self, ):
819
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
820
    if mtype == TMessageType.EXCEPTION:
821
      x = TApplicationException()
822
      x.read(self._iprot)
823
      self._iprot.readMessageEnd()
824
      raise x
825
    result = scanForOrder_result()
826
    result.read(self._iprot)
827
    self._iprot.readMessageEnd()
5361 mandeep.dh 828
    if result.success is not None:
829
      return result.success
4501 mandeep.dh 830
    if result.wex is not None:
831
      raise result.wex
5361 mandeep.dh 832
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");
2821 chandransh 833
 
4501 mandeep.dh 834
  def createItemNumberMapping(self, itemNumber, itemId):
835
    """
836
    Created item number to item id mapping
2821 chandransh 837
 
4501 mandeep.dh 838
    Parameters:
839
     - itemNumber
840
     - itemId
841
    """
842
    self.send_createItemNumberMapping(itemNumber, itemId)
843
    self.recv_createItemNumberMapping()
844
 
845
  def send_createItemNumberMapping(self, itemNumber, itemId):
846
    self._oprot.writeMessageBegin('createItemNumberMapping', TMessageType.CALL, self._seqid)
847
    args = createItemNumberMapping_args()
848
    args.itemNumber = itemNumber
849
    args.itemId = itemId
850
    args.write(self._oprot)
851
    self._oprot.writeMessageEnd()
852
    self._oprot.trans.flush()
853
 
854
  def recv_createItemNumberMapping(self, ):
855
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
856
    if mtype == TMessageType.EXCEPTION:
857
      x = TApplicationException()
858
      x.read(self._iprot)
859
      self._iprot.readMessageEnd()
860
      raise x
861
    result = createItemNumberMapping_result()
862
    result.read(self._iprot)
863
    self._iprot.readMessageEnd()
864
    return
865
 
4620 amit.gupta 866
  def getItemNumbers(self, itemId):
867
    """
868
    Get itemNumber mappings for itemId
4501 mandeep.dh 869
 
4620 amit.gupta 870
    Parameters:
871
     - itemId
872
    """
873
    self.send_getItemNumbers(itemId)
874
    return self.recv_getItemNumbers()
875
 
876
  def send_getItemNumbers(self, itemId):
877
    self._oprot.writeMessageBegin('getItemNumbers', TMessageType.CALL, self._seqid)
878
    args = getItemNumbers_args()
879
    args.itemId = itemId
880
    args.write(self._oprot)
881
    self._oprot.writeMessageEnd()
882
    self._oprot.trans.flush()
883
 
884
  def recv_getItemNumbers(self, ):
885
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
886
    if mtype == TMessageType.EXCEPTION:
887
      x = TApplicationException()
888
      x.read(self._iprot)
889
      self._iprot.readMessageEnd()
890
      raise x
891
    result = getItemNumbers_result()
892
    result.read(self._iprot)
893
    self._iprot.readMessageEnd()
894
    if result.success is not None:
895
      return result.success
896
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
897
 
5110 mandeep.dh 898
  def getItemIds(self, itemNumber):
899
    """
900
    Gets item ids for a given item number
4620 amit.gupta 901
 
5110 mandeep.dh 902
    Parameters:
903
     - itemNumber
904
    """
905
    self.send_getItemIds(itemNumber)
906
    return self.recv_getItemIds()
907
 
908
  def send_getItemIds(self, itemNumber):
909
    self._oprot.writeMessageBegin('getItemIds', TMessageType.CALL, self._seqid)
910
    args = getItemIds_args()
911
    args.itemNumber = itemNumber
912
    args.write(self._oprot)
913
    self._oprot.writeMessageEnd()
914
    self._oprot.trans.flush()
915
 
916
  def recv_getItemIds(self, ):
917
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
918
    if mtype == TMessageType.EXCEPTION:
919
      x = TApplicationException()
920
      x.read(self._iprot)
921
      self._iprot.readMessageEnd()
922
      raise x
923
    result = getItemIds_result()
924
    result.read(self._iprot)
925
    self._iprot.readMessageEnd()
926
    if result.success is not None:
927
      return result.success
928
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
929
 
5185 mandeep.dh 930
  def getInventoryItemsFromLastScanType(self, lastScanType):
931
    """
932
    Retrieves all inventory items given a last scan type
5110 mandeep.dh 933
 
5185 mandeep.dh 934
    Parameters:
935
     - lastScanType
936
    """
937
    self.send_getInventoryItemsFromLastScanType(lastScanType)
938
    return self.recv_getInventoryItemsFromLastScanType()
939
 
940
  def send_getInventoryItemsFromLastScanType(self, lastScanType):
941
    self._oprot.writeMessageBegin('getInventoryItemsFromLastScanType', TMessageType.CALL, self._seqid)
942
    args = getInventoryItemsFromLastScanType_args()
943
    args.lastScanType = lastScanType
944
    args.write(self._oprot)
945
    self._oprot.writeMessageEnd()
946
    self._oprot.trans.flush()
947
 
948
  def recv_getInventoryItemsFromLastScanType(self, ):
949
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
950
    if mtype == TMessageType.EXCEPTION:
951
      x = TApplicationException()
952
      x.read(self._iprot)
953
      self._iprot.readMessageEnd()
954
      raise x
955
    result = getInventoryItemsFromLastScanType_result()
956
    result.read(self._iprot)
957
    self._iprot.readMessageEnd()
958
    if result.success is not None:
959
      return result.success
960
    if result.wex is not None:
961
      raise result.wex
962
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemsFromLastScanType failed: unknown result");
963
 
964
  def getInventoryItemFromId(self, inventoryItemId):
965
    """
966
    Retrieves inventory item given a inventoryItem id
967
 
968
    Parameters:
969
     - inventoryItemId
970
    """
971
    self.send_getInventoryItemFromId(inventoryItemId)
972
    return self.recv_getInventoryItemFromId()
973
 
974
  def send_getInventoryItemFromId(self, inventoryItemId):
975
    self._oprot.writeMessageBegin('getInventoryItemFromId', TMessageType.CALL, self._seqid)
976
    args = getInventoryItemFromId_args()
977
    args.inventoryItemId = inventoryItemId
978
    args.write(self._oprot)
979
    self._oprot.writeMessageEnd()
980
    self._oprot.trans.flush()
981
 
982
  def recv_getInventoryItemFromId(self, ):
983
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
984
    if mtype == TMessageType.EXCEPTION:
985
      x = TApplicationException()
986
      x.read(self._iprot)
987
      self._iprot.readMessageEnd()
988
      raise x
989
    result = getInventoryItemFromId_result()
990
    result.read(self._iprot)
991
    self._iprot.readMessageEnd()
992
    if result.success is not None:
993
      return result.success
994
    if result.wex is not None:
995
      raise result.wex
996
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");
997
 
5372 mandeep.dh 998
  def getPurchaseScans(self, startDate, endDate):
999
    """
1000
    Returns the purchase scans grouped by items for Purchase register reconciliation
5185 mandeep.dh 1001
 
5372 mandeep.dh 1002
    Parameters:
1003
     - startDate
1004
     - endDate
1005
    """
1006
    self.send_getPurchaseScans(startDate, endDate)
1007
    return self.recv_getPurchaseScans()
1008
 
1009
  def send_getPurchaseScans(self, startDate, endDate):
1010
    self._oprot.writeMessageBegin('getPurchaseScans', TMessageType.CALL, self._seqid)
1011
    args = getPurchaseScans_args()
1012
    args.startDate = startDate
1013
    args.endDate = endDate
1014
    args.write(self._oprot)
1015
    self._oprot.writeMessageEnd()
1016
    self._oprot.trans.flush()
1017
 
1018
  def recv_getPurchaseScans(self, ):
1019
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1020
    if mtype == TMessageType.EXCEPTION:
1021
      x = TApplicationException()
1022
      x.read(self._iprot)
1023
      self._iprot.readMessageEnd()
1024
      raise x
1025
    result = getPurchaseScans_result()
1026
    result.read(self._iprot)
1027
    self._iprot.readMessageEnd()
1028
    if result.success is not None:
1029
      return result.success
1030
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseScans failed: unknown result");
1031
 
7216 amar.kumar 1032
  def getPurchaseScansByGrnDate(self, startDate, endDate):
1033
    """
1034
    Returns the purchase scans between grn dates grouped by items for Purchase register reconciliation
1035
 
1036
    Parameters:
1037
     - startDate
1038
     - endDate
1039
    """
1040
    self.send_getPurchaseScansByGrnDate(startDate, endDate)
1041
    return self.recv_getPurchaseScansByGrnDate()
1042
 
1043
  def send_getPurchaseScansByGrnDate(self, startDate, endDate):
1044
    self._oprot.writeMessageBegin('getPurchaseScansByGrnDate', TMessageType.CALL, self._seqid)
1045
    args = getPurchaseScansByGrnDate_args()
1046
    args.startDate = startDate
1047
    args.endDate = endDate
1048
    args.write(self._oprot)
1049
    self._oprot.writeMessageEnd()
1050
    self._oprot.trans.flush()
1051
 
1052
  def recv_getPurchaseScansByGrnDate(self, ):
1053
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1054
    if mtype == TMessageType.EXCEPTION:
1055
      x = TApplicationException()
1056
      x.read(self._iprot)
1057
      self._iprot.readMessageEnd()
1058
      raise x
1059
    result = getPurchaseScansByGrnDate_result()
1060
    result.read(self._iprot)
1061
    self._iprot.readMessageEnd()
1062
    if result.success is not None:
1063
      return result.success
1064
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseScansByGrnDate failed: unknown result");
1065
 
10407 amar.kumar 1066
  def getEmptyGrnsByDate(self, startDate, endDate):
1067
    """
1068
    Returns the empty grn-ids between grn dates
1069
 
1070
    Parameters:
1071
     - startDate
1072
     - endDate
1073
    """
1074
    self.send_getEmptyGrnsByDate(startDate, endDate)
1075
    return self.recv_getEmptyGrnsByDate()
1076
 
1077
  def send_getEmptyGrnsByDate(self, startDate, endDate):
1078
    self._oprot.writeMessageBegin('getEmptyGrnsByDate', TMessageType.CALL, self._seqid)
1079
    args = getEmptyGrnsByDate_args()
1080
    args.startDate = startDate
1081
    args.endDate = endDate
1082
    args.write(self._oprot)
1083
    self._oprot.writeMessageEnd()
1084
    self._oprot.trans.flush()
1085
 
1086
  def recv_getEmptyGrnsByDate(self, ):
1087
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1088
    if mtype == TMessageType.EXCEPTION:
1089
      x = TApplicationException()
1090
      x.read(self._iprot)
1091
      self._iprot.readMessageEnd()
1092
      raise x
1093
    result = getEmptyGrnsByDate_result()
1094
    result.read(self._iprot)
1095
    self._iprot.readMessageEnd()
1096
    if result.success is not None:
1097
      return result.success
1098
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEmptyGrnsByDate failed: unknown result");
1099
 
5496 mandeep.dh 1100
  def fetchScansPerInvoiceNumber(self, date):
1101
    """
1102
    Returns the invoices and the count of scans against on a given day.
5372 mandeep.dh 1103
 
5496 mandeep.dh 1104
    Parameters:
1105
     - date
1106
    """
1107
    self.send_fetchScansPerInvoiceNumber(date)
1108
    return self.recv_fetchScansPerInvoiceNumber()
1109
 
1110
  def send_fetchScansPerInvoiceNumber(self, date):
1111
    self._oprot.writeMessageBegin('fetchScansPerInvoiceNumber', TMessageType.CALL, self._seqid)
1112
    args = fetchScansPerInvoiceNumber_args()
1113
    args.date = date
1114
    args.write(self._oprot)
1115
    self._oprot.writeMessageEnd()
1116
    self._oprot.trans.flush()
1117
 
1118
  def recv_fetchScansPerInvoiceNumber(self, ):
1119
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1120
    if mtype == TMessageType.EXCEPTION:
1121
      x = TApplicationException()
1122
      x.read(self._iprot)
1123
      self._iprot.readMessageEnd()
1124
      raise x
1125
    result = fetchScansPerInvoiceNumber_result()
1126
    result.read(self._iprot)
1127
    self._iprot.readMessageEnd()
1128
    if result.success is not None:
1129
      return result.success
1130
    raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchScansPerInvoiceNumber failed: unknown result");
1131
 
5620 mandeep.dh 1132
  def getInventoryItemFromOrder(self, orderId):
1133
    """
1134
    Returns inventory item for a given order
5496 mandeep.dh 1135
 
5620 mandeep.dh 1136
    Parameters:
1137
     - orderId
1138
    """
1139
    self.send_getInventoryItemFromOrder(orderId)
1140
    return self.recv_getInventoryItemFromOrder()
1141
 
1142
  def send_getInventoryItemFromOrder(self, orderId):
1143
    self._oprot.writeMessageBegin('getInventoryItemFromOrder', TMessageType.CALL, self._seqid)
1144
    args = getInventoryItemFromOrder_args()
1145
    args.orderId = orderId
1146
    args.write(self._oprot)
1147
    self._oprot.writeMessageEnd()
1148
    self._oprot.trans.flush()
1149
 
1150
  def recv_getInventoryItemFromOrder(self, ):
1151
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1152
    if mtype == TMessageType.EXCEPTION:
1153
      x = TApplicationException()
1154
      x.read(self._iprot)
1155
      self._iprot.readMessageEnd()
1156
      raise x
1157
    result = getInventoryItemFromOrder_result()
1158
    result.read(self._iprot)
1159
    self._iprot.readMessageEnd()
1160
    if result.success is not None:
1161
      return result.success
1162
    if result.we is not None:
1163
      raise result.we
1164
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemFromOrder failed: unknown result");
1165
 
5711 mandeep.dh 1166
  def getInventoryAge(self, ):
1167
    """
1168
    Fetches the stock inventory age week-wise
1169
    """
1170
    self.send_getInventoryAge()
1171
    return self.recv_getInventoryAge()
5620 mandeep.dh 1172
 
5711 mandeep.dh 1173
  def send_getInventoryAge(self, ):
1174
    self._oprot.writeMessageBegin('getInventoryAge', TMessageType.CALL, self._seqid)
1175
    args = getInventoryAge_args()
1176
    args.write(self._oprot)
1177
    self._oprot.writeMessageEnd()
1178
    self._oprot.trans.flush()
1179
 
1180
  def recv_getInventoryAge(self, ):
1181
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1182
    if mtype == TMessageType.EXCEPTION:
1183
      x = TApplicationException()
1184
      x.read(self._iprot)
1185
      self._iprot.readMessageEnd()
1186
      raise x
1187
    result = getInventoryAge_result()
1188
    result.read(self._iprot)
1189
    self._iprot.readMessageEnd()
1190
    if result.success is not None:
1191
      return result.success
1192
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryAge failed: unknown result");
1193
 
6361 rajveer 1194
  def getInventoryScansForItem(self, itemId, fromDate, toDate):
1195
    """
1196
    Fetches the scanRecords for a given item for a given time interval
5711 mandeep.dh 1197
 
6361 rajveer 1198
    Parameters:
1199
     - itemId
1200
     - fromDate
1201
     - toDate
1202
    """
1203
    self.send_getInventoryScansForItem(itemId, fromDate, toDate)
1204
    return self.recv_getInventoryScansForItem()
1205
 
1206
  def send_getInventoryScansForItem(self, itemId, fromDate, toDate):
1207
    self._oprot.writeMessageBegin('getInventoryScansForItem', TMessageType.CALL, self._seqid)
1208
    args = getInventoryScansForItem_args()
1209
    args.itemId = itemId
1210
    args.fromDate = fromDate
1211
    args.toDate = toDate
1212
    args.write(self._oprot)
1213
    self._oprot.writeMessageEnd()
1214
    self._oprot.trans.flush()
1215
 
1216
  def recv_getInventoryScansForItem(self, ):
1217
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1218
    if mtype == TMessageType.EXCEPTION:
1219
      x = TApplicationException()
1220
      x.read(self._iprot)
1221
      self._iprot.readMessageEnd()
1222
      raise x
1223
    result = getInventoryScansForItem_result()
1224
    result.read(self._iprot)
1225
    self._iprot.readMessageEnd()
1226
    if result.success is not None:
1227
      return result.success
1228
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryScansForItem failed: unknown result");
1229
 
1230
  def getScanRecordsForSerialNumber(self, serialNumber):
1231
    """
1232
    Fetches the scanRecords for a given serialNumber for a given time interval
1233
 
1234
    Parameters:
1235
     - serialNumber
1236
    """
1237
    self.send_getScanRecordsForSerialNumber(serialNumber)
1238
    return self.recv_getScanRecordsForSerialNumber()
1239
 
1240
  def send_getScanRecordsForSerialNumber(self, serialNumber):
1241
    self._oprot.writeMessageBegin('getScanRecordsForSerialNumber', TMessageType.CALL, self._seqid)
1242
    args = getScanRecordsForSerialNumber_args()
1243
    args.serialNumber = serialNumber
1244
    args.write(self._oprot)
1245
    self._oprot.writeMessageEnd()
1246
    self._oprot.trans.flush()
1247
 
1248
  def recv_getScanRecordsForSerialNumber(self, ):
1249
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1250
    if mtype == TMessageType.EXCEPTION:
1251
      x = TApplicationException()
1252
      x.read(self._iprot)
1253
      self._iprot.readMessageEnd()
1254
      raise x
1255
    result = getScanRecordsForSerialNumber_result()
1256
    result.read(self._iprot)
1257
    self._iprot.readMessageEnd()
1258
    if result.success is not None:
1259
      return result.success
1260
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScanRecordsForSerialNumber failed: unknown result");
1261
 
7718 amar.kumar 1262
  def scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
6467 amar.kumar 1263
    """
6630 amar.kumar 1264
    Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
6361 rajveer 1265
 
6467 amar.kumar 1266
    Parameters:
1267
     - saleReturnItems
1268
     - vendorId
7718 amar.kumar 1269
     - billingWarehouseId
6467 amar.kumar 1270
    """
7718 amar.kumar 1271
    self.send_scanForPurchaseReturn(saleReturnItems, vendorId, billingWarehouseId)
10864 manish.sha 1272
    return self.recv_scanForPurchaseReturn()
6467 amar.kumar 1273
 
7718 amar.kumar 1274
  def send_scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
6467 amar.kumar 1275
    self._oprot.writeMessageBegin('scanForPurchaseReturn', TMessageType.CALL, self._seqid)
1276
    args = scanForPurchaseReturn_args()
1277
    args.saleReturnItems = saleReturnItems
1278
    args.vendorId = vendorId
7718 amar.kumar 1279
    args.billingWarehouseId = billingWarehouseId
6467 amar.kumar 1280
    args.write(self._oprot)
1281
    self._oprot.writeMessageEnd()
1282
    self._oprot.trans.flush()
1283
 
1284
  def recv_scanForPurchaseReturn(self, ):
1285
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1286
    if mtype == TMessageType.EXCEPTION:
1287
      x = TApplicationException()
1288
      x.read(self._iprot)
1289
      self._iprot.readMessageEnd()
1290
      raise x
1291
    result = scanForPurchaseReturn_result()
1292
    result.read(self._iprot)
1293
    self._iprot.readMessageEnd()
10864 manish.sha 1294
    if result.success is not None:
1295
      return result.success
6467 amar.kumar 1296
    if result.ex is not None:
1297
      raise result.ex
10864 manish.sha 1298
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForPurchaseReturn failed: unknown result");
6467 amar.kumar 1299
 
7718 amar.kumar 1300
  def scanForLostItem(self, lostItems, vendorId, billingWarehouseId):
6630 amar.kumar 1301
    """
1302
    Inserts scans for lost Items and updates lastScanType in InventoryItems
6467 amar.kumar 1303
 
6630 amar.kumar 1304
    Parameters:
1305
     - lostItems
1306
     - vendorId
7718 amar.kumar 1307
     - billingWarehouseId
6630 amar.kumar 1308
    """
7718 amar.kumar 1309
    self.send_scanForLostItem(lostItems, vendorId, billingWarehouseId)
6630 amar.kumar 1310
    self.recv_scanForLostItem()
1311
 
7718 amar.kumar 1312
  def send_scanForLostItem(self, lostItems, vendorId, billingWarehouseId):
6630 amar.kumar 1313
    self._oprot.writeMessageBegin('scanForLostItem', TMessageType.CALL, self._seqid)
1314
    args = scanForLostItem_args()
1315
    args.lostItems = lostItems
1316
    args.vendorId = vendorId
7718 amar.kumar 1317
    args.billingWarehouseId = billingWarehouseId
6630 amar.kumar 1318
    args.write(self._oprot)
1319
    self._oprot.writeMessageEnd()
1320
    self._oprot.trans.flush()
1321
 
1322
  def recv_scanForLostItem(self, ):
1323
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1324
    if mtype == TMessageType.EXCEPTION:
1325
      x = TApplicationException()
1326
      x.read(self._iprot)
1327
      self._iprot.readMessageEnd()
1328
      raise x
1329
    result = scanForLostItem_result()
1330
    result.read(self._iprot)
1331
    self._iprot.readMessageEnd()
1332
    if result.ex is not None:
1333
      raise result.ex
1334
    return
1335
 
7715 vikram.rag 1336
  def getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1337
    """
1338
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
7715 vikram.rag 1339
 
1340
    Parameters:
1341
     - physicalWarehouseId
6630 amar.kumar 1342
    """
7715 vikram.rag 1343
    self.send_getCurrentSerializedInventoryByScans(physicalWarehouseId)
6630 amar.kumar 1344
    return self.recv_getCurrentSerializedInventoryByScans()
1345
 
7715 vikram.rag 1346
  def send_getCurrentSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1347
    self._oprot.writeMessageBegin('getCurrentSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1348
    args = getCurrentSerializedInventoryByScans_args()
7715 vikram.rag 1349
    args.physicalWarehouseId = physicalWarehouseId
6630 amar.kumar 1350
    args.write(self._oprot)
1351
    self._oprot.writeMessageEnd()
1352
    self._oprot.trans.flush()
1353
 
1354
  def recv_getCurrentSerializedInventoryByScans(self, ):
1355
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1356
    if mtype == TMessageType.EXCEPTION:
1357
      x = TApplicationException()
1358
      x.read(self._iprot)
1359
      self._iprot.readMessageEnd()
1360
      raise x
1361
    result = getCurrentSerializedInventoryByScans_result()
1362
    result.read(self._iprot)
1363
    self._iprot.readMessageEnd()
1364
    if result.success is not None:
1365
      return result.success
1366
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");
1367
 
7715 vikram.rag 1368
  def getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1369
    """
1370
    Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
7715 vikram.rag 1371
 
1372
    Parameters:
1373
     - physicalWarehouseId
6630 amar.kumar 1374
    """
7715 vikram.rag 1375
    self.send_getCurrentNonSerializedInventoryByScans(physicalWarehouseId)
6630 amar.kumar 1376
    return self.recv_getCurrentNonSerializedInventoryByScans()
1377
 
7715 vikram.rag 1378
  def send_getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):
6630 amar.kumar 1379
    self._oprot.writeMessageBegin('getCurrentNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1380
    args = getCurrentNonSerializedInventoryByScans_args()
7715 vikram.rag 1381
    args.physicalWarehouseId = physicalWarehouseId
6630 amar.kumar 1382
    args.write(self._oprot)
1383
    self._oprot.writeMessageEnd()
1384
    self._oprot.trans.flush()
1385
 
1386
  def recv_getCurrentNonSerializedInventoryByScans(self, ):
1387
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1388
    if mtype == TMessageType.EXCEPTION:
1389
      x = TApplicationException()
1390
      x.read(self._iprot)
1391
      self._iprot.readMessageEnd()
1392
      raise x
1393
    result = getCurrentNonSerializedInventoryByScans_result()
1394
    result.read(self._iprot)
1395
    self._iprot.readMessageEnd()
1396
    if result.success is not None:
1397
      return result.success
1398
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");
1399
 
6762 amar.kumar 1400
  def getHistoricSerializedInventoryByScans(self, date):
1401
    """
1402
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
6630 amar.kumar 1403
 
6762 amar.kumar 1404
    Parameters:
1405
     - date
1406
    """
1407
    self.send_getHistoricSerializedInventoryByScans(date)
1408
    return self.recv_getHistoricSerializedInventoryByScans()
1409
 
1410
  def send_getHistoricSerializedInventoryByScans(self, date):
1411
    self._oprot.writeMessageBegin('getHistoricSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1412
    args = getHistoricSerializedInventoryByScans_args()
1413
    args.date = date
1414
    args.write(self._oprot)
1415
    self._oprot.writeMessageEnd()
1416
    self._oprot.trans.flush()
1417
 
1418
  def recv_getHistoricSerializedInventoryByScans(self, ):
1419
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1420
    if mtype == TMessageType.EXCEPTION:
1421
      x = TApplicationException()
1422
      x.read(self._iprot)
1423
      self._iprot.readMessageEnd()
1424
      raise x
1425
    result = getHistoricSerializedInventoryByScans_result()
1426
    result.read(self._iprot)
1427
    self._iprot.readMessageEnd()
1428
    if result.success is not None:
1429
      return result.success
1430
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricSerializedInventoryByScans failed: unknown result");
1431
 
1432
  def getHistoricNonSerializedInventoryByScans(self, date):
1433
    """
1434
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
1435
 
1436
    Parameters:
1437
     - date
1438
    """
1439
    self.send_getHistoricNonSerializedInventoryByScans(date)
1440
    return self.recv_getHistoricNonSerializedInventoryByScans()
1441
 
1442
  def send_getHistoricNonSerializedInventoryByScans(self, date):
1443
    self._oprot.writeMessageBegin('getHistoricNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1444
    args = getHistoricNonSerializedInventoryByScans_args()
1445
    args.date = date
1446
    args.write(self._oprot)
1447
    self._oprot.writeMessageEnd()
1448
    self._oprot.trans.flush()
1449
 
1450
  def recv_getHistoricNonSerializedInventoryByScans(self, ):
1451
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1452
    if mtype == TMessageType.EXCEPTION:
1453
      x = TApplicationException()
1454
      x.read(self._iprot)
1455
      self._iprot.readMessageEnd()
1456
      raise x
1457
    result = getHistoricNonSerializedInventoryByScans_result()
1458
    result.read(self._iprot)
1459
    self._iprot.readMessageEnd()
1460
    if result.success is not None:
1461
      return result.success
1462
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricNonSerializedInventoryByScans failed: unknown result");
1463
 
10407 amar.kumar 1464
  def getOurHistoricSerializedInventoryByScans(self, date):
1465
    """
1466
    Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
1467
 
1468
    Parameters:
1469
     - date
1470
    """
1471
    self.send_getOurHistoricSerializedInventoryByScans(date)
1472
    return self.recv_getOurHistoricSerializedInventoryByScans()
1473
 
1474
  def send_getOurHistoricSerializedInventoryByScans(self, date):
1475
    self._oprot.writeMessageBegin('getOurHistoricSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1476
    args = getOurHistoricSerializedInventoryByScans_args()
1477
    args.date = date
1478
    args.write(self._oprot)
1479
    self._oprot.writeMessageEnd()
1480
    self._oprot.trans.flush()
1481
 
1482
  def recv_getOurHistoricSerializedInventoryByScans(self, ):
1483
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1484
    if mtype == TMessageType.EXCEPTION:
1485
      x = TApplicationException()
1486
      x.read(self._iprot)
1487
      self._iprot.readMessageEnd()
1488
      raise x
1489
    result = getOurHistoricSerializedInventoryByScans_result()
1490
    result.read(self._iprot)
1491
    self._iprot.readMessageEnd()
1492
    if result.success is not None:
1493
      return result.success
1494
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurHistoricSerializedInventoryByScans failed: unknown result");
1495
 
1496
  def getOurHistoricNonSerializedInventoryByScans(self, date):
1497
    """
1498
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
1499
 
1500
    Parameters:
1501
     - date
1502
    """
1503
    self.send_getOurHistoricNonSerializedInventoryByScans(date)
1504
    return self.recv_getOurHistoricNonSerializedInventoryByScans()
1505
 
1506
  def send_getOurHistoricNonSerializedInventoryByScans(self, date):
1507
    self._oprot.writeMessageBegin('getOurHistoricNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1508
    args = getOurHistoricNonSerializedInventoryByScans_args()
1509
    args.date = date
1510
    args.write(self._oprot)
1511
    self._oprot.writeMessageEnd()
1512
    self._oprot.trans.flush()
1513
 
1514
  def recv_getOurHistoricNonSerializedInventoryByScans(self, ):
1515
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1516
    if mtype == TMessageType.EXCEPTION:
1517
      x = TApplicationException()
1518
      x.read(self._iprot)
1519
      self._iprot.readMessageEnd()
1520
      raise x
1521
    result = getOurHistoricNonSerializedInventoryByScans_result()
1522
    result.read(self._iprot)
1523
    self._iprot.readMessageEnd()
1524
    if result.success is not None:
1525
      return result.success
1526
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurHistoricNonSerializedInventoryByScans failed: unknown result");
1527
 
7672 rajveer 1528
  def scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):
6762 amar.kumar 1529
    """
6880 amar.kumar 1530
    Insert Purchase/Sale Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 1531
 
1532
    Parameters:
1533
     - itemId
1534
     - serialNumber
1535
     - itemNumber
1536
     - invoiceNumber
1537
     - warehouseId
1538
     - unitPrice
7672 rajveer 1539
     - nlc
6762 amar.kumar 1540
     - orderId
1541
    """
7672 rajveer 1542
    self.send_scanForOursExternalSale(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId)
6762 amar.kumar 1543
    return self.recv_scanForOursExternalSale()
1544
 
7672 rajveer 1545
  def send_scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):
6762 amar.kumar 1546
    self._oprot.writeMessageBegin('scanForOursExternalSale', TMessageType.CALL, self._seqid)
1547
    args = scanForOursExternalSale_args()
1548
    args.itemId = itemId
1549
    args.serialNumber = serialNumber
1550
    args.itemNumber = itemNumber
1551
    args.invoiceNumber = invoiceNumber
1552
    args.warehouseId = warehouseId
1553
    args.unitPrice = unitPrice
7672 rajveer 1554
    args.nlc = nlc
6762 amar.kumar 1555
    args.orderId = orderId
1556
    args.write(self._oprot)
1557
    self._oprot.writeMessageEnd()
1558
    self._oprot.trans.flush()
1559
 
1560
  def recv_scanForOursExternalSale(self, ):
1561
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1562
    if mtype == TMessageType.EXCEPTION:
1563
      x = TApplicationException()
1564
      x.read(self._iprot)
1565
      self._iprot.readMessageEnd()
1566
      raise x
1567
    result = scanForOursExternalSale_result()
1568
    result.read(self._iprot)
1569
    self._iprot.readMessageEnd()
1570
    if result.success is not None:
1571
      return result.success
1572
    if result.ex is not None:
1573
      raise result.ex
1574
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOursExternalSale failed: unknown result");
1575
 
1576
  def scanForOursExternalSaleReturn(self, orderId, unitPrice):
1577
    """
6880 amar.kumar 1578
    Insert Purchase_Ret/Sale_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 1579
 
1580
    Parameters:
1581
     - orderId
1582
     - unitPrice
1583
    """
1584
    self.send_scanForOursExternalSaleReturn(orderId, unitPrice)
1585
    self.recv_scanForOursExternalSaleReturn()
1586
 
1587
  def send_scanForOursExternalSaleReturn(self, orderId, unitPrice):
1588
    self._oprot.writeMessageBegin('scanForOursExternalSaleReturn', TMessageType.CALL, self._seqid)
1589
    args = scanForOursExternalSaleReturn_args()
1590
    args.orderId = orderId
1591
    args.unitPrice = unitPrice
1592
    args.write(self._oprot)
1593
    self._oprot.writeMessageEnd()
1594
    self._oprot.trans.flush()
1595
 
1596
  def recv_scanForOursExternalSaleReturn(self, ):
1597
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1598
    if mtype == TMessageType.EXCEPTION:
1599
      x = TApplicationException()
1600
      x.read(self._iprot)
1601
      self._iprot.readMessageEnd()
1602
      raise x
1603
    result = scanForOursExternalSaleReturn_result()
1604
    result.read(self._iprot)
1605
    self._iprot.readMessageEnd()
7410 amar.kumar 1606
    if result.ex is not None:
1607
      raise result.ex
6762 amar.kumar 1608
    return
1609
 
6880 amar.kumar 1610
  def getMovementNonSerializedInventoryByScans(self, startDate, endDate):
1611
    """
10407 amar.kumar 1612
    This returns movement for each non serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)
1613
 
6880 amar.kumar 1614
    Parameters:
1615
     - startDate
1616
     - endDate
1617
    """
1618
    self.send_getMovementNonSerializedInventoryByScans(startDate, endDate)
1619
    return self.recv_getMovementNonSerializedInventoryByScans()
6762 amar.kumar 1620
 
6880 amar.kumar 1621
  def send_getMovementNonSerializedInventoryByScans(self, startDate, endDate):
1622
    self._oprot.writeMessageBegin('getMovementNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1623
    args = getMovementNonSerializedInventoryByScans_args()
1624
    args.startDate = startDate
1625
    args.endDate = endDate
1626
    args.write(self._oprot)
1627
    self._oprot.writeMessageEnd()
1628
    self._oprot.trans.flush()
1629
 
1630
  def recv_getMovementNonSerializedInventoryByScans(self, ):
1631
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1632
    if mtype == TMessageType.EXCEPTION:
1633
      x = TApplicationException()
1634
      x.read(self._iprot)
1635
      self._iprot.readMessageEnd()
1636
      raise x
1637
    result = getMovementNonSerializedInventoryByScans_result()
1638
    result.read(self._iprot)
1639
    self._iprot.readMessageEnd()
1640
    if result.success is not None:
1641
      return result.success
1642
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMovementNonSerializedInventoryByScans failed: unknown result");
1643
 
1644
  def getMovementSerializedInventoryByScans(self, startDate, endDate):
1645
    """
10407 amar.kumar 1646
    This returns movement for each serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)
1647
 
6880 amar.kumar 1648
    Parameters:
1649
     - startDate
1650
     - endDate
1651
    """
1652
    self.send_getMovementSerializedInventoryByScans(startDate, endDate)
1653
    return self.recv_getMovementSerializedInventoryByScans()
1654
 
1655
  def send_getMovementSerializedInventoryByScans(self, startDate, endDate):
1656
    self._oprot.writeMessageBegin('getMovementSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1657
    args = getMovementSerializedInventoryByScans_args()
1658
    args.startDate = startDate
1659
    args.endDate = endDate
1660
    args.write(self._oprot)
1661
    self._oprot.writeMessageEnd()
1662
    self._oprot.trans.flush()
1663
 
1664
  def recv_getMovementSerializedInventoryByScans(self, ):
1665
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1666
    if mtype == TMessageType.EXCEPTION:
1667
      x = TApplicationException()
1668
      x.read(self._iprot)
1669
      self._iprot.readMessageEnd()
1670
      raise x
1671
    result = getMovementSerializedInventoryByScans_result()
1672
    result.read(self._iprot)
1673
    self._iprot.readMessageEnd()
1674
    if result.success is not None:
1675
      return result.success
1676
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMovementSerializedInventoryByScans failed: unknown result");
1677
 
7216 amar.kumar 1678
  def getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):
1679
    """
10407 amar.kumar 1680
    This returns movement for each serialized item in the specified window.(Doesn't include Amazon w/h)
1681
 
7216 amar.kumar 1682
    Parameters:
1683
     - startDate
1684
     - endDate
1685
    """
1686
    self.send_getCompleteMovementSerializedInventoryByScans(startDate, endDate)
1687
    return self.recv_getCompleteMovementSerializedInventoryByScans()
1688
 
1689
  def send_getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):
1690
    self._oprot.writeMessageBegin('getCompleteMovementSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1691
    args = getCompleteMovementSerializedInventoryByScans_args()
1692
    args.startDate = startDate
1693
    args.endDate = endDate
1694
    args.write(self._oprot)
1695
    self._oprot.writeMessageEnd()
1696
    self._oprot.trans.flush()
1697
 
1698
  def recv_getCompleteMovementSerializedInventoryByScans(self, ):
1699
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1700
    if mtype == TMessageType.EXCEPTION:
1701
      x = TApplicationException()
1702
      x.read(self._iprot)
1703
      self._iprot.readMessageEnd()
1704
      raise x
1705
    result = getCompleteMovementSerializedInventoryByScans_result()
1706
    result.read(self._iprot)
1707
    self._iprot.readMessageEnd()
1708
    if result.success is not None:
1709
      return result.success
1710
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementSerializedInventoryByScans failed: unknown result");
1711
 
1712
  def getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):
1713
    """
10407 amar.kumar 1714
    This returns movement for each non serialized item in the specified window.(Doesn't include Amazon w/h)
1715
 
7216 amar.kumar 1716
    Parameters:
1717
     - startDate
1718
     - endDate
1719
    """
1720
    self.send_getCompleteMovementNonSerializedInventoryByScans(startDate, endDate)
1721
    return self.recv_getCompleteMovementNonSerializedInventoryByScans()
1722
 
1723
  def send_getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):
1724
    self._oprot.writeMessageBegin('getCompleteMovementNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)
1725
    args = getCompleteMovementNonSerializedInventoryByScans_args()
1726
    args.startDate = startDate
1727
    args.endDate = endDate
1728
    args.write(self._oprot)
1729
    self._oprot.writeMessageEnd()
1730
    self._oprot.trans.flush()
1731
 
1732
  def recv_getCompleteMovementNonSerializedInventoryByScans(self, ):
1733
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1734
    if mtype == TMessageType.EXCEPTION:
1735
      x = TApplicationException()
1736
      x.read(self._iprot)
1737
      self._iprot.readMessageEnd()
1738
      raise x
1739
    result = getCompleteMovementNonSerializedInventoryByScans_result()
1740
    result.read(self._iprot)
1741
    self._iprot.readMessageEnd()
1742
    if result.success is not None:
1743
      return result.success
1744
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementNonSerializedInventoryByScans failed: unknown result");
1745
 
7190 amar.kumar 1746
  def scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):
1747
    """
1748
    Parameters:
1749
     - orderId
1750
     - freebieItemId
1751
     - freebieWarehouseId
1752
     - scanType
1753
    """
1754
    self.send_scanfreebie(orderId, freebieItemId, freebieWarehouseId, scanType)
1755
    return self.recv_scanfreebie()
6880 amar.kumar 1756
 
7190 amar.kumar 1757
  def send_scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):
1758
    self._oprot.writeMessageBegin('scanfreebie', TMessageType.CALL, self._seqid)
1759
    args = scanfreebie_args()
1760
    args.orderId = orderId
1761
    args.freebieItemId = freebieItemId
1762
    args.freebieWarehouseId = freebieWarehouseId
1763
    args.scanType = scanType
1764
    args.write(self._oprot)
1765
    self._oprot.writeMessageEnd()
1766
    self._oprot.trans.flush()
1767
 
1768
  def recv_scanfreebie(self, ):
1769
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1770
    if mtype == TMessageType.EXCEPTION:
1771
      x = TApplicationException()
1772
      x.read(self._iprot)
1773
      self._iprot.readMessageEnd()
1774
      raise x
1775
    result = scanfreebie_result()
1776
    result.read(self._iprot)
1777
    self._iprot.readMessageEnd()
1778
    if result.success is not None:
1779
      return result.success
1780
    if result.wex is not None:
1781
      raise result.wex
1782
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanfreebie failed: unknown result");
1783
 
7199 amar.kumar 1784
  def reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):
1785
    """
1786
    Parameters:
1787
     - oldOrderId
1788
     - newOrderId
1789
     - freebieItemId
1790
     - scanType
1791
    """
1792
    self.send_reshipfreebie(oldOrderId, newOrderId, freebieItemId, scanType)
1793
    self.recv_reshipfreebie()
7190 amar.kumar 1794
 
7199 amar.kumar 1795
  def send_reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):
1796
    self._oprot.writeMessageBegin('reshipfreebie', TMessageType.CALL, self._seqid)
1797
    args = reshipfreebie_args()
1798
    args.oldOrderId = oldOrderId
1799
    args.newOrderId = newOrderId
1800
    args.freebieItemId = freebieItemId
1801
    args.scanType = scanType
1802
    args.write(self._oprot)
1803
    self._oprot.writeMessageEnd()
1804
    self._oprot.trans.flush()
1805
 
1806
  def recv_reshipfreebie(self, ):
1807
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1808
    if mtype == TMessageType.EXCEPTION:
1809
      x = TApplicationException()
1810
      x.read(self._iprot)
1811
      self._iprot.readMessageEnd()
1812
      raise x
1813
    result = reshipfreebie_result()
1814
    result.read(self._iprot)
1815
    self._iprot.readMessageEnd()
1816
    if result.wex is not None:
1817
      raise result.wex
1818
    return
1819
 
7410 amar.kumar 1820
  def isItemTransferAllowed(self, warehouseId, transferWarehouseId):
1821
    """
1822
    Parameters:
1823
     - warehouseId
1824
     - transferWarehouseId
1825
    """
1826
    self.send_isItemTransferAllowed(warehouseId, transferWarehouseId)
1827
    return self.recv_isItemTransferAllowed()
7199 amar.kumar 1828
 
7410 amar.kumar 1829
  def send_isItemTransferAllowed(self, warehouseId, transferWarehouseId):
1830
    self._oprot.writeMessageBegin('isItemTransferAllowed', TMessageType.CALL, self._seqid)
1831
    args = isItemTransferAllowed_args()
1832
    args.warehouseId = warehouseId
1833
    args.transferWarehouseId = transferWarehouseId
1834
    args.write(self._oprot)
1835
    self._oprot.writeMessageEnd()
1836
    self._oprot.trans.flush()
1837
 
1838
  def recv_isItemTransferAllowed(self, ):
1839
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1840
    if mtype == TMessageType.EXCEPTION:
1841
      x = TApplicationException()
1842
      x.read(self._iprot)
1843
      self._iprot.readMessageEnd()
1844
      raise x
1845
    result = isItemTransferAllowed_result()
1846
    result.read(self._iprot)
1847
    self._iprot.readMessageEnd()
1848
    if result.success is not None:
1849
      return result.success
1850
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isItemTransferAllowed failed: unknown result");
1851
 
1852
  def createTransferLot(self, originWarehouseId, destWarehouseId):
1853
    """
1854
    Parameters:
1855
     - originWarehouseId
1856
     - destWarehouseId
1857
    """
1858
    self.send_createTransferLot(originWarehouseId, destWarehouseId)
1859
    return self.recv_createTransferLot()
1860
 
1861
  def send_createTransferLot(self, originWarehouseId, destWarehouseId):
1862
    self._oprot.writeMessageBegin('createTransferLot', TMessageType.CALL, self._seqid)
1863
    args = createTransferLot_args()
1864
    args.originWarehouseId = originWarehouseId
1865
    args.destWarehouseId = destWarehouseId
1866
    args.write(self._oprot)
1867
    self._oprot.writeMessageEnd()
1868
    self._oprot.trans.flush()
1869
 
1870
  def recv_createTransferLot(self, ):
1871
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1872
    if mtype == TMessageType.EXCEPTION:
1873
      x = TApplicationException()
1874
      x.read(self._iprot)
1875
      self._iprot.readMessageEnd()
1876
      raise x
1877
    result = createTransferLot_result()
1878
    result.read(self._iprot)
1879
    self._iprot.readMessageEnd()
1880
    if result.success is not None:
1881
      return result.success
1882
    if result.wex is not None:
1883
      raise result.wex
1884
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createTransferLot failed: unknown result");
1885
 
1886
  def getTransferLot(self, transferLotId):
1887
    """
1888
    Parameters:
1889
     - transferLotId
1890
    """
1891
    self.send_getTransferLot(transferLotId)
1892
    return self.recv_getTransferLot()
1893
 
1894
  def send_getTransferLot(self, transferLotId):
1895
    self._oprot.writeMessageBegin('getTransferLot', TMessageType.CALL, self._seqid)
1896
    args = getTransferLot_args()
1897
    args.transferLotId = transferLotId
1898
    args.write(self._oprot)
1899
    self._oprot.writeMessageEnd()
1900
    self._oprot.trans.flush()
1901
 
1902
  def recv_getTransferLot(self, ):
1903
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1904
    if mtype == TMessageType.EXCEPTION:
1905
      x = TApplicationException()
1906
      x.read(self._iprot)
1907
      self._iprot.readMessageEnd()
1908
      raise x
1909
    result = getTransferLot_result()
1910
    result.read(self._iprot)
1911
    self._iprot.readMessageEnd()
1912
    if result.success is not None:
1913
      return result.success
1914
    if result.wex is not None:
1915
      raise result.wex
1916
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLot failed: unknown result");
1917
 
1918
  def markTransferLotAsReceived(self, id, remoteTransferRefNumber):
1919
    """
1920
    Parameters:
1921
     - id
1922
     - remoteTransferRefNumber
1923
    """
1924
    self.send_markTransferLotAsReceived(id, remoteTransferRefNumber)
1925
    self.recv_markTransferLotAsReceived()
1926
 
1927
  def send_markTransferLotAsReceived(self, id, remoteTransferRefNumber):
1928
    self._oprot.writeMessageBegin('markTransferLotAsReceived', TMessageType.CALL, self._seqid)
1929
    args = markTransferLotAsReceived_args()
1930
    args.id = id
1931
    args.remoteTransferRefNumber = remoteTransferRefNumber
1932
    args.write(self._oprot)
1933
    self._oprot.writeMessageEnd()
1934
    self._oprot.trans.flush()
1935
 
1936
  def recv_markTransferLotAsReceived(self, ):
1937
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1938
    if mtype == TMessageType.EXCEPTION:
1939
      x = TApplicationException()
1940
      x.read(self._iprot)
1941
      self._iprot.readMessageEnd()
1942
      raise x
1943
    result = markTransferLotAsReceived_result()
1944
    result.read(self._iprot)
1945
    self._iprot.readMessageEnd()
1946
    if result.wex is not None:
1947
      raise result.wex
1948
    return
1949
 
1950
  def getTransferLotsByDate(self, fromDate, toDate):
1951
    """
1952
    Parameters:
1953
     - fromDate
1954
     - toDate
1955
    """
1956
    self.send_getTransferLotsByDate(fromDate, toDate)
1957
    return self.recv_getTransferLotsByDate()
1958
 
1959
  def send_getTransferLotsByDate(self, fromDate, toDate):
1960
    self._oprot.writeMessageBegin('getTransferLotsByDate', TMessageType.CALL, self._seqid)
1961
    args = getTransferLotsByDate_args()
1962
    args.fromDate = fromDate
1963
    args.toDate = toDate
1964
    args.write(self._oprot)
1965
    self._oprot.writeMessageEnd()
1966
    self._oprot.trans.flush()
1967
 
1968
  def recv_getTransferLotsByDate(self, ):
1969
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1970
    if mtype == TMessageType.EXCEPTION:
1971
      x = TApplicationException()
1972
      x.read(self._iprot)
1973
      self._iprot.readMessageEnd()
1974
      raise x
1975
    result = getTransferLotsByDate_result()
1976
    result.read(self._iprot)
1977
    self._iprot.readMessageEnd()
1978
    if result.success is not None:
1979
      return result.success
1980
    if result.wex is not None:
1981
      raise result.wex
1982
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLotsByDate failed: unknown result");
1983
 
1984
  def getAllowedDestinationWarehousesForTransfer(self, warehouseId):
1985
    """
1986
    Parameters:
1987
     - warehouseId
1988
    """
1989
    self.send_getAllowedDestinationWarehousesForTransfer(warehouseId)
1990
    return self.recv_getAllowedDestinationWarehousesForTransfer()
1991
 
1992
  def send_getAllowedDestinationWarehousesForTransfer(self, warehouseId):
1993
    self._oprot.writeMessageBegin('getAllowedDestinationWarehousesForTransfer', TMessageType.CALL, self._seqid)
1994
    args = getAllowedDestinationWarehousesForTransfer_args()
1995
    args.warehouseId = warehouseId
1996
    args.write(self._oprot)
1997
    self._oprot.writeMessageEnd()
1998
    self._oprot.trans.flush()
1999
 
2000
  def recv_getAllowedDestinationWarehousesForTransfer(self, ):
2001
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2002
    if mtype == TMessageType.EXCEPTION:
2003
      x = TApplicationException()
2004
      x.read(self._iprot)
2005
      self._iprot.readMessageEnd()
2006
      raise x
2007
    result = getAllowedDestinationWarehousesForTransfer_result()
2008
    result.read(self._iprot)
2009
    self._iprot.readMessageEnd()
2010
    if result.success is not None:
2011
      return result.success
2012
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllowedDestinationWarehousesForTransfer failed: unknown result");
2013
 
2014
  def getItemsInTransferLot(self, transferLotId):
2015
    """
2016
    Parameters:
2017
     - transferLotId
2018
    """
2019
    self.send_getItemsInTransferLot(transferLotId)
2020
    return self.recv_getItemsInTransferLot()
2021
 
2022
  def send_getItemsInTransferLot(self, transferLotId):
2023
    self._oprot.writeMessageBegin('getItemsInTransferLot', TMessageType.CALL, self._seqid)
2024
    args = getItemsInTransferLot_args()
2025
    args.transferLotId = transferLotId
2026
    args.write(self._oprot)
2027
    self._oprot.writeMessageEnd()
2028
    self._oprot.trans.flush()
2029
 
2030
  def recv_getItemsInTransferLot(self, ):
2031
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2032
    if mtype == TMessageType.EXCEPTION:
2033
      x = TApplicationException()
2034
      x.read(self._iprot)
2035
      self._iprot.readMessageEnd()
2036
      raise x
2037
    result = getItemsInTransferLot_result()
2038
    result.read(self._iprot)
2039
    self._iprot.readMessageEnd()
2040
    if result.success is not None:
2041
      return result.success
2042
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsInTransferLot failed: unknown result");
2043
 
2044
  def markItemsAsReceivedForTransferLot(self, id):
2045
    """
2046
    Parameters:
2047
     - id
2048
    """
2049
    self.send_markItemsAsReceivedForTransferLot(id)
2050
    self.recv_markItemsAsReceivedForTransferLot()
2051
 
2052
  def send_markItemsAsReceivedForTransferLot(self, id):
2053
    self._oprot.writeMessageBegin('markItemsAsReceivedForTransferLot', TMessageType.CALL, self._seqid)
2054
    args = markItemsAsReceivedForTransferLot_args()
2055
    args.id = id
2056
    args.write(self._oprot)
2057
    self._oprot.writeMessageEnd()
2058
    self._oprot.trans.flush()
2059
 
2060
  def recv_markItemsAsReceivedForTransferLot(self, ):
2061
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2062
    if mtype == TMessageType.EXCEPTION:
2063
      x = TApplicationException()
2064
      x.read(self._iprot)
2065
      self._iprot.readMessageEnd()
2066
      raise x
2067
    result = markItemsAsReceivedForTransferLot_result()
2068
    result.read(self._iprot)
2069
    self._iprot.readMessageEnd()
2070
    if result.wex is not None:
2071
      raise result.wex
2072
    return
2073
 
2074
  def updateTransferLotAfterItemReceive(self, id):
2075
    """
2076
    Parameters:
2077
     - id
2078
    """
2079
    self.send_updateTransferLotAfterItemReceive(id)
2080
    return self.recv_updateTransferLotAfterItemReceive()
2081
 
2082
  def send_updateTransferLotAfterItemReceive(self, id):
2083
    self._oprot.writeMessageBegin('updateTransferLotAfterItemReceive', TMessageType.CALL, self._seqid)
2084
    args = updateTransferLotAfterItemReceive_args()
2085
    args.id = id
2086
    args.write(self._oprot)
2087
    self._oprot.writeMessageEnd()
2088
    self._oprot.trans.flush()
2089
 
2090
  def recv_updateTransferLotAfterItemReceive(self, ):
2091
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2092
    if mtype == TMessageType.EXCEPTION:
2093
      x = TApplicationException()
2094
      x.read(self._iprot)
2095
      self._iprot.readMessageEnd()
2096
      raise x
2097
    result = updateTransferLotAfterItemReceive_result()
2098
    result.read(self._iprot)
2099
    self._iprot.readMessageEnd()
2100
    if result.success is not None:
2101
      return result.success
2102
    if result.wex is not None:
2103
      raise result.wex
2104
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTransferLotAfterItemReceive failed: unknown result");
2105
 
7459 amar.kumar 2106
  def scanForTransferOut(self, inventoryItems, type, transferLotId):
7410 amar.kumar 2107
    """
2108
    Parameters:
2109
     - inventoryItems
2110
     - type
2111
     - transferLotId
2112
    """
7459 amar.kumar 2113
    self.send_scanForTransferOut(inventoryItems, type, transferLotId)
2114
    self.recv_scanForTransferOut()
7410 amar.kumar 2115
 
7459 amar.kumar 2116
  def send_scanForTransferOut(self, inventoryItems, type, transferLotId):
2117
    self._oprot.writeMessageBegin('scanForTransferOut', TMessageType.CALL, self._seqid)
2118
    args = scanForTransferOut_args()
7410 amar.kumar 2119
    args.inventoryItems = inventoryItems
2120
    args.type = type
2121
    args.transferLotId = transferLotId
2122
    args.write(self._oprot)
2123
    self._oprot.writeMessageEnd()
2124
    self._oprot.trans.flush()
2125
 
7459 amar.kumar 2126
  def recv_scanForTransferOut(self, ):
7410 amar.kumar 2127
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2128
    if mtype == TMessageType.EXCEPTION:
2129
      x = TApplicationException()
2130
      x.read(self._iprot)
2131
      self._iprot.readMessageEnd()
2132
      raise x
7459 amar.kumar 2133
    result = scanForTransferOut_result()
7410 amar.kumar 2134
    result.read(self._iprot)
2135
    self._iprot.readMessageEnd()
2136
    if result.wex is not None:
2137
      raise result.wex
2138
    return
2139
 
7459 amar.kumar 2140
  def scanForTransferIn(self, inventoryItems, type, transferLotId):
2141
    """
2142
    Parameters:
2143
     - inventoryItems
2144
     - type
2145
     - transferLotId
2146
    """
2147
    self.send_scanForTransferIn(inventoryItems, type, transferLotId)
2148
    self.recv_scanForTransferIn()
7410 amar.kumar 2149
 
7459 amar.kumar 2150
  def send_scanForTransferIn(self, inventoryItems, type, transferLotId):
2151
    self._oprot.writeMessageBegin('scanForTransferIn', TMessageType.CALL, self._seqid)
2152
    args = scanForTransferIn_args()
2153
    args.inventoryItems = inventoryItems
2154
    args.type = type
2155
    args.transferLotId = transferLotId
2156
    args.write(self._oprot)
2157
    self._oprot.writeMessageEnd()
2158
    self._oprot.trans.flush()
2159
 
2160
  def recv_scanForTransferIn(self, ):
2161
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2162
    if mtype == TMessageType.EXCEPTION:
2163
      x = TApplicationException()
2164
      x.read(self._iprot)
2165
      self._iprot.readMessageEnd()
2166
      raise x
2167
    result = scanForTransferIn_result()
2168
    result.read(self._iprot)
2169
    self._iprot.readMessageEnd()
2170
    if result.wex is not None:
2171
      raise result.wex
2172
    return
2173
 
2174
  def scanForOursThirdPartyReceive(self, inventoryItems, id):
2175
    """
2176
    Parameters:
2177
     - inventoryItems
2178
     - id
2179
    """
2180
    self.send_scanForOursThirdPartyReceive(inventoryItems, id)
2181
    self.recv_scanForOursThirdPartyReceive()
2182
 
2183
  def send_scanForOursThirdPartyReceive(self, inventoryItems, id):
2184
    self._oprot.writeMessageBegin('scanForOursThirdPartyReceive', TMessageType.CALL, self._seqid)
2185
    args = scanForOursThirdPartyReceive_args()
2186
    args.inventoryItems = inventoryItems
2187
    args.id = id
2188
    args.write(self._oprot)
2189
    self._oprot.writeMessageEnd()
2190
    self._oprot.trans.flush()
2191
 
2192
  def recv_scanForOursThirdPartyReceive(self, ):
2193
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2194
    if mtype == TMessageType.EXCEPTION:
2195
      x = TApplicationException()
2196
      x.read(self._iprot)
2197
      self._iprot.readMessageEnd()
2198
      raise x
2199
    result = scanForOursThirdPartyReceive_result()
2200
    result.read(self._iprot)
2201
    self._iprot.readMessageEnd()
2202
    if result.wex is not None:
2203
      raise result.wex
2204
    return
2205
 
7574 amar.kumar 2206
  def getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
2207
    """
2208
    Parameters:
2209
     - itemId
2210
     - physicalWarehouseId
2211
    """
2212
    self.send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(itemId, physicalWarehouseId)
2213
    return self.recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse()
7459 amar.kumar 2214
 
7574 amar.kumar 2215
  def send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):
2216
    self._oprot.writeMessageBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse', TMessageType.CALL, self._seqid)
2217
    args = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args()
2218
    args.itemId = itemId
2219
    args.physicalWarehouseId = physicalWarehouseId
2220
    args.write(self._oprot)
2221
    self._oprot.writeMessageEnd()
2222
    self._oprot.trans.flush()
2223
 
2224
  def recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, ):
2225
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2226
    if mtype == TMessageType.EXCEPTION:
2227
      x = TApplicationException()
2228
      x.read(self._iprot)
2229
      self._iprot.readMessageEnd()
2230
      raise x
2231
    result = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result()
2232
    result.read(self._iprot)
2233
    self._iprot.readMessageEnd()
2234
    if result.success is not None:
2235
      return result.success
2236
    if result.wex is not None:
2237
      raise result.wex
2238
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse failed: unknown result");
2239
 
7672 rajveer 2240
  def getInTransitInventory(self, originWarehouseId):
2241
    """
2242
    Parameters:
2243
     - originWarehouseId
2244
    """
2245
    self.send_getInTransitInventory(originWarehouseId)
2246
    return self.recv_getInTransitInventory()
7574 amar.kumar 2247
 
7672 rajveer 2248
  def send_getInTransitInventory(self, originWarehouseId):
2249
    self._oprot.writeMessageBegin('getInTransitInventory', TMessageType.CALL, self._seqid)
2250
    args = getInTransitInventory_args()
2251
    args.originWarehouseId = originWarehouseId
2252
    args.write(self._oprot)
2253
    self._oprot.writeMessageEnd()
2254
    self._oprot.trans.flush()
2255
 
2256
  def recv_getInTransitInventory(self, ):
2257
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2258
    if mtype == TMessageType.EXCEPTION:
2259
      x = TApplicationException()
2260
      x.read(self._iprot)
2261
      self._iprot.readMessageEnd()
2262
      raise x
2263
    result = getInTransitInventory_result()
2264
    result.read(self._iprot)
2265
    self._iprot.readMessageEnd()
2266
    if result.success is not None:
2267
      return result.success
2268
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInTransitInventory failed: unknown result");
2269
 
7968 amar.kumar 2270
  def isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
2271
    """
2272
    Parameters:
2273
     - itemId
2274
     - serialNumber
2275
     - warehouseId
2276
    """
2277
    self.send_isItemAvailableForSale(itemId, serialNumber, warehouseId)
2278
    return self.recv_isItemAvailableForSale()
7672 rajveer 2279
 
7968 amar.kumar 2280
  def send_isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
2281
    self._oprot.writeMessageBegin('isItemAvailableForSale', TMessageType.CALL, self._seqid)
2282
    args = isItemAvailableForSale_args()
2283
    args.itemId = itemId
2284
    args.serialNumber = serialNumber
2285
    args.warehouseId = warehouseId
2286
    args.write(self._oprot)
2287
    self._oprot.writeMessageEnd()
2288
    self._oprot.trans.flush()
2289
 
2290
  def recv_isItemAvailableForSale(self, ):
2291
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2292
    if mtype == TMessageType.EXCEPTION:
2293
      x = TApplicationException()
2294
      x.read(self._iprot)
2295
      self._iprot.readMessageEnd()
2296
      raise x
2297
    result = isItemAvailableForSale_result()
2298
    result.read(self._iprot)
2299
    self._iprot.readMessageEnd()
2300
    if result.success is not None:
2301
      return result.success
2302
    if result.wex is not None:
2303
      raise result.wex
2304
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isItemAvailableForSale failed: unknown result");
2305
 
2306
  def getHistoricBadInventoryByScans(self, date):
2307
    """
2308
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
2309
 
2310
    Parameters:
2311
     - date
2312
    """
2313
    self.send_getHistoricBadInventoryByScans(date)
2314
    return self.recv_getHistoricBadInventoryByScans()
2315
 
2316
  def send_getHistoricBadInventoryByScans(self, date):
2317
    self._oprot.writeMessageBegin('getHistoricBadInventoryByScans', TMessageType.CALL, self._seqid)
2318
    args = getHistoricBadInventoryByScans_args()
2319
    args.date = date
2320
    args.write(self._oprot)
2321
    self._oprot.writeMessageEnd()
2322
    self._oprot.trans.flush()
2323
 
2324
  def recv_getHistoricBadInventoryByScans(self, ):
2325
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2326
    if mtype == TMessageType.EXCEPTION:
2327
      x = TApplicationException()
2328
      x.read(self._iprot)
2329
      self._iprot.readMessageEnd()
2330
      raise x
2331
    result = getHistoricBadInventoryByScans_result()
2332
    result.read(self._iprot)
2333
    self._iprot.readMessageEnd()
2334
    if result.success is not None:
2335
      return result.success
2336
    if result.wex is not None:
2337
      raise result.wex
2338
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricBadInventoryByScans failed: unknown result");
2339
 
8717 amar.kumar 2340
  def scanForBadSale(self, serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
8565 amar.kumar 2341
    """
2342
    Parameters:
8717 amar.kumar 2343
     - serialNumber
2344
     - itemNumber
2345
     - itemId
8565 amar.kumar 2346
     - orderId
8717 amar.kumar 2347
     - fulfilmentWarehouseId
8565 amar.kumar 2348
     - quantity
2349
     - billingWarehouseId
2350
    """
8717 amar.kumar 2351
    self.send_scanForBadSale(serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId)
2352
    return self.recv_scanForBadSale()
7968 amar.kumar 2353
 
8717 amar.kumar 2354
  def send_scanForBadSale(self, serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
8565 amar.kumar 2355
    self._oprot.writeMessageBegin('scanForBadSale', TMessageType.CALL, self._seqid)
2356
    args = scanForBadSale_args()
8717 amar.kumar 2357
    args.serialNumber = serialNumber
2358
    args.itemNumber = itemNumber
2359
    args.itemId = itemId
8565 amar.kumar 2360
    args.orderId = orderId
8717 amar.kumar 2361
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 2362
    args.quantity = quantity
2363
    args.billingWarehouseId = billingWarehouseId
2364
    args.write(self._oprot)
2365
    self._oprot.writeMessageEnd()
2366
    self._oprot.trans.flush()
2367
 
2368
  def recv_scanForBadSale(self, ):
2369
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2370
    if mtype == TMessageType.EXCEPTION:
2371
      x = TApplicationException()
2372
      x.read(self._iprot)
2373
      self._iprot.readMessageEnd()
2374
      raise x
2375
    result = scanForBadSale_result()
2376
    result.read(self._iprot)
2377
    self._iprot.readMessageEnd()
8717 amar.kumar 2378
    if result.success is not None:
2379
      return result.success
2380
    if result.wex is not None:
2381
      raise result.wex
2382
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForBadSale failed: unknown result");
8565 amar.kumar 2383
 
10120 manish.sha 2384
  def getTransferLotItemsForMarkReceive(self, transferLotId, scanType):
2385
    """
2386
    Parameters:
2387
     - transferLotId
2388
     - scanType
2389
    """
2390
    self.send_getTransferLotItemsForMarkReceive(transferLotId, scanType)
2391
    return self.recv_getTransferLotItemsForMarkReceive()
8565 amar.kumar 2392
 
10120 manish.sha 2393
  def send_getTransferLotItemsForMarkReceive(self, transferLotId, scanType):
2394
    self._oprot.writeMessageBegin('getTransferLotItemsForMarkReceive', TMessageType.CALL, self._seqid)
2395
    args = getTransferLotItemsForMarkReceive_args()
2396
    args.transferLotId = transferLotId
2397
    args.scanType = scanType
2398
    args.write(self._oprot)
2399
    self._oprot.writeMessageEnd()
2400
    self._oprot.trans.flush()
2401
 
2402
  def recv_getTransferLotItemsForMarkReceive(self, ):
2403
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2404
    if mtype == TMessageType.EXCEPTION:
2405
      x = TApplicationException()
2406
      x.read(self._iprot)
2407
      self._iprot.readMessageEnd()
2408
      raise x
2409
    result = getTransferLotItemsForMarkReceive_result()
2410
    result.read(self._iprot)
2411
    self._iprot.readMessageEnd()
2412
    if result.success is not None:
2413
      return result.success
2414
    if result.wex is not None:
2415
      raise result.wex
2416
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransferLotItemsForMarkReceive failed: unknown result");
2417
 
2418
  def markItemsAsReceivedForTransferLotPartial(self, inventoryItems, transferLotId):
2419
    """
2420
    Parameters:
2421
     - inventoryItems
2422
     - transferLotId
2423
    """
2424
    self.send_markItemsAsReceivedForTransferLotPartial(inventoryItems, transferLotId)
2425
    self.recv_markItemsAsReceivedForTransferLotPartial()
2426
 
2427
  def send_markItemsAsReceivedForTransferLotPartial(self, inventoryItems, transferLotId):
2428
    self._oprot.writeMessageBegin('markItemsAsReceivedForTransferLotPartial', TMessageType.CALL, self._seqid)
2429
    args = markItemsAsReceivedForTransferLotPartial_args()
2430
    args.inventoryItems = inventoryItems
2431
    args.transferLotId = transferLotId
2432
    args.write(self._oprot)
2433
    self._oprot.writeMessageEnd()
2434
    self._oprot.trans.flush()
2435
 
2436
  def recv_markItemsAsReceivedForTransferLotPartial(self, ):
2437
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2438
    if mtype == TMessageType.EXCEPTION:
2439
      x = TApplicationException()
2440
      x.read(self._iprot)
2441
      self._iprot.readMessageEnd()
2442
      raise x
2443
    result = markItemsAsReceivedForTransferLotPartial_result()
2444
    result.read(self._iprot)
2445
    self._iprot.readMessageEnd()
2446
    if result.wex is not None:
2447
      raise result.wex
2448
    return
2449
 
2450
  def markTransferLotAsReceivedPartial(self, id, remoteTransferRefNumber):
2451
    """
2452
    Parameters:
2453
     - id
2454
     - remoteTransferRefNumber
2455
    """
2456
    self.send_markTransferLotAsReceivedPartial(id, remoteTransferRefNumber)
2457
    self.recv_markTransferLotAsReceivedPartial()
2458
 
2459
  def send_markTransferLotAsReceivedPartial(self, id, remoteTransferRefNumber):
2460
    self._oprot.writeMessageBegin('markTransferLotAsReceivedPartial', TMessageType.CALL, self._seqid)
2461
    args = markTransferLotAsReceivedPartial_args()
2462
    args.id = id
2463
    args.remoteTransferRefNumber = remoteTransferRefNumber
2464
    args.write(self._oprot)
2465
    self._oprot.writeMessageEnd()
2466
    self._oprot.trans.flush()
2467
 
2468
  def recv_markTransferLotAsReceivedPartial(self, ):
2469
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2470
    if mtype == TMessageType.EXCEPTION:
2471
      x = TApplicationException()
2472
      x.read(self._iprot)
2473
      self._iprot.readMessageEnd()
2474
      raise x
2475
    result = markTransferLotAsReceivedPartial_result()
2476
    result.read(self._iprot)
2477
    self._iprot.readMessageEnd()
2478
    if result.wex is not None:
2479
      raise result.wex
2480
    return
2481
 
10690 manish.sha 2482
  def getInventoryItemScannedInForPO(self, itemId, purchaseIds):
2483
    """
2484
    Parameters:
2485
     - itemId
2486
     - purchaseIds
2487
    """
2488
    self.send_getInventoryItemScannedInForPO(itemId, purchaseIds)
2489
    return self.recv_getInventoryItemScannedInForPO()
10120 manish.sha 2490
 
10690 manish.sha 2491
  def send_getInventoryItemScannedInForPO(self, itemId, purchaseIds):
2492
    self._oprot.writeMessageBegin('getInventoryItemScannedInForPO', TMessageType.CALL, self._seqid)
2493
    args = getInventoryItemScannedInForPO_args()
2494
    args.itemId = itemId
2495
    args.purchaseIds = purchaseIds
2496
    args.write(self._oprot)
2497
    self._oprot.writeMessageEnd()
2498
    self._oprot.trans.flush()
2499
 
2500
  def recv_getInventoryItemScannedInForPO(self, ):
2501
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2502
    if mtype == TMessageType.EXCEPTION:
2503
      x = TApplicationException()
2504
      x.read(self._iprot)
2505
      self._iprot.readMessageEnd()
2506
      raise x
2507
    result = getInventoryItemScannedInForPO_result()
2508
    result.read(self._iprot)
2509
    self._iprot.readMessageEnd()
2510
    if result.success is not None:
2511
      return result.success
2512
    if result.wex is not None:
2513
      raise result.wex
2514
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemScannedInForPO failed: unknown result");
2515
 
2516
  def getAmazonTransferredSkuDetails(self, itemIds):
2517
    """
2518
    Parameters:
2519
     - itemIds
2520
    """
2521
    self.send_getAmazonTransferredSkuDetails(itemIds)
2522
    return self.recv_getAmazonTransferredSkuDetails()
2523
 
2524
  def send_getAmazonTransferredSkuDetails(self, itemIds):
2525
    self._oprot.writeMessageBegin('getAmazonTransferredSkuDetails', TMessageType.CALL, self._seqid)
2526
    args = getAmazonTransferredSkuDetails_args()
2527
    args.itemIds = itemIds
2528
    args.write(self._oprot)
2529
    self._oprot.writeMessageEnd()
2530
    self._oprot.trans.flush()
2531
 
2532
  def recv_getAmazonTransferredSkuDetails(self, ):
2533
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2534
    if mtype == TMessageType.EXCEPTION:
2535
      x = TApplicationException()
2536
      x.read(self._iprot)
2537
      self._iprot.readMessageEnd()
2538
      raise x
2539
    result = getAmazonTransferredSkuDetails_result()
2540
    result.read(self._iprot)
2541
    self._iprot.readMessageEnd()
2542
    if result.success is not None:
2543
      return result.success
2544
    if result.wex is not None:
2545
      raise result.wex
2546
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonTransferredSkuDetails failed: unknown result");
2547
 
2548
  def getScansforPurchase(self, purchaseId, scanType):
2549
    """
2550
    Parameters:
2551
     - purchaseId
2552
     - scanType
2553
    """
2554
    self.send_getScansforPurchase(purchaseId, scanType)
2555
    return self.recv_getScansforPurchase()
2556
 
2557
  def send_getScansforPurchase(self, purchaseId, scanType):
2558
    self._oprot.writeMessageBegin('getScansforPurchase', TMessageType.CALL, self._seqid)
2559
    args = getScansforPurchase_args()
2560
    args.purchaseId = purchaseId
2561
    args.scanType = scanType
2562
    args.write(self._oprot)
2563
    self._oprot.writeMessageEnd()
2564
    self._oprot.trans.flush()
2565
 
2566
  def recv_getScansforPurchase(self, ):
2567
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2568
    if mtype == TMessageType.EXCEPTION:
2569
      x = TApplicationException()
2570
      x.read(self._iprot)
2571
      self._iprot.readMessageEnd()
2572
      raise x
2573
    result = getScansforPurchase_result()
2574
    result.read(self._iprot)
2575
    self._iprot.readMessageEnd()
2576
    if result.success is not None:
2577
      return result.success
2578
    if result.wex is not None:
2579
      raise result.wex
2580
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScansforPurchase failed: unknown result");
2581
 
10864 manish.sha 2582
  def getCurrentBadQuantityForItem(self, itemId, currentWarehouseId, physicalWarehouseId):
2583
    """
2584
    Parameters:
2585
     - itemId
2586
     - currentWarehouseId
2587
     - physicalWarehouseId
2588
    """
2589
    self.send_getCurrentBadQuantityForItem(itemId, currentWarehouseId, physicalWarehouseId)
2590
    return self.recv_getCurrentBadQuantityForItem()
10690 manish.sha 2591
 
10864 manish.sha 2592
  def send_getCurrentBadQuantityForItem(self, itemId, currentWarehouseId, physicalWarehouseId):
2593
    self._oprot.writeMessageBegin('getCurrentBadQuantityForItem', TMessageType.CALL, self._seqid)
2594
    args = getCurrentBadQuantityForItem_args()
2595
    args.itemId = itemId
2596
    args.currentWarehouseId = currentWarehouseId
2597
    args.physicalWarehouseId = physicalWarehouseId
2598
    args.write(self._oprot)
2599
    self._oprot.writeMessageEnd()
2600
    self._oprot.trans.flush()
2601
 
2602
  def recv_getCurrentBadQuantityForItem(self, ):
2603
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2604
    if mtype == TMessageType.EXCEPTION:
2605
      x = TApplicationException()
2606
      x.read(self._iprot)
2607
      self._iprot.readMessageEnd()
2608
      raise x
2609
    result = getCurrentBadQuantityForItem_result()
2610
    result.read(self._iprot)
2611
    self._iprot.readMessageEnd()
2612
    if result.success is not None:
2613
      return result.success
2614
    if result.wex is not None:
2615
      raise result.wex
2616
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentBadQuantityForItem failed: unknown result");
2617
 
2618
  def scanForBadPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
2619
    """
2620
    Parameters:
2621
     - saleReturnItems
2622
     - vendorId
2623
     - billingWarehouseId
2624
    """
2625
    self.send_scanForBadPurchaseReturn(saleReturnItems, vendorId, billingWarehouseId)
2626
    return self.recv_scanForBadPurchaseReturn()
2627
 
2628
  def send_scanForBadPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):
2629
    self._oprot.writeMessageBegin('scanForBadPurchaseReturn', TMessageType.CALL, self._seqid)
2630
    args = scanForBadPurchaseReturn_args()
2631
    args.saleReturnItems = saleReturnItems
2632
    args.vendorId = vendorId
2633
    args.billingWarehouseId = billingWarehouseId
2634
    args.write(self._oprot)
2635
    self._oprot.writeMessageEnd()
2636
    self._oprot.trans.flush()
2637
 
2638
  def recv_scanForBadPurchaseReturn(self, ):
2639
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2640
    if mtype == TMessageType.EXCEPTION:
2641
      x = TApplicationException()
2642
      x.read(self._iprot)
2643
      self._iprot.readMessageEnd()
2644
      raise x
2645
    result = scanForBadPurchaseReturn_result()
2646
    result.read(self._iprot)
2647
    self._iprot.readMessageEnd()
2648
    if result.success is not None:
2649
      return result.success
2650
    if result.ex is not None:
2651
      raise result.ex
2652
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForBadPurchaseReturn failed: unknown result");
2653
 
2654
  def getItemsInPurchaseReturn(self, purchaseReturnId):
2655
    """
2656
    Parameters:
2657
     - purchaseReturnId
2658
    """
2659
    self.send_getItemsInPurchaseReturn(purchaseReturnId)
2660
    return self.recv_getItemsInPurchaseReturn()
2661
 
2662
  def send_getItemsInPurchaseReturn(self, purchaseReturnId):
2663
    self._oprot.writeMessageBegin('getItemsInPurchaseReturn', TMessageType.CALL, self._seqid)
2664
    args = getItemsInPurchaseReturn_args()
2665
    args.purchaseReturnId = purchaseReturnId
2666
    args.write(self._oprot)
2667
    self._oprot.writeMessageEnd()
2668
    self._oprot.trans.flush()
2669
 
2670
  def recv_getItemsInPurchaseReturn(self, ):
2671
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2672
    if mtype == TMessageType.EXCEPTION:
2673
      x = TApplicationException()
2674
      x.read(self._iprot)
2675
      self._iprot.readMessageEnd()
2676
      raise x
2677
    result = getItemsInPurchaseReturn_result()
2678
    result.read(self._iprot)
2679
    self._iprot.readMessageEnd()
2680
    if result.success is not None:
2681
      return result.success
2682
    if result.ex is not None:
2683
      raise result.ex
2684
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsInPurchaseReturn failed: unknown result");
2685
 
10886 manish.sha 2686
  def getScansForInventoryItem(self, inventoryItemId, type):
2687
    """
2688
    Parameters:
2689
     - inventoryItemId
2690
     - type
2691
    """
2692
    self.send_getScansForInventoryItem(inventoryItemId, type)
2693
    return self.recv_getScansForInventoryItem()
10864 manish.sha 2694
 
10886 manish.sha 2695
  def send_getScansForInventoryItem(self, inventoryItemId, type):
2696
    self._oprot.writeMessageBegin('getScansForInventoryItem', TMessageType.CALL, self._seqid)
2697
    args = getScansForInventoryItem_args()
2698
    args.inventoryItemId = inventoryItemId
2699
    args.type = type
2700
    args.write(self._oprot)
2701
    self._oprot.writeMessageEnd()
2702
    self._oprot.trans.flush()
2703
 
2704
  def recv_getScansForInventoryItem(self, ):
2705
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2706
    if mtype == TMessageType.EXCEPTION:
2707
      x = TApplicationException()
2708
      x.read(self._iprot)
2709
      self._iprot.readMessageEnd()
2710
      raise x
2711
    result = getScansForInventoryItem_result()
2712
    result.read(self._iprot)
2713
    self._iprot.readMessageEnd()
2714
    if result.success is not None:
2715
      return result.success
2716
    if result.ex is not None:
2717
      raise result.ex
2718
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getScansForInventoryItem failed: unknown result");
2719
 
2720
 
3376 rajveer 2721
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2821 chandransh 2722
  def __init__(self, handler):
3376 rajveer 2723
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
4501 mandeep.dh 2724
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
5361 mandeep.dh 2725
    self._processMap["getNonSeralizedInventoryItem"] = Processor.process_getNonSeralizedInventoryItem
4501 mandeep.dh 2726
    self._processMap["scan"] = Processor.process_scan
10489 amar.kumar 2727
    self._processMap["genericScan"] = Processor.process_genericScan
4501 mandeep.dh 2728
    self._processMap["scanSerializedItemForOrder"] = Processor.process_scanSerializedItemForOrder
2729
    self._processMap["scanForOrder"] = Processor.process_scanForOrder
2730
    self._processMap["createItemNumberMapping"] = Processor.process_createItemNumberMapping
4620 amit.gupta 2731
    self._processMap["getItemNumbers"] = Processor.process_getItemNumbers
5110 mandeep.dh 2732
    self._processMap["getItemIds"] = Processor.process_getItemIds
5185 mandeep.dh 2733
    self._processMap["getInventoryItemsFromLastScanType"] = Processor.process_getInventoryItemsFromLastScanType
2734
    self._processMap["getInventoryItemFromId"] = Processor.process_getInventoryItemFromId
5372 mandeep.dh 2735
    self._processMap["getPurchaseScans"] = Processor.process_getPurchaseScans
7216 amar.kumar 2736
    self._processMap["getPurchaseScansByGrnDate"] = Processor.process_getPurchaseScansByGrnDate
10407 amar.kumar 2737
    self._processMap["getEmptyGrnsByDate"] = Processor.process_getEmptyGrnsByDate
5496 mandeep.dh 2738
    self._processMap["fetchScansPerInvoiceNumber"] = Processor.process_fetchScansPerInvoiceNumber
5620 mandeep.dh 2739
    self._processMap["getInventoryItemFromOrder"] = Processor.process_getInventoryItemFromOrder
5711 mandeep.dh 2740
    self._processMap["getInventoryAge"] = Processor.process_getInventoryAge
6361 rajveer 2741
    self._processMap["getInventoryScansForItem"] = Processor.process_getInventoryScansForItem
2742
    self._processMap["getScanRecordsForSerialNumber"] = Processor.process_getScanRecordsForSerialNumber
6467 amar.kumar 2743
    self._processMap["scanForPurchaseReturn"] = Processor.process_scanForPurchaseReturn
6630 amar.kumar 2744
    self._processMap["scanForLostItem"] = Processor.process_scanForLostItem
2745
    self._processMap["getCurrentSerializedInventoryByScans"] = Processor.process_getCurrentSerializedInventoryByScans
2746
    self._processMap["getCurrentNonSerializedInventoryByScans"] = Processor.process_getCurrentNonSerializedInventoryByScans
6762 amar.kumar 2747
    self._processMap["getHistoricSerializedInventoryByScans"] = Processor.process_getHistoricSerializedInventoryByScans
2748
    self._processMap["getHistoricNonSerializedInventoryByScans"] = Processor.process_getHistoricNonSerializedInventoryByScans
10407 amar.kumar 2749
    self._processMap["getOurHistoricSerializedInventoryByScans"] = Processor.process_getOurHistoricSerializedInventoryByScans
2750
    self._processMap["getOurHistoricNonSerializedInventoryByScans"] = Processor.process_getOurHistoricNonSerializedInventoryByScans
6762 amar.kumar 2751
    self._processMap["scanForOursExternalSale"] = Processor.process_scanForOursExternalSale
2752
    self._processMap["scanForOursExternalSaleReturn"] = Processor.process_scanForOursExternalSaleReturn
6880 amar.kumar 2753
    self._processMap["getMovementNonSerializedInventoryByScans"] = Processor.process_getMovementNonSerializedInventoryByScans
2754
    self._processMap["getMovementSerializedInventoryByScans"] = Processor.process_getMovementSerializedInventoryByScans
7216 amar.kumar 2755
    self._processMap["getCompleteMovementSerializedInventoryByScans"] = Processor.process_getCompleteMovementSerializedInventoryByScans
2756
    self._processMap["getCompleteMovementNonSerializedInventoryByScans"] = Processor.process_getCompleteMovementNonSerializedInventoryByScans
7190 amar.kumar 2757
    self._processMap["scanfreebie"] = Processor.process_scanfreebie
7199 amar.kumar 2758
    self._processMap["reshipfreebie"] = Processor.process_reshipfreebie
7410 amar.kumar 2759
    self._processMap["isItemTransferAllowed"] = Processor.process_isItemTransferAllowed
2760
    self._processMap["createTransferLot"] = Processor.process_createTransferLot
2761
    self._processMap["getTransferLot"] = Processor.process_getTransferLot
2762
    self._processMap["markTransferLotAsReceived"] = Processor.process_markTransferLotAsReceived
2763
    self._processMap["getTransferLotsByDate"] = Processor.process_getTransferLotsByDate
2764
    self._processMap["getAllowedDestinationWarehousesForTransfer"] = Processor.process_getAllowedDestinationWarehousesForTransfer
2765
    self._processMap["getItemsInTransferLot"] = Processor.process_getItemsInTransferLot
2766
    self._processMap["markItemsAsReceivedForTransferLot"] = Processor.process_markItemsAsReceivedForTransferLot
2767
    self._processMap["updateTransferLotAfterItemReceive"] = Processor.process_updateTransferLotAfterItemReceive
7459 amar.kumar 2768
    self._processMap["scanForTransferOut"] = Processor.process_scanForTransferOut
2769
    self._processMap["scanForTransferIn"] = Processor.process_scanForTransferIn
2770
    self._processMap["scanForOursThirdPartyReceive"] = Processor.process_scanForOursThirdPartyReceive
7574 amar.kumar 2771
    self._processMap["getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse"] = Processor.process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse
7672 rajveer 2772
    self._processMap["getInTransitInventory"] = Processor.process_getInTransitInventory
7968 amar.kumar 2773
    self._processMap["isItemAvailableForSale"] = Processor.process_isItemAvailableForSale
2774
    self._processMap["getHistoricBadInventoryByScans"] = Processor.process_getHistoricBadInventoryByScans
8565 amar.kumar 2775
    self._processMap["scanForBadSale"] = Processor.process_scanForBadSale
10120 manish.sha 2776
    self._processMap["getTransferLotItemsForMarkReceive"] = Processor.process_getTransferLotItemsForMarkReceive
2777
    self._processMap["markItemsAsReceivedForTransferLotPartial"] = Processor.process_markItemsAsReceivedForTransferLotPartial
2778
    self._processMap["markTransferLotAsReceivedPartial"] = Processor.process_markTransferLotAsReceivedPartial
10690 manish.sha 2779
    self._processMap["getInventoryItemScannedInForPO"] = Processor.process_getInventoryItemScannedInForPO
2780
    self._processMap["getAmazonTransferredSkuDetails"] = Processor.process_getAmazonTransferredSkuDetails
2781
    self._processMap["getScansforPurchase"] = Processor.process_getScansforPurchase
10864 manish.sha 2782
    self._processMap["getCurrentBadQuantityForItem"] = Processor.process_getCurrentBadQuantityForItem
2783
    self._processMap["scanForBadPurchaseReturn"] = Processor.process_scanForBadPurchaseReturn
2784
    self._processMap["getItemsInPurchaseReturn"] = Processor.process_getItemsInPurchaseReturn
10886 manish.sha 2785
    self._processMap["getScansForInventoryItem"] = Processor.process_getScansForInventoryItem
2821 chandransh 2786
 
2787
  def process(self, iprot, oprot):
2788
    (name, type, seqid) = iprot.readMessageBegin()
2789
    if name not in self._processMap:
2790
      iprot.skip(TType.STRUCT)
2791
      iprot.readMessageEnd()
2792
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2793
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2794
      x.write(oprot)
2795
      oprot.writeMessageEnd()
2796
      oprot.trans.flush()
2797
      return
2798
    else:
2799
      self._processMap[name](self, seqid, iprot, oprot)
2800
    return True
2801
 
4501 mandeep.dh 2802
  def process_getInventoryItem(self, seqid, iprot, oprot):
2803
    args = getInventoryItem_args()
2832 chandransh 2804
    args.read(iprot)
2805
    iprot.readMessageEnd()
4501 mandeep.dh 2806
    result = getInventoryItem_result()
4541 mandeep.dh 2807
    try:
2808
      result.success = self._handler.getInventoryItem(args.serialNumber)
2809
    except WarehouseServiceException, wex:
2810
      result.wex = wex
4501 mandeep.dh 2811
    oprot.writeMessageBegin("getInventoryItem", TMessageType.REPLY, seqid)
2832 chandransh 2812
    result.write(oprot)
2813
    oprot.writeMessageEnd()
2814
    oprot.trans.flush()
2815
 
5361 mandeep.dh 2816
  def process_getNonSeralizedInventoryItem(self, seqid, iprot, oprot):
2817
    args = getNonSeralizedInventoryItem_args()
2821 chandransh 2818
    args.read(iprot)
2819
    iprot.readMessageEnd()
5361 mandeep.dh 2820
    result = getNonSeralizedInventoryItem_result()
2821
    try:
8565 amar.kumar 2822
      result.success = self._handler.getNonSeralizedInventoryItem(args.itemNumber, args.itemId, args.fulfilmentWarehouseId, args.billingWarehouseId)
5361 mandeep.dh 2823
    except WarehouseServiceException, wex:
2824
      result.wex = wex
2825
    oprot.writeMessageBegin("getNonSeralizedInventoryItem", TMessageType.REPLY, seqid)
2821 chandransh 2826
    result.write(oprot)
2827
    oprot.writeMessageEnd()
2828
    oprot.trans.flush()
2829
 
4501 mandeep.dh 2830
  def process_scan(self, seqid, iprot, oprot):
2831
    args = scan_args()
3383 chandransh 2832
    args.read(iprot)
2833
    iprot.readMessageEnd()
4501 mandeep.dh 2834
    result = scan_result()
3383 chandransh 2835
    try:
7410 amar.kumar 2836
      self._handler.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId, args.transferLotId)
3383 chandransh 2837
    except WarehouseServiceException, wex:
2838
      result.wex = wex
4501 mandeep.dh 2839
    oprot.writeMessageBegin("scan", TMessageType.REPLY, seqid)
3383 chandransh 2840
    result.write(oprot)
2841
    oprot.writeMessageEnd()
2842
    oprot.trans.flush()
2843
 
10489 amar.kumar 2844
  def process_genericScan(self, seqid, iprot, oprot):
2845
    args = genericScan_args()
2846
    args.read(iprot)
2847
    iprot.readMessageEnd()
2848
    result = genericScan_result()
2849
    try:
2850
      self._handler.genericScan(args.inventoryItem, args.scan)
2851
    except WarehouseServiceException, wex:
2852
      result.wex = wex
2853
    oprot.writeMessageBegin("genericScan", TMessageType.REPLY, seqid)
2854
    result.write(oprot)
2855
    oprot.writeMessageEnd()
2856
    oprot.trans.flush()
2857
 
4501 mandeep.dh 2858
  def process_scanSerializedItemForOrder(self, seqid, iprot, oprot):
2859
    args = scanSerializedItemForOrder_args()
2821 chandransh 2860
    args.read(iprot)
2861
    iprot.readMessageEnd()
4501 mandeep.dh 2862
    result = scanSerializedItemForOrder_result()
2821 chandransh 2863
    try:
5110 mandeep.dh 2864
      result.success = self._handler.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId)
2821 chandransh 2865
    except WarehouseServiceException, wex:
2866
      result.wex = wex
4501 mandeep.dh 2867
    oprot.writeMessageBegin("scanSerializedItemForOrder", TMessageType.REPLY, seqid)
2821 chandransh 2868
    result.write(oprot)
2869
    oprot.writeMessageEnd()
2870
    oprot.trans.flush()
2871
 
4501 mandeep.dh 2872
  def process_scanForOrder(self, seqid, iprot, oprot):
2873
    args = scanForOrder_args()
2821 chandransh 2874
    args.read(iprot)
2875
    iprot.readMessageEnd()
4501 mandeep.dh 2876
    result = scanForOrder_result()
2821 chandransh 2877
    try:
5361 mandeep.dh 2878
      result.success = self._handler.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId)
2821 chandransh 2879
    except WarehouseServiceException, wex:
2880
      result.wex = wex
4501 mandeep.dh 2881
    oprot.writeMessageBegin("scanForOrder", TMessageType.REPLY, seqid)
2821 chandransh 2882
    result.write(oprot)
2883
    oprot.writeMessageEnd()
2884
    oprot.trans.flush()
2885
 
4501 mandeep.dh 2886
  def process_createItemNumberMapping(self, seqid, iprot, oprot):
2887
    args = createItemNumberMapping_args()
2888
    args.read(iprot)
2889
    iprot.readMessageEnd()
2890
    result = createItemNumberMapping_result()
2891
    self._handler.createItemNumberMapping(args.itemNumber, args.itemId)
2892
    oprot.writeMessageBegin("createItemNumberMapping", TMessageType.REPLY, seqid)
2893
    result.write(oprot)
2894
    oprot.writeMessageEnd()
2895
    oprot.trans.flush()
2821 chandransh 2896
 
4620 amit.gupta 2897
  def process_getItemNumbers(self, seqid, iprot, oprot):
2898
    args = getItemNumbers_args()
2899
    args.read(iprot)
2900
    iprot.readMessageEnd()
2901
    result = getItemNumbers_result()
2902
    result.success = self._handler.getItemNumbers(args.itemId)
2903
    oprot.writeMessageBegin("getItemNumbers", TMessageType.REPLY, seqid)
2904
    result.write(oprot)
2905
    oprot.writeMessageEnd()
2906
    oprot.trans.flush()
4501 mandeep.dh 2907
 
5110 mandeep.dh 2908
  def process_getItemIds(self, seqid, iprot, oprot):
2909
    args = getItemIds_args()
2910
    args.read(iprot)
2911
    iprot.readMessageEnd()
2912
    result = getItemIds_result()
2913
    result.success = self._handler.getItemIds(args.itemNumber)
2914
    oprot.writeMessageBegin("getItemIds", TMessageType.REPLY, seqid)
2915
    result.write(oprot)
2916
    oprot.writeMessageEnd()
2917
    oprot.trans.flush()
4620 amit.gupta 2918
 
5185 mandeep.dh 2919
  def process_getInventoryItemsFromLastScanType(self, seqid, iprot, oprot):
2920
    args = getInventoryItemsFromLastScanType_args()
2921
    args.read(iprot)
2922
    iprot.readMessageEnd()
2923
    result = getInventoryItemsFromLastScanType_result()
2924
    try:
2925
      result.success = self._handler.getInventoryItemsFromLastScanType(args.lastScanType)
2926
    except WarehouseServiceException, wex:
2927
      result.wex = wex
2928
    oprot.writeMessageBegin("getInventoryItemsFromLastScanType", TMessageType.REPLY, seqid)
2929
    result.write(oprot)
2930
    oprot.writeMessageEnd()
2931
    oprot.trans.flush()
5110 mandeep.dh 2932
 
5185 mandeep.dh 2933
  def process_getInventoryItemFromId(self, seqid, iprot, oprot):
2934
    args = getInventoryItemFromId_args()
2935
    args.read(iprot)
2936
    iprot.readMessageEnd()
2937
    result = getInventoryItemFromId_result()
2938
    try:
2939
      result.success = self._handler.getInventoryItemFromId(args.inventoryItemId)
2940
    except WarehouseServiceException, wex:
2941
      result.wex = wex
2942
    oprot.writeMessageBegin("getInventoryItemFromId", TMessageType.REPLY, seqid)
2943
    result.write(oprot)
2944
    oprot.writeMessageEnd()
2945
    oprot.trans.flush()
2946
 
5372 mandeep.dh 2947
  def process_getPurchaseScans(self, seqid, iprot, oprot):
2948
    args = getPurchaseScans_args()
2949
    args.read(iprot)
2950
    iprot.readMessageEnd()
2951
    result = getPurchaseScans_result()
2952
    result.success = self._handler.getPurchaseScans(args.startDate, args.endDate)
2953
    oprot.writeMessageBegin("getPurchaseScans", TMessageType.REPLY, seqid)
2954
    result.write(oprot)
2955
    oprot.writeMessageEnd()
2956
    oprot.trans.flush()
5185 mandeep.dh 2957
 
7216 amar.kumar 2958
  def process_getPurchaseScansByGrnDate(self, seqid, iprot, oprot):
2959
    args = getPurchaseScansByGrnDate_args()
2960
    args.read(iprot)
2961
    iprot.readMessageEnd()
2962
    result = getPurchaseScansByGrnDate_result()
2963
    result.success = self._handler.getPurchaseScansByGrnDate(args.startDate, args.endDate)
2964
    oprot.writeMessageBegin("getPurchaseScansByGrnDate", TMessageType.REPLY, seqid)
2965
    result.write(oprot)
2966
    oprot.writeMessageEnd()
2967
    oprot.trans.flush()
2968
 
10407 amar.kumar 2969
  def process_getEmptyGrnsByDate(self, seqid, iprot, oprot):
2970
    args = getEmptyGrnsByDate_args()
2971
    args.read(iprot)
2972
    iprot.readMessageEnd()
2973
    result = getEmptyGrnsByDate_result()
2974
    result.success = self._handler.getEmptyGrnsByDate(args.startDate, args.endDate)
2975
    oprot.writeMessageBegin("getEmptyGrnsByDate", TMessageType.REPLY, seqid)
2976
    result.write(oprot)
2977
    oprot.writeMessageEnd()
2978
    oprot.trans.flush()
2979
 
5496 mandeep.dh 2980
  def process_fetchScansPerInvoiceNumber(self, seqid, iprot, oprot):
2981
    args = fetchScansPerInvoiceNumber_args()
2982
    args.read(iprot)
2983
    iprot.readMessageEnd()
2984
    result = fetchScansPerInvoiceNumber_result()
2985
    result.success = self._handler.fetchScansPerInvoiceNumber(args.date)
2986
    oprot.writeMessageBegin("fetchScansPerInvoiceNumber", TMessageType.REPLY, seqid)
2987
    result.write(oprot)
2988
    oprot.writeMessageEnd()
2989
    oprot.trans.flush()
5372 mandeep.dh 2990
 
5620 mandeep.dh 2991
  def process_getInventoryItemFromOrder(self, seqid, iprot, oprot):
2992
    args = getInventoryItemFromOrder_args()
2993
    args.read(iprot)
2994
    iprot.readMessageEnd()
2995
    result = getInventoryItemFromOrder_result()
2996
    try:
2997
      result.success = self._handler.getInventoryItemFromOrder(args.orderId)
2998
    except WarehouseServiceException, we:
2999
      result.we = we
3000
    oprot.writeMessageBegin("getInventoryItemFromOrder", TMessageType.REPLY, seqid)
3001
    result.write(oprot)
3002
    oprot.writeMessageEnd()
3003
    oprot.trans.flush()
5496 mandeep.dh 3004
 
5711 mandeep.dh 3005
  def process_getInventoryAge(self, seqid, iprot, oprot):
3006
    args = getInventoryAge_args()
3007
    args.read(iprot)
3008
    iprot.readMessageEnd()
3009
    result = getInventoryAge_result()
3010
    result.success = self._handler.getInventoryAge()
3011
    oprot.writeMessageBegin("getInventoryAge", TMessageType.REPLY, seqid)
3012
    result.write(oprot)
3013
    oprot.writeMessageEnd()
3014
    oprot.trans.flush()
5620 mandeep.dh 3015
 
6361 rajveer 3016
  def process_getInventoryScansForItem(self, seqid, iprot, oprot):
3017
    args = getInventoryScansForItem_args()
3018
    args.read(iprot)
3019
    iprot.readMessageEnd()
3020
    result = getInventoryScansForItem_result()
3021
    result.success = self._handler.getInventoryScansForItem(args.itemId, args.fromDate, args.toDate)
3022
    oprot.writeMessageBegin("getInventoryScansForItem", TMessageType.REPLY, seqid)
3023
    result.write(oprot)
3024
    oprot.writeMessageEnd()
3025
    oprot.trans.flush()
5711 mandeep.dh 3026
 
6361 rajveer 3027
  def process_getScanRecordsForSerialNumber(self, seqid, iprot, oprot):
3028
    args = getScanRecordsForSerialNumber_args()
3029
    args.read(iprot)
3030
    iprot.readMessageEnd()
3031
    result = getScanRecordsForSerialNumber_result()
3032
    result.success = self._handler.getScanRecordsForSerialNumber(args.serialNumber)
3033
    oprot.writeMessageBegin("getScanRecordsForSerialNumber", TMessageType.REPLY, seqid)
3034
    result.write(oprot)
3035
    oprot.writeMessageEnd()
3036
    oprot.trans.flush()
3037
 
6467 amar.kumar 3038
  def process_scanForPurchaseReturn(self, seqid, iprot, oprot):
3039
    args = scanForPurchaseReturn_args()
3040
    args.read(iprot)
3041
    iprot.readMessageEnd()
3042
    result = scanForPurchaseReturn_result()
3043
    try:
10864 manish.sha 3044
      result.success = self._handler.scanForPurchaseReturn(args.saleReturnItems, args.vendorId, args.billingWarehouseId)
6467 amar.kumar 3045
    except WarehouseServiceException, ex:
3046
      result.ex = ex
3047
    oprot.writeMessageBegin("scanForPurchaseReturn", TMessageType.REPLY, seqid)
3048
    result.write(oprot)
3049
    oprot.writeMessageEnd()
3050
    oprot.trans.flush()
6361 rajveer 3051
 
6630 amar.kumar 3052
  def process_scanForLostItem(self, seqid, iprot, oprot):
3053
    args = scanForLostItem_args()
3054
    args.read(iprot)
3055
    iprot.readMessageEnd()
3056
    result = scanForLostItem_result()
3057
    try:
7718 amar.kumar 3058
      self._handler.scanForLostItem(args.lostItems, args.vendorId, args.billingWarehouseId)
6630 amar.kumar 3059
    except WarehouseServiceException, ex:
3060
      result.ex = ex
3061
    oprot.writeMessageBegin("scanForLostItem", TMessageType.REPLY, seqid)
3062
    result.write(oprot)
3063
    oprot.writeMessageEnd()
3064
    oprot.trans.flush()
6467 amar.kumar 3065
 
6630 amar.kumar 3066
  def process_getCurrentSerializedInventoryByScans(self, seqid, iprot, oprot):
3067
    args = getCurrentSerializedInventoryByScans_args()
3068
    args.read(iprot)
3069
    iprot.readMessageEnd()
3070
    result = getCurrentSerializedInventoryByScans_result()
7715 vikram.rag 3071
    result.success = self._handler.getCurrentSerializedInventoryByScans(args.physicalWarehouseId)
6630 amar.kumar 3072
    oprot.writeMessageBegin("getCurrentSerializedInventoryByScans", TMessageType.REPLY, seqid)
3073
    result.write(oprot)
3074
    oprot.writeMessageEnd()
3075
    oprot.trans.flush()
3076
 
3077
  def process_getCurrentNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3078
    args = getCurrentNonSerializedInventoryByScans_args()
3079
    args.read(iprot)
3080
    iprot.readMessageEnd()
3081
    result = getCurrentNonSerializedInventoryByScans_result()
7715 vikram.rag 3082
    result.success = self._handler.getCurrentNonSerializedInventoryByScans(args.physicalWarehouseId)
6630 amar.kumar 3083
    oprot.writeMessageBegin("getCurrentNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3084
    result.write(oprot)
3085
    oprot.writeMessageEnd()
3086
    oprot.trans.flush()
3087
 
6762 amar.kumar 3088
  def process_getHistoricSerializedInventoryByScans(self, seqid, iprot, oprot):
3089
    args = getHistoricSerializedInventoryByScans_args()
3090
    args.read(iprot)
3091
    iprot.readMessageEnd()
3092
    result = getHistoricSerializedInventoryByScans_result()
3093
    result.success = self._handler.getHistoricSerializedInventoryByScans(args.date)
3094
    oprot.writeMessageBegin("getHistoricSerializedInventoryByScans", TMessageType.REPLY, seqid)
3095
    result.write(oprot)
3096
    oprot.writeMessageEnd()
3097
    oprot.trans.flush()
6630 amar.kumar 3098
 
6762 amar.kumar 3099
  def process_getHistoricNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3100
    args = getHistoricNonSerializedInventoryByScans_args()
3101
    args.read(iprot)
3102
    iprot.readMessageEnd()
3103
    result = getHistoricNonSerializedInventoryByScans_result()
3104
    result.success = self._handler.getHistoricNonSerializedInventoryByScans(args.date)
3105
    oprot.writeMessageBegin("getHistoricNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3106
    result.write(oprot)
3107
    oprot.writeMessageEnd()
3108
    oprot.trans.flush()
3109
 
10407 amar.kumar 3110
  def process_getOurHistoricSerializedInventoryByScans(self, seqid, iprot, oprot):
3111
    args = getOurHistoricSerializedInventoryByScans_args()
3112
    args.read(iprot)
3113
    iprot.readMessageEnd()
3114
    result = getOurHistoricSerializedInventoryByScans_result()
3115
    result.success = self._handler.getOurHistoricSerializedInventoryByScans(args.date)
3116
    oprot.writeMessageBegin("getOurHistoricSerializedInventoryByScans", TMessageType.REPLY, seqid)
3117
    result.write(oprot)
3118
    oprot.writeMessageEnd()
3119
    oprot.trans.flush()
3120
 
3121
  def process_getOurHistoricNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3122
    args = getOurHistoricNonSerializedInventoryByScans_args()
3123
    args.read(iprot)
3124
    iprot.readMessageEnd()
3125
    result = getOurHistoricNonSerializedInventoryByScans_result()
3126
    result.success = self._handler.getOurHistoricNonSerializedInventoryByScans(args.date)
3127
    oprot.writeMessageBegin("getOurHistoricNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3128
    result.write(oprot)
3129
    oprot.writeMessageEnd()
3130
    oprot.trans.flush()
3131
 
6762 amar.kumar 3132
  def process_scanForOursExternalSale(self, seqid, iprot, oprot):
3133
    args = scanForOursExternalSale_args()
3134
    args.read(iprot)
3135
    iprot.readMessageEnd()
3136
    result = scanForOursExternalSale_result()
3137
    try:
7672 rajveer 3138
      result.success = self._handler.scanForOursExternalSale(args.itemId, args.serialNumber, args.itemNumber, args.invoiceNumber, args.warehouseId, args.unitPrice, args.nlc, args.orderId)
6762 amar.kumar 3139
    except WarehouseServiceException, ex:
3140
      result.ex = ex
3141
    oprot.writeMessageBegin("scanForOursExternalSale", TMessageType.REPLY, seqid)
3142
    result.write(oprot)
3143
    oprot.writeMessageEnd()
3144
    oprot.trans.flush()
3145
 
3146
  def process_scanForOursExternalSaleReturn(self, seqid, iprot, oprot):
3147
    args = scanForOursExternalSaleReturn_args()
3148
    args.read(iprot)
3149
    iprot.readMessageEnd()
3150
    result = scanForOursExternalSaleReturn_result()
7410 amar.kumar 3151
    try:
3152
      self._handler.scanForOursExternalSaleReturn(args.orderId, args.unitPrice)
3153
    except WarehouseServiceException, ex:
3154
      result.ex = ex
6762 amar.kumar 3155
    oprot.writeMessageBegin("scanForOursExternalSaleReturn", TMessageType.REPLY, seqid)
3156
    result.write(oprot)
3157
    oprot.writeMessageEnd()
3158
    oprot.trans.flush()
3159
 
6880 amar.kumar 3160
  def process_getMovementNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3161
    args = getMovementNonSerializedInventoryByScans_args()
3162
    args.read(iprot)
3163
    iprot.readMessageEnd()
3164
    result = getMovementNonSerializedInventoryByScans_result()
3165
    result.success = self._handler.getMovementNonSerializedInventoryByScans(args.startDate, args.endDate)
3166
    oprot.writeMessageBegin("getMovementNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3167
    result.write(oprot)
3168
    oprot.writeMessageEnd()
3169
    oprot.trans.flush()
6762 amar.kumar 3170
 
6880 amar.kumar 3171
  def process_getMovementSerializedInventoryByScans(self, seqid, iprot, oprot):
3172
    args = getMovementSerializedInventoryByScans_args()
3173
    args.read(iprot)
3174
    iprot.readMessageEnd()
3175
    result = getMovementSerializedInventoryByScans_result()
3176
    result.success = self._handler.getMovementSerializedInventoryByScans(args.startDate, args.endDate)
3177
    oprot.writeMessageBegin("getMovementSerializedInventoryByScans", TMessageType.REPLY, seqid)
3178
    result.write(oprot)
3179
    oprot.writeMessageEnd()
3180
    oprot.trans.flush()
3181
 
7216 amar.kumar 3182
  def process_getCompleteMovementSerializedInventoryByScans(self, seqid, iprot, oprot):
3183
    args = getCompleteMovementSerializedInventoryByScans_args()
3184
    args.read(iprot)
3185
    iprot.readMessageEnd()
3186
    result = getCompleteMovementSerializedInventoryByScans_result()
3187
    result.success = self._handler.getCompleteMovementSerializedInventoryByScans(args.startDate, args.endDate)
3188
    oprot.writeMessageBegin("getCompleteMovementSerializedInventoryByScans", TMessageType.REPLY, seqid)
3189
    result.write(oprot)
3190
    oprot.writeMessageEnd()
3191
    oprot.trans.flush()
3192
 
3193
  def process_getCompleteMovementNonSerializedInventoryByScans(self, seqid, iprot, oprot):
3194
    args = getCompleteMovementNonSerializedInventoryByScans_args()
3195
    args.read(iprot)
3196
    iprot.readMessageEnd()
3197
    result = getCompleteMovementNonSerializedInventoryByScans_result()
3198
    result.success = self._handler.getCompleteMovementNonSerializedInventoryByScans(args.startDate, args.endDate)
3199
    oprot.writeMessageBegin("getCompleteMovementNonSerializedInventoryByScans", TMessageType.REPLY, seqid)
3200
    result.write(oprot)
3201
    oprot.writeMessageEnd()
3202
    oprot.trans.flush()
3203
 
7190 amar.kumar 3204
  def process_scanfreebie(self, seqid, iprot, oprot):
3205
    args = scanfreebie_args()
3206
    args.read(iprot)
3207
    iprot.readMessageEnd()
3208
    result = scanfreebie_result()
3209
    try:
3210
      result.success = self._handler.scanfreebie(args.orderId, args.freebieItemId, args.freebieWarehouseId, args.scanType)
3211
    except WarehouseServiceException, wex:
3212
      result.wex = wex
3213
    oprot.writeMessageBegin("scanfreebie", TMessageType.REPLY, seqid)
3214
    result.write(oprot)
3215
    oprot.writeMessageEnd()
3216
    oprot.trans.flush()
6880 amar.kumar 3217
 
7199 amar.kumar 3218
  def process_reshipfreebie(self, seqid, iprot, oprot):
3219
    args = reshipfreebie_args()
3220
    args.read(iprot)
3221
    iprot.readMessageEnd()
3222
    result = reshipfreebie_result()
3223
    try:
3224
      self._handler.reshipfreebie(args.oldOrderId, args.newOrderId, args.freebieItemId, args.scanType)
3225
    except WarehouseServiceException, wex:
3226
      result.wex = wex
3227
    oprot.writeMessageBegin("reshipfreebie", TMessageType.REPLY, seqid)
3228
    result.write(oprot)
3229
    oprot.writeMessageEnd()
3230
    oprot.trans.flush()
7190 amar.kumar 3231
 
7410 amar.kumar 3232
  def process_isItemTransferAllowed(self, seqid, iprot, oprot):
3233
    args = isItemTransferAllowed_args()
3234
    args.read(iprot)
3235
    iprot.readMessageEnd()
3236
    result = isItemTransferAllowed_result()
3237
    result.success = self._handler.isItemTransferAllowed(args.warehouseId, args.transferWarehouseId)
3238
    oprot.writeMessageBegin("isItemTransferAllowed", TMessageType.REPLY, seqid)
3239
    result.write(oprot)
3240
    oprot.writeMessageEnd()
3241
    oprot.trans.flush()
7199 amar.kumar 3242
 
7410 amar.kumar 3243
  def process_createTransferLot(self, seqid, iprot, oprot):
3244
    args = createTransferLot_args()
3245
    args.read(iprot)
3246
    iprot.readMessageEnd()
3247
    result = createTransferLot_result()
3248
    try:
3249
      result.success = self._handler.createTransferLot(args.originWarehouseId, args.destWarehouseId)
3250
    except WarehouseServiceException, wex:
3251
      result.wex = wex
3252
    oprot.writeMessageBegin("createTransferLot", TMessageType.REPLY, seqid)
3253
    result.write(oprot)
3254
    oprot.writeMessageEnd()
3255
    oprot.trans.flush()
3256
 
3257
  def process_getTransferLot(self, seqid, iprot, oprot):
3258
    args = getTransferLot_args()
3259
    args.read(iprot)
3260
    iprot.readMessageEnd()
3261
    result = getTransferLot_result()
3262
    try:
3263
      result.success = self._handler.getTransferLot(args.transferLotId)
3264
    except WarehouseServiceException, wex:
3265
      result.wex = wex
3266
    oprot.writeMessageBegin("getTransferLot", TMessageType.REPLY, seqid)
3267
    result.write(oprot)
3268
    oprot.writeMessageEnd()
3269
    oprot.trans.flush()
3270
 
3271
  def process_markTransferLotAsReceived(self, seqid, iprot, oprot):
3272
    args = markTransferLotAsReceived_args()
3273
    args.read(iprot)
3274
    iprot.readMessageEnd()
3275
    result = markTransferLotAsReceived_result()
3276
    try:
3277
      self._handler.markTransferLotAsReceived(args.id, args.remoteTransferRefNumber)
3278
    except WarehouseServiceException, wex:
3279
      result.wex = wex
3280
    oprot.writeMessageBegin("markTransferLotAsReceived", TMessageType.REPLY, seqid)
3281
    result.write(oprot)
3282
    oprot.writeMessageEnd()
3283
    oprot.trans.flush()
3284
 
3285
  def process_getTransferLotsByDate(self, seqid, iprot, oprot):
3286
    args = getTransferLotsByDate_args()
3287
    args.read(iprot)
3288
    iprot.readMessageEnd()
3289
    result = getTransferLotsByDate_result()
3290
    try:
3291
      result.success = self._handler.getTransferLotsByDate(args.fromDate, args.toDate)
3292
    except WarehouseServiceException, wex:
3293
      result.wex = wex
3294
    oprot.writeMessageBegin("getTransferLotsByDate", TMessageType.REPLY, seqid)
3295
    result.write(oprot)
3296
    oprot.writeMessageEnd()
3297
    oprot.trans.flush()
3298
 
3299
  def process_getAllowedDestinationWarehousesForTransfer(self, seqid, iprot, oprot):
3300
    args = getAllowedDestinationWarehousesForTransfer_args()
3301
    args.read(iprot)
3302
    iprot.readMessageEnd()
3303
    result = getAllowedDestinationWarehousesForTransfer_result()
3304
    result.success = self._handler.getAllowedDestinationWarehousesForTransfer(args.warehouseId)
3305
    oprot.writeMessageBegin("getAllowedDestinationWarehousesForTransfer", TMessageType.REPLY, seqid)
3306
    result.write(oprot)
3307
    oprot.writeMessageEnd()
3308
    oprot.trans.flush()
3309
 
3310
  def process_getItemsInTransferLot(self, seqid, iprot, oprot):
3311
    args = getItemsInTransferLot_args()
3312
    args.read(iprot)
3313
    iprot.readMessageEnd()
3314
    result = getItemsInTransferLot_result()
3315
    result.success = self._handler.getItemsInTransferLot(args.transferLotId)
3316
    oprot.writeMessageBegin("getItemsInTransferLot", TMessageType.REPLY, seqid)
3317
    result.write(oprot)
3318
    oprot.writeMessageEnd()
3319
    oprot.trans.flush()
3320
 
3321
  def process_markItemsAsReceivedForTransferLot(self, seqid, iprot, oprot):
3322
    args = markItemsAsReceivedForTransferLot_args()
3323
    args.read(iprot)
3324
    iprot.readMessageEnd()
3325
    result = markItemsAsReceivedForTransferLot_result()
3326
    try:
3327
      self._handler.markItemsAsReceivedForTransferLot(args.id)
3328
    except WarehouseServiceException, wex:
3329
      result.wex = wex
3330
    oprot.writeMessageBegin("markItemsAsReceivedForTransferLot", TMessageType.REPLY, seqid)
3331
    result.write(oprot)
3332
    oprot.writeMessageEnd()
3333
    oprot.trans.flush()
3334
 
3335
  def process_updateTransferLotAfterItemReceive(self, seqid, iprot, oprot):
3336
    args = updateTransferLotAfterItemReceive_args()
3337
    args.read(iprot)
3338
    iprot.readMessageEnd()
3339
    result = updateTransferLotAfterItemReceive_result()
3340
    try:
3341
      result.success = self._handler.updateTransferLotAfterItemReceive(args.id)
3342
    except WarehouseServiceException, wex:
3343
      result.wex = wex
3344
    oprot.writeMessageBegin("updateTransferLotAfterItemReceive", TMessageType.REPLY, seqid)
3345
    result.write(oprot)
3346
    oprot.writeMessageEnd()
3347
    oprot.trans.flush()
3348
 
7459 amar.kumar 3349
  def process_scanForTransferOut(self, seqid, iprot, oprot):
3350
    args = scanForTransferOut_args()
7410 amar.kumar 3351
    args.read(iprot)
3352
    iprot.readMessageEnd()
7459 amar.kumar 3353
    result = scanForTransferOut_result()
7410 amar.kumar 3354
    try:
7459 amar.kumar 3355
      self._handler.scanForTransferOut(args.inventoryItems, args.type, args.transferLotId)
7410 amar.kumar 3356
    except WarehouseServiceException, wex:
3357
      result.wex = wex
7459 amar.kumar 3358
    oprot.writeMessageBegin("scanForTransferOut", TMessageType.REPLY, seqid)
7410 amar.kumar 3359
    result.write(oprot)
3360
    oprot.writeMessageEnd()
3361
    oprot.trans.flush()
3362
 
7459 amar.kumar 3363
  def process_scanForTransferIn(self, seqid, iprot, oprot):
3364
    args = scanForTransferIn_args()
3365
    args.read(iprot)
3366
    iprot.readMessageEnd()
3367
    result = scanForTransferIn_result()
3368
    try:
3369
      self._handler.scanForTransferIn(args.inventoryItems, args.type, args.transferLotId)
3370
    except WarehouseServiceException, wex:
3371
      result.wex = wex
3372
    oprot.writeMessageBegin("scanForTransferIn", TMessageType.REPLY, seqid)
3373
    result.write(oprot)
3374
    oprot.writeMessageEnd()
3375
    oprot.trans.flush()
7410 amar.kumar 3376
 
7459 amar.kumar 3377
  def process_scanForOursThirdPartyReceive(self, seqid, iprot, oprot):
3378
    args = scanForOursThirdPartyReceive_args()
3379
    args.read(iprot)
3380
    iprot.readMessageEnd()
3381
    result = scanForOursThirdPartyReceive_result()
3382
    try:
3383
      self._handler.scanForOursThirdPartyReceive(args.inventoryItems, args.id)
3384
    except WarehouseServiceException, wex:
3385
      result.wex = wex
3386
    oprot.writeMessageBegin("scanForOursThirdPartyReceive", TMessageType.REPLY, seqid)
3387
    result.write(oprot)
3388
    oprot.writeMessageEnd()
3389
    oprot.trans.flush()
3390
 
7574 amar.kumar 3391
  def process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, seqid, iprot, oprot):
3392
    args = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args()
3393
    args.read(iprot)
3394
    iprot.readMessageEnd()
3395
    result = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result()
3396
    try:
3397
      result.success = self._handler.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(args.itemId, args.physicalWarehouseId)
3398
    except WarehouseServiceException, wex:
3399
      result.wex = wex
3400
    oprot.writeMessageBegin("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", TMessageType.REPLY, seqid)
3401
    result.write(oprot)
3402
    oprot.writeMessageEnd()
3403
    oprot.trans.flush()
7459 amar.kumar 3404
 
7672 rajveer 3405
  def process_getInTransitInventory(self, seqid, iprot, oprot):
3406
    args = getInTransitInventory_args()
3407
    args.read(iprot)
3408
    iprot.readMessageEnd()
3409
    result = getInTransitInventory_result()
3410
    result.success = self._handler.getInTransitInventory(args.originWarehouseId)
3411
    oprot.writeMessageBegin("getInTransitInventory", TMessageType.REPLY, seqid)
3412
    result.write(oprot)
3413
    oprot.writeMessageEnd()
3414
    oprot.trans.flush()
7574 amar.kumar 3415
 
7968 amar.kumar 3416
  def process_isItemAvailableForSale(self, seqid, iprot, oprot):
3417
    args = isItemAvailableForSale_args()
3418
    args.read(iprot)
3419
    iprot.readMessageEnd()
3420
    result = isItemAvailableForSale_result()
3421
    try:
3422
      result.success = self._handler.isItemAvailableForSale(args.itemId, args.serialNumber, args.warehouseId)
3423
    except WarehouseServiceException, wex:
3424
      result.wex = wex
3425
    oprot.writeMessageBegin("isItemAvailableForSale", TMessageType.REPLY, seqid)
3426
    result.write(oprot)
3427
    oprot.writeMessageEnd()
3428
    oprot.trans.flush()
7672 rajveer 3429
 
7968 amar.kumar 3430
  def process_getHistoricBadInventoryByScans(self, seqid, iprot, oprot):
3431
    args = getHistoricBadInventoryByScans_args()
3432
    args.read(iprot)
3433
    iprot.readMessageEnd()
3434
    result = getHistoricBadInventoryByScans_result()
3435
    try:
3436
      result.success = self._handler.getHistoricBadInventoryByScans(args.date)
3437
    except WarehouseServiceException, wex:
3438
      result.wex = wex
3439
    oprot.writeMessageBegin("getHistoricBadInventoryByScans", TMessageType.REPLY, seqid)
3440
    result.write(oprot)
3441
    oprot.writeMessageEnd()
3442
    oprot.trans.flush()
3443
 
8565 amar.kumar 3444
  def process_scanForBadSale(self, seqid, iprot, oprot):
3445
    args = scanForBadSale_args()
3446
    args.read(iprot)
3447
    iprot.readMessageEnd()
3448
    result = scanForBadSale_result()
8717 amar.kumar 3449
    try:
3450
      result.success = self._handler.scanForBadSale(args.serialNumber, args.itemNumber, args.itemId, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId)
3451
    except WarehouseServiceException, wex:
3452
      result.wex = wex
8565 amar.kumar 3453
    oprot.writeMessageBegin("scanForBadSale", TMessageType.REPLY, seqid)
3454
    result.write(oprot)
3455
    oprot.writeMessageEnd()
3456
    oprot.trans.flush()
7968 amar.kumar 3457
 
10120 manish.sha 3458
  def process_getTransferLotItemsForMarkReceive(self, seqid, iprot, oprot):
3459
    args = getTransferLotItemsForMarkReceive_args()
3460
    args.read(iprot)
3461
    iprot.readMessageEnd()
3462
    result = getTransferLotItemsForMarkReceive_result()
3463
    try:
3464
      result.success = self._handler.getTransferLotItemsForMarkReceive(args.transferLotId, args.scanType)
3465
    except WarehouseServiceException, wex:
3466
      result.wex = wex
3467
    oprot.writeMessageBegin("getTransferLotItemsForMarkReceive", TMessageType.REPLY, seqid)
3468
    result.write(oprot)
3469
    oprot.writeMessageEnd()
3470
    oprot.trans.flush()
8565 amar.kumar 3471
 
10120 manish.sha 3472
  def process_markItemsAsReceivedForTransferLotPartial(self, seqid, iprot, oprot):
3473
    args = markItemsAsReceivedForTransferLotPartial_args()
3474
    args.read(iprot)
3475
    iprot.readMessageEnd()
3476
    result = markItemsAsReceivedForTransferLotPartial_result()
3477
    try:
3478
      self._handler.markItemsAsReceivedForTransferLotPartial(args.inventoryItems, args.transferLotId)
3479
    except WarehouseServiceException, wex:
3480
      result.wex = wex
3481
    oprot.writeMessageBegin("markItemsAsReceivedForTransferLotPartial", TMessageType.REPLY, seqid)
3482
    result.write(oprot)
3483
    oprot.writeMessageEnd()
3484
    oprot.trans.flush()
3485
 
3486
  def process_markTransferLotAsReceivedPartial(self, seqid, iprot, oprot):
3487
    args = markTransferLotAsReceivedPartial_args()
3488
    args.read(iprot)
3489
    iprot.readMessageEnd()
3490
    result = markTransferLotAsReceivedPartial_result()
3491
    try:
3492
      self._handler.markTransferLotAsReceivedPartial(args.id, args.remoteTransferRefNumber)
3493
    except WarehouseServiceException, wex:
3494
      result.wex = wex
3495
    oprot.writeMessageBegin("markTransferLotAsReceivedPartial", TMessageType.REPLY, seqid)
3496
    result.write(oprot)
3497
    oprot.writeMessageEnd()
3498
    oprot.trans.flush()
3499
 
10690 manish.sha 3500
  def process_getInventoryItemScannedInForPO(self, seqid, iprot, oprot):
3501
    args = getInventoryItemScannedInForPO_args()
3502
    args.read(iprot)
3503
    iprot.readMessageEnd()
3504
    result = getInventoryItemScannedInForPO_result()
3505
    try:
3506
      result.success = self._handler.getInventoryItemScannedInForPO(args.itemId, args.purchaseIds)
3507
    except WarehouseServiceException, wex:
3508
      result.wex = wex
3509
    oprot.writeMessageBegin("getInventoryItemScannedInForPO", TMessageType.REPLY, seqid)
3510
    result.write(oprot)
3511
    oprot.writeMessageEnd()
3512
    oprot.trans.flush()
10120 manish.sha 3513
 
10690 manish.sha 3514
  def process_getAmazonTransferredSkuDetails(self, seqid, iprot, oprot):
3515
    args = getAmazonTransferredSkuDetails_args()
3516
    args.read(iprot)
3517
    iprot.readMessageEnd()
3518
    result = getAmazonTransferredSkuDetails_result()
3519
    try:
3520
      result.success = self._handler.getAmazonTransferredSkuDetails(args.itemIds)
3521
    except WarehouseServiceException, wex:
3522
      result.wex = wex
3523
    oprot.writeMessageBegin("getAmazonTransferredSkuDetails", TMessageType.REPLY, seqid)
3524
    result.write(oprot)
3525
    oprot.writeMessageEnd()
3526
    oprot.trans.flush()
3527
 
3528
  def process_getScansforPurchase(self, seqid, iprot, oprot):
3529
    args = getScansforPurchase_args()
3530
    args.read(iprot)
3531
    iprot.readMessageEnd()
3532
    result = getScansforPurchase_result()
3533
    try:
3534
      result.success = self._handler.getScansforPurchase(args.purchaseId, args.scanType)
3535
    except WarehouseServiceException, wex:
3536
      result.wex = wex
3537
    oprot.writeMessageBegin("getScansforPurchase", TMessageType.REPLY, seqid)
3538
    result.write(oprot)
3539
    oprot.writeMessageEnd()
3540
    oprot.trans.flush()
3541
 
10864 manish.sha 3542
  def process_getCurrentBadQuantityForItem(self, seqid, iprot, oprot):
3543
    args = getCurrentBadQuantityForItem_args()
3544
    args.read(iprot)
3545
    iprot.readMessageEnd()
3546
    result = getCurrentBadQuantityForItem_result()
3547
    try:
3548
      result.success = self._handler.getCurrentBadQuantityForItem(args.itemId, args.currentWarehouseId, args.physicalWarehouseId)
3549
    except WarehouseServiceException, wex:
3550
      result.wex = wex
3551
    oprot.writeMessageBegin("getCurrentBadQuantityForItem", TMessageType.REPLY, seqid)
3552
    result.write(oprot)
3553
    oprot.writeMessageEnd()
3554
    oprot.trans.flush()
10690 manish.sha 3555
 
10864 manish.sha 3556
  def process_scanForBadPurchaseReturn(self, seqid, iprot, oprot):
3557
    args = scanForBadPurchaseReturn_args()
3558
    args.read(iprot)
3559
    iprot.readMessageEnd()
3560
    result = scanForBadPurchaseReturn_result()
3561
    try:
3562
      result.success = self._handler.scanForBadPurchaseReturn(args.saleReturnItems, args.vendorId, args.billingWarehouseId)
3563
    except WarehouseServiceException, ex:
3564
      result.ex = ex
3565
    oprot.writeMessageBegin("scanForBadPurchaseReturn", TMessageType.REPLY, seqid)
3566
    result.write(oprot)
3567
    oprot.writeMessageEnd()
3568
    oprot.trans.flush()
3569
 
3570
  def process_getItemsInPurchaseReturn(self, seqid, iprot, oprot):
3571
    args = getItemsInPurchaseReturn_args()
3572
    args.read(iprot)
3573
    iprot.readMessageEnd()
3574
    result = getItemsInPurchaseReturn_result()
3575
    try:
3576
      result.success = self._handler.getItemsInPurchaseReturn(args.purchaseReturnId)
3577
    except WarehouseServiceException, ex:
3578
      result.ex = ex
3579
    oprot.writeMessageBegin("getItemsInPurchaseReturn", TMessageType.REPLY, seqid)
3580
    result.write(oprot)
3581
    oprot.writeMessageEnd()
3582
    oprot.trans.flush()
3583
 
10886 manish.sha 3584
  def process_getScansForInventoryItem(self, seqid, iprot, oprot):
3585
    args = getScansForInventoryItem_args()
3586
    args.read(iprot)
3587
    iprot.readMessageEnd()
3588
    result = getScansForInventoryItem_result()
3589
    try:
3590
      result.success = self._handler.getScansForInventoryItem(args.inventoryItemId, args.type)
3591
    except WarehouseServiceException, ex:
3592
      result.ex = ex
3593
    oprot.writeMessageBegin("getScansForInventoryItem", TMessageType.REPLY, seqid)
3594
    result.write(oprot)
3595
    oprot.writeMessageEnd()
3596
    oprot.trans.flush()
10864 manish.sha 3597
 
10886 manish.sha 3598
 
2821 chandransh 3599
# HELPER FUNCTIONS AND STRUCTURES
3600
 
4501 mandeep.dh 3601
class getInventoryItem_args:
2832 chandransh 3602
  """
3603
  Attributes:
4501 mandeep.dh 3604
   - serialNumber
2832 chandransh 3605
  """
3606
 
3607
  thrift_spec = (
3608
    None, # 0
4501 mandeep.dh 3609
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
2832 chandransh 3610
  )
3611
 
4501 mandeep.dh 3612
  def __init__(self, serialNumber=None,):
3613
    self.serialNumber = serialNumber
2832 chandransh 3614
 
3615
  def read(self, iprot):
3616
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3617
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3618
      return
3619
    iprot.readStructBegin()
3620
    while True:
3621
      (fname, ftype, fid) = iprot.readFieldBegin()
3622
      if ftype == TType.STOP:
3623
        break
3624
      if fid == 1:
4501 mandeep.dh 3625
        if ftype == TType.STRING:
3626
          self.serialNumber = iprot.readString();
2832 chandransh 3627
        else:
3628
          iprot.skip(ftype)
3629
      else:
3630
        iprot.skip(ftype)
3631
      iprot.readFieldEnd()
3632
    iprot.readStructEnd()
3633
 
3634
  def write(self, oprot):
3635
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3636
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3637
      return
4501 mandeep.dh 3638
    oprot.writeStructBegin('getInventoryItem_args')
3639
    if self.serialNumber is not None:
3640
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
3641
      oprot.writeString(self.serialNumber)
2832 chandransh 3642
      oprot.writeFieldEnd()
3643
    oprot.writeFieldStop()
3644
    oprot.writeStructEnd()
3645
 
3431 rajveer 3646
  def validate(self):
3647
    return
3648
 
3649
 
2832 chandransh 3650
  def __repr__(self):
3651
    L = ['%s=%r' % (key, value)
3652
      for key, value in self.__dict__.iteritems()]
3653
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3654
 
3655
  def __eq__(self, other):
3656
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3657
 
3658
  def __ne__(self, other):
3659
    return not (self == other)
3660
 
4501 mandeep.dh 3661
class getInventoryItem_result:
2832 chandransh 3662
  """
3663
  Attributes:
3664
   - success
4541 mandeep.dh 3665
   - wex
2832 chandransh 3666
  """
3667
 
3668
  thrift_spec = (
4501 mandeep.dh 3669
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
4541 mandeep.dh 3670
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
2832 chandransh 3671
  )
3672
 
4541 mandeep.dh 3673
  def __init__(self, success=None, wex=None,):
2832 chandransh 3674
    self.success = success
4541 mandeep.dh 3675
    self.wex = wex
2832 chandransh 3676
 
3677
  def read(self, iprot):
3678
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3679
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3680
      return
3681
    iprot.readStructBegin()
3682
    while True:
3683
      (fname, ftype, fid) = iprot.readFieldBegin()
3684
      if ftype == TType.STOP:
3685
        break
3686
      if fid == 0:
3687
        if ftype == TType.STRUCT:
4501 mandeep.dh 3688
          self.success = InventoryItem()
2832 chandransh 3689
          self.success.read(iprot)
3690
        else:
3691
          iprot.skip(ftype)
4541 mandeep.dh 3692
      elif fid == 1:
3693
        if ftype == TType.STRUCT:
3694
          self.wex = WarehouseServiceException()
3695
          self.wex.read(iprot)
3696
        else:
3697
          iprot.skip(ftype)
2832 chandransh 3698
      else:
3699
        iprot.skip(ftype)
3700
      iprot.readFieldEnd()
3701
    iprot.readStructEnd()
3702
 
3703
  def write(self, oprot):
3704
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3705
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3706
      return
4501 mandeep.dh 3707
    oprot.writeStructBegin('getInventoryItem_result')
3431 rajveer 3708
    if self.success is not None:
2832 chandransh 3709
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3710
      self.success.write(oprot)
3711
      oprot.writeFieldEnd()
4541 mandeep.dh 3712
    if self.wex is not None:
3713
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
3714
      self.wex.write(oprot)
3715
      oprot.writeFieldEnd()
2832 chandransh 3716
    oprot.writeFieldStop()
3717
    oprot.writeStructEnd()
3718
 
3431 rajveer 3719
  def validate(self):
3720
    return
3721
 
3722
 
2832 chandransh 3723
  def __repr__(self):
3724
    L = ['%s=%r' % (key, value)
3725
      for key, value in self.__dict__.iteritems()]
3726
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3727
 
3728
  def __eq__(self, other):
3729
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3730
 
3731
  def __ne__(self, other):
3732
    return not (self == other)
3733
 
5361 mandeep.dh 3734
class getNonSeralizedInventoryItem_args:
2821 chandransh 3735
  """
3736
  Attributes:
5530 mandeep.dh 3737
   - itemNumber
4501 mandeep.dh 3738
   - itemId
5530 mandeep.dh 3739
   - fulfilmentWarehouseId
8565 amar.kumar 3740
   - billingWarehouseId
2821 chandransh 3741
  """
3742
 
3743
  thrift_spec = (
3744
    None, # 0
5530 mandeep.dh 3745
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
3746
    (2, TType.I64, 'itemId', None, None, ), # 2
3747
    (3, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 3
8565 amar.kumar 3748
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
2821 chandransh 3749
  )
3750
 
8565 amar.kumar 3751
  def __init__(self, itemNumber=None, itemId=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):
5530 mandeep.dh 3752
    self.itemNumber = itemNumber
4501 mandeep.dh 3753
    self.itemId = itemId
5530 mandeep.dh 3754
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 3755
    self.billingWarehouseId = billingWarehouseId
2821 chandransh 3756
 
3757
  def read(self, iprot):
3758
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3759
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3760
      return
3761
    iprot.readStructBegin()
3762
    while True:
3763
      (fname, ftype, fid) = iprot.readFieldBegin()
3764
      if ftype == TType.STOP:
3765
        break
3766
      if fid == 1:
5530 mandeep.dh 3767
        if ftype == TType.STRING:
3768
          self.itemNumber = iprot.readString();
3769
        else:
3770
          iprot.skip(ftype)
3771
      elif fid == 2:
2821 chandransh 3772
        if ftype == TType.I64:
4501 mandeep.dh 3773
          self.itemId = iprot.readI64();
2821 chandransh 3774
        else:
3775
          iprot.skip(ftype)
5530 mandeep.dh 3776
      elif fid == 3:
4501 mandeep.dh 3777
        if ftype == TType.I64:
5530 mandeep.dh 3778
          self.fulfilmentWarehouseId = iprot.readI64();
2821 chandransh 3779
        else:
3780
          iprot.skip(ftype)
8565 amar.kumar 3781
      elif fid == 4:
3782
        if ftype == TType.I64:
3783
          self.billingWarehouseId = iprot.readI64();
3784
        else:
3785
          iprot.skip(ftype)
2821 chandransh 3786
      else:
3787
        iprot.skip(ftype)
3788
      iprot.readFieldEnd()
3789
    iprot.readStructEnd()
3790
 
3791
  def write(self, oprot):
3792
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3793
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3794
      return
5361 mandeep.dh 3795
    oprot.writeStructBegin('getNonSeralizedInventoryItem_args')
5530 mandeep.dh 3796
    if self.itemNumber is not None:
3797
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
3798
      oprot.writeString(self.itemNumber)
3799
      oprot.writeFieldEnd()
4501 mandeep.dh 3800
    if self.itemId is not None:
5530 mandeep.dh 3801
      oprot.writeFieldBegin('itemId', TType.I64, 2)
4501 mandeep.dh 3802
      oprot.writeI64(self.itemId)
2821 chandransh 3803
      oprot.writeFieldEnd()
5530 mandeep.dh 3804
    if self.fulfilmentWarehouseId is not None:
3805
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 3)
3806
      oprot.writeI64(self.fulfilmentWarehouseId)
2821 chandransh 3807
      oprot.writeFieldEnd()
8565 amar.kumar 3808
    if self.billingWarehouseId is not None:
3809
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
3810
      oprot.writeI64(self.billingWarehouseId)
3811
      oprot.writeFieldEnd()
2821 chandransh 3812
    oprot.writeFieldStop()
3813
    oprot.writeStructEnd()
3814
 
3431 rajveer 3815
  def validate(self):
3816
    return
3817
 
3818
 
2821 chandransh 3819
  def __repr__(self):
3820
    L = ['%s=%r' % (key, value)
3821
      for key, value in self.__dict__.iteritems()]
3822
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3823
 
3824
  def __eq__(self, other):
3825
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3826
 
3827
  def __ne__(self, other):
3828
    return not (self == other)
3829
 
5361 mandeep.dh 3830
class getNonSeralizedInventoryItem_result:
2821 chandransh 3831
  """
3832
  Attributes:
3833
   - success
5361 mandeep.dh 3834
   - wex
2821 chandransh 3835
  """
3836
 
3837
  thrift_spec = (
5361 mandeep.dh 3838
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
3839
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
2821 chandransh 3840
  )
3841
 
5361 mandeep.dh 3842
  def __init__(self, success=None, wex=None,):
2821 chandransh 3843
    self.success = success
5361 mandeep.dh 3844
    self.wex = wex
2821 chandransh 3845
 
3846
  def read(self, iprot):
3847
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3848
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3849
      return
3850
    iprot.readStructBegin()
3851
    while True:
3852
      (fname, ftype, fid) = iprot.readFieldBegin()
3853
      if ftype == TType.STOP:
3854
        break
3855
      if fid == 0:
5361 mandeep.dh 3856
        if ftype == TType.STRUCT:
3857
          self.success = InventoryItem()
3858
          self.success.read(iprot)
2821 chandransh 3859
        else:
3860
          iprot.skip(ftype)
5361 mandeep.dh 3861
      elif fid == 1:
3862
        if ftype == TType.STRUCT:
3863
          self.wex = WarehouseServiceException()
3864
          self.wex.read(iprot)
2821 chandransh 3865
        else:
3866
          iprot.skip(ftype)
3867
      else:
3868
        iprot.skip(ftype)
3869
      iprot.readFieldEnd()
3870
    iprot.readStructEnd()
3871
 
3872
  def write(self, oprot):
3873
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3874
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3875
      return
5361 mandeep.dh 3876
    oprot.writeStructBegin('getNonSeralizedInventoryItem_result')
3431 rajveer 3877
    if self.success is not None:
5361 mandeep.dh 3878
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3879
      self.success.write(oprot)
2821 chandransh 3880
      oprot.writeFieldEnd()
5361 mandeep.dh 3881
    if self.wex is not None:
3882
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
3883
      self.wex.write(oprot)
3383 chandransh 3884
      oprot.writeFieldEnd()
3885
    oprot.writeFieldStop()
3886
    oprot.writeStructEnd()
3887
 
3431 rajveer 3888
  def validate(self):
3889
    return
3890
 
3891
 
3383 chandransh 3892
  def __repr__(self):
3893
    L = ['%s=%r' % (key, value)
3894
      for key, value in self.__dict__.iteritems()]
3895
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3896
 
3897
  def __eq__(self, other):
3898
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3899
 
3900
  def __ne__(self, other):
3901
    return not (self == other)
3902
 
4501 mandeep.dh 3903
class scan_args:
2821 chandransh 3904
  """
3905
  Attributes:
5361 mandeep.dh 3906
   - inventoryItem
2821 chandransh 3907
   - type
4501 mandeep.dh 3908
   - quantity
5361 mandeep.dh 3909
   - billingWarehouseId
7410 amar.kumar 3910
   - transferLotId
2821 chandransh 3911
  """
3912
 
3913
  thrift_spec = (
3914
    None, # 0
5361 mandeep.dh 3915
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4501 mandeep.dh 3916
    (2, TType.I32, 'type', None, None, ), # 2
3917
    (3, TType.I64, 'quantity', None, None, ), # 3
5361 mandeep.dh 3918
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
7410 amar.kumar 3919
    (5, TType.I64, 'transferLotId', None, None, ), # 5
2821 chandransh 3920
  )
3921
 
7410 amar.kumar 3922
  def __init__(self, inventoryItem=None, type=None, quantity=None, billingWarehouseId=None, transferLotId=None,):
5361 mandeep.dh 3923
    self.inventoryItem = inventoryItem
2821 chandransh 3924
    self.type = type
4501 mandeep.dh 3925
    self.quantity = quantity
5361 mandeep.dh 3926
    self.billingWarehouseId = billingWarehouseId
7410 amar.kumar 3927
    self.transferLotId = transferLotId
2821 chandransh 3928
 
3929
  def read(self, iprot):
3930
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3931
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3932
      return
3933
    iprot.readStructBegin()
3934
    while True:
3935
      (fname, ftype, fid) = iprot.readFieldBegin()
3936
      if ftype == TType.STOP:
3937
        break
3938
      if fid == 1:
5361 mandeep.dh 3939
        if ftype == TType.STRUCT:
3940
          self.inventoryItem = InventoryItem()
3941
          self.inventoryItem.read(iprot)
2821 chandransh 3942
        else:
3943
          iprot.skip(ftype)
3944
      elif fid == 2:
4501 mandeep.dh 3945
        if ftype == TType.I32:
3946
          self.type = iprot.readI32();
2821 chandransh 3947
        else:
3948
          iprot.skip(ftype)
3383 chandransh 3949
      elif fid == 3:
4501 mandeep.dh 3950
        if ftype == TType.I64:
3951
          self.quantity = iprot.readI64();
2821 chandransh 3952
        else:
3953
          iprot.skip(ftype)
3383 chandransh 3954
      elif fid == 4:
4501 mandeep.dh 3955
        if ftype == TType.I64:
5361 mandeep.dh 3956
          self.billingWarehouseId = iprot.readI64();
2821 chandransh 3957
        else:
3958
          iprot.skip(ftype)
7410 amar.kumar 3959
      elif fid == 5:
3960
        if ftype == TType.I64:
3961
          self.transferLotId = iprot.readI64();
3962
        else:
3963
          iprot.skip(ftype)
2821 chandransh 3964
      else:
3965
        iprot.skip(ftype)
3966
      iprot.readFieldEnd()
3967
    iprot.readStructEnd()
3968
 
3969
  def write(self, oprot):
3970
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3971
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3972
      return
4501 mandeep.dh 3973
    oprot.writeStructBegin('scan_args')
5361 mandeep.dh 3974
    if self.inventoryItem is not None:
3975
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
3976
      self.inventoryItem.write(oprot)
2821 chandransh 3977
      oprot.writeFieldEnd()
3431 rajveer 3978
    if self.type is not None:
4501 mandeep.dh 3979
      oprot.writeFieldBegin('type', TType.I32, 2)
2821 chandransh 3980
      oprot.writeI32(self.type)
3981
      oprot.writeFieldEnd()
4501 mandeep.dh 3982
    if self.quantity is not None:
3983
      oprot.writeFieldBegin('quantity', TType.I64, 3)
3984
      oprot.writeI64(self.quantity)
3985
      oprot.writeFieldEnd()
5361 mandeep.dh 3986
    if self.billingWarehouseId is not None:
3987
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
3988
      oprot.writeI64(self.billingWarehouseId)
4501 mandeep.dh 3989
      oprot.writeFieldEnd()
7410 amar.kumar 3990
    if self.transferLotId is not None:
3991
      oprot.writeFieldBegin('transferLotId', TType.I64, 5)
3992
      oprot.writeI64(self.transferLotId)
3993
      oprot.writeFieldEnd()
2821 chandransh 3994
    oprot.writeFieldStop()
3995
    oprot.writeStructEnd()
3996
 
3431 rajveer 3997
  def validate(self):
3998
    return
3999
 
4000
 
2821 chandransh 4001
  def __repr__(self):
4002
    L = ['%s=%r' % (key, value)
4003
      for key, value in self.__dict__.iteritems()]
4004
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4005
 
4006
  def __eq__(self, other):
4007
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4008
 
4009
  def __ne__(self, other):
4010
    return not (self == other)
4011
 
4501 mandeep.dh 4012
class scan_result:
2821 chandransh 4013
  """
4014
  Attributes:
4015
   - wex
4016
  """
4017
 
4018
  thrift_spec = (
4019
    None, # 0
4020
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4021
  )
4022
 
4023
  def __init__(self, wex=None,):
4024
    self.wex = wex
4025
 
4026
  def read(self, iprot):
4027
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4028
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4029
      return
4030
    iprot.readStructBegin()
4031
    while True:
4032
      (fname, ftype, fid) = iprot.readFieldBegin()
4033
      if ftype == TType.STOP:
4034
        break
4035
      if fid == 1:
4036
        if ftype == TType.STRUCT:
4037
          self.wex = WarehouseServiceException()
4038
          self.wex.read(iprot)
4039
        else:
4040
          iprot.skip(ftype)
4041
      else:
4042
        iprot.skip(ftype)
4043
      iprot.readFieldEnd()
4044
    iprot.readStructEnd()
4045
 
4046
  def write(self, oprot):
4047
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4048
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4049
      return
4501 mandeep.dh 4050
    oprot.writeStructBegin('scan_result')
3431 rajveer 4051
    if self.wex is not None:
2821 chandransh 4052
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4053
      self.wex.write(oprot)
4054
      oprot.writeFieldEnd()
4055
    oprot.writeFieldStop()
4056
    oprot.writeStructEnd()
4057
 
3431 rajveer 4058
  def validate(self):
4059
    return
4060
 
4061
 
2821 chandransh 4062
  def __repr__(self):
4063
    L = ['%s=%r' % (key, value)
4064
      for key, value in self.__dict__.iteritems()]
4065
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4066
 
4067
  def __eq__(self, other):
4068
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4069
 
4070
  def __ne__(self, other):
4071
    return not (self == other)
4072
 
10489 amar.kumar 4073
class genericScan_args:
4074
  """
4075
  Attributes:
4076
   - inventoryItem
4077
   - scan
4078
  """
4079
 
4080
  thrift_spec = (
4081
    None, # 0
4082
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4083
    (2, TType.STRUCT, 'scan', (Scan, Scan.thrift_spec), None, ), # 2
4084
  )
4085
 
4086
  def __init__(self, inventoryItem=None, scan=None,):
4087
    self.inventoryItem = inventoryItem
4088
    self.scan = scan
4089
 
4090
  def read(self, iprot):
4091
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4092
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4093
      return
4094
    iprot.readStructBegin()
4095
    while True:
4096
      (fname, ftype, fid) = iprot.readFieldBegin()
4097
      if ftype == TType.STOP:
4098
        break
4099
      if fid == 1:
4100
        if ftype == TType.STRUCT:
4101
          self.inventoryItem = InventoryItem()
4102
          self.inventoryItem.read(iprot)
4103
        else:
4104
          iprot.skip(ftype)
4105
      elif fid == 2:
4106
        if ftype == TType.STRUCT:
4107
          self.scan = Scan()
4108
          self.scan.read(iprot)
4109
        else:
4110
          iprot.skip(ftype)
4111
      else:
4112
        iprot.skip(ftype)
4113
      iprot.readFieldEnd()
4114
    iprot.readStructEnd()
4115
 
4116
  def write(self, oprot):
4117
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4118
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4119
      return
4120
    oprot.writeStructBegin('genericScan_args')
4121
    if self.inventoryItem is not None:
4122
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
4123
      self.inventoryItem.write(oprot)
4124
      oprot.writeFieldEnd()
4125
    if self.scan is not None:
4126
      oprot.writeFieldBegin('scan', TType.STRUCT, 2)
4127
      self.scan.write(oprot)
4128
      oprot.writeFieldEnd()
4129
    oprot.writeFieldStop()
4130
    oprot.writeStructEnd()
4131
 
4132
  def validate(self):
4133
    return
4134
 
4135
 
4136
  def __repr__(self):
4137
    L = ['%s=%r' % (key, value)
4138
      for key, value in self.__dict__.iteritems()]
4139
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4140
 
4141
  def __eq__(self, other):
4142
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4143
 
4144
  def __ne__(self, other):
4145
    return not (self == other)
4146
 
4147
class genericScan_result:
4148
  """
4149
  Attributes:
4150
   - wex
4151
  """
4152
 
4153
  thrift_spec = (
4154
    None, # 0
4155
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4156
  )
4157
 
4158
  def __init__(self, wex=None,):
4159
    self.wex = wex
4160
 
4161
  def read(self, iprot):
4162
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4163
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4164
      return
4165
    iprot.readStructBegin()
4166
    while True:
4167
      (fname, ftype, fid) = iprot.readFieldBegin()
4168
      if ftype == TType.STOP:
4169
        break
4170
      if fid == 1:
4171
        if ftype == TType.STRUCT:
4172
          self.wex = WarehouseServiceException()
4173
          self.wex.read(iprot)
4174
        else:
4175
          iprot.skip(ftype)
4176
      else:
4177
        iprot.skip(ftype)
4178
      iprot.readFieldEnd()
4179
    iprot.readStructEnd()
4180
 
4181
  def write(self, oprot):
4182
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4183
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4184
      return
4185
    oprot.writeStructBegin('genericScan_result')
4186
    if self.wex is not None:
4187
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4188
      self.wex.write(oprot)
4189
      oprot.writeFieldEnd()
4190
    oprot.writeFieldStop()
4191
    oprot.writeStructEnd()
4192
 
4193
  def validate(self):
4194
    return
4195
 
4196
 
4197
  def __repr__(self):
4198
    L = ['%s=%r' % (key, value)
4199
      for key, value in self.__dict__.iteritems()]
4200
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4201
 
4202
  def __eq__(self, other):
4203
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4204
 
4205
  def __ne__(self, other):
4206
    return not (self == other)
4207
 
4501 mandeep.dh 4208
class scanSerializedItemForOrder_args:
2821 chandransh 4209
  """
4210
  Attributes:
4555 mandeep.dh 4211
   - serialNumber
2821 chandransh 4212
   - type
4501 mandeep.dh 4213
   - orderId
5110 mandeep.dh 4214
   - fulfilmentWarehouseId
4215
   - quantity
4216
   - billingWarehouseId
2821 chandransh 4217
  """
4218
 
4219
  thrift_spec = (
4220
    None, # 0
4555 mandeep.dh 4221
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
4501 mandeep.dh 4222
    (2, TType.I32, 'type', None, None, ), # 2
4223
    (3, TType.I64, 'orderId', None, None, ), # 3
5110 mandeep.dh 4224
    (4, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 4
4225
    (5, TType.DOUBLE, 'quantity', None, None, ), # 5
4226
    (6, TType.I64, 'billingWarehouseId', None, None, ), # 6
2821 chandransh 4227
  )
4228
 
5110 mandeep.dh 4229
  def __init__(self, serialNumber=None, type=None, orderId=None, fulfilmentWarehouseId=None, quantity=None, billingWarehouseId=None,):
4555 mandeep.dh 4230
    self.serialNumber = serialNumber
2821 chandransh 4231
    self.type = type
4501 mandeep.dh 4232
    self.orderId = orderId
5110 mandeep.dh 4233
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
4234
    self.quantity = quantity
4235
    self.billingWarehouseId = billingWarehouseId
2821 chandransh 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:
4555 mandeep.dh 4247
        if ftype == TType.STRING:
4248
          self.serialNumber = iprot.readString();
2821 chandransh 4249
        else:
4250
          iprot.skip(ftype)
4251
      elif fid == 2:
4501 mandeep.dh 4252
        if ftype == TType.I32:
4253
          self.type = iprot.readI32();
2821 chandransh 4254
        else:
4255
          iprot.skip(ftype)
4256
      elif fid == 3:
4501 mandeep.dh 4257
        if ftype == TType.I64:
4258
          self.orderId = iprot.readI64();
4259
        else:
4260
          iprot.skip(ftype)
4261
      elif fid == 4:
4262
        if ftype == TType.I64:
5110 mandeep.dh 4263
          self.fulfilmentWarehouseId = iprot.readI64();
4501 mandeep.dh 4264
        else:
4265
          iprot.skip(ftype)
5110 mandeep.dh 4266
      elif fid == 5:
4267
        if ftype == TType.DOUBLE:
4268
          self.quantity = iprot.readDouble();
4269
        else:
4270
          iprot.skip(ftype)
4271
      elif fid == 6:
4272
        if ftype == TType.I64:
4273
          self.billingWarehouseId = iprot.readI64();
4274
        else:
4275
          iprot.skip(ftype)
4501 mandeep.dh 4276
      else:
4277
        iprot.skip(ftype)
4278
      iprot.readFieldEnd()
4279
    iprot.readStructEnd()
4280
 
4281
  def write(self, oprot):
4282
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4283
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4284
      return
4285
    oprot.writeStructBegin('scanSerializedItemForOrder_args')
4555 mandeep.dh 4286
    if self.serialNumber is not None:
4287
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
4288
      oprot.writeString(self.serialNumber)
4501 mandeep.dh 4289
      oprot.writeFieldEnd()
4290
    if self.type is not None:
4291
      oprot.writeFieldBegin('type', TType.I32, 2)
4292
      oprot.writeI32(self.type)
4293
      oprot.writeFieldEnd()
4294
    if self.orderId is not None:
4295
      oprot.writeFieldBegin('orderId', TType.I64, 3)
4296
      oprot.writeI64(self.orderId)
4297
      oprot.writeFieldEnd()
5110 mandeep.dh 4298
    if self.fulfilmentWarehouseId is not None:
4299
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 4)
4300
      oprot.writeI64(self.fulfilmentWarehouseId)
4501 mandeep.dh 4301
      oprot.writeFieldEnd()
5110 mandeep.dh 4302
    if self.quantity is not None:
4303
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
4304
      oprot.writeDouble(self.quantity)
4305
      oprot.writeFieldEnd()
4306
    if self.billingWarehouseId is not None:
4307
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)
4308
      oprot.writeI64(self.billingWarehouseId)
4309
      oprot.writeFieldEnd()
4501 mandeep.dh 4310
    oprot.writeFieldStop()
4311
    oprot.writeStructEnd()
4312
 
4313
  def validate(self):
4314
    return
4315
 
4316
 
4317
  def __repr__(self):
4318
    L = ['%s=%r' % (key, value)
4319
      for key, value in self.__dict__.iteritems()]
4320
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4321
 
4322
  def __eq__(self, other):
4323
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4324
 
4325
  def __ne__(self, other):
4326
    return not (self == other)
4327
 
4328
class scanSerializedItemForOrder_result:
4329
  """
4330
  Attributes:
4331
   - success
4332
   - wex
4333
  """
4334
 
4335
  thrift_spec = (
4555 mandeep.dh 4336
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
4501 mandeep.dh 4337
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4338
  )
4339
 
4340
  def __init__(self, success=None, wex=None,):
4341
    self.success = success
4342
    self.wex = wex
4343
 
4344
  def read(self, iprot):
4345
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4346
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4347
      return
4348
    iprot.readStructBegin()
4349
    while True:
4350
      (fname, ftype, fid) = iprot.readFieldBegin()
4351
      if ftype == TType.STOP:
4352
        break
4353
      if fid == 0:
4555 mandeep.dh 4354
        if ftype == TType.STRUCT:
4355
          self.success = InventoryItem()
4356
          self.success.read(iprot)
4501 mandeep.dh 4357
        else:
4358
          iprot.skip(ftype)
4359
      elif fid == 1:
4360
        if ftype == TType.STRUCT:
4361
          self.wex = WarehouseServiceException()
4362
          self.wex.read(iprot)
4363
        else:
4364
          iprot.skip(ftype)
4365
      else:
4366
        iprot.skip(ftype)
4367
      iprot.readFieldEnd()
4368
    iprot.readStructEnd()
4369
 
4370
  def write(self, oprot):
4371
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4372
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4373
      return
4374
    oprot.writeStructBegin('scanSerializedItemForOrder_result')
4375
    if self.success is not None:
4555 mandeep.dh 4376
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4377
      self.success.write(oprot)
4501 mandeep.dh 4378
      oprot.writeFieldEnd()
4379
    if self.wex is not None:
4380
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4381
      self.wex.write(oprot)
4382
      oprot.writeFieldEnd()
4383
    oprot.writeFieldStop()
4384
    oprot.writeStructEnd()
4385
 
4386
  def validate(self):
4387
    return
4388
 
4389
 
4390
  def __repr__(self):
4391
    L = ['%s=%r' % (key, value)
4392
      for key, value in self.__dict__.iteritems()]
4393
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4394
 
4395
  def __eq__(self, other):
4396
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4397
 
4398
  def __ne__(self, other):
4399
    return not (self == other)
4400
 
4401
class scanForOrder_args:
4402
  """
4403
  Attributes:
5361 mandeep.dh 4404
   - inventoryItem
4501 mandeep.dh 4405
   - type
4406
   - quantity
4407
   - orderId
5110 mandeep.dh 4408
   - fulfilmentWarehouseId
5361 mandeep.dh 4409
   - billingWarehouseId
4501 mandeep.dh 4410
  """
4411
 
4412
  thrift_spec = (
4413
    None, # 0
5361 mandeep.dh 4414
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4501 mandeep.dh 4415
    (2, TType.I32, 'type', None, None, ), # 2
4416
    (3, TType.I64, 'quantity', None, None, ), # 3
4417
    (4, TType.I64, 'orderId', None, None, ), # 4
5110 mandeep.dh 4418
    (5, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 5
5361 mandeep.dh 4419
    (6, TType.I64, 'billingWarehouseId', None, None, ), # 6
4501 mandeep.dh 4420
  )
4421
 
5361 mandeep.dh 4422
  def __init__(self, inventoryItem=None, type=None, quantity=None, orderId=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):
4423
    self.inventoryItem = inventoryItem
4501 mandeep.dh 4424
    self.type = type
4425
    self.quantity = quantity
4426
    self.orderId = orderId
5110 mandeep.dh 4427
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
5361 mandeep.dh 4428
    self.billingWarehouseId = billingWarehouseId
4501 mandeep.dh 4429
 
4430
  def read(self, iprot):
4431
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4432
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4433
      return
4434
    iprot.readStructBegin()
4435
    while True:
4436
      (fname, ftype, fid) = iprot.readFieldBegin()
4437
      if ftype == TType.STOP:
4438
        break
4439
      if fid == 1:
5361 mandeep.dh 4440
        if ftype == TType.STRUCT:
4441
          self.inventoryItem = InventoryItem()
4442
          self.inventoryItem.read(iprot)
4501 mandeep.dh 4443
        else:
4444
          iprot.skip(ftype)
4445
      elif fid == 2:
2821 chandransh 4446
        if ftype == TType.I32:
4447
          self.type = iprot.readI32();
4448
        else:
4449
          iprot.skip(ftype)
4501 mandeep.dh 4450
      elif fid == 3:
4451
        if ftype == TType.I64:
4452
          self.quantity = iprot.readI64();
4453
        else:
4454
          iprot.skip(ftype)
4455
      elif fid == 4:
4456
        if ftype == TType.I64:
4457
          self.orderId = iprot.readI64();
4458
        else:
4459
          iprot.skip(ftype)
4460
      elif fid == 5:
4461
        if ftype == TType.I64:
5110 mandeep.dh 4462
          self.fulfilmentWarehouseId = iprot.readI64();
4501 mandeep.dh 4463
        else:
4464
          iprot.skip(ftype)
5361 mandeep.dh 4465
      elif fid == 6:
4466
        if ftype == TType.I64:
4467
          self.billingWarehouseId = iprot.readI64();
4468
        else:
4469
          iprot.skip(ftype)
2821 chandransh 4470
      else:
4471
        iprot.skip(ftype)
4472
      iprot.readFieldEnd()
4473
    iprot.readStructEnd()
4474
 
4475
  def write(self, oprot):
4476
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4477
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4478
      return
4501 mandeep.dh 4479
    oprot.writeStructBegin('scanForOrder_args')
5361 mandeep.dh 4480
    if self.inventoryItem is not None:
4481
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
4482
      self.inventoryItem.write(oprot)
2821 chandransh 4483
      oprot.writeFieldEnd()
3431 rajveer 4484
    if self.type is not None:
4501 mandeep.dh 4485
      oprot.writeFieldBegin('type', TType.I32, 2)
2821 chandransh 4486
      oprot.writeI32(self.type)
4487
      oprot.writeFieldEnd()
4501 mandeep.dh 4488
    if self.quantity is not None:
4489
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4490
      oprot.writeI64(self.quantity)
4491
      oprot.writeFieldEnd()
4492
    if self.orderId is not None:
4493
      oprot.writeFieldBegin('orderId', TType.I64, 4)
4494
      oprot.writeI64(self.orderId)
4495
      oprot.writeFieldEnd()
5110 mandeep.dh 4496
    if self.fulfilmentWarehouseId is not None:
4497
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 5)
4498
      oprot.writeI64(self.fulfilmentWarehouseId)
4501 mandeep.dh 4499
      oprot.writeFieldEnd()
5361 mandeep.dh 4500
    if self.billingWarehouseId is not None:
4501
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)
4502
      oprot.writeI64(self.billingWarehouseId)
4503
      oprot.writeFieldEnd()
2821 chandransh 4504
    oprot.writeFieldStop()
4505
    oprot.writeStructEnd()
4506
 
3431 rajveer 4507
  def validate(self):
4508
    return
4509
 
4510
 
2821 chandransh 4511
  def __repr__(self):
4512
    L = ['%s=%r' % (key, value)
4513
      for key, value in self.__dict__.iteritems()]
4514
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4515
 
4516
  def __eq__(self, other):
4517
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4518
 
4519
  def __ne__(self, other):
4520
    return not (self == other)
4521
 
4501 mandeep.dh 4522
class scanForOrder_result:
2821 chandransh 4523
  """
4524
  Attributes:
5361 mandeep.dh 4525
   - success
2821 chandransh 4526
   - wex
4527
  """
4528
 
4529
  thrift_spec = (
5361 mandeep.dh 4530
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
2821 chandransh 4531
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
4532
  )
4533
 
5361 mandeep.dh 4534
  def __init__(self, success=None, wex=None,):
4535
    self.success = success
2821 chandransh 4536
    self.wex = wex
4537
 
4538
  def read(self, iprot):
4539
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4540
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4541
      return
4542
    iprot.readStructBegin()
4543
    while True:
4544
      (fname, ftype, fid) = iprot.readFieldBegin()
4545
      if ftype == TType.STOP:
4546
        break
5361 mandeep.dh 4547
      if fid == 0:
2821 chandransh 4548
        if ftype == TType.STRUCT:
5361 mandeep.dh 4549
          self.success = InventoryItem()
4550
          self.success.read(iprot)
4551
        else:
4552
          iprot.skip(ftype)
4553
      elif fid == 1:
4554
        if ftype == TType.STRUCT:
2821 chandransh 4555
          self.wex = WarehouseServiceException()
4556
          self.wex.read(iprot)
4557
        else:
4558
          iprot.skip(ftype)
4559
      else:
4560
        iprot.skip(ftype)
4561
      iprot.readFieldEnd()
4562
    iprot.readStructEnd()
4563
 
4564
  def write(self, oprot):
4565
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4566
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4567
      return
4501 mandeep.dh 4568
    oprot.writeStructBegin('scanForOrder_result')
5361 mandeep.dh 4569
    if self.success is not None:
4570
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4571
      self.success.write(oprot)
4572
      oprot.writeFieldEnd()
3431 rajveer 4573
    if self.wex is not None:
2821 chandransh 4574
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
4575
      self.wex.write(oprot)
4576
      oprot.writeFieldEnd()
4577
    oprot.writeFieldStop()
4578
    oprot.writeStructEnd()
4579
 
3431 rajveer 4580
  def validate(self):
4581
    return
4582
 
4583
 
2821 chandransh 4584
  def __repr__(self):
4585
    L = ['%s=%r' % (key, value)
4586
      for key, value in self.__dict__.iteritems()]
4587
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4588
 
4589
  def __eq__(self, other):
4590
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4591
 
4592
  def __ne__(self, other):
4593
    return not (self == other)
4501 mandeep.dh 4594
 
4595
class createItemNumberMapping_args:
4596
  """
4597
  Attributes:
4598
   - itemNumber
4599
   - itemId
4600
  """
4601
 
4602
  thrift_spec = (
4603
    None, # 0
4604
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
4605
    (2, TType.I64, 'itemId', None, None, ), # 2
4606
  )
4607
 
4608
  def __init__(self, itemNumber=None, itemId=None,):
4609
    self.itemNumber = itemNumber
4610
    self.itemId = itemId
4611
 
4612
  def read(self, iprot):
4613
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4614
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4615
      return
4616
    iprot.readStructBegin()
4617
    while True:
4618
      (fname, ftype, fid) = iprot.readFieldBegin()
4619
      if ftype == TType.STOP:
4620
        break
4621
      if fid == 1:
4622
        if ftype == TType.STRING:
4623
          self.itemNumber = iprot.readString();
4624
        else:
4625
          iprot.skip(ftype)
4626
      elif fid == 2:
4627
        if ftype == TType.I64:
4628
          self.itemId = iprot.readI64();
4629
        else:
4630
          iprot.skip(ftype)
4631
      else:
4632
        iprot.skip(ftype)
4633
      iprot.readFieldEnd()
4634
    iprot.readStructEnd()
4635
 
4636
  def write(self, oprot):
4637
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4638
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4639
      return
4640
    oprot.writeStructBegin('createItemNumberMapping_args')
4641
    if self.itemNumber is not None:
4642
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
4643
      oprot.writeString(self.itemNumber)
4644
      oprot.writeFieldEnd()
4645
    if self.itemId is not None:
4646
      oprot.writeFieldBegin('itemId', TType.I64, 2)
4647
      oprot.writeI64(self.itemId)
4648
      oprot.writeFieldEnd()
4649
    oprot.writeFieldStop()
4650
    oprot.writeStructEnd()
4651
 
4652
  def validate(self):
4653
    return
4654
 
4655
 
4656
  def __repr__(self):
4657
    L = ['%s=%r' % (key, value)
4658
      for key, value in self.__dict__.iteritems()]
4659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4660
 
4661
  def __eq__(self, other):
4662
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4663
 
4664
  def __ne__(self, other):
4665
    return not (self == other)
4666
 
4667
class createItemNumberMapping_result:
4668
 
4669
  thrift_spec = (
4670
  )
4671
 
4672
  def read(self, iprot):
4673
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4674
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4675
      return
4676
    iprot.readStructBegin()
4677
    while True:
4678
      (fname, ftype, fid) = iprot.readFieldBegin()
4679
      if ftype == TType.STOP:
4680
        break
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
4690
    oprot.writeStructBegin('createItemNumberMapping_result')
4691
    oprot.writeFieldStop()
4692
    oprot.writeStructEnd()
4693
 
4694
  def validate(self):
4695
    return
4696
 
4697
 
4698
  def __repr__(self):
4699
    L = ['%s=%r' % (key, value)
4700
      for key, value in self.__dict__.iteritems()]
4701
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4702
 
4703
  def __eq__(self, other):
4704
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4705
 
4706
  def __ne__(self, other):
4707
    return not (self == other)
4620 amit.gupta 4708
 
4709
class getItemNumbers_args:
4710
  """
4711
  Attributes:
4712
   - itemId
4713
  """
4714
 
4715
  thrift_spec = (
4716
    None, # 0
4717
    (1, TType.I64, 'itemId', None, None, ), # 1
4718
  )
4719
 
4720
  def __init__(self, itemId=None,):
4721
    self.itemId = itemId
4722
 
4723
  def read(self, iprot):
4724
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4725
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4726
      return
4727
    iprot.readStructBegin()
4728
    while True:
4729
      (fname, ftype, fid) = iprot.readFieldBegin()
4730
      if ftype == TType.STOP:
4731
        break
4732
      if fid == 1:
4733
        if ftype == TType.I64:
4734
          self.itemId = iprot.readI64();
4735
        else:
4736
          iprot.skip(ftype)
4737
      else:
4738
        iprot.skip(ftype)
4739
      iprot.readFieldEnd()
4740
    iprot.readStructEnd()
4741
 
4742
  def write(self, oprot):
4743
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4744
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4745
      return
4746
    oprot.writeStructBegin('getItemNumbers_args')
4747
    if self.itemId is not None:
4748
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4749
      oprot.writeI64(self.itemId)
4750
      oprot.writeFieldEnd()
4751
    oprot.writeFieldStop()
4752
    oprot.writeStructEnd()
4753
 
4754
  def validate(self):
4755
    return
4756
 
4757
 
4758
  def __repr__(self):
4759
    L = ['%s=%r' % (key, value)
4760
      for key, value in self.__dict__.iteritems()]
4761
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4762
 
4763
  def __eq__(self, other):
4764
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4765
 
4766
  def __ne__(self, other):
4767
    return not (self == other)
4768
 
4769
class getItemNumbers_result:
4770
  """
4771
  Attributes:
4772
   - success
4773
  """
4774
 
4775
  thrift_spec = (
4776
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
4777
  )
4778
 
4779
  def __init__(self, success=None,):
4780
    self.success = success
4781
 
4782
  def read(self, iprot):
4783
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4784
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4785
      return
4786
    iprot.readStructBegin()
4787
    while True:
4788
      (fname, ftype, fid) = iprot.readFieldBegin()
4789
      if ftype == TType.STOP:
4790
        break
4791
      if fid == 0:
4792
        if ftype == TType.LIST:
4793
          self.success = []
5361 mandeep.dh 4794
          (_etype3, _size0) = iprot.readListBegin()
4795
          for _i4 in xrange(_size0):
4796
            _elem5 = iprot.readString();
4797
            self.success.append(_elem5)
4620 amit.gupta 4798
          iprot.readListEnd()
4799
        else:
4800
          iprot.skip(ftype)
4801
      else:
4802
        iprot.skip(ftype)
4803
      iprot.readFieldEnd()
4804
    iprot.readStructEnd()
4805
 
4806
  def write(self, oprot):
4807
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4808
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4809
      return
4810
    oprot.writeStructBegin('getItemNumbers_result')
4811
    if self.success is not None:
4812
      oprot.writeFieldBegin('success', TType.LIST, 0)
4813
      oprot.writeListBegin(TType.STRING, len(self.success))
5361 mandeep.dh 4814
      for iter6 in self.success:
4815
        oprot.writeString(iter6)
4620 amit.gupta 4816
      oprot.writeListEnd()
4817
      oprot.writeFieldEnd()
4818
    oprot.writeFieldStop()
4819
    oprot.writeStructEnd()
4820
 
4821
  def validate(self):
4822
    return
4823
 
4824
 
4825
  def __repr__(self):
4826
    L = ['%s=%r' % (key, value)
4827
      for key, value in self.__dict__.iteritems()]
4828
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4829
 
4830
  def __eq__(self, other):
4831
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4832
 
4833
  def __ne__(self, other):
4834
    return not (self == other)
5110 mandeep.dh 4835
 
4836
class getItemIds_args:
4837
  """
4838
  Attributes:
4839
   - itemNumber
4840
  """
4841
 
4842
  thrift_spec = (
4843
    None, # 0
4844
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
4845
  )
4846
 
4847
  def __init__(self, itemNumber=None,):
4848
    self.itemNumber = itemNumber
4849
 
4850
  def read(self, iprot):
4851
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4852
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4853
      return
4854
    iprot.readStructBegin()
4855
    while True:
4856
      (fname, ftype, fid) = iprot.readFieldBegin()
4857
      if ftype == TType.STOP:
4858
        break
4859
      if fid == 1:
4860
        if ftype == TType.STRING:
4861
          self.itemNumber = iprot.readString();
4862
        else:
4863
          iprot.skip(ftype)
4864
      else:
4865
        iprot.skip(ftype)
4866
      iprot.readFieldEnd()
4867
    iprot.readStructEnd()
4868
 
4869
  def write(self, oprot):
4870
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4871
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4872
      return
4873
    oprot.writeStructBegin('getItemIds_args')
4874
    if self.itemNumber is not None:
4875
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
4876
      oprot.writeString(self.itemNumber)
4877
      oprot.writeFieldEnd()
4878
    oprot.writeFieldStop()
4879
    oprot.writeStructEnd()
4880
 
4881
  def validate(self):
4882
    return
4883
 
4884
 
4885
  def __repr__(self):
4886
    L = ['%s=%r' % (key, value)
4887
      for key, value in self.__dict__.iteritems()]
4888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4889
 
4890
  def __eq__(self, other):
4891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4892
 
4893
  def __ne__(self, other):
4894
    return not (self == other)
4895
 
4896
class getItemIds_result:
4897
  """
4898
  Attributes:
4899
   - success
4900
  """
4901
 
4902
  thrift_spec = (
4903
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
4904
  )
4905
 
4906
  def __init__(self, success=None,):
4907
    self.success = success
4908
 
4909
  def read(self, iprot):
4910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4912
      return
4913
    iprot.readStructBegin()
4914
    while True:
4915
      (fname, ftype, fid) = iprot.readFieldBegin()
4916
      if ftype == TType.STOP:
4917
        break
4918
      if fid == 0:
4919
        if ftype == TType.LIST:
4920
          self.success = []
5361 mandeep.dh 4921
          (_etype10, _size7) = iprot.readListBegin()
4922
          for _i11 in xrange(_size7):
4923
            _elem12 = iprot.readI64();
4924
            self.success.append(_elem12)
5110 mandeep.dh 4925
          iprot.readListEnd()
4926
        else:
4927
          iprot.skip(ftype)
4928
      else:
4929
        iprot.skip(ftype)
4930
      iprot.readFieldEnd()
4931
    iprot.readStructEnd()
4932
 
4933
  def write(self, oprot):
4934
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4935
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4936
      return
4937
    oprot.writeStructBegin('getItemIds_result')
4938
    if self.success is not None:
4939
      oprot.writeFieldBegin('success', TType.LIST, 0)
4940
      oprot.writeListBegin(TType.I64, len(self.success))
5361 mandeep.dh 4941
      for iter13 in self.success:
4942
        oprot.writeI64(iter13)
5110 mandeep.dh 4943
      oprot.writeListEnd()
4944
      oprot.writeFieldEnd()
4945
    oprot.writeFieldStop()
4946
    oprot.writeStructEnd()
4947
 
4948
  def validate(self):
4949
    return
4950
 
4951
 
4952
  def __repr__(self):
4953
    L = ['%s=%r' % (key, value)
4954
      for key, value in self.__dict__.iteritems()]
4955
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4956
 
4957
  def __eq__(self, other):
4958
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4959
 
4960
  def __ne__(self, other):
4961
    return not (self == other)
5185 mandeep.dh 4962
 
4963
class getInventoryItemsFromLastScanType_args:
4964
  """
4965
  Attributes:
4966
   - lastScanType
4967
  """
4968
 
4969
  thrift_spec = (
4970
    None, # 0
4971
    (1, TType.I32, 'lastScanType', None, None, ), # 1
4972
  )
4973
 
4974
  def __init__(self, lastScanType=None,):
4975
    self.lastScanType = lastScanType
4976
 
4977
  def read(self, iprot):
4978
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4979
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4980
      return
4981
    iprot.readStructBegin()
4982
    while True:
4983
      (fname, ftype, fid) = iprot.readFieldBegin()
4984
      if ftype == TType.STOP:
4985
        break
4986
      if fid == 1:
4987
        if ftype == TType.I32:
4988
          self.lastScanType = iprot.readI32();
4989
        else:
4990
          iprot.skip(ftype)
4991
      else:
4992
        iprot.skip(ftype)
4993
      iprot.readFieldEnd()
4994
    iprot.readStructEnd()
4995
 
4996
  def write(self, oprot):
4997
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4998
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4999
      return
5000
    oprot.writeStructBegin('getInventoryItemsFromLastScanType_args')
5001
    if self.lastScanType is not None:
5002
      oprot.writeFieldBegin('lastScanType', TType.I32, 1)
5003
      oprot.writeI32(self.lastScanType)
5004
      oprot.writeFieldEnd()
5005
    oprot.writeFieldStop()
5006
    oprot.writeStructEnd()
5007
 
5008
  def validate(self):
5009
    return
5010
 
5011
 
5012
  def __repr__(self):
5013
    L = ['%s=%r' % (key, value)
5014
      for key, value in self.__dict__.iteritems()]
5015
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5016
 
5017
  def __eq__(self, other):
5018
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5019
 
5020
  def __ne__(self, other):
5021
    return not (self == other)
5022
 
5023
class getInventoryItemsFromLastScanType_result:
5024
  """
5025
  Attributes:
5026
   - success
5027
   - wex
5028
  """
5029
 
5030
  thrift_spec = (
5031
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
5032
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
5033
  )
5034
 
5035
  def __init__(self, success=None, wex=None,):
5036
    self.success = success
5037
    self.wex = wex
5038
 
5039
  def read(self, iprot):
5040
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5041
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5042
      return
5043
    iprot.readStructBegin()
5044
    while True:
5045
      (fname, ftype, fid) = iprot.readFieldBegin()
5046
      if ftype == TType.STOP:
5047
        break
5048
      if fid == 0:
5049
        if ftype == TType.LIST:
5050
          self.success = []
5361 mandeep.dh 5051
          (_etype17, _size14) = iprot.readListBegin()
5052
          for _i18 in xrange(_size14):
5053
            _elem19 = InventoryItem()
5054
            _elem19.read(iprot)
5055
            self.success.append(_elem19)
5185 mandeep.dh 5056
          iprot.readListEnd()
5057
        else:
5058
          iprot.skip(ftype)
5059
      elif fid == 1:
5060
        if ftype == TType.STRUCT:
5061
          self.wex = WarehouseServiceException()
5062
          self.wex.read(iprot)
5063
        else:
5064
          iprot.skip(ftype)
5065
      else:
5066
        iprot.skip(ftype)
5067
      iprot.readFieldEnd()
5068
    iprot.readStructEnd()
5069
 
5070
  def write(self, oprot):
5071
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5072
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5073
      return
5074
    oprot.writeStructBegin('getInventoryItemsFromLastScanType_result')
5075
    if self.success is not None:
5076
      oprot.writeFieldBegin('success', TType.LIST, 0)
5077
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5361 mandeep.dh 5078
      for iter20 in self.success:
5079
        iter20.write(oprot)
5185 mandeep.dh 5080
      oprot.writeListEnd()
5081
      oprot.writeFieldEnd()
5082
    if self.wex is not None:
5083
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
5084
      self.wex.write(oprot)
5085
      oprot.writeFieldEnd()
5086
    oprot.writeFieldStop()
5087
    oprot.writeStructEnd()
5088
 
5089
  def validate(self):
5090
    return
5091
 
5092
 
5093
  def __repr__(self):
5094
    L = ['%s=%r' % (key, value)
5095
      for key, value in self.__dict__.iteritems()]
5096
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5097
 
5098
  def __eq__(self, other):
5099
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5100
 
5101
  def __ne__(self, other):
5102
    return not (self == other)
5103
 
5104
class getInventoryItemFromId_args:
5105
  """
5106
  Attributes:
5107
   - inventoryItemId
5108
  """
5109
 
5110
  thrift_spec = (
5111
    None, # 0
5112
    (1, TType.I64, 'inventoryItemId', None, None, ), # 1
5113
  )
5114
 
5115
  def __init__(self, inventoryItemId=None,):
5116
    self.inventoryItemId = inventoryItemId
5117
 
5118
  def read(self, iprot):
5119
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5120
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5121
      return
5122
    iprot.readStructBegin()
5123
    while True:
5124
      (fname, ftype, fid) = iprot.readFieldBegin()
5125
      if ftype == TType.STOP:
5126
        break
5127
      if fid == 1:
5128
        if ftype == TType.I64:
5129
          self.inventoryItemId = iprot.readI64();
5130
        else:
5131
          iprot.skip(ftype)
5132
      else:
5133
        iprot.skip(ftype)
5134
      iprot.readFieldEnd()
5135
    iprot.readStructEnd()
5136
 
5137
  def write(self, oprot):
5138
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5139
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5140
      return
5141
    oprot.writeStructBegin('getInventoryItemFromId_args')
5142
    if self.inventoryItemId is not None:
5143
      oprot.writeFieldBegin('inventoryItemId', TType.I64, 1)
5144
      oprot.writeI64(self.inventoryItemId)
5145
      oprot.writeFieldEnd()
5146
    oprot.writeFieldStop()
5147
    oprot.writeStructEnd()
5148
 
5149
  def validate(self):
5150
    return
5151
 
5152
 
5153
  def __repr__(self):
5154
    L = ['%s=%r' % (key, value)
5155
      for key, value in self.__dict__.iteritems()]
5156
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5157
 
5158
  def __eq__(self, other):
5159
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5160
 
5161
  def __ne__(self, other):
5162
    return not (self == other)
5163
 
5164
class getInventoryItemFromId_result:
5165
  """
5166
  Attributes:
5167
   - success
5168
   - wex
5169
  """
5170
 
5171
  thrift_spec = (
5172
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
5173
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
5174
  )
5175
 
5176
  def __init__(self, success=None, wex=None,):
5177
    self.success = success
5178
    self.wex = wex
5179
 
5180
  def read(self, iprot):
5181
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5182
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5183
      return
5184
    iprot.readStructBegin()
5185
    while True:
5186
      (fname, ftype, fid) = iprot.readFieldBegin()
5187
      if ftype == TType.STOP:
5188
        break
5189
      if fid == 0:
5190
        if ftype == TType.STRUCT:
5191
          self.success = InventoryItem()
5192
          self.success.read(iprot)
5193
        else:
5194
          iprot.skip(ftype)
5195
      elif fid == 1:
5196
        if ftype == TType.STRUCT:
5197
          self.wex = WarehouseServiceException()
5198
          self.wex.read(iprot)
5199
        else:
5200
          iprot.skip(ftype)
5201
      else:
5202
        iprot.skip(ftype)
5203
      iprot.readFieldEnd()
5204
    iprot.readStructEnd()
5205
 
5206
  def write(self, oprot):
5207
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5208
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5209
      return
5210
    oprot.writeStructBegin('getInventoryItemFromId_result')
5211
    if self.success is not None:
5212
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5213
      self.success.write(oprot)
5214
      oprot.writeFieldEnd()
5215
    if self.wex is not None:
5216
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
5217
      self.wex.write(oprot)
5218
      oprot.writeFieldEnd()
5219
    oprot.writeFieldStop()
5220
    oprot.writeStructEnd()
5221
 
5222
  def validate(self):
5223
    return
5224
 
5225
 
5226
  def __repr__(self):
5227
    L = ['%s=%r' % (key, value)
5228
      for key, value in self.__dict__.iteritems()]
5229
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5230
 
5231
  def __eq__(self, other):
5232
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5233
 
5234
  def __ne__(self, other):
5235
    return not (self == other)
5372 mandeep.dh 5236
 
5237
class getPurchaseScans_args:
5238
  """
5239
  Attributes:
5240
   - startDate
5241
   - endDate
5242
  """
5243
 
5244
  thrift_spec = (
5245
    None, # 0
5246
    (1, TType.I64, 'startDate', None, None, ), # 1
5247
    (2, TType.I64, 'endDate', None, None, ), # 2
5248
  )
5249
 
5250
  def __init__(self, startDate=None, endDate=None,):
5251
    self.startDate = startDate
5252
    self.endDate = endDate
5253
 
5254
  def read(self, iprot):
5255
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5256
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5257
      return
5258
    iprot.readStructBegin()
5259
    while True:
5260
      (fname, ftype, fid) = iprot.readFieldBegin()
5261
      if ftype == TType.STOP:
5262
        break
5263
      if fid == 1:
5264
        if ftype == TType.I64:
5265
          self.startDate = iprot.readI64();
5266
        else:
5267
          iprot.skip(ftype)
5268
      elif fid == 2:
5269
        if ftype == TType.I64:
5270
          self.endDate = iprot.readI64();
5271
        else:
5272
          iprot.skip(ftype)
5273
      else:
5274
        iprot.skip(ftype)
5275
      iprot.readFieldEnd()
5276
    iprot.readStructEnd()
5277
 
5278
  def write(self, oprot):
5279
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5280
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5281
      return
5282
    oprot.writeStructBegin('getPurchaseScans_args')
5283
    if self.startDate is not None:
5284
      oprot.writeFieldBegin('startDate', TType.I64, 1)
5285
      oprot.writeI64(self.startDate)
5286
      oprot.writeFieldEnd()
5287
    if self.endDate is not None:
5288
      oprot.writeFieldBegin('endDate', TType.I64, 2)
5289
      oprot.writeI64(self.endDate)
5290
      oprot.writeFieldEnd()
5291
    oprot.writeFieldStop()
5292
    oprot.writeStructEnd()
5293
 
5294
  def validate(self):
5295
    return
5296
 
5297
 
5298
  def __repr__(self):
5299
    L = ['%s=%r' % (key, value)
5300
      for key, value in self.__dict__.iteritems()]
5301
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5302
 
5303
  def __eq__(self, other):
5304
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5305
 
5306
  def __ne__(self, other):
5307
    return not (self == other)
5308
 
5309
class getPurchaseScans_result:
5310
  """
5311
  Attributes:
5312
   - success
5313
  """
5314
 
5315
  thrift_spec = (
5316
    (0, TType.LIST, 'success', (TType.STRUCT,(DetailedPurchaseScan, DetailedPurchaseScan.thrift_spec)), None, ), # 0
5317
  )
5318
 
5319
  def __init__(self, success=None,):
5320
    self.success = success
5321
 
5322
  def read(self, iprot):
5323
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5324
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5325
      return
5326
    iprot.readStructBegin()
5327
    while True:
5328
      (fname, ftype, fid) = iprot.readFieldBegin()
5329
      if ftype == TType.STOP:
5330
        break
5331
      if fid == 0:
5332
        if ftype == TType.LIST:
5333
          self.success = []
5334
          (_etype24, _size21) = iprot.readListBegin()
5335
          for _i25 in xrange(_size21):
5336
            _elem26 = DetailedPurchaseScan()
5337
            _elem26.read(iprot)
5338
            self.success.append(_elem26)
5339
          iprot.readListEnd()
5340
        else:
5341
          iprot.skip(ftype)
5342
      else:
5343
        iprot.skip(ftype)
5344
      iprot.readFieldEnd()
5345
    iprot.readStructEnd()
5346
 
5347
  def write(self, oprot):
5348
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5349
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5350
      return
5351
    oprot.writeStructBegin('getPurchaseScans_result')
5352
    if self.success is not None:
5353
      oprot.writeFieldBegin('success', TType.LIST, 0)
5354
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5355
      for iter27 in self.success:
5356
        iter27.write(oprot)
5357
      oprot.writeListEnd()
5358
      oprot.writeFieldEnd()
5359
    oprot.writeFieldStop()
5360
    oprot.writeStructEnd()
5361
 
5362
  def validate(self):
5363
    return
5364
 
5365
 
5366
  def __repr__(self):
5367
    L = ['%s=%r' % (key, value)
5368
      for key, value in self.__dict__.iteritems()]
5369
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5370
 
5371
  def __eq__(self, other):
5372
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5373
 
5374
  def __ne__(self, other):
5375
    return not (self == other)
5496 mandeep.dh 5376
 
7216 amar.kumar 5377
class getPurchaseScansByGrnDate_args:
5378
  """
5379
  Attributes:
5380
   - startDate
5381
   - endDate
5382
  """
5383
 
5384
  thrift_spec = (
5385
    None, # 0
5386
    (1, TType.I64, 'startDate', None, None, ), # 1
5387
    (2, TType.I64, 'endDate', None, None, ), # 2
5388
  )
5389
 
5390
  def __init__(self, startDate=None, endDate=None,):
5391
    self.startDate = startDate
5392
    self.endDate = endDate
5393
 
5394
  def read(self, iprot):
5395
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5396
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5397
      return
5398
    iprot.readStructBegin()
5399
    while True:
5400
      (fname, ftype, fid) = iprot.readFieldBegin()
5401
      if ftype == TType.STOP:
5402
        break
5403
      if fid == 1:
5404
        if ftype == TType.I64:
5405
          self.startDate = iprot.readI64();
5406
        else:
5407
          iprot.skip(ftype)
5408
      elif fid == 2:
5409
        if ftype == TType.I64:
5410
          self.endDate = iprot.readI64();
5411
        else:
5412
          iprot.skip(ftype)
5413
      else:
5414
        iprot.skip(ftype)
5415
      iprot.readFieldEnd()
5416
    iprot.readStructEnd()
5417
 
5418
  def write(self, oprot):
5419
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5420
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5421
      return
5422
    oprot.writeStructBegin('getPurchaseScansByGrnDate_args')
5423
    if self.startDate is not None:
5424
      oprot.writeFieldBegin('startDate', TType.I64, 1)
5425
      oprot.writeI64(self.startDate)
5426
      oprot.writeFieldEnd()
5427
    if self.endDate is not None:
5428
      oprot.writeFieldBegin('endDate', TType.I64, 2)
5429
      oprot.writeI64(self.endDate)
5430
      oprot.writeFieldEnd()
5431
    oprot.writeFieldStop()
5432
    oprot.writeStructEnd()
5433
 
5434
  def validate(self):
5435
    return
5436
 
5437
 
5438
  def __repr__(self):
5439
    L = ['%s=%r' % (key, value)
5440
      for key, value in self.__dict__.iteritems()]
5441
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5442
 
5443
  def __eq__(self, other):
5444
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5445
 
5446
  def __ne__(self, other):
5447
    return not (self == other)
5448
 
5449
class getPurchaseScansByGrnDate_result:
5450
  """
5451
  Attributes:
5452
   - success
5453
  """
5454
 
5455
  thrift_spec = (
5456
    (0, TType.LIST, 'success', (TType.STRUCT,(DetailedPurchaseScan, DetailedPurchaseScan.thrift_spec)), None, ), # 0
5457
  )
5458
 
5459
  def __init__(self, success=None,):
5460
    self.success = success
5461
 
5462
  def read(self, iprot):
5463
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5464
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5465
      return
5466
    iprot.readStructBegin()
5467
    while True:
5468
      (fname, ftype, fid) = iprot.readFieldBegin()
5469
      if ftype == TType.STOP:
5470
        break
5471
      if fid == 0:
5472
        if ftype == TType.LIST:
5473
          self.success = []
5474
          (_etype31, _size28) = iprot.readListBegin()
5475
          for _i32 in xrange(_size28):
5476
            _elem33 = DetailedPurchaseScan()
5477
            _elem33.read(iprot)
5478
            self.success.append(_elem33)
5479
          iprot.readListEnd()
5480
        else:
5481
          iprot.skip(ftype)
5482
      else:
5483
        iprot.skip(ftype)
5484
      iprot.readFieldEnd()
5485
    iprot.readStructEnd()
5486
 
5487
  def write(self, oprot):
5488
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5489
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5490
      return
5491
    oprot.writeStructBegin('getPurchaseScansByGrnDate_result')
5492
    if self.success is not None:
5493
      oprot.writeFieldBegin('success', TType.LIST, 0)
5494
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5495
      for iter34 in self.success:
5496
        iter34.write(oprot)
5497
      oprot.writeListEnd()
5498
      oprot.writeFieldEnd()
5499
    oprot.writeFieldStop()
5500
    oprot.writeStructEnd()
5501
 
5502
  def validate(self):
5503
    return
5504
 
5505
 
5506
  def __repr__(self):
5507
    L = ['%s=%r' % (key, value)
5508
      for key, value in self.__dict__.iteritems()]
5509
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5510
 
5511
  def __eq__(self, other):
5512
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5513
 
5514
  def __ne__(self, other):
5515
    return not (self == other)
5516
 
10407 amar.kumar 5517
class getEmptyGrnsByDate_args:
5518
  """
5519
  Attributes:
5520
   - startDate
5521
   - endDate
5522
  """
5523
 
5524
  thrift_spec = (
5525
    None, # 0
5526
    (1, TType.I64, 'startDate', None, None, ), # 1
5527
    (2, TType.I64, 'endDate', None, None, ), # 2
5528
  )
5529
 
5530
  def __init__(self, startDate=None, endDate=None,):
5531
    self.startDate = startDate
5532
    self.endDate = endDate
5533
 
5534
  def read(self, iprot):
5535
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5536
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5537
      return
5538
    iprot.readStructBegin()
5539
    while True:
5540
      (fname, ftype, fid) = iprot.readFieldBegin()
5541
      if ftype == TType.STOP:
5542
        break
5543
      if fid == 1:
5544
        if ftype == TType.I64:
5545
          self.startDate = iprot.readI64();
5546
        else:
5547
          iprot.skip(ftype)
5548
      elif fid == 2:
5549
        if ftype == TType.I64:
5550
          self.endDate = iprot.readI64();
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('getEmptyGrnsByDate_args')
5563
    if self.startDate is not None:
5564
      oprot.writeFieldBegin('startDate', TType.I64, 1)
5565
      oprot.writeI64(self.startDate)
5566
      oprot.writeFieldEnd()
5567
    if self.endDate is not None:
5568
      oprot.writeFieldBegin('endDate', TType.I64, 2)
5569
      oprot.writeI64(self.endDate)
5570
      oprot.writeFieldEnd()
5571
    oprot.writeFieldStop()
5572
    oprot.writeStructEnd()
5573
 
5574
  def validate(self):
5575
    return
5576
 
5577
 
5578
  def __repr__(self):
5579
    L = ['%s=%r' % (key, value)
5580
      for key, value in self.__dict__.iteritems()]
5581
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5582
 
5583
  def __eq__(self, other):
5584
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5585
 
5586
  def __ne__(self, other):
5587
    return not (self == other)
5588
 
5589
class getEmptyGrnsByDate_result:
5590
  """
5591
  Attributes:
5592
   - success
5593
  """
5594
 
5595
  thrift_spec = (
5596
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5597
  )
5598
 
5599
  def __init__(self, success=None,):
5600
    self.success = success
5601
 
5602
  def read(self, iprot):
5603
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5604
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5605
      return
5606
    iprot.readStructBegin()
5607
    while True:
5608
      (fname, ftype, fid) = iprot.readFieldBegin()
5609
      if ftype == TType.STOP:
5610
        break
5611
      if fid == 0:
5612
        if ftype == TType.LIST:
5613
          self.success = []
5614
          (_etype38, _size35) = iprot.readListBegin()
5615
          for _i39 in xrange(_size35):
5616
            _elem40 = iprot.readI64();
5617
            self.success.append(_elem40)
5618
          iprot.readListEnd()
5619
        else:
5620
          iprot.skip(ftype)
5621
      else:
5622
        iprot.skip(ftype)
5623
      iprot.readFieldEnd()
5624
    iprot.readStructEnd()
5625
 
5626
  def write(self, oprot):
5627
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5628
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5629
      return
5630
    oprot.writeStructBegin('getEmptyGrnsByDate_result')
5631
    if self.success is not None:
5632
      oprot.writeFieldBegin('success', TType.LIST, 0)
5633
      oprot.writeListBegin(TType.I64, len(self.success))
5634
      for iter41 in self.success:
5635
        oprot.writeI64(iter41)
5636
      oprot.writeListEnd()
5637
      oprot.writeFieldEnd()
5638
    oprot.writeFieldStop()
5639
    oprot.writeStructEnd()
5640
 
5641
  def validate(self):
5642
    return
5643
 
5644
 
5645
  def __repr__(self):
5646
    L = ['%s=%r' % (key, value)
5647
      for key, value in self.__dict__.iteritems()]
5648
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5649
 
5650
  def __eq__(self, other):
5651
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5652
 
5653
  def __ne__(self, other):
5654
    return not (self == other)
5655
 
5496 mandeep.dh 5656
class fetchScansPerInvoiceNumber_args:
5657
  """
5658
  Attributes:
5659
   - date
5660
  """
5661
 
5662
  thrift_spec = (
5663
    None, # 0
5664
    (1, TType.I64, 'date', None, None, ), # 1
5665
  )
5666
 
5667
  def __init__(self, date=None,):
5668
    self.date = date
5669
 
5670
  def read(self, iprot):
5671
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5672
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5673
      return
5674
    iprot.readStructBegin()
5675
    while True:
5676
      (fname, ftype, fid) = iprot.readFieldBegin()
5677
      if ftype == TType.STOP:
5678
        break
5679
      if fid == 1:
5680
        if ftype == TType.I64:
5681
          self.date = iprot.readI64();
5682
        else:
5683
          iprot.skip(ftype)
5684
      else:
5685
        iprot.skip(ftype)
5686
      iprot.readFieldEnd()
5687
    iprot.readStructEnd()
5688
 
5689
  def write(self, oprot):
5690
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5691
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5692
      return
5693
    oprot.writeStructBegin('fetchScansPerInvoiceNumber_args')
5694
    if self.date is not None:
5695
      oprot.writeFieldBegin('date', TType.I64, 1)
5696
      oprot.writeI64(self.date)
5697
      oprot.writeFieldEnd()
5698
    oprot.writeFieldStop()
5699
    oprot.writeStructEnd()
5700
 
5701
  def validate(self):
5702
    return
5703
 
5704
 
5705
  def __repr__(self):
5706
    L = ['%s=%r' % (key, value)
5707
      for key, value in self.__dict__.iteritems()]
5708
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5709
 
5710
  def __eq__(self, other):
5711
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5712
 
5713
  def __ne__(self, other):
5714
    return not (self == other)
5715
 
5716
class fetchScansPerInvoiceNumber_result:
5717
  """
5718
  Attributes:
5719
   - success
5720
  """
5721
 
5722
  thrift_spec = (
5723
    (0, TType.LIST, 'success', (TType.STRUCT,(InvoiceScan, InvoiceScan.thrift_spec)), None, ), # 0
5724
  )
5725
 
5726
  def __init__(self, success=None,):
5727
    self.success = success
5728
 
5729
  def read(self, iprot):
5730
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5731
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5732
      return
5733
    iprot.readStructBegin()
5734
    while True:
5735
      (fname, ftype, fid) = iprot.readFieldBegin()
5736
      if ftype == TType.STOP:
5737
        break
5738
      if fid == 0:
5739
        if ftype == TType.LIST:
5740
          self.success = []
10407 amar.kumar 5741
          (_etype45, _size42) = iprot.readListBegin()
5742
          for _i46 in xrange(_size42):
5743
            _elem47 = InvoiceScan()
5744
            _elem47.read(iprot)
5745
            self.success.append(_elem47)
5496 mandeep.dh 5746
          iprot.readListEnd()
5747
        else:
5748
          iprot.skip(ftype)
5749
      else:
5750
        iprot.skip(ftype)
5751
      iprot.readFieldEnd()
5752
    iprot.readStructEnd()
5753
 
5754
  def write(self, oprot):
5755
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5756
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5757
      return
5758
    oprot.writeStructBegin('fetchScansPerInvoiceNumber_result')
5759
    if self.success is not None:
5760
      oprot.writeFieldBegin('success', TType.LIST, 0)
5761
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 5762
      for iter48 in self.success:
5763
        iter48.write(oprot)
5496 mandeep.dh 5764
      oprot.writeListEnd()
5765
      oprot.writeFieldEnd()
5766
    oprot.writeFieldStop()
5767
    oprot.writeStructEnd()
5768
 
5769
  def validate(self):
5770
    return
5771
 
5772
 
5773
  def __repr__(self):
5774
    L = ['%s=%r' % (key, value)
5775
      for key, value in self.__dict__.iteritems()]
5776
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5777
 
5778
  def __eq__(self, other):
5779
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5780
 
5781
  def __ne__(self, other):
5782
    return not (self == other)
5620 mandeep.dh 5783
 
5784
class getInventoryItemFromOrder_args:
5785
  """
5786
  Attributes:
5787
   - orderId
5788
  """
5789
 
5790
  thrift_spec = (
5791
    None, # 0
5792
    (1, TType.I64, 'orderId', None, None, ), # 1
5793
  )
5794
 
5795
  def __init__(self, orderId=None,):
5796
    self.orderId = orderId
5797
 
5798
  def read(self, iprot):
5799
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5800
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5801
      return
5802
    iprot.readStructBegin()
5803
    while True:
5804
      (fname, ftype, fid) = iprot.readFieldBegin()
5805
      if ftype == TType.STOP:
5806
        break
5807
      if fid == 1:
5808
        if ftype == TType.I64:
5809
          self.orderId = iprot.readI64();
5810
        else:
5811
          iprot.skip(ftype)
5812
      else:
5813
        iprot.skip(ftype)
5814
      iprot.readFieldEnd()
5815
    iprot.readStructEnd()
5816
 
5817
  def write(self, oprot):
5818
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5819
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5820
      return
5821
    oprot.writeStructBegin('getInventoryItemFromOrder_args')
5822
    if self.orderId is not None:
5823
      oprot.writeFieldBegin('orderId', TType.I64, 1)
5824
      oprot.writeI64(self.orderId)
5825
      oprot.writeFieldEnd()
5826
    oprot.writeFieldStop()
5827
    oprot.writeStructEnd()
5828
 
5829
  def validate(self):
5830
    return
5831
 
5832
 
5833
  def __repr__(self):
5834
    L = ['%s=%r' % (key, value)
5835
      for key, value in self.__dict__.iteritems()]
5836
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5837
 
5838
  def __eq__(self, other):
5839
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5840
 
5841
  def __ne__(self, other):
5842
    return not (self == other)
5843
 
5844
class getInventoryItemFromOrder_result:
5845
  """
5846
  Attributes:
5847
   - success
5848
   - we
5849
  """
5850
 
5851
  thrift_spec = (
5852
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
5853
    (1, TType.STRUCT, 'we', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
5854
  )
5855
 
5856
  def __init__(self, success=None, we=None,):
5857
    self.success = success
5858
    self.we = we
5859
 
5860
  def read(self, iprot):
5861
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5862
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5863
      return
5864
    iprot.readStructBegin()
5865
    while True:
5866
      (fname, ftype, fid) = iprot.readFieldBegin()
5867
      if ftype == TType.STOP:
5868
        break
5869
      if fid == 0:
5870
        if ftype == TType.STRUCT:
5871
          self.success = InventoryItem()
5872
          self.success.read(iprot)
5873
        else:
5874
          iprot.skip(ftype)
5875
      elif fid == 1:
5876
        if ftype == TType.STRUCT:
5877
          self.we = WarehouseServiceException()
5878
          self.we.read(iprot)
5879
        else:
5880
          iprot.skip(ftype)
5881
      else:
5882
        iprot.skip(ftype)
5883
      iprot.readFieldEnd()
5884
    iprot.readStructEnd()
5885
 
5886
  def write(self, oprot):
5887
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5888
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5889
      return
5890
    oprot.writeStructBegin('getInventoryItemFromOrder_result')
5891
    if self.success is not None:
5892
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5893
      self.success.write(oprot)
5894
      oprot.writeFieldEnd()
5895
    if self.we is not None:
5896
      oprot.writeFieldBegin('we', TType.STRUCT, 1)
5897
      self.we.write(oprot)
5898
      oprot.writeFieldEnd()
5899
    oprot.writeFieldStop()
5900
    oprot.writeStructEnd()
5901
 
5902
  def validate(self):
5903
    return
5904
 
5905
 
5906
  def __repr__(self):
5907
    L = ['%s=%r' % (key, value)
5908
      for key, value in self.__dict__.iteritems()]
5909
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5910
 
5911
  def __eq__(self, other):
5912
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5913
 
5914
  def __ne__(self, other):
5915
    return not (self == other)
5711 mandeep.dh 5916
 
5917
class getInventoryAge_args:
5918
 
5919
  thrift_spec = (
5920
  )
5921
 
5922
  def read(self, iprot):
5923
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5924
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5925
      return
5926
    iprot.readStructBegin()
5927
    while True:
5928
      (fname, ftype, fid) = iprot.readFieldBegin()
5929
      if ftype == TType.STOP:
5930
        break
5931
      else:
5932
        iprot.skip(ftype)
5933
      iprot.readFieldEnd()
5934
    iprot.readStructEnd()
5935
 
5936
  def write(self, oprot):
5937
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5938
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5939
      return
5940
    oprot.writeStructBegin('getInventoryAge_args')
5941
    oprot.writeFieldStop()
5942
    oprot.writeStructEnd()
5943
 
5944
  def validate(self):
5945
    return
5946
 
5947
 
5948
  def __repr__(self):
5949
    L = ['%s=%r' % (key, value)
5950
      for key, value in self.__dict__.iteritems()]
5951
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5952
 
5953
  def __eq__(self, other):
5954
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5955
 
5956
  def __ne__(self, other):
5957
    return not (self == other)
5958
 
5959
class getInventoryAge_result:
5960
  """
5961
  Attributes:
5962
   - success
5963
  """
5964
 
5965
  thrift_spec = (
5966
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAge, InventoryAge.thrift_spec)), None, ), # 0
5967
  )
5968
 
5969
  def __init__(self, success=None,):
5970
    self.success = success
5971
 
5972
  def read(self, iprot):
5973
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5974
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5975
      return
5976
    iprot.readStructBegin()
5977
    while True:
5978
      (fname, ftype, fid) = iprot.readFieldBegin()
5979
      if ftype == TType.STOP:
5980
        break
5981
      if fid == 0:
5982
        if ftype == TType.LIST:
5983
          self.success = []
10407 amar.kumar 5984
          (_etype52, _size49) = iprot.readListBegin()
5985
          for _i53 in xrange(_size49):
5986
            _elem54 = InventoryAge()
5987
            _elem54.read(iprot)
5988
            self.success.append(_elem54)
5711 mandeep.dh 5989
          iprot.readListEnd()
5990
        else:
5991
          iprot.skip(ftype)
5992
      else:
5993
        iprot.skip(ftype)
5994
      iprot.readFieldEnd()
5995
    iprot.readStructEnd()
5996
 
5997
  def write(self, oprot):
5998
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5999
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6000
      return
6001
    oprot.writeStructBegin('getInventoryAge_result')
6002
    if self.success is not None:
6003
      oprot.writeFieldBegin('success', TType.LIST, 0)
6004
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6005
      for iter55 in self.success:
6006
        iter55.write(oprot)
5711 mandeep.dh 6007
      oprot.writeListEnd()
6008
      oprot.writeFieldEnd()
6009
    oprot.writeFieldStop()
6010
    oprot.writeStructEnd()
6011
 
6012
  def validate(self):
6013
    return
6014
 
6015
 
6016
  def __repr__(self):
6017
    L = ['%s=%r' % (key, value)
6018
      for key, value in self.__dict__.iteritems()]
6019
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6020
 
6021
  def __eq__(self, other):
6022
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6023
 
6024
  def __ne__(self, other):
6025
    return not (self == other)
6361 rajveer 6026
 
6027
class getInventoryScansForItem_args:
6028
  """
6029
  Attributes:
6030
   - itemId
6031
   - fromDate
6032
   - toDate
6033
  """
6034
 
6035
  thrift_spec = (
6036
    None, # 0
6037
    (1, TType.I64, 'itemId', None, None, ), # 1
6038
    (2, TType.I64, 'fromDate', None, None, ), # 2
6039
    (3, TType.I64, 'toDate', None, None, ), # 3
6040
  )
6041
 
6042
  def __init__(self, itemId=None, fromDate=None, toDate=None,):
6043
    self.itemId = itemId
6044
    self.fromDate = fromDate
6045
    self.toDate = toDate
6046
 
6047
  def read(self, iprot):
6048
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6049
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6050
      return
6051
    iprot.readStructBegin()
6052
    while True:
6053
      (fname, ftype, fid) = iprot.readFieldBegin()
6054
      if ftype == TType.STOP:
6055
        break
6056
      if fid == 1:
6057
        if ftype == TType.I64:
6058
          self.itemId = iprot.readI64();
6059
        else:
6060
          iprot.skip(ftype)
6061
      elif fid == 2:
6062
        if ftype == TType.I64:
6063
          self.fromDate = iprot.readI64();
6064
        else:
6065
          iprot.skip(ftype)
6066
      elif fid == 3:
6067
        if ftype == TType.I64:
6068
          self.toDate = iprot.readI64();
6069
        else:
6070
          iprot.skip(ftype)
6071
      else:
6072
        iprot.skip(ftype)
6073
      iprot.readFieldEnd()
6074
    iprot.readStructEnd()
6075
 
6076
  def write(self, oprot):
6077
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6078
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6079
      return
6080
    oprot.writeStructBegin('getInventoryScansForItem_args')
6081
    if self.itemId is not None:
6082
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6083
      oprot.writeI64(self.itemId)
6084
      oprot.writeFieldEnd()
6085
    if self.fromDate is not None:
6086
      oprot.writeFieldBegin('fromDate', TType.I64, 2)
6087
      oprot.writeI64(self.fromDate)
6088
      oprot.writeFieldEnd()
6089
    if self.toDate is not None:
6090
      oprot.writeFieldBegin('toDate', TType.I64, 3)
6091
      oprot.writeI64(self.toDate)
6092
      oprot.writeFieldEnd()
6093
    oprot.writeFieldStop()
6094
    oprot.writeStructEnd()
6095
 
6096
  def validate(self):
6097
    return
6098
 
6099
 
6100
  def __repr__(self):
6101
    L = ['%s=%r' % (key, value)
6102
      for key, value in self.__dict__.iteritems()]
6103
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6104
 
6105
  def __eq__(self, other):
6106
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6107
 
6108
  def __ne__(self, other):
6109
    return not (self == other)
6110
 
6111
class getInventoryScansForItem_result:
6112
  """
6113
  Attributes:
6114
   - success
6115
  """
6116
 
6117
  thrift_spec = (
6118
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
6119
  )
6120
 
6121
  def __init__(self, success=None,):
6122
    self.success = success
6123
 
6124
  def read(self, iprot):
6125
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6126
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6127
      return
6128
    iprot.readStructBegin()
6129
    while True:
6130
      (fname, ftype, fid) = iprot.readFieldBegin()
6131
      if ftype == TType.STOP:
6132
        break
6133
      if fid == 0:
6134
        if ftype == TType.LIST:
6135
          self.success = []
10407 amar.kumar 6136
          (_etype59, _size56) = iprot.readListBegin()
6137
          for _i60 in xrange(_size56):
6138
            _elem61 = Scan()
6139
            _elem61.read(iprot)
6140
            self.success.append(_elem61)
6361 rajveer 6141
          iprot.readListEnd()
6142
        else:
6143
          iprot.skip(ftype)
6144
      else:
6145
        iprot.skip(ftype)
6146
      iprot.readFieldEnd()
6147
    iprot.readStructEnd()
6148
 
6149
  def write(self, oprot):
6150
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6151
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6152
      return
6153
    oprot.writeStructBegin('getInventoryScansForItem_result')
6154
    if self.success is not None:
6155
      oprot.writeFieldBegin('success', TType.LIST, 0)
6156
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6157
      for iter62 in self.success:
6158
        iter62.write(oprot)
6361 rajveer 6159
      oprot.writeListEnd()
6160
      oprot.writeFieldEnd()
6161
    oprot.writeFieldStop()
6162
    oprot.writeStructEnd()
6163
 
6164
  def validate(self):
6165
    return
6166
 
6167
 
6168
  def __repr__(self):
6169
    L = ['%s=%r' % (key, value)
6170
      for key, value in self.__dict__.iteritems()]
6171
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6172
 
6173
  def __eq__(self, other):
6174
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6175
 
6176
  def __ne__(self, other):
6177
    return not (self == other)
6178
 
6179
class getScanRecordsForSerialNumber_args:
6180
  """
6181
  Attributes:
6182
   - serialNumber
6183
  """
6184
 
6185
  thrift_spec = (
6186
    None, # 0
7410 amar.kumar 6187
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
6361 rajveer 6188
  )
6189
 
6190
  def __init__(self, serialNumber=None,):
6191
    self.serialNumber = serialNumber
6192
 
6193
  def read(self, iprot):
6194
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6195
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6196
      return
6197
    iprot.readStructBegin()
6198
    while True:
6199
      (fname, ftype, fid) = iprot.readFieldBegin()
6200
      if ftype == TType.STOP:
6201
        break
6202
      if fid == 1:
7410 amar.kumar 6203
        if ftype == TType.STRING:
6204
          self.serialNumber = iprot.readString();
6361 rajveer 6205
        else:
6206
          iprot.skip(ftype)
6207
      else:
6208
        iprot.skip(ftype)
6209
      iprot.readFieldEnd()
6210
    iprot.readStructEnd()
6211
 
6212
  def write(self, oprot):
6213
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6214
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6215
      return
6216
    oprot.writeStructBegin('getScanRecordsForSerialNumber_args')
6217
    if self.serialNumber is not None:
7410 amar.kumar 6218
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
6219
      oprot.writeString(self.serialNumber)
6361 rajveer 6220
      oprot.writeFieldEnd()
6221
    oprot.writeFieldStop()
6222
    oprot.writeStructEnd()
6223
 
6224
  def validate(self):
6225
    return
6226
 
6227
 
6228
  def __repr__(self):
6229
    L = ['%s=%r' % (key, value)
6230
      for key, value in self.__dict__.iteritems()]
6231
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6232
 
6233
  def __eq__(self, other):
6234
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6235
 
6236
  def __ne__(self, other):
6237
    return not (self == other)
6238
 
6239
class getScanRecordsForSerialNumber_result:
6240
  """
6241
  Attributes:
6242
   - success
6243
  """
6244
 
6245
  thrift_spec = (
6246
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
6247
  )
6248
 
6249
  def __init__(self, success=None,):
6250
    self.success = success
6251
 
6252
  def read(self, iprot):
6253
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6254
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6255
      return
6256
    iprot.readStructBegin()
6257
    while True:
6258
      (fname, ftype, fid) = iprot.readFieldBegin()
6259
      if ftype == TType.STOP:
6260
        break
6261
      if fid == 0:
6262
        if ftype == TType.LIST:
6263
          self.success = []
10407 amar.kumar 6264
          (_etype66, _size63) = iprot.readListBegin()
6265
          for _i67 in xrange(_size63):
6266
            _elem68 = Scan()
6267
            _elem68.read(iprot)
6268
            self.success.append(_elem68)
6361 rajveer 6269
          iprot.readListEnd()
6270
        else:
6271
          iprot.skip(ftype)
6272
      else:
6273
        iprot.skip(ftype)
6274
      iprot.readFieldEnd()
6275
    iprot.readStructEnd()
6276
 
6277
  def write(self, oprot):
6278
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6279
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6280
      return
6281
    oprot.writeStructBegin('getScanRecordsForSerialNumber_result')
6282
    if self.success is not None:
6283
      oprot.writeFieldBegin('success', TType.LIST, 0)
6284
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6285
      for iter69 in self.success:
6286
        iter69.write(oprot)
6361 rajveer 6287
      oprot.writeListEnd()
6288
      oprot.writeFieldEnd()
6289
    oprot.writeFieldStop()
6290
    oprot.writeStructEnd()
6291
 
6292
  def validate(self):
6293
    return
6294
 
6295
 
6296
  def __repr__(self):
6297
    L = ['%s=%r' % (key, value)
6298
      for key, value in self.__dict__.iteritems()]
6299
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6300
 
6301
  def __eq__(self, other):
6302
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6303
 
6304
  def __ne__(self, other):
6305
    return not (self == other)
6467 amar.kumar 6306
 
6307
class scanForPurchaseReturn_args:
6308
  """
6309
  Attributes:
6310
   - saleReturnItems
6311
   - vendorId
7718 amar.kumar 6312
   - billingWarehouseId
6467 amar.kumar 6313
  """
6314
 
6315
  thrift_spec = (
6316
    None, # 0
6317
    (1, TType.LIST, 'saleReturnItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
6318
    (2, TType.I64, 'vendorId', None, None, ), # 2
7718 amar.kumar 6319
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
6467 amar.kumar 6320
  )
6321
 
7718 amar.kumar 6322
  def __init__(self, saleReturnItems=None, vendorId=None, billingWarehouseId=None,):
6467 amar.kumar 6323
    self.saleReturnItems = saleReturnItems
6324
    self.vendorId = vendorId
7718 amar.kumar 6325
    self.billingWarehouseId = billingWarehouseId
6467 amar.kumar 6326
 
6327
  def read(self, iprot):
6328
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6329
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6330
      return
6331
    iprot.readStructBegin()
6332
    while True:
6333
      (fname, ftype, fid) = iprot.readFieldBegin()
6334
      if ftype == TType.STOP:
6335
        break
6336
      if fid == 1:
6337
        if ftype == TType.LIST:
6338
          self.saleReturnItems = []
10407 amar.kumar 6339
          (_etype73, _size70) = iprot.readListBegin()
6340
          for _i74 in xrange(_size70):
6341
            _elem75 = InventoryItem()
6342
            _elem75.read(iprot)
6343
            self.saleReturnItems.append(_elem75)
6467 amar.kumar 6344
          iprot.readListEnd()
6345
        else:
6346
          iprot.skip(ftype)
6347
      elif fid == 2:
6348
        if ftype == TType.I64:
6349
          self.vendorId = iprot.readI64();
6350
        else:
6351
          iprot.skip(ftype)
7718 amar.kumar 6352
      elif fid == 3:
6353
        if ftype == TType.I64:
6354
          self.billingWarehouseId = iprot.readI64();
6355
        else:
6356
          iprot.skip(ftype)
6467 amar.kumar 6357
      else:
6358
        iprot.skip(ftype)
6359
      iprot.readFieldEnd()
6360
    iprot.readStructEnd()
6361
 
6362
  def write(self, oprot):
6363
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6364
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6365
      return
6366
    oprot.writeStructBegin('scanForPurchaseReturn_args')
6367
    if self.saleReturnItems is not None:
6368
      oprot.writeFieldBegin('saleReturnItems', TType.LIST, 1)
6369
      oprot.writeListBegin(TType.STRUCT, len(self.saleReturnItems))
10407 amar.kumar 6370
      for iter76 in self.saleReturnItems:
6371
        iter76.write(oprot)
6467 amar.kumar 6372
      oprot.writeListEnd()
6373
      oprot.writeFieldEnd()
6374
    if self.vendorId is not None:
6375
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6376
      oprot.writeI64(self.vendorId)
6377
      oprot.writeFieldEnd()
7718 amar.kumar 6378
    if self.billingWarehouseId is not None:
6379
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
6380
      oprot.writeI64(self.billingWarehouseId)
6381
      oprot.writeFieldEnd()
6467 amar.kumar 6382
    oprot.writeFieldStop()
6383
    oprot.writeStructEnd()
6384
 
6385
  def validate(self):
6386
    return
6387
 
6388
 
6389
  def __repr__(self):
6390
    L = ['%s=%r' % (key, value)
6391
      for key, value in self.__dict__.iteritems()]
6392
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6393
 
6394
  def __eq__(self, other):
6395
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6396
 
6397
  def __ne__(self, other):
6398
    return not (self == other)
6399
 
6400
class scanForPurchaseReturn_result:
6401
  """
6402
  Attributes:
10864 manish.sha 6403
   - success
6467 amar.kumar 6404
   - ex
6405
  """
6406
 
6407
  thrift_spec = (
10864 manish.sha 6408
    (0, TType.I64, 'success', None, None, ), # 0
6467 amar.kumar 6409
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6410
  )
6411
 
10864 manish.sha 6412
  def __init__(self, success=None, ex=None,):
6413
    self.success = success
6467 amar.kumar 6414
    self.ex = ex
6415
 
6416
  def read(self, iprot):
6417
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6418
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6419
      return
6420
    iprot.readStructBegin()
6421
    while True:
6422
      (fname, ftype, fid) = iprot.readFieldBegin()
6423
      if ftype == TType.STOP:
6424
        break
10864 manish.sha 6425
      if fid == 0:
6426
        if ftype == TType.I64:
6427
          self.success = iprot.readI64();
6428
        else:
6429
          iprot.skip(ftype)
6430
      elif fid == 1:
6467 amar.kumar 6431
        if ftype == TType.STRUCT:
6432
          self.ex = WarehouseServiceException()
6433
          self.ex.read(iprot)
6434
        else:
6435
          iprot.skip(ftype)
6436
      else:
6437
        iprot.skip(ftype)
6438
      iprot.readFieldEnd()
6439
    iprot.readStructEnd()
6440
 
6441
  def write(self, oprot):
6442
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6443
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6444
      return
6445
    oprot.writeStructBegin('scanForPurchaseReturn_result')
10864 manish.sha 6446
    if self.success is not None:
6447
      oprot.writeFieldBegin('success', TType.I64, 0)
6448
      oprot.writeI64(self.success)
6449
      oprot.writeFieldEnd()
6467 amar.kumar 6450
    if self.ex is not None:
6451
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6452
      self.ex.write(oprot)
6453
      oprot.writeFieldEnd()
6454
    oprot.writeFieldStop()
6455
    oprot.writeStructEnd()
6456
 
6457
  def validate(self):
6458
    return
6459
 
6460
 
6461
  def __repr__(self):
6462
    L = ['%s=%r' % (key, value)
6463
      for key, value in self.__dict__.iteritems()]
6464
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6465
 
6466
  def __eq__(self, other):
6467
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6468
 
6469
  def __ne__(self, other):
6470
    return not (self == other)
6630 amar.kumar 6471
 
6472
class scanForLostItem_args:
6473
  """
6474
  Attributes:
6475
   - lostItems
6476
   - vendorId
7718 amar.kumar 6477
   - billingWarehouseId
6630 amar.kumar 6478
  """
6479
 
6480
  thrift_spec = (
6481
    None, # 0
6482
    (1, TType.LIST, 'lostItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
6483
    (2, TType.I64, 'vendorId', None, None, ), # 2
7718 amar.kumar 6484
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
6630 amar.kumar 6485
  )
6486
 
7718 amar.kumar 6487
  def __init__(self, lostItems=None, vendorId=None, billingWarehouseId=None,):
6630 amar.kumar 6488
    self.lostItems = lostItems
6489
    self.vendorId = vendorId
7718 amar.kumar 6490
    self.billingWarehouseId = billingWarehouseId
6630 amar.kumar 6491
 
6492
  def read(self, iprot):
6493
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6494
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6495
      return
6496
    iprot.readStructBegin()
6497
    while True:
6498
      (fname, ftype, fid) = iprot.readFieldBegin()
6499
      if ftype == TType.STOP:
6500
        break
6501
      if fid == 1:
6502
        if ftype == TType.LIST:
6503
          self.lostItems = []
10407 amar.kumar 6504
          (_etype80, _size77) = iprot.readListBegin()
6505
          for _i81 in xrange(_size77):
6506
            _elem82 = InventoryItem()
6507
            _elem82.read(iprot)
6508
            self.lostItems.append(_elem82)
6630 amar.kumar 6509
          iprot.readListEnd()
6510
        else:
6511
          iprot.skip(ftype)
6512
      elif fid == 2:
6513
        if ftype == TType.I64:
6514
          self.vendorId = iprot.readI64();
6515
        else:
6516
          iprot.skip(ftype)
7718 amar.kumar 6517
      elif fid == 3:
6518
        if ftype == TType.I64:
6519
          self.billingWarehouseId = iprot.readI64();
6520
        else:
6521
          iprot.skip(ftype)
6630 amar.kumar 6522
      else:
6523
        iprot.skip(ftype)
6524
      iprot.readFieldEnd()
6525
    iprot.readStructEnd()
6526
 
6527
  def write(self, oprot):
6528
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6529
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6530
      return
6531
    oprot.writeStructBegin('scanForLostItem_args')
6532
    if self.lostItems is not None:
6533
      oprot.writeFieldBegin('lostItems', TType.LIST, 1)
6534
      oprot.writeListBegin(TType.STRUCT, len(self.lostItems))
10407 amar.kumar 6535
      for iter83 in self.lostItems:
6536
        iter83.write(oprot)
6630 amar.kumar 6537
      oprot.writeListEnd()
6538
      oprot.writeFieldEnd()
6539
    if self.vendorId is not None:
6540
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6541
      oprot.writeI64(self.vendorId)
6542
      oprot.writeFieldEnd()
7718 amar.kumar 6543
    if self.billingWarehouseId is not None:
6544
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
6545
      oprot.writeI64(self.billingWarehouseId)
6546
      oprot.writeFieldEnd()
6630 amar.kumar 6547
    oprot.writeFieldStop()
6548
    oprot.writeStructEnd()
6549
 
6550
  def validate(self):
6551
    return
6552
 
6553
 
6554
  def __repr__(self):
6555
    L = ['%s=%r' % (key, value)
6556
      for key, value in self.__dict__.iteritems()]
6557
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6558
 
6559
  def __eq__(self, other):
6560
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6561
 
6562
  def __ne__(self, other):
6563
    return not (self == other)
6564
 
6565
class scanForLostItem_result:
6566
  """
6567
  Attributes:
6568
   - ex
6569
  """
6570
 
6571
  thrift_spec = (
6572
    None, # 0
6573
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6574
  )
6575
 
6576
  def __init__(self, ex=None,):
6577
    self.ex = ex
6578
 
6579
  def read(self, iprot):
6580
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6581
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6582
      return
6583
    iprot.readStructBegin()
6584
    while True:
6585
      (fname, ftype, fid) = iprot.readFieldBegin()
6586
      if ftype == TType.STOP:
6587
        break
6588
      if fid == 1:
6589
        if ftype == TType.STRUCT:
6590
          self.ex = WarehouseServiceException()
6591
          self.ex.read(iprot)
6592
        else:
6593
          iprot.skip(ftype)
6594
      else:
6595
        iprot.skip(ftype)
6596
      iprot.readFieldEnd()
6597
    iprot.readStructEnd()
6598
 
6599
  def write(self, oprot):
6600
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6601
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6602
      return
6603
    oprot.writeStructBegin('scanForLostItem_result')
6604
    if self.ex is not None:
6605
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6606
      self.ex.write(oprot)
6607
      oprot.writeFieldEnd()
6608
    oprot.writeFieldStop()
6609
    oprot.writeStructEnd()
6610
 
6611
  def validate(self):
6612
    return
6613
 
6614
 
6615
  def __repr__(self):
6616
    L = ['%s=%r' % (key, value)
6617
      for key, value in self.__dict__.iteritems()]
6618
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6619
 
6620
  def __eq__(self, other):
6621
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6622
 
6623
  def __ne__(self, other):
6624
    return not (self == other)
6625
 
6626
class getCurrentSerializedInventoryByScans_args:
7715 vikram.rag 6627
  """
6628
  Attributes:
6629
   - physicalWarehouseId
6630
  """
6630 amar.kumar 6631
 
6632
  thrift_spec = (
7715 vikram.rag 6633
    None, # 0
6634
    (1, TType.I64, 'physicalWarehouseId', None, None, ), # 1
6630 amar.kumar 6635
  )
6636
 
7715 vikram.rag 6637
  def __init__(self, physicalWarehouseId=None,):
6638
    self.physicalWarehouseId = physicalWarehouseId
6639
 
6630 amar.kumar 6640
  def read(self, iprot):
6641
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6642
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6643
      return
6644
    iprot.readStructBegin()
6645
    while True:
6646
      (fname, ftype, fid) = iprot.readFieldBegin()
6647
      if ftype == TType.STOP:
6648
        break
7715 vikram.rag 6649
      if fid == 1:
6650
        if ftype == TType.I64:
6651
          self.physicalWarehouseId = iprot.readI64();
6652
        else:
6653
          iprot.skip(ftype)
6630 amar.kumar 6654
      else:
6655
        iprot.skip(ftype)
6656
      iprot.readFieldEnd()
6657
    iprot.readStructEnd()
6658
 
6659
  def write(self, oprot):
6660
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6661
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6662
      return
6663
    oprot.writeStructBegin('getCurrentSerializedInventoryByScans_args')
7715 vikram.rag 6664
    if self.physicalWarehouseId is not None:
6665
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 1)
6666
      oprot.writeI64(self.physicalWarehouseId)
6667
      oprot.writeFieldEnd()
6630 amar.kumar 6668
    oprot.writeFieldStop()
6669
    oprot.writeStructEnd()
6670
 
6671
  def validate(self):
6672
    return
6673
 
6674
 
6675
  def __repr__(self):
6676
    L = ['%s=%r' % (key, value)
6677
      for key, value in self.__dict__.iteritems()]
6678
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6679
 
6680
  def __eq__(self, other):
6681
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6682
 
6683
  def __ne__(self, other):
6684
    return not (self == other)
6685
 
6686
class getCurrentSerializedInventoryByScans_result:
6687
  """
6688
  Attributes:
6689
   - success
6690
  """
6691
 
6692
  thrift_spec = (
6693
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
6694
  )
6695
 
6696
  def __init__(self, success=None,):
6697
    self.success = success
6698
 
6699
  def read(self, iprot):
6700
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6701
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6702
      return
6703
    iprot.readStructBegin()
6704
    while True:
6705
      (fname, ftype, fid) = iprot.readFieldBegin()
6706
      if ftype == TType.STOP:
6707
        break
6708
      if fid == 0:
6709
        if ftype == TType.LIST:
6710
          self.success = []
10407 amar.kumar 6711
          (_etype87, _size84) = iprot.readListBegin()
6712
          for _i88 in xrange(_size84):
6713
            _elem89 = InventoryAvailability()
6714
            _elem89.read(iprot)
6715
            self.success.append(_elem89)
6630 amar.kumar 6716
          iprot.readListEnd()
6717
        else:
6718
          iprot.skip(ftype)
6719
      else:
6720
        iprot.skip(ftype)
6721
      iprot.readFieldEnd()
6722
    iprot.readStructEnd()
6723
 
6724
  def write(self, oprot):
6725
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6726
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6727
      return
6728
    oprot.writeStructBegin('getCurrentSerializedInventoryByScans_result')
6729
    if self.success is not None:
6730
      oprot.writeFieldBegin('success', TType.LIST, 0)
6731
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6732
      for iter90 in self.success:
6733
        iter90.write(oprot)
6630 amar.kumar 6734
      oprot.writeListEnd()
6735
      oprot.writeFieldEnd()
6736
    oprot.writeFieldStop()
6737
    oprot.writeStructEnd()
6738
 
6739
  def validate(self):
6740
    return
6741
 
6742
 
6743
  def __repr__(self):
6744
    L = ['%s=%r' % (key, value)
6745
      for key, value in self.__dict__.iteritems()]
6746
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6747
 
6748
  def __eq__(self, other):
6749
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6750
 
6751
  def __ne__(self, other):
6752
    return not (self == other)
6753
 
6754
class getCurrentNonSerializedInventoryByScans_args:
7715 vikram.rag 6755
  """
6756
  Attributes:
6757
   - physicalWarehouseId
6758
  """
6630 amar.kumar 6759
 
6760
  thrift_spec = (
7715 vikram.rag 6761
    None, # 0
6762
    (1, TType.I64, 'physicalWarehouseId', None, None, ), # 1
6630 amar.kumar 6763
  )
6764
 
7715 vikram.rag 6765
  def __init__(self, physicalWarehouseId=None,):
6766
    self.physicalWarehouseId = physicalWarehouseId
6767
 
6630 amar.kumar 6768
  def read(self, iprot):
6769
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6770
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6771
      return
6772
    iprot.readStructBegin()
6773
    while True:
6774
      (fname, ftype, fid) = iprot.readFieldBegin()
6775
      if ftype == TType.STOP:
6776
        break
7715 vikram.rag 6777
      if fid == 1:
6778
        if ftype == TType.I64:
6779
          self.physicalWarehouseId = iprot.readI64();
6780
        else:
6781
          iprot.skip(ftype)
6630 amar.kumar 6782
      else:
6783
        iprot.skip(ftype)
6784
      iprot.readFieldEnd()
6785
    iprot.readStructEnd()
6786
 
6787
  def write(self, oprot):
6788
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6789
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6790
      return
6791
    oprot.writeStructBegin('getCurrentNonSerializedInventoryByScans_args')
7715 vikram.rag 6792
    if self.physicalWarehouseId is not None:
6793
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 1)
6794
      oprot.writeI64(self.physicalWarehouseId)
6795
      oprot.writeFieldEnd()
6630 amar.kumar 6796
    oprot.writeFieldStop()
6797
    oprot.writeStructEnd()
6798
 
6799
  def validate(self):
6800
    return
6801
 
6802
 
6803
  def __repr__(self):
6804
    L = ['%s=%r' % (key, value)
6805
      for key, value in self.__dict__.iteritems()]
6806
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6807
 
6808
  def __eq__(self, other):
6809
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6810
 
6811
  def __ne__(self, other):
6812
    return not (self == other)
6813
 
6814
class getCurrentNonSerializedInventoryByScans_result:
6815
  """
6816
  Attributes:
6817
   - success
6818
  """
6819
 
6820
  thrift_spec = (
6821
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
6822
  )
6823
 
6824
  def __init__(self, success=None,):
6825
    self.success = success
6826
 
6827
  def read(self, iprot):
6828
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6829
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6830
      return
6831
    iprot.readStructBegin()
6832
    while True:
6833
      (fname, ftype, fid) = iprot.readFieldBegin()
6834
      if ftype == TType.STOP:
6835
        break
6836
      if fid == 0:
6837
        if ftype == TType.LIST:
6838
          self.success = []
10407 amar.kumar 6839
          (_etype94, _size91) = iprot.readListBegin()
6840
          for _i95 in xrange(_size91):
6841
            _elem96 = InventoryAvailability()
6842
            _elem96.read(iprot)
6843
            self.success.append(_elem96)
6630 amar.kumar 6844
          iprot.readListEnd()
6845
        else:
6846
          iprot.skip(ftype)
6847
      else:
6848
        iprot.skip(ftype)
6849
      iprot.readFieldEnd()
6850
    iprot.readStructEnd()
6851
 
6852
  def write(self, oprot):
6853
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6854
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6855
      return
6856
    oprot.writeStructBegin('getCurrentNonSerializedInventoryByScans_result')
6857
    if self.success is not None:
6858
      oprot.writeFieldBegin('success', TType.LIST, 0)
6859
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6860
      for iter97 in self.success:
6861
        iter97.write(oprot)
6630 amar.kumar 6862
      oprot.writeListEnd()
6863
      oprot.writeFieldEnd()
6864
    oprot.writeFieldStop()
6865
    oprot.writeStructEnd()
6866
 
6867
  def validate(self):
6868
    return
6869
 
6870
 
6871
  def __repr__(self):
6872
    L = ['%s=%r' % (key, value)
6873
      for key, value in self.__dict__.iteritems()]
6874
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6875
 
6876
  def __eq__(self, other):
6877
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6878
 
6879
  def __ne__(self, other):
6880
    return not (self == other)
6762 amar.kumar 6881
 
6882
class getHistoricSerializedInventoryByScans_args:
6883
  """
6884
  Attributes:
6885
   - date
6886
  """
6887
 
6888
  thrift_spec = (
6889
    None, # 0
6890
    (1, TType.I64, 'date', None, None, ), # 1
6891
  )
6892
 
6893
  def __init__(self, date=None,):
6894
    self.date = date
6895
 
6896
  def read(self, iprot):
6897
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6898
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6899
      return
6900
    iprot.readStructBegin()
6901
    while True:
6902
      (fname, ftype, fid) = iprot.readFieldBegin()
6903
      if ftype == TType.STOP:
6904
        break
6905
      if fid == 1:
6906
        if ftype == TType.I64:
6907
          self.date = iprot.readI64();
6908
        else:
6909
          iprot.skip(ftype)
6910
      else:
6911
        iprot.skip(ftype)
6912
      iprot.readFieldEnd()
6913
    iprot.readStructEnd()
6914
 
6915
  def write(self, oprot):
6916
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6917
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6918
      return
6919
    oprot.writeStructBegin('getHistoricSerializedInventoryByScans_args')
6920
    if self.date is not None:
6921
      oprot.writeFieldBegin('date', TType.I64, 1)
6922
      oprot.writeI64(self.date)
6923
      oprot.writeFieldEnd()
6924
    oprot.writeFieldStop()
6925
    oprot.writeStructEnd()
6926
 
6927
  def validate(self):
6928
    return
6929
 
6930
 
6931
  def __repr__(self):
6932
    L = ['%s=%r' % (key, value)
6933
      for key, value in self.__dict__.iteritems()]
6934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6935
 
6936
  def __eq__(self, other):
6937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6938
 
6939
  def __ne__(self, other):
6940
    return not (self == other)
6941
 
6942
class getHistoricSerializedInventoryByScans_result:
6943
  """
6944
  Attributes:
6945
   - success
6946
  """
6947
 
6948
  thrift_spec = (
6949
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
6950
  )
6951
 
6952
  def __init__(self, success=None,):
6953
    self.success = success
6954
 
6955
  def read(self, iprot):
6956
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6957
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6958
      return
6959
    iprot.readStructBegin()
6960
    while True:
6961
      (fname, ftype, fid) = iprot.readFieldBegin()
6962
      if ftype == TType.STOP:
6963
        break
6964
      if fid == 0:
6965
        if ftype == TType.LIST:
6966
          self.success = []
10407 amar.kumar 6967
          (_etype101, _size98) = iprot.readListBegin()
6968
          for _i102 in xrange(_size98):
6969
            _elem103 = InventoryAvailability()
6970
            _elem103.read(iprot)
6971
            self.success.append(_elem103)
6762 amar.kumar 6972
          iprot.readListEnd()
6973
        else:
6974
          iprot.skip(ftype)
6975
      else:
6976
        iprot.skip(ftype)
6977
      iprot.readFieldEnd()
6978
    iprot.readStructEnd()
6979
 
6980
  def write(self, oprot):
6981
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6982
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6983
      return
6984
    oprot.writeStructBegin('getHistoricSerializedInventoryByScans_result')
6985
    if self.success is not None:
6986
      oprot.writeFieldBegin('success', TType.LIST, 0)
6987
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 6988
      for iter104 in self.success:
6989
        iter104.write(oprot)
6762 amar.kumar 6990
      oprot.writeListEnd()
6991
      oprot.writeFieldEnd()
6992
    oprot.writeFieldStop()
6993
    oprot.writeStructEnd()
6994
 
6995
  def validate(self):
6996
    return
6997
 
6998
 
6999
  def __repr__(self):
7000
    L = ['%s=%r' % (key, value)
7001
      for key, value in self.__dict__.iteritems()]
7002
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7003
 
7004
  def __eq__(self, other):
7005
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7006
 
7007
  def __ne__(self, other):
7008
    return not (self == other)
7009
 
7010
class getHistoricNonSerializedInventoryByScans_args:
7011
  """
7012
  Attributes:
7013
   - date
7014
  """
7015
 
7016
  thrift_spec = (
7017
    None, # 0
7018
    (1, TType.I64, 'date', None, None, ), # 1
7019
  )
7020
 
7021
  def __init__(self, date=None,):
7022
    self.date = date
7023
 
7024
  def read(self, iprot):
7025
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7026
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7027
      return
7028
    iprot.readStructBegin()
7029
    while True:
7030
      (fname, ftype, fid) = iprot.readFieldBegin()
7031
      if ftype == TType.STOP:
7032
        break
7033
      if fid == 1:
7034
        if ftype == TType.I64:
7035
          self.date = iprot.readI64();
7036
        else:
7037
          iprot.skip(ftype)
7038
      else:
7039
        iprot.skip(ftype)
7040
      iprot.readFieldEnd()
7041
    iprot.readStructEnd()
7042
 
7043
  def write(self, oprot):
7044
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7045
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7046
      return
7047
    oprot.writeStructBegin('getHistoricNonSerializedInventoryByScans_args')
7048
    if self.date is not None:
7049
      oprot.writeFieldBegin('date', TType.I64, 1)
7050
      oprot.writeI64(self.date)
7051
      oprot.writeFieldEnd()
7052
    oprot.writeFieldStop()
7053
    oprot.writeStructEnd()
7054
 
7055
  def validate(self):
7056
    return
7057
 
7058
 
7059
  def __repr__(self):
7060
    L = ['%s=%r' % (key, value)
7061
      for key, value in self.__dict__.iteritems()]
7062
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7063
 
7064
  def __eq__(self, other):
7065
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7066
 
7067
  def __ne__(self, other):
7068
    return not (self == other)
7069
 
7070
class getHistoricNonSerializedInventoryByScans_result:
7071
  """
7072
  Attributes:
7073
   - success
7074
  """
7075
 
7076
  thrift_spec = (
7077
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7078
  )
7079
 
7080
  def __init__(self, success=None,):
7081
    self.success = success
7082
 
7083
  def read(self, iprot):
7084
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7085
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7086
      return
7087
    iprot.readStructBegin()
7088
    while True:
7089
      (fname, ftype, fid) = iprot.readFieldBegin()
7090
      if ftype == TType.STOP:
7091
        break
7092
      if fid == 0:
7093
        if ftype == TType.LIST:
7094
          self.success = []
10407 amar.kumar 7095
          (_etype108, _size105) = iprot.readListBegin()
7096
          for _i109 in xrange(_size105):
7097
            _elem110 = InventoryAvailability()
7098
            _elem110.read(iprot)
7099
            self.success.append(_elem110)
6762 amar.kumar 7100
          iprot.readListEnd()
7101
        else:
7102
          iprot.skip(ftype)
7103
      else:
7104
        iprot.skip(ftype)
7105
      iprot.readFieldEnd()
7106
    iprot.readStructEnd()
7107
 
7108
  def write(self, oprot):
7109
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7110
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7111
      return
7112
    oprot.writeStructBegin('getHistoricNonSerializedInventoryByScans_result')
7113
    if self.success is not None:
7114
      oprot.writeFieldBegin('success', TType.LIST, 0)
7115
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7116
      for iter111 in self.success:
7117
        iter111.write(oprot)
6762 amar.kumar 7118
      oprot.writeListEnd()
7119
      oprot.writeFieldEnd()
7120
    oprot.writeFieldStop()
7121
    oprot.writeStructEnd()
7122
 
7123
  def validate(self):
7124
    return
7125
 
7126
 
7127
  def __repr__(self):
7128
    L = ['%s=%r' % (key, value)
7129
      for key, value in self.__dict__.iteritems()]
7130
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7131
 
7132
  def __eq__(self, other):
7133
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7134
 
7135
  def __ne__(self, other):
7136
    return not (self == other)
7137
 
10407 amar.kumar 7138
class getOurHistoricSerializedInventoryByScans_args:
7139
  """
7140
  Attributes:
7141
   - date
7142
  """
7143
 
7144
  thrift_spec = (
7145
    None, # 0
7146
    (1, TType.I64, 'date', None, None, ), # 1
7147
  )
7148
 
7149
  def __init__(self, date=None,):
7150
    self.date = date
7151
 
7152
  def read(self, iprot):
7153
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7154
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7155
      return
7156
    iprot.readStructBegin()
7157
    while True:
7158
      (fname, ftype, fid) = iprot.readFieldBegin()
7159
      if ftype == TType.STOP:
7160
        break
7161
      if fid == 1:
7162
        if ftype == TType.I64:
7163
          self.date = iprot.readI64();
7164
        else:
7165
          iprot.skip(ftype)
7166
      else:
7167
        iprot.skip(ftype)
7168
      iprot.readFieldEnd()
7169
    iprot.readStructEnd()
7170
 
7171
  def write(self, oprot):
7172
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7173
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7174
      return
7175
    oprot.writeStructBegin('getOurHistoricSerializedInventoryByScans_args')
7176
    if self.date is not None:
7177
      oprot.writeFieldBegin('date', TType.I64, 1)
7178
      oprot.writeI64(self.date)
7179
      oprot.writeFieldEnd()
7180
    oprot.writeFieldStop()
7181
    oprot.writeStructEnd()
7182
 
7183
  def validate(self):
7184
    return
7185
 
7186
 
7187
  def __repr__(self):
7188
    L = ['%s=%r' % (key, value)
7189
      for key, value in self.__dict__.iteritems()]
7190
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7191
 
7192
  def __eq__(self, other):
7193
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7194
 
7195
  def __ne__(self, other):
7196
    return not (self == other)
7197
 
7198
class getOurHistoricSerializedInventoryByScans_result:
7199
  """
7200
  Attributes:
7201
   - success
7202
  """
7203
 
7204
  thrift_spec = (
7205
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7206
  )
7207
 
7208
  def __init__(self, success=None,):
7209
    self.success = success
7210
 
7211
  def read(self, iprot):
7212
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7213
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7214
      return
7215
    iprot.readStructBegin()
7216
    while True:
7217
      (fname, ftype, fid) = iprot.readFieldBegin()
7218
      if ftype == TType.STOP:
7219
        break
7220
      if fid == 0:
7221
        if ftype == TType.LIST:
7222
          self.success = []
7223
          (_etype115, _size112) = iprot.readListBegin()
7224
          for _i116 in xrange(_size112):
7225
            _elem117 = InventoryAvailability()
7226
            _elem117.read(iprot)
7227
            self.success.append(_elem117)
7228
          iprot.readListEnd()
7229
        else:
7230
          iprot.skip(ftype)
7231
      else:
7232
        iprot.skip(ftype)
7233
      iprot.readFieldEnd()
7234
    iprot.readStructEnd()
7235
 
7236
  def write(self, oprot):
7237
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7238
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7239
      return
7240
    oprot.writeStructBegin('getOurHistoricSerializedInventoryByScans_result')
7241
    if self.success is not None:
7242
      oprot.writeFieldBegin('success', TType.LIST, 0)
7243
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7244
      for iter118 in self.success:
7245
        iter118.write(oprot)
7246
      oprot.writeListEnd()
7247
      oprot.writeFieldEnd()
7248
    oprot.writeFieldStop()
7249
    oprot.writeStructEnd()
7250
 
7251
  def validate(self):
7252
    return
7253
 
7254
 
7255
  def __repr__(self):
7256
    L = ['%s=%r' % (key, value)
7257
      for key, value in self.__dict__.iteritems()]
7258
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7259
 
7260
  def __eq__(self, other):
7261
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7262
 
7263
  def __ne__(self, other):
7264
    return not (self == other)
7265
 
7266
class getOurHistoricNonSerializedInventoryByScans_args:
7267
  """
7268
  Attributes:
7269
   - date
7270
  """
7271
 
7272
  thrift_spec = (
7273
    None, # 0
7274
    (1, TType.I64, 'date', None, None, ), # 1
7275
  )
7276
 
7277
  def __init__(self, date=None,):
7278
    self.date = date
7279
 
7280
  def read(self, iprot):
7281
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7282
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7283
      return
7284
    iprot.readStructBegin()
7285
    while True:
7286
      (fname, ftype, fid) = iprot.readFieldBegin()
7287
      if ftype == TType.STOP:
7288
        break
7289
      if fid == 1:
7290
        if ftype == TType.I64:
7291
          self.date = iprot.readI64();
7292
        else:
7293
          iprot.skip(ftype)
7294
      else:
7295
        iprot.skip(ftype)
7296
      iprot.readFieldEnd()
7297
    iprot.readStructEnd()
7298
 
7299
  def write(self, oprot):
7300
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7301
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7302
      return
7303
    oprot.writeStructBegin('getOurHistoricNonSerializedInventoryByScans_args')
7304
    if self.date is not None:
7305
      oprot.writeFieldBegin('date', TType.I64, 1)
7306
      oprot.writeI64(self.date)
7307
      oprot.writeFieldEnd()
7308
    oprot.writeFieldStop()
7309
    oprot.writeStructEnd()
7310
 
7311
  def validate(self):
7312
    return
7313
 
7314
 
7315
  def __repr__(self):
7316
    L = ['%s=%r' % (key, value)
7317
      for key, value in self.__dict__.iteritems()]
7318
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7319
 
7320
  def __eq__(self, other):
7321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7322
 
7323
  def __ne__(self, other):
7324
    return not (self == other)
7325
 
7326
class getOurHistoricNonSerializedInventoryByScans_result:
7327
  """
7328
  Attributes:
7329
   - success
7330
  """
7331
 
7332
  thrift_spec = (
7333
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
7334
  )
7335
 
7336
  def __init__(self, success=None,):
7337
    self.success = success
7338
 
7339
  def read(self, iprot):
7340
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7341
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7342
      return
7343
    iprot.readStructBegin()
7344
    while True:
7345
      (fname, ftype, fid) = iprot.readFieldBegin()
7346
      if ftype == TType.STOP:
7347
        break
7348
      if fid == 0:
7349
        if ftype == TType.LIST:
7350
          self.success = []
7351
          (_etype122, _size119) = iprot.readListBegin()
7352
          for _i123 in xrange(_size119):
7353
            _elem124 = InventoryAvailability()
7354
            _elem124.read(iprot)
7355
            self.success.append(_elem124)
7356
          iprot.readListEnd()
7357
        else:
7358
          iprot.skip(ftype)
7359
      else:
7360
        iprot.skip(ftype)
7361
      iprot.readFieldEnd()
7362
    iprot.readStructEnd()
7363
 
7364
  def write(self, oprot):
7365
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7366
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7367
      return
7368
    oprot.writeStructBegin('getOurHistoricNonSerializedInventoryByScans_result')
7369
    if self.success is not None:
7370
      oprot.writeFieldBegin('success', TType.LIST, 0)
7371
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7372
      for iter125 in self.success:
7373
        iter125.write(oprot)
7374
      oprot.writeListEnd()
7375
      oprot.writeFieldEnd()
7376
    oprot.writeFieldStop()
7377
    oprot.writeStructEnd()
7378
 
7379
  def validate(self):
7380
    return
7381
 
7382
 
7383
  def __repr__(self):
7384
    L = ['%s=%r' % (key, value)
7385
      for key, value in self.__dict__.iteritems()]
7386
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7387
 
7388
  def __eq__(self, other):
7389
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7390
 
7391
  def __ne__(self, other):
7392
    return not (self == other)
7393
 
6762 amar.kumar 7394
class scanForOursExternalSale_args:
7395
  """
7396
  Attributes:
7397
   - itemId
7398
   - serialNumber
7399
   - itemNumber
7400
   - invoiceNumber
7401
   - warehouseId
7402
   - unitPrice
7672 rajveer 7403
   - nlc
6762 amar.kumar 7404
   - orderId
7405
  """
7406
 
7407
  thrift_spec = (
7408
    None, # 0
7409
    (1, TType.I64, 'itemId', None, None, ), # 1
7410
    (2, TType.STRING, 'serialNumber', None, None, ), # 2
7411
    (3, TType.STRING, 'itemNumber', None, None, ), # 3
7412
    (4, TType.STRING, 'invoiceNumber', None, None, ), # 4
7413
    (5, TType.I64, 'warehouseId', None, None, ), # 5
7414
    (6, TType.DOUBLE, 'unitPrice', None, None, ), # 6
7672 rajveer 7415
    (7, TType.DOUBLE, 'nlc', None, None, ), # 7
7416
    (8, TType.I64, 'orderId', None, None, ), # 8
6762 amar.kumar 7417
  )
7418
 
7672 rajveer 7419
  def __init__(self, itemId=None, serialNumber=None, itemNumber=None, invoiceNumber=None, warehouseId=None, unitPrice=None, nlc=None, orderId=None,):
6762 amar.kumar 7420
    self.itemId = itemId
7421
    self.serialNumber = serialNumber
7422
    self.itemNumber = itemNumber
7423
    self.invoiceNumber = invoiceNumber
7424
    self.warehouseId = warehouseId
7425
    self.unitPrice = unitPrice
7672 rajveer 7426
    self.nlc = nlc
6762 amar.kumar 7427
    self.orderId = orderId
7428
 
7429
  def read(self, iprot):
7430
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7431
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7432
      return
7433
    iprot.readStructBegin()
7434
    while True:
7435
      (fname, ftype, fid) = iprot.readFieldBegin()
7436
      if ftype == TType.STOP:
7437
        break
7438
      if fid == 1:
7439
        if ftype == TType.I64:
7440
          self.itemId = iprot.readI64();
7441
        else:
7442
          iprot.skip(ftype)
7443
      elif fid == 2:
7444
        if ftype == TType.STRING:
7445
          self.serialNumber = iprot.readString();
7446
        else:
7447
          iprot.skip(ftype)
7448
      elif fid == 3:
7449
        if ftype == TType.STRING:
7450
          self.itemNumber = iprot.readString();
7451
        else:
7452
          iprot.skip(ftype)
7453
      elif fid == 4:
7454
        if ftype == TType.STRING:
7455
          self.invoiceNumber = iprot.readString();
7456
        else:
7457
          iprot.skip(ftype)
7458
      elif fid == 5:
7459
        if ftype == TType.I64:
7460
          self.warehouseId = iprot.readI64();
7461
        else:
7462
          iprot.skip(ftype)
7463
      elif fid == 6:
7464
        if ftype == TType.DOUBLE:
7465
          self.unitPrice = iprot.readDouble();
7466
        else:
7467
          iprot.skip(ftype)
7468
      elif fid == 7:
7672 rajveer 7469
        if ftype == TType.DOUBLE:
7470
          self.nlc = iprot.readDouble();
7471
        else:
7472
          iprot.skip(ftype)
7473
      elif fid == 8:
6762 amar.kumar 7474
        if ftype == TType.I64:
7475
          self.orderId = iprot.readI64();
7476
        else:
7477
          iprot.skip(ftype)
7478
      else:
7479
        iprot.skip(ftype)
7480
      iprot.readFieldEnd()
7481
    iprot.readStructEnd()
7482
 
7483
  def write(self, oprot):
7484
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7485
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7486
      return
7487
    oprot.writeStructBegin('scanForOursExternalSale_args')
7488
    if self.itemId is not None:
7489
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7490
      oprot.writeI64(self.itemId)
7491
      oprot.writeFieldEnd()
7492
    if self.serialNumber is not None:
7493
      oprot.writeFieldBegin('serialNumber', TType.STRING, 2)
7494
      oprot.writeString(self.serialNumber)
7495
      oprot.writeFieldEnd()
7496
    if self.itemNumber is not None:
7497
      oprot.writeFieldBegin('itemNumber', TType.STRING, 3)
7498
      oprot.writeString(self.itemNumber)
7499
      oprot.writeFieldEnd()
7500
    if self.invoiceNumber is not None:
7501
      oprot.writeFieldBegin('invoiceNumber', TType.STRING, 4)
7502
      oprot.writeString(self.invoiceNumber)
7503
      oprot.writeFieldEnd()
7504
    if self.warehouseId is not None:
7505
      oprot.writeFieldBegin('warehouseId', TType.I64, 5)
7506
      oprot.writeI64(self.warehouseId)
7507
      oprot.writeFieldEnd()
7508
    if self.unitPrice is not None:
7509
      oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 6)
7510
      oprot.writeDouble(self.unitPrice)
7511
      oprot.writeFieldEnd()
7672 rajveer 7512
    if self.nlc is not None:
7513
      oprot.writeFieldBegin('nlc', TType.DOUBLE, 7)
7514
      oprot.writeDouble(self.nlc)
7515
      oprot.writeFieldEnd()
6762 amar.kumar 7516
    if self.orderId is not None:
7672 rajveer 7517
      oprot.writeFieldBegin('orderId', TType.I64, 8)
6762 amar.kumar 7518
      oprot.writeI64(self.orderId)
7519
      oprot.writeFieldEnd()
7520
    oprot.writeFieldStop()
7521
    oprot.writeStructEnd()
7522
 
7523
  def validate(self):
7524
    return
7525
 
7526
 
7527
  def __repr__(self):
7528
    L = ['%s=%r' % (key, value)
7529
      for key, value in self.__dict__.iteritems()]
7530
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7531
 
7532
  def __eq__(self, other):
7533
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7534
 
7535
  def __ne__(self, other):
7536
    return not (self == other)
7537
 
7538
class scanForOursExternalSale_result:
7539
  """
7540
  Attributes:
7541
   - success
7542
   - ex
7543
  """
7544
 
7545
  thrift_spec = (
7546
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
7547
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
7548
  )
7549
 
7550
  def __init__(self, success=None, ex=None,):
7551
    self.success = success
7552
    self.ex = ex
7553
 
7554
  def read(self, iprot):
7555
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7556
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7557
      return
7558
    iprot.readStructBegin()
7559
    while True:
7560
      (fname, ftype, fid) = iprot.readFieldBegin()
7561
      if ftype == TType.STOP:
7562
        break
7563
      if fid == 0:
7564
        if ftype == TType.STRUCT:
7565
          self.success = InventoryItem()
7566
          self.success.read(iprot)
7567
        else:
7568
          iprot.skip(ftype)
7569
      elif fid == 1:
7570
        if ftype == TType.STRUCT:
7571
          self.ex = WarehouseServiceException()
7572
          self.ex.read(iprot)
7573
        else:
7574
          iprot.skip(ftype)
7575
      else:
7576
        iprot.skip(ftype)
7577
      iprot.readFieldEnd()
7578
    iprot.readStructEnd()
7579
 
7580
  def write(self, oprot):
7581
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7582
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7583
      return
7584
    oprot.writeStructBegin('scanForOursExternalSale_result')
7585
    if self.success is not None:
7586
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7587
      self.success.write(oprot)
7588
      oprot.writeFieldEnd()
7589
    if self.ex is not None:
7590
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7591
      self.ex.write(oprot)
7592
      oprot.writeFieldEnd()
7593
    oprot.writeFieldStop()
7594
    oprot.writeStructEnd()
7595
 
7596
  def validate(self):
7597
    return
7598
 
7599
 
7600
  def __repr__(self):
7601
    L = ['%s=%r' % (key, value)
7602
      for key, value in self.__dict__.iteritems()]
7603
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7604
 
7605
  def __eq__(self, other):
7606
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7607
 
7608
  def __ne__(self, other):
7609
    return not (self == other)
7610
 
7611
class scanForOursExternalSaleReturn_args:
7612
  """
7613
  Attributes:
7614
   - orderId
7615
   - unitPrice
7616
  """
7617
 
7618
  thrift_spec = (
7619
    None, # 0
7620
    (1, TType.I64, 'orderId', None, None, ), # 1
7621
    (2, TType.DOUBLE, 'unitPrice', None, None, ), # 2
7622
  )
7623
 
7624
  def __init__(self, orderId=None, unitPrice=None,):
7625
    self.orderId = orderId
7626
    self.unitPrice = unitPrice
7627
 
7628
  def read(self, iprot):
7629
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7630
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7631
      return
7632
    iprot.readStructBegin()
7633
    while True:
7634
      (fname, ftype, fid) = iprot.readFieldBegin()
7635
      if ftype == TType.STOP:
7636
        break
7637
      if fid == 1:
7638
        if ftype == TType.I64:
7639
          self.orderId = iprot.readI64();
7640
        else:
7641
          iprot.skip(ftype)
7642
      elif fid == 2:
7643
        if ftype == TType.DOUBLE:
7644
          self.unitPrice = iprot.readDouble();
7645
        else:
7646
          iprot.skip(ftype)
7647
      else:
7648
        iprot.skip(ftype)
7649
      iprot.readFieldEnd()
7650
    iprot.readStructEnd()
7651
 
7652
  def write(self, oprot):
7653
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7654
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7655
      return
7656
    oprot.writeStructBegin('scanForOursExternalSaleReturn_args')
7657
    if self.orderId is not None:
7658
      oprot.writeFieldBegin('orderId', TType.I64, 1)
7659
      oprot.writeI64(self.orderId)
7660
      oprot.writeFieldEnd()
7661
    if self.unitPrice is not None:
7662
      oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 2)
7663
      oprot.writeDouble(self.unitPrice)
7664
      oprot.writeFieldEnd()
7665
    oprot.writeFieldStop()
7666
    oprot.writeStructEnd()
7667
 
7668
  def validate(self):
7669
    return
7670
 
7671
 
7672
  def __repr__(self):
7673
    L = ['%s=%r' % (key, value)
7674
      for key, value in self.__dict__.iteritems()]
7675
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7676
 
7677
  def __eq__(self, other):
7678
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7679
 
7680
  def __ne__(self, other):
7681
    return not (self == other)
7682
 
7683
class scanForOursExternalSaleReturn_result:
7410 amar.kumar 7684
  """
7685
  Attributes:
7686
   - ex
7687
  """
6762 amar.kumar 7688
 
7689
  thrift_spec = (
7410 amar.kumar 7690
    None, # 0
7691
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
6762 amar.kumar 7692
  )
7693
 
7410 amar.kumar 7694
  def __init__(self, ex=None,):
7695
    self.ex = ex
7696
 
6762 amar.kumar 7697
  def read(self, iprot):
7698
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7699
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7700
      return
7701
    iprot.readStructBegin()
7702
    while True:
7703
      (fname, ftype, fid) = iprot.readFieldBegin()
7704
      if ftype == TType.STOP:
7705
        break
7410 amar.kumar 7706
      if fid == 1:
7707
        if ftype == TType.STRUCT:
7708
          self.ex = WarehouseServiceException()
7709
          self.ex.read(iprot)
7710
        else:
7711
          iprot.skip(ftype)
6762 amar.kumar 7712
      else:
7713
        iprot.skip(ftype)
7714
      iprot.readFieldEnd()
7715
    iprot.readStructEnd()
7716
 
7717
  def write(self, oprot):
7718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7720
      return
7721
    oprot.writeStructBegin('scanForOursExternalSaleReturn_result')
7410 amar.kumar 7722
    if self.ex is not None:
7723
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7724
      self.ex.write(oprot)
7725
      oprot.writeFieldEnd()
6762 amar.kumar 7726
    oprot.writeFieldStop()
7727
    oprot.writeStructEnd()
7728
 
7729
  def validate(self):
7730
    return
7731
 
7732
 
7733
  def __repr__(self):
7734
    L = ['%s=%r' % (key, value)
7735
      for key, value in self.__dict__.iteritems()]
7736
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7737
 
7738
  def __eq__(self, other):
7739
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7740
 
7741
  def __ne__(self, other):
7742
    return not (self == other)
6880 amar.kumar 7743
 
7744
class getMovementNonSerializedInventoryByScans_args:
7745
  """
7746
  Attributes:
7747
   - startDate
7748
   - endDate
7749
  """
7750
 
7751
  thrift_spec = (
7752
    None, # 0
7753
    (1, TType.I64, 'startDate', None, None, ), # 1
7754
    (2, TType.I64, 'endDate', None, None, ), # 2
7755
  )
7756
 
7757
  def __init__(self, startDate=None, endDate=None,):
7758
    self.startDate = startDate
7759
    self.endDate = endDate
7760
 
7761
  def read(self, iprot):
7762
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7763
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7764
      return
7765
    iprot.readStructBegin()
7766
    while True:
7767
      (fname, ftype, fid) = iprot.readFieldBegin()
7768
      if ftype == TType.STOP:
7769
        break
7770
      if fid == 1:
7771
        if ftype == TType.I64:
7772
          self.startDate = iprot.readI64();
7773
        else:
7774
          iprot.skip(ftype)
7775
      elif fid == 2:
7776
        if ftype == TType.I64:
7777
          self.endDate = iprot.readI64();
7778
        else:
7779
          iprot.skip(ftype)
7780
      else:
7781
        iprot.skip(ftype)
7782
      iprot.readFieldEnd()
7783
    iprot.readStructEnd()
7784
 
7785
  def write(self, oprot):
7786
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7787
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7788
      return
7789
    oprot.writeStructBegin('getMovementNonSerializedInventoryByScans_args')
7790
    if self.startDate is not None:
7791
      oprot.writeFieldBegin('startDate', TType.I64, 1)
7792
      oprot.writeI64(self.startDate)
7793
      oprot.writeFieldEnd()
7794
    if self.endDate is not None:
7795
      oprot.writeFieldBegin('endDate', TType.I64, 2)
7796
      oprot.writeI64(self.endDate)
7797
      oprot.writeFieldEnd()
7798
    oprot.writeFieldStop()
7799
    oprot.writeStructEnd()
7800
 
7801
  def validate(self):
7802
    return
7803
 
7804
 
7805
  def __repr__(self):
7806
    L = ['%s=%r' % (key, value)
7807
      for key, value in self.__dict__.iteritems()]
7808
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7809
 
7810
  def __eq__(self, other):
7811
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7812
 
7813
  def __ne__(self, other):
7814
    return not (self == other)
7815
 
7816
class getMovementNonSerializedInventoryByScans_result:
7817
  """
7818
  Attributes:
7819
   - success
7820
  """
7821
 
7822
  thrift_spec = (
7823
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
7824
  )
7825
 
7826
  def __init__(self, success=None,):
7827
    self.success = success
7828
 
7829
  def read(self, iprot):
7830
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7831
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7832
      return
7833
    iprot.readStructBegin()
7834
    while True:
7835
      (fname, ftype, fid) = iprot.readFieldBegin()
7836
      if ftype == TType.STOP:
7837
        break
7838
      if fid == 0:
7839
        if ftype == TType.LIST:
7840
          self.success = []
10407 amar.kumar 7841
          (_etype129, _size126) = iprot.readListBegin()
7842
          for _i130 in xrange(_size126):
7843
            _elem131 = InventoryMovement()
7844
            _elem131.read(iprot)
7845
            self.success.append(_elem131)
6880 amar.kumar 7846
          iprot.readListEnd()
7847
        else:
7848
          iprot.skip(ftype)
7849
      else:
7850
        iprot.skip(ftype)
7851
      iprot.readFieldEnd()
7852
    iprot.readStructEnd()
7853
 
7854
  def write(self, oprot):
7855
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7856
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7857
      return
7858
    oprot.writeStructBegin('getMovementNonSerializedInventoryByScans_result')
7859
    if self.success is not None:
7860
      oprot.writeFieldBegin('success', TType.LIST, 0)
7861
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 7862
      for iter132 in self.success:
7863
        iter132.write(oprot)
6880 amar.kumar 7864
      oprot.writeListEnd()
7865
      oprot.writeFieldEnd()
7866
    oprot.writeFieldStop()
7867
    oprot.writeStructEnd()
7868
 
7869
  def validate(self):
7870
    return
7871
 
7872
 
7873
  def __repr__(self):
7874
    L = ['%s=%r' % (key, value)
7875
      for key, value in self.__dict__.iteritems()]
7876
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7877
 
7878
  def __eq__(self, other):
7879
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7880
 
7881
  def __ne__(self, other):
7882
    return not (self == other)
7883
 
7884
class getMovementSerializedInventoryByScans_args:
7885
  """
7886
  Attributes:
7887
   - startDate
7888
   - endDate
7889
  """
7890
 
7891
  thrift_spec = (
7892
    None, # 0
7893
    (1, TType.I64, 'startDate', None, None, ), # 1
7894
    (2, TType.I64, 'endDate', None, None, ), # 2
7895
  )
7896
 
7897
  def __init__(self, startDate=None, endDate=None,):
7898
    self.startDate = startDate
7899
    self.endDate = endDate
7900
 
7901
  def read(self, iprot):
7902
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7903
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7904
      return
7905
    iprot.readStructBegin()
7906
    while True:
7907
      (fname, ftype, fid) = iprot.readFieldBegin()
7908
      if ftype == TType.STOP:
7909
        break
7910
      if fid == 1:
7911
        if ftype == TType.I64:
7912
          self.startDate = iprot.readI64();
7913
        else:
7914
          iprot.skip(ftype)
7915
      elif fid == 2:
7916
        if ftype == TType.I64:
7917
          self.endDate = iprot.readI64();
7918
        else:
7919
          iprot.skip(ftype)
7920
      else:
7921
        iprot.skip(ftype)
7922
      iprot.readFieldEnd()
7923
    iprot.readStructEnd()
7924
 
7925
  def write(self, oprot):
7926
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7927
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7928
      return
7929
    oprot.writeStructBegin('getMovementSerializedInventoryByScans_args')
7930
    if self.startDate is not None:
7931
      oprot.writeFieldBegin('startDate', TType.I64, 1)
7932
      oprot.writeI64(self.startDate)
7933
      oprot.writeFieldEnd()
7934
    if self.endDate is not None:
7935
      oprot.writeFieldBegin('endDate', TType.I64, 2)
7936
      oprot.writeI64(self.endDate)
7937
      oprot.writeFieldEnd()
7938
    oprot.writeFieldStop()
7939
    oprot.writeStructEnd()
7940
 
7941
  def validate(self):
7942
    return
7943
 
7944
 
7945
  def __repr__(self):
7946
    L = ['%s=%r' % (key, value)
7947
      for key, value in self.__dict__.iteritems()]
7948
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7949
 
7950
  def __eq__(self, other):
7951
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7952
 
7953
  def __ne__(self, other):
7954
    return not (self == other)
7955
 
7956
class getMovementSerializedInventoryByScans_result:
7957
  """
7958
  Attributes:
7959
   - success
7960
  """
7961
 
7962
  thrift_spec = (
7963
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
7964
  )
7965
 
7966
  def __init__(self, success=None,):
7967
    self.success = success
7968
 
7969
  def read(self, iprot):
7970
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7971
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7972
      return
7973
    iprot.readStructBegin()
7974
    while True:
7975
      (fname, ftype, fid) = iprot.readFieldBegin()
7976
      if ftype == TType.STOP:
7977
        break
7978
      if fid == 0:
7979
        if ftype == TType.LIST:
7980
          self.success = []
10407 amar.kumar 7981
          (_etype136, _size133) = iprot.readListBegin()
7982
          for _i137 in xrange(_size133):
7983
            _elem138 = InventoryMovement()
7984
            _elem138.read(iprot)
7985
            self.success.append(_elem138)
6880 amar.kumar 7986
          iprot.readListEnd()
7987
        else:
7988
          iprot.skip(ftype)
7989
      else:
7990
        iprot.skip(ftype)
7991
      iprot.readFieldEnd()
7992
    iprot.readStructEnd()
7993
 
7994
  def write(self, oprot):
7995
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7996
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7997
      return
7998
    oprot.writeStructBegin('getMovementSerializedInventoryByScans_result')
7999
    if self.success is not None:
8000
      oprot.writeFieldBegin('success', TType.LIST, 0)
8001
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8002
      for iter139 in self.success:
8003
        iter139.write(oprot)
6880 amar.kumar 8004
      oprot.writeListEnd()
8005
      oprot.writeFieldEnd()
8006
    oprot.writeFieldStop()
8007
    oprot.writeStructEnd()
8008
 
8009
  def validate(self):
8010
    return
8011
 
8012
 
8013
  def __repr__(self):
8014
    L = ['%s=%r' % (key, value)
8015
      for key, value in self.__dict__.iteritems()]
8016
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8017
 
8018
  def __eq__(self, other):
8019
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8020
 
8021
  def __ne__(self, other):
8022
    return not (self == other)
7190 amar.kumar 8023
 
7216 amar.kumar 8024
class getCompleteMovementSerializedInventoryByScans_args:
8025
  """
8026
  Attributes:
8027
   - startDate
8028
   - endDate
8029
  """
8030
 
8031
  thrift_spec = (
8032
    None, # 0
8033
    (1, TType.I64, 'startDate', None, None, ), # 1
8034
    (2, TType.I64, 'endDate', None, None, ), # 2
8035
  )
8036
 
8037
  def __init__(self, startDate=None, endDate=None,):
8038
    self.startDate = startDate
8039
    self.endDate = endDate
8040
 
8041
  def read(self, iprot):
8042
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8043
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8044
      return
8045
    iprot.readStructBegin()
8046
    while True:
8047
      (fname, ftype, fid) = iprot.readFieldBegin()
8048
      if ftype == TType.STOP:
8049
        break
8050
      if fid == 1:
8051
        if ftype == TType.I64:
8052
          self.startDate = iprot.readI64();
8053
        else:
8054
          iprot.skip(ftype)
8055
      elif fid == 2:
8056
        if ftype == TType.I64:
8057
          self.endDate = iprot.readI64();
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('getCompleteMovementSerializedInventoryByScans_args')
8070
    if self.startDate is not None:
8071
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8072
      oprot.writeI64(self.startDate)
8073
      oprot.writeFieldEnd()
8074
    if self.endDate is not None:
8075
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8076
      oprot.writeI64(self.endDate)
8077
      oprot.writeFieldEnd()
8078
    oprot.writeFieldStop()
8079
    oprot.writeStructEnd()
8080
 
8081
  def validate(self):
8082
    return
8083
 
8084
 
8085
  def __repr__(self):
8086
    L = ['%s=%r' % (key, value)
8087
      for key, value in self.__dict__.iteritems()]
8088
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8089
 
8090
  def __eq__(self, other):
8091
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8092
 
8093
  def __ne__(self, other):
8094
    return not (self == other)
8095
 
8096
class getCompleteMovementSerializedInventoryByScans_result:
8097
  """
8098
  Attributes:
8099
   - success
8100
  """
8101
 
8102
  thrift_spec = (
8103
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8104
  )
8105
 
8106
  def __init__(self, success=None,):
8107
    self.success = success
8108
 
8109
  def read(self, iprot):
8110
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8111
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8112
      return
8113
    iprot.readStructBegin()
8114
    while True:
8115
      (fname, ftype, fid) = iprot.readFieldBegin()
8116
      if ftype == TType.STOP:
8117
        break
8118
      if fid == 0:
8119
        if ftype == TType.LIST:
8120
          self.success = []
10407 amar.kumar 8121
          (_etype143, _size140) = iprot.readListBegin()
8122
          for _i144 in xrange(_size140):
8123
            _elem145 = InventoryMovement()
8124
            _elem145.read(iprot)
8125
            self.success.append(_elem145)
7216 amar.kumar 8126
          iprot.readListEnd()
8127
        else:
8128
          iprot.skip(ftype)
8129
      else:
8130
        iprot.skip(ftype)
8131
      iprot.readFieldEnd()
8132
    iprot.readStructEnd()
8133
 
8134
  def write(self, oprot):
8135
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8136
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8137
      return
8138
    oprot.writeStructBegin('getCompleteMovementSerializedInventoryByScans_result')
8139
    if self.success is not None:
8140
      oprot.writeFieldBegin('success', TType.LIST, 0)
8141
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8142
      for iter146 in self.success:
8143
        iter146.write(oprot)
7216 amar.kumar 8144
      oprot.writeListEnd()
8145
      oprot.writeFieldEnd()
8146
    oprot.writeFieldStop()
8147
    oprot.writeStructEnd()
8148
 
8149
  def validate(self):
8150
    return
8151
 
8152
 
8153
  def __repr__(self):
8154
    L = ['%s=%r' % (key, value)
8155
      for key, value in self.__dict__.iteritems()]
8156
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8157
 
8158
  def __eq__(self, other):
8159
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8160
 
8161
  def __ne__(self, other):
8162
    return not (self == other)
8163
 
8164
class getCompleteMovementNonSerializedInventoryByScans_args:
8165
  """
8166
  Attributes:
8167
   - startDate
8168
   - endDate
8169
  """
8170
 
8171
  thrift_spec = (
8172
    None, # 0
8173
    (1, TType.I64, 'startDate', None, None, ), # 1
8174
    (2, TType.I64, 'endDate', None, None, ), # 2
8175
  )
8176
 
8177
  def __init__(self, startDate=None, endDate=None,):
8178
    self.startDate = startDate
8179
    self.endDate = endDate
8180
 
8181
  def read(self, iprot):
8182
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8183
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8184
      return
8185
    iprot.readStructBegin()
8186
    while True:
8187
      (fname, ftype, fid) = iprot.readFieldBegin()
8188
      if ftype == TType.STOP:
8189
        break
8190
      if fid == 1:
8191
        if ftype == TType.I64:
8192
          self.startDate = iprot.readI64();
8193
        else:
8194
          iprot.skip(ftype)
8195
      elif fid == 2:
8196
        if ftype == TType.I64:
8197
          self.endDate = iprot.readI64();
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('getCompleteMovementNonSerializedInventoryByScans_args')
8210
    if self.startDate is not None:
8211
      oprot.writeFieldBegin('startDate', TType.I64, 1)
8212
      oprot.writeI64(self.startDate)
8213
      oprot.writeFieldEnd()
8214
    if self.endDate is not None:
8215
      oprot.writeFieldBegin('endDate', TType.I64, 2)
8216
      oprot.writeI64(self.endDate)
8217
      oprot.writeFieldEnd()
8218
    oprot.writeFieldStop()
8219
    oprot.writeStructEnd()
8220
 
8221
  def validate(self):
8222
    return
8223
 
8224
 
8225
  def __repr__(self):
8226
    L = ['%s=%r' % (key, value)
8227
      for key, value in self.__dict__.iteritems()]
8228
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8229
 
8230
  def __eq__(self, other):
8231
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8232
 
8233
  def __ne__(self, other):
8234
    return not (self == other)
8235
 
8236
class getCompleteMovementNonSerializedInventoryByScans_result:
8237
  """
8238
  Attributes:
8239
   - success
8240
  """
8241
 
8242
  thrift_spec = (
8243
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.thrift_spec)), None, ), # 0
8244
  )
8245
 
8246
  def __init__(self, success=None,):
8247
    self.success = success
8248
 
8249
  def read(self, iprot):
8250
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8251
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8252
      return
8253
    iprot.readStructBegin()
8254
    while True:
8255
      (fname, ftype, fid) = iprot.readFieldBegin()
8256
      if ftype == TType.STOP:
8257
        break
8258
      if fid == 0:
8259
        if ftype == TType.LIST:
8260
          self.success = []
10407 amar.kumar 8261
          (_etype150, _size147) = iprot.readListBegin()
8262
          for _i151 in xrange(_size147):
8263
            _elem152 = InventoryMovement()
8264
            _elem152.read(iprot)
8265
            self.success.append(_elem152)
7216 amar.kumar 8266
          iprot.readListEnd()
8267
        else:
8268
          iprot.skip(ftype)
8269
      else:
8270
        iprot.skip(ftype)
8271
      iprot.readFieldEnd()
8272
    iprot.readStructEnd()
8273
 
8274
  def write(self, oprot):
8275
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8276
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8277
      return
8278
    oprot.writeStructBegin('getCompleteMovementNonSerializedInventoryByScans_result')
8279
    if self.success is not None:
8280
      oprot.writeFieldBegin('success', TType.LIST, 0)
8281
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 8282
      for iter153 in self.success:
8283
        iter153.write(oprot)
7216 amar.kumar 8284
      oprot.writeListEnd()
8285
      oprot.writeFieldEnd()
8286
    oprot.writeFieldStop()
8287
    oprot.writeStructEnd()
8288
 
8289
  def validate(self):
8290
    return
8291
 
8292
 
8293
  def __repr__(self):
8294
    L = ['%s=%r' % (key, value)
8295
      for key, value in self.__dict__.iteritems()]
8296
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8297
 
8298
  def __eq__(self, other):
8299
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8300
 
8301
  def __ne__(self, other):
8302
    return not (self == other)
8303
 
7190 amar.kumar 8304
class scanfreebie_args:
8305
  """
8306
  Attributes:
8307
   - orderId
8308
   - freebieItemId
8309
   - freebieWarehouseId
8310
   - scanType
8311
  """
8312
 
8313
  thrift_spec = (
8314
    None, # 0
8315
    (1, TType.I64, 'orderId', None, None, ), # 1
8316
    (2, TType.I64, 'freebieItemId', None, None, ), # 2
8317
    (3, TType.I64, 'freebieWarehouseId', None, None, ), # 3
8318
    (4, TType.I32, 'scanType', None, None, ), # 4
8319
  )
8320
 
8321
  def __init__(self, orderId=None, freebieItemId=None, freebieWarehouseId=None, scanType=None,):
8322
    self.orderId = orderId
8323
    self.freebieItemId = freebieItemId
8324
    self.freebieWarehouseId = freebieWarehouseId
8325
    self.scanType = scanType
8326
 
8327
  def read(self, iprot):
8328
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8329
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8330
      return
8331
    iprot.readStructBegin()
8332
    while True:
8333
      (fname, ftype, fid) = iprot.readFieldBegin()
8334
      if ftype == TType.STOP:
8335
        break
8336
      if fid == 1:
8337
        if ftype == TType.I64:
8338
          self.orderId = iprot.readI64();
8339
        else:
8340
          iprot.skip(ftype)
8341
      elif fid == 2:
8342
        if ftype == TType.I64:
8343
          self.freebieItemId = iprot.readI64();
8344
        else:
8345
          iprot.skip(ftype)
8346
      elif fid == 3:
8347
        if ftype == TType.I64:
8348
          self.freebieWarehouseId = iprot.readI64();
8349
        else:
8350
          iprot.skip(ftype)
8351
      elif fid == 4:
8352
        if ftype == TType.I32:
8353
          self.scanType = iprot.readI32();
8354
        else:
8355
          iprot.skip(ftype)
8356
      else:
8357
        iprot.skip(ftype)
8358
      iprot.readFieldEnd()
8359
    iprot.readStructEnd()
8360
 
8361
  def write(self, oprot):
8362
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8363
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8364
      return
8365
    oprot.writeStructBegin('scanfreebie_args')
8366
    if self.orderId is not None:
8367
      oprot.writeFieldBegin('orderId', TType.I64, 1)
8368
      oprot.writeI64(self.orderId)
8369
      oprot.writeFieldEnd()
8370
    if self.freebieItemId is not None:
8371
      oprot.writeFieldBegin('freebieItemId', TType.I64, 2)
8372
      oprot.writeI64(self.freebieItemId)
8373
      oprot.writeFieldEnd()
8374
    if self.freebieWarehouseId is not None:
8375
      oprot.writeFieldBegin('freebieWarehouseId', TType.I64, 3)
8376
      oprot.writeI64(self.freebieWarehouseId)
8377
      oprot.writeFieldEnd()
8378
    if self.scanType is not None:
8379
      oprot.writeFieldBegin('scanType', TType.I32, 4)
8380
      oprot.writeI32(self.scanType)
8381
      oprot.writeFieldEnd()
8382
    oprot.writeFieldStop()
8383
    oprot.writeStructEnd()
8384
 
8385
  def validate(self):
8386
    return
8387
 
8388
 
8389
  def __repr__(self):
8390
    L = ['%s=%r' % (key, value)
8391
      for key, value in self.__dict__.iteritems()]
8392
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8393
 
8394
  def __eq__(self, other):
8395
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8396
 
8397
  def __ne__(self, other):
8398
    return not (self == other)
8399
 
8400
class scanfreebie_result:
8401
  """
8402
  Attributes:
8403
   - success
8404
   - wex
8405
  """
8406
 
8407
  thrift_spec = (
8408
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
8409
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8410
  )
8411
 
8412
  def __init__(self, success=None, wex=None,):
8413
    self.success = success
8414
    self.wex = wex
8415
 
8416
  def read(self, iprot):
8417
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8418
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8419
      return
8420
    iprot.readStructBegin()
8421
    while True:
8422
      (fname, ftype, fid) = iprot.readFieldBegin()
8423
      if ftype == TType.STOP:
8424
        break
8425
      if fid == 0:
8426
        if ftype == TType.STRUCT:
8427
          self.success = InventoryItem()
8428
          self.success.read(iprot)
8429
        else:
8430
          iprot.skip(ftype)
8431
      elif fid == 1:
8432
        if ftype == TType.STRUCT:
8433
          self.wex = WarehouseServiceException()
8434
          self.wex.read(iprot)
8435
        else:
8436
          iprot.skip(ftype)
8437
      else:
8438
        iprot.skip(ftype)
8439
      iprot.readFieldEnd()
8440
    iprot.readStructEnd()
8441
 
8442
  def write(self, oprot):
8443
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8444
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8445
      return
8446
    oprot.writeStructBegin('scanfreebie_result')
8447
    if self.success is not None:
8448
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8449
      self.success.write(oprot)
8450
      oprot.writeFieldEnd()
8451
    if self.wex is not None:
8452
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
8453
      self.wex.write(oprot)
8454
      oprot.writeFieldEnd()
8455
    oprot.writeFieldStop()
8456
    oprot.writeStructEnd()
8457
 
8458
  def validate(self):
8459
    return
8460
 
8461
 
8462
  def __repr__(self):
8463
    L = ['%s=%r' % (key, value)
8464
      for key, value in self.__dict__.iteritems()]
8465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8466
 
8467
  def __eq__(self, other):
8468
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8469
 
8470
  def __ne__(self, other):
8471
    return not (self == other)
7199 amar.kumar 8472
 
8473
class reshipfreebie_args:
8474
  """
8475
  Attributes:
8476
   - oldOrderId
8477
   - newOrderId
8478
   - freebieItemId
8479
   - scanType
8480
  """
8481
 
8482
  thrift_spec = (
8483
    None, # 0
8484
    (1, TType.I64, 'oldOrderId', None, None, ), # 1
8485
    (2, TType.I64, 'newOrderId', None, None, ), # 2
8486
    (3, TType.I64, 'freebieItemId', None, None, ), # 3
8487
    (4, TType.I32, 'scanType', None, None, ), # 4
8488
  )
8489
 
8490
  def __init__(self, oldOrderId=None, newOrderId=None, freebieItemId=None, scanType=None,):
8491
    self.oldOrderId = oldOrderId
8492
    self.newOrderId = newOrderId
8493
    self.freebieItemId = freebieItemId
8494
    self.scanType = scanType
8495
 
8496
  def read(self, iprot):
8497
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8498
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8499
      return
8500
    iprot.readStructBegin()
8501
    while True:
8502
      (fname, ftype, fid) = iprot.readFieldBegin()
8503
      if ftype == TType.STOP:
8504
        break
8505
      if fid == 1:
8506
        if ftype == TType.I64:
8507
          self.oldOrderId = iprot.readI64();
8508
        else:
8509
          iprot.skip(ftype)
8510
      elif fid == 2:
8511
        if ftype == TType.I64:
8512
          self.newOrderId = iprot.readI64();
8513
        else:
8514
          iprot.skip(ftype)
8515
      elif fid == 3:
8516
        if ftype == TType.I64:
8517
          self.freebieItemId = iprot.readI64();
8518
        else:
8519
          iprot.skip(ftype)
8520
      elif fid == 4:
8521
        if ftype == TType.I32:
8522
          self.scanType = iprot.readI32();
8523
        else:
8524
          iprot.skip(ftype)
8525
      else:
8526
        iprot.skip(ftype)
8527
      iprot.readFieldEnd()
8528
    iprot.readStructEnd()
8529
 
8530
  def write(self, oprot):
8531
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8532
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8533
      return
8534
    oprot.writeStructBegin('reshipfreebie_args')
8535
    if self.oldOrderId is not None:
8536
      oprot.writeFieldBegin('oldOrderId', TType.I64, 1)
8537
      oprot.writeI64(self.oldOrderId)
8538
      oprot.writeFieldEnd()
8539
    if self.newOrderId is not None:
8540
      oprot.writeFieldBegin('newOrderId', TType.I64, 2)
8541
      oprot.writeI64(self.newOrderId)
8542
      oprot.writeFieldEnd()
8543
    if self.freebieItemId is not None:
8544
      oprot.writeFieldBegin('freebieItemId', TType.I64, 3)
8545
      oprot.writeI64(self.freebieItemId)
8546
      oprot.writeFieldEnd()
8547
    if self.scanType is not None:
8548
      oprot.writeFieldBegin('scanType', TType.I32, 4)
8549
      oprot.writeI32(self.scanType)
8550
      oprot.writeFieldEnd()
8551
    oprot.writeFieldStop()
8552
    oprot.writeStructEnd()
8553
 
8554
  def validate(self):
8555
    return
8556
 
8557
 
8558
  def __repr__(self):
8559
    L = ['%s=%r' % (key, value)
8560
      for key, value in self.__dict__.iteritems()]
8561
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8562
 
8563
  def __eq__(self, other):
8564
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8565
 
8566
  def __ne__(self, other):
8567
    return not (self == other)
8568
 
8569
class reshipfreebie_result:
8570
  """
8571
  Attributes:
8572
   - wex
8573
  """
8574
 
8575
  thrift_spec = (
8576
    None, # 0
8577
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8578
  )
8579
 
8580
  def __init__(self, wex=None,):
8581
    self.wex = wex
8582
 
8583
  def read(self, iprot):
8584
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8585
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8586
      return
8587
    iprot.readStructBegin()
8588
    while True:
8589
      (fname, ftype, fid) = iprot.readFieldBegin()
8590
      if ftype == TType.STOP:
8591
        break
8592
      if fid == 1:
8593
        if ftype == TType.STRUCT:
8594
          self.wex = WarehouseServiceException()
8595
          self.wex.read(iprot)
8596
        else:
8597
          iprot.skip(ftype)
8598
      else:
8599
        iprot.skip(ftype)
8600
      iprot.readFieldEnd()
8601
    iprot.readStructEnd()
8602
 
8603
  def write(self, oprot):
8604
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8605
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8606
      return
8607
    oprot.writeStructBegin('reshipfreebie_result')
8608
    if self.wex is not None:
8609
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
8610
      self.wex.write(oprot)
8611
      oprot.writeFieldEnd()
8612
    oprot.writeFieldStop()
8613
    oprot.writeStructEnd()
8614
 
8615
  def validate(self):
8616
    return
8617
 
8618
 
8619
  def __repr__(self):
8620
    L = ['%s=%r' % (key, value)
8621
      for key, value in self.__dict__.iteritems()]
8622
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8623
 
8624
  def __eq__(self, other):
8625
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8626
 
8627
  def __ne__(self, other):
8628
    return not (self == other)
7410 amar.kumar 8629
 
8630
class isItemTransferAllowed_args:
8631
  """
8632
  Attributes:
8633
   - warehouseId
8634
   - transferWarehouseId
8635
  """
8636
 
8637
  thrift_spec = (
8638
    None, # 0
8639
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8640
    (2, TType.I64, 'transferWarehouseId', None, None, ), # 2
8641
  )
8642
 
8643
  def __init__(self, warehouseId=None, transferWarehouseId=None,):
8644
    self.warehouseId = warehouseId
8645
    self.transferWarehouseId = transferWarehouseId
8646
 
8647
  def read(self, iprot):
8648
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8649
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8650
      return
8651
    iprot.readStructBegin()
8652
    while True:
8653
      (fname, ftype, fid) = iprot.readFieldBegin()
8654
      if ftype == TType.STOP:
8655
        break
8656
      if fid == 1:
8657
        if ftype == TType.I64:
8658
          self.warehouseId = iprot.readI64();
8659
        else:
8660
          iprot.skip(ftype)
8661
      elif fid == 2:
8662
        if ftype == TType.I64:
8663
          self.transferWarehouseId = iprot.readI64();
8664
        else:
8665
          iprot.skip(ftype)
8666
      else:
8667
        iprot.skip(ftype)
8668
      iprot.readFieldEnd()
8669
    iprot.readStructEnd()
8670
 
8671
  def write(self, oprot):
8672
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8673
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8674
      return
8675
    oprot.writeStructBegin('isItemTransferAllowed_args')
8676
    if self.warehouseId is not None:
8677
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8678
      oprot.writeI64(self.warehouseId)
8679
      oprot.writeFieldEnd()
8680
    if self.transferWarehouseId is not None:
8681
      oprot.writeFieldBegin('transferWarehouseId', TType.I64, 2)
8682
      oprot.writeI64(self.transferWarehouseId)
8683
      oprot.writeFieldEnd()
8684
    oprot.writeFieldStop()
8685
    oprot.writeStructEnd()
8686
 
8687
  def validate(self):
8688
    return
8689
 
8690
 
8691
  def __repr__(self):
8692
    L = ['%s=%r' % (key, value)
8693
      for key, value in self.__dict__.iteritems()]
8694
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8695
 
8696
  def __eq__(self, other):
8697
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8698
 
8699
  def __ne__(self, other):
8700
    return not (self == other)
8701
 
8702
class isItemTransferAllowed_result:
8703
  """
8704
  Attributes:
8705
   - success
8706
  """
8707
 
8708
  thrift_spec = (
8709
    (0, TType.BOOL, 'success', None, None, ), # 0
8710
  )
8711
 
8712
  def __init__(self, success=None,):
8713
    self.success = success
8714
 
8715
  def read(self, iprot):
8716
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8717
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8718
      return
8719
    iprot.readStructBegin()
8720
    while True:
8721
      (fname, ftype, fid) = iprot.readFieldBegin()
8722
      if ftype == TType.STOP:
8723
        break
8724
      if fid == 0:
8725
        if ftype == TType.BOOL:
8726
          self.success = iprot.readBool();
8727
        else:
8728
          iprot.skip(ftype)
8729
      else:
8730
        iprot.skip(ftype)
8731
      iprot.readFieldEnd()
8732
    iprot.readStructEnd()
8733
 
8734
  def write(self, oprot):
8735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8737
      return
8738
    oprot.writeStructBegin('isItemTransferAllowed_result')
8739
    if self.success is not None:
8740
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8741
      oprot.writeBool(self.success)
8742
      oprot.writeFieldEnd()
8743
    oprot.writeFieldStop()
8744
    oprot.writeStructEnd()
8745
 
8746
  def validate(self):
8747
    return
8748
 
8749
 
8750
  def __repr__(self):
8751
    L = ['%s=%r' % (key, value)
8752
      for key, value in self.__dict__.iteritems()]
8753
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8754
 
8755
  def __eq__(self, other):
8756
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8757
 
8758
  def __ne__(self, other):
8759
    return not (self == other)
8760
 
8761
class createTransferLot_args:
8762
  """
8763
  Attributes:
8764
   - originWarehouseId
8765
   - destWarehouseId
8766
  """
8767
 
8768
  thrift_spec = (
8769
    None, # 0
8770
    (1, TType.I64, 'originWarehouseId', None, None, ), # 1
8771
    (2, TType.I64, 'destWarehouseId', None, None, ), # 2
8772
  )
8773
 
8774
  def __init__(self, originWarehouseId=None, destWarehouseId=None,):
8775
    self.originWarehouseId = originWarehouseId
8776
    self.destWarehouseId = destWarehouseId
8777
 
8778
  def read(self, iprot):
8779
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8780
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8781
      return
8782
    iprot.readStructBegin()
8783
    while True:
8784
      (fname, ftype, fid) = iprot.readFieldBegin()
8785
      if ftype == TType.STOP:
8786
        break
8787
      if fid == 1:
8788
        if ftype == TType.I64:
8789
          self.originWarehouseId = iprot.readI64();
8790
        else:
8791
          iprot.skip(ftype)
8792
      elif fid == 2:
8793
        if ftype == TType.I64:
8794
          self.destWarehouseId = iprot.readI64();
8795
        else:
8796
          iprot.skip(ftype)
8797
      else:
8798
        iprot.skip(ftype)
8799
      iprot.readFieldEnd()
8800
    iprot.readStructEnd()
8801
 
8802
  def write(self, oprot):
8803
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8804
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8805
      return
8806
    oprot.writeStructBegin('createTransferLot_args')
8807
    if self.originWarehouseId is not None:
8808
      oprot.writeFieldBegin('originWarehouseId', TType.I64, 1)
8809
      oprot.writeI64(self.originWarehouseId)
8810
      oprot.writeFieldEnd()
8811
    if self.destWarehouseId is not None:
8812
      oprot.writeFieldBegin('destWarehouseId', TType.I64, 2)
8813
      oprot.writeI64(self.destWarehouseId)
8814
      oprot.writeFieldEnd()
8815
    oprot.writeFieldStop()
8816
    oprot.writeStructEnd()
8817
 
8818
  def validate(self):
8819
    return
8820
 
8821
 
8822
  def __repr__(self):
8823
    L = ['%s=%r' % (key, value)
8824
      for key, value in self.__dict__.iteritems()]
8825
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8826
 
8827
  def __eq__(self, other):
8828
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8829
 
8830
  def __ne__(self, other):
8831
    return not (self == other)
8832
 
8833
class createTransferLot_result:
8834
  """
8835
  Attributes:
8836
   - success
8837
   - wex
8838
  """
8839
 
8840
  thrift_spec = (
8841
    (0, TType.I64, 'success', None, None, ), # 0
8842
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8843
  )
8844
 
8845
  def __init__(self, success=None, wex=None,):
8846
    self.success = success
8847
    self.wex = wex
8848
 
8849
  def read(self, iprot):
8850
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8851
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8852
      return
8853
    iprot.readStructBegin()
8854
    while True:
8855
      (fname, ftype, fid) = iprot.readFieldBegin()
8856
      if ftype == TType.STOP:
8857
        break
8858
      if fid == 0:
8859
        if ftype == TType.I64:
8860
          self.success = iprot.readI64();
8861
        else:
8862
          iprot.skip(ftype)
8863
      elif fid == 1:
8864
        if ftype == TType.STRUCT:
8865
          self.wex = WarehouseServiceException()
8866
          self.wex.read(iprot)
8867
        else:
8868
          iprot.skip(ftype)
8869
      else:
8870
        iprot.skip(ftype)
8871
      iprot.readFieldEnd()
8872
    iprot.readStructEnd()
8873
 
8874
  def write(self, oprot):
8875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8877
      return
8878
    oprot.writeStructBegin('createTransferLot_result')
8879
    if self.success is not None:
8880
      oprot.writeFieldBegin('success', TType.I64, 0)
8881
      oprot.writeI64(self.success)
8882
      oprot.writeFieldEnd()
8883
    if self.wex is not None:
8884
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
8885
      self.wex.write(oprot)
8886
      oprot.writeFieldEnd()
8887
    oprot.writeFieldStop()
8888
    oprot.writeStructEnd()
8889
 
8890
  def validate(self):
8891
    return
8892
 
8893
 
8894
  def __repr__(self):
8895
    L = ['%s=%r' % (key, value)
8896
      for key, value in self.__dict__.iteritems()]
8897
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8898
 
8899
  def __eq__(self, other):
8900
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8901
 
8902
  def __ne__(self, other):
8903
    return not (self == other)
8904
 
8905
class getTransferLot_args:
8906
  """
8907
  Attributes:
8908
   - transferLotId
8909
  """
8910
 
8911
  thrift_spec = (
8912
    None, # 0
8913
    (1, TType.I64, 'transferLotId', None, None, ), # 1
8914
  )
8915
 
8916
  def __init__(self, transferLotId=None,):
8917
    self.transferLotId = transferLotId
8918
 
8919
  def read(self, iprot):
8920
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8921
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8922
      return
8923
    iprot.readStructBegin()
8924
    while True:
8925
      (fname, ftype, fid) = iprot.readFieldBegin()
8926
      if ftype == TType.STOP:
8927
        break
8928
      if fid == 1:
8929
        if ftype == TType.I64:
8930
          self.transferLotId = iprot.readI64();
8931
        else:
8932
          iprot.skip(ftype)
8933
      else:
8934
        iprot.skip(ftype)
8935
      iprot.readFieldEnd()
8936
    iprot.readStructEnd()
8937
 
8938
  def write(self, oprot):
8939
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8940
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8941
      return
8942
    oprot.writeStructBegin('getTransferLot_args')
8943
    if self.transferLotId is not None:
8944
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
8945
      oprot.writeI64(self.transferLotId)
8946
      oprot.writeFieldEnd()
8947
    oprot.writeFieldStop()
8948
    oprot.writeStructEnd()
8949
 
8950
  def validate(self):
8951
    return
8952
 
8953
 
8954
  def __repr__(self):
8955
    L = ['%s=%r' % (key, value)
8956
      for key, value in self.__dict__.iteritems()]
8957
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8958
 
8959
  def __eq__(self, other):
8960
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8961
 
8962
  def __ne__(self, other):
8963
    return not (self == other)
8964
 
8965
class getTransferLot_result:
8966
  """
8967
  Attributes:
8968
   - success
8969
   - wex
8970
  """
8971
 
8972
  thrift_spec = (
8973
    (0, TType.STRUCT, 'success', (TransferLot, TransferLot.thrift_spec), None, ), # 0
8974
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8975
  )
8976
 
8977
  def __init__(self, success=None, wex=None,):
8978
    self.success = success
8979
    self.wex = wex
8980
 
8981
  def read(self, iprot):
8982
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8983
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8984
      return
8985
    iprot.readStructBegin()
8986
    while True:
8987
      (fname, ftype, fid) = iprot.readFieldBegin()
8988
      if ftype == TType.STOP:
8989
        break
8990
      if fid == 0:
8991
        if ftype == TType.STRUCT:
8992
          self.success = TransferLot()
8993
          self.success.read(iprot)
8994
        else:
8995
          iprot.skip(ftype)
8996
      elif fid == 1:
8997
        if ftype == TType.STRUCT:
8998
          self.wex = WarehouseServiceException()
8999
          self.wex.read(iprot)
9000
        else:
9001
          iprot.skip(ftype)
9002
      else:
9003
        iprot.skip(ftype)
9004
      iprot.readFieldEnd()
9005
    iprot.readStructEnd()
9006
 
9007
  def write(self, oprot):
9008
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9009
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9010
      return
9011
    oprot.writeStructBegin('getTransferLot_result')
9012
    if self.success is not None:
9013
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9014
      self.success.write(oprot)
9015
      oprot.writeFieldEnd()
9016
    if self.wex is not None:
9017
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9018
      self.wex.write(oprot)
9019
      oprot.writeFieldEnd()
9020
    oprot.writeFieldStop()
9021
    oprot.writeStructEnd()
9022
 
9023
  def validate(self):
9024
    return
9025
 
9026
 
9027
  def __repr__(self):
9028
    L = ['%s=%r' % (key, value)
9029
      for key, value in self.__dict__.iteritems()]
9030
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9031
 
9032
  def __eq__(self, other):
9033
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9034
 
9035
  def __ne__(self, other):
9036
    return not (self == other)
9037
 
9038
class markTransferLotAsReceived_args:
9039
  """
9040
  Attributes:
9041
   - id
9042
   - remoteTransferRefNumber
9043
  """
9044
 
9045
  thrift_spec = (
9046
    None, # 0
9047
    (1, TType.I64, 'id', None, None, ), # 1
9048
    (2, TType.STRING, 'remoteTransferRefNumber', None, None, ), # 2
9049
  )
9050
 
9051
  def __init__(self, id=None, remoteTransferRefNumber=None,):
9052
    self.id = id
9053
    self.remoteTransferRefNumber = remoteTransferRefNumber
9054
 
9055
  def read(self, iprot):
9056
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9057
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9058
      return
9059
    iprot.readStructBegin()
9060
    while True:
9061
      (fname, ftype, fid) = iprot.readFieldBegin()
9062
      if ftype == TType.STOP:
9063
        break
9064
      if fid == 1:
9065
        if ftype == TType.I64:
9066
          self.id = iprot.readI64();
9067
        else:
9068
          iprot.skip(ftype)
9069
      elif fid == 2:
9070
        if ftype == TType.STRING:
9071
          self.remoteTransferRefNumber = iprot.readString();
9072
        else:
9073
          iprot.skip(ftype)
9074
      else:
9075
        iprot.skip(ftype)
9076
      iprot.readFieldEnd()
9077
    iprot.readStructEnd()
9078
 
9079
  def write(self, oprot):
9080
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9081
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9082
      return
9083
    oprot.writeStructBegin('markTransferLotAsReceived_args')
9084
    if self.id is not None:
9085
      oprot.writeFieldBegin('id', TType.I64, 1)
9086
      oprot.writeI64(self.id)
9087
      oprot.writeFieldEnd()
9088
    if self.remoteTransferRefNumber is not None:
9089
      oprot.writeFieldBegin('remoteTransferRefNumber', TType.STRING, 2)
9090
      oprot.writeString(self.remoteTransferRefNumber)
9091
      oprot.writeFieldEnd()
9092
    oprot.writeFieldStop()
9093
    oprot.writeStructEnd()
9094
 
9095
  def validate(self):
9096
    return
9097
 
9098
 
9099
  def __repr__(self):
9100
    L = ['%s=%r' % (key, value)
9101
      for key, value in self.__dict__.iteritems()]
9102
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9103
 
9104
  def __eq__(self, other):
9105
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9106
 
9107
  def __ne__(self, other):
9108
    return not (self == other)
9109
 
9110
class markTransferLotAsReceived_result:
9111
  """
9112
  Attributes:
9113
   - wex
9114
  """
9115
 
9116
  thrift_spec = (
9117
    None, # 0
9118
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9119
  )
9120
 
9121
  def __init__(self, wex=None,):
9122
    self.wex = wex
9123
 
9124
  def read(self, iprot):
9125
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9126
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9127
      return
9128
    iprot.readStructBegin()
9129
    while True:
9130
      (fname, ftype, fid) = iprot.readFieldBegin()
9131
      if ftype == TType.STOP:
9132
        break
9133
      if fid == 1:
9134
        if ftype == TType.STRUCT:
9135
          self.wex = WarehouseServiceException()
9136
          self.wex.read(iprot)
9137
        else:
9138
          iprot.skip(ftype)
9139
      else:
9140
        iprot.skip(ftype)
9141
      iprot.readFieldEnd()
9142
    iprot.readStructEnd()
9143
 
9144
  def write(self, oprot):
9145
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9146
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9147
      return
9148
    oprot.writeStructBegin('markTransferLotAsReceived_result')
9149
    if self.wex is not None:
9150
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9151
      self.wex.write(oprot)
9152
      oprot.writeFieldEnd()
9153
    oprot.writeFieldStop()
9154
    oprot.writeStructEnd()
9155
 
9156
  def validate(self):
9157
    return
9158
 
9159
 
9160
  def __repr__(self):
9161
    L = ['%s=%r' % (key, value)
9162
      for key, value in self.__dict__.iteritems()]
9163
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9164
 
9165
  def __eq__(self, other):
9166
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9167
 
9168
  def __ne__(self, other):
9169
    return not (self == other)
9170
 
9171
class getTransferLotsByDate_args:
9172
  """
9173
  Attributes:
9174
   - fromDate
9175
   - toDate
9176
  """
9177
 
9178
  thrift_spec = (
9179
    None, # 0
9180
    (1, TType.I64, 'fromDate', None, None, ), # 1
9181
    (2, TType.I64, 'toDate', None, None, ), # 2
9182
  )
9183
 
9184
  def __init__(self, fromDate=None, toDate=None,):
9185
    self.fromDate = fromDate
9186
    self.toDate = toDate
9187
 
9188
  def read(self, iprot):
9189
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9190
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9191
      return
9192
    iprot.readStructBegin()
9193
    while True:
9194
      (fname, ftype, fid) = iprot.readFieldBegin()
9195
      if ftype == TType.STOP:
9196
        break
9197
      if fid == 1:
9198
        if ftype == TType.I64:
9199
          self.fromDate = iprot.readI64();
9200
        else:
9201
          iprot.skip(ftype)
9202
      elif fid == 2:
9203
        if ftype == TType.I64:
9204
          self.toDate = iprot.readI64();
9205
        else:
9206
          iprot.skip(ftype)
9207
      else:
9208
        iprot.skip(ftype)
9209
      iprot.readFieldEnd()
9210
    iprot.readStructEnd()
9211
 
9212
  def write(self, oprot):
9213
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9214
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9215
      return
9216
    oprot.writeStructBegin('getTransferLotsByDate_args')
9217
    if self.fromDate is not None:
9218
      oprot.writeFieldBegin('fromDate', TType.I64, 1)
9219
      oprot.writeI64(self.fromDate)
9220
      oprot.writeFieldEnd()
9221
    if self.toDate is not None:
9222
      oprot.writeFieldBegin('toDate', TType.I64, 2)
9223
      oprot.writeI64(self.toDate)
9224
      oprot.writeFieldEnd()
9225
    oprot.writeFieldStop()
9226
    oprot.writeStructEnd()
9227
 
9228
  def validate(self):
9229
    return
9230
 
9231
 
9232
  def __repr__(self):
9233
    L = ['%s=%r' % (key, value)
9234
      for key, value in self.__dict__.iteritems()]
9235
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9236
 
9237
  def __eq__(self, other):
9238
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9239
 
9240
  def __ne__(self, other):
9241
    return not (self == other)
9242
 
9243
class getTransferLotsByDate_result:
9244
  """
9245
  Attributes:
9246
   - success
9247
   - wex
9248
  """
9249
 
9250
  thrift_spec = (
9251
    (0, TType.LIST, 'success', (TType.STRUCT,(TransferLot, TransferLot.thrift_spec)), None, ), # 0
9252
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9253
  )
9254
 
9255
  def __init__(self, success=None, wex=None,):
9256
    self.success = success
9257
    self.wex = wex
9258
 
9259
  def read(self, iprot):
9260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9262
      return
9263
    iprot.readStructBegin()
9264
    while True:
9265
      (fname, ftype, fid) = iprot.readFieldBegin()
9266
      if ftype == TType.STOP:
9267
        break
9268
      if fid == 0:
9269
        if ftype == TType.LIST:
9270
          self.success = []
10407 amar.kumar 9271
          (_etype157, _size154) = iprot.readListBegin()
9272
          for _i158 in xrange(_size154):
9273
            _elem159 = TransferLot()
9274
            _elem159.read(iprot)
9275
            self.success.append(_elem159)
7410 amar.kumar 9276
          iprot.readListEnd()
9277
        else:
9278
          iprot.skip(ftype)
9279
      elif fid == 1:
9280
        if ftype == TType.STRUCT:
9281
          self.wex = WarehouseServiceException()
9282
          self.wex.read(iprot)
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('getTransferLotsByDate_result')
9295
    if self.success is not None:
9296
      oprot.writeFieldBegin('success', TType.LIST, 0)
9297
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 9298
      for iter160 in self.success:
9299
        iter160.write(oprot)
7410 amar.kumar 9300
      oprot.writeListEnd()
9301
      oprot.writeFieldEnd()
9302
    if self.wex is not None:
9303
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9304
      self.wex.write(oprot)
9305
      oprot.writeFieldEnd()
9306
    oprot.writeFieldStop()
9307
    oprot.writeStructEnd()
9308
 
9309
  def validate(self):
9310
    return
9311
 
9312
 
9313
  def __repr__(self):
9314
    L = ['%s=%r' % (key, value)
9315
      for key, value in self.__dict__.iteritems()]
9316
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9317
 
9318
  def __eq__(self, other):
9319
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9320
 
9321
  def __ne__(self, other):
9322
    return not (self == other)
9323
 
9324
class getAllowedDestinationWarehousesForTransfer_args:
9325
  """
9326
  Attributes:
9327
   - warehouseId
9328
  """
9329
 
9330
  thrift_spec = (
9331
    None, # 0
9332
    (1, TType.I64, 'warehouseId', None, None, ), # 1
9333
  )
9334
 
9335
  def __init__(self, warehouseId=None,):
9336
    self.warehouseId = warehouseId
9337
 
9338
  def read(self, iprot):
9339
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9340
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9341
      return
9342
    iprot.readStructBegin()
9343
    while True:
9344
      (fname, ftype, fid) = iprot.readFieldBegin()
9345
      if ftype == TType.STOP:
9346
        break
9347
      if fid == 1:
9348
        if ftype == TType.I64:
9349
          self.warehouseId = iprot.readI64();
9350
        else:
9351
          iprot.skip(ftype)
9352
      else:
9353
        iprot.skip(ftype)
9354
      iprot.readFieldEnd()
9355
    iprot.readStructEnd()
9356
 
9357
  def write(self, oprot):
9358
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9359
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9360
      return
9361
    oprot.writeStructBegin('getAllowedDestinationWarehousesForTransfer_args')
9362
    if self.warehouseId is not None:
9363
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
9364
      oprot.writeI64(self.warehouseId)
9365
      oprot.writeFieldEnd()
9366
    oprot.writeFieldStop()
9367
    oprot.writeStructEnd()
9368
 
9369
  def validate(self):
9370
    return
9371
 
9372
 
9373
  def __repr__(self):
9374
    L = ['%s=%r' % (key, value)
9375
      for key, value in self.__dict__.iteritems()]
9376
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9377
 
9378
  def __eq__(self, other):
9379
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9380
 
9381
  def __ne__(self, other):
9382
    return not (self == other)
9383
 
9384
class getAllowedDestinationWarehousesForTransfer_result:
9385
  """
9386
  Attributes:
9387
   - success
9388
  """
9389
 
9390
  thrift_spec = (
9391
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9392
  )
9393
 
9394
  def __init__(self, success=None,):
9395
    self.success = success
9396
 
9397
  def read(self, iprot):
9398
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9399
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9400
      return
9401
    iprot.readStructBegin()
9402
    while True:
9403
      (fname, ftype, fid) = iprot.readFieldBegin()
9404
      if ftype == TType.STOP:
9405
        break
9406
      if fid == 0:
9407
        if ftype == TType.LIST:
9408
          self.success = []
10407 amar.kumar 9409
          (_etype164, _size161) = iprot.readListBegin()
9410
          for _i165 in xrange(_size161):
9411
            _elem166 = iprot.readI64();
9412
            self.success.append(_elem166)
7410 amar.kumar 9413
          iprot.readListEnd()
9414
        else:
9415
          iprot.skip(ftype)
9416
      else:
9417
        iprot.skip(ftype)
9418
      iprot.readFieldEnd()
9419
    iprot.readStructEnd()
9420
 
9421
  def write(self, oprot):
9422
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9423
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9424
      return
9425
    oprot.writeStructBegin('getAllowedDestinationWarehousesForTransfer_result')
9426
    if self.success is not None:
9427
      oprot.writeFieldBegin('success', TType.LIST, 0)
9428
      oprot.writeListBegin(TType.I64, len(self.success))
10407 amar.kumar 9429
      for iter167 in self.success:
9430
        oprot.writeI64(iter167)
7410 amar.kumar 9431
      oprot.writeListEnd()
9432
      oprot.writeFieldEnd()
9433
    oprot.writeFieldStop()
9434
    oprot.writeStructEnd()
9435
 
9436
  def validate(self):
9437
    return
9438
 
9439
 
9440
  def __repr__(self):
9441
    L = ['%s=%r' % (key, value)
9442
      for key, value in self.__dict__.iteritems()]
9443
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9444
 
9445
  def __eq__(self, other):
9446
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9447
 
9448
  def __ne__(self, other):
9449
    return not (self == other)
9450
 
9451
class getItemsInTransferLot_args:
9452
  """
9453
  Attributes:
9454
   - transferLotId
9455
  """
9456
 
9457
  thrift_spec = (
9458
    None, # 0
9459
    (1, TType.I64, 'transferLotId', None, None, ), # 1
9460
  )
9461
 
9462
  def __init__(self, transferLotId=None,):
9463
    self.transferLotId = transferLotId
9464
 
9465
  def read(self, iprot):
9466
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9467
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9468
      return
9469
    iprot.readStructBegin()
9470
    while True:
9471
      (fname, ftype, fid) = iprot.readFieldBegin()
9472
      if ftype == TType.STOP:
9473
        break
9474
      if fid == 1:
9475
        if ftype == TType.I64:
9476
          self.transferLotId = iprot.readI64();
9477
        else:
9478
          iprot.skip(ftype)
9479
      else:
9480
        iprot.skip(ftype)
9481
      iprot.readFieldEnd()
9482
    iprot.readStructEnd()
9483
 
9484
  def write(self, oprot):
9485
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9486
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9487
      return
9488
    oprot.writeStructBegin('getItemsInTransferLot_args')
9489
    if self.transferLotId is not None:
9490
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
9491
      oprot.writeI64(self.transferLotId)
9492
      oprot.writeFieldEnd()
9493
    oprot.writeFieldStop()
9494
    oprot.writeStructEnd()
9495
 
9496
  def validate(self):
9497
    return
9498
 
9499
 
9500
  def __repr__(self):
9501
    L = ['%s=%r' % (key, value)
9502
      for key, value in self.__dict__.iteritems()]
9503
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9504
 
9505
  def __eq__(self, other):
9506
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9507
 
9508
  def __ne__(self, other):
9509
    return not (self == other)
9510
 
9511
class getItemsInTransferLot_result:
9512
  """
9513
  Attributes:
9514
   - success
9515
  """
9516
 
9517
  thrift_spec = (
9518
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
9519
  )
9520
 
9521
  def __init__(self, success=None,):
9522
    self.success = success
9523
 
9524
  def read(self, iprot):
9525
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9526
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9527
      return
9528
    iprot.readStructBegin()
9529
    while True:
9530
      (fname, ftype, fid) = iprot.readFieldBegin()
9531
      if ftype == TType.STOP:
9532
        break
9533
      if fid == 0:
9534
        if ftype == TType.MAP:
9535
          self.success = {}
10407 amar.kumar 9536
          (_ktype169, _vtype170, _size168 ) = iprot.readMapBegin() 
9537
          for _i172 in xrange(_size168):
9538
            _key173 = iprot.readI64();
9539
            _val174 = iprot.readI64();
9540
            self.success[_key173] = _val174
7410 amar.kumar 9541
          iprot.readMapEnd()
9542
        else:
9543
          iprot.skip(ftype)
9544
      else:
9545
        iprot.skip(ftype)
9546
      iprot.readFieldEnd()
9547
    iprot.readStructEnd()
9548
 
9549
  def write(self, oprot):
9550
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9551
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9552
      return
9553
    oprot.writeStructBegin('getItemsInTransferLot_result')
9554
    if self.success is not None:
9555
      oprot.writeFieldBegin('success', TType.MAP, 0)
9556
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
10407 amar.kumar 9557
      for kiter175,viter176 in self.success.items():
9558
        oprot.writeI64(kiter175)
9559
        oprot.writeI64(viter176)
7410 amar.kumar 9560
      oprot.writeMapEnd()
9561
      oprot.writeFieldEnd()
9562
    oprot.writeFieldStop()
9563
    oprot.writeStructEnd()
9564
 
9565
  def validate(self):
9566
    return
9567
 
9568
 
9569
  def __repr__(self):
9570
    L = ['%s=%r' % (key, value)
9571
      for key, value in self.__dict__.iteritems()]
9572
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9573
 
9574
  def __eq__(self, other):
9575
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9576
 
9577
  def __ne__(self, other):
9578
    return not (self == other)
9579
 
9580
class markItemsAsReceivedForTransferLot_args:
9581
  """
9582
  Attributes:
9583
   - id
9584
  """
9585
 
9586
  thrift_spec = (
9587
    None, # 0
9588
    (1, TType.I64, 'id', None, None, ), # 1
9589
  )
9590
 
9591
  def __init__(self, id=None,):
9592
    self.id = id
9593
 
9594
  def read(self, iprot):
9595
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9596
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9597
      return
9598
    iprot.readStructBegin()
9599
    while True:
9600
      (fname, ftype, fid) = iprot.readFieldBegin()
9601
      if ftype == TType.STOP:
9602
        break
9603
      if fid == 1:
9604
        if ftype == TType.I64:
9605
          self.id = iprot.readI64();
9606
        else:
9607
          iprot.skip(ftype)
9608
      else:
9609
        iprot.skip(ftype)
9610
      iprot.readFieldEnd()
9611
    iprot.readStructEnd()
9612
 
9613
  def write(self, oprot):
9614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9616
      return
9617
    oprot.writeStructBegin('markItemsAsReceivedForTransferLot_args')
9618
    if self.id is not None:
9619
      oprot.writeFieldBegin('id', TType.I64, 1)
9620
      oprot.writeI64(self.id)
9621
      oprot.writeFieldEnd()
9622
    oprot.writeFieldStop()
9623
    oprot.writeStructEnd()
9624
 
9625
  def validate(self):
9626
    return
9627
 
9628
 
9629
  def __repr__(self):
9630
    L = ['%s=%r' % (key, value)
9631
      for key, value in self.__dict__.iteritems()]
9632
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9633
 
9634
  def __eq__(self, other):
9635
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9636
 
9637
  def __ne__(self, other):
9638
    return not (self == other)
9639
 
9640
class markItemsAsReceivedForTransferLot_result:
9641
  """
9642
  Attributes:
9643
   - wex
9644
  """
9645
 
9646
  thrift_spec = (
9647
    None, # 0
9648
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9649
  )
9650
 
9651
  def __init__(self, wex=None,):
9652
    self.wex = wex
9653
 
9654
  def read(self, iprot):
9655
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9656
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9657
      return
9658
    iprot.readStructBegin()
9659
    while True:
9660
      (fname, ftype, fid) = iprot.readFieldBegin()
9661
      if ftype == TType.STOP:
9662
        break
9663
      if fid == 1:
9664
        if ftype == TType.STRUCT:
9665
          self.wex = WarehouseServiceException()
9666
          self.wex.read(iprot)
9667
        else:
9668
          iprot.skip(ftype)
9669
      else:
9670
        iprot.skip(ftype)
9671
      iprot.readFieldEnd()
9672
    iprot.readStructEnd()
9673
 
9674
  def write(self, oprot):
9675
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9676
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9677
      return
9678
    oprot.writeStructBegin('markItemsAsReceivedForTransferLot_result')
9679
    if self.wex is not None:
9680
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9681
      self.wex.write(oprot)
9682
      oprot.writeFieldEnd()
9683
    oprot.writeFieldStop()
9684
    oprot.writeStructEnd()
9685
 
9686
  def validate(self):
9687
    return
9688
 
9689
 
9690
  def __repr__(self):
9691
    L = ['%s=%r' % (key, value)
9692
      for key, value in self.__dict__.iteritems()]
9693
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9694
 
9695
  def __eq__(self, other):
9696
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9697
 
9698
  def __ne__(self, other):
9699
    return not (self == other)
9700
 
9701
class updateTransferLotAfterItemReceive_args:
9702
  """
9703
  Attributes:
9704
   - id
9705
  """
9706
 
9707
  thrift_spec = (
9708
    None, # 0
9709
    (1, TType.I64, 'id', None, None, ), # 1
9710
  )
9711
 
9712
  def __init__(self, id=None,):
9713
    self.id = id
9714
 
9715
  def read(self, iprot):
9716
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9717
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9718
      return
9719
    iprot.readStructBegin()
9720
    while True:
9721
      (fname, ftype, fid) = iprot.readFieldBegin()
9722
      if ftype == TType.STOP:
9723
        break
9724
      if fid == 1:
9725
        if ftype == TType.I64:
9726
          self.id = iprot.readI64();
9727
        else:
9728
          iprot.skip(ftype)
9729
      else:
9730
        iprot.skip(ftype)
9731
      iprot.readFieldEnd()
9732
    iprot.readStructEnd()
9733
 
9734
  def write(self, oprot):
9735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9737
      return
9738
    oprot.writeStructBegin('updateTransferLotAfterItemReceive_args')
9739
    if self.id is not None:
9740
      oprot.writeFieldBegin('id', TType.I64, 1)
9741
      oprot.writeI64(self.id)
9742
      oprot.writeFieldEnd()
9743
    oprot.writeFieldStop()
9744
    oprot.writeStructEnd()
9745
 
9746
  def validate(self):
9747
    return
9748
 
9749
 
9750
  def __repr__(self):
9751
    L = ['%s=%r' % (key, value)
9752
      for key, value in self.__dict__.iteritems()]
9753
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9754
 
9755
  def __eq__(self, other):
9756
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9757
 
9758
  def __ne__(self, other):
9759
    return not (self == other)
9760
 
9761
class updateTransferLotAfterItemReceive_result:
9762
  """
9763
  Attributes:
9764
   - success
9765
   - wex
9766
  """
9767
 
9768
  thrift_spec = (
9769
    (0, TType.I32, 'success', None, None, ), # 0
9770
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9771
  )
9772
 
9773
  def __init__(self, success=None, wex=None,):
9774
    self.success = success
9775
    self.wex = wex
9776
 
9777
  def read(self, iprot):
9778
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9779
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9780
      return
9781
    iprot.readStructBegin()
9782
    while True:
9783
      (fname, ftype, fid) = iprot.readFieldBegin()
9784
      if ftype == TType.STOP:
9785
        break
9786
      if fid == 0:
9787
        if ftype == TType.I32:
9788
          self.success = iprot.readI32();
9789
        else:
9790
          iprot.skip(ftype)
9791
      elif fid == 1:
9792
        if ftype == TType.STRUCT:
9793
          self.wex = WarehouseServiceException()
9794
          self.wex.read(iprot)
9795
        else:
9796
          iprot.skip(ftype)
9797
      else:
9798
        iprot.skip(ftype)
9799
      iprot.readFieldEnd()
9800
    iprot.readStructEnd()
9801
 
9802
  def write(self, oprot):
9803
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9804
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9805
      return
9806
    oprot.writeStructBegin('updateTransferLotAfterItemReceive_result')
9807
    if self.success is not None:
9808
      oprot.writeFieldBegin('success', TType.I32, 0)
9809
      oprot.writeI32(self.success)
9810
      oprot.writeFieldEnd()
9811
    if self.wex is not None:
9812
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9813
      self.wex.write(oprot)
9814
      oprot.writeFieldEnd()
9815
    oprot.writeFieldStop()
9816
    oprot.writeStructEnd()
9817
 
9818
  def validate(self):
9819
    return
9820
 
9821
 
9822
  def __repr__(self):
9823
    L = ['%s=%r' % (key, value)
9824
      for key, value in self.__dict__.iteritems()]
9825
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9826
 
9827
  def __eq__(self, other):
9828
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9829
 
9830
  def __ne__(self, other):
9831
    return not (self == other)
9832
 
7459 amar.kumar 9833
class scanForTransferOut_args:
7410 amar.kumar 9834
  """
9835
  Attributes:
9836
   - inventoryItems
9837
   - type
9838
   - transferLotId
9839
  """
9840
 
9841
  thrift_spec = (
9842
    None, # 0
9843
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
9844
    (2, TType.I32, 'type', None, None, ), # 2
9845
    (3, TType.I64, 'transferLotId', None, None, ), # 3
9846
  )
9847
 
9848
  def __init__(self, inventoryItems=None, type=None, transferLotId=None,):
9849
    self.inventoryItems = inventoryItems
9850
    self.type = type
9851
    self.transferLotId = transferLotId
9852
 
9853
  def read(self, iprot):
9854
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9855
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9856
      return
9857
    iprot.readStructBegin()
9858
    while True:
9859
      (fname, ftype, fid) = iprot.readFieldBegin()
9860
      if ftype == TType.STOP:
9861
        break
9862
      if fid == 1:
9863
        if ftype == TType.LIST:
9864
          self.inventoryItems = []
10407 amar.kumar 9865
          (_etype180, _size177) = iprot.readListBegin()
9866
          for _i181 in xrange(_size177):
9867
            _elem182 = InventoryItem()
9868
            _elem182.read(iprot)
9869
            self.inventoryItems.append(_elem182)
7410 amar.kumar 9870
          iprot.readListEnd()
9871
        else:
9872
          iprot.skip(ftype)
9873
      elif fid == 2:
9874
        if ftype == TType.I32:
9875
          self.type = iprot.readI32();
9876
        else:
9877
          iprot.skip(ftype)
9878
      elif fid == 3:
9879
        if ftype == TType.I64:
9880
          self.transferLotId = iprot.readI64();
9881
        else:
9882
          iprot.skip(ftype)
9883
      else:
9884
        iprot.skip(ftype)
9885
      iprot.readFieldEnd()
9886
    iprot.readStructEnd()
9887
 
9888
  def write(self, oprot):
9889
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9890
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9891
      return
7459 amar.kumar 9892
    oprot.writeStructBegin('scanForTransferOut_args')
7410 amar.kumar 9893
    if self.inventoryItems is not None:
9894
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
9895
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 9896
      for iter183 in self.inventoryItems:
9897
        iter183.write(oprot)
7410 amar.kumar 9898
      oprot.writeListEnd()
9899
      oprot.writeFieldEnd()
9900
    if self.type is not None:
9901
      oprot.writeFieldBegin('type', TType.I32, 2)
9902
      oprot.writeI32(self.type)
9903
      oprot.writeFieldEnd()
9904
    if self.transferLotId is not None:
9905
      oprot.writeFieldBegin('transferLotId', TType.I64, 3)
9906
      oprot.writeI64(self.transferLotId)
9907
      oprot.writeFieldEnd()
9908
    oprot.writeFieldStop()
9909
    oprot.writeStructEnd()
9910
 
9911
  def validate(self):
9912
    return
9913
 
9914
 
9915
  def __repr__(self):
9916
    L = ['%s=%r' % (key, value)
9917
      for key, value in self.__dict__.iteritems()]
9918
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9919
 
9920
  def __eq__(self, other):
9921
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9922
 
9923
  def __ne__(self, other):
9924
    return not (self == other)
9925
 
7459 amar.kumar 9926
class scanForTransferOut_result:
7410 amar.kumar 9927
  """
9928
  Attributes:
9929
   - wex
9930
  """
9931
 
9932
  thrift_spec = (
9933
    None, # 0
9934
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
9935
  )
9936
 
9937
  def __init__(self, wex=None,):
9938
    self.wex = wex
9939
 
9940
  def read(self, iprot):
9941
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9942
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9943
      return
9944
    iprot.readStructBegin()
9945
    while True:
9946
      (fname, ftype, fid) = iprot.readFieldBegin()
9947
      if ftype == TType.STOP:
9948
        break
9949
      if fid == 1:
9950
        if ftype == TType.STRUCT:
9951
          self.wex = WarehouseServiceException()
9952
          self.wex.read(iprot)
9953
        else:
9954
          iprot.skip(ftype)
9955
      else:
9956
        iprot.skip(ftype)
9957
      iprot.readFieldEnd()
9958
    iprot.readStructEnd()
9959
 
9960
  def write(self, oprot):
9961
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9962
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9963
      return
7459 amar.kumar 9964
    oprot.writeStructBegin('scanForTransferOut_result')
7410 amar.kumar 9965
    if self.wex is not None:
9966
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
9967
      self.wex.write(oprot)
9968
      oprot.writeFieldEnd()
9969
    oprot.writeFieldStop()
9970
    oprot.writeStructEnd()
9971
 
9972
  def validate(self):
9973
    return
9974
 
9975
 
9976
  def __repr__(self):
9977
    L = ['%s=%r' % (key, value)
9978
      for key, value in self.__dict__.iteritems()]
9979
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9980
 
9981
  def __eq__(self, other):
9982
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9983
 
9984
  def __ne__(self, other):
9985
    return not (self == other)
7459 amar.kumar 9986
 
9987
class scanForTransferIn_args:
9988
  """
9989
  Attributes:
9990
   - inventoryItems
9991
   - type
9992
   - transferLotId
9993
  """
9994
 
9995
  thrift_spec = (
9996
    None, # 0
9997
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
9998
    (2, TType.I32, 'type', None, None, ), # 2
9999
    (3, TType.I64, 'transferLotId', None, None, ), # 3
10000
  )
10001
 
10002
  def __init__(self, inventoryItems=None, type=None, transferLotId=None,):
10003
    self.inventoryItems = inventoryItems
10004
    self.type = type
10005
    self.transferLotId = transferLotId
10006
 
10007
  def read(self, iprot):
10008
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10009
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10010
      return
10011
    iprot.readStructBegin()
10012
    while True:
10013
      (fname, ftype, fid) = iprot.readFieldBegin()
10014
      if ftype == TType.STOP:
10015
        break
10016
      if fid == 1:
10017
        if ftype == TType.LIST:
10018
          self.inventoryItems = []
10407 amar.kumar 10019
          (_etype187, _size184) = iprot.readListBegin()
10020
          for _i188 in xrange(_size184):
10021
            _elem189 = InventoryItem()
10022
            _elem189.read(iprot)
10023
            self.inventoryItems.append(_elem189)
7459 amar.kumar 10024
          iprot.readListEnd()
10025
        else:
10026
          iprot.skip(ftype)
10027
      elif fid == 2:
10028
        if ftype == TType.I32:
10029
          self.type = iprot.readI32();
10030
        else:
10031
          iprot.skip(ftype)
10032
      elif fid == 3:
10033
        if ftype == TType.I64:
10034
          self.transferLotId = iprot.readI64();
10035
        else:
10036
          iprot.skip(ftype)
10037
      else:
10038
        iprot.skip(ftype)
10039
      iprot.readFieldEnd()
10040
    iprot.readStructEnd()
10041
 
10042
  def write(self, oprot):
10043
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10044
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10045
      return
10046
    oprot.writeStructBegin('scanForTransferIn_args')
10047
    if self.inventoryItems is not None:
10048
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
10049
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 10050
      for iter190 in self.inventoryItems:
10051
        iter190.write(oprot)
7459 amar.kumar 10052
      oprot.writeListEnd()
10053
      oprot.writeFieldEnd()
10054
    if self.type is not None:
10055
      oprot.writeFieldBegin('type', TType.I32, 2)
10056
      oprot.writeI32(self.type)
10057
      oprot.writeFieldEnd()
10058
    if self.transferLotId is not None:
10059
      oprot.writeFieldBegin('transferLotId', TType.I64, 3)
10060
      oprot.writeI64(self.transferLotId)
10061
      oprot.writeFieldEnd()
10062
    oprot.writeFieldStop()
10063
    oprot.writeStructEnd()
10064
 
10065
  def validate(self):
10066
    return
10067
 
10068
 
10069
  def __repr__(self):
10070
    L = ['%s=%r' % (key, value)
10071
      for key, value in self.__dict__.iteritems()]
10072
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10073
 
10074
  def __eq__(self, other):
10075
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10076
 
10077
  def __ne__(self, other):
10078
    return not (self == other)
10079
 
10080
class scanForTransferIn_result:
10081
  """
10082
  Attributes:
10083
   - wex
10084
  """
10085
 
10086
  thrift_spec = (
10087
    None, # 0
10088
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10089
  )
10090
 
10091
  def __init__(self, wex=None,):
10092
    self.wex = wex
10093
 
10094
  def read(self, iprot):
10095
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10096
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10097
      return
10098
    iprot.readStructBegin()
10099
    while True:
10100
      (fname, ftype, fid) = iprot.readFieldBegin()
10101
      if ftype == TType.STOP:
10102
        break
10103
      if fid == 1:
10104
        if ftype == TType.STRUCT:
10105
          self.wex = WarehouseServiceException()
10106
          self.wex.read(iprot)
10107
        else:
10108
          iprot.skip(ftype)
10109
      else:
10110
        iprot.skip(ftype)
10111
      iprot.readFieldEnd()
10112
    iprot.readStructEnd()
10113
 
10114
  def write(self, oprot):
10115
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10116
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10117
      return
10118
    oprot.writeStructBegin('scanForTransferIn_result')
10119
    if self.wex is not None:
10120
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10121
      self.wex.write(oprot)
10122
      oprot.writeFieldEnd()
10123
    oprot.writeFieldStop()
10124
    oprot.writeStructEnd()
10125
 
10126
  def validate(self):
10127
    return
10128
 
10129
 
10130
  def __repr__(self):
10131
    L = ['%s=%r' % (key, value)
10132
      for key, value in self.__dict__.iteritems()]
10133
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10134
 
10135
  def __eq__(self, other):
10136
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10137
 
10138
  def __ne__(self, other):
10139
    return not (self == other)
10140
 
10141
class scanForOursThirdPartyReceive_args:
10142
  """
10143
  Attributes:
10144
   - inventoryItems
10145
   - id
10146
  """
10147
 
10148
  thrift_spec = (
10149
    None, # 0
10150
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
10151
    (2, TType.I64, 'id', None, None, ), # 2
10152
  )
10153
 
10154
  def __init__(self, inventoryItems=None, id=None,):
10155
    self.inventoryItems = inventoryItems
10156
    self.id = id
10157
 
10158
  def read(self, iprot):
10159
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10160
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10161
      return
10162
    iprot.readStructBegin()
10163
    while True:
10164
      (fname, ftype, fid) = iprot.readFieldBegin()
10165
      if ftype == TType.STOP:
10166
        break
10167
      if fid == 1:
10168
        if ftype == TType.LIST:
10169
          self.inventoryItems = []
10407 amar.kumar 10170
          (_etype194, _size191) = iprot.readListBegin()
10171
          for _i195 in xrange(_size191):
10172
            _elem196 = InventoryItem()
10173
            _elem196.read(iprot)
10174
            self.inventoryItems.append(_elem196)
7459 amar.kumar 10175
          iprot.readListEnd()
10176
        else:
10177
          iprot.skip(ftype)
10178
      elif fid == 2:
10179
        if ftype == TType.I64:
10180
          self.id = iprot.readI64();
10181
        else:
10182
          iprot.skip(ftype)
10183
      else:
10184
        iprot.skip(ftype)
10185
      iprot.readFieldEnd()
10186
    iprot.readStructEnd()
10187
 
10188
  def write(self, oprot):
10189
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10190
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10191
      return
10192
    oprot.writeStructBegin('scanForOursThirdPartyReceive_args')
10193
    if self.inventoryItems is not None:
10194
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
10195
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 10196
      for iter197 in self.inventoryItems:
10197
        iter197.write(oprot)
7459 amar.kumar 10198
      oprot.writeListEnd()
10199
      oprot.writeFieldEnd()
10200
    if self.id is not None:
10201
      oprot.writeFieldBegin('id', TType.I64, 2)
10202
      oprot.writeI64(self.id)
10203
      oprot.writeFieldEnd()
10204
    oprot.writeFieldStop()
10205
    oprot.writeStructEnd()
10206
 
10207
  def validate(self):
10208
    return
10209
 
10210
 
10211
  def __repr__(self):
10212
    L = ['%s=%r' % (key, value)
10213
      for key, value in self.__dict__.iteritems()]
10214
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10215
 
10216
  def __eq__(self, other):
10217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10218
 
10219
  def __ne__(self, other):
10220
    return not (self == other)
10221
 
10222
class scanForOursThirdPartyReceive_result:
10223
  """
10224
  Attributes:
10225
   - wex
10226
  """
10227
 
10228
  thrift_spec = (
10229
    None, # 0
10230
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10231
  )
10232
 
10233
  def __init__(self, wex=None,):
10234
    self.wex = wex
10235
 
10236
  def read(self, iprot):
10237
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10238
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10239
      return
10240
    iprot.readStructBegin()
10241
    while True:
10242
      (fname, ftype, fid) = iprot.readFieldBegin()
10243
      if ftype == TType.STOP:
10244
        break
10245
      if fid == 1:
10246
        if ftype == TType.STRUCT:
10247
          self.wex = WarehouseServiceException()
10248
          self.wex.read(iprot)
10249
        else:
10250
          iprot.skip(ftype)
10251
      else:
10252
        iprot.skip(ftype)
10253
      iprot.readFieldEnd()
10254
    iprot.readStructEnd()
10255
 
10256
  def write(self, oprot):
10257
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10258
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10259
      return
10260
    oprot.writeStructBegin('scanForOursThirdPartyReceive_result')
10261
    if self.wex is not None:
10262
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10263
      self.wex.write(oprot)
10264
      oprot.writeFieldEnd()
10265
    oprot.writeFieldStop()
10266
    oprot.writeStructEnd()
10267
 
10268
  def validate(self):
10269
    return
10270
 
10271
 
10272
  def __repr__(self):
10273
    L = ['%s=%r' % (key, value)
10274
      for key, value in self.__dict__.iteritems()]
10275
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10276
 
10277
  def __eq__(self, other):
10278
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10279
 
10280
  def __ne__(self, other):
10281
    return not (self == other)
7574 amar.kumar 10282
 
10283
class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args:
10284
  """
10285
  Attributes:
10286
   - itemId
10287
   - physicalWarehouseId
10288
  """
10289
 
10290
  thrift_spec = (
10291
    None, # 0
10292
    (1, TType.I64, 'itemId', None, None, ), # 1
10293
    (2, TType.I64, 'physicalWarehouseId', None, None, ), # 2
10294
  )
10295
 
10296
  def __init__(self, itemId=None, physicalWarehouseId=None,):
10297
    self.itemId = itemId
10298
    self.physicalWarehouseId = physicalWarehouseId
10299
 
10300
  def read(self, iprot):
10301
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10302
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10303
      return
10304
    iprot.readStructBegin()
10305
    while True:
10306
      (fname, ftype, fid) = iprot.readFieldBegin()
10307
      if ftype == TType.STOP:
10308
        break
10309
      if fid == 1:
10310
        if ftype == TType.I64:
10311
          self.itemId = iprot.readI64();
10312
        else:
10313
          iprot.skip(ftype)
10314
      elif fid == 2:
10315
        if ftype == TType.I64:
10316
          self.physicalWarehouseId = iprot.readI64();
10317
        else:
10318
          iprot.skip(ftype)
10319
      else:
10320
        iprot.skip(ftype)
10321
      iprot.readFieldEnd()
10322
    iprot.readStructEnd()
10323
 
10324
  def write(self, oprot):
10325
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10326
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10327
      return
10328
    oprot.writeStructBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args')
10329
    if self.itemId is not None:
10330
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10331
      oprot.writeI64(self.itemId)
10332
      oprot.writeFieldEnd()
10333
    if self.physicalWarehouseId is not None:
10334
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 2)
10335
      oprot.writeI64(self.physicalWarehouseId)
10336
      oprot.writeFieldEnd()
10337
    oprot.writeFieldStop()
10338
    oprot.writeStructEnd()
10339
 
10340
  def validate(self):
10341
    return
10342
 
10343
 
10344
  def __repr__(self):
10345
    L = ['%s=%r' % (key, value)
10346
      for key, value in self.__dict__.iteritems()]
10347
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10348
 
10349
  def __eq__(self, other):
10350
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10351
 
10352
  def __ne__(self, other):
10353
    return not (self == other)
10354
 
10355
class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result:
10356
  """
10357
  Attributes:
10358
   - success
10359
   - wex
10360
  """
10361
 
10362
  thrift_spec = (
10363
    (0, TType.I64, 'success', None, None, ), # 0
10364
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10365
  )
10366
 
10367
  def __init__(self, success=None, wex=None,):
10368
    self.success = success
10369
    self.wex = wex
10370
 
10371
  def read(self, iprot):
10372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10374
      return
10375
    iprot.readStructBegin()
10376
    while True:
10377
      (fname, ftype, fid) = iprot.readFieldBegin()
10378
      if ftype == TType.STOP:
10379
        break
10380
      if fid == 0:
10381
        if ftype == TType.I64:
10382
          self.success = iprot.readI64();
10383
        else:
10384
          iprot.skip(ftype)
10385
      elif fid == 1:
10386
        if ftype == TType.STRUCT:
10387
          self.wex = WarehouseServiceException()
10388
          self.wex.read(iprot)
10389
        else:
10390
          iprot.skip(ftype)
10391
      else:
10392
        iprot.skip(ftype)
10393
      iprot.readFieldEnd()
10394
    iprot.readStructEnd()
10395
 
10396
  def write(self, oprot):
10397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10399
      return
10400
    oprot.writeStructBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result')
10401
    if self.success is not None:
10402
      oprot.writeFieldBegin('success', TType.I64, 0)
10403
      oprot.writeI64(self.success)
10404
      oprot.writeFieldEnd()
10405
    if self.wex is not None:
10406
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10407
      self.wex.write(oprot)
10408
      oprot.writeFieldEnd()
10409
    oprot.writeFieldStop()
10410
    oprot.writeStructEnd()
10411
 
10412
  def validate(self):
10413
    return
10414
 
10415
 
10416
  def __repr__(self):
10417
    L = ['%s=%r' % (key, value)
10418
      for key, value in self.__dict__.iteritems()]
10419
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10420
 
10421
  def __eq__(self, other):
10422
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10423
 
10424
  def __ne__(self, other):
10425
    return not (self == other)
7672 rajveer 10426
 
10427
class getInTransitInventory_args:
10428
  """
10429
  Attributes:
10430
   - originWarehouseId
10431
  """
10432
 
10433
  thrift_spec = (
10434
    None, # 0
10435
    (1, TType.I64, 'originWarehouseId', None, None, ), # 1
10436
  )
10437
 
10438
  def __init__(self, originWarehouseId=None,):
10439
    self.originWarehouseId = originWarehouseId
10440
 
10441
  def read(self, iprot):
10442
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10443
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10444
      return
10445
    iprot.readStructBegin()
10446
    while True:
10447
      (fname, ftype, fid) = iprot.readFieldBegin()
10448
      if ftype == TType.STOP:
10449
        break
10450
      if fid == 1:
10451
        if ftype == TType.I64:
10452
          self.originWarehouseId = iprot.readI64();
10453
        else:
10454
          iprot.skip(ftype)
10455
      else:
10456
        iprot.skip(ftype)
10457
      iprot.readFieldEnd()
10458
    iprot.readStructEnd()
10459
 
10460
  def write(self, oprot):
10461
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10462
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10463
      return
10464
    oprot.writeStructBegin('getInTransitInventory_args')
10465
    if self.originWarehouseId is not None:
10466
      oprot.writeFieldBegin('originWarehouseId', TType.I64, 1)
10467
      oprot.writeI64(self.originWarehouseId)
10468
      oprot.writeFieldEnd()
10469
    oprot.writeFieldStop()
10470
    oprot.writeStructEnd()
10471
 
10472
  def validate(self):
10473
    return
10474
 
10475
 
10476
  def __repr__(self):
10477
    L = ['%s=%r' % (key, value)
10478
      for key, value in self.__dict__.iteritems()]
10479
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10480
 
10481
  def __eq__(self, other):
10482
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10483
 
10484
  def __ne__(self, other):
10485
    return not (self == other)
10486
 
10487
class getInTransitInventory_result:
10488
  """
10489
  Attributes:
10490
   - success
10491
  """
10492
 
10493
  thrift_spec = (
10494
    (0, TType.LIST, 'success', (TType.STRUCT,(InTransitInventory, InTransitInventory.thrift_spec)), None, ), # 0
10495
  )
10496
 
10497
  def __init__(self, success=None,):
10498
    self.success = success
10499
 
10500
  def read(self, iprot):
10501
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10502
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10503
      return
10504
    iprot.readStructBegin()
10505
    while True:
10506
      (fname, ftype, fid) = iprot.readFieldBegin()
10507
      if ftype == TType.STOP:
10508
        break
10509
      if fid == 0:
10510
        if ftype == TType.LIST:
10511
          self.success = []
10407 amar.kumar 10512
          (_etype201, _size198) = iprot.readListBegin()
10513
          for _i202 in xrange(_size198):
10514
            _elem203 = InTransitInventory()
10515
            _elem203.read(iprot)
10516
            self.success.append(_elem203)
7672 rajveer 10517
          iprot.readListEnd()
10518
        else:
10519
          iprot.skip(ftype)
10520
      else:
10521
        iprot.skip(ftype)
10522
      iprot.readFieldEnd()
10523
    iprot.readStructEnd()
10524
 
10525
  def write(self, oprot):
10526
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10527
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10528
      return
10529
    oprot.writeStructBegin('getInTransitInventory_result')
10530
    if self.success is not None:
10531
      oprot.writeFieldBegin('success', TType.LIST, 0)
10532
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 10533
      for iter204 in self.success:
10534
        iter204.write(oprot)
7672 rajveer 10535
      oprot.writeListEnd()
10536
      oprot.writeFieldEnd()
10537
    oprot.writeFieldStop()
10538
    oprot.writeStructEnd()
10539
 
10540
  def validate(self):
10541
    return
10542
 
10543
 
10544
  def __repr__(self):
10545
    L = ['%s=%r' % (key, value)
10546
      for key, value in self.__dict__.iteritems()]
10547
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10548
 
10549
  def __eq__(self, other):
10550
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10551
 
10552
  def __ne__(self, other):
10553
    return not (self == other)
7968 amar.kumar 10554
 
10555
class isItemAvailableForSale_args:
10556
  """
10557
  Attributes:
10558
   - itemId
10559
   - serialNumber
10560
   - warehouseId
10561
  """
10562
 
10563
  thrift_spec = (
10564
    None, # 0
10565
    (1, TType.I64, 'itemId', None, None, ), # 1
10566
    (2, TType.STRING, 'serialNumber', None, None, ), # 2
10567
    (3, TType.I64, 'warehouseId', None, None, ), # 3
10568
  )
10569
 
10570
  def __init__(self, itemId=None, serialNumber=None, warehouseId=None,):
10571
    self.itemId = itemId
10572
    self.serialNumber = serialNumber
10573
    self.warehouseId = warehouseId
10574
 
10575
  def read(self, iprot):
10576
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10577
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10578
      return
10579
    iprot.readStructBegin()
10580
    while True:
10581
      (fname, ftype, fid) = iprot.readFieldBegin()
10582
      if ftype == TType.STOP:
10583
        break
10584
      if fid == 1:
10585
        if ftype == TType.I64:
10586
          self.itemId = iprot.readI64();
10587
        else:
10588
          iprot.skip(ftype)
10589
      elif fid == 2:
10590
        if ftype == TType.STRING:
10591
          self.serialNumber = iprot.readString();
10592
        else:
10593
          iprot.skip(ftype)
10594
      elif fid == 3:
10595
        if ftype == TType.I64:
10596
          self.warehouseId = iprot.readI64();
10597
        else:
10598
          iprot.skip(ftype)
10599
      else:
10600
        iprot.skip(ftype)
10601
      iprot.readFieldEnd()
10602
    iprot.readStructEnd()
10603
 
10604
  def write(self, oprot):
10605
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10606
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10607
      return
10608
    oprot.writeStructBegin('isItemAvailableForSale_args')
10609
    if self.itemId is not None:
10610
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10611
      oprot.writeI64(self.itemId)
10612
      oprot.writeFieldEnd()
10613
    if self.serialNumber is not None:
10614
      oprot.writeFieldBegin('serialNumber', TType.STRING, 2)
10615
      oprot.writeString(self.serialNumber)
10616
      oprot.writeFieldEnd()
10617
    if self.warehouseId is not None:
10618
      oprot.writeFieldBegin('warehouseId', TType.I64, 3)
10619
      oprot.writeI64(self.warehouseId)
10620
      oprot.writeFieldEnd()
10621
    oprot.writeFieldStop()
10622
    oprot.writeStructEnd()
10623
 
10624
  def validate(self):
10625
    return
10626
 
10627
 
10628
  def __repr__(self):
10629
    L = ['%s=%r' % (key, value)
10630
      for key, value in self.__dict__.iteritems()]
10631
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10632
 
10633
  def __eq__(self, other):
10634
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10635
 
10636
  def __ne__(self, other):
10637
    return not (self == other)
10638
 
10639
class isItemAvailableForSale_result:
10640
  """
10641
  Attributes:
10642
   - success
10643
   - wex
10644
  """
10645
 
10646
  thrift_spec = (
10647
    (0, TType.BOOL, 'success', None, None, ), # 0
10648
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10649
  )
10650
 
10651
  def __init__(self, success=None, wex=None,):
10652
    self.success = success
10653
    self.wex = wex
10654
 
10655
  def read(self, iprot):
10656
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10657
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10658
      return
10659
    iprot.readStructBegin()
10660
    while True:
10661
      (fname, ftype, fid) = iprot.readFieldBegin()
10662
      if ftype == TType.STOP:
10663
        break
10664
      if fid == 0:
10665
        if ftype == TType.BOOL:
10666
          self.success = iprot.readBool();
10667
        else:
10668
          iprot.skip(ftype)
10669
      elif fid == 1:
10670
        if ftype == TType.STRUCT:
10671
          self.wex = WarehouseServiceException()
10672
          self.wex.read(iprot)
10673
        else:
10674
          iprot.skip(ftype)
10675
      else:
10676
        iprot.skip(ftype)
10677
      iprot.readFieldEnd()
10678
    iprot.readStructEnd()
10679
 
10680
  def write(self, oprot):
10681
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10682
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10683
      return
10684
    oprot.writeStructBegin('isItemAvailableForSale_result')
10685
    if self.success is not None:
10686
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10687
      oprot.writeBool(self.success)
10688
      oprot.writeFieldEnd()
10689
    if self.wex is not None:
10690
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10691
      self.wex.write(oprot)
10692
      oprot.writeFieldEnd()
10693
    oprot.writeFieldStop()
10694
    oprot.writeStructEnd()
10695
 
10696
  def validate(self):
10697
    return
10698
 
10699
 
10700
  def __repr__(self):
10701
    L = ['%s=%r' % (key, value)
10702
      for key, value in self.__dict__.iteritems()]
10703
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10704
 
10705
  def __eq__(self, other):
10706
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10707
 
10708
  def __ne__(self, other):
10709
    return not (self == other)
10710
 
10711
class getHistoricBadInventoryByScans_args:
10712
  """
10713
  Attributes:
10714
   - date
10715
  """
10716
 
10717
  thrift_spec = (
10718
    None, # 0
10719
    (1, TType.I64, 'date', None, None, ), # 1
10720
  )
10721
 
10722
  def __init__(self, date=None,):
10723
    self.date = date
10724
 
10725
  def read(self, iprot):
10726
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10727
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10728
      return
10729
    iprot.readStructBegin()
10730
    while True:
10731
      (fname, ftype, fid) = iprot.readFieldBegin()
10732
      if ftype == TType.STOP:
10733
        break
10734
      if fid == 1:
10735
        if ftype == TType.I64:
10736
          self.date = iprot.readI64();
10737
        else:
10738
          iprot.skip(ftype)
10739
      else:
10740
        iprot.skip(ftype)
10741
      iprot.readFieldEnd()
10742
    iprot.readStructEnd()
10743
 
10744
  def write(self, oprot):
10745
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10746
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10747
      return
10748
    oprot.writeStructBegin('getHistoricBadInventoryByScans_args')
10749
    if self.date is not None:
10750
      oprot.writeFieldBegin('date', TType.I64, 1)
10751
      oprot.writeI64(self.date)
10752
      oprot.writeFieldEnd()
10753
    oprot.writeFieldStop()
10754
    oprot.writeStructEnd()
10755
 
10756
  def validate(self):
10757
    return
10758
 
10759
 
10760
  def __repr__(self):
10761
    L = ['%s=%r' % (key, value)
10762
      for key, value in self.__dict__.iteritems()]
10763
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10764
 
10765
  def __eq__(self, other):
10766
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10767
 
10768
  def __ne__(self, other):
10769
    return not (self == other)
10770
 
10771
class getHistoricBadInventoryByScans_result:
10772
  """
10773
  Attributes:
10774
   - success
10775
   - wex
10776
  """
10777
 
10778
  thrift_spec = (
10779
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
10780
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
10781
  )
10782
 
10783
  def __init__(self, success=None, wex=None,):
10784
    self.success = success
10785
    self.wex = wex
10786
 
10787
  def read(self, iprot):
10788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10790
      return
10791
    iprot.readStructBegin()
10792
    while True:
10793
      (fname, ftype, fid) = iprot.readFieldBegin()
10794
      if ftype == TType.STOP:
10795
        break
10796
      if fid == 0:
10797
        if ftype == TType.LIST:
10798
          self.success = []
10407 amar.kumar 10799
          (_etype208, _size205) = iprot.readListBegin()
10800
          for _i209 in xrange(_size205):
10801
            _elem210 = InventoryAvailability()
10802
            _elem210.read(iprot)
10803
            self.success.append(_elem210)
7968 amar.kumar 10804
          iprot.readListEnd()
10805
        else:
10806
          iprot.skip(ftype)
10807
      elif fid == 1:
10808
        if ftype == TType.STRUCT:
10809
          self.wex = WarehouseServiceException()
10810
          self.wex.read(iprot)
10811
        else:
10812
          iprot.skip(ftype)
10813
      else:
10814
        iprot.skip(ftype)
10815
      iprot.readFieldEnd()
10816
    iprot.readStructEnd()
10817
 
10818
  def write(self, oprot):
10819
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10820
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10821
      return
10822
    oprot.writeStructBegin('getHistoricBadInventoryByScans_result')
10823
    if self.success is not None:
10824
      oprot.writeFieldBegin('success', TType.LIST, 0)
10825
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 10826
      for iter211 in self.success:
10827
        iter211.write(oprot)
7968 amar.kumar 10828
      oprot.writeListEnd()
10829
      oprot.writeFieldEnd()
10830
    if self.wex is not None:
10831
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
10832
      self.wex.write(oprot)
10833
      oprot.writeFieldEnd()
10834
    oprot.writeFieldStop()
10835
    oprot.writeStructEnd()
10836
 
10837
  def validate(self):
10838
    return
10839
 
10840
 
10841
  def __repr__(self):
10842
    L = ['%s=%r' % (key, value)
10843
      for key, value in self.__dict__.iteritems()]
10844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10845
 
10846
  def __eq__(self, other):
10847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10848
 
10849
  def __ne__(self, other):
10850
    return not (self == other)
8565 amar.kumar 10851
 
10852
class scanForBadSale_args:
10853
  """
10854
  Attributes:
8717 amar.kumar 10855
   - serialNumber
10856
   - itemNumber
10857
   - itemId
8565 amar.kumar 10858
   - orderId
8717 amar.kumar 10859
   - fulfilmentWarehouseId
8565 amar.kumar 10860
   - quantity
10861
   - billingWarehouseId
10862
  """
10863
 
10864
  thrift_spec = (
10865
    None, # 0
8717 amar.kumar 10866
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
10867
    (2, TType.STRING, 'itemNumber', None, None, ), # 2
10868
    (3, TType.I64, 'itemId', None, None, ), # 3
10869
    (4, TType.I64, 'orderId', None, None, ), # 4
10870
    (5, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 5
10871
    (6, TType.I64, 'quantity', None, None, ), # 6
10872
    (7, TType.I64, 'billingWarehouseId', None, None, ), # 7
8565 amar.kumar 10873
  )
10874
 
8717 amar.kumar 10875
  def __init__(self, serialNumber=None, itemNumber=None, itemId=None, orderId=None, fulfilmentWarehouseId=None, quantity=None, billingWarehouseId=None,):
10876
    self.serialNumber = serialNumber
10877
    self.itemNumber = itemNumber
10878
    self.itemId = itemId
8565 amar.kumar 10879
    self.orderId = orderId
8717 amar.kumar 10880
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
8565 amar.kumar 10881
    self.quantity = quantity
10882
    self.billingWarehouseId = billingWarehouseId
10883
 
10884
  def read(self, iprot):
10885
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10886
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10887
      return
10888
    iprot.readStructBegin()
10889
    while True:
10890
      (fname, ftype, fid) = iprot.readFieldBegin()
10891
      if ftype == TType.STOP:
10892
        break
10893
      if fid == 1:
8717 amar.kumar 10894
        if ftype == TType.STRING:
10895
          self.serialNumber = iprot.readString();
8565 amar.kumar 10896
        else:
10897
          iprot.skip(ftype)
10898
      elif fid == 2:
8717 amar.kumar 10899
        if ftype == TType.STRING:
10900
          self.itemNumber = iprot.readString();
8565 amar.kumar 10901
        else:
10902
          iprot.skip(ftype)
10903
      elif fid == 3:
10904
        if ftype == TType.I64:
8717 amar.kumar 10905
          self.itemId = iprot.readI64();
8565 amar.kumar 10906
        else:
10907
          iprot.skip(ftype)
10908
      elif fid == 4:
10909
        if ftype == TType.I64:
8717 amar.kumar 10910
          self.orderId = iprot.readI64();
8565 amar.kumar 10911
        else:
10912
          iprot.skip(ftype)
10913
      elif fid == 5:
10914
        if ftype == TType.I64:
8717 amar.kumar 10915
          self.fulfilmentWarehouseId = iprot.readI64();
10916
        else:
10917
          iprot.skip(ftype)
10918
      elif fid == 6:
10919
        if ftype == TType.I64:
10920
          self.quantity = iprot.readI64();
10921
        else:
10922
          iprot.skip(ftype)
10923
      elif fid == 7:
10924
        if ftype == TType.I64:
8565 amar.kumar 10925
          self.billingWarehouseId = iprot.readI64();
10926
        else:
10927
          iprot.skip(ftype)
10928
      else:
10929
        iprot.skip(ftype)
10930
      iprot.readFieldEnd()
10931
    iprot.readStructEnd()
10932
 
10933
  def write(self, oprot):
10934
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10935
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10936
      return
10937
    oprot.writeStructBegin('scanForBadSale_args')
8717 amar.kumar 10938
    if self.serialNumber is not None:
10939
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
10940
      oprot.writeString(self.serialNumber)
8565 amar.kumar 10941
      oprot.writeFieldEnd()
8717 amar.kumar 10942
    if self.itemNumber is not None:
10943
      oprot.writeFieldBegin('itemNumber', TType.STRING, 2)
10944
      oprot.writeString(self.itemNumber)
10945
      oprot.writeFieldEnd()
10946
    if self.itemId is not None:
10947
      oprot.writeFieldBegin('itemId', TType.I64, 3)
10948
      oprot.writeI64(self.itemId)
10949
      oprot.writeFieldEnd()
8565 amar.kumar 10950
    if self.orderId is not None:
8717 amar.kumar 10951
      oprot.writeFieldBegin('orderId', TType.I64, 4)
8565 amar.kumar 10952
      oprot.writeI64(self.orderId)
10953
      oprot.writeFieldEnd()
8717 amar.kumar 10954
    if self.fulfilmentWarehouseId is not None:
10955
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 5)
10956
      oprot.writeI64(self.fulfilmentWarehouseId)
10957
      oprot.writeFieldEnd()
8565 amar.kumar 10958
    if self.quantity is not None:
8717 amar.kumar 10959
      oprot.writeFieldBegin('quantity', TType.I64, 6)
8565 amar.kumar 10960
      oprot.writeI64(self.quantity)
10961
      oprot.writeFieldEnd()
10962
    if self.billingWarehouseId is not None:
8717 amar.kumar 10963
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 7)
8565 amar.kumar 10964
      oprot.writeI64(self.billingWarehouseId)
10965
      oprot.writeFieldEnd()
10966
    oprot.writeFieldStop()
10967
    oprot.writeStructEnd()
10968
 
10969
  def validate(self):
10970
    return
10971
 
10972
 
10973
  def __repr__(self):
10974
    L = ['%s=%r' % (key, value)
10975
      for key, value in self.__dict__.iteritems()]
10976
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10977
 
10978
  def __eq__(self, other):
10979
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10980
 
10981
  def __ne__(self, other):
10982
    return not (self == other)
10983
 
10984
class scanForBadSale_result:
8717 amar.kumar 10985
  """
10986
  Attributes:
10987
   - success
10988
   - wex
10989
  """
8565 amar.kumar 10990
 
10991
  thrift_spec = (
8717 amar.kumar 10992
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
10993
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
8565 amar.kumar 10994
  )
10995
 
8717 amar.kumar 10996
  def __init__(self, success=None, wex=None,):
10997
    self.success = success
10998
    self.wex = wex
10999
 
8565 amar.kumar 11000
  def read(self, iprot):
11001
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11002
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11003
      return
11004
    iprot.readStructBegin()
11005
    while True:
11006
      (fname, ftype, fid) = iprot.readFieldBegin()
11007
      if ftype == TType.STOP:
11008
        break
8717 amar.kumar 11009
      if fid == 0:
11010
        if ftype == TType.STRUCT:
11011
          self.success = InventoryItem()
11012
          self.success.read(iprot)
11013
        else:
11014
          iprot.skip(ftype)
11015
      elif fid == 1:
11016
        if ftype == TType.STRUCT:
11017
          self.wex = WarehouseServiceException()
11018
          self.wex.read(iprot)
11019
        else:
11020
          iprot.skip(ftype)
8565 amar.kumar 11021
      else:
11022
        iprot.skip(ftype)
11023
      iprot.readFieldEnd()
11024
    iprot.readStructEnd()
11025
 
11026
  def write(self, oprot):
11027
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11028
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11029
      return
11030
    oprot.writeStructBegin('scanForBadSale_result')
8717 amar.kumar 11031
    if self.success is not None:
11032
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11033
      self.success.write(oprot)
11034
      oprot.writeFieldEnd()
11035
    if self.wex is not None:
11036
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11037
      self.wex.write(oprot)
11038
      oprot.writeFieldEnd()
8565 amar.kumar 11039
    oprot.writeFieldStop()
11040
    oprot.writeStructEnd()
11041
 
11042
  def validate(self):
11043
    return
11044
 
11045
 
11046
  def __repr__(self):
11047
    L = ['%s=%r' % (key, value)
11048
      for key, value in self.__dict__.iteritems()]
11049
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11050
 
11051
  def __eq__(self, other):
11052
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11053
 
11054
  def __ne__(self, other):
11055
    return not (self == other)
10120 manish.sha 11056
 
11057
class getTransferLotItemsForMarkReceive_args:
11058
  """
11059
  Attributes:
11060
   - transferLotId
11061
   - scanType
11062
  """
11063
 
11064
  thrift_spec = (
11065
    None, # 0
11066
    (1, TType.I64, 'transferLotId', None, None, ), # 1
11067
    (2, TType.I32, 'scanType', None, None, ), # 2
11068
  )
11069
 
11070
  def __init__(self, transferLotId=None, scanType=None,):
11071
    self.transferLotId = transferLotId
11072
    self.scanType = scanType
11073
 
11074
  def read(self, iprot):
11075
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11076
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11077
      return
11078
    iprot.readStructBegin()
11079
    while True:
11080
      (fname, ftype, fid) = iprot.readFieldBegin()
11081
      if ftype == TType.STOP:
11082
        break
11083
      if fid == 1:
11084
        if ftype == TType.I64:
11085
          self.transferLotId = iprot.readI64();
11086
        else:
11087
          iprot.skip(ftype)
11088
      elif fid == 2:
11089
        if ftype == TType.I32:
11090
          self.scanType = iprot.readI32();
11091
        else:
11092
          iprot.skip(ftype)
11093
      else:
11094
        iprot.skip(ftype)
11095
      iprot.readFieldEnd()
11096
    iprot.readStructEnd()
11097
 
11098
  def write(self, oprot):
11099
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11100
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11101
      return
11102
    oprot.writeStructBegin('getTransferLotItemsForMarkReceive_args')
11103
    if self.transferLotId is not None:
11104
      oprot.writeFieldBegin('transferLotId', TType.I64, 1)
11105
      oprot.writeI64(self.transferLotId)
11106
      oprot.writeFieldEnd()
11107
    if self.scanType is not None:
11108
      oprot.writeFieldBegin('scanType', TType.I32, 2)
11109
      oprot.writeI32(self.scanType)
11110
      oprot.writeFieldEnd()
11111
    oprot.writeFieldStop()
11112
    oprot.writeStructEnd()
11113
 
11114
  def validate(self):
11115
    return
11116
 
11117
 
11118
  def __repr__(self):
11119
    L = ['%s=%r' % (key, value)
11120
      for key, value in self.__dict__.iteritems()]
11121
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11122
 
11123
  def __eq__(self, other):
11124
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11125
 
11126
  def __ne__(self, other):
11127
    return not (self == other)
11128
 
11129
class getTransferLotItemsForMarkReceive_result:
11130
  """
11131
  Attributes:
11132
   - success
11133
   - wex
11134
  """
11135
 
11136
  thrift_spec = (
11137
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
11138
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11139
  )
11140
 
11141
  def __init__(self, success=None, wex=None,):
11142
    self.success = success
11143
    self.wex = wex
11144
 
11145
  def read(self, iprot):
11146
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11147
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11148
      return
11149
    iprot.readStructBegin()
11150
    while True:
11151
      (fname, ftype, fid) = iprot.readFieldBegin()
11152
      if ftype == TType.STOP:
11153
        break
11154
      if fid == 0:
11155
        if ftype == TType.LIST:
11156
          self.success = []
10407 amar.kumar 11157
          (_etype215, _size212) = iprot.readListBegin()
11158
          for _i216 in xrange(_size212):
11159
            _elem217 = InventoryItem()
11160
            _elem217.read(iprot)
11161
            self.success.append(_elem217)
10120 manish.sha 11162
          iprot.readListEnd()
11163
        else:
11164
          iprot.skip(ftype)
11165
      elif fid == 1:
11166
        if ftype == TType.STRUCT:
11167
          self.wex = WarehouseServiceException()
11168
          self.wex.read(iprot)
11169
        else:
11170
          iprot.skip(ftype)
11171
      else:
11172
        iprot.skip(ftype)
11173
      iprot.readFieldEnd()
11174
    iprot.readStructEnd()
11175
 
11176
  def write(self, oprot):
11177
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11178
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11179
      return
11180
    oprot.writeStructBegin('getTransferLotItemsForMarkReceive_result')
11181
    if self.success is not None:
11182
      oprot.writeFieldBegin('success', TType.LIST, 0)
11183
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10407 amar.kumar 11184
      for iter218 in self.success:
11185
        iter218.write(oprot)
10120 manish.sha 11186
      oprot.writeListEnd()
11187
      oprot.writeFieldEnd()
11188
    if self.wex is not None:
11189
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11190
      self.wex.write(oprot)
11191
      oprot.writeFieldEnd()
11192
    oprot.writeFieldStop()
11193
    oprot.writeStructEnd()
11194
 
11195
  def validate(self):
11196
    return
11197
 
11198
 
11199
  def __repr__(self):
11200
    L = ['%s=%r' % (key, value)
11201
      for key, value in self.__dict__.iteritems()]
11202
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11203
 
11204
  def __eq__(self, other):
11205
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11206
 
11207
  def __ne__(self, other):
11208
    return not (self == other)
11209
 
11210
class markItemsAsReceivedForTransferLotPartial_args:
11211
  """
11212
  Attributes:
11213
   - inventoryItems
11214
   - transferLotId
11215
  """
11216
 
11217
  thrift_spec = (
11218
    None, # 0
11219
    (1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
11220
    (2, TType.I64, 'transferLotId', None, None, ), # 2
11221
  )
11222
 
11223
  def __init__(self, inventoryItems=None, transferLotId=None,):
11224
    self.inventoryItems = inventoryItems
11225
    self.transferLotId = transferLotId
11226
 
11227
  def read(self, iprot):
11228
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11229
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11230
      return
11231
    iprot.readStructBegin()
11232
    while True:
11233
      (fname, ftype, fid) = iprot.readFieldBegin()
11234
      if ftype == TType.STOP:
11235
        break
11236
      if fid == 1:
11237
        if ftype == TType.LIST:
11238
          self.inventoryItems = []
10407 amar.kumar 11239
          (_etype222, _size219) = iprot.readListBegin()
11240
          for _i223 in xrange(_size219):
11241
            _elem224 = InventoryItem()
11242
            _elem224.read(iprot)
11243
            self.inventoryItems.append(_elem224)
10120 manish.sha 11244
          iprot.readListEnd()
11245
        else:
11246
          iprot.skip(ftype)
11247
      elif fid == 2:
11248
        if ftype == TType.I64:
11249
          self.transferLotId = iprot.readI64();
11250
        else:
11251
          iprot.skip(ftype)
11252
      else:
11253
        iprot.skip(ftype)
11254
      iprot.readFieldEnd()
11255
    iprot.readStructEnd()
11256
 
11257
  def write(self, oprot):
11258
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11259
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11260
      return
11261
    oprot.writeStructBegin('markItemsAsReceivedForTransferLotPartial_args')
11262
    if self.inventoryItems is not None:
11263
      oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)
11264
      oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))
10407 amar.kumar 11265
      for iter225 in self.inventoryItems:
11266
        iter225.write(oprot)
10120 manish.sha 11267
      oprot.writeListEnd()
11268
      oprot.writeFieldEnd()
11269
    if self.transferLotId is not None:
11270
      oprot.writeFieldBegin('transferLotId', TType.I64, 2)
11271
      oprot.writeI64(self.transferLotId)
11272
      oprot.writeFieldEnd()
11273
    oprot.writeFieldStop()
11274
    oprot.writeStructEnd()
11275
 
11276
  def validate(self):
11277
    return
11278
 
11279
 
11280
  def __repr__(self):
11281
    L = ['%s=%r' % (key, value)
11282
      for key, value in self.__dict__.iteritems()]
11283
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11284
 
11285
  def __eq__(self, other):
11286
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11287
 
11288
  def __ne__(self, other):
11289
    return not (self == other)
11290
 
11291
class markItemsAsReceivedForTransferLotPartial_result:
11292
  """
11293
  Attributes:
11294
   - wex
11295
  """
11296
 
11297
  thrift_spec = (
11298
    None, # 0
11299
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11300
  )
11301
 
11302
  def __init__(self, wex=None,):
11303
    self.wex = wex
11304
 
11305
  def read(self, iprot):
11306
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11307
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11308
      return
11309
    iprot.readStructBegin()
11310
    while True:
11311
      (fname, ftype, fid) = iprot.readFieldBegin()
11312
      if ftype == TType.STOP:
11313
        break
11314
      if fid == 1:
11315
        if ftype == TType.STRUCT:
11316
          self.wex = WarehouseServiceException()
11317
          self.wex.read(iprot)
11318
        else:
11319
          iprot.skip(ftype)
11320
      else:
11321
        iprot.skip(ftype)
11322
      iprot.readFieldEnd()
11323
    iprot.readStructEnd()
11324
 
11325
  def write(self, oprot):
11326
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11327
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11328
      return
11329
    oprot.writeStructBegin('markItemsAsReceivedForTransferLotPartial_result')
11330
    if self.wex is not None:
11331
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11332
      self.wex.write(oprot)
11333
      oprot.writeFieldEnd()
11334
    oprot.writeFieldStop()
11335
    oprot.writeStructEnd()
11336
 
11337
  def validate(self):
11338
    return
11339
 
11340
 
11341
  def __repr__(self):
11342
    L = ['%s=%r' % (key, value)
11343
      for key, value in self.__dict__.iteritems()]
11344
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11345
 
11346
  def __eq__(self, other):
11347
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11348
 
11349
  def __ne__(self, other):
11350
    return not (self == other)
11351
 
11352
class markTransferLotAsReceivedPartial_args:
11353
  """
11354
  Attributes:
11355
   - id
11356
   - remoteTransferRefNumber
11357
  """
11358
 
11359
  thrift_spec = (
11360
    None, # 0
11361
    (1, TType.I64, 'id', None, None, ), # 1
11362
    (2, TType.STRING, 'remoteTransferRefNumber', None, None, ), # 2
11363
  )
11364
 
11365
  def __init__(self, id=None, remoteTransferRefNumber=None,):
11366
    self.id = id
11367
    self.remoteTransferRefNumber = remoteTransferRefNumber
11368
 
11369
  def read(self, iprot):
11370
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11371
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11372
      return
11373
    iprot.readStructBegin()
11374
    while True:
11375
      (fname, ftype, fid) = iprot.readFieldBegin()
11376
      if ftype == TType.STOP:
11377
        break
11378
      if fid == 1:
11379
        if ftype == TType.I64:
11380
          self.id = iprot.readI64();
11381
        else:
11382
          iprot.skip(ftype)
11383
      elif fid == 2:
11384
        if ftype == TType.STRING:
11385
          self.remoteTransferRefNumber = iprot.readString();
11386
        else:
11387
          iprot.skip(ftype)
11388
      else:
11389
        iprot.skip(ftype)
11390
      iprot.readFieldEnd()
11391
    iprot.readStructEnd()
11392
 
11393
  def write(self, oprot):
11394
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11395
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11396
      return
11397
    oprot.writeStructBegin('markTransferLotAsReceivedPartial_args')
11398
    if self.id is not None:
11399
      oprot.writeFieldBegin('id', TType.I64, 1)
11400
      oprot.writeI64(self.id)
11401
      oprot.writeFieldEnd()
11402
    if self.remoteTransferRefNumber is not None:
11403
      oprot.writeFieldBegin('remoteTransferRefNumber', TType.STRING, 2)
11404
      oprot.writeString(self.remoteTransferRefNumber)
11405
      oprot.writeFieldEnd()
11406
    oprot.writeFieldStop()
11407
    oprot.writeStructEnd()
11408
 
11409
  def validate(self):
11410
    return
11411
 
11412
 
11413
  def __repr__(self):
11414
    L = ['%s=%r' % (key, value)
11415
      for key, value in self.__dict__.iteritems()]
11416
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11417
 
11418
  def __eq__(self, other):
11419
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11420
 
11421
  def __ne__(self, other):
11422
    return not (self == other)
11423
 
11424
class markTransferLotAsReceivedPartial_result:
11425
  """
11426
  Attributes:
11427
   - wex
11428
  """
11429
 
11430
  thrift_spec = (
11431
    None, # 0
11432
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11433
  )
11434
 
11435
  def __init__(self, wex=None,):
11436
    self.wex = wex
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.STRUCT:
11449
          self.wex = WarehouseServiceException()
11450
          self.wex.read(iprot)
11451
        else:
11452
          iprot.skip(ftype)
11453
      else:
11454
        iprot.skip(ftype)
11455
      iprot.readFieldEnd()
11456
    iprot.readStructEnd()
11457
 
11458
  def write(self, oprot):
11459
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11460
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11461
      return
11462
    oprot.writeStructBegin('markTransferLotAsReceivedPartial_result')
11463
    if self.wex is not None:
11464
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11465
      self.wex.write(oprot)
11466
      oprot.writeFieldEnd()
11467
    oprot.writeFieldStop()
11468
    oprot.writeStructEnd()
11469
 
11470
  def validate(self):
11471
    return
11472
 
11473
 
11474
  def __repr__(self):
11475
    L = ['%s=%r' % (key, value)
11476
      for key, value in self.__dict__.iteritems()]
11477
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11478
 
11479
  def __eq__(self, other):
11480
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11481
 
11482
  def __ne__(self, other):
11483
    return not (self == other)
10690 manish.sha 11484
 
11485
class getInventoryItemScannedInForPO_args:
11486
  """
11487
  Attributes:
11488
   - itemId
11489
   - purchaseIds
11490
  """
11491
 
11492
  thrift_spec = (
11493
    None, # 0
11494
    (1, TType.I64, 'itemId', None, None, ), # 1
11495
    (2, TType.LIST, 'purchaseIds', (TType.I64,None), None, ), # 2
11496
  )
11497
 
11498
  def __init__(self, itemId=None, purchaseIds=None,):
11499
    self.itemId = itemId
11500
    self.purchaseIds = purchaseIds
11501
 
11502
  def read(self, iprot):
11503
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11504
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11505
      return
11506
    iprot.readStructBegin()
11507
    while True:
11508
      (fname, ftype, fid) = iprot.readFieldBegin()
11509
      if ftype == TType.STOP:
11510
        break
11511
      if fid == 1:
11512
        if ftype == TType.I64:
11513
          self.itemId = iprot.readI64();
11514
        else:
11515
          iprot.skip(ftype)
11516
      elif fid == 2:
11517
        if ftype == TType.LIST:
11518
          self.purchaseIds = []
11519
          (_etype229, _size226) = iprot.readListBegin()
11520
          for _i230 in xrange(_size226):
11521
            _elem231 = iprot.readI64();
11522
            self.purchaseIds.append(_elem231)
11523
          iprot.readListEnd()
11524
        else:
11525
          iprot.skip(ftype)
11526
      else:
11527
        iprot.skip(ftype)
11528
      iprot.readFieldEnd()
11529
    iprot.readStructEnd()
11530
 
11531
  def write(self, oprot):
11532
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11533
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11534
      return
11535
    oprot.writeStructBegin('getInventoryItemScannedInForPO_args')
11536
    if self.itemId is not None:
11537
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11538
      oprot.writeI64(self.itemId)
11539
      oprot.writeFieldEnd()
11540
    if self.purchaseIds is not None:
11541
      oprot.writeFieldBegin('purchaseIds', TType.LIST, 2)
11542
      oprot.writeListBegin(TType.I64, len(self.purchaseIds))
11543
      for iter232 in self.purchaseIds:
11544
        oprot.writeI64(iter232)
11545
      oprot.writeListEnd()
11546
      oprot.writeFieldEnd()
11547
    oprot.writeFieldStop()
11548
    oprot.writeStructEnd()
11549
 
11550
  def validate(self):
11551
    return
11552
 
11553
 
11554
  def __repr__(self):
11555
    L = ['%s=%r' % (key, value)
11556
      for key, value in self.__dict__.iteritems()]
11557
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11558
 
11559
  def __eq__(self, other):
11560
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11561
 
11562
  def __ne__(self, other):
11563
    return not (self == other)
11564
 
11565
class getInventoryItemScannedInForPO_result:
11566
  """
11567
  Attributes:
11568
   - success
11569
   - wex
11570
  """
11571
 
11572
  thrift_spec = (
11573
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
11574
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11575
  )
11576
 
11577
  def __init__(self, success=None, wex=None,):
11578
    self.success = success
11579
    self.wex = wex
11580
 
11581
  def read(self, iprot):
11582
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11583
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11584
      return
11585
    iprot.readStructBegin()
11586
    while True:
11587
      (fname, ftype, fid) = iprot.readFieldBegin()
11588
      if ftype == TType.STOP:
11589
        break
11590
      if fid == 0:
11591
        if ftype == TType.LIST:
11592
          self.success = []
11593
          (_etype236, _size233) = iprot.readListBegin()
11594
          for _i237 in xrange(_size233):
11595
            _elem238 = InventoryItem()
11596
            _elem238.read(iprot)
11597
            self.success.append(_elem238)
11598
          iprot.readListEnd()
11599
        else:
11600
          iprot.skip(ftype)
11601
      elif fid == 1:
11602
        if ftype == TType.STRUCT:
11603
          self.wex = WarehouseServiceException()
11604
          self.wex.read(iprot)
11605
        else:
11606
          iprot.skip(ftype)
11607
      else:
11608
        iprot.skip(ftype)
11609
      iprot.readFieldEnd()
11610
    iprot.readStructEnd()
11611
 
11612
  def write(self, oprot):
11613
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11614
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11615
      return
11616
    oprot.writeStructBegin('getInventoryItemScannedInForPO_result')
11617
    if self.success is not None:
11618
      oprot.writeFieldBegin('success', TType.LIST, 0)
11619
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11620
      for iter239 in self.success:
11621
        iter239.write(oprot)
11622
      oprot.writeListEnd()
11623
      oprot.writeFieldEnd()
11624
    if self.wex is not None:
11625
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11626
      self.wex.write(oprot)
11627
      oprot.writeFieldEnd()
11628
    oprot.writeFieldStop()
11629
    oprot.writeStructEnd()
11630
 
11631
  def validate(self):
11632
    return
11633
 
11634
 
11635
  def __repr__(self):
11636
    L = ['%s=%r' % (key, value)
11637
      for key, value in self.__dict__.iteritems()]
11638
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11639
 
11640
  def __eq__(self, other):
11641
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11642
 
11643
  def __ne__(self, other):
11644
    return not (self == other)
11645
 
11646
class getAmazonTransferredSkuDetails_args:
11647
  """
11648
  Attributes:
11649
   - itemIds
11650
  """
11651
 
11652
  thrift_spec = (
11653
    None, # 0
11654
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
11655
  )
11656
 
11657
  def __init__(self, itemIds=None,):
11658
    self.itemIds = itemIds
11659
 
11660
  def read(self, iprot):
11661
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11662
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11663
      return
11664
    iprot.readStructBegin()
11665
    while True:
11666
      (fname, ftype, fid) = iprot.readFieldBegin()
11667
      if ftype == TType.STOP:
11668
        break
11669
      if fid == 1:
11670
        if ftype == TType.LIST:
11671
          self.itemIds = []
11672
          (_etype243, _size240) = iprot.readListBegin()
11673
          for _i244 in xrange(_size240):
11674
            _elem245 = iprot.readI64();
11675
            self.itemIds.append(_elem245)
11676
          iprot.readListEnd()
11677
        else:
11678
          iprot.skip(ftype)
11679
      else:
11680
        iprot.skip(ftype)
11681
      iprot.readFieldEnd()
11682
    iprot.readStructEnd()
11683
 
11684
  def write(self, oprot):
11685
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11686
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11687
      return
11688
    oprot.writeStructBegin('getAmazonTransferredSkuDetails_args')
11689
    if self.itemIds is not None:
11690
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
11691
      oprot.writeListBegin(TType.I64, len(self.itemIds))
11692
      for iter246 in self.itemIds:
11693
        oprot.writeI64(iter246)
11694
      oprot.writeListEnd()
11695
      oprot.writeFieldEnd()
11696
    oprot.writeFieldStop()
11697
    oprot.writeStructEnd()
11698
 
11699
  def validate(self):
11700
    return
11701
 
11702
 
11703
  def __repr__(self):
11704
    L = ['%s=%r' % (key, value)
11705
      for key, value in self.__dict__.iteritems()]
11706
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11707
 
11708
  def __eq__(self, other):
11709
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11710
 
11711
  def __ne__(self, other):
11712
    return not (self == other)
11713
 
11714
class getAmazonTransferredSkuDetails_result:
11715
  """
11716
  Attributes:
11717
   - success
11718
   - wex
11719
  """
11720
 
11721
  thrift_spec = (
11722
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonTransferredSkuDetail, AmazonTransferredSkuDetail.thrift_spec)), None, ), # 0
11723
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11724
  )
11725
 
11726
  def __init__(self, success=None, wex=None,):
11727
    self.success = success
11728
    self.wex = wex
11729
 
11730
  def read(self, iprot):
11731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11733
      return
11734
    iprot.readStructBegin()
11735
    while True:
11736
      (fname, ftype, fid) = iprot.readFieldBegin()
11737
      if ftype == TType.STOP:
11738
        break
11739
      if fid == 0:
11740
        if ftype == TType.LIST:
11741
          self.success = []
11742
          (_etype250, _size247) = iprot.readListBegin()
11743
          for _i251 in xrange(_size247):
11744
            _elem252 = AmazonTransferredSkuDetail()
11745
            _elem252.read(iprot)
11746
            self.success.append(_elem252)
11747
          iprot.readListEnd()
11748
        else:
11749
          iprot.skip(ftype)
11750
      elif fid == 1:
11751
        if ftype == TType.STRUCT:
11752
          self.wex = WarehouseServiceException()
11753
          self.wex.read(iprot)
11754
        else:
11755
          iprot.skip(ftype)
11756
      else:
11757
        iprot.skip(ftype)
11758
      iprot.readFieldEnd()
11759
    iprot.readStructEnd()
11760
 
11761
  def write(self, oprot):
11762
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11763
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11764
      return
11765
    oprot.writeStructBegin('getAmazonTransferredSkuDetails_result')
11766
    if self.success is not None:
11767
      oprot.writeFieldBegin('success', TType.LIST, 0)
11768
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11769
      for iter253 in self.success:
11770
        iter253.write(oprot)
11771
      oprot.writeListEnd()
11772
      oprot.writeFieldEnd()
11773
    if self.wex is not None:
11774
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11775
      self.wex.write(oprot)
11776
      oprot.writeFieldEnd()
11777
    oprot.writeFieldStop()
11778
    oprot.writeStructEnd()
11779
 
11780
  def validate(self):
11781
    return
11782
 
11783
 
11784
  def __repr__(self):
11785
    L = ['%s=%r' % (key, value)
11786
      for key, value in self.__dict__.iteritems()]
11787
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11788
 
11789
  def __eq__(self, other):
11790
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11791
 
11792
  def __ne__(self, other):
11793
    return not (self == other)
11794
 
11795
class getScansforPurchase_args:
11796
  """
11797
  Attributes:
11798
   - purchaseId
11799
   - scanType
11800
  """
11801
 
11802
  thrift_spec = (
11803
    None, # 0
11804
    (1, TType.I64, 'purchaseId', None, None, ), # 1
11805
    (2, TType.I32, 'scanType', None, None, ), # 2
11806
  )
11807
 
11808
  def __init__(self, purchaseId=None, scanType=None,):
11809
    self.purchaseId = purchaseId
11810
    self.scanType = scanType
11811
 
11812
  def read(self, iprot):
11813
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11814
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11815
      return
11816
    iprot.readStructBegin()
11817
    while True:
11818
      (fname, ftype, fid) = iprot.readFieldBegin()
11819
      if ftype == TType.STOP:
11820
        break
11821
      if fid == 1:
11822
        if ftype == TType.I64:
11823
          self.purchaseId = iprot.readI64();
11824
        else:
11825
          iprot.skip(ftype)
11826
      elif fid == 2:
11827
        if ftype == TType.I32:
11828
          self.scanType = iprot.readI32();
11829
        else:
11830
          iprot.skip(ftype)
11831
      else:
11832
        iprot.skip(ftype)
11833
      iprot.readFieldEnd()
11834
    iprot.readStructEnd()
11835
 
11836
  def write(self, oprot):
11837
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11838
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11839
      return
11840
    oprot.writeStructBegin('getScansforPurchase_args')
11841
    if self.purchaseId is not None:
11842
      oprot.writeFieldBegin('purchaseId', TType.I64, 1)
11843
      oprot.writeI64(self.purchaseId)
11844
      oprot.writeFieldEnd()
11845
    if self.scanType is not None:
11846
      oprot.writeFieldBegin('scanType', TType.I32, 2)
11847
      oprot.writeI32(self.scanType)
11848
      oprot.writeFieldEnd()
11849
    oprot.writeFieldStop()
11850
    oprot.writeStructEnd()
11851
 
11852
  def validate(self):
11853
    return
11854
 
11855
 
11856
  def __repr__(self):
11857
    L = ['%s=%r' % (key, value)
11858
      for key, value in self.__dict__.iteritems()]
11859
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11860
 
11861
  def __eq__(self, other):
11862
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11863
 
11864
  def __ne__(self, other):
11865
    return not (self == other)
11866
 
11867
class getScansforPurchase_result:
11868
  """
11869
  Attributes:
11870
   - success
11871
   - wex
11872
  """
11873
 
11874
  thrift_spec = (
11875
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
11876
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
11877
  )
11878
 
11879
  def __init__(self, success=None, wex=None,):
11880
    self.success = success
11881
    self.wex = wex
11882
 
11883
  def read(self, iprot):
11884
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11885
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11886
      return
11887
    iprot.readStructBegin()
11888
    while True:
11889
      (fname, ftype, fid) = iprot.readFieldBegin()
11890
      if ftype == TType.STOP:
11891
        break
11892
      if fid == 0:
11893
        if ftype == TType.LIST:
11894
          self.success = []
11895
          (_etype257, _size254) = iprot.readListBegin()
11896
          for _i258 in xrange(_size254):
11897
            _elem259 = Scan()
11898
            _elem259.read(iprot)
11899
            self.success.append(_elem259)
11900
          iprot.readListEnd()
11901
        else:
11902
          iprot.skip(ftype)
11903
      elif fid == 1:
11904
        if ftype == TType.STRUCT:
11905
          self.wex = WarehouseServiceException()
11906
          self.wex.read(iprot)
11907
        else:
11908
          iprot.skip(ftype)
11909
      else:
11910
        iprot.skip(ftype)
11911
      iprot.readFieldEnd()
11912
    iprot.readStructEnd()
11913
 
11914
  def write(self, oprot):
11915
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11916
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11917
      return
11918
    oprot.writeStructBegin('getScansforPurchase_result')
11919
    if self.success is not None:
11920
      oprot.writeFieldBegin('success', TType.LIST, 0)
11921
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11922
      for iter260 in self.success:
11923
        iter260.write(oprot)
11924
      oprot.writeListEnd()
11925
      oprot.writeFieldEnd()
11926
    if self.wex is not None:
11927
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
11928
      self.wex.write(oprot)
11929
      oprot.writeFieldEnd()
11930
    oprot.writeFieldStop()
11931
    oprot.writeStructEnd()
11932
 
11933
  def validate(self):
11934
    return
11935
 
11936
 
11937
  def __repr__(self):
11938
    L = ['%s=%r' % (key, value)
11939
      for key, value in self.__dict__.iteritems()]
11940
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11941
 
11942
  def __eq__(self, other):
11943
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11944
 
11945
  def __ne__(self, other):
11946
    return not (self == other)
10864 manish.sha 11947
 
11948
class getCurrentBadQuantityForItem_args:
11949
  """
11950
  Attributes:
11951
   - itemId
11952
   - currentWarehouseId
11953
   - physicalWarehouseId
11954
  """
11955
 
11956
  thrift_spec = (
11957
    None, # 0
11958
    (1, TType.I64, 'itemId', None, None, ), # 1
11959
    (2, TType.I64, 'currentWarehouseId', None, None, ), # 2
11960
    (3, TType.I64, 'physicalWarehouseId', None, None, ), # 3
11961
  )
11962
 
11963
  def __init__(self, itemId=None, currentWarehouseId=None, physicalWarehouseId=None,):
11964
    self.itemId = itemId
11965
    self.currentWarehouseId = currentWarehouseId
11966
    self.physicalWarehouseId = physicalWarehouseId
11967
 
11968
  def read(self, iprot):
11969
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11970
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11971
      return
11972
    iprot.readStructBegin()
11973
    while True:
11974
      (fname, ftype, fid) = iprot.readFieldBegin()
11975
      if ftype == TType.STOP:
11976
        break
11977
      if fid == 1:
11978
        if ftype == TType.I64:
11979
          self.itemId = iprot.readI64();
11980
        else:
11981
          iprot.skip(ftype)
11982
      elif fid == 2:
11983
        if ftype == TType.I64:
11984
          self.currentWarehouseId = iprot.readI64();
11985
        else:
11986
          iprot.skip(ftype)
11987
      elif fid == 3:
11988
        if ftype == TType.I64:
11989
          self.physicalWarehouseId = iprot.readI64();
11990
        else:
11991
          iprot.skip(ftype)
11992
      else:
11993
        iprot.skip(ftype)
11994
      iprot.readFieldEnd()
11995
    iprot.readStructEnd()
11996
 
11997
  def write(self, oprot):
11998
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11999
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12000
      return
12001
    oprot.writeStructBegin('getCurrentBadQuantityForItem_args')
12002
    if self.itemId is not None:
12003
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12004
      oprot.writeI64(self.itemId)
12005
      oprot.writeFieldEnd()
12006
    if self.currentWarehouseId is not None:
12007
      oprot.writeFieldBegin('currentWarehouseId', TType.I64, 2)
12008
      oprot.writeI64(self.currentWarehouseId)
12009
      oprot.writeFieldEnd()
12010
    if self.physicalWarehouseId is not None:
12011
      oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 3)
12012
      oprot.writeI64(self.physicalWarehouseId)
12013
      oprot.writeFieldEnd()
12014
    oprot.writeFieldStop()
12015
    oprot.writeStructEnd()
12016
 
12017
  def validate(self):
12018
    return
12019
 
12020
 
12021
  def __repr__(self):
12022
    L = ['%s=%r' % (key, value)
12023
      for key, value in self.__dict__.iteritems()]
12024
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12025
 
12026
  def __eq__(self, other):
12027
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12028
 
12029
  def __ne__(self, other):
12030
    return not (self == other)
12031
 
12032
class getCurrentBadQuantityForItem_result:
12033
  """
12034
  Attributes:
12035
   - success
12036
   - wex
12037
  """
12038
 
12039
  thrift_spec = (
12040
    (0, TType.I64, 'success', None, None, ), # 0
12041
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12042
  )
12043
 
12044
  def __init__(self, success=None, wex=None,):
12045
    self.success = success
12046
    self.wex = wex
12047
 
12048
  def read(self, iprot):
12049
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12050
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12051
      return
12052
    iprot.readStructBegin()
12053
    while True:
12054
      (fname, ftype, fid) = iprot.readFieldBegin()
12055
      if ftype == TType.STOP:
12056
        break
12057
      if fid == 0:
12058
        if ftype == TType.I64:
12059
          self.success = iprot.readI64();
12060
        else:
12061
          iprot.skip(ftype)
12062
      elif fid == 1:
12063
        if ftype == TType.STRUCT:
12064
          self.wex = WarehouseServiceException()
12065
          self.wex.read(iprot)
12066
        else:
12067
          iprot.skip(ftype)
12068
      else:
12069
        iprot.skip(ftype)
12070
      iprot.readFieldEnd()
12071
    iprot.readStructEnd()
12072
 
12073
  def write(self, oprot):
12074
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12075
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12076
      return
12077
    oprot.writeStructBegin('getCurrentBadQuantityForItem_result')
12078
    if self.success is not None:
12079
      oprot.writeFieldBegin('success', TType.I64, 0)
12080
      oprot.writeI64(self.success)
12081
      oprot.writeFieldEnd()
12082
    if self.wex is not None:
12083
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
12084
      self.wex.write(oprot)
12085
      oprot.writeFieldEnd()
12086
    oprot.writeFieldStop()
12087
    oprot.writeStructEnd()
12088
 
12089
  def validate(self):
12090
    return
12091
 
12092
 
12093
  def __repr__(self):
12094
    L = ['%s=%r' % (key, value)
12095
      for key, value in self.__dict__.iteritems()]
12096
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12097
 
12098
  def __eq__(self, other):
12099
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12100
 
12101
  def __ne__(self, other):
12102
    return not (self == other)
12103
 
12104
class scanForBadPurchaseReturn_args:
12105
  """
12106
  Attributes:
12107
   - saleReturnItems
12108
   - vendorId
12109
   - billingWarehouseId
12110
  """
12111
 
12112
  thrift_spec = (
12113
    None, # 0
12114
    (1, TType.LIST, 'saleReturnItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1
12115
    (2, TType.I64, 'vendorId', None, None, ), # 2
12116
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
12117
  )
12118
 
12119
  def __init__(self, saleReturnItems=None, vendorId=None, billingWarehouseId=None,):
12120
    self.saleReturnItems = saleReturnItems
12121
    self.vendorId = vendorId
12122
    self.billingWarehouseId = billingWarehouseId
12123
 
12124
  def read(self, iprot):
12125
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12126
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12127
      return
12128
    iprot.readStructBegin()
12129
    while True:
12130
      (fname, ftype, fid) = iprot.readFieldBegin()
12131
      if ftype == TType.STOP:
12132
        break
12133
      if fid == 1:
12134
        if ftype == TType.LIST:
12135
          self.saleReturnItems = []
12136
          (_etype264, _size261) = iprot.readListBegin()
12137
          for _i265 in xrange(_size261):
12138
            _elem266 = InventoryItem()
12139
            _elem266.read(iprot)
12140
            self.saleReturnItems.append(_elem266)
12141
          iprot.readListEnd()
12142
        else:
12143
          iprot.skip(ftype)
12144
      elif fid == 2:
12145
        if ftype == TType.I64:
12146
          self.vendorId = iprot.readI64();
12147
        else:
12148
          iprot.skip(ftype)
12149
      elif fid == 3:
12150
        if ftype == TType.I64:
12151
          self.billingWarehouseId = iprot.readI64();
12152
        else:
12153
          iprot.skip(ftype)
12154
      else:
12155
        iprot.skip(ftype)
12156
      iprot.readFieldEnd()
12157
    iprot.readStructEnd()
12158
 
12159
  def write(self, oprot):
12160
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12161
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12162
      return
12163
    oprot.writeStructBegin('scanForBadPurchaseReturn_args')
12164
    if self.saleReturnItems is not None:
12165
      oprot.writeFieldBegin('saleReturnItems', TType.LIST, 1)
12166
      oprot.writeListBegin(TType.STRUCT, len(self.saleReturnItems))
12167
      for iter267 in self.saleReturnItems:
12168
        iter267.write(oprot)
12169
      oprot.writeListEnd()
12170
      oprot.writeFieldEnd()
12171
    if self.vendorId is not None:
12172
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
12173
      oprot.writeI64(self.vendorId)
12174
      oprot.writeFieldEnd()
12175
    if self.billingWarehouseId is not None:
12176
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
12177
      oprot.writeI64(self.billingWarehouseId)
12178
      oprot.writeFieldEnd()
12179
    oprot.writeFieldStop()
12180
    oprot.writeStructEnd()
12181
 
12182
  def validate(self):
12183
    return
12184
 
12185
 
12186
  def __repr__(self):
12187
    L = ['%s=%r' % (key, value)
12188
      for key, value in self.__dict__.iteritems()]
12189
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12190
 
12191
  def __eq__(self, other):
12192
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12193
 
12194
  def __ne__(self, other):
12195
    return not (self == other)
12196
 
12197
class scanForBadPurchaseReturn_result:
12198
  """
12199
  Attributes:
12200
   - success
12201
   - ex
12202
  """
12203
 
12204
  thrift_spec = (
12205
    (0, TType.I64, 'success', None, None, ), # 0
12206
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12207
  )
12208
 
12209
  def __init__(self, success=None, ex=None,):
12210
    self.success = success
12211
    self.ex = ex
12212
 
12213
  def read(self, iprot):
12214
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12215
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12216
      return
12217
    iprot.readStructBegin()
12218
    while True:
12219
      (fname, ftype, fid) = iprot.readFieldBegin()
12220
      if ftype == TType.STOP:
12221
        break
12222
      if fid == 0:
12223
        if ftype == TType.I64:
12224
          self.success = iprot.readI64();
12225
        else:
12226
          iprot.skip(ftype)
12227
      elif fid == 1:
12228
        if ftype == TType.STRUCT:
12229
          self.ex = WarehouseServiceException()
12230
          self.ex.read(iprot)
12231
        else:
12232
          iprot.skip(ftype)
12233
      else:
12234
        iprot.skip(ftype)
12235
      iprot.readFieldEnd()
12236
    iprot.readStructEnd()
12237
 
12238
  def write(self, oprot):
12239
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12240
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12241
      return
12242
    oprot.writeStructBegin('scanForBadPurchaseReturn_result')
12243
    if self.success is not None:
12244
      oprot.writeFieldBegin('success', TType.I64, 0)
12245
      oprot.writeI64(self.success)
12246
      oprot.writeFieldEnd()
12247
    if self.ex is not None:
12248
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12249
      self.ex.write(oprot)
12250
      oprot.writeFieldEnd()
12251
    oprot.writeFieldStop()
12252
    oprot.writeStructEnd()
12253
 
12254
  def validate(self):
12255
    return
12256
 
12257
 
12258
  def __repr__(self):
12259
    L = ['%s=%r' % (key, value)
12260
      for key, value in self.__dict__.iteritems()]
12261
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12262
 
12263
  def __eq__(self, other):
12264
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12265
 
12266
  def __ne__(self, other):
12267
    return not (self == other)
12268
 
12269
class getItemsInPurchaseReturn_args:
12270
  """
12271
  Attributes:
12272
   - purchaseReturnId
12273
  """
12274
 
12275
  thrift_spec = (
12276
    None, # 0
12277
    (1, TType.I64, 'purchaseReturnId', None, None, ), # 1
12278
  )
12279
 
12280
  def __init__(self, purchaseReturnId=None,):
12281
    self.purchaseReturnId = purchaseReturnId
12282
 
12283
  def read(self, iprot):
12284
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12285
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12286
      return
12287
    iprot.readStructBegin()
12288
    while True:
12289
      (fname, ftype, fid) = iprot.readFieldBegin()
12290
      if ftype == TType.STOP:
12291
        break
12292
      if fid == 1:
12293
        if ftype == TType.I64:
12294
          self.purchaseReturnId = iprot.readI64();
12295
        else:
12296
          iprot.skip(ftype)
12297
      else:
12298
        iprot.skip(ftype)
12299
      iprot.readFieldEnd()
12300
    iprot.readStructEnd()
12301
 
12302
  def write(self, oprot):
12303
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12304
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12305
      return
12306
    oprot.writeStructBegin('getItemsInPurchaseReturn_args')
12307
    if self.purchaseReturnId is not None:
12308
      oprot.writeFieldBegin('purchaseReturnId', TType.I64, 1)
12309
      oprot.writeI64(self.purchaseReturnId)
12310
      oprot.writeFieldEnd()
12311
    oprot.writeFieldStop()
12312
    oprot.writeStructEnd()
12313
 
12314
  def validate(self):
12315
    return
12316
 
12317
 
12318
  def __repr__(self):
12319
    L = ['%s=%r' % (key, value)
12320
      for key, value in self.__dict__.iteritems()]
12321
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12322
 
12323
  def __eq__(self, other):
12324
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12325
 
12326
  def __ne__(self, other):
12327
    return not (self == other)
12328
 
12329
class getItemsInPurchaseReturn_result:
12330
  """
12331
  Attributes:
12332
   - success
12333
   - ex
12334
  """
12335
 
12336
  thrift_spec = (
12337
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
12338
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12339
  )
12340
 
12341
  def __init__(self, success=None, ex=None,):
12342
    self.success = success
12343
    self.ex = ex
12344
 
12345
  def read(self, iprot):
12346
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12347
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12348
      return
12349
    iprot.readStructBegin()
12350
    while True:
12351
      (fname, ftype, fid) = iprot.readFieldBegin()
12352
      if ftype == TType.STOP:
12353
        break
12354
      if fid == 0:
12355
        if ftype == TType.MAP:
12356
          self.success = {}
12357
          (_ktype269, _vtype270, _size268 ) = iprot.readMapBegin() 
12358
          for _i272 in xrange(_size268):
12359
            _key273 = iprot.readI64();
12360
            _val274 = iprot.readI64();
12361
            self.success[_key273] = _val274
12362
          iprot.readMapEnd()
12363
        else:
12364
          iprot.skip(ftype)
12365
      elif fid == 1:
12366
        if ftype == TType.STRUCT:
12367
          self.ex = WarehouseServiceException()
12368
          self.ex.read(iprot)
12369
        else:
12370
          iprot.skip(ftype)
12371
      else:
12372
        iprot.skip(ftype)
12373
      iprot.readFieldEnd()
12374
    iprot.readStructEnd()
12375
 
12376
  def write(self, oprot):
12377
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12378
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12379
      return
12380
    oprot.writeStructBegin('getItemsInPurchaseReturn_result')
12381
    if self.success is not None:
12382
      oprot.writeFieldBegin('success', TType.MAP, 0)
12383
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
12384
      for kiter275,viter276 in self.success.items():
12385
        oprot.writeI64(kiter275)
12386
        oprot.writeI64(viter276)
12387
      oprot.writeMapEnd()
12388
      oprot.writeFieldEnd()
12389
    if self.ex is not None:
12390
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12391
      self.ex.write(oprot)
12392
      oprot.writeFieldEnd()
12393
    oprot.writeFieldStop()
12394
    oprot.writeStructEnd()
12395
 
12396
  def validate(self):
12397
    return
12398
 
12399
 
12400
  def __repr__(self):
12401
    L = ['%s=%r' % (key, value)
12402
      for key, value in self.__dict__.iteritems()]
12403
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12404
 
12405
  def __eq__(self, other):
12406
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12407
 
12408
  def __ne__(self, other):
12409
    return not (self == other)
10886 manish.sha 12410
 
12411
class getScansForInventoryItem_args:
12412
  """
12413
  Attributes:
12414
   - inventoryItemId
12415
   - type
12416
  """
12417
 
12418
  thrift_spec = (
12419
    None, # 0
12420
    (1, TType.I64, 'inventoryItemId', None, None, ), # 1
12421
    (2, TType.I32, 'type', None, None, ), # 2
12422
  )
12423
 
12424
  def __init__(self, inventoryItemId=None, type=None,):
12425
    self.inventoryItemId = inventoryItemId
12426
    self.type = type
12427
 
12428
  def read(self, iprot):
12429
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12430
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12431
      return
12432
    iprot.readStructBegin()
12433
    while True:
12434
      (fname, ftype, fid) = iprot.readFieldBegin()
12435
      if ftype == TType.STOP:
12436
        break
12437
      if fid == 1:
12438
        if ftype == TType.I64:
12439
          self.inventoryItemId = iprot.readI64();
12440
        else:
12441
          iprot.skip(ftype)
12442
      elif fid == 2:
12443
        if ftype == TType.I32:
12444
          self.type = iprot.readI32();
12445
        else:
12446
          iprot.skip(ftype)
12447
      else:
12448
        iprot.skip(ftype)
12449
      iprot.readFieldEnd()
12450
    iprot.readStructEnd()
12451
 
12452
  def write(self, oprot):
12453
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12454
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12455
      return
12456
    oprot.writeStructBegin('getScansForInventoryItem_args')
12457
    if self.inventoryItemId is not None:
12458
      oprot.writeFieldBegin('inventoryItemId', TType.I64, 1)
12459
      oprot.writeI64(self.inventoryItemId)
12460
      oprot.writeFieldEnd()
12461
    if self.type is not None:
12462
      oprot.writeFieldBegin('type', TType.I32, 2)
12463
      oprot.writeI32(self.type)
12464
      oprot.writeFieldEnd()
12465
    oprot.writeFieldStop()
12466
    oprot.writeStructEnd()
12467
 
12468
  def validate(self):
12469
    return
12470
 
12471
 
12472
  def __repr__(self):
12473
    L = ['%s=%r' % (key, value)
12474
      for key, value in self.__dict__.iteritems()]
12475
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12476
 
12477
  def __eq__(self, other):
12478
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12479
 
12480
  def __ne__(self, other):
12481
    return not (self == other)
12482
 
12483
class getScansForInventoryItem_result:
12484
  """
12485
  Attributes:
12486
   - success
12487
   - ex
12488
  """
12489
 
12490
  thrift_spec = (
12491
    (0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.thrift_spec)), None, ), # 0
12492
    (1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
12493
  )
12494
 
12495
  def __init__(self, success=None, ex=None,):
12496
    self.success = success
12497
    self.ex = ex
12498
 
12499
  def read(self, iprot):
12500
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12501
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12502
      return
12503
    iprot.readStructBegin()
12504
    while True:
12505
      (fname, ftype, fid) = iprot.readFieldBegin()
12506
      if ftype == TType.STOP:
12507
        break
12508
      if fid == 0:
12509
        if ftype == TType.LIST:
12510
          self.success = []
12511
          (_etype280, _size277) = iprot.readListBegin()
12512
          for _i281 in xrange(_size277):
12513
            _elem282 = Scan()
12514
            _elem282.read(iprot)
12515
            self.success.append(_elem282)
12516
          iprot.readListEnd()
12517
        else:
12518
          iprot.skip(ftype)
12519
      elif fid == 1:
12520
        if ftype == TType.STRUCT:
12521
          self.ex = WarehouseServiceException()
12522
          self.ex.read(iprot)
12523
        else:
12524
          iprot.skip(ftype)
12525
      else:
12526
        iprot.skip(ftype)
12527
      iprot.readFieldEnd()
12528
    iprot.readStructEnd()
12529
 
12530
  def write(self, oprot):
12531
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12532
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12533
      return
12534
    oprot.writeStructBegin('getScansForInventoryItem_result')
12535
    if self.success is not None:
12536
      oprot.writeFieldBegin('success', TType.LIST, 0)
12537
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12538
      for iter283 in self.success:
12539
        iter283.write(oprot)
12540
      oprot.writeListEnd()
12541
      oprot.writeFieldEnd()
12542
    if self.ex is not None:
12543
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12544
      self.ex.write(oprot)
12545
      oprot.writeFieldEnd()
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)