Subversion Repositories SmartDukaan

Rev

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