Subversion Repositories SmartDukaan

Rev

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