Subversion Repositories SmartDukaan

Rev

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