Subversion Repositories SmartDukaan

Rev

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