Subversion Repositories SmartDukaan

Rev

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