Subversion Repositories SmartDukaan

Rev

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